blob: d00adc46d677971b56743cdc7ee12eac1d2c9d92 [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'
Cristyff282552015-09-19 16:49:39 -0400592PACKAGE_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
cristy73bd4a52010-10-05 11:24:23 +0000766XML_DELEGATE_FALSE
767XML_DELEGATE_TRUE
cristy32f75d42015-06-05 18:46:23 +0000768XML_LIBS
769XML_CFLAGS
cristy32f75d42015-06-05 18:46:23 +0000770WMF_LIBS
771WMF_CFLAGS
cristyebc8f692015-06-16 10:36:30 +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
cristy73bd4a52010-10-05 11:24:23 +0000788PNG_DELEGATE_FALSE
789PNG_DELEGATE_TRUE
cristy32f75d42015-06-05 18:46:23 +0000790PNG_LIBS
791PNG_CFLAGS
cristya054b762012-03-26 23:16:00 +0000792PANGOCAIRO_DELEGATE_FALSE
793PANGOCAIRO_DELEGATE_TRUE
cristy41cbe8a2011-10-27 01:35:18 +0000794PANGO_DELEGATE_FALSE
795PANGO_DELEGATE_TRUE
796PANGO_LIBS
797PANGO_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000798OPENEXR_DELEGATE_FALSE
799OPENEXR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000800OPENEXR_LIBS
801OPENEXR_CFLAGS
cristyfbb0ef02010-12-19 02:32:11 +0000802LZMA_DELEGATE_FALSE
803LZMA_DELEGATE_TRUE
cristyb94e5002011-11-14 13:20:10 +0000804LZMA_LIBS
805LZMA_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000806LQR_DELEGATE_FALSE
807LQR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000808LQR_LIBS
809LQR_CFLAGS
cristy99db3872014-01-01 15:11:34 +0000810LIBOPENJP2_DELEGATE_FALSE
811LIBOPENJP2_DELEGATE_TRUE
812LIBOPENJP2_LIBS
813LIBOPENJP2_CFLAGS
cristy32f75d42015-06-05 18:46:23 +0000814LCMS_LIBS
815LCMS_CFLAGS
cristyfa2b4c32015-07-01 13:12:01 +0000816LCMS_DELEGATE_FALSE
817LCMS_DELEGATE_TRUE
cristyb054e072015-06-05 20:35:43 +0000818LCMS2_LIBS
819LCMS2_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000820JPEG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000821JPEG_DELEGATE_FALSE
822JPEG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000823JBIG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000824JBIG_DELEGATE_FALSE
825JBIG_DELEGATE_TRUE
826GVC_DELEGATE_FALSE
827GVC_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000828GVC_LIBS
829GVC_CFLAGS
830GS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000831GS_DELEGATE_FALSE
832GS_DELEGATE_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000833FREETYPE_DELEGATE_FALSE
834FREETYPE_DELEGATE_TRUE
cristy03f187e2013-01-24 00:22:19 +0000835FREETYPE_LIBS
836FREETYPE_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000837FONTCONFIG_DELEGATE_FALSE
838FONTCONFIG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000839FONTCONFIG_LIBS
840FONTCONFIG_CFLAGS
cristy853d9902014-08-21 18:50:43 +0000841DJVU_LIBS
cristy32f75d42015-06-05 18:46:23 +0000842DJVU_CFLAGS
cristy853d9902014-08-21 18:50:43 +0000843DJVU_DELEGATE_FALSE
844DJVU_DELEGATE_TRUE
cristy32f75d42015-06-05 18:46:23 +0000845ddjvuapi_LIBS
846ddjvuapi_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000847FPX_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000848FPX_DELEGATE_FALSE
849FPX_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000850FFTW_LIBS
cristy32f75d42015-06-05 18:46:23 +0000851FFTW_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000852FFTW_DELEGATE_FALSE
853FFTW_DELEGATE_TRUE
cristy32f75d42015-06-05 18:46:23 +0000854fftw3_LIBS
855fftw3_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000856DPS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000857DPS_DELEGATE_FALSE
858DPS_DELEGATE_TRUE
859AUTOTRACE_DELEGATE_FALSE
860AUTOTRACE_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000861AUTOTRACE_LIBS
862AUTOTRACE_CFLAGS
863LIB_DL
cristy5eef09f2012-10-16 12:08:28 +0000864WITH_LTDL_FALSE
865WITH_LTDL_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000866ZLIB_DELEGATE_FALSE
867ZLIB_DELEGATE_TRUE
cristy32f75d42015-06-05 18:46:23 +0000868ZLIB_LIBS
869ZLIB_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000870XEXT_LIBS
871X11_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000872X11_DELEGATE_FALSE
873X11_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000874X_EXTRA_LIBS
875X_LIBS
876X_PRE_LIBS
877X_CFLAGS
cristyc7083c12009-10-14 03:16:55 +0000878XMKMF
cristy3ed852e2009-09-05 21:47:34 +0000879BZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000880BZLIB_DELEGATE_FALSE
881BZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000882CCMALLOCDelegate
883UMEM_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000884HasUMEM_FALSE
885HasUMEM_TRUE
cristy3b0097d2014-11-04 15:34:47 +0000886JEMALLOC_LIBS
887HasJEMALLOC_FALSE
888HasJEMALLOC_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000889GOMP_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000890WITH_MAGICK_PLUS_PLUS_FALSE
891WITH_MAGICK_PLUS_PLUS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000892OPENMP_CXXFLAGS
cristy161b9262010-03-20 19:34:32 +0000893MATH_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000894POW_LIB
895LIBOBJS
cristy6d5e20f2011-04-25 13:48:54 +0000896UINTPTR_F
cristy3ed852e2009-09-05 21:47:34 +0000897UINTPTR_T
cristy6d5e20f2011-04-25 13:48:54 +0000898UINTMAX_F
cristy3ed852e2009-09-05 21:47:34 +0000899UINTMAX_T
cristy6d5e20f2011-04-25 13:48:54 +0000900UINT64_F
cristy3ed852e2009-09-05 21:47:34 +0000901UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000902INT64_F
cristy3ed852e2009-09-05 21:47:34 +0000903INT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000904UINT32_F
cristy3ed852e2009-09-05 21:47:34 +0000905UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +0000906INT32_F
cristy3ed852e2009-09-05 21:47:34 +0000907INT32_T
908UINT16_T
909INT16_T
910UINT8_T
911INT8_T
912LIBRARY_EXTRA_CPPFLAGS
913MODULE_EXTRA_CPPFLAGS
914LIBSTDCLDFLAGS
915PERL_MAKE_OPTIONS
cristy3a75f062012-09-08 23:29:40 +0000916MAGICK_LT_RELEASE_OPTS
cristy7a26abd2012-12-03 00:18:59 +0000917MAGICK_ABI_SUFFIX
cristy3ed852e2009-09-05 21:47:34 +0000918QUANTUM_DEPTH
cristy71d8c202012-03-20 17:05:01 +0000919LEGACY_SUPPORT_FALSE
920LEGACY_SUPPORT_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000921MAINT
922MAINTAINER_MODE_FALSE
923MAINTAINER_MODE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000924MAGICK_HDRI
cristy73bd4a52010-10-05 11:24:23 +0000925WITH_MODULES_FALSE
926WITH_MODULES_TRUE
927WITH_SHARED_LIBS_FALSE
928WITH_SHARED_LIBS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000929LIBTOOL_DEPS
cristy73bd4a52010-10-05 11:24:23 +0000930CXXCPP
931OTOOL64
932OTOOL
933LIPO
934NMEDIT
935DSYMUTIL
cristyda16f162011-02-19 23:52:17 +0000936MANIFEST_TOOL
cristy73bd4a52010-10-05 11:24:23 +0000937RANLIB
cristy73bd4a52010-10-05 11:24:23 +0000938NM
939ac_ct_DUMPBIN
940DUMPBIN
941LIBTOOL
942OBJDUMP
943DLLTOOL
944AS
cristy3ed852e2009-09-05 21:47:34 +0000945LFS_CPPFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000946CL_LIBS
cristy736173a2009-09-20 21:18:22 +0000947CL_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000948OPENMP_CFLAGS
cristy1ae5c992013-07-30 14:55:07 +0000949THREAD_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000950PTHREAD_CFLAGS
951PTHREAD_LIBS
952PTHREAD_CC
953ax_pthread_config
cristy2ec87cc2013-02-18 17:46:50 +0000954pkgconfigdir
cristy670aa3c2011-11-03 00:54:00 +0000955SHAREARCH_DIR
956INCLUDEARCH_DIR
cristy3ed852e2009-09-05 21:47:34 +0000957WinPathScript
cristy73bd4a52010-10-05 11:24:23 +0000958USING_CL_FALSE
959USING_CL_TRUE
960CYGWIN_BUILD_FALSE
961CYGWIN_BUILD_TRUE
962WIN32_NATIVE_BUILD_FALSE
963WIN32_NATIVE_BUILD_TRUE
964WINGDI32_DELEGATE_FALSE
965WINGDI32_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000966GDI32_LIBS
cristy9b86f202012-11-28 21:55:35 +0000967HAVE_LD_VERSION_SCRIPT_FALSE
968HAVE_LD_VERSION_SCRIPT_TRUE
cristy146497a2015-05-17 22:46:16 +0000969PKG_CONFIG_LIBDIR
970PKG_CONFIG_PATH
cristy73bd4a52010-10-05 11:24:23 +0000971PKG_CONFIG
cristya0459972013-11-03 18:09:35 +0000972PRTDIAG
cristy3ed852e2009-09-05 21:47:34 +0000973LN_S
cristy3ed852e2009-09-05 21:47:34 +0000974LD
cristy73bd4a52010-10-05 11:24:23 +0000975FGREP
976SED
977am__fastdepCXX_FALSE
978am__fastdepCXX_TRUE
979CXXDEPMODE
cristy95646052009-11-28 23:05:30 +0000980ac_ct_CXX
981CXXFLAGS
982CXX
cristy9e007fe2015-01-03 16:05:07 +0000983ac_ct_AR
984AR
cristya0b81c32010-01-22 02:54:33 +0000985EGREP
986GREP
987CPP
cristy73bd4a52010-10-05 11:24:23 +0000988am__fastdepCC_FALSE
989am__fastdepCC_TRUE
990CCDEPMODE
cristy7247bba2012-02-05 16:37:27 +0000991am__nodep
cristy73bd4a52010-10-05 11:24:23 +0000992AMDEPBACKSLASH
993AMDEP_FALSE
994AMDEP_TRUE
995am__quote
996am__include
997DEPDIR
cristy3ed852e2009-09-05 21:47:34 +0000998OBJEXT
999EXEEXT
1000ac_ct_CC
1001CPPFLAGS
1002LDFLAGS
1003CFLAGS
1004CC
1005DIRSEP
1006MAGICK_FILTER_MODULE_PATH
1007MAGICK_CONFIGURE_BUILD_PATH
1008MAGICK_CONFIGURE_SRC_PATH
1009MAGICK_CODER_MODULE_PATH
1010MAN_DIR
1011INFO_DIR
1012PERSISTINCLUDE_DIR
1013INCLUDE_DIR
1014LIB_DIR
1015LOCALSTATE_DIR
1016SHAREDSTATE_DIR
1017SYSCONF_DIR
cristyd55889c2011-03-27 00:50:24 +00001018DOC_DIR
cristy3ed852e2009-09-05 21:47:34 +00001019DATA_DIR
1020LIBEXEC_DIR
1021SBIN_DIR
1022BIN_DIR
1023EXEC_PREFIX_DIR
1024PREFIX_DIR
1025CONFIG_STATUS_DEPENDENCIES
cristy5ed9c6e2013-07-14 21:20:31 +00001026MAGICKPP_LIB_VERSION_TEXT
1027MAGICKPP_LIB_VERSION
cristy3ed852e2009-09-05 21:47:34 +00001028MAGICK_LIB_VERSION_NUMBER
1029MAGICK_LIB_VERSION_TEXT
1030MAGICK_LIB_VERSION
cristy9af1cbf2014-12-28 22:03:09 +00001031PACKAGE_VERSION_ADDENDUM
1032PACKAGE_RELEASE_DATE
1033PACKAGE_LIB_VERSION_NUMBER
1034PACKAGE_LIB_VERSION
1035PACKAGE_CHANGE_DATE
1036PACKAGE_RELEASE
1037PACKAGE_PERL_VERSION
1038MAGICKPP_LIBRARY_VERSION_INFO
1039MAGICKPP_LIBRARY_CURRENT_MIN
1040MAGICKPP_LIBRARY_AGE
1041MAGICKPP_LIBRARY_REVISION
1042MAGICKPP_LIBRARY_CURRENT
1043MAGICK_LIBRARY_VERSION_INFO
1044MAGICK_LIBRARY_CURRENT_MIN
1045MAGICK_LIBRARY_AGE
1046MAGICK_LIBRARY_REVISION
1047MAGICK_LIBRARY_CURRENT
Cristyfbb8d802015-09-02 11:41:34 -04001048MAGICK_GIT_REVISION
cristy9af1cbf2014-12-28 22:03:09 +00001049MAGICK_VERSION
1050MAGICK_PATCHLEVEL_VERSION
1051MAGICK_MICRO_VERSION
1052MAGICK_MINOR_VERSION
1053MAGICK_MAJOR_VERSION
1054MAGICK_TARGET_OS
1055MAGICK_TARGET_VENDOR
1056MAGICK_TARGET_CPU
1057CONFIGURE_ARGS
1058DISTCHECK_CONFIG_FLAGS
cristy73bd4a52010-10-05 11:24:23 +00001059AM_BACKSLASH
1060AM_DEFAULT_VERBOSITY
cristyc3fb77b2012-02-06 01:49:41 +00001061AM_DEFAULT_V
1062AM_V
cristy73bd4a52010-10-05 11:24:23 +00001063am__untar
1064am__tar
1065AMTAR
1066am__leading_dot
1067SET_MAKE
1068AWK
1069mkdir_p
1070MKDIR_P
1071INSTALL_STRIP_PROGRAM
1072STRIP
1073install_sh
1074MAKEINFO
1075AUTOHEADER
1076AUTOMAKE
1077AUTOCONF
1078ACLOCAL
1079VERSION
1080PACKAGE
1081CYGPATH_W
1082am__isrc
1083INSTALL_DATA
1084INSTALL_SCRIPT
1085INSTALL_PROGRAM
cristy3ed852e2009-09-05 21:47:34 +00001086target_os
1087target_vendor
1088target_cpu
1089target
1090host_os
1091host_vendor
1092host_cpu
1093host
1094build_os
1095build_vendor
1096build_cpu
1097build
cristy3ed852e2009-09-05 21:47:34 +00001098target_alias
1099host_alias
1100build_alias
1101LIBS
1102ECHO_T
1103ECHO_N
1104ECHO_C
1105DEFS
1106mandir
1107localedir
1108libdir
1109psdir
1110pdfdir
1111dvidir
1112htmldir
1113infodir
1114docdir
1115oldincludedir
1116includedir
1117localstatedir
1118sharedstatedir
1119sysconfdir
1120datadir
1121datarootdir
1122libexecdir
1123sbindir
1124bindir
1125program_transform_name
1126prefix
1127exec_prefix
cristy8b350f62009-11-15 23:12:43 +00001128PACKAGE_URL
cristy3ed852e2009-09-05 21:47:34 +00001129PACKAGE_BUGREPORT
1130PACKAGE_STRING
1131PACKAGE_VERSION
1132PACKAGE_TARNAME
1133PACKAGE_NAME
1134PATH_SEPARATOR
1135SHELL'
1136ac_subst_files=''
1137ac_user_opts='
1138enable_option_checking
cristy73bd4a52010-10-05 11:24:23 +00001139enable_silent_rules
cristy187791c2015-05-03 22:17:00 +00001140enable_reproducible_build
cristy73bd4a52010-10-05 11:24:23 +00001141enable_dependency_tracking
1142with_gnu_ld
1143with_dmalloc
cristya0459972013-11-03 18:09:35 +00001144with_gcc_arch
cristy9b86f202012-11-28 21:55:35 +00001145enable_ld_version_script
cristy3ed852e2009-09-05 21:47:34 +00001146enable_bounds_checking
1147enable_osx_universal_binary
cristy670aa3c2011-11-03 00:54:00 +00001148with_includearch_dir
1149with_sharearch_dir
cristy2ec87cc2013-02-18 17:46:50 +00001150with_pkgconfigdir
cristy3ed852e2009-09-05 21:47:34 +00001151with_threads
1152enable_openmp
cristy73bd4a52010-10-05 11:24:23 +00001153enable_opencl
cristy3ed852e2009-09-05 21:47:34 +00001154enable_largefile
cristy73bd4a52010-10-05 11:24:23 +00001155enable_shared
1156enable_static
1157with_pic
1158enable_fast_install
cristyda16f162011-02-19 23:52:17 +00001159with_sysroot
cristy73bd4a52010-10-05 11:24:23 +00001160enable_libtool_lock
cristy3ed852e2009-09-05 21:47:34 +00001161with_modules
1162enable_delegate_build
1163enable_deprecated
1164enable_installed
1165enable_cipher
cristy6e3607c2011-09-13 13:59:17 +00001166enable_zero_configuration
cristy3ed852e2009-09-05 21:47:34 +00001167enable_hdri
cristy3ed852e2009-09-05 21:47:34 +00001168enable_assert
cristy73bd4a52010-10-05 11:24:23 +00001169enable_maintainer_mode
cristy944e51f2013-04-16 18:45:02 +00001170enable_hugepages
cristy3ed852e2009-09-05 21:47:34 +00001171enable_ccmalloc
1172enable_efence
1173enable_prof
1174enable_gprof
1175enable_gcov
1176with_method_prefix
cristy71d8c202012-03-20 17:05:01 +00001177enable_legacy_support
cristy3ed852e2009-09-05 21:47:34 +00001178with_quantum_depth
1179with_cache
1180with_frozenpaths
1181with_magick_plus_plus
cristy3a75f062012-09-08 23:29:40 +00001182with_package_release_name
cristy3ed852e2009-09-05 21:47:34 +00001183with_perl
1184with_perl_options
cristy3b0097d2014-11-04 15:34:47 +00001185with_jemalloc
cristy3ed852e2009-09-05 21:47:34 +00001186with_umem
1187with_libstdc
1188with_bzlib
cristyc7083c12009-10-14 03:16:55 +00001189with_x
cristy3ed852e2009-09-05 21:47:34 +00001190with_zlib
cristy5a3dc992014-12-05 19:50:04 +00001191with_apple_font_dir
cristy3ed852e2009-09-05 21:47:34 +00001192with_autotrace
1193with_dps
cristy430a7312010-01-21 20:44:04 +00001194with_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +00001195with_fftw
1196with_fpx
cristy853d9902014-08-21 18:50:43 +00001197with_djvu
cristy3ed852e2009-09-05 21:47:34 +00001198with_fontconfig
1199with_freetype
1200with_gslib
1201with_fontpath
1202with_gs_font_dir
1203with_gvc
1204with_jbig
1205with_jpeg
cristy3ed852e2009-09-05 21:47:34 +00001206with_lcms
cristy99db3872014-01-01 15:11:34 +00001207with_openjp2
cristy3ed852e2009-09-05 21:47:34 +00001208with_lqr
cristyfbb0ef02010-12-19 02:32:11 +00001209with_lzma
cristy3ed852e2009-09-05 21:47:34 +00001210with_openexr
cristy41cbe8a2011-10-27 01:35:18 +00001211with_pango
cristy3ed852e2009-09-05 21:47:34 +00001212with_png
1213with_rsvg
1214with_tiff
cristyb1860752011-03-14 00:27:46 +00001215with_webp
cristy3ed852e2009-09-05 21:47:34 +00001216with_windows_font_dir
1217with_wmf
1218with_xml
cristydd17feb2014-03-05 02:06:32 +00001219enable_docs
cristy3ed852e2009-09-05 21:47:34 +00001220'
1221 ac_precious_vars='build_alias
1222host_alias
1223target_alias
1224CC
1225CFLAGS
1226LDFLAGS
1227LIBS
1228CPPFLAGS
cristya0b81c32010-01-22 02:54:33 +00001229CPP
cristy3ed852e2009-09-05 21:47:34 +00001230CXX
1231CXXFLAGS
1232CCC
cristy73bd4a52010-10-05 11:24:23 +00001233PKG_CONFIG
cristy146497a2015-05-17 22:46:16 +00001234PKG_CONFIG_PATH
1235PKG_CONFIG_LIBDIR
cristy73bd4a52010-10-05 11:24:23 +00001236CXXCPP
cristyc7083c12009-10-14 03:16:55 +00001237XMKMF
cristy32f75d42015-06-05 18:46:23 +00001238ZLIB_CFLAGS
1239ZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001240AUTOTRACE_CFLAGS
1241AUTOTRACE_LIBS
cristy32f75d42015-06-05 18:46:23 +00001242fftw3_CFLAGS
1243fftw3_LIBS
1244ddjvuapi_CFLAGS
1245ddjvuapi_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001246FONTCONFIG_CFLAGS
1247FONTCONFIG_LIBS
cristy03f187e2013-01-24 00:22:19 +00001248FREETYPE_CFLAGS
1249FREETYPE_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001250GVC_CFLAGS
1251GVC_LIBS
cristyb054e072015-06-05 20:35:43 +00001252LCMS2_CFLAGS
1253LCMS2_LIBS
cristy99db3872014-01-01 15:11:34 +00001254LIBOPENJP2_CFLAGS
1255LIBOPENJP2_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001256LQR_CFLAGS
1257LQR_LIBS
cristyb94e5002011-11-14 13:20:10 +00001258LZMA_CFLAGS
1259LZMA_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001260OPENEXR_CFLAGS
1261OPENEXR_LIBS
cristy41cbe8a2011-10-27 01:35:18 +00001262PANGO_CFLAGS
1263PANGO_LIBS
cristy32f75d42015-06-05 18:46:23 +00001264PNG_CFLAGS
1265PNG_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001266RSVG_CFLAGS
1267RSVG_LIBS
1268CAIRO_SVG_CFLAGS
cristy32f75d42015-06-05 18:46:23 +00001269CAIRO_SVG_LIBS
cristy32f75d42015-06-05 18:46:23 +00001270XML_CFLAGS
1271XML_LIBS'
cristy3ed852e2009-09-05 21:47:34 +00001272
1273
1274# Initialize some variables set by options.
1275ac_init_help=
1276ac_init_version=false
1277ac_unrecognized_opts=
1278ac_unrecognized_sep=
1279# The variables have the same names as the options, with
1280# dashes changed to underlines.
1281cache_file=/dev/null
1282exec_prefix=NONE
1283no_create=
1284no_recursion=
1285prefix=NONE
1286program_prefix=NONE
1287program_suffix=NONE
1288program_transform_name=s,x,x,
1289silent=
1290site=
1291srcdir=
1292verbose=
1293x_includes=NONE
1294x_libraries=NONE
1295
1296# Installation directory options.
1297# These are left unexpanded so users can "make install exec_prefix=/foo"
1298# and all the variables that are supposed to be based on exec_prefix
1299# by default will actually change.
1300# Use braces instead of parens because sh, perl, etc. also accept them.
1301# (The list follows the same order as the GNU Coding Standards.)
1302bindir='${exec_prefix}/bin'
1303sbindir='${exec_prefix}/sbin'
1304libexecdir='${exec_prefix}/libexec'
1305datarootdir='${prefix}/share'
1306datadir='${datarootdir}'
1307sysconfdir='${prefix}/etc'
1308sharedstatedir='${prefix}/com'
1309localstatedir='${prefix}/var'
1310includedir='${prefix}/include'
1311oldincludedir='/usr/include'
1312docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1313infodir='${datarootdir}/info'
1314htmldir='${docdir}'
1315dvidir='${docdir}'
1316pdfdir='${docdir}'
1317psdir='${docdir}'
1318libdir='${exec_prefix}/lib'
1319localedir='${datarootdir}/locale'
1320mandir='${datarootdir}/man'
1321
1322ac_prev=
1323ac_dashdash=
1324for ac_option
1325do
1326 # If the previous option needs an argument, assign it.
1327 if test -n "$ac_prev"; then
1328 eval $ac_prev=\$ac_option
1329 ac_prev=
1330 continue
1331 fi
1332
1333 case $ac_option in
cristyda16f162011-02-19 23:52:17 +00001334 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1335 *=) ac_optarg= ;;
1336 *) ac_optarg=yes ;;
cristy3ed852e2009-09-05 21:47:34 +00001337 esac
1338
1339 # Accept the important Cygnus configure options, so we can diagnose typos.
1340
1341 case $ac_dashdash$ac_option in
1342 --)
1343 ac_dashdash=yes ;;
1344
1345 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1346 ac_prev=bindir ;;
1347 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1348 bindir=$ac_optarg ;;
1349
1350 -build | --build | --buil | --bui | --bu)
1351 ac_prev=build_alias ;;
1352 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1353 build_alias=$ac_optarg ;;
1354
1355 -cache-file | --cache-file | --cache-fil | --cache-fi \
1356 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1357 ac_prev=cache_file ;;
1358 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1359 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1360 cache_file=$ac_optarg ;;
1361
1362 --config-cache | -C)
1363 cache_file=config.cache ;;
1364
1365 -datadir | --datadir | --datadi | --datad)
1366 ac_prev=datadir ;;
1367 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1368 datadir=$ac_optarg ;;
1369
1370 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1371 | --dataroo | --dataro | --datar)
1372 ac_prev=datarootdir ;;
1373 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1374 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1375 datarootdir=$ac_optarg ;;
1376
1377 -disable-* | --disable-*)
1378 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
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--disable-$ac_useropt_orig"
1389 ac_unrecognized_sep=', ';;
1390 esac
1391 eval enable_$ac_useropt=no ;;
1392
1393 -docdir | --docdir | --docdi | --doc | --do)
1394 ac_prev=docdir ;;
1395 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1396 docdir=$ac_optarg ;;
1397
1398 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1399 ac_prev=dvidir ;;
1400 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1401 dvidir=$ac_optarg ;;
1402
1403 -enable-* | --enable-*)
1404 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1405 # Reject names that are not valid shell variable names.
1406 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001407 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001408 ac_useropt_orig=$ac_useropt
1409 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1410 case $ac_user_opts in
1411 *"
1412"enable_$ac_useropt"
1413"*) ;;
1414 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1415 ac_unrecognized_sep=', ';;
1416 esac
1417 eval enable_$ac_useropt=\$ac_optarg ;;
1418
1419 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1420 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1421 | --exec | --exe | --ex)
1422 ac_prev=exec_prefix ;;
1423 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1424 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1425 | --exec=* | --exe=* | --ex=*)
1426 exec_prefix=$ac_optarg ;;
1427
1428 -gas | --gas | --ga | --g)
1429 # Obsolete; use --with-gas.
1430 with_gas=yes ;;
1431
1432 -help | --help | --hel | --he | -h)
1433 ac_init_help=long ;;
1434 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1435 ac_init_help=recursive ;;
1436 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1437 ac_init_help=short ;;
1438
1439 -host | --host | --hos | --ho)
1440 ac_prev=host_alias ;;
1441 -host=* | --host=* | --hos=* | --ho=*)
1442 host_alias=$ac_optarg ;;
1443
1444 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1445 ac_prev=htmldir ;;
1446 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1447 | --ht=*)
1448 htmldir=$ac_optarg ;;
1449
1450 -includedir | --includedir | --includedi | --included | --include \
1451 | --includ | --inclu | --incl | --inc)
1452 ac_prev=includedir ;;
1453 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1454 | --includ=* | --inclu=* | --incl=* | --inc=*)
1455 includedir=$ac_optarg ;;
1456
1457 -infodir | --infodir | --infodi | --infod | --info | --inf)
1458 ac_prev=infodir ;;
1459 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1460 infodir=$ac_optarg ;;
1461
1462 -libdir | --libdir | --libdi | --libd)
1463 ac_prev=libdir ;;
1464 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1465 libdir=$ac_optarg ;;
1466
1467 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1468 | --libexe | --libex | --libe)
1469 ac_prev=libexecdir ;;
1470 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1471 | --libexe=* | --libex=* | --libe=*)
1472 libexecdir=$ac_optarg ;;
1473
1474 -localedir | --localedir | --localedi | --localed | --locale)
1475 ac_prev=localedir ;;
1476 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1477 localedir=$ac_optarg ;;
1478
1479 -localstatedir | --localstatedir | --localstatedi | --localstated \
1480 | --localstate | --localstat | --localsta | --localst | --locals)
1481 ac_prev=localstatedir ;;
1482 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1483 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1484 localstatedir=$ac_optarg ;;
1485
1486 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1487 ac_prev=mandir ;;
1488 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1489 mandir=$ac_optarg ;;
1490
1491 -nfp | --nfp | --nf)
1492 # Obsolete; use --without-fp.
1493 with_fp=no ;;
1494
1495 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1496 | --no-cr | --no-c | -n)
1497 no_create=yes ;;
1498
1499 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1500 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1501 no_recursion=yes ;;
1502
1503 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1504 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1505 | --oldin | --oldi | --old | --ol | --o)
1506 ac_prev=oldincludedir ;;
1507 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1508 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1509 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1510 oldincludedir=$ac_optarg ;;
1511
1512 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1513 ac_prev=prefix ;;
1514 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1515 prefix=$ac_optarg ;;
1516
1517 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1518 | --program-pre | --program-pr | --program-p)
1519 ac_prev=program_prefix ;;
1520 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1521 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1522 program_prefix=$ac_optarg ;;
1523
1524 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1525 | --program-suf | --program-su | --program-s)
1526 ac_prev=program_suffix ;;
1527 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1528 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1529 program_suffix=$ac_optarg ;;
1530
1531 -program-transform-name | --program-transform-name \
1532 | --program-transform-nam | --program-transform-na \
1533 | --program-transform-n | --program-transform- \
1534 | --program-transform | --program-transfor \
1535 | --program-transfo | --program-transf \
1536 | --program-trans | --program-tran \
1537 | --progr-tra | --program-tr | --program-t)
1538 ac_prev=program_transform_name ;;
1539 -program-transform-name=* | --program-transform-name=* \
1540 | --program-transform-nam=* | --program-transform-na=* \
1541 | --program-transform-n=* | --program-transform-=* \
1542 | --program-transform=* | --program-transfor=* \
1543 | --program-transfo=* | --program-transf=* \
1544 | --program-trans=* | --program-tran=* \
1545 | --progr-tra=* | --program-tr=* | --program-t=*)
1546 program_transform_name=$ac_optarg ;;
1547
1548 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1549 ac_prev=pdfdir ;;
1550 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1551 pdfdir=$ac_optarg ;;
1552
1553 -psdir | --psdir | --psdi | --psd | --ps)
1554 ac_prev=psdir ;;
1555 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1556 psdir=$ac_optarg ;;
1557
1558 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1559 | -silent | --silent | --silen | --sile | --sil)
1560 silent=yes ;;
1561
1562 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1563 ac_prev=sbindir ;;
1564 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1565 | --sbi=* | --sb=*)
1566 sbindir=$ac_optarg ;;
1567
1568 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1569 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1570 | --sharedst | --shareds | --shared | --share | --shar \
1571 | --sha | --sh)
1572 ac_prev=sharedstatedir ;;
1573 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1574 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1575 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1576 | --sha=* | --sh=*)
1577 sharedstatedir=$ac_optarg ;;
1578
1579 -site | --site | --sit)
1580 ac_prev=site ;;
1581 -site=* | --site=* | --sit=*)
1582 site=$ac_optarg ;;
1583
1584 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1585 ac_prev=srcdir ;;
1586 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1587 srcdir=$ac_optarg ;;
1588
1589 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1590 | --syscon | --sysco | --sysc | --sys | --sy)
1591 ac_prev=sysconfdir ;;
1592 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1593 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1594 sysconfdir=$ac_optarg ;;
1595
1596 -target | --target | --targe | --targ | --tar | --ta | --t)
1597 ac_prev=target_alias ;;
1598 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1599 target_alias=$ac_optarg ;;
1600
1601 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1602 verbose=yes ;;
1603
1604 -version | --version | --versio | --versi | --vers | -V)
1605 ac_init_version=: ;;
1606
1607 -with-* | --with-*)
1608 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1609 # Reject names that are not valid shell variable names.
1610 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001611 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001612 ac_useropt_orig=$ac_useropt
1613 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1614 case $ac_user_opts in
1615 *"
1616"with_$ac_useropt"
1617"*) ;;
1618 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1619 ac_unrecognized_sep=', ';;
1620 esac
1621 eval with_$ac_useropt=\$ac_optarg ;;
1622
1623 -without-* | --without-*)
1624 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1625 # Reject names that are not valid shell variable names.
1626 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001627 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001628 ac_useropt_orig=$ac_useropt
1629 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1630 case $ac_user_opts in
1631 *"
1632"with_$ac_useropt"
1633"*) ;;
1634 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1635 ac_unrecognized_sep=', ';;
1636 esac
1637 eval with_$ac_useropt=no ;;
1638
1639 --x)
1640 # Obsolete; use --with-x.
1641 with_x=yes ;;
1642
1643 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1644 | --x-incl | --x-inc | --x-in | --x-i)
1645 ac_prev=x_includes ;;
1646 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1647 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1648 x_includes=$ac_optarg ;;
1649
1650 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1651 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1652 ac_prev=x_libraries ;;
1653 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1654 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1655 x_libraries=$ac_optarg ;;
1656
cristy98dddb52010-11-04 00:30:15 +00001657 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1658Try \`$0 --help' for more information"
cristy3ed852e2009-09-05 21:47:34 +00001659 ;;
1660
1661 *=*)
1662 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1663 # Reject names that are not valid shell variable names.
cristy8b350f62009-11-15 23:12:43 +00001664 case $ac_envvar in #(
1665 '' | [0-9]* | *[!_$as_cr_alnum]* )
cristy98dddb52010-11-04 00:30:15 +00001666 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
cristy8b350f62009-11-15 23:12:43 +00001667 esac
cristy3ed852e2009-09-05 21:47:34 +00001668 eval $ac_envvar=\$ac_optarg
1669 export $ac_envvar ;;
1670
1671 *)
1672 # FIXME: should be removed in autoconf 3.0.
1673 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1674 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1675 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
cristyda16f162011-02-19 23:52:17 +00001676 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
cristy3ed852e2009-09-05 21:47:34 +00001677 ;;
1678
1679 esac
1680done
1681
1682if test -n "$ac_prev"; then
1683 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cristy98dddb52010-11-04 00:30:15 +00001684 as_fn_error $? "missing argument to $ac_option"
cristy3ed852e2009-09-05 21:47:34 +00001685fi
1686
1687if test -n "$ac_unrecognized_opts"; then
1688 case $enable_option_checking in
1689 no) ;;
cristy98dddb52010-11-04 00:30:15 +00001690 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
cristy3ed852e2009-09-05 21:47:34 +00001691 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1692 esac
1693fi
1694
1695# Check all directory arguments for consistency.
1696for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1697 datadir sysconfdir sharedstatedir localstatedir includedir \
1698 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1699 libdir localedir mandir
1700do
1701 eval ac_val=\$$ac_var
1702 # Remove trailing slashes.
1703 case $ac_val in
1704 */ )
1705 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1706 eval $ac_var=\$ac_val;;
1707 esac
1708 # Be sure to have absolute directory names.
1709 case $ac_val in
1710 [\\/$]* | ?:[\\/]* ) continue;;
1711 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1712 esac
cristy98dddb52010-11-04 00:30:15 +00001713 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
cristy3ed852e2009-09-05 21:47:34 +00001714done
1715
1716# There might be people who depend on the old broken behavior: `$host'
1717# used to hold the argument of --host etc.
1718# FIXME: To remove some day.
1719build=$build_alias
1720host=$host_alias
1721target=$target_alias
1722
1723# FIXME: To remove some day.
1724if test "x$host_alias" != x; then
1725 if test "x$build_alias" = x; then
1726 cross_compiling=maybe
cristy3ed852e2009-09-05 21:47:34 +00001727 elif test "x$build_alias" != "x$host_alias"; then
1728 cross_compiling=yes
1729 fi
1730fi
1731
1732ac_tool_prefix=
1733test -n "$host_alias" && ac_tool_prefix=$host_alias-
1734
1735test "$silent" = yes && exec 6>/dev/null
1736
1737
1738ac_pwd=`pwd` && test -n "$ac_pwd" &&
1739ac_ls_di=`ls -di .` &&
1740ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cristy98dddb52010-11-04 00:30:15 +00001741 as_fn_error $? "working directory cannot be determined"
cristy3ed852e2009-09-05 21:47:34 +00001742test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cristy98dddb52010-11-04 00:30:15 +00001743 as_fn_error $? "pwd does not report name of working directory"
cristy3ed852e2009-09-05 21:47:34 +00001744
1745
1746# Find the source files, if location was not specified.
1747if test -z "$srcdir"; then
1748 ac_srcdir_defaulted=yes
1749 # Try the directory containing this script, then the parent directory.
1750 ac_confdir=`$as_dirname -- "$as_myself" ||
1751$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1752 X"$as_myself" : 'X\(//\)[^/]' \| \
1753 X"$as_myself" : 'X\(//\)$' \| \
1754 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1755$as_echo X"$as_myself" |
1756 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1757 s//\1/
1758 q
1759 }
1760 /^X\(\/\/\)[^/].*/{
1761 s//\1/
1762 q
1763 }
1764 /^X\(\/\/\)$/{
1765 s//\1/
1766 q
1767 }
1768 /^X\(\/\).*/{
1769 s//\1/
1770 q
1771 }
1772 s/.*/./; q'`
1773 srcdir=$ac_confdir
1774 if test ! -r "$srcdir/$ac_unique_file"; then
1775 srcdir=..
1776 fi
1777else
1778 ac_srcdir_defaulted=no
1779fi
1780if test ! -r "$srcdir/$ac_unique_file"; then
1781 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cristy98dddb52010-11-04 00:30:15 +00001782 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
cristy3ed852e2009-09-05 21:47:34 +00001783fi
1784ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1785ac_abs_confdir=`(
cristy98dddb52010-11-04 00:30:15 +00001786 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
cristy3ed852e2009-09-05 21:47:34 +00001787 pwd)`
1788# When building in place, set srcdir=.
1789if test "$ac_abs_confdir" = "$ac_pwd"; then
1790 srcdir=.
1791fi
1792# Remove unnecessary trailing slashes from srcdir.
1793# Double slashes in file names in object file debugging info
1794# mess up M-x gdb in Emacs.
1795case $srcdir in
1796*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1797esac
1798for ac_var in $ac_precious_vars; do
1799 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1800 eval ac_env_${ac_var}_value=\$${ac_var}
1801 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1802 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1803done
1804
1805#
1806# Report the --help message.
1807#
1808if test "$ac_init_help" = "long"; then
1809 # Omit some internal or obsolete options to make the list less imposing.
1810 # This message is too long to be a string in the A/UX 3.1 sh.
1811 cat <<_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00001812\`configure' configures ImageMagick 7.0.0-0 to adapt to many kinds of systems.
cristy3ed852e2009-09-05 21:47:34 +00001813
1814Usage: $0 [OPTION]... [VAR=VALUE]...
1815
1816To assign environment variables (e.g., CC, CFLAGS...), specify them as
1817VAR=VALUE. See below for descriptions of some of the useful variables.
1818
1819Defaults for the options are specified in brackets.
1820
1821Configuration:
1822 -h, --help display this help and exit
1823 --help=short display options specific to this package
1824 --help=recursive display the short help of all the included packages
1825 -V, --version display version information and exit
cristy98dddb52010-11-04 00:30:15 +00001826 -q, --quiet, --silent do not print \`checking ...' messages
cristy3ed852e2009-09-05 21:47:34 +00001827 --cache-file=FILE cache test results in FILE [disabled]
1828 -C, --config-cache alias for \`--cache-file=config.cache'
1829 -n, --no-create do not create output files
1830 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1831
1832Installation directories:
1833 --prefix=PREFIX install architecture-independent files in PREFIX
1834 [$ac_default_prefix]
1835 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1836 [PREFIX]
1837
1838By default, \`make install' will install all the files in
1839\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1840an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1841for instance \`--prefix=\$HOME'.
1842
1843For better control, use the options below.
1844
1845Fine tuning of the installation directories:
1846 --bindir=DIR user executables [EPREFIX/bin]
1847 --sbindir=DIR system admin executables [EPREFIX/sbin]
1848 --libexecdir=DIR program executables [EPREFIX/libexec]
1849 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1850 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1851 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1852 --libdir=DIR object code libraries [EPREFIX/lib]
1853 --includedir=DIR C header files [PREFIX/include]
1854 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1855 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1856 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1857 --infodir=DIR info documentation [DATAROOTDIR/info]
1858 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1859 --mandir=DIR man documentation [DATAROOTDIR/man]
Cristyff282552015-09-19 16:49:39 -04001860 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick]
cristy3ed852e2009-09-05 21:47:34 +00001861 --htmldir=DIR html documentation [DOCDIR]
1862 --dvidir=DIR dvi documentation [DOCDIR]
1863 --pdfdir=DIR pdf documentation [DOCDIR]
1864 --psdir=DIR ps documentation [DOCDIR]
1865_ACEOF
1866
1867 cat <<\_ACEOF
1868
cristy73bd4a52010-10-05 11:24:23 +00001869Program names:
1870 --program-prefix=PREFIX prepend PREFIX to installed program names
1871 --program-suffix=SUFFIX append SUFFIX to installed program names
1872 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1873
cristy3ed852e2009-09-05 21:47:34 +00001874X features:
1875 --x-includes=DIR X include files are in DIR
1876 --x-libraries=DIR X library files are in DIR
1877
1878System types:
1879 --build=BUILD configure for building on BUILD [guessed]
1880 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1881 --target=TARGET configure for building compilers for TARGET [HOST]
1882_ACEOF
1883fi
1884
1885if test -n "$ac_init_help"; then
1886 case $ac_init_help in
cristy29eb34e2011-10-16 00:46:08 +00001887 short | recursive ) echo "Configuration of ImageMagick 7.0.0-0:";;
cristy3ed852e2009-09-05 21:47:34 +00001888 esac
1889 cat <<\_ACEOF
1890
1891Optional Features:
1892 --disable-option-checking ignore unrecognized --enable/--with options
1893 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1894 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
cristyc0890a62012-07-19 00:18:20 +00001895 --enable-silent-rules less verbose build output (undo: "make V=1")
1896 --disable-silent-rules verbose build output (undo: "make V=0")
cristy187791c2015-05-03 22:17:00 +00001897 --enable-reproducible-build
1898 enable reproducible build
cristyc0890a62012-07-19 00:18:20 +00001899 --enable-dependency-tracking
1900 do not reject slow dependency extractors
1901 --disable-dependency-tracking
1902 speeds up one-time build
cristy9b86f202012-11-28 21:55:35 +00001903 --enable-ld-version-script
1904 enable linker version script (default is enabled
1905 when possible)
cristya3824692012-03-30 17:22:07 +00001906 --enable-bounds-checking
1907 enable run-time bounds-checking
cristy3ed852e2009-09-05 21:47:34 +00001908 --enable-osx-universal-binary
cristycd4c5312009-11-22 01:19:08 +00001909 build universal binary on OS X [[default=no]]
cristy3ed852e2009-09-05 21:47:34 +00001910 --disable-openmp do not use OpenMP
cristy48794642012-09-02 15:19:08 +00001911 --enable-opencl enable OpenCL support
cristy3ed852e2009-09-05 21:47:34 +00001912 --disable-largefile omit support for large files
cristy73bd4a52010-10-05 11:24:23 +00001913 --enable-shared[=PKGS] build shared libraries [default=yes]
1914 --enable-static[=PKGS] build static libraries [default=yes]
1915 --enable-fast-install[=PKGS]
1916 optimize for fast installation [default=yes]
1917 --disable-libtool-lock avoid locking (might break parallel builds)
cristy3ed852e2009-09-05 21:47:34 +00001918 --enable-delegate-build look for delegate libraries in build directory
1919 --disable-deprecated exclude deprecated methods in MagickCore and
cristy3a75f062012-09-08 23:29:40 +00001920 MagickWand APIs
cristy3ed852e2009-09-05 21:47:34 +00001921 --disable-installed Formally install ImageMagick under PREFIX
1922 --disable-cipher disable enciphering and deciphering image pixels
cristy6e3607c2011-09-13 13:59:17 +00001923 --enable-zero-configuration
1924 enable self-contained, embeddable,
cristy3ed852e2009-09-05 21:47:34 +00001925 zero-configuration ImageMagick
cristyf314dbd2012-11-15 13:35:28 +00001926 --enable-hdri accurately represent the wide range of intensity
cristy3ed852e2009-09-05 21:47:34 +00001927 levels found in real scenes
cristy3ed852e2009-09-05 21:47:34 +00001928 --disable-assert disable assert() statements in build
cristyc0890a62012-07-19 00:18:20 +00001929 --enable-maintainer-mode
1930 enable make rules and dependencies not useful (and
1931 sometimes confusing) to the casual installer
cristy944e51f2013-04-16 18:45:02 +00001932 --enable-hugepages enable 'huge pages' support
cristy3ed852e2009-09-05 21:47:34 +00001933 --enable-ccmalloc enable 'ccmalloc' memory debug support
1934 --enable-efence enable 'efence' memory debug support
1935 --enable-prof enable 'prof' profiling support
1936 --enable-gprof enable 'gprof' profiling support
1937 --enable-gcov enable 'gcov' profiling support
cristy71d8c202012-03-20 17:05:01 +00001938 --enable-legacy-support install legacy command-line utilities (default disabled)
cristya0b81c32010-01-22 02:54:33 +00001939 --disable-assert turn off assertions
cristydd17feb2014-03-05 02:06:32 +00001940 --disable-docs disable building of documentation
cristy3ed852e2009-09-05 21:47:34 +00001941
1942Optional Packages:
1943 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1944 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
cristy73bd4a52010-10-05 11:24:23 +00001945 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
cristy7247bba2012-02-05 16:37:27 +00001946 --with-dmalloc use dmalloc, as in http://www.dmalloc.com
cristya0459972013-11-03 18:09:35 +00001947 --with-gcc-arch=<arch> use architecture <arch> for gcc -march/-mtune,
1948 instead of guessing
cristy670aa3c2011-11-03 00:54:00 +00001949 --includearch-dir=DIR ARCH specific include directory
1950 --sharearch-dir=DIR ARCH specific config directory
cristy2ec87cc2013-02-18 17:46:50 +00001951 --with-pkgconfigdir=DIR Path to the pkgconfig directory [LIBDIR/pkgconfig]
cristy3ed852e2009-09-05 21:47:34 +00001952 --without-threads disable threads support
cristy99bd5232011-12-07 14:38:20 +00001953 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
cristy73bd4a52010-10-05 11:24:23 +00001954 both]
cristyda16f162011-02-19 23:52:17 +00001955 --with-sysroot=DIR Search for dependent libraries within DIR
1956 (or the compiler's sysroot if not specified).
cristy3ed852e2009-09-05 21:47:34 +00001957 --with-modules enable building dynamically loadable modules
1958 --with-method-prefix=PREFIX
1959 prefix MagickCore API methods
1960 --with-quantum-depth=DEPTH
1961 number of bits in a pixel quantum (default 16)
1962 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1963 memory)
1964 --with-frozenpaths freeze delegate paths
1965 --without-magick-plus-plus
1966 disable build/install of Magick++
cristy3a75f062012-09-08 23:29:40 +00001967 --with-package-release-name=NAME
1968 encode this name into the shared library
cristy3ed852e2009-09-05 21:47:34 +00001969 --with-perl enable build/install of PerlMagick
1970 --with-perl-options=OPTIONS
1971 options to pass on command-line when generating
cristyfc3d0222012-02-07 15:05:57 +00001972 PerlMagick build file
cristy3b0097d2014-11-04 15:34:47 +00001973 --with-jemalloc enable jemalloc memory allocation library support
cristy3ed852e2009-09-05 21:47:34 +00001974 --with-umem enable umem memory allocation library support
1975 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1976 --without-bzlib disable BZLIB support
cristyc7083c12009-10-14 03:16:55 +00001977 --with-x use the X Window System
cristy3ed852e2009-09-05 21:47:34 +00001978 --without-zlib disable ZLIB support
cristy5a3dc992014-12-05 19:50:04 +00001979 --with-apple-font-dir=DIR
1980 Apple font directory
cristy3ed852e2009-09-05 21:47:34 +00001981 --with-autotrace enable autotrace support
1982 --without-dps disable Display Postscript support
cristy430a7312010-01-21 20:44:04 +00001983 --with-dejavu-font-dir=DIR
1984 DejaVu font directory
cristy3ed852e2009-09-05 21:47:34 +00001985 --without-fftw disable FFTW support
1986 --without-fpx disable FlashPIX support
cristy853d9902014-08-21 18:50:43 +00001987 --without-djvu disable DjVu support
cristy3ed852e2009-09-05 21:47:34 +00001988 --without-fontconfig disable fontconfig support
cristy81beccd2011-10-03 18:17:24 +00001989 --without-freetype disable Freetype support
cristybdabdd62013-03-04 17:43:36 +00001990 --with-gslib enable Ghostscript library support
cristy3ed852e2009-09-05 21:47:34 +00001991 --with-fontpath=DIR prepend to default font search path
1992 --with-gs-font-dir=DIR Ghostscript font directory
cristybdabdd62013-03-04 17:43:36 +00001993 --with-gvc enable GVC support
cristy3ed852e2009-09-05 21:47:34 +00001994 --without-jbig disable JBIG support
1995 --without-jpeg disable JPEG support
cristy71203402010-06-18 13:12:03 +00001996 --without-lcms disable lcms (v1.1X) support
cristy99db3872014-01-01 15:11:34 +00001997 --without-openjp2 disable OpenJP2 support
cristyf0c78232010-03-15 12:53:40 +00001998 --without-lqr disable Liquid Rescale support
cristyfbb0ef02010-12-19 02:32:11 +00001999 --without-lzma disable LZMA support
cristy3ed852e2009-09-05 21:47:34 +00002000 --without-openexr disable OpenEXR support
cristy41cbe8a2011-10-27 01:35:18 +00002001 --without-pango disable PANGO support
cristy3ed852e2009-09-05 21:47:34 +00002002 --without-png disable PNG support
cristy51633f52013-04-23 14:03:19 +00002003 --with-rsvg enable RSVG support
cristy3ed852e2009-09-05 21:47:34 +00002004 --without-tiff disable TIFF support
cristyb1860752011-03-14 00:27:46 +00002005 --without-webp disable WEBP support
cristy3ed852e2009-09-05 21:47:34 +00002006 --with-windows-font-dir=DIR
cristy5a3dc992014-12-05 19:50:04 +00002007 Windows font directory
cristyde3fc5d2012-02-12 15:40:47 +00002008 --with-wmf enable WMF support
cristy3ed852e2009-09-05 21:47:34 +00002009 --without-xml disable XML support
2010
2011Some influential environment variables:
2012 CC C compiler command
2013 CFLAGS C compiler flags
2014 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2015 nonstandard directory <lib dir>
2016 LIBS libraries to pass to the linker, e.g. -l<library>
cristycd4c5312009-11-22 01:19:08 +00002017 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cristy3ed852e2009-09-05 21:47:34 +00002018 you have headers in a nonstandard directory <include dir>
cristya0b81c32010-01-22 02:54:33 +00002019 CPP C preprocessor
cristy3ed852e2009-09-05 21:47:34 +00002020 CXX C++ compiler command
2021 CXXFLAGS C++ compiler flags
cristy73bd4a52010-10-05 11:24:23 +00002022 PKG_CONFIG path to pkg-config utility
cristy146497a2015-05-17 22:46:16 +00002023 PKG_CONFIG_PATH
2024 directories to add to pkg-config's search path
2025 PKG_CONFIG_LIBDIR
2026 path overriding pkg-config's built-in search path
nicolas6237c462010-10-05 06:11:49 +00002027 CXXCPP C++ preprocessor
cristy73bd4a52010-10-05 11:24:23 +00002028 XMKMF Path to xmkmf, Makefile generator for X Window System
cristy32f75d42015-06-05 18:46:23 +00002029 ZLIB_CFLAGS C compiler flags for ZLIB, overriding pkg-config
2030 ZLIB_LIBS linker flags for ZLIB, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00002031 AUTOTRACE_CFLAGS
2032 C compiler flags for AUTOTRACE, overriding pkg-config
2033 AUTOTRACE_LIBS
2034 linker flags for AUTOTRACE, overriding pkg-config
cristy32f75d42015-06-05 18:46:23 +00002035 fftw3_CFLAGS
2036 C compiler flags for fftw3, overriding pkg-config
2037 fftw3_LIBS linker flags for fftw3, overriding pkg-config
2038 ddjvuapi_CFLAGS
2039 C compiler flags for ddjvuapi, overriding pkg-config
2040 ddjvuapi_LIBS
2041 linker flags for ddjvuapi, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00002042 FONTCONFIG_CFLAGS
2043 C compiler flags for FONTCONFIG, overriding pkg-config
2044 FONTCONFIG_LIBS
2045 linker flags for FONTCONFIG, overriding pkg-config
cristy03f187e2013-01-24 00:22:19 +00002046 FREETYPE_CFLAGS
2047 C compiler flags for FREETYPE, overriding pkg-config
2048 FREETYPE_LIBS
2049 linker flags for FREETYPE, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00002050 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
2051 GVC_LIBS linker flags for GVC, overriding pkg-config
cristyb054e072015-06-05 20:35:43 +00002052 LCMS2_CFLAGS
2053 C compiler flags for LCMS2, overriding pkg-config
2054 LCMS2_LIBS linker flags for LCMS2, overriding pkg-config
cristy99db3872014-01-01 15:11:34 +00002055 LIBOPENJP2_CFLAGS
2056 C compiler flags for LIBOPENJP2, overriding pkg-config
2057 LIBOPENJP2_LIBS
2058 linker flags for LIBOPENJP2, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00002059 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
2060 LQR_LIBS linker flags for LQR, overriding pkg-config
cristyb94e5002011-11-14 13:20:10 +00002061 LZMA_CFLAGS C compiler flags for LZMA, overriding pkg-config
2062 LZMA_LIBS linker flags for LZMA, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00002063 OPENEXR_CFLAGS
2064 C compiler flags for OPENEXR, overriding pkg-config
2065 OPENEXR_LIBS
2066 linker flags for OPENEXR, overriding pkg-config
cristy41cbe8a2011-10-27 01:35:18 +00002067 PANGO_CFLAGS
2068 C compiler flags for PANGO, overriding pkg-config
2069 PANGO_LIBS linker flags for PANGO, overriding pkg-config
cristy32f75d42015-06-05 18:46:23 +00002070 PNG_CFLAGS C compiler flags for PNG, overriding pkg-config
2071 PNG_LIBS linker flags for PNG, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00002072 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
2073 RSVG_LIBS linker flags for RSVG, overriding pkg-config
2074 CAIRO_SVG_CFLAGS
2075 C compiler flags for CAIRO_SVG, overriding pkg-config
2076 CAIRO_SVG_LIBS
2077 linker flags for CAIRO_SVG, overriding pkg-config
cristy32f75d42015-06-05 18:46:23 +00002078 XML_CFLAGS C compiler flags for XML, overriding pkg-config
2079 XML_LIBS linker flags for XML, overriding pkg-config
cristy3ed852e2009-09-05 21:47:34 +00002080
2081Use these variables to override the choices made by `configure' or to help
2082it to find libraries and programs with nonstandard names/locations.
2083
2084Report bugs to <http://www.imagemagick.org>.
2085_ACEOF
2086ac_status=$?
2087fi
2088
2089if test "$ac_init_help" = "recursive"; then
2090 # If there are subdirs, report their specific --help.
2091 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2092 test -d "$ac_dir" ||
2093 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2094 continue
2095 ac_builddir=.
2096
2097case "$ac_dir" in
2098.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2099*)
2100 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2101 # A ".." for each directory in $ac_dir_suffix.
2102 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2103 case $ac_top_builddir_sub in
2104 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2105 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2106 esac ;;
2107esac
2108ac_abs_top_builddir=$ac_pwd
2109ac_abs_builddir=$ac_pwd$ac_dir_suffix
2110# for backward compatibility:
2111ac_top_builddir=$ac_top_build_prefix
2112
2113case $srcdir in
2114 .) # We are building in place.
2115 ac_srcdir=.
2116 ac_top_srcdir=$ac_top_builddir_sub
2117 ac_abs_top_srcdir=$ac_pwd ;;
2118 [\\/]* | ?:[\\/]* ) # Absolute name.
2119 ac_srcdir=$srcdir$ac_dir_suffix;
2120 ac_top_srcdir=$srcdir
2121 ac_abs_top_srcdir=$srcdir ;;
2122 *) # Relative name.
2123 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2124 ac_top_srcdir=$ac_top_build_prefix$srcdir
2125 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2126esac
2127ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2128
2129 cd "$ac_dir" || { ac_status=$?; continue; }
2130 # Check for guested configure.
2131 if test -f "$ac_srcdir/configure.gnu"; then
2132 echo &&
2133 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2134 elif test -f "$ac_srcdir/configure"; then
2135 echo &&
2136 $SHELL "$ac_srcdir/configure" --help=recursive
2137 else
2138 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2139 fi || ac_status=$?
2140 cd "$ac_pwd" || { ac_status=$?; break; }
2141 done
2142fi
2143
2144test -n "$ac_init_help" && exit $ac_status
2145if $ac_init_version; then
2146 cat <<\_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00002147ImageMagick configure 7.0.0-0
cristy14fefe52012-05-21 00:59:18 +00002148generated by GNU Autoconf 2.69
cristy3ed852e2009-09-05 21:47:34 +00002149
cristy14fefe52012-05-21 00:59:18 +00002150Copyright (C) 2012 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +00002151This configure script is free software; the Free Software Foundation
2152gives unlimited permission to copy, distribute and modify it.
2153_ACEOF
2154 exit
2155fi
cristy8b350f62009-11-15 23:12:43 +00002156
2157## ------------------------ ##
2158## Autoconf initialization. ##
2159## ------------------------ ##
2160
2161# ac_fn_c_try_compile LINENO
2162# --------------------------
2163# Try to compile conftest.$ac_ext, and return whether this succeeded.
2164ac_fn_c_try_compile ()
2165{
2166 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2167 rm -f conftest.$ac_objext
2168 if { { ac_try="$ac_compile"
2169case "(($ac_try" in
2170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2171 *) ac_try_echo=$ac_try;;
2172esac
2173eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2174$as_echo "$ac_try_echo"; } >&5
2175 (eval "$ac_compile") 2>conftest.err
2176 ac_status=$?
2177 if test -s conftest.err; then
2178 grep -v '^ *+' conftest.err >conftest.er1
2179 cat conftest.er1 >&5
2180 mv -f conftest.er1 conftest.err
2181 fi
2182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2183 test $ac_status = 0; } && {
2184 test -z "$ac_c_werror_flag" ||
2185 test ! -s conftest.err
2186 } && test -s conftest.$ac_objext; then :
2187 ac_retval=0
2188else
2189 $as_echo "$as_me: failed program was:" >&5
2190sed 's/^/| /' conftest.$ac_ext >&5
2191
2192 ac_retval=1
2193fi
cristyda16f162011-02-19 23:52:17 +00002194 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002195 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002196
2197} # ac_fn_c_try_compile
2198
cristy95646052009-11-28 23:05:30 +00002199# ac_fn_c_try_cpp LINENO
2200# ----------------------
2201# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2202ac_fn_c_try_cpp ()
2203{
2204 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2205 if { { ac_try="$ac_cpp conftest.$ac_ext"
2206case "(($ac_try" in
2207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2208 *) ac_try_echo=$ac_try;;
2209esac
2210eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2211$as_echo "$ac_try_echo"; } >&5
2212 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2213 ac_status=$?
2214 if test -s conftest.err; then
2215 grep -v '^ *+' conftest.err >conftest.er1
2216 cat conftest.er1 >&5
2217 mv -f conftest.er1 conftest.err
2218 fi
2219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002220 test $ac_status = 0; } > conftest.i && {
cristy95646052009-11-28 23:05:30 +00002221 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2222 test ! -s conftest.err
2223 }; then :
2224 ac_retval=0
2225else
2226 $as_echo "$as_me: failed program was:" >&5
2227sed 's/^/| /' conftest.$ac_ext >&5
2228
2229 ac_retval=1
2230fi
cristyda16f162011-02-19 23:52:17 +00002231 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy95646052009-11-28 23:05:30 +00002232 as_fn_set_status $ac_retval
2233
2234} # ac_fn_c_try_cpp
2235
cristy8b350f62009-11-15 23:12:43 +00002236# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2237# -------------------------------------------------------
2238# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2239# the include files in INCLUDES and setting the cache variable VAR
2240# accordingly.
2241ac_fn_c_check_header_mongrel ()
2242{
2243 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00002244 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2246$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002247if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002248 $as_echo_n "(cached) " >&6
2249fi
2250eval ac_res=\$$3
2251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2252$as_echo "$ac_res" >&6; }
2253else
2254 # Is the header compilable?
2255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2256$as_echo_n "checking $2 usability... " >&6; }
2257cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2258/* end confdefs.h. */
2259$4
2260#include <$2>
2261_ACEOF
2262if ac_fn_c_try_compile "$LINENO"; then :
2263 ac_header_compiler=yes
2264else
2265 ac_header_compiler=no
2266fi
2267rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2269$as_echo "$ac_header_compiler" >&6; }
2270
2271# Is the header present?
2272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2273$as_echo_n "checking $2 presence... " >&6; }
2274cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2275/* end confdefs.h. */
2276#include <$2>
2277_ACEOF
2278if ac_fn_c_try_cpp "$LINENO"; then :
2279 ac_header_preproc=yes
2280else
2281 ac_header_preproc=no
2282fi
cristyda16f162011-02-19 23:52:17 +00002283rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00002284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2285$as_echo "$ac_header_preproc" >&6; }
2286
2287# So? What about this header?
2288case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2289 yes:no: )
2290 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2291$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2292 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2293$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2294 ;;
2295 no:yes:* )
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2297$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2299$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2300 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2301$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2303$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2305$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00002306( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00002307## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00002308## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00002309 ) | sed "s/^/$as_me: WARNING: /" >&2
2310 ;;
2311esac
2312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2313$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002314if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002315 $as_echo_n "(cached) " >&6
2316else
2317 eval "$3=\$ac_header_compiler"
2318fi
2319eval ac_res=\$$3
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2321$as_echo "$ac_res" >&6; }
2322fi
cristyda16f162011-02-19 23:52:17 +00002323 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002324
2325} # ac_fn_c_check_header_mongrel
2326
2327# ac_fn_c_try_run LINENO
2328# ----------------------
2329# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2330# that executables *can* be run.
2331ac_fn_c_try_run ()
2332{
2333 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2334 if { { ac_try="$ac_link"
2335case "(($ac_try" in
2336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2337 *) ac_try_echo=$ac_try;;
2338esac
2339eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2340$as_echo "$ac_try_echo"; } >&5
2341 (eval "$ac_link") 2>&5
2342 ac_status=$?
2343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2344 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2345 { { case "(($ac_try" in
2346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2347 *) ac_try_echo=$ac_try;;
2348esac
2349eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2350$as_echo "$ac_try_echo"; } >&5
2351 (eval "$ac_try") 2>&5
2352 ac_status=$?
2353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2354 test $ac_status = 0; }; }; then :
2355 ac_retval=0
2356else
2357 $as_echo "$as_me: program exited with status $ac_status" >&5
2358 $as_echo "$as_me: failed program was:" >&5
2359sed 's/^/| /' conftest.$ac_ext >&5
2360
2361 ac_retval=$ac_status
2362fi
2363 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002364 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002365 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002366
2367} # ac_fn_c_try_run
2368
2369# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2370# -------------------------------------------------------
2371# Tests whether HEADER exists and can be compiled using the include files in
2372# INCLUDES, setting the cache variable VAR accordingly.
2373ac_fn_c_check_header_compile ()
2374{
2375 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2377$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002378if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002379 $as_echo_n "(cached) " >&6
2380else
2381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2382/* end confdefs.h. */
2383$4
2384#include <$2>
2385_ACEOF
2386if ac_fn_c_try_compile "$LINENO"; then :
2387 eval "$3=yes"
2388else
2389 eval "$3=no"
2390fi
2391rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2392fi
2393eval ac_res=\$$3
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2395$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002396 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002397
2398} # ac_fn_c_check_header_compile
2399
cristya0b81c32010-01-22 02:54:33 +00002400# ac_fn_cxx_try_compile LINENO
2401# ----------------------------
2402# Try to compile conftest.$ac_ext, and return whether this succeeded.
2403ac_fn_cxx_try_compile ()
2404{
2405 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2406 rm -f conftest.$ac_objext
2407 if { { ac_try="$ac_compile"
2408case "(($ac_try" in
2409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2410 *) ac_try_echo=$ac_try;;
2411esac
2412eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2413$as_echo "$ac_try_echo"; } >&5
2414 (eval "$ac_compile") 2>conftest.err
2415 ac_status=$?
2416 if test -s conftest.err; then
2417 grep -v '^ *+' conftest.err >conftest.er1
2418 cat conftest.er1 >&5
2419 mv -f conftest.er1 conftest.err
2420 fi
2421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2422 test $ac_status = 0; } && {
2423 test -z "$ac_cxx_werror_flag" ||
2424 test ! -s conftest.err
2425 } && test -s conftest.$ac_objext; then :
2426 ac_retval=0
2427else
2428 $as_echo "$as_me: failed program was:" >&5
2429sed 's/^/| /' conftest.$ac_ext >&5
2430
2431 ac_retval=1
2432fi
cristyda16f162011-02-19 23:52:17 +00002433 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristya0b81c32010-01-22 02:54:33 +00002434 as_fn_set_status $ac_retval
2435
2436} # ac_fn_cxx_try_compile
2437
cristyd95b7a52013-10-23 13:12:53 +00002438# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2439# --------------------------------------------
2440# Tries to find the compile-time value of EXPR in a program that includes
2441# INCLUDES, setting VAR accordingly. Returns whether the value could be
2442# computed
2443ac_fn_c_compute_int ()
2444{
2445 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2446 if test "$cross_compiling" = yes; then
2447 # Depending upon the size, compute the lo and hi bounds.
2448cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2449/* end confdefs.h. */
2450$4
2451int
2452main ()
2453{
2454static int test_array [1 - 2 * !(($2) >= 0)];
2455test_array [0] = 0;
2456return test_array [0];
2457
2458 ;
2459 return 0;
2460}
2461_ACEOF
2462if ac_fn_c_try_compile "$LINENO"; then :
2463 ac_lo=0 ac_mid=0
2464 while :; do
2465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2466/* end confdefs.h. */
2467$4
2468int
2469main ()
2470{
2471static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2472test_array [0] = 0;
2473return test_array [0];
2474
2475 ;
2476 return 0;
2477}
2478_ACEOF
2479if ac_fn_c_try_compile "$LINENO"; then :
2480 ac_hi=$ac_mid; break
2481else
2482 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2483 if test $ac_lo -le $ac_mid; then
2484 ac_lo= ac_hi=
2485 break
2486 fi
2487 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2488fi
2489rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2490 done
2491else
2492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2493/* end confdefs.h. */
2494$4
2495int
2496main ()
2497{
2498static int test_array [1 - 2 * !(($2) < 0)];
2499test_array [0] = 0;
2500return test_array [0];
2501
2502 ;
2503 return 0;
2504}
2505_ACEOF
2506if ac_fn_c_try_compile "$LINENO"; then :
2507 ac_hi=-1 ac_mid=-1
2508 while :; do
2509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2510/* end confdefs.h. */
2511$4
2512int
2513main ()
2514{
2515static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2516test_array [0] = 0;
2517return test_array [0];
2518
2519 ;
2520 return 0;
2521}
2522_ACEOF
2523if ac_fn_c_try_compile "$LINENO"; then :
2524 ac_lo=$ac_mid; break
2525else
2526 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2527 if test $ac_mid -le $ac_hi; then
2528 ac_lo= ac_hi=
2529 break
2530 fi
2531 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2532fi
2533rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2534 done
2535else
2536 ac_lo= ac_hi=
2537fi
2538rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2539fi
2540rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2541# Binary search between lo and hi bounds.
2542while test "x$ac_lo" != "x$ac_hi"; do
2543 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2545/* end confdefs.h. */
2546$4
2547int
2548main ()
2549{
2550static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2551test_array [0] = 0;
2552return test_array [0];
2553
2554 ;
2555 return 0;
2556}
2557_ACEOF
2558if ac_fn_c_try_compile "$LINENO"; then :
2559 ac_hi=$ac_mid
2560else
2561 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2562fi
2563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2564done
2565case $ac_lo in #((
2566?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2567'') ac_retval=1 ;;
2568esac
2569 else
2570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2571/* end confdefs.h. */
2572$4
2573static long int longval () { return $2; }
2574static unsigned long int ulongval () { return $2; }
2575#include <stdio.h>
2576#include <stdlib.h>
2577int
2578main ()
2579{
2580
2581 FILE *f = fopen ("conftest.val", "w");
2582 if (! f)
2583 return 1;
2584 if (($2) < 0)
2585 {
2586 long int i = longval ();
2587 if (i != ($2))
2588 return 1;
2589 fprintf (f, "%ld", i);
2590 }
2591 else
2592 {
2593 unsigned long int i = ulongval ();
2594 if (i != ($2))
2595 return 1;
2596 fprintf (f, "%lu", i);
2597 }
2598 /* Do not output a trailing newline, as this causes \r\n confusion
2599 on some platforms. */
2600 return ferror (f) || fclose (f) != 0;
2601
2602 ;
2603 return 0;
2604}
2605_ACEOF
2606if ac_fn_c_try_run "$LINENO"; then :
2607 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2608else
2609 ac_retval=1
2610fi
2611rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2612 conftest.$ac_objext conftest.beam conftest.$ac_ext
2613rm -f conftest.val
2614
2615 fi
2616 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2617 as_fn_set_status $ac_retval
2618
2619} # ac_fn_c_compute_int
2620
cristy8b350f62009-11-15 23:12:43 +00002621# ac_fn_c_try_link LINENO
2622# -----------------------
2623# Try to link conftest.$ac_ext, and return whether this succeeded.
2624ac_fn_c_try_link ()
2625{
2626 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2627 rm -f conftest.$ac_objext conftest$ac_exeext
2628 if { { ac_try="$ac_link"
2629case "(($ac_try" in
2630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2631 *) ac_try_echo=$ac_try;;
2632esac
2633eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2634$as_echo "$ac_try_echo"; } >&5
2635 (eval "$ac_link") 2>conftest.err
2636 ac_status=$?
2637 if test -s conftest.err; then
2638 grep -v '^ *+' conftest.err >conftest.er1
2639 cat conftest.er1 >&5
2640 mv -f conftest.er1 conftest.err
2641 fi
2642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2643 test $ac_status = 0; } && {
2644 test -z "$ac_c_werror_flag" ||
2645 test ! -s conftest.err
2646 } && test -s conftest$ac_exeext && {
2647 test "$cross_compiling" = yes ||
cristy14fefe52012-05-21 00:59:18 +00002648 test -x conftest$ac_exeext
cristy8b350f62009-11-15 23:12:43 +00002649 }; then :
2650 ac_retval=0
2651else
2652 $as_echo "$as_me: failed program was:" >&5
2653sed 's/^/| /' conftest.$ac_ext >&5
2654
2655 ac_retval=1
2656fi
2657 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2658 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2659 # interfere with the next link command; also delete a directory that is
2660 # left behind by Apple's compiler. We do this before executing the actions.
2661 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002662 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002663 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002664
2665} # ac_fn_c_try_link
2666
cristy73bd4a52010-10-05 11:24:23 +00002667# ac_fn_c_check_func LINENO FUNC VAR
2668# ----------------------------------
2669# Tests whether FUNC exists, setting the cache variable VAR accordingly
2670ac_fn_c_check_func ()
2671{
2672 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2674$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002675if eval \${$3+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00002676 $as_echo_n "(cached) " >&6
2677else
2678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2679/* end confdefs.h. */
2680/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2681 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2682#define $2 innocuous_$2
2683
2684/* System header to define __stub macros and hopefully few prototypes,
2685 which can conflict with char $2 (); below.
2686 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2687 <limits.h> exists even on freestanding compilers. */
2688
2689#ifdef __STDC__
2690# include <limits.h>
2691#else
2692# include <assert.h>
2693#endif
2694
2695#undef $2
2696
2697/* Override any GCC internal prototype to avoid an error.
2698 Use char because int might match the return type of a GCC
2699 builtin and then its argument prototype would still apply. */
2700#ifdef __cplusplus
2701extern "C"
2702#endif
2703char $2 ();
2704/* The GNU C library defines this for functions which it implements
2705 to always fail with ENOSYS. Some functions are actually named
2706 something starting with __ and the normal name is an alias. */
2707#if defined __stub_$2 || defined __stub___$2
2708choke me
2709#endif
2710
2711int
2712main ()
2713{
2714return $2 ();
2715 ;
2716 return 0;
2717}
2718_ACEOF
2719if ac_fn_c_try_link "$LINENO"; then :
2720 eval "$3=yes"
2721else
2722 eval "$3=no"
2723fi
2724rm -f core conftest.err conftest.$ac_objext \
2725 conftest$ac_exeext conftest.$ac_ext
2726fi
2727eval ac_res=\$$3
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2729$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002730 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002731
2732} # ac_fn_c_check_func
2733
2734# ac_fn_cxx_try_cpp LINENO
2735# ------------------------
2736# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2737ac_fn_cxx_try_cpp ()
2738{
2739 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2740 if { { ac_try="$ac_cpp conftest.$ac_ext"
2741case "(($ac_try" in
2742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2743 *) ac_try_echo=$ac_try;;
2744esac
2745eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2746$as_echo "$ac_try_echo"; } >&5
2747 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2748 ac_status=$?
2749 if test -s conftest.err; then
2750 grep -v '^ *+' conftest.err >conftest.er1
2751 cat conftest.er1 >&5
2752 mv -f conftest.er1 conftest.err
2753 fi
2754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002755 test $ac_status = 0; } > conftest.i && {
cristy73bd4a52010-10-05 11:24:23 +00002756 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2757 test ! -s conftest.err
2758 }; then :
2759 ac_retval=0
2760else
2761 $as_echo "$as_me: failed program was:" >&5
2762sed 's/^/| /' conftest.$ac_ext >&5
2763
2764 ac_retval=1
2765fi
cristyda16f162011-02-19 23:52:17 +00002766 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002767 as_fn_set_status $ac_retval
2768
2769} # ac_fn_cxx_try_cpp
2770
2771# ac_fn_cxx_try_link LINENO
2772# -------------------------
2773# Try to link conftest.$ac_ext, and return whether this succeeded.
2774ac_fn_cxx_try_link ()
2775{
2776 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2777 rm -f conftest.$ac_objext conftest$ac_exeext
2778 if { { ac_try="$ac_link"
2779case "(($ac_try" in
2780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2781 *) ac_try_echo=$ac_try;;
2782esac
2783eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2784$as_echo "$ac_try_echo"; } >&5
2785 (eval "$ac_link") 2>conftest.err
2786 ac_status=$?
2787 if test -s conftest.err; then
2788 grep -v '^ *+' conftest.err >conftest.er1
2789 cat conftest.er1 >&5
2790 mv -f conftest.er1 conftest.err
2791 fi
2792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2793 test $ac_status = 0; } && {
2794 test -z "$ac_cxx_werror_flag" ||
2795 test ! -s conftest.err
2796 } && test -s conftest$ac_exeext && {
2797 test "$cross_compiling" = yes ||
cristy14fefe52012-05-21 00:59:18 +00002798 test -x conftest$ac_exeext
cristy73bd4a52010-10-05 11:24:23 +00002799 }; then :
2800 ac_retval=0
2801else
2802 $as_echo "$as_me: failed program was:" >&5
2803sed 's/^/| /' conftest.$ac_ext >&5
2804
2805 ac_retval=1
2806fi
2807 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2808 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2809 # interfere with the next link command; also delete a directory that is
2810 # left behind by Apple's compiler. We do this before executing the actions.
2811 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002812 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002813 as_fn_set_status $ac_retval
2814
2815} # ac_fn_cxx_try_link
2816
cristy8b350f62009-11-15 23:12:43 +00002817# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2818# -------------------------------------------
2819# Tests whether TYPE exists after having included INCLUDES, setting cache
2820# variable VAR accordingly.
2821ac_fn_c_check_type ()
2822{
2823 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2825$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002826if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002827 $as_echo_n "(cached) " >&6
2828else
2829 eval "$3=no"
2830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2831/* end confdefs.h. */
2832$4
2833int
2834main ()
2835{
2836if (sizeof ($2))
2837 return 0;
2838 ;
2839 return 0;
2840}
2841_ACEOF
2842if ac_fn_c_try_compile "$LINENO"; then :
2843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2844/* end confdefs.h. */
2845$4
2846int
2847main ()
2848{
2849if (sizeof (($2)))
2850 return 0;
2851 ;
2852 return 0;
2853}
2854_ACEOF
2855if ac_fn_c_try_compile "$LINENO"; then :
2856
2857else
2858 eval "$3=yes"
2859fi
2860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2861fi
2862rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2863fi
2864eval ac_res=\$$3
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2866$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002867 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002868
2869} # ac_fn_c_check_type
2870
cristy92703d82010-04-26 00:18:18 +00002871# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2872# ----------------------------------------------------
2873# Tries to find if the field MEMBER exists in type AGGR, after including
2874# INCLUDES, setting cache variable VAR accordingly.
2875ac_fn_c_check_member ()
2876{
2877 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2879$as_echo_n "checking for $2.$3... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002880if eval \${$4+:} false; then :
cristy92703d82010-04-26 00:18:18 +00002881 $as_echo_n "(cached) " >&6
2882else
2883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2884/* end confdefs.h. */
2885$5
2886int
2887main ()
2888{
2889static $2 ac_aggr;
2890if (ac_aggr.$3)
2891return 0;
2892 ;
2893 return 0;
2894}
2895_ACEOF
2896if ac_fn_c_try_compile "$LINENO"; then :
2897 eval "$4=yes"
2898else
2899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2900/* end confdefs.h. */
2901$5
2902int
2903main ()
2904{
2905static $2 ac_aggr;
2906if (sizeof ac_aggr.$3)
2907return 0;
2908 ;
2909 return 0;
2910}
2911_ACEOF
2912if ac_fn_c_try_compile "$LINENO"; then :
2913 eval "$4=yes"
2914else
2915 eval "$4=no"
2916fi
2917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2918fi
2919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2920fi
2921eval ac_res=\$$4
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2923$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002924 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy92703d82010-04-26 00:18:18 +00002925
2926} # ac_fn_c_check_member
2927
cristy5eef09f2012-10-16 12:08:28 +00002928# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2929# ---------------------------------------------
2930# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2931# accordingly.
2932ac_fn_c_check_decl ()
2933{
2934 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2935 as_decl_name=`echo $2|sed 's/ *(.*//'`
2936 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2938$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2939if eval \${$3+:} false; then :
2940 $as_echo_n "(cached) " >&6
2941else
2942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2943/* end confdefs.h. */
2944$4
2945int
2946main ()
2947{
2948#ifndef $as_decl_name
2949#ifdef __cplusplus
2950 (void) $as_decl_use;
2951#else
2952 (void) $as_decl_name;
2953#endif
2954#endif
2955
2956 ;
2957 return 0;
2958}
2959_ACEOF
2960if ac_fn_c_try_compile "$LINENO"; then :
2961 eval "$3=yes"
2962else
2963 eval "$3=no"
2964fi
2965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2966fi
2967eval ac_res=\$$3
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2969$as_echo "$ac_res" >&6; }
2970 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2971
2972} # ac_fn_c_check_decl
2973
cristy501c8042011-05-26 17:46:28 +00002974# ac_fn_c_find_intX_t LINENO BITS VAR
2975# -----------------------------------
2976# Finds a signed integer type with width BITS, setting cache variable VAR
2977# accordingly.
2978ac_fn_c_find_intX_t ()
2979{
2980 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2982$as_echo_n "checking for int$2_t... " >&6; }
2983if eval \${$3+:} false; then :
2984 $as_echo_n "(cached) " >&6
2985else
2986 eval "$3=no"
2987 # Order is important - never check a type that is potentially smaller
2988 # than half of the expected target width.
2989 for ac_type in int$2_t 'int' 'long int' \
2990 'long long int' 'short int' 'signed char'; do
2991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2992/* end confdefs.h. */
2993$ac_includes_default
2994 enum { N = $2 / 2 - 1 };
2995int
2996main ()
2997{
2998static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
cristy14fefe52012-05-21 00:59:18 +00002999test_array [0] = 0;
3000return test_array [0];
cristy501c8042011-05-26 17:46:28 +00003001
3002 ;
3003 return 0;
3004}
3005_ACEOF
3006if ac_fn_c_try_compile "$LINENO"; then :
3007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3008/* end confdefs.h. */
3009$ac_includes_default
3010 enum { N = $2 / 2 - 1 };
3011int
3012main ()
3013{
3014static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
3015 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
cristy14fefe52012-05-21 00:59:18 +00003016test_array [0] = 0;
3017return test_array [0];
cristy501c8042011-05-26 17:46:28 +00003018
3019 ;
3020 return 0;
3021}
3022_ACEOF
3023if ac_fn_c_try_compile "$LINENO"; then :
3024
3025else
3026 case $ac_type in #(
3027 int$2_t) :
3028 eval "$3=yes" ;; #(
3029 *) :
3030 eval "$3=\$ac_type" ;;
3031esac
3032fi
3033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3034fi
3035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3036 if eval test \"x\$"$3"\" = x"no"; then :
3037
3038else
3039 break
3040fi
3041 done
3042fi
3043eval ac_res=\$$3
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3045$as_echo "$ac_res" >&6; }
3046 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3047
3048} # ac_fn_c_find_intX_t
3049
3050# ac_fn_c_find_uintX_t LINENO BITS VAR
3051# ------------------------------------
3052# Finds an unsigned integer type with width BITS, setting cache variable VAR
3053# accordingly.
3054ac_fn_c_find_uintX_t ()
3055{
3056 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
3058$as_echo_n "checking for uint$2_t... " >&6; }
3059if eval \${$3+:} false; then :
3060 $as_echo_n "(cached) " >&6
3061else
3062 eval "$3=no"
3063 # Order is important - never check a type that is potentially smaller
3064 # than half of the expected target width.
3065 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
3066 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
3067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3068/* end confdefs.h. */
3069$ac_includes_default
3070int
3071main ()
3072{
3073static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
cristy14fefe52012-05-21 00:59:18 +00003074test_array [0] = 0;
3075return test_array [0];
cristy501c8042011-05-26 17:46:28 +00003076
3077 ;
3078 return 0;
3079}
3080_ACEOF
3081if ac_fn_c_try_compile "$LINENO"; then :
3082 case $ac_type in #(
3083 uint$2_t) :
3084 eval "$3=yes" ;; #(
3085 *) :
3086 eval "$3=\$ac_type" ;;
3087esac
3088fi
3089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3090 if eval test \"x\$"$3"\" = x"no"; then :
3091
3092else
3093 break
3094fi
3095 done
3096fi
3097eval ac_res=\$$3
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3099$as_echo "$ac_res" >&6; }
3100 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3101
3102} # ac_fn_c_find_uintX_t
3103
cristy8b350f62009-11-15 23:12:43 +00003104# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
3105# ---------------------------------------------------------
3106# Tests whether HEADER exists, giving a warning if it cannot be compiled using
3107# the include files in INCLUDES and setting the cache variable VAR
3108# accordingly.
3109ac_fn_cxx_check_header_mongrel ()
3110{
3111 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00003112 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3114$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003115if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003116 $as_echo_n "(cached) " >&6
3117fi
3118eval ac_res=\$$3
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3120$as_echo "$ac_res" >&6; }
3121else
3122 # Is the header compilable?
3123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
3124$as_echo_n "checking $2 usability... " >&6; }
3125cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3126/* end confdefs.h. */
3127$4
3128#include <$2>
3129_ACEOF
3130if ac_fn_cxx_try_compile "$LINENO"; then :
3131 ac_header_compiler=yes
3132else
3133 ac_header_compiler=no
3134fi
3135rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
3137$as_echo "$ac_header_compiler" >&6; }
3138
3139# Is the header present?
3140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
3141$as_echo_n "checking $2 presence... " >&6; }
3142cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3143/* end confdefs.h. */
3144#include <$2>
3145_ACEOF
3146if ac_fn_cxx_try_cpp "$LINENO"; then :
3147 ac_header_preproc=yes
3148else
3149 ac_header_preproc=no
3150fi
cristyda16f162011-02-19 23:52:17 +00003151rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00003152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
3153$as_echo "$ac_header_preproc" >&6; }
3154
3155# So? What about this header?
3156case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
3157 yes:no: )
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
3159$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3161$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3162 ;;
3163 no:yes:* )
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
3165$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
3167$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
3169$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
3171$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3173$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003174( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00003175## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00003176## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00003177 ) | sed "s/^/$as_me: WARNING: /" >&2
3178 ;;
3179esac
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3181$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003182if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003183 $as_echo_n "(cached) " >&6
3184else
3185 eval "$3=\$ac_header_compiler"
3186fi
3187eval ac_res=\$$3
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3189$as_echo "$ac_res" >&6; }
3190fi
cristyda16f162011-02-19 23:52:17 +00003191 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00003192
3193} # ac_fn_cxx_check_header_mongrel
cristy3ed852e2009-09-05 21:47:34 +00003194cat >config.log <<_ACEOF
3195This file contains any messages produced by compilers while
3196running configure, to aid debugging if configure makes a mistake.
3197
cristy29eb34e2011-10-16 00:46:08 +00003198It was created by ImageMagick $as_me 7.0.0-0, which was
cristy14fefe52012-05-21 00:59:18 +00003199generated by GNU Autoconf 2.69. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +00003200
3201 $ $0 $@
3202
3203_ACEOF
3204exec 5>>config.log
3205{
3206cat <<_ASUNAME
3207## --------- ##
3208## Platform. ##
3209## --------- ##
3210
3211hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3212uname -m = `(uname -m) 2>/dev/null || echo unknown`
3213uname -r = `(uname -r) 2>/dev/null || echo unknown`
3214uname -s = `(uname -s) 2>/dev/null || echo unknown`
3215uname -v = `(uname -v) 2>/dev/null || echo unknown`
3216
3217/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3218/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3219
3220/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3221/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3222/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3223/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3224/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3225/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3226/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3227
3228_ASUNAME
3229
3230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3231for as_dir in $PATH
3232do
3233 IFS=$as_save_IFS
3234 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003235 $as_echo "PATH: $as_dir"
3236 done
cristy3ed852e2009-09-05 21:47:34 +00003237IFS=$as_save_IFS
3238
3239} >&5
3240
3241cat >&5 <<_ACEOF
3242
3243
3244## ----------- ##
3245## Core tests. ##
3246## ----------- ##
3247
3248_ACEOF
3249
3250
3251# Keep a trace of the command line.
3252# Strip out --no-create and --no-recursion so they do not pile up.
3253# Strip out --silent because we don't want to record it for future runs.
3254# Also quote any args containing shell meta-characters.
3255# Make two passes to allow for proper duplicate-argument suppression.
3256ac_configure_args=
3257ac_configure_args0=
3258ac_configure_args1=
3259ac_must_keep_next=false
3260for ac_pass in 1 2
3261do
3262 for ac_arg
3263 do
3264 case $ac_arg in
3265 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3266 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3267 | -silent | --silent | --silen | --sile | --sil)
3268 continue ;;
3269 *\'*)
3270 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3271 esac
3272 case $ac_pass in
cristy8b350f62009-11-15 23:12:43 +00003273 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003274 2)
cristy8b350f62009-11-15 23:12:43 +00003275 as_fn_append ac_configure_args1 " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003276 if test $ac_must_keep_next = true; then
3277 ac_must_keep_next=false # Got value, back to normal.
3278 else
3279 case $ac_arg in
3280 *=* | --config-cache | -C | -disable-* | --disable-* \
3281 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3282 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3283 | -with-* | --with-* | -without-* | --without-* | --x)
3284 case "$ac_configure_args0 " in
3285 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3286 esac
3287 ;;
3288 -* ) ac_must_keep_next=true ;;
3289 esac
3290 fi
cristy8b350f62009-11-15 23:12:43 +00003291 as_fn_append ac_configure_args " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003292 ;;
3293 esac
3294 done
3295done
cristy8b350f62009-11-15 23:12:43 +00003296{ ac_configure_args0=; unset ac_configure_args0;}
3297{ ac_configure_args1=; unset ac_configure_args1;}
cristy3ed852e2009-09-05 21:47:34 +00003298
3299# When interrupted or exit'd, cleanup temporary files, and complete
3300# config.log. We remove comments because anyway the quotes in there
3301# would cause problems or look ugly.
3302# WARNING: Use '\'' to represent an apostrophe within the trap.
3303# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3304trap 'exit_status=$?
3305 # Save into config.log some information that might help in debugging.
3306 {
3307 echo
3308
cristy98dddb52010-11-04 00:30:15 +00003309 $as_echo "## ---------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003310## Cache variables. ##
cristy98dddb52010-11-04 00:30:15 +00003311## ---------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003312 echo
3313 # The following way of writing the cache mishandles newlines in values,
3314(
3315 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3316 eval ac_val=\$$ac_var
3317 case $ac_val in #(
3318 *${as_nl}*)
3319 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +00003320 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +00003321$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3322 esac
3323 case $ac_var in #(
3324 _ | IFS | as_nl) ;; #(
3325 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +00003326 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +00003327 esac ;;
3328 esac
3329 done
3330 (set) 2>&1 |
3331 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3332 *${as_nl}ac_space=\ *)
3333 sed -n \
3334 "s/'\''/'\''\\\\'\'''\''/g;
3335 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3336 ;; #(
3337 *)
3338 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3339 ;;
3340 esac |
3341 sort
3342)
3343 echo
3344
cristy98dddb52010-11-04 00:30:15 +00003345 $as_echo "## ----------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003346## Output variables. ##
cristy98dddb52010-11-04 00:30:15 +00003347## ----------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003348 echo
3349 for ac_var in $ac_subst_vars
3350 do
3351 eval ac_val=\$$ac_var
3352 case $ac_val in
3353 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3354 esac
3355 $as_echo "$ac_var='\''$ac_val'\''"
3356 done | sort
3357 echo
3358
3359 if test -n "$ac_subst_files"; then
cristy98dddb52010-11-04 00:30:15 +00003360 $as_echo "## ------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003361## File substitutions. ##
cristy98dddb52010-11-04 00:30:15 +00003362## ------------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003363 echo
3364 for ac_var in $ac_subst_files
3365 do
3366 eval ac_val=\$$ac_var
3367 case $ac_val in
3368 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3369 esac
3370 $as_echo "$ac_var='\''$ac_val'\''"
3371 done | sort
3372 echo
3373 fi
3374
3375 if test -s confdefs.h; then
cristy98dddb52010-11-04 00:30:15 +00003376 $as_echo "## ----------- ##
cristy3ed852e2009-09-05 21:47:34 +00003377## confdefs.h. ##
cristy98dddb52010-11-04 00:30:15 +00003378## ----------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003379 echo
3380 cat confdefs.h
3381 echo
3382 fi
3383 test "$ac_signal" != 0 &&
3384 $as_echo "$as_me: caught signal $ac_signal"
3385 $as_echo "$as_me: exit $exit_status"
3386 } >&5
3387 rm -f core *.core core.conftest.* &&
3388 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3389 exit $exit_status
3390' 0
3391for ac_signal in 1 2 13 15; do
cristy8b350f62009-11-15 23:12:43 +00003392 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cristy3ed852e2009-09-05 21:47:34 +00003393done
3394ac_signal=0
3395
3396# confdefs.h avoids OS command line length limits that DEFS can exceed.
3397rm -f -r conftest* confdefs.h
3398
cristy8b350f62009-11-15 23:12:43 +00003399$as_echo "/* confdefs.h */" > confdefs.h
3400
cristy3ed852e2009-09-05 21:47:34 +00003401# Predefined preprocessor variables.
3402
3403cat >>confdefs.h <<_ACEOF
3404#define PACKAGE_NAME "$PACKAGE_NAME"
3405_ACEOF
3406
cristy3ed852e2009-09-05 21:47:34 +00003407cat >>confdefs.h <<_ACEOF
3408#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3409_ACEOF
3410
cristy3ed852e2009-09-05 21:47:34 +00003411cat >>confdefs.h <<_ACEOF
3412#define PACKAGE_VERSION "$PACKAGE_VERSION"
3413_ACEOF
3414
cristy3ed852e2009-09-05 21:47:34 +00003415cat >>confdefs.h <<_ACEOF
3416#define PACKAGE_STRING "$PACKAGE_STRING"
3417_ACEOF
3418
cristy3ed852e2009-09-05 21:47:34 +00003419cat >>confdefs.h <<_ACEOF
3420#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3421_ACEOF
3422
cristy8b350f62009-11-15 23:12:43 +00003423cat >>confdefs.h <<_ACEOF
3424#define PACKAGE_URL "$PACKAGE_URL"
3425_ACEOF
3426
cristy3ed852e2009-09-05 21:47:34 +00003427
3428# Let the site file select an alternate cache file if it wants to.
3429# Prefer an explicitly selected file to automatically selected ones.
3430ac_site_file1=NONE
3431ac_site_file2=NONE
3432if test -n "$CONFIG_SITE"; then
cristy98dddb52010-11-04 00:30:15 +00003433 # We do not want a PATH search for config.site.
3434 case $CONFIG_SITE in #((
3435 -*) ac_site_file1=./$CONFIG_SITE;;
3436 */*) ac_site_file1=$CONFIG_SITE;;
3437 *) ac_site_file1=./$CONFIG_SITE;;
3438 esac
cristy3ed852e2009-09-05 21:47:34 +00003439elif test "x$prefix" != xNONE; then
3440 ac_site_file1=$prefix/share/config.site
3441 ac_site_file2=$prefix/etc/config.site
3442else
3443 ac_site_file1=$ac_default_prefix/share/config.site
3444 ac_site_file2=$ac_default_prefix/etc/config.site
3445fi
3446for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3447do
3448 test "x$ac_site_file" = xNONE && continue
cristycd4c5312009-11-22 01:19:08 +00003449 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cristy8b350f62009-11-15 23:12:43 +00003450 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003451$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3452 sed 's/^/| /' "$ac_site_file" >&5
cristy98dddb52010-11-04 00:30:15 +00003453 . "$ac_site_file" \
3454 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3455$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3456as_fn_error $? "failed to load site script $ac_site_file
3457See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00003458 fi
3459done
3460
3461if test -r "$cache_file"; then
cristycd4c5312009-11-22 01:19:08 +00003462 # Some versions of bash will fail to source /dev/null (special files
3463 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3464 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cristy8b350f62009-11-15 23:12:43 +00003465 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003466$as_echo "$as_me: loading cache $cache_file" >&6;}
3467 case $cache_file in
3468 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3469 *) . "./$cache_file";;
3470 esac
3471 fi
3472else
cristy8b350f62009-11-15 23:12:43 +00003473 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003474$as_echo "$as_me: creating cache $cache_file" >&6;}
3475 >$cache_file
3476fi
3477
cristycd4c5312009-11-22 01:19:08 +00003478as_fn_append ac_header_list " stdlib.h"
3479as_fn_append ac_header_list " unistd.h"
3480as_fn_append ac_header_list " sys/param.h"
cristy3ed852e2009-09-05 21:47:34 +00003481# Check that the precious variables saved in the cache have kept the same
3482# value.
3483ac_cache_corrupted=false
3484for ac_var in $ac_precious_vars; do
3485 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3486 eval ac_new_set=\$ac_env_${ac_var}_set
3487 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3488 eval ac_new_val=\$ac_env_${ac_var}_value
3489 case $ac_old_set,$ac_new_set in
3490 set,)
cristy8b350f62009-11-15 23:12:43 +00003491 { $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 +00003492$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3493 ac_cache_corrupted=: ;;
3494 ,set)
cristy8b350f62009-11-15 23:12:43 +00003495 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003496$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3497 ac_cache_corrupted=: ;;
3498 ,);;
3499 *)
3500 if test "x$ac_old_val" != "x$ac_new_val"; then
3501 # differences in whitespace do not lead to failure.
3502 ac_old_val_w=`echo x $ac_old_val`
3503 ac_new_val_w=`echo x $ac_new_val`
3504 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cristy8b350f62009-11-15 23:12:43 +00003505 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003506$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3507 ac_cache_corrupted=:
3508 else
cristy8b350f62009-11-15 23:12:43 +00003509 { $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 +00003510$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3511 eval $ac_var=\$ac_old_val
3512 fi
cristy8b350f62009-11-15 23:12:43 +00003513 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003514$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003515 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003516$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3517 fi;;
3518 esac
3519 # Pass precious variables to config.status.
3520 if test "$ac_new_set" = set; then
3521 case $ac_new_val in
3522 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3523 *) ac_arg=$ac_var=$ac_new_val ;;
3524 esac
3525 case " $ac_configure_args " in
3526 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cristy8b350f62009-11-15 23:12:43 +00003527 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003528 esac
3529 fi
3530done
3531if $ac_cache_corrupted; then
cristy8b350f62009-11-15 23:12:43 +00003532 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00003533$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003534 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003535$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003536 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003537fi
cristy8b350f62009-11-15 23:12:43 +00003538## -------------------- ##
3539## Main body of script. ##
3540## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003541
3542ac_ext=c
3543ac_cpp='$CPP $CPPFLAGS'
3544ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3545ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3546ac_compiler_gnu=$ac_cv_c_compiler_gnu
3547
3548
3549
3550ac_aux_dir=
3551for ac_dir in config "$srcdir"/config; do
cristy98dddb52010-11-04 00:30:15 +00003552 if test -f "$ac_dir/install-sh"; then
3553 ac_aux_dir=$ac_dir
3554 ac_install_sh="$ac_aux_dir/install-sh -c"
3555 break
3556 elif test -f "$ac_dir/install.sh"; then
3557 ac_aux_dir=$ac_dir
3558 ac_install_sh="$ac_aux_dir/install.sh -c"
3559 break
3560 elif test -f "$ac_dir/shtool"; then
3561 ac_aux_dir=$ac_dir
3562 ac_install_sh="$ac_aux_dir/shtool install -c"
3563 break
3564 fi
cristy3ed852e2009-09-05 21:47:34 +00003565done
3566if test -z "$ac_aux_dir"; then
cristy98dddb52010-11-04 00:30:15 +00003567 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003568fi
3569
3570# These three variables are undocumented and unsupported,
3571# and are intended to be withdrawn in a future Autoconf release.
3572# They can cause serious problems if a builder's source tree is in a directory
3573# whose full name contains unusual characters.
3574ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3575ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3576ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3577
3578
3579
3580
3581ac_config_headers="$ac_config_headers config/config.h"
3582
cristy24fc1fe2010-10-23 21:13:01 +00003583
cristy01ff9f32012-12-01 18:15:29 +00003584ac_config_commands="$ac_config_commands MagickCore/magick-baseconfig.h"
cristy73bd4a52010-10-05 11:24:23 +00003585
cristy3ed852e2009-09-05 21:47:34 +00003586# Make sure we can run config.sub.
3587$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cristy98dddb52010-11-04 00:30:15 +00003588 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003589
cristy8b350f62009-11-15 23:12:43 +00003590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003591$as_echo_n "checking build system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003592if ${ac_cv_build+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003593 $as_echo_n "(cached) " >&6
3594else
3595 ac_build_alias=$build_alias
3596test "x$ac_build_alias" = x &&
3597 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3598test "x$ac_build_alias" = x &&
cristy98dddb52010-11-04 00:30:15 +00003599 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003600ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003601 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003602
3603fi
cristy8b350f62009-11-15 23:12:43 +00003604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003605$as_echo "$ac_cv_build" >&6; }
3606case $ac_cv_build in
3607*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003608*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003609esac
3610build=$ac_cv_build
3611ac_save_IFS=$IFS; IFS='-'
3612set x $ac_cv_build
3613shift
3614build_cpu=$1
3615build_vendor=$2
3616shift; shift
3617# Remember, the first character of IFS is used to create $*,
3618# except with old shells:
3619build_os=$*
3620IFS=$ac_save_IFS
3621case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3622
3623
cristy8b350f62009-11-15 23:12:43 +00003624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003625$as_echo_n "checking host system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003626if ${ac_cv_host+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003627 $as_echo_n "(cached) " >&6
3628else
3629 if test "x$host_alias" = x; then
3630 ac_cv_host=$ac_cv_build
3631else
3632 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003633 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003634fi
3635
3636fi
cristy8b350f62009-11-15 23:12:43 +00003637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
cristy3ed852e2009-09-05 21:47:34 +00003638$as_echo "$ac_cv_host" >&6; }
3639case $ac_cv_host in
3640*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003641*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003642esac
3643host=$ac_cv_host
3644ac_save_IFS=$IFS; IFS='-'
3645set x $ac_cv_host
3646shift
3647host_cpu=$1
3648host_vendor=$2
3649shift; shift
3650# Remember, the first character of IFS is used to create $*,
3651# except with old shells:
3652host_os=$*
3653IFS=$ac_save_IFS
3654case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3655
3656
cristy8b350f62009-11-15 23:12:43 +00003657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003658$as_echo_n "checking target system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003659if ${ac_cv_target+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003660 $as_echo_n "(cached) " >&6
3661else
3662 if test "x$target_alias" = x; then
3663 ac_cv_target=$ac_cv_host
3664else
3665 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003666 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003667fi
3668
3669fi
cristy8b350f62009-11-15 23:12:43 +00003670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
cristy3ed852e2009-09-05 21:47:34 +00003671$as_echo "$ac_cv_target" >&6; }
3672case $ac_cv_target in
3673*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003674*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003675esac
3676target=$ac_cv_target
3677ac_save_IFS=$IFS; IFS='-'
3678set x $ac_cv_target
3679shift
3680target_cpu=$1
3681target_vendor=$2
3682shift; shift
3683# Remember, the first character of IFS is used to create $*,
3684# except with old shells:
3685target_os=$*
3686IFS=$ac_save_IFS
3687case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3688
3689
3690# The aliases save the names the user supplied, while $host etc.
3691# will get canonicalized.
3692test -n "$target_alias" &&
3693 test "$program_prefix$program_suffix$program_transform_name" = \
3694 NONENONEs,x,x, &&
3695 program_prefix=${target_alias}-
3696
cristy837d6dc2010-02-27 01:16:57 +00003697
cristyead532a2015-06-05 00:49:30 +00003698am__api_version='1.15'
cristy73bd4a52010-10-05 11:24:23 +00003699
3700# Find a good install program. We prefer a C program (faster),
3701# so one script is as good as another. But avoid the broken or
3702# incompatible versions:
3703# SysV /etc/install, /usr/sbin/install
3704# SunOS /usr/etc/install
3705# IRIX /sbin/install
3706# AIX /bin/install
3707# AmigaOS /C/install, which installs bootblocks on floppy discs
3708# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3709# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3710# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3711# OS/2's system install, which has a completely different semantic
3712# ./install, which can be erroneously created by make from ./install.sh.
3713# Reject install programs that cannot install multiple files.
3714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3715$as_echo_n "checking for a BSD-compatible install... " >&6; }
3716if test -z "$INSTALL"; then
cristyda16f162011-02-19 23:52:17 +00003717if ${ac_cv_path_install+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003718 $as_echo_n "(cached) " >&6
3719else
3720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3721for as_dir in $PATH
3722do
3723 IFS=$as_save_IFS
3724 test -z "$as_dir" && as_dir=.
3725 # Account for people who put trailing slashes in PATH elements.
3726case $as_dir/ in #((
3727 ./ | .// | /[cC]/* | \
3728 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3729 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3730 /usr/ucb/* ) ;;
3731 *)
3732 # OSF1 and SCO ODT 3.0 have their own names for install.
3733 # Don't use installbsd from OSF since it installs stuff as root
3734 # by default.
3735 for ac_prog in ginstall scoinst install; do
3736 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003737 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003738 if test $ac_prog = install &&
3739 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3740 # AIX install. It has an incompatible calling convention.
3741 :
3742 elif test $ac_prog = install &&
3743 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3744 # program-specific install script used by HP pwplus--don't use.
3745 :
3746 else
3747 rm -rf conftest.one conftest.two conftest.dir
3748 echo one > conftest.one
3749 echo two > conftest.two
3750 mkdir conftest.dir
3751 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3752 test -s conftest.one && test -s conftest.two &&
3753 test -s conftest.dir/conftest.one &&
3754 test -s conftest.dir/conftest.two
3755 then
3756 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3757 break 3
3758 fi
3759 fi
3760 fi
3761 done
3762 done
3763 ;;
3764esac
3765
3766 done
3767IFS=$as_save_IFS
3768
3769rm -rf conftest.one conftest.two conftest.dir
3770
3771fi
3772 if test "${ac_cv_path_install+set}" = set; then
3773 INSTALL=$ac_cv_path_install
3774 else
3775 # As a last resort, use the slow shell script. Don't cache a
3776 # value for INSTALL within a source directory, because that will
3777 # break other packages using the cache if that directory is
3778 # removed, or if the value is a relative name.
3779 INSTALL=$ac_install_sh
3780 fi
3781fi
3782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3783$as_echo "$INSTALL" >&6; }
3784
3785# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3786# It thinks the first close brace ends the variable substitution.
3787test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3788
3789test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3790
3791test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3792
cristy9af1cbf2014-12-28 22:03:09 +00003793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3794$as_echo_n "checking whether build environment is sane... " >&6; }
3795# Reject unsafe characters in $srcdir or the absolute working directory
3796# name. Accept space and tab only in the latter.
3797am_lf='
3798'
3799case `pwd` in
3800 *[\\\"\#\$\&\'\`$am_lf]*)
3801 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3802esac
3803case $srcdir in
3804 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3805 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3806esac
3807
3808# Do 'set' in a subshell so we don't clobber the current shell's
3809# arguments. Must try -L first in case configure is actually a
3810# symlink; some systems play weird games with the mod time of symlinks
3811# (eg FreeBSD returns the mod time of the symlink's containing
3812# directory).
3813if (
3814 am_has_slept=no
3815 for am_try in 1 2; do
3816 echo "timestamp, slept: $am_has_slept" > conftest.file
3817 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3818 if test "$*" = "X"; then
3819 # -L didn't work.
3820 set X `ls -t "$srcdir/configure" conftest.file`
3821 fi
3822 if test "$*" != "X $srcdir/configure conftest.file" \
3823 && test "$*" != "X conftest.file $srcdir/configure"; then
3824
3825 # If neither matched, then we have a broken ls. This can happen
3826 # if, for instance, CONFIG_SHELL is bash and it inherits a
3827 # broken ls alias from the environment. This has actually
3828 # happened. Such a system could not be considered "sane".
3829 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3830 alias in your environment" "$LINENO" 5
3831 fi
3832 if test "$2" = conftest.file || test $am_try -eq 2; then
3833 break
3834 fi
3835 # Just in case.
3836 sleep 1
3837 am_has_slept=yes
3838 done
3839 test "$2" = conftest.file
3840 )
3841then
3842 # Ok.
3843 :
3844else
3845 as_fn_error $? "newly created file is older than distributed files!
3846Check your system clock" "$LINENO" 5
3847fi
3848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3849$as_echo "yes" >&6; }
3850# If we didn't sleep, we still need to ensure time stamps of config.status and
3851# generated files are strictly newer.
3852am_sleep_pid=
3853if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3854 ( sleep 1 ) &
3855 am_sleep_pid=$!
3856fi
3857
3858rm -f conftest.file
3859
cristy73bd4a52010-10-05 11:24:23 +00003860test "$program_prefix" != NONE &&
3861 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3862# Use a double $ so make ignores it.
3863test "$program_suffix" != NONE &&
3864 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3865# Double any \ or $.
3866# By default was `s,x,x', remove it if useless.
3867ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3868program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3869
cristyead532a2015-06-05 00:49:30 +00003870# Expand $ac_aux_dir to an absolute path.
3871am_aux_dir=`cd "$ac_aux_dir" && pwd`
cristy73bd4a52010-10-05 11:24:23 +00003872
3873if test x"${MISSING+set}" != xset; then
3874 case $am_aux_dir in
3875 *\ * | *\ *)
3876 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3877 *)
3878 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3879 esac
3880fi
3881# Use eval to expand $SHELL
cristy58d34aa2013-01-24 15:11:54 +00003882if eval "$MISSING --is-lightweight"; then
3883 am_missing_run="$MISSING "
cristy73bd4a52010-10-05 11:24:23 +00003884else
3885 am_missing_run=
cristyc0890a62012-07-19 00:18:20 +00003886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3887$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
cristy73bd4a52010-10-05 11:24:23 +00003888fi
3889
cristyead532a2015-06-05 00:49:30 +00003890if test x"${install_sh+set}" != xset; then
cristy73bd4a52010-10-05 11:24:23 +00003891 case $am_aux_dir in
3892 *\ * | *\ *)
3893 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3894 *)
3895 install_sh="\${SHELL} $am_aux_dir/install-sh"
3896 esac
3897fi
3898
cristyc0890a62012-07-19 00:18:20 +00003899# Installed binaries are usually stripped using 'strip' when the user
3900# run "make install-strip". However 'strip' might not be the right
cristy73bd4a52010-10-05 11:24:23 +00003901# tool to use in cross-compilation environments, therefore Automake
cristyc0890a62012-07-19 00:18:20 +00003902# will honor the 'STRIP' environment variable to overrule this program.
cristy73bd4a52010-10-05 11:24:23 +00003903if test "$cross_compiling" != no; then
3904 if test -n "$ac_tool_prefix"; then
3905 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3906set dummy ${ac_tool_prefix}strip; ac_word=$2
3907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3908$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003909if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003910 $as_echo_n "(cached) " >&6
3911else
3912 if test -n "$STRIP"; then
3913 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3914else
3915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3916for as_dir in $PATH
3917do
3918 IFS=$as_save_IFS
3919 test -z "$as_dir" && as_dir=.
3920 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003921 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003922 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3924 break 2
3925 fi
3926done
3927 done
3928IFS=$as_save_IFS
3929
3930fi
3931fi
3932STRIP=$ac_cv_prog_STRIP
3933if test -n "$STRIP"; then
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3935$as_echo "$STRIP" >&6; }
3936else
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3938$as_echo "no" >&6; }
3939fi
3940
3941
3942fi
3943if test -z "$ac_cv_prog_STRIP"; then
3944 ac_ct_STRIP=$STRIP
3945 # Extract the first word of "strip", so it can be a program name with args.
3946set dummy strip; ac_word=$2
3947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3948$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003949if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003950 $as_echo_n "(cached) " >&6
3951else
3952 if test -n "$ac_ct_STRIP"; then
3953 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3954else
3955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3956for as_dir in $PATH
3957do
3958 IFS=$as_save_IFS
3959 test -z "$as_dir" && as_dir=.
3960 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003961 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003962 ac_cv_prog_ac_ct_STRIP="strip"
3963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3964 break 2
3965 fi
3966done
3967 done
3968IFS=$as_save_IFS
3969
3970fi
3971fi
3972ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3973if test -n "$ac_ct_STRIP"; then
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3975$as_echo "$ac_ct_STRIP" >&6; }
3976else
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3978$as_echo "no" >&6; }
3979fi
3980
3981 if test "x$ac_ct_STRIP" = x; then
3982 STRIP=":"
3983 else
3984 case $cross_compiling:$ac_tool_warned in
3985yes:)
3986{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3987$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3988ac_tool_warned=yes ;;
3989esac
3990 STRIP=$ac_ct_STRIP
3991 fi
3992else
3993 STRIP="$ac_cv_prog_STRIP"
3994fi
3995
3996fi
3997INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3998
3999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4000$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4001if test -z "$MKDIR_P"; then
cristyda16f162011-02-19 23:52:17 +00004002 if ${ac_cv_path_mkdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004003 $as_echo_n "(cached) " >&6
4004else
4005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4006for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4007do
4008 IFS=$as_save_IFS
4009 test -z "$as_dir" && as_dir=.
4010 for ac_prog in mkdir gmkdir; do
4011 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004012 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
cristy73bd4a52010-10-05 11:24:23 +00004013 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4014 'mkdir (GNU coreutils) '* | \
4015 'mkdir (coreutils) '* | \
4016 'mkdir (fileutils) '4.1*)
4017 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4018 break 3;;
4019 esac
4020 done
4021 done
4022 done
4023IFS=$as_save_IFS
4024
4025fi
4026
4027 test -d ./--version && rmdir ./--version
4028 if test "${ac_cv_path_mkdir+set}" = set; then
4029 MKDIR_P="$ac_cv_path_mkdir -p"
4030 else
4031 # As a last resort, use the slow shell script. Don't cache a
4032 # value for MKDIR_P within a source directory, because that will
4033 # break other packages using the cache if that directory is
4034 # removed, or if the value is a relative name.
4035 MKDIR_P="$ac_install_sh -d"
4036 fi
4037fi
4038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4039$as_echo "$MKDIR_P" >&6; }
4040
cristy73bd4a52010-10-05 11:24:23 +00004041for ac_prog in gawk mawk nawk awk
4042do
4043 # Extract the first word of "$ac_prog", so it can be a program name with args.
4044set dummy $ac_prog; ac_word=$2
4045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4046$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004047if ${ac_cv_prog_AWK+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004048 $as_echo_n "(cached) " >&6
4049else
4050 if test -n "$AWK"; then
4051 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4052else
4053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4054for as_dir in $PATH
4055do
4056 IFS=$as_save_IFS
4057 test -z "$as_dir" && as_dir=.
4058 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004059 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00004060 ac_cv_prog_AWK="$ac_prog"
4061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4062 break 2
4063 fi
4064done
4065 done
4066IFS=$as_save_IFS
4067
4068fi
4069fi
4070AWK=$ac_cv_prog_AWK
4071if test -n "$AWK"; then
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4073$as_echo "$AWK" >&6; }
4074else
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4076$as_echo "no" >&6; }
4077fi
4078
4079
4080 test -n "$AWK" && break
4081done
4082
4083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4084$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4085set x ${MAKE-make}
4086ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00004087if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004088 $as_echo_n "(cached) " >&6
4089else
4090 cat >conftest.make <<\_ACEOF
4091SHELL = /bin/sh
4092all:
4093 @echo '@@@%%%=$(MAKE)=@@@%%%'
4094_ACEOF
cristy98dddb52010-11-04 00:30:15 +00004095# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristy73bd4a52010-10-05 11:24:23 +00004096case `${MAKE-make} -f conftest.make 2>/dev/null` in
4097 *@@@%%%=?*=@@@%%%*)
4098 eval ac_cv_prog_make_${ac_make}_set=yes;;
4099 *)
4100 eval ac_cv_prog_make_${ac_make}_set=no;;
4101esac
4102rm -f conftest.make
4103fi
4104if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4106$as_echo "yes" >&6; }
4107 SET_MAKE=
4108else
4109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4110$as_echo "no" >&6; }
4111 SET_MAKE="MAKE=${MAKE-make}"
4112fi
4113
4114rm -rf .tst 2>/dev/null
4115mkdir .tst 2>/dev/null
4116if test -d .tst; then
4117 am__leading_dot=.
4118else
4119 am__leading_dot=_
4120fi
4121rmdir .tst 2>/dev/null
4122
cristya448bd22011-10-14 12:38:13 +00004123# Check whether --enable-silent-rules was given.
4124if test "${enable_silent_rules+set}" = set; then :
4125 enableval=$enable_silent_rules;
4126fi
4127
cristyc0890a62012-07-19 00:18:20 +00004128case $enable_silent_rules in # (((
4129 yes) AM_DEFAULT_VERBOSITY=0;;
4130 no) AM_DEFAULT_VERBOSITY=1;;
4131 *) AM_DEFAULT_VERBOSITY=1;;
cristya448bd22011-10-14 12:38:13 +00004132esac
cristyc3fb77b2012-02-06 01:49:41 +00004133am_make=${MAKE-make}
4134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4135$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4136if ${am_cv_make_support_nested_variables+:} false; then :
4137 $as_echo_n "(cached) " >&6
4138else
4139 if $as_echo 'TRUE=$(BAR$(V))
4140BAR0=false
4141BAR1=true
4142V=1
4143am__doit:
4144 @$(TRUE)
4145.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4146 am_cv_make_support_nested_variables=yes
4147else
4148 am_cv_make_support_nested_variables=no
4149fi
4150fi
4151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4152$as_echo "$am_cv_make_support_nested_variables" >&6; }
4153if test $am_cv_make_support_nested_variables = yes; then
4154 AM_V='$(V)'
4155 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4156else
4157 AM_V=$AM_DEFAULT_VERBOSITY
4158 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4159fi
cristya448bd22011-10-14 12:38:13 +00004160AM_BACKSLASH='\'
4161
cristy73bd4a52010-10-05 11:24:23 +00004162if test "`cd $srcdir && pwd`" != "`pwd`"; then
4163 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4164 # is not polluted with repeated "-I."
4165 am__isrc=' -I$(srcdir)'
4166 # test to see if srcdir already configured
4167 if test -f $srcdir/config.status; then
cristy98dddb52010-11-04 00:30:15 +00004168 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00004169 fi
4170fi
4171
4172# test whether we have cygpath
4173if test -z "$CYGPATH_W"; then
4174 if (cygpath --version) >/dev/null 2>/dev/null; then
4175 CYGPATH_W='cygpath -w'
4176 else
4177 CYGPATH_W=echo
4178 fi
4179fi
4180
4181
4182# Define the identity of the package.
Cristyff282552015-09-19 16:49:39 -04004183 PACKAGE='ImageMagick'
cristy29eb34e2011-10-16 00:46:08 +00004184 VERSION='7.0.0-0'
cristy73bd4a52010-10-05 11:24:23 +00004185
4186
cristya448bd22011-10-14 12:38:13 +00004187cat >>confdefs.h <<_ACEOF
4188#define PACKAGE "$PACKAGE"
4189_ACEOF
4190
4191
4192cat >>confdefs.h <<_ACEOF
4193#define VERSION "$VERSION"
4194_ACEOF
4195
cristy73bd4a52010-10-05 11:24:23 +00004196# Some tools Automake needs.
4197
4198ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4199
4200
4201AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4202
4203
4204AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4205
4206
4207AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4208
4209
4210MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4211
cristyc0890a62012-07-19 00:18:20 +00004212# For better backward compatibility. To be removed once Automake 1.9.x
4213# dies out for good. For more background, see:
4214# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4215# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4216mkdir_p='$(MKDIR_P)'
4217
cristyead532a2015-06-05 00:49:30 +00004218# We need awk for the "check" target (and possibly the TAP driver). The
4219# system "awk" is bad on some platforms.
cristyc3fb77b2012-02-06 01:49:41 +00004220# Always define AMTAR for backward compatibility. Yes, it's still used
4221# in the wild :-( We should find a proper way to deprecate it ...
4222AMTAR='$${TAR-tar}'
cristy73bd4a52010-10-05 11:24:23 +00004223
cristye69bdbe2013-05-03 21:40:44 +00004224
4225# We'll loop over all known methods to create a tar archive until one works.
4226_am_tools='gnutar pax cpio none'
4227
cristyc3fb77b2012-02-06 01:49:41 +00004228am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
cristy73bd4a52010-10-05 11:24:23 +00004229
4230
4231
4232
4233
cristy3ed852e2009-09-05 21:47:34 +00004234
cristya5bda012013-11-03 18:05:38 +00004235# POSIX will say in a future version that running "rm -f" with no argument
4236# is OK; and we want to be able to make that assumption in our Makefile
4237# recipes. So use an aggressive probe to check that the usage we want is
4238# actually supported "in the wild" to an acceptable degree.
4239# See automake bug#10828.
4240# To make any issue more visible, cause the running configure to be aborted
4241# by default if the 'rm' program in use doesn't match our expectations; the
4242# user can still override this though.
4243if rm -f && rm -fr && rm -rf; then : OK; else
4244 cat >&2 <<'END'
4245Oops!
4246
4247Your 'rm' program seems unable to run without file operands specified
4248on the command line, even when the '-f' option is present. This is contrary
4249to the behaviour of most rm programs out there, and not conforming with
4250the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4251
4252Please tell bug-automake@gnu.org about your system, including the value
4253of your $PATH and any error possibly output before this message. This
4254can help us improve future automake versions.
4255
4256END
4257 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4258 echo 'Configuration will proceed anyway, since you have set the' >&2
4259 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4260 echo >&2
4261 else
4262 cat >&2 <<'END'
4263Aborting the configuration process, to ensure you take notice of the issue.
4264
4265You can download and install GNU coreutils to get an 'rm' implementation
4266that behaves properly: <http://www.gnu.org/software/coreutils/>.
4267
4268If you want to complete the configuration process using your problematic
4269'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4270to "yes", and re-run configure.
4271
4272END
4273 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4274 fi
4275fi
cristyead532a2015-06-05 00:49:30 +00004276
cristy73bd4a52010-10-05 11:24:23 +00004277# Check whether --enable-silent-rules was given.
4278if test "${enable_silent_rules+set}" = set; then :
4279 enableval=$enable_silent_rules;
4280fi
4281
cristyc0890a62012-07-19 00:18:20 +00004282case $enable_silent_rules in # (((
4283 yes) AM_DEFAULT_VERBOSITY=0;;
4284 no) AM_DEFAULT_VERBOSITY=1;;
4285 *) AM_DEFAULT_VERBOSITY=0;;
cristy73bd4a52010-10-05 11:24:23 +00004286esac
cristyc3fb77b2012-02-06 01:49:41 +00004287am_make=${MAKE-make}
4288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4289$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4290if ${am_cv_make_support_nested_variables+:} false; then :
4291 $as_echo_n "(cached) " >&6
4292else
4293 if $as_echo 'TRUE=$(BAR$(V))
4294BAR0=false
4295BAR1=true
4296V=1
4297am__doit:
4298 @$(TRUE)
4299.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4300 am_cv_make_support_nested_variables=yes
4301else
4302 am_cv_make_support_nested_variables=no
4303fi
4304fi
4305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4306$as_echo "$am_cv_make_support_nested_variables" >&6; }
4307if test $am_cv_make_support_nested_variables = yes; then
4308 AM_V='$(V)'
4309 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4310else
4311 AM_V=$AM_DEFAULT_VERBOSITY
4312 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4313fi
cristy73bd4a52010-10-05 11:24:23 +00004314AM_BACKSLASH='\'
4315
cristy3ed852e2009-09-05 21:47:34 +00004316
cristy9af1cbf2014-12-28 22:03:09 +00004317#
4318# Save initial user-tunable values
4319#
4320USER_LIBS=$LIBS
4321for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
4322 eval isset=\${$var+set}
4323 if test "$isset" = 'set'; then
4324 eval val=$`echo $var`
4325 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
4326 fi
4327done
4328
4329
4330CONFIGURE_ARGS="$0 ${ac_configure_args}"
4331
4332
cristy187791c2015-05-03 22:17:00 +00004333# Check whether --enable-reproducible-build was given.
4334if test "${enable_reproducible_build+set}" = set; then :
4335 enableval=$enable_reproducible_build; enable_reproducible_build=$enableval
4336else
4337 enable_reproducible_build='no'
4338fi
4339
4340
cristy9af1cbf2014-12-28 22:03:09 +00004341# Source file containing package/library versioning information.
4342. ${srcdir}/version.sh
4343
4344echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
4345
4346MAGICK_TARGET_CPU=$host_cpu
4347
4348
4349cat >>confdefs.h <<_ACEOF
4350#define MAGICK_TARGET_CPU $MAGICK_TARGET_CPU
4351_ACEOF
4352
4353
4354MAGICK_TARGET_VENDOR=$host_vendor
4355
4356
4357cat >>confdefs.h <<_ACEOF
4358#define MAGICK_TARGET_VENDOR $MAGICK_TARGET_VENDOR
4359_ACEOF
4360
4361
4362MAGICK_TARGET_OS=$host_os
4363
4364
4365cat >>confdefs.h <<_ACEOF
4366#define MAGICK_TARGET_OS $MAGICK_TARGET_OS
4367_ACEOF
4368
4369
4370
4371# Substitute versioning
4372MAGICK_MAJOR_VERSION=7
4373
4374MAGICK_MINOR_VERSION=0
4375
4376MAGICK_MICRO_VERSION=0
4377
4378MAGICK_PATCHLEVEL_VERSION=0
4379
4380MAGICK_VERSION=7.0.0-0
4381
Cristy66387d22015-11-02 07:41:25 -05004382MAGICK_GIT_REVISION=17159:c6b7cef:20151102
cristy9af1cbf2014-12-28 22:03:09 +00004383
4384
4385# Substitute library versioning
4386MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
4387
4388MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
4389
4390
4391MAGICKPP_LIBRARY_CURRENT_MIN=`expr $MAGICKPP_LIBRARY_CURRENT - $MAGICKPP_LIBRARY_AGE`
4392
4393MAGICKPP_LIBRARY_VERSION_INFO=$MAGICKPP_LIBRARY_CURRENT:$MAGICKPP_LIBRARY_REVISION:$MAGICKPP_LIBRARY_AGE
4394
4395
cristy187791c2015-05-03 22:17:00 +00004396if test X$enable_reproducible_build = Xyes; then :
4397 PACKAGE_RELEASE_DATE=$PACKAGE_RELEASE_DATE_REPRODUCIBLE
4398elif PACKAGE_RELEASE_DATE=$PACKAGE_RELEASE_DATE_RAW; then :
4399
4400fi
4401
cristy9af1cbf2014-12-28 22:03:09 +00004402
4403# Ensure that make can run correctly
4404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4405$as_echo_n "checking whether build environment is sane... " >&6; }
4406# Reject unsafe characters in $srcdir or the absolute working directory
4407# name. Accept space and tab only in the latter.
4408am_lf='
4409'
4410case `pwd` in
4411 *[\\\"\#\$\&\'\`$am_lf]*)
4412 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4413esac
4414case $srcdir in
4415 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4416 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4417esac
4418
4419# Do 'set' in a subshell so we don't clobber the current shell's
4420# arguments. Must try -L first in case configure is actually a
4421# symlink; some systems play weird games with the mod time of symlinks
4422# (eg FreeBSD returns the mod time of the symlink's containing
4423# directory).
4424if (
4425 am_has_slept=no
4426 for am_try in 1 2; do
4427 echo "timestamp, slept: $am_has_slept" > conftest.file
4428 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4429 if test "$*" = "X"; then
4430 # -L didn't work.
4431 set X `ls -t "$srcdir/configure" conftest.file`
4432 fi
4433 if test "$*" != "X $srcdir/configure conftest.file" \
4434 && test "$*" != "X conftest.file $srcdir/configure"; then
4435
4436 # If neither matched, then we have a broken ls. This can happen
4437 # if, for instance, CONFIG_SHELL is bash and it inherits a
4438 # broken ls alias from the environment. This has actually
4439 # happened. Such a system could not be considered "sane".
4440 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4441 alias in your environment" "$LINENO" 5
4442 fi
4443 if test "$2" = conftest.file || test $am_try -eq 2; then
4444 break
4445 fi
4446 # Just in case.
4447 sleep 1
4448 am_has_slept=yes
4449 done
4450 test "$2" = conftest.file
4451 )
4452then
4453 # Ok.
4454 :
4455else
4456 as_fn_error $? "newly created file is older than distributed files!
4457Check your system clock" "$LINENO" 5
4458fi
4459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4460$as_echo "yes" >&6; }
4461# If we didn't sleep, we still need to ensure time stamps of config.status and
4462# generated files are strictly newer.
4463am_sleep_pid=
4464if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4465 ( sleep 1 ) &
4466 am_sleep_pid=$!
4467fi
4468
4469rm -f conftest.file
4470
4471
cristyf279b692014-08-13 12:01:27 +00004472# versioning of library
cristy3ed852e2009-09-05 21:47:34 +00004473MAGICK_LIB_VERSION="0x"
4474if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
4475 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4476fi
4477MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
4478if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
4479 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4480fi
4481MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
4482if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
4483 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4484fi
4485MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
4486
4487
4488# Definition used to define MagickLibVersionText in version.h
4489MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4490
4491
4492# Definition used to define MagickLibVersionNumber in version.h
4493MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4494
4495
cristy5ed9c6e2013-07-14 21:20:31 +00004496MAGICKPP_LIB_VERSION="0x"
4497if test ${MAGICKPP_LIBRARY_CURRENT} -lt 10 ; then
4498 MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0
4499fi
4500MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_CURRENT}
4501if test ${MAGICKPP_LIBRARY_AGE} -lt 10 ; then
4502 MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0
4503fi
4504MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_AGE}
4505if test ${MAGICKPP_LIBRARY_REVISION} -lt 10 ; then
4506 MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0
4507fi
4508MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_REVISION}
4509
4510
4511# Definition used to define MagickLibVersionText in version.h
4512MAGICKPP_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4513
4514
4515# Definition used to define MagickLibVersionNumber in version.h
4516MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4517
4518
4519
4520
cristy3ed852e2009-09-05 21:47:34 +00004521# Regenerate config.status if ChangeLog or version.sh is updated.
4522CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
4523
4524
4525PERLMAINCC=$CC
4526
4527MAGICK_CFLAGS=''
4528MAGICK_CPPFLAGS=$CPPFLAGS_USER
4529MAGICK_PCFLAGS=$CPPFLAGS_USER
4530MAGICK_LDFLAGS=''
4531MAGICK_LIBS=''
cristyfd9dcd42010-08-08 18:07:02 +00004532MAGICK_FEATURES=''
cristy3ed852e2009-09-05 21:47:34 +00004533
4534#
4535# Evaluate shell variable equivalents to Makefile directory variables
4536#
4537if test "x$prefix" = xNONE; then
4538 prefix=$ac_default_prefix
4539fi
4540# Let make expand exec_prefix.
4541if test "x$exec_prefix" = xNONE; then
4542 exec_prefix='${prefix}'
4543fi
4544
4545#
4546eval "eval PREFIX_DIR=${prefix}"
4547
4548eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4549
4550eval "eval BIN_DIR=$bindir"
4551
4552eval "eval SBIN_DIR=$sbindir"
4553
4554eval "eval LIBEXEC_DIR=$libexecdir"
4555
4556eval "eval DATA_DIR=$datadir"
4557
Cristye35bdc62015-09-19 18:29:00 -04004558eval "eval DOC_DIR=$datadir/doc"
cristyd55889c2011-03-27 00:50:24 +00004559
cristy3ed852e2009-09-05 21:47:34 +00004560eval "eval SYSCONF_DIR=$sysconfdir"
4561
4562eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4563
4564eval "eval LOCALSTATE_DIR=$localstatedir"
4565
4566eval "eval LIB_DIR=$libdir"
4567
4568eval "eval INCLUDE_DIR=$includedir"
4569
4570eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4571
4572eval "eval INFO_DIR=$infodir"
4573
4574eval "eval MAN_DIR=$mandir"
4575
4576
4577# Get full paths to source and build directories
4578srcdirfull="`cd $srcdir && pwd`"
4579builddir="`pwd`"
4580
4581#
4582# Compute variables useful for running uninstalled software.
4583#
4584MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4585MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4586MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4587MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4588DIRSEP=':'
4589case "${build_os}" in
4590 mingw* )
4591 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4592 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4593 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4594 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4595 DIRSEP=';'
4596 ;;
4597esac
4598case "${host_os}" in
4599 mingw* )
4600 DIRSEP=';'
4601 ;;
4602esac
4603
4604
4605
4606
4607
4608
cristya0b81c32010-01-22 02:54:33 +00004609
4610#
4611# Enable OS features.
4612#
cristy73bd4a52010-10-05 11:24:23 +00004613DEPDIR="${am__leading_dot}deps"
4614
4615ac_config_commands="$ac_config_commands depfiles"
4616
4617
4618am_make=${MAKE-make}
4619cat > confinc << 'END'
4620am__doit:
4621 @echo this is the am__doit target
4622.PHONY: am__doit
4623END
4624# If we don't find an include directive, just comment out the code.
4625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4626$as_echo_n "checking for style of include used by $am_make... " >&6; }
4627am__include="#"
4628am__quote=
4629_am_result=none
4630# First try GNU make style include.
4631echo "include confinc" > confmf
cristyc0890a62012-07-19 00:18:20 +00004632# Ignore all kinds of additional output from 'make'.
cristy73bd4a52010-10-05 11:24:23 +00004633case `$am_make -s -f confmf 2> /dev/null` in #(
4634*the\ am__doit\ target*)
4635 am__include=include
4636 am__quote=
4637 _am_result=GNU
4638 ;;
4639esac
4640# Now try BSD make style include.
4641if test "$am__include" = "#"; then
4642 echo '.include "confinc"' > confmf
4643 case `$am_make -s -f confmf 2> /dev/null` in #(
4644 *the\ am__doit\ target*)
4645 am__include=.include
4646 am__quote="\""
4647 _am_result=BSD
4648 ;;
4649 esac
4650fi
4651
4652
4653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4654$as_echo "$_am_result" >&6; }
4655rm -f confinc confmf
4656
4657# Check whether --enable-dependency-tracking was given.
4658if test "${enable_dependency_tracking+set}" = set; then :
4659 enableval=$enable_dependency_tracking;
4660fi
4661
4662if test "x$enable_dependency_tracking" != xno; then
4663 am_depcomp="$ac_aux_dir/depcomp"
4664 AMDEPBACKSLASH='\'
cristy7247bba2012-02-05 16:37:27 +00004665 am__nodep='_no'
cristy73bd4a52010-10-05 11:24:23 +00004666fi
4667 if test "x$enable_dependency_tracking" != xno; then
4668 AMDEP_TRUE=
4669 AMDEP_FALSE='#'
4670else
4671 AMDEP_TRUE='#'
4672 AMDEP_FALSE=
4673fi
4674
4675
cristy3ed852e2009-09-05 21:47:34 +00004676ac_ext=c
4677ac_cpp='$CPP $CPPFLAGS'
4678ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4679ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4680ac_compiler_gnu=$ac_cv_c_compiler_gnu
4681if test -n "$ac_tool_prefix"; then
4682 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4683set dummy ${ac_tool_prefix}gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004685$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004686if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004687 $as_echo_n "(cached) " >&6
4688else
4689 if test -n "$CC"; then
4690 ac_cv_prog_CC="$CC" # Let the user override the test.
4691else
4692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4693for as_dir in $PATH
4694do
4695 IFS=$as_save_IFS
4696 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004697 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004698 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004699 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cristy8b350f62009-11-15 23:12:43 +00004700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004701 break 2
4702 fi
4703done
cristy8b350f62009-11-15 23:12:43 +00004704 done
cristy3ed852e2009-09-05 21:47:34 +00004705IFS=$as_save_IFS
4706
4707fi
4708fi
4709CC=$ac_cv_prog_CC
4710if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004712$as_echo "$CC" >&6; }
4713else
cristy8b350f62009-11-15 23:12:43 +00004714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004715$as_echo "no" >&6; }
4716fi
4717
4718
4719fi
4720if test -z "$ac_cv_prog_CC"; then
4721 ac_ct_CC=$CC
4722 # Extract the first word of "gcc", so it can be a program name with args.
4723set dummy gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004725$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004726if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004727 $as_echo_n "(cached) " >&6
4728else
4729 if test -n "$ac_ct_CC"; then
4730 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4731else
4732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4733for as_dir in $PATH
4734do
4735 IFS=$as_save_IFS
4736 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004737 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004738 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004739 ac_cv_prog_ac_ct_CC="gcc"
cristy8b350f62009-11-15 23:12:43 +00004740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004741 break 2
4742 fi
4743done
cristy8b350f62009-11-15 23:12:43 +00004744 done
cristy3ed852e2009-09-05 21:47:34 +00004745IFS=$as_save_IFS
4746
4747fi
4748fi
4749ac_ct_CC=$ac_cv_prog_ac_ct_CC
4750if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004752$as_echo "$ac_ct_CC" >&6; }
4753else
cristy8b350f62009-11-15 23:12:43 +00004754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004755$as_echo "no" >&6; }
4756fi
4757
4758 if test "x$ac_ct_CC" = x; then
4759 CC=""
4760 else
4761 case $cross_compiling:$ac_tool_warned in
4762yes:)
cristy8b350f62009-11-15 23:12:43 +00004763{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004764$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4765ac_tool_warned=yes ;;
4766esac
4767 CC=$ac_ct_CC
4768 fi
4769else
4770 CC="$ac_cv_prog_CC"
4771fi
4772
4773if test -z "$CC"; then
4774 if test -n "$ac_tool_prefix"; then
4775 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4776set dummy ${ac_tool_prefix}cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004778$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004779if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004780 $as_echo_n "(cached) " >&6
4781else
4782 if test -n "$CC"; then
4783 ac_cv_prog_CC="$CC" # Let the user override the test.
4784else
4785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4786for as_dir in $PATH
4787do
4788 IFS=$as_save_IFS
4789 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004790 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004791 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004792 ac_cv_prog_CC="${ac_tool_prefix}cc"
cristy8b350f62009-11-15 23:12:43 +00004793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004794 break 2
4795 fi
4796done
cristy8b350f62009-11-15 23:12:43 +00004797 done
cristy3ed852e2009-09-05 21:47:34 +00004798IFS=$as_save_IFS
4799
4800fi
4801fi
4802CC=$ac_cv_prog_CC
4803if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004805$as_echo "$CC" >&6; }
4806else
cristy8b350f62009-11-15 23:12:43 +00004807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004808$as_echo "no" >&6; }
4809fi
4810
4811
4812 fi
4813fi
4814if test -z "$CC"; then
4815 # Extract the first word of "cc", so it can be a program name with args.
4816set dummy cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004818$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004819if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004820 $as_echo_n "(cached) " >&6
4821else
4822 if test -n "$CC"; then
4823 ac_cv_prog_CC="$CC" # Let the user override the test.
4824else
4825 ac_prog_rejected=no
4826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4827for as_dir in $PATH
4828do
4829 IFS=$as_save_IFS
4830 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004831 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004832 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004833 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4834 ac_prog_rejected=yes
4835 continue
4836 fi
4837 ac_cv_prog_CC="cc"
cristy8b350f62009-11-15 23:12:43 +00004838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004839 break 2
4840 fi
4841done
cristy8b350f62009-11-15 23:12:43 +00004842 done
cristy3ed852e2009-09-05 21:47:34 +00004843IFS=$as_save_IFS
4844
4845if test $ac_prog_rejected = yes; then
4846 # We found a bogon in the path, so make sure we never use it.
4847 set dummy $ac_cv_prog_CC
4848 shift
4849 if test $# != 0; then
4850 # We chose a different compiler from the bogus one.
4851 # However, it has the same basename, so the bogon will be chosen
4852 # first if we set CC to just the basename; use the full file name.
4853 shift
4854 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4855 fi
4856fi
4857fi
4858fi
4859CC=$ac_cv_prog_CC
4860if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004862$as_echo "$CC" >&6; }
4863else
cristy8b350f62009-11-15 23:12:43 +00004864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004865$as_echo "no" >&6; }
4866fi
4867
4868
4869fi
4870if test -z "$CC"; then
4871 if test -n "$ac_tool_prefix"; then
4872 for ac_prog in cl.exe
4873 do
4874 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4875set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004877$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004878if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004879 $as_echo_n "(cached) " >&6
4880else
4881 if test -n "$CC"; then
4882 ac_cv_prog_CC="$CC" # Let the user override the test.
4883else
4884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4885for as_dir in $PATH
4886do
4887 IFS=$as_save_IFS
4888 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004889 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004890 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004891 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004893 break 2
4894 fi
4895done
cristy8b350f62009-11-15 23:12:43 +00004896 done
cristy3ed852e2009-09-05 21:47:34 +00004897IFS=$as_save_IFS
4898
4899fi
4900fi
4901CC=$ac_cv_prog_CC
4902if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004904$as_echo "$CC" >&6; }
4905else
cristy8b350f62009-11-15 23:12:43 +00004906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004907$as_echo "no" >&6; }
4908fi
4909
4910
4911 test -n "$CC" && break
4912 done
4913fi
4914if test -z "$CC"; then
4915 ac_ct_CC=$CC
4916 for ac_prog in cl.exe
4917do
4918 # Extract the first word of "$ac_prog", so it can be a program name with args.
4919set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004921$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004922if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004923 $as_echo_n "(cached) " >&6
4924else
4925 if test -n "$ac_ct_CC"; then
4926 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4927else
4928as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4929for as_dir in $PATH
4930do
4931 IFS=$as_save_IFS
4932 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004933 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004934 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004935 ac_cv_prog_ac_ct_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004937 break 2
4938 fi
4939done
cristy8b350f62009-11-15 23:12:43 +00004940 done
cristy3ed852e2009-09-05 21:47:34 +00004941IFS=$as_save_IFS
4942
4943fi
4944fi
4945ac_ct_CC=$ac_cv_prog_ac_ct_CC
4946if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004948$as_echo "$ac_ct_CC" >&6; }
4949else
cristy8b350f62009-11-15 23:12:43 +00004950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004951$as_echo "no" >&6; }
4952fi
4953
4954
4955 test -n "$ac_ct_CC" && break
4956done
4957
4958 if test "x$ac_ct_CC" = x; then
4959 CC=""
4960 else
4961 case $cross_compiling:$ac_tool_warned in
4962yes:)
cristy8b350f62009-11-15 23:12:43 +00004963{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004964$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4965ac_tool_warned=yes ;;
4966esac
4967 CC=$ac_ct_CC
4968 fi
4969fi
4970
4971fi
4972
4973
cristy8b350f62009-11-15 23:12:43 +00004974test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004975$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004976as_fn_error $? "no acceptable C compiler found in \$PATH
4977See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004978
4979# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00004980$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00004981set X $ac_compile
4982ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00004983for ac_option in --version -v -V -qversion; do
4984 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00004985case "(($ac_try" in
4986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4987 *) ac_try_echo=$ac_try;;
4988esac
cristy8b350f62009-11-15 23:12:43 +00004989eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4990$as_echo "$ac_try_echo"; } >&5
4991 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00004992 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004993 if test -s conftest.err; then
4994 sed '10a\
4995... rest of stderr output deleted ...
4996 10q' conftest.err >conftest.er1
4997 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +00004998 fi
cristycd4c5312009-11-22 01:19:08 +00004999 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +00005000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5001 test $ac_status = 0; }
5002done
cristy3ed852e2009-09-05 21:47:34 +00005003
cristy8b350f62009-11-15 23:12:43 +00005004cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005005/* end confdefs.h. */
cristycd4c5312009-11-22 01:19:08 +00005006
cristy3ed852e2009-09-05 21:47:34 +00005007int
5008main ()
5009{
5010
5011 ;
5012 return 0;
5013}
5014_ACEOF
5015ac_clean_files_save=$ac_clean_files
cristycd4c5312009-11-22 01:19:08 +00005016ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cristy3ed852e2009-09-05 21:47:34 +00005017# Try to create an executable without -o first, disregard a.out.
5018# It will help us diagnose broken compilers, and finding out an intuition
5019# of exeext.
cristycd4c5312009-11-22 01:19:08 +00005020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5021$as_echo_n "checking whether the C compiler works... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +00005022ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5023
5024# The possible output files:
5025ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5026
5027ac_rmfiles=
5028for ac_file in $ac_files
5029do
5030 case $ac_file in
5031 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5032 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5033 esac
5034done
5035rm -f $ac_rmfiles
5036
cristy8b350f62009-11-15 23:12:43 +00005037if { { ac_try="$ac_link_default"
cristy3ed852e2009-09-05 21:47:34 +00005038case "(($ac_try" in
5039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5040 *) ac_try_echo=$ac_try;;
5041esac
cristy8b350f62009-11-15 23:12:43 +00005042eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5043$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00005044 (eval "$ac_link_default") 2>&5
5045 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00005046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5047 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00005048 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5049# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5050# in a Makefile. We should not override ac_cv_exeext if it was cached,
5051# so that the user can short-circuit this test for compilers unknown to
5052# Autoconf.
5053for ac_file in $ac_files ''
5054do
5055 test -f "$ac_file" || continue
5056 case $ac_file in
5057 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5058 ;;
5059 [ab].out )
5060 # We found the default executable, but exeext='' is most
5061 # certainly right.
5062 break;;
5063 *.* )
cristy8b350f62009-11-15 23:12:43 +00005064 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cristy3ed852e2009-09-05 21:47:34 +00005065 then :; else
5066 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5067 fi
5068 # We set ac_cv_exeext here because the later test for it is not
5069 # safe: cross compilers may not add the suffix if given an `-o'
5070 # argument, so we may need to know it at that point already.
5071 # Even if this section looks crufty: it has the advantage of
5072 # actually working.
5073 break;;
5074 * )
5075 break;;
5076 esac
5077done
5078test "$ac_cv_exeext" = no && ac_cv_exeext=
5079
5080else
5081 ac_file=''
5082fi
cristy8b350f62009-11-15 23:12:43 +00005083if test -z "$ac_file"; then :
cristycd4c5312009-11-22 01:19:08 +00005084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5085$as_echo "no" >&6; }
5086$as_echo "$as_me: failed program was:" >&5
cristy3ed852e2009-09-05 21:47:34 +00005087sed 's/^/| /' conftest.$ac_ext >&5
5088
cristy8b350f62009-11-15 23:12:43 +00005089{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00005090$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005091as_fn_error 77 "C compiler cannot create executables
5092See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00005093else
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5095$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00005096fi
cristycd4c5312009-11-22 01:19:08 +00005097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5098$as_echo_n "checking for C compiler default output file name... " >&6; }
5099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5100$as_echo "$ac_file" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00005101ac_exeext=$ac_cv_exeext
5102
cristycd4c5312009-11-22 01:19:08 +00005103rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cristy3ed852e2009-09-05 21:47:34 +00005104ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00005105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cristy3ed852e2009-09-05 21:47:34 +00005106$as_echo_n "checking for suffix of executables... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00005107if { { ac_try="$ac_link"
cristy3ed852e2009-09-05 21:47:34 +00005108case "(($ac_try" in
5109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5110 *) ac_try_echo=$ac_try;;
5111esac
cristy8b350f62009-11-15 23:12:43 +00005112eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5113$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00005114 (eval "$ac_link") 2>&5
5115 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00005116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5117 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00005118 # If both `conftest.exe' and `conftest' are `present' (well, observable)
5119# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
5120# work properly (i.e., refer to `conftest.exe'), while it won't with
5121# `rm'.
5122for ac_file in conftest.exe conftest conftest.*; do
5123 test -f "$ac_file" || continue
5124 case $ac_file in
5125 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5126 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5127 break;;
5128 * ) break;;
5129 esac
5130done
5131else
cristy8b350f62009-11-15 23:12:43 +00005132 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00005133$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005134as_fn_error $? "cannot compute suffix of executables: cannot compile and link
5135See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00005136fi
cristycd4c5312009-11-22 01:19:08 +00005137rm -f conftest conftest$ac_cv_exeext
cristy8b350f62009-11-15 23:12:43 +00005138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cristy3ed852e2009-09-05 21:47:34 +00005139$as_echo "$ac_cv_exeext" >&6; }
5140
5141rm -f conftest.$ac_ext
5142EXEEXT=$ac_cv_exeext
5143ac_exeext=$EXEEXT
cristycd4c5312009-11-22 01:19:08 +00005144cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5145/* end confdefs.h. */
5146#include <stdio.h>
5147int
5148main ()
5149{
5150FILE *f = fopen ("conftest.out", "w");
5151 return ferror (f) || fclose (f) != 0;
5152
5153 ;
5154 return 0;
5155}
5156_ACEOF
5157ac_clean_files="$ac_clean_files conftest.out"
5158# Check that the compiler produces executables we can run. If not, either
5159# the compiler is broken, or we cross compile.
5160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5161$as_echo_n "checking whether we are cross compiling... " >&6; }
5162if test "$cross_compiling" != yes; then
5163 { { ac_try="$ac_link"
5164case "(($ac_try" in
5165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5166 *) ac_try_echo=$ac_try;;
5167esac
5168eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5169$as_echo "$ac_try_echo"; } >&5
5170 (eval "$ac_link") 2>&5
5171 ac_status=$?
5172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5173 test $ac_status = 0; }
5174 if { ac_try='./conftest$ac_cv_exeext'
5175 { { case "(($ac_try" in
5176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5177 *) ac_try_echo=$ac_try;;
5178esac
5179eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5180$as_echo "$ac_try_echo"; } >&5
5181 (eval "$ac_try") 2>&5
5182 ac_status=$?
5183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5184 test $ac_status = 0; }; }; then
5185 cross_compiling=no
5186 else
5187 if test "$cross_compiling" = maybe; then
5188 cross_compiling=yes
5189 else
5190 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5191$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005192as_fn_error $? "cannot run C compiled programs.
cristycd4c5312009-11-22 01:19:08 +00005193If you meant to cross compile, use \`--host'.
cristy98dddb52010-11-04 00:30:15 +00005194See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00005195 fi
5196 fi
5197fi
5198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5199$as_echo "$cross_compiling" >&6; }
5200
5201rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5202ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00005203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00005204$as_echo_n "checking for suffix of object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005205if ${ac_cv_objext+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005206 $as_echo_n "(cached) " >&6
5207else
cristy8b350f62009-11-15 23:12:43 +00005208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005209/* end confdefs.h. */
5210
5211int
5212main ()
5213{
5214
5215 ;
5216 return 0;
5217}
5218_ACEOF
5219rm -f conftest.o conftest.obj
cristy8b350f62009-11-15 23:12:43 +00005220if { { ac_try="$ac_compile"
cristy3ed852e2009-09-05 21:47:34 +00005221case "(($ac_try" in
5222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5223 *) ac_try_echo=$ac_try;;
5224esac
cristy8b350f62009-11-15 23:12:43 +00005225eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5226$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00005227 (eval "$ac_compile") 2>&5
5228 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00005229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5230 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00005231 for ac_file in conftest.o conftest.obj conftest.*; do
5232 test -f "$ac_file" || continue;
5233 case $ac_file in
5234 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5235 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5236 break;;
5237 esac
5238done
5239else
5240 $as_echo "$as_me: failed program was:" >&5
5241sed 's/^/| /' conftest.$ac_ext >&5
5242
cristy8b350f62009-11-15 23:12:43 +00005243{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00005244$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005245as_fn_error $? "cannot compute suffix of object files: cannot compile
5246See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00005247fi
cristy3ed852e2009-09-05 21:47:34 +00005248rm -f conftest.$ac_cv_objext conftest.$ac_ext
5249fi
cristy8b350f62009-11-15 23:12:43 +00005250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +00005251$as_echo "$ac_cv_objext" >&6; }
5252OBJEXT=$ac_cv_objext
5253ac_objext=$OBJEXT
cristy8b350f62009-11-15 23:12:43 +00005254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00005255$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005256if ${ac_cv_c_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005257 $as_echo_n "(cached) " >&6
5258else
cristy8b350f62009-11-15 23:12:43 +00005259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005260/* end confdefs.h. */
5261
5262int
5263main ()
5264{
5265#ifndef __GNUC__
5266 choke me
5267#endif
5268
5269 ;
5270 return 0;
5271}
5272_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005273if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005274 ac_compiler_gnu=yes
5275else
cristy8b350f62009-11-15 23:12:43 +00005276 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00005277fi
cristy3ed852e2009-09-05 21:47:34 +00005278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5279ac_cv_c_compiler_gnu=$ac_compiler_gnu
5280
5281fi
cristy8b350f62009-11-15 23:12:43 +00005282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00005283$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5284if test $ac_compiler_gnu = yes; then
5285 GCC=yes
5286else
5287 GCC=
5288fi
5289ac_test_CFLAGS=${CFLAGS+set}
5290ac_save_CFLAGS=$CFLAGS
cristy8b350f62009-11-15 23:12:43 +00005291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00005292$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005293if ${ac_cv_prog_cc_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005294 $as_echo_n "(cached) " >&6
5295else
5296 ac_save_c_werror_flag=$ac_c_werror_flag
5297 ac_c_werror_flag=yes
5298 ac_cv_prog_cc_g=no
5299 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00005300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005301/* end confdefs.h. */
5302
5303int
5304main ()
5305{
5306
5307 ;
5308 return 0;
5309}
5310_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005311if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005312 ac_cv_prog_cc_g=yes
5313else
cristy8b350f62009-11-15 23:12:43 +00005314 CFLAGS=""
5315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005316/* end confdefs.h. */
5317
5318int
5319main ()
5320{
5321
5322 ;
5323 return 0;
5324}
5325_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005326if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005327
cristy8b350f62009-11-15 23:12:43 +00005328else
5329 ac_c_werror_flag=$ac_save_c_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00005330 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00005331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005332/* end confdefs.h. */
5333
5334int
5335main ()
5336{
5337
5338 ;
5339 return 0;
5340}
5341_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005342if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005343 ac_cv_prog_cc_g=yes
cristy3ed852e2009-09-05 21:47:34 +00005344fi
cristy3ed852e2009-09-05 21:47:34 +00005345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5346fi
cristy3ed852e2009-09-05 21:47:34 +00005347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5348fi
cristy3ed852e2009-09-05 21:47:34 +00005349rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5350 ac_c_werror_flag=$ac_save_c_werror_flag
5351fi
cristy8b350f62009-11-15 23:12:43 +00005352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00005353$as_echo "$ac_cv_prog_cc_g" >&6; }
5354if test "$ac_test_CFLAGS" = set; then
5355 CFLAGS=$ac_save_CFLAGS
5356elif test $ac_cv_prog_cc_g = yes; then
5357 if test "$GCC" = yes; then
5358 CFLAGS="-g -O2"
5359 else
5360 CFLAGS="-g"
5361 fi
5362else
5363 if test "$GCC" = yes; then
5364 CFLAGS="-O2"
5365 else
5366 CFLAGS=
5367 fi
5368fi
cristy8b350f62009-11-15 23:12:43 +00005369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005370$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005371if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005372 $as_echo_n "(cached) " >&6
5373else
5374 ac_cv_prog_cc_c89=no
5375ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00005376cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005377/* end confdefs.h. */
5378#include <stdarg.h>
5379#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00005380struct stat;
cristy3ed852e2009-09-05 21:47:34 +00005381/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5382struct buf { int x; };
5383FILE * (*rcsopen) (struct buf *, struct stat *, int);
5384static char *e (p, i)
5385 char **p;
5386 int i;
5387{
5388 return p[i];
5389}
5390static char *f (char * (*g) (char **, int), char **p, ...)
5391{
5392 char *s;
5393 va_list v;
5394 va_start (v,p);
5395 s = g (p, va_arg (v,int));
5396 va_end (v);
5397 return s;
5398}
5399
5400/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5401 function prototypes and stuff, but not '\xHH' hex character constants.
5402 These don't provoke an error unfortunately, instead are silently treated
5403 as 'x'. The following induces an error, until -std is added to get
5404 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5405 array size at least. It's necessary to write '\x00'==0 to get something
5406 that's true only with -std. */
5407int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5408
5409/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5410 inside strings and character constants. */
5411#define FOO(x) 'x'
5412int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5413
5414int test (int i, double x);
5415struct s1 {int (*f) (int a);};
5416struct s2 {int (*f) (double a);};
5417int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5418int argc;
5419char **argv;
5420int
5421main ()
5422{
5423return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5424 ;
5425 return 0;
5426}
5427_ACEOF
5428for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5429 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5430do
5431 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00005432 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005433 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00005434fi
cristy3ed852e2009-09-05 21:47:34 +00005435rm -f core conftest.err conftest.$ac_objext
5436 test "x$ac_cv_prog_cc_c89" != "xno" && break
5437done
5438rm -f conftest.$ac_ext
5439CC=$ac_save_CC
5440
5441fi
5442# AC_CACHE_VAL
5443case "x$ac_cv_prog_cc_c89" in
5444 x)
cristy8b350f62009-11-15 23:12:43 +00005445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00005446$as_echo "none needed" >&6; } ;;
5447 xno)
cristy8b350f62009-11-15 23:12:43 +00005448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00005449$as_echo "unsupported" >&6; } ;;
5450 *)
5451 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00005452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005453$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5454esac
cristy8b350f62009-11-15 23:12:43 +00005455if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00005456
cristy8b350f62009-11-15 23:12:43 +00005457fi
cristy3ed852e2009-09-05 21:47:34 +00005458
5459ac_ext=c
5460ac_cpp='$CPP $CPPFLAGS'
5461ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5462ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5463ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00005464
cristya5bda012013-11-03 18:05:38 +00005465ac_ext=c
5466ac_cpp='$CPP $CPPFLAGS'
5467ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5468ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5469ac_compiler_gnu=$ac_cv_c_compiler_gnu
5470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5471$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5472if ${am_cv_prog_cc_c_o+:} false; then :
5473 $as_echo_n "(cached) " >&6
5474else
5475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5476/* end confdefs.h. */
5477
5478int
5479main ()
5480{
5481
5482 ;
5483 return 0;
5484}
5485_ACEOF
5486 # Make sure it works both with $CC and with simple cc.
5487 # Following AC_PROG_CC_C_O, we do the test twice because some
5488 # compilers refuse to overwrite an existing .o file with -o,
5489 # though they will create one.
5490 am_cv_prog_cc_c_o=yes
5491 for am_i in 1 2; do
5492 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5493 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5494 ac_status=$?
5495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5496 (exit $ac_status); } \
5497 && test -f conftest2.$ac_objext; then
5498 : OK
5499 else
5500 am_cv_prog_cc_c_o=no
5501 break
5502 fi
5503 done
5504 rm -f core conftest*
5505 unset am_i
5506fi
5507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5508$as_echo "$am_cv_prog_cc_c_o" >&6; }
5509if test "$am_cv_prog_cc_c_o" != yes; then
5510 # Losing compiler, so override with the script.
5511 # FIXME: It is wrong to rewrite CC.
5512 # But if we don't then we get into trouble of one sort or another.
5513 # A longer-term fix would be to have automake use am__CC in this case,
5514 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5515 CC="$am_aux_dir/compile $CC"
5516fi
5517ac_ext=c
5518ac_cpp='$CPP $CPPFLAGS'
5519ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5520ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5521ac_compiler_gnu=$ac_cv_c_compiler_gnu
5522
5523
cristy73bd4a52010-10-05 11:24:23 +00005524depcc="$CC" am_compiler_list=
5525
5526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5527$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005528if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00005529 $as_echo_n "(cached) " >&6
5530else
5531 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5532 # We make a subdir and do the tests there. Otherwise we can end up
5533 # making bogus files that we don't know about and never remove. For
5534 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00005535 # making a dummy file named 'D' -- because '-MD' means "put the output
5536 # in D".
cristy7247bba2012-02-05 16:37:27 +00005537 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00005538 mkdir conftest.dir
5539 # Copy depcomp to subdir because otherwise we won't find it if we're
5540 # using a relative directory.
5541 cp "$am_depcomp" conftest.dir
5542 cd conftest.dir
5543 # We will build objects and dependencies in a subdirectory because
5544 # it helps to detect inapplicable dependency modes. For instance
5545 # both Tru64's cc and ICC support -MD to output dependencies as a
5546 # side effect of compilation, but ICC will put the dependencies in
5547 # the current directory while Tru64 will put them in the object
5548 # directory.
5549 mkdir sub
5550
5551 am_cv_CC_dependencies_compiler_type=none
5552 if test "$am_compiler_list" = ""; then
5553 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5554 fi
5555 am__universal=false
5556 case " $depcc " in #(
5557 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5558 esac
5559
5560 for depmode in $am_compiler_list; do
5561 # Setup a source with many dependencies, because some compilers
5562 # like to wrap large dependency lists on column 80 (with \), and
5563 # we should not choose a depcomp mode which is confused by this.
5564 #
5565 # We need to recreate these files for each test, as the compiler may
5566 # overwrite some of them when testing with obscure command lines.
5567 # This happens at least with the AIX C compiler.
5568 : > sub/conftest.c
5569 for i in 1 2 3 4 5 6; do
5570 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00005571 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5572 # Solaris 10 /bin/sh.
5573 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00005574 done
5575 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5576
cristyc0890a62012-07-19 00:18:20 +00005577 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00005578 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00005579 # handle '-M -o', and we need to detect this. Also, some Intel
5580 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00005581 am__obj=sub/conftest.${OBJEXT-o}
5582 am__minus_obj="-o $am__obj"
5583 case $depmode in
5584 gcc)
5585 # This depmode causes a compiler race in universal mode.
5586 test "$am__universal" = false || continue
5587 ;;
5588 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00005589 # After this tag, mechanisms are not by side-effect, so they'll
5590 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00005591 if test "x$enable_dependency_tracking" = xyes; then
5592 continue
5593 else
5594 break
5595 fi
5596 ;;
cristy7247bba2012-02-05 16:37:27 +00005597 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00005598 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00005599 # not run yet. These depmodes are late enough in the game, and
5600 # so weak that their functioning should not be impacted.
5601 am__obj=conftest.${OBJEXT-o}
5602 am__minus_obj=
5603 ;;
5604 none) break ;;
5605 esac
5606 if depmode=$depmode \
5607 source=sub/conftest.c object=$am__obj \
5608 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5609 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5610 >/dev/null 2>conftest.err &&
5611 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5612 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5613 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5614 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5615 # icc doesn't choke on unknown options, it will just issue warnings
5616 # or remarks (even with -Werror). So we grep stderr for any message
5617 # that says an option was ignored or not supported.
5618 # When given -MP, icc 7.0 and 7.1 complain thusly:
5619 # icc: Command line warning: ignoring option '-M'; no argument required
5620 # The diagnosis changed in icc 8.0:
5621 # icc: Command line remark: option '-MP' not supported
5622 if (grep 'ignoring option' conftest.err ||
5623 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5624 am_cv_CC_dependencies_compiler_type=$depmode
5625 break
5626 fi
5627 fi
5628 done
5629
5630 cd ..
5631 rm -rf conftest.dir
5632else
5633 am_cv_CC_dependencies_compiler_type=none
5634fi
5635
5636fi
5637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5638$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5639CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5640
5641 if
5642 test "x$enable_dependency_tracking" != xno \
5643 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5644 am__fastdepCC_TRUE=
5645 am__fastdepCC_FALSE='#'
5646else
5647 am__fastdepCC_TRUE='#'
5648 am__fastdepCC_FALSE=
5649fi
5650
5651
cristy3ed852e2009-09-05 21:47:34 +00005652
cristya0b81c32010-01-22 02:54:33 +00005653ac_ext=c
5654ac_cpp='$CPP $CPPFLAGS'
5655ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5656ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5657ac_compiler_gnu=$ac_cv_c_compiler_gnu
5658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5659$as_echo_n "checking how to run the C preprocessor... " >&6; }
5660# On Suns, sometimes $CPP names a directory.
5661if test -n "$CPP" && test -d "$CPP"; then
5662 CPP=
5663fi
5664if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00005665 if ${ac_cv_prog_CPP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005666 $as_echo_n "(cached) " >&6
5667else
5668 # Double quotes because CPP needs to be expanded
5669 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5670 do
5671 ac_preproc_ok=false
5672for ac_c_preproc_warn_flag in '' yes
5673do
5674 # Use a header file that comes with gcc, so configuring glibc
5675 # with a fresh cross-compiler works.
5676 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5677 # <limits.h> exists even on freestanding compilers.
5678 # On the NeXT, cc -E runs the code through the compiler's parser,
5679 # not just through cpp. "Syntax error" is here to catch this case.
5680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5681/* end confdefs.h. */
5682#ifdef __STDC__
5683# include <limits.h>
5684#else
5685# include <assert.h>
5686#endif
5687 Syntax error
5688_ACEOF
5689if ac_fn_c_try_cpp "$LINENO"; then :
5690
5691else
5692 # Broken: fails on valid input.
5693continue
5694fi
cristyda16f162011-02-19 23:52:17 +00005695rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005696
5697 # OK, works on sane cases. Now check whether nonexistent headers
5698 # can be detected and how.
5699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5700/* end confdefs.h. */
5701#include <ac_nonexistent.h>
5702_ACEOF
5703if ac_fn_c_try_cpp "$LINENO"; then :
5704 # Broken: success on invalid input.
5705continue
5706else
5707 # Passes both tests.
5708ac_preproc_ok=:
5709break
5710fi
cristyda16f162011-02-19 23:52:17 +00005711rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005712
5713done
5714# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005715rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005716if $ac_preproc_ok; then :
5717 break
5718fi
5719
5720 done
5721 ac_cv_prog_CPP=$CPP
5722
5723fi
5724 CPP=$ac_cv_prog_CPP
5725else
5726 ac_cv_prog_CPP=$CPP
5727fi
5728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5729$as_echo "$CPP" >&6; }
5730ac_preproc_ok=false
5731for ac_c_preproc_warn_flag in '' yes
5732do
5733 # Use a header file that comes with gcc, so configuring glibc
5734 # with a fresh cross-compiler works.
5735 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5736 # <limits.h> exists even on freestanding compilers.
5737 # On the NeXT, cc -E runs the code through the compiler's parser,
5738 # not just through cpp. "Syntax error" is here to catch this case.
5739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5740/* end confdefs.h. */
5741#ifdef __STDC__
5742# include <limits.h>
5743#else
5744# include <assert.h>
5745#endif
5746 Syntax error
5747_ACEOF
5748if ac_fn_c_try_cpp "$LINENO"; then :
5749
5750else
5751 # Broken: fails on valid input.
5752continue
5753fi
cristyda16f162011-02-19 23:52:17 +00005754rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005755
5756 # OK, works on sane cases. Now check whether nonexistent headers
5757 # can be detected and how.
5758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5759/* end confdefs.h. */
5760#include <ac_nonexistent.h>
5761_ACEOF
5762if ac_fn_c_try_cpp "$LINENO"; then :
5763 # Broken: success on invalid input.
5764continue
5765else
5766 # Passes both tests.
5767ac_preproc_ok=:
5768break
5769fi
cristyda16f162011-02-19 23:52:17 +00005770rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005771
5772done
5773# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005774rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005775if $ac_preproc_ok; then :
5776
5777else
5778 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5779$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005780as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5781See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005782fi
5783
5784ac_ext=c
5785ac_cpp='$CPP $CPPFLAGS'
5786ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5787ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5788ac_compiler_gnu=$ac_cv_c_compiler_gnu
5789
5790
5791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5792$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005793if ${ac_cv_path_GREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005794 $as_echo_n "(cached) " >&6
5795else
5796 if test -z "$GREP"; then
5797 ac_path_GREP_found=false
5798 # Loop through the user's path and test for each of PROGNAME-LIST
5799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5800for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5801do
5802 IFS=$as_save_IFS
5803 test -z "$as_dir" && as_dir=.
5804 for ac_prog in grep ggrep; do
5805 for ac_exec_ext in '' $ac_executable_extensions; do
5806 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00005807 as_fn_executable_p "$ac_path_GREP" || continue
cristya0b81c32010-01-22 02:54:33 +00005808# Check for GNU ac_path_GREP and select it if it is found.
5809 # Check for GNU $ac_path_GREP
5810case `"$ac_path_GREP" --version 2>&1` in
5811*GNU*)
5812 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5813*)
5814 ac_count=0
5815 $as_echo_n 0123456789 >"conftest.in"
5816 while :
5817 do
5818 cat "conftest.in" "conftest.in" >"conftest.tmp"
5819 mv "conftest.tmp" "conftest.in"
5820 cp "conftest.in" "conftest.nl"
5821 $as_echo 'GREP' >> "conftest.nl"
5822 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5823 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5824 as_fn_arith $ac_count + 1 && ac_count=$as_val
5825 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5826 # Best one so far, save it but keep looking for a better one
5827 ac_cv_path_GREP="$ac_path_GREP"
5828 ac_path_GREP_max=$ac_count
5829 fi
5830 # 10*(2^10) chars as input seems more than enough
5831 test $ac_count -gt 10 && break
5832 done
5833 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5834esac
5835
5836 $ac_path_GREP_found && break 3
5837 done
5838 done
5839 done
5840IFS=$as_save_IFS
5841 if test -z "$ac_cv_path_GREP"; then
cristy98dddb52010-11-04 00:30:15 +00005842 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005843 fi
5844else
5845 ac_cv_path_GREP=$GREP
5846fi
5847
5848fi
5849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5850$as_echo "$ac_cv_path_GREP" >&6; }
5851 GREP="$ac_cv_path_GREP"
5852
5853
5854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5855$as_echo_n "checking for egrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005856if ${ac_cv_path_EGREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005857 $as_echo_n "(cached) " >&6
5858else
5859 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5860 then ac_cv_path_EGREP="$GREP -E"
5861 else
5862 if test -z "$EGREP"; then
5863 ac_path_EGREP_found=false
5864 # Loop through the user's path and test for each of PROGNAME-LIST
5865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5866for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5867do
5868 IFS=$as_save_IFS
5869 test -z "$as_dir" && as_dir=.
5870 for ac_prog in egrep; do
5871 for ac_exec_ext in '' $ac_executable_extensions; do
5872 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00005873 as_fn_executable_p "$ac_path_EGREP" || continue
cristya0b81c32010-01-22 02:54:33 +00005874# Check for GNU ac_path_EGREP and select it if it is found.
5875 # Check for GNU $ac_path_EGREP
5876case `"$ac_path_EGREP" --version 2>&1` in
5877*GNU*)
5878 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5879*)
5880 ac_count=0
5881 $as_echo_n 0123456789 >"conftest.in"
5882 while :
5883 do
5884 cat "conftest.in" "conftest.in" >"conftest.tmp"
5885 mv "conftest.tmp" "conftest.in"
5886 cp "conftest.in" "conftest.nl"
5887 $as_echo 'EGREP' >> "conftest.nl"
5888 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5889 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5890 as_fn_arith $ac_count + 1 && ac_count=$as_val
5891 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5892 # Best one so far, save it but keep looking for a better one
5893 ac_cv_path_EGREP="$ac_path_EGREP"
5894 ac_path_EGREP_max=$ac_count
5895 fi
5896 # 10*(2^10) chars as input seems more than enough
5897 test $ac_count -gt 10 && break
5898 done
5899 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5900esac
5901
5902 $ac_path_EGREP_found && break 3
5903 done
5904 done
5905 done
5906IFS=$as_save_IFS
5907 if test -z "$ac_cv_path_EGREP"; then
cristy98dddb52010-11-04 00:30:15 +00005908 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005909 fi
5910else
5911 ac_cv_path_EGREP=$EGREP
5912fi
5913
5914 fi
5915fi
5916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5917$as_echo "$ac_cv_path_EGREP" >&6; }
5918 EGREP="$ac_cv_path_EGREP"
5919
5920
5921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5922$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005923if ${ac_cv_header_stdc+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005924 $as_echo_n "(cached) " >&6
5925else
5926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5927/* end confdefs.h. */
5928#include <stdlib.h>
5929#include <stdarg.h>
5930#include <string.h>
5931#include <float.h>
5932
5933int
5934main ()
5935{
5936
5937 ;
5938 return 0;
5939}
5940_ACEOF
5941if ac_fn_c_try_compile "$LINENO"; then :
5942 ac_cv_header_stdc=yes
5943else
5944 ac_cv_header_stdc=no
5945fi
5946rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5947
5948if test $ac_cv_header_stdc = yes; then
5949 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5951/* end confdefs.h. */
5952#include <string.h>
5953
5954_ACEOF
5955if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5956 $EGREP "memchr" >/dev/null 2>&1; then :
5957
5958else
5959 ac_cv_header_stdc=no
5960fi
5961rm -f conftest*
5962
5963fi
5964
5965if test $ac_cv_header_stdc = yes; then
5966 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5968/* end confdefs.h. */
5969#include <stdlib.h>
5970
5971_ACEOF
5972if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5973 $EGREP "free" >/dev/null 2>&1; then :
5974
5975else
5976 ac_cv_header_stdc=no
5977fi
5978rm -f conftest*
5979
5980fi
5981
5982if test $ac_cv_header_stdc = yes; then
5983 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5984 if test "$cross_compiling" = yes; then :
5985 :
5986else
5987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5988/* end confdefs.h. */
5989#include <ctype.h>
5990#include <stdlib.h>
5991#if ((' ' & 0x0FF) == 0x020)
5992# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5993# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5994#else
5995# define ISLOWER(c) \
5996 (('a' <= (c) && (c) <= 'i') \
5997 || ('j' <= (c) && (c) <= 'r') \
5998 || ('s' <= (c) && (c) <= 'z'))
5999# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6000#endif
6001
6002#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6003int
6004main ()
6005{
6006 int i;
6007 for (i = 0; i < 256; i++)
6008 if (XOR (islower (i), ISLOWER (i))
6009 || toupper (i) != TOUPPER (i))
6010 return 2;
6011 return 0;
6012}
6013_ACEOF
6014if ac_fn_c_try_run "$LINENO"; then :
6015
6016else
6017 ac_cv_header_stdc=no
6018fi
6019rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6020 conftest.$ac_objext conftest.beam conftest.$ac_ext
6021fi
6022
6023fi
6024fi
6025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6026$as_echo "$ac_cv_header_stdc" >&6; }
6027if test $ac_cv_header_stdc = yes; then
6028
6029$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6030
6031fi
6032
6033# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6034for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6035 inttypes.h stdint.h unistd.h
6036do :
6037 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6038ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6039"
cristy98dddb52010-11-04 00:30:15 +00006040if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristya0b81c32010-01-22 02:54:33 +00006041 cat >>confdefs.h <<_ACEOF
6042#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6043_ACEOF
6044
6045fi
6046
6047done
6048
6049
6050
6051 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 +00006052if test "x$ac_cv_header_minix_config_h" = xyes; then :
cristya0b81c32010-01-22 02:54:33 +00006053 MINIX=yes
6054else
6055 MINIX=
6056fi
6057
6058
6059 if test "$MINIX" = yes; then
6060
6061$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6062
6063
6064$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6065
6066
6067$as_echo "#define _MINIX 1" >>confdefs.h
6068
6069 fi
6070
6071
6072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6073$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006074if ${ac_cv_safe_to_define___extensions__+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006075 $as_echo_n "(cached) " >&6
6076else
6077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6078/* end confdefs.h. */
6079
cristy14fefe52012-05-21 00:59:18 +00006080# define __EXTENSIONS__ 1
6081 $ac_includes_default
cristya0b81c32010-01-22 02:54:33 +00006082int
6083main ()
6084{
6085
6086 ;
6087 return 0;
6088}
6089_ACEOF
6090if ac_fn_c_try_compile "$LINENO"; then :
6091 ac_cv_safe_to_define___extensions__=yes
6092else
6093 ac_cv_safe_to_define___extensions__=no
6094fi
6095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6096fi
6097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6098$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6099 test $ac_cv_safe_to_define___extensions__ = yes &&
6100 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6101
6102 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6103
6104 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6105
6106 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6107
6108 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6109
6110
6111
cristy9af1cbf2014-12-28 22:03:09 +00006112# ==============================================================================
6113# Find required base packages
6114# ==============================================================================
cristy9e007fe2015-01-03 16:05:07 +00006115if test -n "$ac_tool_prefix"; then
6116 for ac_prog in ar lib "link -lib"
6117 do
6118 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6119set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6121$as_echo_n "checking for $ac_word... " >&6; }
6122if ${ac_cv_prog_AR+:} false; then :
6123 $as_echo_n "(cached) " >&6
6124else
6125 if test -n "$AR"; then
6126 ac_cv_prog_AR="$AR" # Let the user override the test.
6127else
6128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6129for as_dir in $PATH
6130do
6131 IFS=$as_save_IFS
6132 test -z "$as_dir" && as_dir=.
6133 for ac_exec_ext in '' $ac_executable_extensions; do
6134 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6135 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6137 break 2
6138 fi
6139done
6140 done
6141IFS=$as_save_IFS
6142
6143fi
6144fi
6145AR=$ac_cv_prog_AR
6146if test -n "$AR"; then
6147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6148$as_echo "$AR" >&6; }
6149else
6150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6151$as_echo "no" >&6; }
6152fi
6153
6154
6155 test -n "$AR" && break
6156 done
6157fi
6158if test -z "$AR"; then
6159 ac_ct_AR=$AR
6160 for ac_prog in ar lib "link -lib"
6161do
6162 # Extract the first word of "$ac_prog", so it can be a program name with args.
6163set dummy $ac_prog; ac_word=$2
6164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6165$as_echo_n "checking for $ac_word... " >&6; }
6166if ${ac_cv_prog_ac_ct_AR+:} false; then :
6167 $as_echo_n "(cached) " >&6
6168else
6169 if test -n "$ac_ct_AR"; then
6170 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6171else
6172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6173for as_dir in $PATH
6174do
6175 IFS=$as_save_IFS
6176 test -z "$as_dir" && as_dir=.
6177 for ac_exec_ext in '' $ac_executable_extensions; do
6178 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6179 ac_cv_prog_ac_ct_AR="$ac_prog"
6180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6181 break 2
6182 fi
6183done
6184 done
6185IFS=$as_save_IFS
6186
6187fi
6188fi
6189ac_ct_AR=$ac_cv_prog_ac_ct_AR
6190if test -n "$ac_ct_AR"; then
6191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6192$as_echo "$ac_ct_AR" >&6; }
6193else
6194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6195$as_echo "no" >&6; }
6196fi
6197
6198
6199 test -n "$ac_ct_AR" && break
6200done
6201
6202 if test "x$ac_ct_AR" = x; then
6203 AR="false"
6204 else
6205 case $cross_compiling:$ac_tool_warned in
6206yes:)
6207{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6208$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6209ac_tool_warned=yes ;;
6210esac
6211 AR=$ac_ct_AR
6212 fi
6213fi
6214
6215: ${AR=ar}
6216
6217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
6218$as_echo_n "checking the archiver ($AR) interface... " >&6; }
6219if ${am_cv_ar_interface+:} false; then :
6220 $as_echo_n "(cached) " >&6
6221else
6222 ac_ext=c
6223ac_cpp='$CPP $CPPFLAGS'
6224ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6225ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6226ac_compiler_gnu=$ac_cv_c_compiler_gnu
6227
6228 am_cv_ar_interface=ar
6229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6230/* end confdefs.h. */
6231int some_variable = 0;
6232_ACEOF
6233if ac_fn_c_try_compile "$LINENO"; then :
6234 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
6235 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
6236 (eval $am_ar_try) 2>&5
6237 ac_status=$?
6238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6239 test $ac_status = 0; }
6240 if test "$ac_status" -eq 0; then
6241 am_cv_ar_interface=ar
6242 else
6243 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
6244 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
6245 (eval $am_ar_try) 2>&5
6246 ac_status=$?
6247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6248 test $ac_status = 0; }
6249 if test "$ac_status" -eq 0; then
6250 am_cv_ar_interface=lib
6251 else
6252 am_cv_ar_interface=unknown
6253 fi
6254 fi
6255 rm -f conftest.lib libconftest.a
6256
6257fi
6258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6259 ac_ext=c
6260ac_cpp='$CPP $CPPFLAGS'
6261ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6262ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6263ac_compiler_gnu=$ac_cv_c_compiler_gnu
6264
6265fi
6266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
6267$as_echo "$am_cv_ar_interface" >&6; }
6268
6269case $am_cv_ar_interface in
6270ar)
6271 ;;
6272lib)
6273 # Microsoft lib, so override with the ar-lib wrapper script.
6274 # FIXME: It is wrong to rewrite AR.
6275 # But if we don't then we get into trouble of one sort or another.
6276 # A longer-term fix would be to have automake use am__AR in this case,
6277 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
6278 # similar.
6279 AR="$am_aux_dir/ar-lib $AR"
6280 ;;
6281unknown)
6282 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
6283 ;;
6284esac
cristy9af1cbf2014-12-28 22:03:09 +00006285
cristya0b81c32010-01-22 02:54:33 +00006286ac_ext=c
6287ac_cpp='$CPP $CPPFLAGS'
6288ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6289ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6290ac_compiler_gnu=$ac_cv_c_compiler_gnu
6291if test -n "$ac_tool_prefix"; then
6292 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
6293set dummy ${ac_tool_prefix}gcc; ac_word=$2
6294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6295$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006296if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006297 $as_echo_n "(cached) " >&6
6298else
6299 if test -n "$CC"; then
6300 ac_cv_prog_CC="$CC" # Let the user override the test.
6301else
6302as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6303for as_dir in $PATH
6304do
6305 IFS=$as_save_IFS
6306 test -z "$as_dir" && as_dir=.
6307 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006308 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006309 ac_cv_prog_CC="${ac_tool_prefix}gcc"
6310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6311 break 2
6312 fi
6313done
6314 done
6315IFS=$as_save_IFS
6316
6317fi
6318fi
6319CC=$ac_cv_prog_CC
6320if test -n "$CC"; then
6321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6322$as_echo "$CC" >&6; }
6323else
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6325$as_echo "no" >&6; }
6326fi
6327
6328
6329fi
6330if test -z "$ac_cv_prog_CC"; then
6331 ac_ct_CC=$CC
6332 # Extract the first word of "gcc", so it can be a program name with args.
6333set dummy gcc; ac_word=$2
6334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6335$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006336if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006337 $as_echo_n "(cached) " >&6
6338else
6339 if test -n "$ac_ct_CC"; then
6340 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6341else
6342as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6343for as_dir in $PATH
6344do
6345 IFS=$as_save_IFS
6346 test -z "$as_dir" && as_dir=.
6347 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006348 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006349 ac_cv_prog_ac_ct_CC="gcc"
6350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6351 break 2
6352 fi
6353done
6354 done
6355IFS=$as_save_IFS
6356
6357fi
6358fi
6359ac_ct_CC=$ac_cv_prog_ac_ct_CC
6360if test -n "$ac_ct_CC"; then
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6362$as_echo "$ac_ct_CC" >&6; }
6363else
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6365$as_echo "no" >&6; }
6366fi
6367
6368 if test "x$ac_ct_CC" = x; then
6369 CC=""
6370 else
6371 case $cross_compiling:$ac_tool_warned in
6372yes:)
6373{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6374$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6375ac_tool_warned=yes ;;
6376esac
6377 CC=$ac_ct_CC
6378 fi
6379else
6380 CC="$ac_cv_prog_CC"
6381fi
6382
6383if test -z "$CC"; then
6384 if test -n "$ac_tool_prefix"; then
6385 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6386set dummy ${ac_tool_prefix}cc; ac_word=$2
6387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6388$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006389if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006390 $as_echo_n "(cached) " >&6
6391else
6392 if test -n "$CC"; then
6393 ac_cv_prog_CC="$CC" # Let the user override the test.
6394else
6395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6396for as_dir in $PATH
6397do
6398 IFS=$as_save_IFS
6399 test -z "$as_dir" && as_dir=.
6400 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006401 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006402 ac_cv_prog_CC="${ac_tool_prefix}cc"
6403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6404 break 2
6405 fi
6406done
6407 done
6408IFS=$as_save_IFS
6409
6410fi
6411fi
6412CC=$ac_cv_prog_CC
6413if test -n "$CC"; then
6414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6415$as_echo "$CC" >&6; }
6416else
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6418$as_echo "no" >&6; }
6419fi
6420
6421
6422 fi
6423fi
6424if test -z "$CC"; then
6425 # Extract the first word of "cc", so it can be a program name with args.
6426set dummy cc; ac_word=$2
6427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6428$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006429if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006430 $as_echo_n "(cached) " >&6
6431else
6432 if test -n "$CC"; then
6433 ac_cv_prog_CC="$CC" # Let the user override the test.
6434else
6435 ac_prog_rejected=no
6436as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6437for as_dir in $PATH
6438do
6439 IFS=$as_save_IFS
6440 test -z "$as_dir" && as_dir=.
6441 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006442 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006443 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6444 ac_prog_rejected=yes
6445 continue
6446 fi
6447 ac_cv_prog_CC="cc"
6448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6449 break 2
6450 fi
6451done
6452 done
6453IFS=$as_save_IFS
6454
6455if test $ac_prog_rejected = yes; then
6456 # We found a bogon in the path, so make sure we never use it.
6457 set dummy $ac_cv_prog_CC
6458 shift
6459 if test $# != 0; then
6460 # We chose a different compiler from the bogus one.
6461 # However, it has the same basename, so the bogon will be chosen
6462 # first if we set CC to just the basename; use the full file name.
6463 shift
6464 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6465 fi
6466fi
6467fi
6468fi
6469CC=$ac_cv_prog_CC
6470if test -n "$CC"; then
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6472$as_echo "$CC" >&6; }
6473else
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6475$as_echo "no" >&6; }
6476fi
6477
6478
6479fi
6480if test -z "$CC"; then
6481 if test -n "$ac_tool_prefix"; then
6482 for ac_prog in cl.exe
6483 do
6484 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6485set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6487$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006488if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006489 $as_echo_n "(cached) " >&6
6490else
6491 if test -n "$CC"; then
6492 ac_cv_prog_CC="$CC" # Let the user override the test.
6493else
6494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6495for as_dir in $PATH
6496do
6497 IFS=$as_save_IFS
6498 test -z "$as_dir" && as_dir=.
6499 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006500 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006501 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6503 break 2
6504 fi
6505done
6506 done
6507IFS=$as_save_IFS
6508
6509fi
6510fi
6511CC=$ac_cv_prog_CC
6512if test -n "$CC"; then
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6514$as_echo "$CC" >&6; }
6515else
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6517$as_echo "no" >&6; }
6518fi
6519
6520
6521 test -n "$CC" && break
6522 done
6523fi
6524if test -z "$CC"; then
6525 ac_ct_CC=$CC
6526 for ac_prog in cl.exe
6527do
6528 # Extract the first word of "$ac_prog", so it can be a program name with args.
6529set dummy $ac_prog; ac_word=$2
6530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6531$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006532if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006533 $as_echo_n "(cached) " >&6
6534else
6535 if test -n "$ac_ct_CC"; then
6536 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6537else
6538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6539for as_dir in $PATH
6540do
6541 IFS=$as_save_IFS
6542 test -z "$as_dir" && as_dir=.
6543 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006544 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006545 ac_cv_prog_ac_ct_CC="$ac_prog"
6546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6547 break 2
6548 fi
6549done
6550 done
6551IFS=$as_save_IFS
6552
6553fi
6554fi
6555ac_ct_CC=$ac_cv_prog_ac_ct_CC
6556if test -n "$ac_ct_CC"; then
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6558$as_echo "$ac_ct_CC" >&6; }
6559else
6560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6561$as_echo "no" >&6; }
6562fi
6563
6564
6565 test -n "$ac_ct_CC" && break
6566done
6567
6568 if test "x$ac_ct_CC" = x; then
6569 CC=""
6570 else
6571 case $cross_compiling:$ac_tool_warned in
6572yes:)
6573{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6574$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6575ac_tool_warned=yes ;;
6576esac
6577 CC=$ac_ct_CC
6578 fi
6579fi
6580
6581fi
6582
6583
6584test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6585$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00006586as_fn_error $? "no acceptable C compiler found in \$PATH
6587See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00006588
6589# Provide some information about the compiler.
6590$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6591set X $ac_compile
6592ac_compiler=$2
6593for ac_option in --version -v -V -qversion; do
6594 { { ac_try="$ac_compiler $ac_option >&5"
6595case "(($ac_try" in
6596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6597 *) ac_try_echo=$ac_try;;
6598esac
6599eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6600$as_echo "$ac_try_echo"; } >&5
6601 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6602 ac_status=$?
6603 if test -s conftest.err; then
6604 sed '10a\
6605... rest of stderr output deleted ...
6606 10q' conftest.err >conftest.er1
6607 cat conftest.er1 >&5
6608 fi
6609 rm -f conftest.er1 conftest.err
6610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6611 test $ac_status = 0; }
6612done
6613
6614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6615$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006616if ${ac_cv_c_compiler_gnu+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006617 $as_echo_n "(cached) " >&6
6618else
6619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6620/* end confdefs.h. */
6621
6622int
6623main ()
6624{
6625#ifndef __GNUC__
6626 choke me
6627#endif
6628
6629 ;
6630 return 0;
6631}
6632_ACEOF
6633if ac_fn_c_try_compile "$LINENO"; then :
6634 ac_compiler_gnu=yes
6635else
6636 ac_compiler_gnu=no
6637fi
6638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6639ac_cv_c_compiler_gnu=$ac_compiler_gnu
6640
6641fi
6642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6643$as_echo "$ac_cv_c_compiler_gnu" >&6; }
6644if test $ac_compiler_gnu = yes; then
6645 GCC=yes
6646else
6647 GCC=
6648fi
6649ac_test_CFLAGS=${CFLAGS+set}
6650ac_save_CFLAGS=$CFLAGS
6651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6652$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006653if ${ac_cv_prog_cc_g+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006654 $as_echo_n "(cached) " >&6
6655else
6656 ac_save_c_werror_flag=$ac_c_werror_flag
6657 ac_c_werror_flag=yes
6658 ac_cv_prog_cc_g=no
6659 CFLAGS="-g"
6660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6661/* end confdefs.h. */
6662
6663int
6664main ()
6665{
6666
6667 ;
6668 return 0;
6669}
6670_ACEOF
6671if ac_fn_c_try_compile "$LINENO"; then :
6672 ac_cv_prog_cc_g=yes
6673else
6674 CFLAGS=""
6675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6676/* end confdefs.h. */
6677
6678int
6679main ()
6680{
6681
6682 ;
6683 return 0;
6684}
6685_ACEOF
6686if ac_fn_c_try_compile "$LINENO"; then :
6687
6688else
6689 ac_c_werror_flag=$ac_save_c_werror_flag
6690 CFLAGS="-g"
6691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6692/* end confdefs.h. */
6693
6694int
6695main ()
6696{
6697
6698 ;
6699 return 0;
6700}
6701_ACEOF
6702if ac_fn_c_try_compile "$LINENO"; then :
6703 ac_cv_prog_cc_g=yes
6704fi
6705rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6706fi
6707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6708fi
6709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6710 ac_c_werror_flag=$ac_save_c_werror_flag
6711fi
6712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6713$as_echo "$ac_cv_prog_cc_g" >&6; }
6714if test "$ac_test_CFLAGS" = set; then
6715 CFLAGS=$ac_save_CFLAGS
6716elif test $ac_cv_prog_cc_g = yes; then
6717 if test "$GCC" = yes; then
6718 CFLAGS="-g -O2"
6719 else
6720 CFLAGS="-g"
6721 fi
6722else
6723 if test "$GCC" = yes; then
6724 CFLAGS="-O2"
6725 else
6726 CFLAGS=
6727 fi
6728fi
6729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6730$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006731if ${ac_cv_prog_cc_c89+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006732 $as_echo_n "(cached) " >&6
6733else
6734 ac_cv_prog_cc_c89=no
6735ac_save_CC=$CC
6736cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6737/* end confdefs.h. */
6738#include <stdarg.h>
6739#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00006740struct stat;
cristya0b81c32010-01-22 02:54:33 +00006741/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6742struct buf { int x; };
6743FILE * (*rcsopen) (struct buf *, struct stat *, int);
6744static char *e (p, i)
6745 char **p;
6746 int i;
6747{
6748 return p[i];
6749}
6750static char *f (char * (*g) (char **, int), char **p, ...)
6751{
6752 char *s;
6753 va_list v;
6754 va_start (v,p);
6755 s = g (p, va_arg (v,int));
6756 va_end (v);
6757 return s;
6758}
6759
6760/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6761 function prototypes and stuff, but not '\xHH' hex character constants.
6762 These don't provoke an error unfortunately, instead are silently treated
6763 as 'x'. The following induces an error, until -std is added to get
6764 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6765 array size at least. It's necessary to write '\x00'==0 to get something
6766 that's true only with -std. */
6767int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6768
6769/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6770 inside strings and character constants. */
6771#define FOO(x) 'x'
6772int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6773
6774int test (int i, double x);
6775struct s1 {int (*f) (int a);};
6776struct s2 {int (*f) (double a);};
6777int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6778int argc;
6779char **argv;
6780int
6781main ()
6782{
6783return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6784 ;
6785 return 0;
6786}
6787_ACEOF
6788for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6789 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6790do
6791 CC="$ac_save_CC $ac_arg"
6792 if ac_fn_c_try_compile "$LINENO"; then :
6793 ac_cv_prog_cc_c89=$ac_arg
6794fi
6795rm -f core conftest.err conftest.$ac_objext
6796 test "x$ac_cv_prog_cc_c89" != "xno" && break
6797done
6798rm -f conftest.$ac_ext
6799CC=$ac_save_CC
6800
6801fi
6802# AC_CACHE_VAL
6803case "x$ac_cv_prog_cc_c89" in
6804 x)
6805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6806$as_echo "none needed" >&6; } ;;
6807 xno)
6808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6809$as_echo "unsupported" >&6; } ;;
6810 *)
6811 CC="$CC $ac_cv_prog_cc_c89"
6812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6813$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6814esac
6815if test "x$ac_cv_prog_cc_c89" != xno; then :
6816
6817fi
6818
6819ac_ext=c
6820ac_cpp='$CPP $CPPFLAGS'
6821ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6822ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6823ac_compiler_gnu=$ac_cv_c_compiler_gnu
6824
cristya5bda012013-11-03 18:05:38 +00006825ac_ext=c
6826ac_cpp='$CPP $CPPFLAGS'
6827ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6828ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6829ac_compiler_gnu=$ac_cv_c_compiler_gnu
6830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6831$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
6832if ${am_cv_prog_cc_c_o+:} false; then :
6833 $as_echo_n "(cached) " >&6
6834else
6835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6836/* end confdefs.h. */
6837
6838int
6839main ()
6840{
6841
6842 ;
6843 return 0;
6844}
6845_ACEOF
6846 # Make sure it works both with $CC and with simple cc.
6847 # Following AC_PROG_CC_C_O, we do the test twice because some
6848 # compilers refuse to overwrite an existing .o file with -o,
6849 # though they will create one.
6850 am_cv_prog_cc_c_o=yes
6851 for am_i in 1 2; do
6852 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6853 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6854 ac_status=$?
6855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6856 (exit $ac_status); } \
6857 && test -f conftest2.$ac_objext; then
6858 : OK
6859 else
6860 am_cv_prog_cc_c_o=no
6861 break
6862 fi
6863 done
6864 rm -f core conftest*
6865 unset am_i
6866fi
6867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6868$as_echo "$am_cv_prog_cc_c_o" >&6; }
6869if test "$am_cv_prog_cc_c_o" != yes; then
6870 # Losing compiler, so override with the script.
6871 # FIXME: It is wrong to rewrite CC.
6872 # But if we don't then we get into trouble of one sort or another.
6873 # A longer-term fix would be to have automake use am__CC in this case,
6874 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6875 CC="$am_aux_dir/compile $CC"
6876fi
6877ac_ext=c
6878ac_cpp='$CPP $CPPFLAGS'
6879ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6880ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6881ac_compiler_gnu=$ac_cv_c_compiler_gnu
6882
6883
cristy73bd4a52010-10-05 11:24:23 +00006884depcc="$CC" am_compiler_list=
6885
6886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6887$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006888if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006889 $as_echo_n "(cached) " >&6
6890else
6891 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6892 # We make a subdir and do the tests there. Otherwise we can end up
6893 # making bogus files that we don't know about and never remove. For
6894 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00006895 # making a dummy file named 'D' -- because '-MD' means "put the output
6896 # in D".
cristy7247bba2012-02-05 16:37:27 +00006897 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00006898 mkdir conftest.dir
6899 # Copy depcomp to subdir because otherwise we won't find it if we're
6900 # using a relative directory.
6901 cp "$am_depcomp" conftest.dir
6902 cd conftest.dir
6903 # We will build objects and dependencies in a subdirectory because
6904 # it helps to detect inapplicable dependency modes. For instance
6905 # both Tru64's cc and ICC support -MD to output dependencies as a
6906 # side effect of compilation, but ICC will put the dependencies in
6907 # the current directory while Tru64 will put them in the object
6908 # directory.
6909 mkdir sub
6910
6911 am_cv_CC_dependencies_compiler_type=none
6912 if test "$am_compiler_list" = ""; then
6913 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6914 fi
6915 am__universal=false
6916 case " $depcc " in #(
6917 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6918 esac
6919
6920 for depmode in $am_compiler_list; do
6921 # Setup a source with many dependencies, because some compilers
6922 # like to wrap large dependency lists on column 80 (with \), and
6923 # we should not choose a depcomp mode which is confused by this.
6924 #
6925 # We need to recreate these files for each test, as the compiler may
6926 # overwrite some of them when testing with obscure command lines.
6927 # This happens at least with the AIX C compiler.
6928 : > sub/conftest.c
6929 for i in 1 2 3 4 5 6; do
6930 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00006931 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6932 # Solaris 10 /bin/sh.
6933 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00006934 done
6935 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6936
cristyc0890a62012-07-19 00:18:20 +00006937 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00006938 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00006939 # handle '-M -o', and we need to detect this. Also, some Intel
6940 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00006941 am__obj=sub/conftest.${OBJEXT-o}
6942 am__minus_obj="-o $am__obj"
6943 case $depmode in
6944 gcc)
6945 # This depmode causes a compiler race in universal mode.
6946 test "$am__universal" = false || continue
6947 ;;
6948 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00006949 # After this tag, mechanisms are not by side-effect, so they'll
6950 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00006951 if test "x$enable_dependency_tracking" = xyes; then
6952 continue
6953 else
6954 break
6955 fi
6956 ;;
cristy7247bba2012-02-05 16:37:27 +00006957 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00006958 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00006959 # not run yet. These depmodes are late enough in the game, and
6960 # so weak that their functioning should not be impacted.
6961 am__obj=conftest.${OBJEXT-o}
6962 am__minus_obj=
6963 ;;
6964 none) break ;;
6965 esac
6966 if depmode=$depmode \
6967 source=sub/conftest.c object=$am__obj \
6968 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6969 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6970 >/dev/null 2>conftest.err &&
6971 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6972 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6973 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6974 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6975 # icc doesn't choke on unknown options, it will just issue warnings
6976 # or remarks (even with -Werror). So we grep stderr for any message
6977 # that says an option was ignored or not supported.
6978 # When given -MP, icc 7.0 and 7.1 complain thusly:
6979 # icc: Command line warning: ignoring option '-M'; no argument required
6980 # The diagnosis changed in icc 8.0:
6981 # icc: Command line remark: option '-MP' not supported
6982 if (grep 'ignoring option' conftest.err ||
6983 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6984 am_cv_CC_dependencies_compiler_type=$depmode
6985 break
6986 fi
6987 fi
6988 done
6989
6990 cd ..
6991 rm -rf conftest.dir
6992else
6993 am_cv_CC_dependencies_compiler_type=none
6994fi
6995
6996fi
6997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6998$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6999CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
7000
7001 if
7002 test "x$enable_dependency_tracking" != xno \
7003 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
7004 am__fastdepCC_TRUE=
7005 am__fastdepCC_FALSE='#'
7006else
7007 am__fastdepCC_TRUE='#'
7008 am__fastdepCC_FALSE=
7009fi
7010
7011
cristy95646052009-11-28 23:05:30 +00007012ac_ext=cpp
7013ac_cpp='$CXXCPP $CPPFLAGS'
7014ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7015ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7016ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7017if test -z "$CXX"; then
7018 if test -n "$CCC"; then
7019 CXX=$CCC
7020 else
7021 if test -n "$ac_tool_prefix"; then
7022 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7023 do
7024 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7025set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7027$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007028if ${ac_cv_prog_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00007029 $as_echo_n "(cached) " >&6
7030else
7031 if test -n "$CXX"; then
7032 ac_cv_prog_CXX="$CXX" # Let the user override the test.
7033else
7034as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7035for as_dir in $PATH
7036do
7037 IFS=$as_save_IFS
7038 test -z "$as_dir" && as_dir=.
7039 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00007040 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy95646052009-11-28 23:05:30 +00007041 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7043 break 2
7044 fi
7045done
7046 done
7047IFS=$as_save_IFS
7048
7049fi
7050fi
7051CXX=$ac_cv_prog_CXX
7052if test -n "$CXX"; then
7053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
7054$as_echo "$CXX" >&6; }
7055else
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7057$as_echo "no" >&6; }
7058fi
7059
7060
7061 test -n "$CXX" && break
7062 done
7063fi
7064if test -z "$CXX"; then
7065 ac_ct_CXX=$CXX
7066 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7067do
7068 # Extract the first word of "$ac_prog", so it can be a program name with args.
7069set dummy $ac_prog; ac_word=$2
7070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7071$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007072if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00007073 $as_echo_n "(cached) " >&6
7074else
7075 if test -n "$ac_ct_CXX"; then
7076 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7077else
7078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7079for as_dir in $PATH
7080do
7081 IFS=$as_save_IFS
7082 test -z "$as_dir" && as_dir=.
7083 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00007084 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy95646052009-11-28 23:05:30 +00007085 ac_cv_prog_ac_ct_CXX="$ac_prog"
7086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7087 break 2
7088 fi
7089done
7090 done
7091IFS=$as_save_IFS
7092
7093fi
7094fi
7095ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7096if test -n "$ac_ct_CXX"; then
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
7098$as_echo "$ac_ct_CXX" >&6; }
7099else
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7101$as_echo "no" >&6; }
7102fi
7103
7104
7105 test -n "$ac_ct_CXX" && break
7106done
7107
7108 if test "x$ac_ct_CXX" = x; then
7109 CXX="g++"
7110 else
7111 case $cross_compiling:$ac_tool_warned in
7112yes:)
7113{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7114$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7115ac_tool_warned=yes ;;
7116esac
7117 CXX=$ac_ct_CXX
7118 fi
7119fi
7120
7121 fi
7122fi
7123# Provide some information about the compiler.
7124$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
7125set X $ac_compile
7126ac_compiler=$2
7127for ac_option in --version -v -V -qversion; do
7128 { { ac_try="$ac_compiler $ac_option >&5"
7129case "(($ac_try" in
7130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7131 *) ac_try_echo=$ac_try;;
7132esac
7133eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7134$as_echo "$ac_try_echo"; } >&5
7135 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7136 ac_status=$?
7137 if test -s conftest.err; then
7138 sed '10a\
7139... rest of stderr output deleted ...
7140 10q' conftest.err >conftest.er1
7141 cat conftest.er1 >&5
7142 fi
7143 rm -f conftest.er1 conftest.err
7144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7145 test $ac_status = 0; }
7146done
7147
7148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
7149$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007150if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy95646052009-11-28 23:05:30 +00007151 $as_echo_n "(cached) " >&6
7152else
7153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7154/* end confdefs.h. */
7155
7156int
7157main ()
7158{
7159#ifndef __GNUC__
7160 choke me
7161#endif
7162
7163 ;
7164 return 0;
7165}
7166_ACEOF
7167if ac_fn_cxx_try_compile "$LINENO"; then :
7168 ac_compiler_gnu=yes
7169else
7170 ac_compiler_gnu=no
7171fi
7172rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7173ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7174
7175fi
7176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
7177$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
7178if test $ac_compiler_gnu = yes; then
7179 GXX=yes
7180else
7181 GXX=
7182fi
7183ac_test_CXXFLAGS=${CXXFLAGS+set}
7184ac_save_CXXFLAGS=$CXXFLAGS
7185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
7186$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007187if ${ac_cv_prog_cxx_g+:} false; then :
cristy95646052009-11-28 23:05:30 +00007188 $as_echo_n "(cached) " >&6
7189else
7190 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
7191 ac_cxx_werror_flag=yes
7192 ac_cv_prog_cxx_g=no
7193 CXXFLAGS="-g"
7194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7195/* end confdefs.h. */
7196
7197int
7198main ()
7199{
7200
7201 ;
7202 return 0;
7203}
7204_ACEOF
7205if ac_fn_cxx_try_compile "$LINENO"; then :
7206 ac_cv_prog_cxx_g=yes
7207else
7208 CXXFLAGS=""
7209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7210/* end confdefs.h. */
7211
7212int
7213main ()
7214{
7215
7216 ;
7217 return 0;
7218}
7219_ACEOF
7220if ac_fn_cxx_try_compile "$LINENO"; then :
7221
7222else
7223 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7224 CXXFLAGS="-g"
7225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7226/* end confdefs.h. */
7227
7228int
7229main ()
7230{
7231
7232 ;
7233 return 0;
7234}
7235_ACEOF
7236if ac_fn_cxx_try_compile "$LINENO"; then :
7237 ac_cv_prog_cxx_g=yes
7238fi
7239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7240fi
7241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7242fi
7243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7244 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7245fi
7246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
7247$as_echo "$ac_cv_prog_cxx_g" >&6; }
7248if test "$ac_test_CXXFLAGS" = set; then
7249 CXXFLAGS=$ac_save_CXXFLAGS
7250elif test $ac_cv_prog_cxx_g = yes; then
7251 if test "$GXX" = yes; then
7252 CXXFLAGS="-g -O2"
7253 else
7254 CXXFLAGS="-g"
7255 fi
7256else
7257 if test "$GXX" = yes; then
7258 CXXFLAGS="-O2"
7259 else
7260 CXXFLAGS=
7261 fi
7262fi
7263ac_ext=c
7264ac_cpp='$CPP $CPPFLAGS'
7265ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7266ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7267ac_compiler_gnu=$ac_cv_c_compiler_gnu
7268
cristy73bd4a52010-10-05 11:24:23 +00007269depcc="$CXX" am_compiler_list=
7270
7271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7272$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007273if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007274 $as_echo_n "(cached) " >&6
7275else
7276 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7277 # We make a subdir and do the tests there. Otherwise we can end up
7278 # making bogus files that we don't know about and never remove. For
7279 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00007280 # making a dummy file named 'D' -- because '-MD' means "put the output
7281 # in D".
cristy7247bba2012-02-05 16:37:27 +00007282 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00007283 mkdir conftest.dir
7284 # Copy depcomp to subdir because otherwise we won't find it if we're
7285 # using a relative directory.
7286 cp "$am_depcomp" conftest.dir
7287 cd conftest.dir
7288 # We will build objects and dependencies in a subdirectory because
7289 # it helps to detect inapplicable dependency modes. For instance
7290 # both Tru64's cc and ICC support -MD to output dependencies as a
7291 # side effect of compilation, but ICC will put the dependencies in
7292 # the current directory while Tru64 will put them in the object
7293 # directory.
7294 mkdir sub
7295
7296 am_cv_CXX_dependencies_compiler_type=none
7297 if test "$am_compiler_list" = ""; then
7298 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7299 fi
7300 am__universal=false
7301 case " $depcc " in #(
7302 *\ -arch\ *\ -arch\ *) am__universal=true ;;
7303 esac
7304
7305 for depmode in $am_compiler_list; do
7306 # Setup a source with many dependencies, because some compilers
7307 # like to wrap large dependency lists on column 80 (with \), and
7308 # we should not choose a depcomp mode which is confused by this.
7309 #
7310 # We need to recreate these files for each test, as the compiler may
7311 # overwrite some of them when testing with obscure command lines.
7312 # This happens at least with the AIX C compiler.
7313 : > sub/conftest.c
7314 for i in 1 2 3 4 5 6; do
7315 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00007316 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
7317 # Solaris 10 /bin/sh.
7318 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00007319 done
7320 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7321
cristyc0890a62012-07-19 00:18:20 +00007322 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00007323 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00007324 # handle '-M -o', and we need to detect this. Also, some Intel
7325 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00007326 am__obj=sub/conftest.${OBJEXT-o}
7327 am__minus_obj="-o $am__obj"
7328 case $depmode in
7329 gcc)
7330 # This depmode causes a compiler race in universal mode.
7331 test "$am__universal" = false || continue
7332 ;;
7333 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00007334 # After this tag, mechanisms are not by side-effect, so they'll
7335 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00007336 if test "x$enable_dependency_tracking" = xyes; then
7337 continue
7338 else
7339 break
7340 fi
7341 ;;
cristy7247bba2012-02-05 16:37:27 +00007342 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00007343 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00007344 # not run yet. These depmodes are late enough in the game, and
7345 # so weak that their functioning should not be impacted.
7346 am__obj=conftest.${OBJEXT-o}
7347 am__minus_obj=
7348 ;;
7349 none) break ;;
7350 esac
7351 if depmode=$depmode \
7352 source=sub/conftest.c object=$am__obj \
7353 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7354 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7355 >/dev/null 2>conftest.err &&
7356 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7357 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7358 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7359 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7360 # icc doesn't choke on unknown options, it will just issue warnings
7361 # or remarks (even with -Werror). So we grep stderr for any message
7362 # that says an option was ignored or not supported.
7363 # When given -MP, icc 7.0 and 7.1 complain thusly:
7364 # icc: Command line warning: ignoring option '-M'; no argument required
7365 # The diagnosis changed in icc 8.0:
7366 # icc: Command line remark: option '-MP' not supported
7367 if (grep 'ignoring option' conftest.err ||
7368 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7369 am_cv_CXX_dependencies_compiler_type=$depmode
7370 break
7371 fi
7372 fi
7373 done
7374
7375 cd ..
7376 rm -rf conftest.dir
7377else
7378 am_cv_CXX_dependencies_compiler_type=none
7379fi
7380
7381fi
7382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
7383$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
7384CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7385
7386 if
7387 test "x$enable_dependency_tracking" != xno \
7388 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7389 am__fastdepCXX_TRUE=
7390 am__fastdepCXX_FALSE='#'
7391else
7392 am__fastdepCXX_TRUE='#'
7393 am__fastdepCXX_FALSE=
7394fi
7395
7396
cristy8b350f62009-11-15 23:12:43 +00007397 case $ac_cv_prog_cc_stdc in #(
7398 no) :
7399 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
7400 *) :
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cristy3ed852e2009-09-05 21:47:34 +00007402$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007403if ${ac_cv_prog_cc_c99+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007404 $as_echo_n "(cached) " >&6
7405else
7406 ac_cv_prog_cc_c99=no
7407ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00007408cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007409/* end confdefs.h. */
7410#include <stdarg.h>
7411#include <stdbool.h>
7412#include <stdlib.h>
7413#include <wchar.h>
7414#include <stdio.h>
7415
7416// Check varargs macros. These examples are taken from C99 6.10.3.5.
7417#define debug(...) fprintf (stderr, __VA_ARGS__)
7418#define showlist(...) puts (#__VA_ARGS__)
7419#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7420static void
7421test_varargs_macros (void)
7422{
7423 int x = 1234;
7424 int y = 5678;
7425 debug ("Flag");
7426 debug ("X = %d\n", x);
7427 showlist (The first, second, and third items.);
7428 report (x>y, "x is %d but y is %d", x, y);
7429}
7430
7431// Check long long types.
7432#define BIG64 18446744073709551615ull
7433#define BIG32 4294967295ul
7434#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7435#if !BIG_OK
7436 your preprocessor is broken;
7437#endif
7438#if BIG_OK
7439#else
7440 your preprocessor is broken;
7441#endif
7442static long long int bignum = -9223372036854775807LL;
7443static unsigned long long int ubignum = BIG64;
7444
7445struct incomplete_array
7446{
7447 int datasize;
7448 double data[];
7449};
7450
7451struct named_init {
7452 int number;
7453 const wchar_t *name;
7454 double average;
7455};
7456
7457typedef const char *ccp;
7458
7459static inline int
7460test_restrict (ccp restrict text)
7461{
7462 // See if C++-style comments work.
7463 // Iterate through items via the restricted pointer.
7464 // Also check for declarations in for loops.
7465 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7466 continue;
7467 return 0;
7468}
7469
7470// Check varargs and va_copy.
7471static void
7472test_varargs (const char *format, ...)
7473{
7474 va_list args;
7475 va_start (args, format);
7476 va_list args_copy;
7477 va_copy (args_copy, args);
7478
7479 const char *str;
7480 int number;
7481 float fnumber;
7482
7483 while (*format)
7484 {
7485 switch (*format++)
7486 {
7487 case 's': // string
7488 str = va_arg (args_copy, const char *);
7489 break;
7490 case 'd': // int
7491 number = va_arg (args_copy, int);
7492 break;
7493 case 'f': // float
7494 fnumber = va_arg (args_copy, double);
7495 break;
7496 default:
7497 break;
7498 }
7499 }
7500 va_end (args_copy);
7501 va_end (args);
7502}
7503
7504int
7505main ()
7506{
7507
7508 // Check bool.
7509 _Bool success = false;
7510
7511 // Check restrict.
7512 if (test_restrict ("String literal") == 0)
7513 success = true;
7514 char *restrict newvar = "Another string";
7515
7516 // Check varargs.
7517 test_varargs ("s, d' f .", "string", 65, 34.234);
7518 test_varargs_macros ();
7519
7520 // Check flexible array members.
7521 struct incomplete_array *ia =
7522 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7523 ia->datasize = 10;
7524 for (int i = 0; i < ia->datasize; ++i)
7525 ia->data[i] = i * 1.234;
7526
7527 // Check named initializers.
7528 struct named_init ni = {
7529 .number = 34,
7530 .name = L"Test wide string",
7531 .average = 543.34343,
7532 };
7533
7534 ni.number = 58;
7535
7536 int dynamic_array[ni.number];
7537 dynamic_array[ni.number - 1] = 543;
7538
7539 // work around unused variable warnings
7540 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7541 || dynamic_array[ni.number - 1] != 543);
7542
7543 ;
7544 return 0;
7545}
7546_ACEOF
cristy14fefe52012-05-21 00:59:18 +00007547for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
cristy3ed852e2009-09-05 21:47:34 +00007548do
7549 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00007550 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007551 ac_cv_prog_cc_c99=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00007552fi
cristy3ed852e2009-09-05 21:47:34 +00007553rm -f core conftest.err conftest.$ac_objext
7554 test "x$ac_cv_prog_cc_c99" != "xno" && break
7555done
7556rm -f conftest.$ac_ext
7557CC=$ac_save_CC
7558
7559fi
7560# AC_CACHE_VAL
7561case "x$ac_cv_prog_cc_c99" in
7562 x)
cristy8b350f62009-11-15 23:12:43 +00007563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00007564$as_echo "none needed" >&6; } ;;
7565 xno)
cristy8b350f62009-11-15 23:12:43 +00007566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00007567$as_echo "unsupported" >&6; } ;;
7568 *)
7569 CC="$CC $ac_cv_prog_cc_c99"
cristy8b350f62009-11-15 23:12:43 +00007570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cristy3ed852e2009-09-05 21:47:34 +00007571$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7572esac
cristy8b350f62009-11-15 23:12:43 +00007573if test "x$ac_cv_prog_cc_c99" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00007574 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
7575else
cristy8b350f62009-11-15 23:12:43 +00007576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00007577$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007578if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007579 $as_echo_n "(cached) " >&6
7580else
7581 ac_cv_prog_cc_c89=no
7582ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00007583cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007584/* end confdefs.h. */
7585#include <stdarg.h>
7586#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00007587struct stat;
cristy3ed852e2009-09-05 21:47:34 +00007588/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7589struct buf { int x; };
7590FILE * (*rcsopen) (struct buf *, struct stat *, int);
7591static char *e (p, i)
7592 char **p;
7593 int i;
7594{
7595 return p[i];
7596}
7597static char *f (char * (*g) (char **, int), char **p, ...)
7598{
7599 char *s;
7600 va_list v;
7601 va_start (v,p);
7602 s = g (p, va_arg (v,int));
7603 va_end (v);
7604 return s;
7605}
7606
7607/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7608 function prototypes and stuff, but not '\xHH' hex character constants.
7609 These don't provoke an error unfortunately, instead are silently treated
7610 as 'x'. The following induces an error, until -std is added to get
7611 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7612 array size at least. It's necessary to write '\x00'==0 to get something
7613 that's true only with -std. */
7614int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7615
7616/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7617 inside strings and character constants. */
7618#define FOO(x) 'x'
7619int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7620
7621int test (int i, double x);
7622struct s1 {int (*f) (int a);};
7623struct s2 {int (*f) (double a);};
7624int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7625int argc;
7626char **argv;
7627int
7628main ()
7629{
7630return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7631 ;
7632 return 0;
7633}
7634_ACEOF
7635for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7636 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7637do
7638 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00007639 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007640 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00007641fi
cristy3ed852e2009-09-05 21:47:34 +00007642rm -f core conftest.err conftest.$ac_objext
7643 test "x$ac_cv_prog_cc_c89" != "xno" && break
7644done
7645rm -f conftest.$ac_ext
7646CC=$ac_save_CC
7647
7648fi
7649# AC_CACHE_VAL
7650case "x$ac_cv_prog_cc_c89" in
7651 x)
cristy8b350f62009-11-15 23:12:43 +00007652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00007653$as_echo "none needed" >&6; } ;;
7654 xno)
cristy8b350f62009-11-15 23:12:43 +00007655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00007656$as_echo "unsupported" >&6; } ;;
7657 *)
7658 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00007659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00007660$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7661esac
cristy8b350f62009-11-15 23:12:43 +00007662if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00007663 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
7664else
7665 ac_cv_prog_cc_stdc=no
7666fi
7667
cristy3ed852e2009-09-05 21:47:34 +00007668fi
cristy3ed852e2009-09-05 21:47:34 +00007669 ;;
7670esac
cristy8b350f62009-11-15 23:12:43 +00007671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
cristy3ed852e2009-09-05 21:47:34 +00007672$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007673 if ${ac_cv_prog_cc_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007674 $as_echo_n "(cached) " >&6
7675fi
7676
cristy8b350f62009-11-15 23:12:43 +00007677 case $ac_cv_prog_cc_stdc in #(
7678 no) :
7679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7680$as_echo "unsupported" >&6; } ;; #(
7681 '') :
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7683$as_echo "none needed" >&6; } ;; #(
7684 *) :
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00007686$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
7687esac
7688
cristy3ed852e2009-09-05 21:47:34 +00007689ac_ext=c
7690ac_cpp='$CPP $CPPFLAGS'
7691ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7692ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7693ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy8b350f62009-11-15 23:12:43 +00007694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cristy3ed852e2009-09-05 21:47:34 +00007695$as_echo_n "checking how to run the C preprocessor... " >&6; }
7696# On Suns, sometimes $CPP names a directory.
7697if test -n "$CPP" && test -d "$CPP"; then
7698 CPP=
7699fi
7700if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00007701 if ${ac_cv_prog_CPP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007702 $as_echo_n "(cached) " >&6
7703else
7704 # Double quotes because CPP needs to be expanded
7705 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7706 do
7707 ac_preproc_ok=false
7708for ac_c_preproc_warn_flag in '' yes
7709do
7710 # Use a header file that comes with gcc, so configuring glibc
7711 # with a fresh cross-compiler works.
7712 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7713 # <limits.h> exists even on freestanding compilers.
7714 # On the NeXT, cc -E runs the code through the compiler's parser,
7715 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007717/* end confdefs.h. */
7718#ifdef __STDC__
7719# include <limits.h>
7720#else
7721# include <assert.h>
7722#endif
7723 Syntax error
7724_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007725if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007726
cristy8b350f62009-11-15 23:12:43 +00007727else
cristy3ed852e2009-09-05 21:47:34 +00007728 # Broken: fails on valid input.
7729continue
7730fi
cristyda16f162011-02-19 23:52:17 +00007731rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007732
7733 # OK, works on sane cases. Now check whether nonexistent headers
7734 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007736/* end confdefs.h. */
7737#include <ac_nonexistent.h>
7738_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007739if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007740 # Broken: success on invalid input.
7741continue
7742else
cristy3ed852e2009-09-05 21:47:34 +00007743 # Passes both tests.
7744ac_preproc_ok=:
7745break
7746fi
cristyda16f162011-02-19 23:52:17 +00007747rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007748
7749done
7750# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007751rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007752if $ac_preproc_ok; then :
cristy3ed852e2009-09-05 21:47:34 +00007753 break
7754fi
7755
7756 done
7757 ac_cv_prog_CPP=$CPP
7758
7759fi
7760 CPP=$ac_cv_prog_CPP
7761else
7762 ac_cv_prog_CPP=$CPP
7763fi
cristy8b350f62009-11-15 23:12:43 +00007764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cristy3ed852e2009-09-05 21:47:34 +00007765$as_echo "$CPP" >&6; }
7766ac_preproc_ok=false
7767for ac_c_preproc_warn_flag in '' yes
7768do
7769 # Use a header file that comes with gcc, so configuring glibc
7770 # with a fresh cross-compiler works.
7771 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7772 # <limits.h> exists even on freestanding compilers.
7773 # On the NeXT, cc -E runs the code through the compiler's parser,
7774 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007776/* end confdefs.h. */
7777#ifdef __STDC__
7778# include <limits.h>
7779#else
7780# include <assert.h>
7781#endif
7782 Syntax error
7783_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007784if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007785
cristy8b350f62009-11-15 23:12:43 +00007786else
cristy3ed852e2009-09-05 21:47:34 +00007787 # Broken: fails on valid input.
7788continue
7789fi
cristyda16f162011-02-19 23:52:17 +00007790rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007791
7792 # OK, works on sane cases. Now check whether nonexistent headers
7793 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007795/* end confdefs.h. */
7796#include <ac_nonexistent.h>
7797_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007798if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007799 # Broken: success on invalid input.
7800continue
7801else
cristy3ed852e2009-09-05 21:47:34 +00007802 # Passes both tests.
7803ac_preproc_ok=:
7804break
7805fi
cristyda16f162011-02-19 23:52:17 +00007806rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007807
7808done
7809# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007810rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007811if $ac_preproc_ok; then :
7812
cristy3ed852e2009-09-05 21:47:34 +00007813else
cristy8b350f62009-11-15 23:12:43 +00007814 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00007815$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00007816as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7817See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00007818fi
7819
7820ac_ext=c
7821ac_cpp='$CPP $CPPFLAGS'
7822ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7823ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7824ac_compiler_gnu=$ac_cv_c_compiler_gnu
7825
cristy73bd4a52010-10-05 11:24:23 +00007826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7827$as_echo_n "checking for a sed that does not truncate output... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007828if ${ac_cv_path_SED+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007829 $as_echo_n "(cached) " >&6
7830else
7831 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7832 for ac_i in 1 2 3 4 5 6 7; do
7833 ac_script="$ac_script$as_nl$ac_script"
7834 done
7835 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7836 { ac_script=; unset ac_script;}
7837 if test -z "$SED"; then
7838 ac_path_SED_found=false
7839 # Loop through the user's path and test for each of PROGNAME-LIST
7840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7841for as_dir in $PATH
7842do
7843 IFS=$as_save_IFS
7844 test -z "$as_dir" && as_dir=.
7845 for ac_prog in sed gsed; do
7846 for ac_exec_ext in '' $ac_executable_extensions; do
7847 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00007848 as_fn_executable_p "$ac_path_SED" || continue
cristy73bd4a52010-10-05 11:24:23 +00007849# Check for GNU ac_path_SED and select it if it is found.
7850 # Check for GNU $ac_path_SED
7851case `"$ac_path_SED" --version 2>&1` in
7852*GNU*)
7853 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7854*)
7855 ac_count=0
7856 $as_echo_n 0123456789 >"conftest.in"
7857 while :
7858 do
7859 cat "conftest.in" "conftest.in" >"conftest.tmp"
7860 mv "conftest.tmp" "conftest.in"
7861 cp "conftest.in" "conftest.nl"
7862 $as_echo '' >> "conftest.nl"
7863 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7864 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7865 as_fn_arith $ac_count + 1 && ac_count=$as_val
7866 if test $ac_count -gt ${ac_path_SED_max-0}; then
7867 # Best one so far, save it but keep looking for a better one
7868 ac_cv_path_SED="$ac_path_SED"
7869 ac_path_SED_max=$ac_count
7870 fi
7871 # 10*(2^10) chars as input seems more than enough
7872 test $ac_count -gt 10 && break
7873 done
7874 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7875esac
7876
7877 $ac_path_SED_found && break 3
7878 done
7879 done
7880 done
7881IFS=$as_save_IFS
7882 if test -z "$ac_cv_path_SED"; then
cristy98dddb52010-11-04 00:30:15 +00007883 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007884 fi
7885else
7886 ac_cv_path_SED=$SED
7887fi
7888
7889fi
7890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7891$as_echo "$ac_cv_path_SED" >&6; }
7892 SED="$ac_cv_path_SED"
7893 rm -f conftest.sed
7894
7895test -z "$SED" && SED=sed
7896Xsed="$SED -e 1s/^X//"
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7909$as_echo_n "checking for fgrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007910if ${ac_cv_path_FGREP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007911 $as_echo_n "(cached) " >&6
7912else
7913 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7914 then ac_cv_path_FGREP="$GREP -F"
7915 else
7916 if test -z "$FGREP"; then
7917 ac_path_FGREP_found=false
7918 # Loop through the user's path and test for each of PROGNAME-LIST
7919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7920for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7921do
7922 IFS=$as_save_IFS
7923 test -z "$as_dir" && as_dir=.
7924 for ac_prog in fgrep; do
7925 for ac_exec_ext in '' $ac_executable_extensions; do
7926 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00007927 as_fn_executable_p "$ac_path_FGREP" || continue
cristy73bd4a52010-10-05 11:24:23 +00007928# Check for GNU ac_path_FGREP and select it if it is found.
7929 # Check for GNU $ac_path_FGREP
7930case `"$ac_path_FGREP" --version 2>&1` in
7931*GNU*)
7932 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7933*)
7934 ac_count=0
7935 $as_echo_n 0123456789 >"conftest.in"
7936 while :
7937 do
7938 cat "conftest.in" "conftest.in" >"conftest.tmp"
7939 mv "conftest.tmp" "conftest.in"
7940 cp "conftest.in" "conftest.nl"
7941 $as_echo 'FGREP' >> "conftest.nl"
7942 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7943 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7944 as_fn_arith $ac_count + 1 && ac_count=$as_val
7945 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7946 # Best one so far, save it but keep looking for a better one
7947 ac_cv_path_FGREP="$ac_path_FGREP"
7948 ac_path_FGREP_max=$ac_count
7949 fi
7950 # 10*(2^10) chars as input seems more than enough
7951 test $ac_count -gt 10 && break
7952 done
7953 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7954esac
7955
7956 $ac_path_FGREP_found && break 3
7957 done
7958 done
7959 done
7960IFS=$as_save_IFS
7961 if test -z "$ac_cv_path_FGREP"; then
cristy98dddb52010-11-04 00:30:15 +00007962 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007963 fi
7964else
7965 ac_cv_path_FGREP=$FGREP
7966fi
7967
7968 fi
7969fi
7970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7971$as_echo "$ac_cv_path_FGREP" >&6; }
7972 FGREP="$ac_cv_path_FGREP"
7973
7974
7975test -z "$GREP" && GREP=grep
7976
7977
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988
7989
7990
7991
7992
cristy0c60a692010-11-04 01:09:47 +00007993ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7994ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7995ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7996
7997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7998$as_echo_n "checking how to print strings... " >&6; }
7999# Test print first, because it will be a builtin if present.
cristyda16f162011-02-19 23:52:17 +00008000if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
cristy0c60a692010-11-04 01:09:47 +00008001 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
8002 ECHO='print -r --'
8003elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
8004 ECHO='printf %s\n'
8005else
8006 # Use this function as a fallback that always works.
8007 func_fallback_echo ()
8008 {
8009 eval 'cat <<_LTECHO_EOF
8010$1
8011_LTECHO_EOF'
8012 }
8013 ECHO='func_fallback_echo'
8014fi
8015
8016# func_echo_all arg...
8017# Invoke $ECHO with all args, space-separated.
8018func_echo_all ()
8019{
8020 $ECHO ""
8021}
8022
8023case "$ECHO" in
8024 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
8025$as_echo "printf" >&6; } ;;
8026 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
8027$as_echo "print -r" >&6; } ;;
8028 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
8029$as_echo "cat" >&6; } ;;
8030esac
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
cristy73bd4a52010-10-05 11:24:23 +00008045
8046
8047# Check whether --with-gnu-ld was given.
8048if test "${with_gnu_ld+set}" = set; then :
8049 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8050else
8051 with_gnu_ld=no
8052fi
8053
8054ac_prog=ld
8055if test "$GCC" = yes; then
8056 # Check if gcc -print-prog-name=ld gives a path.
8057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
8058$as_echo_n "checking for ld used by $CC... " >&6; }
8059 case $host in
8060 *-*-mingw*)
8061 # gcc leaves a trailing carriage return which upsets mingw
8062 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8063 *)
8064 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8065 esac
8066 case $ac_prog in
8067 # Accept absolute paths.
8068 [\\/]* | ?:[\\/]*)
8069 re_direlt='/[^/][^/]*/\.\./'
8070 # Canonicalize the pathname of ld
8071 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
8072 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
8073 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
8074 done
8075 test -z "$LD" && LD="$ac_prog"
8076 ;;
8077 "")
8078 # If it fails, then pretend we aren't using GCC.
8079 ac_prog=ld
8080 ;;
8081 *)
8082 # If it is relative, then search for the first ld in PATH.
8083 with_gnu_ld=unknown
8084 ;;
8085 esac
8086elif test "$with_gnu_ld" = yes; then
8087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8088$as_echo_n "checking for GNU ld... " >&6; }
8089else
8090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8091$as_echo_n "checking for non-GNU ld... " >&6; }
8092fi
cristyda16f162011-02-19 23:52:17 +00008093if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008094 $as_echo_n "(cached) " >&6
8095else
8096 if test -z "$LD"; then
8097 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8098 for ac_dir in $PATH; do
8099 IFS="$lt_save_ifs"
8100 test -z "$ac_dir" && ac_dir=.
8101 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8102 lt_cv_path_LD="$ac_dir/$ac_prog"
8103 # Check to see if the program is GNU ld. I'd rather use --version,
8104 # but apparently some variants of GNU ld only accept -v.
8105 # Break only if it was the GNU/non-GNU ld that we prefer.
8106 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
8107 *GNU* | *'with BFD'*)
8108 test "$with_gnu_ld" != no && break
8109 ;;
8110 *)
8111 test "$with_gnu_ld" != yes && break
8112 ;;
8113 esac
8114 fi
8115 done
8116 IFS="$lt_save_ifs"
8117else
8118 lt_cv_path_LD="$LD" # Let the user override the test with a path.
8119fi
8120fi
8121
8122LD="$lt_cv_path_LD"
8123if test -n "$LD"; then
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8125$as_echo "$LD" >&6; }
8126else
8127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8128$as_echo "no" >&6; }
8129fi
cristy98dddb52010-11-04 00:30:15 +00008130test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00008131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8132$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008133if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008134 $as_echo_n "(cached) " >&6
8135else
8136 # I'd rather use --version here, but apparently some GNU lds only accept -v.
8137case `$LD -v 2>&1 </dev/null` in
8138*GNU* | *'with BFD'*)
8139 lt_cv_prog_gnu_ld=yes
8140 ;;
8141*)
8142 lt_cv_prog_gnu_ld=no
8143 ;;
8144esac
8145fi
8146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
8147$as_echo "$lt_cv_prog_gnu_ld" >&6; }
8148with_gnu_ld=$lt_cv_prog_gnu_ld
8149
8150
8151
8152
8153
8154
8155
8156
8157
cristy3ed852e2009-09-05 21:47:34 +00008158
cristy837d6dc2010-02-27 01:16:57 +00008159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
8160$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008161if ${ac_cv_prog_cc_c99+:} false; then :
cristy837d6dc2010-02-27 01:16:57 +00008162 $as_echo_n "(cached) " >&6
8163else
8164 ac_cv_prog_cc_c99=no
8165ac_save_CC=$CC
8166cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8167/* end confdefs.h. */
8168#include <stdarg.h>
8169#include <stdbool.h>
8170#include <stdlib.h>
8171#include <wchar.h>
8172#include <stdio.h>
8173
8174// Check varargs macros. These examples are taken from C99 6.10.3.5.
8175#define debug(...) fprintf (stderr, __VA_ARGS__)
8176#define showlist(...) puts (#__VA_ARGS__)
8177#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
8178static void
8179test_varargs_macros (void)
8180{
8181 int x = 1234;
8182 int y = 5678;
8183 debug ("Flag");
8184 debug ("X = %d\n", x);
8185 showlist (The first, second, and third items.);
8186 report (x>y, "x is %d but y is %d", x, y);
8187}
8188
8189// Check long long types.
8190#define BIG64 18446744073709551615ull
8191#define BIG32 4294967295ul
8192#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
8193#if !BIG_OK
8194 your preprocessor is broken;
8195#endif
8196#if BIG_OK
8197#else
8198 your preprocessor is broken;
8199#endif
8200static long long int bignum = -9223372036854775807LL;
8201static unsigned long long int ubignum = BIG64;
8202
8203struct incomplete_array
8204{
8205 int datasize;
8206 double data[];
8207};
8208
8209struct named_init {
8210 int number;
8211 const wchar_t *name;
8212 double average;
8213};
8214
8215typedef const char *ccp;
8216
8217static inline int
8218test_restrict (ccp restrict text)
8219{
8220 // See if C++-style comments work.
8221 // Iterate through items via the restricted pointer.
8222 // Also check for declarations in for loops.
8223 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
8224 continue;
8225 return 0;
8226}
8227
8228// Check varargs and va_copy.
8229static void
8230test_varargs (const char *format, ...)
8231{
8232 va_list args;
8233 va_start (args, format);
8234 va_list args_copy;
8235 va_copy (args_copy, args);
8236
8237 const char *str;
8238 int number;
8239 float fnumber;
8240
8241 while (*format)
8242 {
8243 switch (*format++)
8244 {
8245 case 's': // string
8246 str = va_arg (args_copy, const char *);
8247 break;
8248 case 'd': // int
8249 number = va_arg (args_copy, int);
8250 break;
8251 case 'f': // float
8252 fnumber = va_arg (args_copy, double);
8253 break;
8254 default:
8255 break;
8256 }
8257 }
8258 va_end (args_copy);
8259 va_end (args);
8260}
8261
8262int
8263main ()
8264{
8265
8266 // Check bool.
8267 _Bool success = false;
8268
8269 // Check restrict.
8270 if (test_restrict ("String literal") == 0)
8271 success = true;
8272 char *restrict newvar = "Another string";
8273
8274 // Check varargs.
8275 test_varargs ("s, d' f .", "string", 65, 34.234);
8276 test_varargs_macros ();
8277
8278 // Check flexible array members.
8279 struct incomplete_array *ia =
8280 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
8281 ia->datasize = 10;
8282 for (int i = 0; i < ia->datasize; ++i)
8283 ia->data[i] = i * 1.234;
8284
8285 // Check named initializers.
8286 struct named_init ni = {
8287 .number = 34,
8288 .name = L"Test wide string",
8289 .average = 543.34343,
8290 };
8291
8292 ni.number = 58;
8293
8294 int dynamic_array[ni.number];
8295 dynamic_array[ni.number - 1] = 543;
8296
8297 // work around unused variable warnings
8298 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
8299 || dynamic_array[ni.number - 1] != 543);
8300
8301 ;
8302 return 0;
8303}
8304_ACEOF
cristy14fefe52012-05-21 00:59:18 +00008305for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
cristy837d6dc2010-02-27 01:16:57 +00008306do
8307 CC="$ac_save_CC $ac_arg"
8308 if ac_fn_c_try_compile "$LINENO"; then :
8309 ac_cv_prog_cc_c99=$ac_arg
8310fi
8311rm -f core conftest.err conftest.$ac_objext
8312 test "x$ac_cv_prog_cc_c99" != "xno" && break
8313done
8314rm -f conftest.$ac_ext
8315CC=$ac_save_CC
8316
8317fi
8318# AC_CACHE_VAL
8319case "x$ac_cv_prog_cc_c99" in
8320 x)
8321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
8322$as_echo "none needed" >&6; } ;;
8323 xno)
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
8325$as_echo "unsupported" >&6; } ;;
8326 *)
8327 CC="$CC $ac_cv_prog_cc_c99"
8328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
8329$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
8330esac
8331if test "x$ac_cv_prog_cc_c99" != xno; then :
8332
8333fi
8334
8335
cristy73bd4a52010-10-05 11:24:23 +00008336
cristy17491be2014-06-24 01:10:53 +00008337ac_ext=c
8338ac_cpp='$CPP $CPPFLAGS'
8339ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8340ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8341ac_compiler_gnu=$ac_cv_c_compiler_gnu
8342
cristy73bd4a52010-10-05 11:24:23 +00008343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
8344$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008345if ${ac_cv_cflags_warn_all+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008346 $as_echo_n "(cached) " >&6
8347else
8348 ac_cv_cflags_warn_all="no, unknown"
cristy17491be2014-06-24 01:10:53 +00008349ac_save_CFLAGS="$CFLAGS"
8350for 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 +00008351do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
8352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8353/* end confdefs.h. */
8354
8355int
8356main ()
8357{
cristy24fc1fe2010-10-23 21:13:01 +00008358
cristy73bd4a52010-10-05 11:24:23 +00008359 ;
8360 return 0;
8361}
8362_ACEOF
8363if ac_fn_c_try_compile "$LINENO"; then :
8364 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
8365fi
8366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8367done
cristy17491be2014-06-24 01:10:53 +00008368CFLAGS="$ac_save_CFLAGS"
8369
8370fi
8371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
8372$as_echo "$ac_cv_cflags_warn_all" >&6; }
8373
8374
8375case ".$ac_cv_cflags_warn_all" in
8376 .ok|.ok,*) ;;
8377 .|.no|.no,*) ;;
cristy146497a2015-05-17 22:46:16 +00008378 *)
8379if ${CFLAGS+:} false; then :
8380
8381 case " $CFLAGS " in #(
8382 *" $ac_cv_cflags_warn_all "*) :
8383 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$ac_cv_cflags_warn_all"; } >&5
cristy17491be2014-06-24 01:10:53 +00008384 (: CFLAGS already contains $ac_cv_cflags_warn_all) 2>&5
8385 ac_status=$?
8386 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristy146497a2015-05-17 22:46:16 +00008387 test $ac_status = 0; } ;; #(
8388 *) :
8389
8390 as_fn_append CFLAGS " $ac_cv_cflags_warn_all"
8391 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
8392 (: CFLAGS="$CFLAGS") 2>&5
cristy17491be2014-06-24 01:10:53 +00008393 ac_status=$?
8394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8395 test $ac_status = 0; }
cristy146497a2015-05-17 22:46:16 +00008396 ;;
8397esac
8398
cristy17491be2014-06-24 01:10:53 +00008399else
cristy146497a2015-05-17 22:46:16 +00008400
8401 CFLAGS=$ac_cv_cflags_warn_all
8402 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
8403 (: CFLAGS="$CFLAGS") 2>&5
8404 ac_status=$?
8405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8406 test $ac_status = 0; }
8407
cristy17491be2014-06-24 01:10:53 +00008408fi
8409 ;;
8410esac
8411
8412ac_ext=c
cristy73bd4a52010-10-05 11:24:23 +00008413ac_cpp='$CPP $CPPFLAGS'
8414ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8415ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8416ac_compiler_gnu=$ac_cv_c_compiler_gnu
8417
8418
cristya0b81c32010-01-22 02:54:33 +00008419
8420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8421$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8422set x ${MAKE-make}
8423ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00008424if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00008425 $as_echo_n "(cached) " >&6
8426else
8427 cat >conftest.make <<\_ACEOF
8428SHELL = /bin/sh
8429all:
8430 @echo '@@@%%%=$(MAKE)=@@@%%%'
8431_ACEOF
cristy98dddb52010-11-04 00:30:15 +00008432# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristya0b81c32010-01-22 02:54:33 +00008433case `${MAKE-make} -f conftest.make 2>/dev/null` in
8434 *@@@%%%=?*=@@@%%%*)
8435 eval ac_cv_prog_make_${ac_make}_set=yes;;
8436 *)
8437 eval ac_cv_prog_make_${ac_make}_set=no;;
8438esac
8439rm -f conftest.make
8440fi
8441if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8443$as_echo "yes" >&6; }
8444 SET_MAKE=
8445else
8446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8447$as_echo "no" >&6; }
8448 SET_MAKE="MAKE=${MAKE-make}"
8449fi
8450
cristy8b350f62009-11-15 23:12:43 +00008451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00008452$as_echo_n "checking whether ln -s works... " >&6; }
8453LN_S=$as_ln_s
8454if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00008455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00008456$as_echo "yes" >&6; }
8457else
cristy8b350f62009-11-15 23:12:43 +00008458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00008459$as_echo "no, using $LN_S" >&6; }
8460fi
8461
cristy8d0ff762013-03-10 20:33:28 +00008462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8463$as_echo_n "checking for a sed that does not truncate output... " >&6; }
8464if ${ac_cv_path_SED+:} false; then :
8465 $as_echo_n "(cached) " >&6
8466else
8467 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
8468 for ac_i in 1 2 3 4 5 6 7; do
8469 ac_script="$ac_script$as_nl$ac_script"
8470 done
8471 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
8472 { ac_script=; unset ac_script;}
8473 if test -z "$SED"; then
8474 ac_path_SED_found=false
8475 # Loop through the user's path and test for each of PROGNAME-LIST
8476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8477for as_dir in $PATH
8478do
8479 IFS=$as_save_IFS
8480 test -z "$as_dir" && as_dir=.
8481 for ac_prog in sed gsed; do
8482 for ac_exec_ext in '' $ac_executable_extensions; do
8483 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
8484 as_fn_executable_p "$ac_path_SED" || continue
8485# Check for GNU ac_path_SED and select it if it is found.
8486 # Check for GNU $ac_path_SED
8487case `"$ac_path_SED" --version 2>&1` in
8488*GNU*)
8489 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
8490*)
8491 ac_count=0
8492 $as_echo_n 0123456789 >"conftest.in"
8493 while :
8494 do
8495 cat "conftest.in" "conftest.in" >"conftest.tmp"
8496 mv "conftest.tmp" "conftest.in"
8497 cp "conftest.in" "conftest.nl"
8498 $as_echo '' >> "conftest.nl"
8499 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
8500 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8501 as_fn_arith $ac_count + 1 && ac_count=$as_val
8502 if test $ac_count -gt ${ac_path_SED_max-0}; then
8503 # Best one so far, save it but keep looking for a better one
8504 ac_cv_path_SED="$ac_path_SED"
8505 ac_path_SED_max=$ac_count
8506 fi
8507 # 10*(2^10) chars as input seems more than enough
8508 test $ac_count -gt 10 && break
8509 done
8510 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8511esac
8512
8513 $ac_path_SED_found && break 3
8514 done
8515 done
8516 done
8517IFS=$as_save_IFS
8518 if test -z "$ac_cv_path_SED"; then
8519 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
8520 fi
8521else
8522 ac_cv_path_SED=$SED
8523fi
8524
8525fi
8526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8527$as_echo "$ac_cv_path_SED" >&6; }
8528 SED="$ac_cv_path_SED"
8529 rm -f conftest.sed
8530
cristybc556452012-08-17 19:44:03 +00008531for ac_prog in gawk mawk nawk awk
8532do
8533 # Extract the first word of "$ac_prog", so it can be a program name with args.
8534set dummy $ac_prog; ac_word=$2
8535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8536$as_echo_n "checking for $ac_word... " >&6; }
8537if ${ac_cv_prog_AWK+:} false; then :
8538 $as_echo_n "(cached) " >&6
8539else
8540 if test -n "$AWK"; then
8541 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8542else
8543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8544for as_dir in $PATH
8545do
8546 IFS=$as_save_IFS
8547 test -z "$as_dir" && as_dir=.
8548 for ac_exec_ext in '' $ac_executable_extensions; do
8549 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8550 ac_cv_prog_AWK="$ac_prog"
8551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8552 break 2
8553 fi
8554done
8555 done
8556IFS=$as_save_IFS
8557
8558fi
8559fi
8560AWK=$ac_cv_prog_AWK
8561if test -n "$AWK"; then
8562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8563$as_echo "$AWK" >&6; }
8564else
8565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8566$as_echo "no" >&6; }
8567fi
8568
8569
8570 test -n "$AWK" && break
8571done
8572
cristy73bd4a52010-10-05 11:24:23 +00008573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
8574$as_echo_n "checking if malloc debugging is wanted... " >&6; }
8575
8576# Check whether --with-dmalloc was given.
8577if test "${with_dmalloc+set}" = set; then :
8578 withval=$with_dmalloc; if test "$withval" = yes; then
8579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8580$as_echo "yes" >&6; }
8581
8582$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
8583
8584 LIBS="$LIBS -ldmalloc"
8585 LDFLAGS="$LDFLAGS -g"
8586else
8587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8588$as_echo "no" >&6; }
8589fi
8590else
8591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8592$as_echo "no" >&6; }
8593fi
8594
8595
8596
8597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
8598$as_echo_n "checking for __attribute__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008599if ${ax_cv___attribute__+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008600 $as_echo_n "(cached) " >&6
8601else
8602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8603/* end confdefs.h. */
8604#include <stdlib.h>
cristy146497a2015-05-17 22:46:16 +00008605 static void foo(void) __attribute__ ((unused));
cristy73bd4a52010-10-05 11:24:23 +00008606 static void
8607 foo(void) {
8608 exit(1);
8609 }
8610
8611int
8612main ()
8613{
8614
8615 ;
8616 return 0;
8617}
8618_ACEOF
8619if ac_fn_c_try_compile "$LINENO"; then :
8620 ax_cv___attribute__=yes
8621else
8622 ax_cv___attribute__=no
8623
8624fi
8625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8626
8627fi
8628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
8629$as_echo "$ax_cv___attribute__" >&6; }
8630 if test "$ax_cv___attribute__" = "yes"; then
8631
8632$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
8633
8634 fi
8635
cristy146497a2015-05-17 22:46:16 +00008636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
8637$as_echo_n "checking for C compiler vendor... " >&6; }
8638if ${ax_cv_c_compiler_vendor+:} false; then :
8639 $as_echo_n "(cached) " >&6
8640else
8641 # note: don't check for gcc first since some other compilers define __GNUC__
8642 vendors="intel: __ICC,__ECC,__INTEL_COMPILER
8643 ibm: __xlc__,__xlC__,__IBMC__,__IBMCPP__
8644 pathscale: __PATHCC__,__PATHSCALE__
8645 clang: __clang__
8646 cray: _CRAYC
8647 fujitsu: __FUJITSU
8648 gnu: __GNUC__
8649 sun: __SUNPRO_C,__SUNPRO_CC
8650 hp: __HP_cc,__HP_aCC
8651 dec: __DECC,__DECCXX,__DECC_VER,__DECCXX_VER
8652 borland: __BORLANDC__,__CODEGEARC__,__TURBOC__
8653 comeau: __COMO__
8654 kai: __KCC
8655 lcc: __LCC__
8656 sgi: __sgi,sgi
8657 microsoft: _MSC_VER
8658 metrowerks: __MWERKS__
8659 watcom: __WATCOMC__
8660 portland: __PGI
8661 tcc: __TINYC__
8662 unknown: UNKNOWN"
8663 for ventest in $vendors; do
8664 case $ventest in
8665 *:) vendor=$ventest; continue ;;
8666 *) vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" ;;
8667 esac
8668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8669/* end confdefs.h. */
8670
8671int
8672main ()
8673{
8674
8675 #if !($vencpp)
8676 thisisanerror;
8677 #endif
8678
8679 ;
8680 return 0;
8681}
8682_ACEOF
8683if ac_fn_c_try_compile "$LINENO"; then :
8684 break
8685fi
8686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8687 done
8688 ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1`
8689
8690fi
8691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5
8692$as_echo "$ax_cv_c_compiler_vendor" >&6; }
8693
8694
cristy73bd4a52010-10-05 11:24:23 +00008695
8696
cristya0459972013-11-03 18:09:35 +00008697
8698
cristy17491be2014-06-24 01:10:53 +00008699
cristya0459972013-11-03 18:09:35 +00008700# Check whether --with-gcc-arch was given.
8701if test "${with_gcc_arch+set}" = set; then :
8702 withval=$with_gcc_arch; ax_gcc_arch=$withval
8703else
cristy17491be2014-06-24 01:10:53 +00008704 ax_gcc_arch=yes
cristya0459972013-11-03 18:09:35 +00008705fi
8706
8707
8708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8709$as_echo_n "checking for gcc architecture flag... " >&6; }
8710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
8711$as_echo "" >&6; }
8712if ${ax_cv_gcc_archflag+:} false; then :
8713 $as_echo_n "(cached) " >&6
8714else
8715
8716ax_cv_gcc_archflag="unknown"
8717
8718if test "$GCC" = yes; then
8719
8720if test "x$ax_gcc_arch" = xyes; then
8721ax_gcc_arch=""
8722if test "$cross_compiling" = no; then
8723case $host_cpu in
cristy17491be2014-06-24 01:10:53 +00008724 i[3456]86*|x86_64*|amd64*) # use cpuid codes
cristya0459972013-11-03 18:09:35 +00008725
8726ac_ext=c
8727ac_cpp='$CPP $CPPFLAGS'
8728ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8729ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8730ac_compiler_gnu=$ac_cv_c_compiler_gnu
8731
8732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5
8733$as_echo_n "checking for x86 cpuid 0 output... " >&6; }
8734if ${ax_cv_gcc_x86_cpuid_0+:} false; then :
8735 $as_echo_n "(cached) " >&6
8736else
8737 if test "$cross_compiling" = yes; then :
8738 ax_cv_gcc_x86_cpuid_0=unknown
8739else
8740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8741/* end confdefs.h. */
8742#include <stdio.h>
8743int
8744main ()
8745{
8746
Cristy66387d22015-11-02 07:41:25 -05008747 int op = 0, level = 0, eax, ebx, ecx, edx;
cristya0459972013-11-03 18:09:35 +00008748 FILE *f;
Cristy66387d22015-11-02 07:41:25 -05008749 __asm__ __volatile__ ("cpuid"
cristya0459972013-11-03 18:09:35 +00008750 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
Cristy66387d22015-11-02 07:41:25 -05008751 : "a" (op), "2" (level));
8752
cristya0459972013-11-03 18:09:35 +00008753 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8754 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8755 fclose(f);
8756 return 0;
8757
8758 ;
8759 return 0;
8760}
8761_ACEOF
8762if ac_fn_c_try_run "$LINENO"; then :
8763 ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid
8764else
8765 ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid
8766fi
8767rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8768 conftest.$ac_objext conftest.beam conftest.$ac_ext
8769fi
8770
8771fi
8772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5
8773$as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; }
8774ac_ext=c
8775ac_cpp='$CPP $CPPFLAGS'
8776ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8777ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8778ac_compiler_gnu=$ac_cv_c_compiler_gnu
8779
8780
8781
Cristy66387d22015-11-02 07:41:25 -05008782
cristya0459972013-11-03 18:09:35 +00008783ac_ext=c
8784ac_cpp='$CPP $CPPFLAGS'
8785ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8786ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8787ac_compiler_gnu=$ac_cv_c_compiler_gnu
8788
8789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5
8790$as_echo_n "checking for x86 cpuid 1 output... " >&6; }
8791if ${ax_cv_gcc_x86_cpuid_1+:} false; then :
8792 $as_echo_n "(cached) " >&6
8793else
8794 if test "$cross_compiling" = yes; then :
8795 ax_cv_gcc_x86_cpuid_1=unknown
8796else
8797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8798/* end confdefs.h. */
8799#include <stdio.h>
8800int
8801main ()
8802{
8803
Cristy66387d22015-11-02 07:41:25 -05008804 int op = 1, level = 0, eax, ebx, ecx, edx;
cristya0459972013-11-03 18:09:35 +00008805 FILE *f;
Cristy66387d22015-11-02 07:41:25 -05008806 __asm__ __volatile__ ("cpuid"
cristya0459972013-11-03 18:09:35 +00008807 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
Cristy66387d22015-11-02 07:41:25 -05008808 : "a" (op), "2" (level));
8809
cristya0459972013-11-03 18:09:35 +00008810 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8811 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8812 fclose(f);
8813 return 0;
8814
8815 ;
8816 return 0;
8817}
8818_ACEOF
8819if ac_fn_c_try_run "$LINENO"; then :
8820 ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid
8821else
8822 ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid
8823fi
8824rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8825 conftest.$ac_objext conftest.beam conftest.$ac_ext
8826fi
8827
8828fi
8829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5
8830$as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; }
8831ac_ext=c
8832ac_cpp='$CPP $CPPFLAGS'
8833ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8834ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8835ac_compiler_gnu=$ac_cv_c_compiler_gnu
8836
8837
Cristy66387d22015-11-02 07:41:25 -05008838
cristya0459972013-11-03 18:09:35 +00008839 case $ax_cv_gcc_x86_cpuid_0 in
cristy146497a2015-05-17 22:46:16 +00008840 *:756e6547:6c65746e:49656e69) # Intel
cristya0459972013-11-03 18:09:35 +00008841 case $ax_cv_gcc_x86_cpuid_1 in
cristy146497a2015-05-17 22:46:16 +00008842 *5[4578]?:*:*:*) ax_gcc_arch="pentium-mmx pentium" ;;
8843 *5[123]?:*:*:*) ax_gcc_arch=pentium ;;
8844 *0?61?:*:*:*|?61?:*:*:*|61?:*:*:*) ax_gcc_arch=pentiumpro ;;
8845 *0?6[356]?:*:*:*|?6[356]?:*:*:*|6[356]?:*:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8846 *0?6[78ab]?:*:*:*|?6[78ab]?:*:*:*|6[78ab]?:*:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8847 *0?6[9d]?:*:*:*|?6[9d]?:*:*:*|6[9d]?:*:*:*|*1?65?:*:*:*) ax_gcc_arch="pentium-m pentium3 pentiumpro" ;;
8848 *0?6e?:*:*:*|?6e?:*:*:*|6e?:*:*:*) ax_gcc_arch="yonah pentium-m pentium3 pentiumpro" ;;
8849 *0?6f?:*:*:*|?6f?:*:*:*|6f?:*:*:*|*1?66?:*:*:*) ax_gcc_arch="core2 pentium-m pentium3 pentiumpro" ;;
cristya0459972013-11-03 18:09:35 +00008850 *1?6[7d]?:*:*:*) ax_gcc_arch="penryn core2 pentium-m pentium3 pentiumpro" ;;
cristy146497a2015-05-17 22:46:16 +00008851 *1?6[aef]?:*:*:*|*2?6e?:*:*:*) ax_gcc_arch="nehalem corei7 core2 pentium-m pentium3 pentiumpro" ;;
8852 *2?6[5cf]?:*:*:*) ax_gcc_arch="westmere corei7 core2 pentium-m pentium3 pentiumpro" ;;
8853 *2?6[ad]?:*:*:*) ax_gcc_arch="sandybridge corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
8854 *3?6[ae]?:*:*:*) ax_gcc_arch="ivybridge core-avx-i corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
8855 *3?6[cf]?:*:*:*|*4?6[56]?:*:*:*) ax_gcc_arch="haswell core-avx2 core-avx-i corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
8856 *3?6d?:*:*:*) ax_gcc_arch="broadwell core-avx2 core-avx-i corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
8857 *1?6c?:*:*:*|*2?6[67]?:*:*:*|*3?6[56]?:*:*:*) ax_gcc_arch="bonnell atom core2 pentium-m pentium3 pentiumpro" ;;
8858 *3?67?:*:*:*|*[45]?6[ad]?:*:*:*) ax_gcc_arch="silvermont atom core2 pentium-m pentium3 pentiumpro" ;;
8859 *000?f[012]?:*:*:*|?f[012]?:*:*:*|f[012]?:*:*:*) ax_gcc_arch="pentium4 pentiumpro" ;;
8860 *000?f[346]?:*:*:*|?f[346]?:*:*:*|f[346]?:*:*:*) ax_gcc_arch="nocona prescott pentium4 pentiumpro" ;;
8861 # fallback
8862 *5??:*:*:*) ax_gcc_arch=pentium ;;
8863 *??6??:*:*:*) ax_gcc_arch="core2 pentiumpro" ;;
cristy17491be2014-06-24 01:10:53 +00008864 *6??:*:*:*) ax_gcc_arch=pentiumpro ;;
cristy146497a2015-05-17 22:46:16 +00008865 *00??f??:*:*:*|??f??:*:*:*|?f??:*:*:*|f??:*:*:*) ax_gcc_arch="pentium4 pentiumpro" ;;
cristya0459972013-11-03 18:09:35 +00008866 esac ;;
cristy146497a2015-05-17 22:46:16 +00008867 *:68747541:444d4163:69746e65) # AMD
cristya0459972013-11-03 18:09:35 +00008868 case $ax_cv_gcc_x86_cpuid_1 in
8869 *5[67]?:*:*:*) ax_gcc_arch=k6 ;;
cristy146497a2015-05-17 22:46:16 +00008870 *5[8]?:*:*:*) ax_gcc_arch="k6-2 k6" ;;
8871 *5[9d]?:*:*:*) ax_gcc_arch="k6-3 k6" ;;
cristya0459972013-11-03 18:09:35 +00008872 *6[12]?:*:*:*) ax_gcc_arch="athlon k7" ;;
8873 *6[34]?:*:*:*) ax_gcc_arch="athlon-tbird k7" ;;
cristy146497a2015-05-17 22:46:16 +00008874 *6[678a]?:*:*:*) ax_gcc_arch="athlon-xp athlon-4 athlon k7" ;;
8875 *000?f[4578bcef]?:*:*:*|?f[4578bcef]?:*:*:*|f[4578bcef]?:*:*:*|*001?f[4578bcf]?:*:*:*|1?f[4578bcf]?:*:*:*) ax_gcc_arch="athlon64 k8" ;;
8876 *002?f[13457bcf]?:*:*:*|2?f[13457bcf]?:*:*:*|*004?f[138bcf]?:*:*:*|4?f[138bcf]?:*:*:*|*005?f[df]?:*:*:*|5?f[df]?:*:*:*|*006?f[8bcf]?:*:*:*|6?f[8bcf]?:*:*:*|*007?f[cf]?:*:*:*|7?f[cf]?:*:*:*|*00c?f1?:*:*:*|c?f1?:*:*:*|*020?f3?:*:*:*|20?f3?:*:*:*) ax_gcc_arch="athlon64-sse3 k8-sse3 athlon64 k8" ;;
8877 *010?f[245689a]?:*:*:*|10?f[245689a]?:*:*:*|*030?f1?:*:*:*|30?f1?:*:*:*) ax_gcc_arch="barcelona amdfam10 k8" ;;
8878 *050?f[12]?:*:*:*|50?f[12]?:*:*:*) ax_gcc_arch="btver1 amdfam10 k8" ;;
8879 *060?f1?:*:*:*|60?f1?:*:*:*) ax_gcc_arch="bdver1 amdfam10 k8" ;;
8880 *060?f2?:*:*:*|60?f2?:*:*:*|*061?f[03]?:*:*:*|61?f[03]?:*:*:*) ax_gcc_arch="bdver2 bdver1 amdfam10 k8" ;;
8881 *063?f0?:*:*:*|63?f0?:*:*:*) ax_gcc_arch="bdver3 bdver2 bdver1 amdfam10 k8" ;;
8882 *07[03]?f0?:*:*:*|7[03]?f0?:*:*:*) ax_gcc_arch="btver2 btver1 amdfam10 k8" ;;
8883 # fallback
8884 *0[13]??f??:*:*:*|[13]??f??:*:*:*) ax_gcc_arch="barcelona amdfam10 k8" ;;
8885 *020?f??:*:*:*|20?f??:*:*:*) ax_gcc_arch="athlon64-sse3 k8-sse3 athlon64 k8" ;;
8886 *05??f??:*:*:*|5??f??:*:*:*) ax_gcc_arch="btver1 amdfam10 k8" ;;
8887 *060?f??:*:*:*|60?f??:*:*:*) ax_gcc_arch="bdver1 amdfam10 k8" ;;
8888 *061?f??:*:*:*|61?f??:*:*:*) ax_gcc_arch="bdver2 bdver1 amdfam10 k8" ;;
8889 *06??f??:*:*:*|6??f??:*:*:*) ax_gcc_arch="bdver3 bdver2 bdver1 amdfam10 k8" ;;
8890 *070?f??:*:*:*|70?f??:*:*:*) ax_gcc_arch="btver2 btver1 amdfam10 k8" ;;
8891 *???f??:*:*:*) ax_gcc_arch="amdfam10 k8" ;;
cristya0459972013-11-03 18:09:35 +00008892 esac ;;
cristy146497a2015-05-17 22:46:16 +00008893 *:746e6543:736c7561:48727561) # IDT / VIA (Centaur)
cristya0459972013-11-03 18:09:35 +00008894 case $ax_cv_gcc_x86_cpuid_1 in
8895 *54?:*:*:*) ax_gcc_arch=winchip-c6 ;;
cristy146497a2015-05-17 22:46:16 +00008896 *5[89]?:*:*:*) ax_gcc_arch=winchip2 ;;
8897 *66?:*:*:*) ax_gcc_arch=winchip2 ;;
cristya0459972013-11-03 18:09:35 +00008898 *6[78]?:*:*:*) ax_gcc_arch=c3 ;;
cristy146497a2015-05-17 22:46:16 +00008899 *6[9adf]?:*:*:*) ax_gcc_arch="c3-2 c3" ;;
cristya0459972013-11-03 18:09:35 +00008900 esac ;;
8901 esac
8902 if test x"$ax_gcc_arch" = x; then # fallback
8903 case $host_cpu in
8904 i586*) ax_gcc_arch=pentium ;;
8905 i686*) ax_gcc_arch=pentiumpro ;;
8906 esac
8907 fi
8908 ;;
8909
8910 sparc*)
8911 # Extract the first word of "prtdiag", so it can be a program name with args.
8912set dummy prtdiag; ac_word=$2
8913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8914$as_echo_n "checking for $ac_word... " >&6; }
8915if ${ac_cv_path_PRTDIAG+:} false; then :
8916 $as_echo_n "(cached) " >&6
8917else
8918 case $PRTDIAG in
8919 [\\/]* | ?:[\\/]*)
8920 ac_cv_path_PRTDIAG="$PRTDIAG" # Let the user override the test with a path.
8921 ;;
8922 *)
8923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8924as_dummy="$PATH:/usr/platform/`uname -i`/sbin/:/usr/platform/`uname -m`/sbin/"
8925for as_dir in $as_dummy
8926do
8927 IFS=$as_save_IFS
8928 test -z "$as_dir" && as_dir=.
8929 for ac_exec_ext in '' $ac_executable_extensions; do
8930 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8931 ac_cv_path_PRTDIAG="$as_dir/$ac_word$ac_exec_ext"
8932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8933 break 2
8934 fi
8935done
8936 done
8937IFS=$as_save_IFS
8938
8939 test -z "$ac_cv_path_PRTDIAG" && ac_cv_path_PRTDIAG="prtdiag"
8940 ;;
8941esac
8942fi
8943PRTDIAG=$ac_cv_path_PRTDIAG
8944if test -n "$PRTDIAG"; then
8945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRTDIAG" >&5
8946$as_echo "$PRTDIAG" >&6; }
8947else
8948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8949$as_echo "no" >&6; }
8950fi
8951
8952
8953 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 +00008954 cputype=`echo "$cputype" | tr -d ' -' | $SED 's/SPARCIIi/SPARCII/' |tr $as_cr_LETTERS $as_cr_letters`
cristya0459972013-11-03 18:09:35 +00008955 case $cputype in
8956 *ultrasparciv*) ax_gcc_arch="ultrasparc4 ultrasparc3 ultrasparc v9" ;;
8957 *ultrasparciii*) ax_gcc_arch="ultrasparc3 ultrasparc v9" ;;
8958 *ultrasparc*) ax_gcc_arch="ultrasparc v9" ;;
8959 *supersparc*|*tms390z5[05]*) ax_gcc_arch="supersparc v8" ;;
8960 *hypersparc*|*rt62[056]*) ax_gcc_arch="hypersparc v8" ;;
8961 *cypress*) ax_gcc_arch=cypress ;;
8962 esac ;;
8963
8964 alphaev5) ax_gcc_arch=ev5 ;;
8965 alphaev56) ax_gcc_arch=ev56 ;;
8966 alphapca56) ax_gcc_arch="pca56 ev56" ;;
8967 alphapca57) ax_gcc_arch="pca57 pca56 ev56" ;;
8968 alphaev6) ax_gcc_arch=ev6 ;;
8969 alphaev67) ax_gcc_arch=ev67 ;;
8970 alphaev68) ax_gcc_arch="ev68 ev67" ;;
8971 alphaev69) ax_gcc_arch="ev69 ev68 ev67" ;;
8972 alphaev7) ax_gcc_arch="ev7 ev69 ev68 ev67" ;;
8973 alphaev79) ax_gcc_arch="ev79 ev7 ev69 ev68 ev67" ;;
8974
8975 powerpc*)
cristy17491be2014-06-24 01:10:53 +00008976 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`
8977 cputype=`echo $cputype | $SED -e 's/ppc//g;s/ *//g'`
cristya0459972013-11-03 18:09:35 +00008978 case $cputype in
8979 *750*) ax_gcc_arch="750 G3" ;;
8980 *740[0-9]*) ax_gcc_arch="$cputype 7400 G4" ;;
8981 *74[4-5][0-9]*) ax_gcc_arch="$cputype 7450 G4" ;;
8982 *74[0-9][0-9]*) ax_gcc_arch="$cputype G4" ;;
8983 *970*) ax_gcc_arch="970 G5 power4";;
8984 *POWER4*|*power4*|*gq*) ax_gcc_arch="power4 970";;
8985 *POWER5*|*power5*|*gr*|*gs*) ax_gcc_arch="power5 power4 970";;
8986 603ev|8240) ax_gcc_arch="$cputype 603e 603";;
8987 *) ax_gcc_arch=$cputype ;;
8988 esac
8989 ax_gcc_arch="$ax_gcc_arch powerpc"
8990 ;;
8991esac
8992fi # not cross-compiling
8993fi # guess arch
8994
8995if test "x$ax_gcc_arch" != x -a "x$ax_gcc_arch" != xno; then
cristy146497a2015-05-17 22:46:16 +00008996if test "xyes" = xyes; then # if we require portable code
8997 flag_prefixes="-mtune="
8998 if test "x$ax_cv_c_compiler_vendor" = xclang; then flag_prefixes="-march="; fi
8999 # -mcpu=$arch and m$arch generate nonportable code on every arch except
9000 # x86. And some other arches (e.g. Alpha) don't accept -mtune. Grrr.
9001 case $host_cpu in i*86|x86_64*|amd64*) flag_prefixes="$flag_prefixes -mcpu= -m";; esac
9002else
9003 flag_prefixes="-march= -mcpu= -m"
9004fi
9005for flag_prefix in $flag_prefixes; do
9006 for arch in $ax_gcc_arch; do
9007 flag="$flag_prefix$arch"
cristya0459972013-11-03 18:09:35 +00009008 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
9009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
9010$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
9011if eval \${$as_CACHEVAR+:} false; then :
9012 $as_echo_n "(cached) " >&6
9013else
9014
9015 ax_check_save_flags=$CFLAGS
9016 CFLAGS="$CFLAGS $flag"
9017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9018/* end confdefs.h. */
9019
9020int
9021main ()
9022{
9023
9024 ;
9025 return 0;
9026}
9027_ACEOF
9028if ac_fn_c_try_compile "$LINENO"; then :
9029 eval "$as_CACHEVAR=yes"
9030else
9031 eval "$as_CACHEVAR=no"
9032fi
9033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9034 CFLAGS=$ax_check_save_flags
9035fi
9036eval ac_res=\$$as_CACHEVAR
9037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9038$as_echo "$ac_res" >&6; }
cristy146497a2015-05-17 22:46:16 +00009039if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
9040 if test "x$ax_cv_c_compiler_vendor" = xclang; then
9041 if test "xyes" = xyes; then
9042 if test "x$flag" = "x-march=$arch"; then flag=-mtune=$arch; fi
9043 fi
9044 fi; ax_cv_gcc_archflag=$flag; break
cristya0459972013-11-03 18:09:35 +00009045else
9046 :
9047fi
9048
9049 done
9050 test "x$ax_cv_gcc_archflag" = xunknown || break
9051done
9052fi
9053
9054fi # $GCC=yes
9055
9056fi
9057
9058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
9059$as_echo_n "checking for gcc architecture flag... " >&6; }
9060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_archflag" >&5
9061$as_echo "$ax_cv_gcc_archflag" >&6; }
9062if test "x$ax_cv_gcc_archflag" = xunknown; then
9063 :
9064else
9065 CFLAGS="$CFLAGS $ax_cv_gcc_archflag"
9066fi
9067
9068
9069
cristy146497a2015-05-17 22:46:16 +00009070
9071
9072
9073
9074
cristy73bd4a52010-10-05 11:24:23 +00009075if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
9076 if test -n "$ac_tool_prefix"; then
9077 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
9078set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
9079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9080$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009081if ${ac_cv_path_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009082 $as_echo_n "(cached) " >&6
9083else
9084 case $PKG_CONFIG in
9085 [\\/]* | ?:[\\/]*)
9086 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9087 ;;
9088 *)
9089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9090for as_dir in $PATH
9091do
9092 IFS=$as_save_IFS
9093 test -z "$as_dir" && as_dir=.
9094 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009095 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009096 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9098 break 2
9099 fi
9100done
9101 done
9102IFS=$as_save_IFS
9103
9104 ;;
9105esac
9106fi
9107PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9108if test -n "$PKG_CONFIG"; then
9109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9110$as_echo "$PKG_CONFIG" >&6; }
9111else
9112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9113$as_echo "no" >&6; }
9114fi
9115
9116
9117fi
9118if test -z "$ac_cv_path_PKG_CONFIG"; then
9119 ac_pt_PKG_CONFIG=$PKG_CONFIG
9120 # Extract the first word of "pkg-config", so it can be a program name with args.
9121set dummy pkg-config; ac_word=$2
9122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9123$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009124if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009125 $as_echo_n "(cached) " >&6
9126else
9127 case $ac_pt_PKG_CONFIG in
9128 [\\/]* | ?:[\\/]*)
9129 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
9130 ;;
9131 *)
9132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9133for as_dir in $PATH
9134do
9135 IFS=$as_save_IFS
9136 test -z "$as_dir" && as_dir=.
9137 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009138 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009139 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9141 break 2
9142 fi
9143done
9144 done
9145IFS=$as_save_IFS
9146
9147 ;;
9148esac
9149fi
9150ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
9151if test -n "$ac_pt_PKG_CONFIG"; then
9152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
9153$as_echo "$ac_pt_PKG_CONFIG" >&6; }
9154else
9155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9156$as_echo "no" >&6; }
9157fi
9158
9159 if test "x$ac_pt_PKG_CONFIG" = x; then
9160 PKG_CONFIG=""
9161 else
9162 case $cross_compiling:$ac_tool_warned in
9163yes:)
9164{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9165$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9166ac_tool_warned=yes ;;
9167esac
9168 PKG_CONFIG=$ac_pt_PKG_CONFIG
9169 fi
9170else
9171 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
9172fi
9173
9174fi
9175if test -n "$PKG_CONFIG"; then
9176 _pkg_min_version=0.9.0
9177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
9178$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
9179 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
9180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9181$as_echo "yes" >&6; }
9182 else
9183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9184$as_echo "no" >&6; }
9185 PKG_CONFIG=""
9186 fi
cristy73bd4a52010-10-05 11:24:23 +00009187fi
cristy3ed852e2009-09-05 21:47:34 +00009188
cristy9af1cbf2014-12-28 22:03:09 +00009189
9190
cristyd95b7a52013-10-23 13:12:53 +00009191# Test for 64-bit build.
9192# The cast to long int works around a bug in the HP C Compiler
9193# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9194# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9195# This bug is HP SR number 8606223364.
9196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
9197$as_echo_n "checking size of size_t... " >&6; }
9198if ${ac_cv_sizeof_size_t+:} false; then :
9199 $as_echo_n "(cached) " >&6
9200else
9201 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
9202
9203else
9204 if test "$ac_cv_type_size_t" = yes; then
9205 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9206$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9207as_fn_error 77 "cannot compute sizeof (size_t)
9208See \`config.log' for more details" "$LINENO" 5; }
9209 else
9210 ac_cv_sizeof_size_t=0
9211 fi
9212fi
9213
9214fi
9215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
9216$as_echo "$ac_cv_sizeof_size_t" >&6; }
9217
9218
9219
9220cat >>confdefs.h <<_ACEOF
9221#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
9222_ACEOF
9223
9224
9225
9226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
9227$as_echo_n "checking for C compiler vendor... " >&6; }
9228if ${ax_cv_c_compiler_vendor+:} false; then :
9229 $as_echo_n "(cached) " >&6
9230else
cristy146497a2015-05-17 22:46:16 +00009231 # note: don't check for gcc first since some other compilers define __GNUC__
cristyd95b7a52013-10-23 13:12:53 +00009232 vendors="intel: __ICC,__ECC,__INTEL_COMPILER
9233 ibm: __xlc__,__xlC__,__IBMC__,__IBMCPP__
9234 pathscale: __PATHCC__,__PATHSCALE__
9235 clang: __clang__
cristy146497a2015-05-17 22:46:16 +00009236 cray: _CRAYC
cristy17491be2014-06-24 01:10:53 +00009237 fujitsu: __FUJITSU
cristyd95b7a52013-10-23 13:12:53 +00009238 gnu: __GNUC__
9239 sun: __SUNPRO_C,__SUNPRO_CC
9240 hp: __HP_cc,__HP_aCC
9241 dec: __DECC,__DECCXX,__DECC_VER,__DECCXX_VER
cristy146497a2015-05-17 22:46:16 +00009242 borland: __BORLANDC__,__CODEGEARC__,__TURBOC__
cristyd95b7a52013-10-23 13:12:53 +00009243 comeau: __COMO__
cristyd95b7a52013-10-23 13:12:53 +00009244 kai: __KCC
9245 lcc: __LCC__
9246 sgi: __sgi,sgi
9247 microsoft: _MSC_VER
9248 metrowerks: __MWERKS__
9249 watcom: __WATCOMC__
9250 portland: __PGI
cristy146497a2015-05-17 22:46:16 +00009251 tcc: __TINYC__
cristyd95b7a52013-10-23 13:12:53 +00009252 unknown: UNKNOWN"
9253 for ventest in $vendors; do
9254 case $ventest in
9255 *:) vendor=$ventest; continue ;;
9256 *) vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" ;;
9257 esac
9258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9259/* end confdefs.h. */
9260
9261int
9262main ()
9263{
9264
9265 #if !($vencpp)
9266 thisisanerror;
9267 #endif
9268
9269 ;
9270 return 0;
9271}
9272_ACEOF
9273if ac_fn_c_try_compile "$LINENO"; then :
9274 break
9275fi
9276rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9277 done
9278 ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1`
9279
9280fi
9281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5
9282$as_echo "$ax_cv_c_compiler_vendor" >&6; }
9283
cristyd95b7a52013-10-23 13:12:53 +00009284# The AX_CFLAGS_WARN_ALL macro doesn't currently work for sunpro
9285# compiler.
9286if test "$ax_cv_c_compiler_vendor" != "sun"; then
cristy17491be2014-06-24 01:10:53 +00009287 ac_ext=c
cristyd95b7a52013-10-23 13:12:53 +00009288ac_cpp='$CPP $CPPFLAGS'
9289ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9290ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9291ac_compiler_gnu=$ac_cv_c_compiler_gnu
9292
cristy17491be2014-06-24 01:10:53 +00009293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
9294$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
9295if ${ac_cv_cflags_warn_all+:} false; then :
9296 $as_echo_n "(cached) " >&6
9297else
9298 ac_cv_cflags_warn_all="no, unknown"
9299ac_save_CFLAGS="$CFLAGS"
9300for 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 +00009301do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
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_compile "$LINENO"; then :
9314 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
9315fi
9316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9317done
cristy17491be2014-06-24 01:10:53 +00009318CFLAGS="$ac_save_CFLAGS"
9319
9320fi
9321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
9322$as_echo "$ac_cv_cflags_warn_all" >&6; }
9323
9324
9325case ".$ac_cv_cflags_warn_all" in
9326 .ok|.ok,*) ;;
9327 .|.no|.no,*) ;;
cristy146497a2015-05-17 22:46:16 +00009328 *)
9329if ${CFLAGS+:} false; then :
9330
9331 case " $CFLAGS " in #(
9332 *" $ac_cv_cflags_warn_all "*) :
9333 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$ac_cv_cflags_warn_all"; } >&5
cristy17491be2014-06-24 01:10:53 +00009334 (: CFLAGS already contains $ac_cv_cflags_warn_all) 2>&5
9335 ac_status=$?
9336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristy146497a2015-05-17 22:46:16 +00009337 test $ac_status = 0; } ;; #(
9338 *) :
9339
9340 as_fn_append CFLAGS " $ac_cv_cflags_warn_all"
9341 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
9342 (: CFLAGS="$CFLAGS") 2>&5
cristy17491be2014-06-24 01:10:53 +00009343 ac_status=$?
9344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9345 test $ac_status = 0; }
cristy146497a2015-05-17 22:46:16 +00009346 ;;
9347esac
9348
cristy17491be2014-06-24 01:10:53 +00009349else
cristy146497a2015-05-17 22:46:16 +00009350
9351 CFLAGS=$ac_cv_cflags_warn_all
9352 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
9353 (: CFLAGS="$CFLAGS") 2>&5
9354 ac_status=$?
9355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9356 test $ac_status = 0; }
9357
cristy17491be2014-06-24 01:10:53 +00009358fi
9359 ;;
9360esac
9361
9362ac_ext=c
cristyd95b7a52013-10-23 13:12:53 +00009363ac_cpp='$CPP $CPPFLAGS'
9364ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9365ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9366ac_compiler_gnu=$ac_cv_c_compiler_gnu
9367
9368
9369fi
cristyd95b7a52013-10-23 13:12:53 +00009370
9371if test "x$GCC" = "xyes"; then
9372 CFLAGS="$CFLAGS -fexceptions"
9373 touch local.exp
9374else
9375 cat > local.exp <<EOF
9376set CC_FOR_TARGET "$CC"
9377EOF
9378fi
9379
cristy9b86f202012-11-28 21:55:35 +00009380# Check for linker script support
9381
9382 # Check whether --enable-ld-version-script was given.
9383if test "${enable_ld_version_script+set}" = set; then :
9384 enableval=$enable_ld_version_script; have_ld_version_script=$enableval
9385fi
9386
9387 if test -z "$have_ld_version_script"; then
9388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5
9389$as_echo_n "checking if LD -Wl,--version-script works... " >&6; }
9390 save_LDFLAGS="$LDFLAGS"
9391 LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
9392 cat > conftest.map <<EOF
9393foo
9394EOF
9395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9396/* end confdefs.h. */
9397
9398int
9399main ()
9400{
9401
9402 ;
9403 return 0;
9404}
9405_ACEOF
9406if ac_fn_c_try_link "$LINENO"; then :
9407 accepts_syntax_errors=yes
9408else
9409 accepts_syntax_errors=no
9410fi
9411rm -f core conftest.err conftest.$ac_objext \
9412 conftest$ac_exeext conftest.$ac_ext
9413 if test "$accepts_syntax_errors" = no; then
9414 cat > conftest.map <<EOF
9415VERS_1 {
9416 global: sym;
9417};
9418
9419VERS_2 {
9420 global: sym;
9421} VERS_1;
9422EOF
9423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9424/* end confdefs.h. */
9425
9426int
9427main ()
9428{
9429
9430 ;
9431 return 0;
9432}
9433_ACEOF
9434if ac_fn_c_try_link "$LINENO"; then :
9435 have_ld_version_script=yes
9436else
9437 have_ld_version_script=no
9438fi
9439rm -f core conftest.err conftest.$ac_objext \
9440 conftest$ac_exeext conftest.$ac_ext
9441 else
9442 have_ld_version_script=no
9443 fi
9444 rm -f conftest.map
9445 LDFLAGS="$save_LDFLAGS"
9446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ld_version_script" >&5
9447$as_echo "$have_ld_version_script" >&6; }
9448 fi
9449 if test "$have_ld_version_script" = "yes"; then
9450 HAVE_LD_VERSION_SCRIPT_TRUE=
9451 HAVE_LD_VERSION_SCRIPT_FALSE='#'
9452else
9453 HAVE_LD_VERSION_SCRIPT_TRUE='#'
9454 HAVE_LD_VERSION_SCRIPT_FALSE=
9455fi
9456
9457
9458
cristy3ed852e2009-09-05 21:47:34 +00009459#
cristy3ed852e2009-09-05 21:47:34 +00009460# Enable run-time checking.
9461#
9462# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00009463if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009464 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
9465else
9466 enable_bounds_checking='no'
9467fi
9468
9469
9470if test "$enable_bounds_checking" = yes; then
9471
cristy8b350f62009-11-15 23:12:43 +00009472$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009473
9474fi
9475
9476#
9477# Tests for Windows
9478#
9479
9480
9481
9482GDI32_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00009483native_win32_build='no'
9484cygwin_build='no'
9485case "${host_os}" in
9486 cygwin* )
cristy3ed852e2009-09-05 21:47:34 +00009487 cygwin_build='yes'
9488 GDI32_LIBS='-lgdi32'
9489 ;;
9490 mingw* )
cristy3ed852e2009-09-05 21:47:34 +00009491 native_win32_build='yes'
9492 GDI32_LIBS='-lgdi32'
9493 ;;
9494esac
9495if test "${GDI32_LIBS}x" != 'x'; then
9496
cristy8b350f62009-11-15 23:12:43 +00009497$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009498
9499fi
9500
cristy73bd4a52010-10-05 11:24:23 +00009501 if test "${GDI32_LIBS}x" != 'x' ; then
9502 WINGDI32_DELEGATE_TRUE=
9503 WINGDI32_DELEGATE_FALSE='#'
9504else
9505 WINGDI32_DELEGATE_TRUE='#'
9506 WINGDI32_DELEGATE_FALSE=
9507fi
9508
9509 if test "${native_win32_build}" = 'yes' ; then
9510 WIN32_NATIVE_BUILD_TRUE=
9511 WIN32_NATIVE_BUILD_FALSE='#'
9512else
9513 WIN32_NATIVE_BUILD_TRUE='#'
9514 WIN32_NATIVE_BUILD_FALSE=
9515fi
9516
9517 if test "${cygwin_build}" = 'yes' ; then
9518 CYGWIN_BUILD_TRUE=
9519 CYGWIN_BUILD_FALSE='#'
9520else
9521 CYGWIN_BUILD_TRUE='#'
9522 CYGWIN_BUILD_FALSE=
9523fi
9524
9525 if test "x${CC}" = 'xcl.exe' ; then
9526 USING_CL_TRUE=
9527 USING_CL_FALSE='#'
9528else
9529 USING_CL_TRUE='#'
9530 USING_CL_FALSE=
9531fi
9532
cristy3ed852e2009-09-05 21:47:34 +00009533
9534WinPathScript="${srcdirfull}/winpath.sh"
9535
9536
9537#
9538# Compiler flags tweaks
9539#
9540if test "${GCC}" != "yes"; then
9541 case "${host}" in
9542 *-*-hpux* )
9543 # aCC: HP ANSI C++ B3910B A.03.34
9544 CFLAGS="${CFLAGS} -Wp,-H30000"
9545 if test -n "${CXXFLAGS}"; then
9546 CXXFLAGS='-AA'
9547 else
9548 CXXFLAGS="${CXXFLAGS} -AA"
9549 fi
9550 ;;
9551 *-dec-osf5.* )
9552 # Compaq alphaev68-dec-osf5.1 compiler
9553 if test -n "${CXXFLAGS}"; then
9554 CXXFLAGS='-std strict_ansi -noimplicit_include'
9555 else
9556 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
9557 fi
9558 esac
9559fi
9560
9561# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00009562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00009563$as_echo_n "checking for linker lazyload option... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009564if ${im_cv_ld_lazyload+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009565 $as_echo_n "(cached) " >&6
9566else
9567
9568im_cv_ld_lazyload='none'
9569case "${host}" in
9570 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
9571 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
9572 im_cv_ld_lazyload='-Wl,-zlazyload'
9573 fi
9574 ;;
9575esac
9576
9577fi
cristy8b350f62009-11-15 23:12:43 +00009578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00009579$as_echo "$im_cv_ld_lazyload" >&6; }
9580if test "${im_cv_ld_lazyload}" != 'none' ; then
9581 if test -z "${LDFLAGS}" ; then
9582 LDFLAGS="${im_cv_ld_lazyload}"
9583 else
9584 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
9585 fi
9586fi
9587
9588case "$host" in
cristyc37574e2013-02-16 01:04:55 +00009589 *darwin* | *-macos10*)
cristyb3b90d32013-02-16 15:44:08 +00009590 CFLAGS="${CFLAGS} -D_FORTIFY_SOURCE=0"
cristyc37574e2013-02-16 01:04:55 +00009591 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00009592if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009593 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
9594else
9595 build_osxuniversal=no
9596fi
9597
9598
cristyc37574e2013-02-16 01:04:55 +00009599 if test "${build_osxuniversal}" != no ; then
9600 if test "$enable_dependency_tracking" != no ; then
9601 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00009602Please re-run configure with these options:
9603 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00009604 " "$LINENO" 5
cristyc37574e2013-02-16 01:04:55 +00009605 fi
9606 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
9607 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
9608 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
cristy3ed852e2009-09-05 21:47:34 +00009609 fi
9610 ;;
9611esac
9612
cristy0151ae12011-10-28 16:32:29 +00009613#
9614# ARCH specific include directory
9615#
9616
cristy670aa3c2011-11-03 00:54:00 +00009617# Check whether --with-includearch-dir was given.
9618if test "${with_includearch_dir+set}" = set; then :
9619 withval=$with_includearch_dir; includearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00009620else
cristy670aa3c2011-11-03 00:54:00 +00009621 includearch_dir=$INCLUDE_DIR
cristy0151ae12011-10-28 16:32:29 +00009622fi
9623
9624
cristyd286fd72013-02-24 19:25:33 +00009625eval "eval INCLUDEARCH_DIR=$includearch_dir"
cristyac9041a2011-10-28 16:52:32 +00009626
cristy0151ae12011-10-28 16:32:29 +00009627
9628#
9629# ARCH specific configuration directory
9630#
9631
cristy670aa3c2011-11-03 00:54:00 +00009632# Check whether --with-sharearch-dir was given.
9633if test "${with_sharearch_dir+set}" = set; then :
9634 withval=$with_sharearch_dir; sharearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00009635else
cristy408ebcd2011-11-14 01:36:57 +00009636 sharearch_dir="${LIB_DIR}"
cristy0151ae12011-10-28 16:32:29 +00009637fi
9638
9639
cristy670aa3c2011-11-03 00:54:00 +00009640eval "eval SHAREARCH_DIR=$sharearch_dir"
cristyac9041a2011-10-28 16:52:32 +00009641
cristy0151ae12011-10-28 16:32:29 +00009642
cristy2ec87cc2013-02-18 17:46:50 +00009643# Path to the pkgconfig folder
9644
9645# Check whether --with-pkgconfigdir was given.
9646if test "${with_pkgconfigdir+set}" = set; then :
9647 withval=$with_pkgconfigdir; pkgconfigdir="$withval"
9648else
9649 pkgconfigdir='${libdir}/pkgconfig'
9650fi
9651
9652
9653
cristy0151ae12011-10-28 16:32:29 +00009654#
cristy3ed852e2009-09-05 21:47:34 +00009655# Enable support for threads
cristy1ae5c992013-07-30 14:55:07 +00009656#
9657# Find Posix threads library
9658#
cristy3ed852e2009-09-05 21:47:34 +00009659
9660# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00009661if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009662 withval=$with_threads; with_threads=$withval
9663else
9664 with_threads='yes'
9665fi
9666
9667
cristy1ae5c992013-07-30 14:55:07 +00009668THREAD_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00009669have_threads=no
9670if test "$with_threads" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +00009671
9672
cristy73bd4a52010-10-05 11:24:23 +00009673ac_ext=c
9674ac_cpp='$CPP $CPPFLAGS'
9675ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9676ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9677ac_compiler_gnu=$ac_cv_c_compiler_gnu
9678
9679ax_pthread_ok=no
9680
9681# We used to check for pthread.h first, but this fails if pthread.h
9682# requires special compiler flags (e.g. on True64 or Sequent).
9683# It gets checked for in the link test anyway.
9684
9685# First of all, check if the user has set any of the PTHREAD_LIBS,
9686# etcetera environment variables, and if threads linking works using
9687# them:
9688if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
9689 save_CFLAGS="$CFLAGS"
9690 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9691 save_LIBS="$LIBS"
9692 LIBS="$PTHREAD_LIBS $LIBS"
9693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
9694$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
9695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9696/* end confdefs.h. */
9697
9698/* Override any GCC internal prototype to avoid an error.
9699 Use char because int might match the return type of a GCC
9700 builtin and then its argument prototype would still apply. */
9701#ifdef __cplusplus
9702extern "C"
9703#endif
9704char pthread_join ();
9705int
9706main ()
9707{
9708return pthread_join ();
9709 ;
9710 return 0;
9711}
9712_ACEOF
9713if ac_fn_c_try_link "$LINENO"; then :
9714 ax_pthread_ok=yes
9715fi
9716rm -f core conftest.err conftest.$ac_objext \
9717 conftest$ac_exeext conftest.$ac_ext
9718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9719$as_echo "$ax_pthread_ok" >&6; }
9720 if test x"$ax_pthread_ok" = xno; then
9721 PTHREAD_LIBS=""
9722 PTHREAD_CFLAGS=""
9723 fi
9724 LIBS="$save_LIBS"
9725 CFLAGS="$save_CFLAGS"
9726fi
9727
9728# We must check for the threads library under a number of different
9729# names; the ordering is very important because some systems
9730# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
9731# libraries is broken (non-POSIX).
9732
9733# Create a list of thread flags to try. Items starting with a "-" are
9734# C compiler flags, and other items are library names, except for "none"
9735# which indicates that we try without any flags at all, and "pthread-config"
9736# which is a program returning the flags for the Pth emulation library.
9737
cristy2ec87cc2013-02-18 17:46:50 +00009738ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
cristy73bd4a52010-10-05 11:24:23 +00009739
9740# The ordering *is* (sometimes) important. Some notes on the
9741# individual items follow:
9742
9743# pthreads: AIX (must check this before -lpthread)
9744# none: in case threads are in libc; should be tried before -Kthread and
9745# other compiler flags to prevent continual compiler warnings
9746# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
9747# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
9748# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
9749# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
9750# -pthreads: Solaris/gcc
9751# -mthreads: Mingw32/gcc, Lynx/gcc
9752# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
9753# doesn't hurt to check since this sometimes defines pthreads too;
9754# also defines -D_REENTRANT)
9755# ... -mt is also the pthreads flag for HP/aCC
9756# pthread: Linux, etcetera
9757# --thread-safe: KAI C++
9758# pthread-config: use pthread-config program (for GNU Pth library)
9759
cristy2ec87cc2013-02-18 17:46:50 +00009760case ${host_os} in
9761 solaris*)
cristy73bd4a52010-10-05 11:24:23 +00009762
9763 # On Solaris (at least, for some versions), libc contains stubbed
9764 # (non-functional) versions of the pthreads routines, so link-based
9765 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
9766 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
9767 # a function called by this macro, so we could check for that, but
9768 # who knows whether they'll stub that too in a future libc.) So,
9769 # we'll just look for -pthreads and -lpthread first:
9770
9771 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
9772 ;;
9773
cristy2ec87cc2013-02-18 17:46:50 +00009774 darwin*)
cristya316db12011-10-24 00:49:45 +00009775 ax_pthread_flags="-pthread $ax_pthread_flags"
9776 ;;
cristy73bd4a52010-10-05 11:24:23 +00009777esac
9778
cristy17491be2014-06-24 01:10:53 +00009779# Clang doesn't consider unrecognized options an error unless we specify
9780# -Werror. We throw in some extra Clang-specific options to ensure that
9781# this doesn't happen for GCC, which also accepts -Werror.
9782
9783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5
9784$as_echo_n "checking if compiler needs -Werror to reject unknown flags... " >&6; }
9785save_CFLAGS="$CFLAGS"
9786ax_pthread_extra_flags="-Werror"
9787CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument"
9788cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9789/* end confdefs.h. */
9790int foo(void);
9791int
9792main ()
9793{
9794foo()
9795 ;
9796 return 0;
9797}
9798_ACEOF
9799if ac_fn_c_try_compile "$LINENO"; then :
9800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9801$as_echo "yes" >&6; }
9802else
9803 ax_pthread_extra_flags=
9804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9805$as_echo "no" >&6; }
9806fi
9807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9808CFLAGS="$save_CFLAGS"
9809
cristy73bd4a52010-10-05 11:24:23 +00009810if test x"$ax_pthread_ok" = xno; then
9811for flag in $ax_pthread_flags; do
9812
9813 case $flag in
9814 none)
9815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9816$as_echo_n "checking whether pthreads work without any flags... " >&6; }
9817 ;;
9818
9819 -*)
9820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
9821$as_echo_n "checking whether pthreads work with $flag... " >&6; }
9822 PTHREAD_CFLAGS="$flag"
9823 ;;
9824
cristya316db12011-10-24 00:49:45 +00009825 pthread-config)
9826 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00009827set dummy pthread-config; ac_word=$2
9828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9829$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009830if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009831 $as_echo_n "(cached) " >&6
9832else
9833 if test -n "$ax_pthread_config"; then
9834 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
9835else
9836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9837for as_dir in $PATH
9838do
9839 IFS=$as_save_IFS
9840 test -z "$as_dir" && as_dir=.
9841 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009842 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009843 ac_cv_prog_ax_pthread_config="yes"
9844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9845 break 2
9846 fi
9847done
9848 done
9849IFS=$as_save_IFS
9850
9851 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9852fi
9853fi
9854ax_pthread_config=$ac_cv_prog_ax_pthread_config
9855if test -n "$ax_pthread_config"; then
9856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9857$as_echo "$ax_pthread_config" >&6; }
9858else
9859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9860$as_echo "no" >&6; }
9861fi
9862
9863
cristya316db12011-10-24 00:49:45 +00009864 if test x"$ax_pthread_config" = xno; then continue; fi
9865 PTHREAD_CFLAGS="`pthread-config --cflags`"
9866 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9867 ;;
cristy73bd4a52010-10-05 11:24:23 +00009868
9869 *)
9870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
9871$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
9872 PTHREAD_LIBS="-l$flag"
9873 ;;
9874 esac
9875
9876 save_LIBS="$LIBS"
9877 save_CFLAGS="$CFLAGS"
9878 LIBS="$PTHREAD_LIBS $LIBS"
cristy17491be2014-06-24 01:10:53 +00009879 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags"
cristy73bd4a52010-10-05 11:24:23 +00009880
9881 # Check for various functions. We must include pthread.h,
9882 # since some functions may be macros. (On the Sequent, we
9883 # need a special flag -Kthread to make this header compile.)
9884 # We check for pthread_join because it is in -lpthread on IRIX
9885 # while pthread_create is in libc. We check for pthread_attr_init
9886 # due to DEC craziness with -lpthreads. We check for
9887 # pthread_cleanup_push because it is one of the few pthread
9888 # functions on Solaris that doesn't have a non-functional libc stub.
9889 # We try pthread_create on general principles.
9890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9891/* end confdefs.h. */
9892#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00009893 static void routine(void *a) { a = 0; }
9894 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00009895int
9896main ()
9897{
9898pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00009899 pthread_create(&th, 0, start_routine, 0);
9900 pthread_join(th, 0);
9901 pthread_attr_init(&attr);
9902 pthread_cleanup_push(routine, 0);
9903 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009904 ;
9905 return 0;
9906}
9907_ACEOF
9908if ac_fn_c_try_link "$LINENO"; then :
9909 ax_pthread_ok=yes
9910fi
9911rm -f core conftest.err conftest.$ac_objext \
9912 conftest$ac_exeext conftest.$ac_ext
9913
9914 LIBS="$save_LIBS"
9915 CFLAGS="$save_CFLAGS"
9916
9917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9918$as_echo "$ax_pthread_ok" >&6; }
9919 if test "x$ax_pthread_ok" = xyes; then
9920 break;
9921 fi
9922
9923 PTHREAD_LIBS=""
9924 PTHREAD_CFLAGS=""
9925done
9926fi
9927
9928# Various other checks:
9929if test "x$ax_pthread_ok" = xyes; then
9930 save_LIBS="$LIBS"
9931 LIBS="$PTHREAD_LIBS $LIBS"
9932 save_CFLAGS="$CFLAGS"
9933 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9934
9935 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00009936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00009937$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00009938 attr_name=unknown
9939 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00009941/* end confdefs.h. */
9942#include <pthread.h>
9943int
9944main ()
9945{
cristya316db12011-10-24 00:49:45 +00009946int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009947 ;
9948 return 0;
9949}
9950_ACEOF
9951if ac_fn_c_try_link "$LINENO"; then :
9952 attr_name=$attr; break
9953fi
9954rm -f core conftest.err conftest.$ac_objext \
9955 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00009956 done
cristy73bd4a52010-10-05 11:24:23 +00009957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
9958$as_echo "$attr_name" >&6; }
9959 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
9960
9961cat >>confdefs.h <<_ACEOF
9962#define PTHREAD_CREATE_JOINABLE $attr_name
9963_ACEOF
9964
9965 fi
9966
9967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
9968$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
9969 flag=no
cristy2ec87cc2013-02-18 17:46:50 +00009970 case ${host_os} in
9971 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
9972 osf* | hpux*) flag="-D_REENTRANT";;
9973 solaris*)
9974 if test "$GCC" = "yes"; then
9975 flag="-D_REENTRANT"
9976 else
cristy17491be2014-06-24 01:10:53 +00009977 # TODO: What about Clang on Solaris?
cristy2ec87cc2013-02-18 17:46:50 +00009978 flag="-mt -D_REENTRANT"
9979 fi
9980 ;;
cristy73bd4a52010-10-05 11:24:23 +00009981 esac
cristy17491be2014-06-24 01:10:53 +00009982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag" >&5
9983$as_echo "$flag" >&6; }
cristy73bd4a52010-10-05 11:24:23 +00009984 if test "x$flag" != xno; then
9985 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
9986 fi
9987
cristya316db12011-10-24 00:49:45 +00009988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9989$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9990if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9991 $as_echo_n "(cached) " >&6
9992else
9993
9994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9995/* end confdefs.h. */
cristy17491be2014-06-24 01:10:53 +00009996#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00009997int
9998main ()
9999{
10000int i = PTHREAD_PRIO_INHERIT;
10001 ;
10002 return 0;
10003}
10004_ACEOF
10005if ac_fn_c_try_link "$LINENO"; then :
10006 ax_cv_PTHREAD_PRIO_INHERIT=yes
10007else
10008 ax_cv_PTHREAD_PRIO_INHERIT=no
10009fi
10010rm -f core conftest.err conftest.$ac_objext \
10011 conftest$ac_exeext conftest.$ac_ext
10012
10013fi
10014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
10015$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
10016 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
10017
10018$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
10019
10020fi
10021
cristy73bd4a52010-10-05 11:24:23 +000010022 LIBS="$save_LIBS"
10023 CFLAGS="$save_CFLAGS"
10024
cristy23493c42013-04-11 16:04:59 +000010025 # More AIX lossage: compile with *_r variant
10026 if test "x$GCC" != xyes; then
10027 case $host_os in
10028 aix*)
10029 case "x/$CC" in #(
10030 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
10031 #handle absolute path differently from PATH based program lookup
10032 case "x$CC" in #(
10033 x/*) :
10034 if as_fn_executable_p ${CC}_r; then :
10035 PTHREAD_CC="${CC}_r"
10036fi ;; #(
10037 *) :
10038 for ac_prog in ${CC}_r
cristy73bd4a52010-10-05 11:24:23 +000010039do
10040 # Extract the first word of "$ac_prog", so it can be a program name with args.
10041set dummy $ac_prog; ac_word=$2
10042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10043$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010044if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010045 $as_echo_n "(cached) " >&6
10046else
10047 if test -n "$PTHREAD_CC"; then
10048 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
10049else
10050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10051for as_dir in $PATH
10052do
10053 IFS=$as_save_IFS
10054 test -z "$as_dir" && as_dir=.
10055 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010056 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010057 ac_cv_prog_PTHREAD_CC="$ac_prog"
10058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10059 break 2
10060 fi
10061done
10062 done
10063IFS=$as_save_IFS
10064
10065fi
10066fi
10067PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
10068if test -n "$PTHREAD_CC"; then
10069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
10070$as_echo "$PTHREAD_CC" >&6; }
10071else
10072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10073$as_echo "no" >&6; }
10074fi
10075
10076
10077 test -n "$PTHREAD_CC" && break
10078done
cristy23493c42013-04-11 16:04:59 +000010079test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
10080 ;;
10081esac ;; #(
10082 *) :
10083 ;;
10084esac
10085 ;;
10086 esac
cristya316db12011-10-24 00:49:45 +000010087 fi
cristy73bd4a52010-10-05 11:24:23 +000010088fi
10089
cristy23493c42013-04-11 16:04:59 +000010090test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
10091
cristy73bd4a52010-10-05 11:24:23 +000010092
10093
10094
10095
10096# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
10097if test x"$ax_pthread_ok" = xyes; then
10098
10099$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
10100
10101 :
10102else
10103 ax_pthread_ok=no
10104
10105fi
10106ac_ext=c
10107ac_cpp='$CPP $CPPFLAGS'
10108ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10109ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10110ac_compiler_gnu=$ac_cv_c_compiler_gnu
10111
10112
cristy7acf8fb2010-09-23 19:58:53 +000010113 if test "$ax_pthread_ok" = yes; then
cristy3ed852e2009-09-05 21:47:34 +000010114 have_threads=yes
10115 DEF_THREAD="$PTHREAD_CFLAGS"
10116 CFLAGS="$CFLAGS $DEF_THREAD"
10117 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
cristy1ae5c992013-07-30 14:55:07 +000010118 THREAD_LIBS="$PTHREAD_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000010119 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +000010120 { $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 +000010121$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
10122 CC="$PTHREAD_CC"
10123 fi
cristy55bf91c2010-09-24 00:29:41 +000010124
10125$as_echo "#define THREAD_SUPPORT 1" >>confdefs.h
10126
cristy3ed852e2009-09-05 21:47:34 +000010127 fi
10128fi
cristy1ae5c992013-07-30 14:55:07 +000010129LIBS="$LIBS $THREAD_LIBS"
10130
cristy3ed852e2009-09-05 21:47:34 +000010131
10132# Enable support for OpenMP
10133if test "$have_threads" != 'yes'; then
10134 ac_cv_prog_c_openmp=unsupported
10135fi
10136
10137 OPENMP_CFLAGS=
10138 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000010139if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010140 enableval=$enable_openmp;
10141fi
10142
10143 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +000010144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +000010145$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010146if ${ac_cv_prog_c_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010147 $as_echo_n "(cached) " >&6
10148else
cristy8b350f62009-11-15 23:12:43 +000010149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10150/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000010151
10152#ifndef _OPENMP
10153 choke me
10154#endif
10155#include <omp.h>
10156int main () { return omp_get_num_threads (); }
10157
10158_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010159if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010160 ac_cv_prog_c_openmp='none needed'
10161else
cristy8b350f62009-11-15 23:12:43 +000010162 ac_cv_prog_c_openmp='unsupported'
cristy14fefe52012-05-21 00:59:18 +000010163 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
10164 -Popenmp --openmp; do
cristy3ed852e2009-09-05 21:47:34 +000010165 ac_save_CFLAGS=$CFLAGS
10166 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000010167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10168/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000010169
10170#ifndef _OPENMP
10171 choke me
10172#endif
10173#include <omp.h>
10174int main () { return omp_get_num_threads (); }
10175
10176_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010177if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010178 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000010179fi
cristy8b350f62009-11-15 23:12:43 +000010180rm -f core conftest.err conftest.$ac_objext \
10181 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010182 CFLAGS=$ac_save_CFLAGS
10183 if test "$ac_cv_prog_c_openmp" != unsupported; then
10184 break
10185 fi
10186 done
10187fi
cristy8b350f62009-11-15 23:12:43 +000010188rm -f core conftest.err conftest.$ac_objext \
10189 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010190fi
cristy8b350f62009-11-15 23:12:43 +000010191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000010192$as_echo "$ac_cv_prog_c_openmp" >&6; }
10193 case $ac_cv_prog_c_openmp in #(
10194 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000010195 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000010196 *)
cristy8b350f62009-11-15 23:12:43 +000010197 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000010198 esac
10199 fi
10200
10201
10202CFLAGS="$OPENMP_CFLAGS $CFLAGS"
10203MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
10204
cristy391f1ce2010-09-09 17:23:28 +000010205if test "$enable_openmp" != no; then
10206 if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
10207 MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
10208 fi
10209fi
cristy3ed852e2009-09-05 21:47:34 +000010210
cristy736173a2009-09-20 21:18:22 +000010211# Enable support for OpenCL
cristy73bd4a52010-10-05 11:24:23 +000010212
10213
cristy73bd4a52010-10-05 11:24:23 +000010214ac_ext=c
10215ac_cpp='$CPP $CPPFLAGS'
10216ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10217ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10218ac_compiler_gnu=$ac_cv_c_compiler_gnu
10219
10220ax_pthread_ok=no
10221
10222# We used to check for pthread.h first, but this fails if pthread.h
10223# requires special compiler flags (e.g. on True64 or Sequent).
10224# It gets checked for in the link test anyway.
10225
10226# First of all, check if the user has set any of the PTHREAD_LIBS,
10227# etcetera environment variables, and if threads linking works using
10228# them:
10229if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
10230 save_CFLAGS="$CFLAGS"
10231 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
10232 save_LIBS="$LIBS"
10233 LIBS="$PTHREAD_LIBS $LIBS"
10234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
10235$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
10236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10237/* end confdefs.h. */
10238
10239/* Override any GCC internal prototype to avoid an error.
10240 Use char because int might match the return type of a GCC
10241 builtin and then its argument prototype would still apply. */
10242#ifdef __cplusplus
10243extern "C"
10244#endif
10245char pthread_join ();
10246int
10247main ()
10248{
10249return pthread_join ();
10250 ;
10251 return 0;
10252}
10253_ACEOF
10254if ac_fn_c_try_link "$LINENO"; then :
10255 ax_pthread_ok=yes
10256fi
10257rm -f core conftest.err conftest.$ac_objext \
10258 conftest$ac_exeext conftest.$ac_ext
10259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
10260$as_echo "$ax_pthread_ok" >&6; }
10261 if test x"$ax_pthread_ok" = xno; then
10262 PTHREAD_LIBS=""
10263 PTHREAD_CFLAGS=""
10264 fi
10265 LIBS="$save_LIBS"
10266 CFLAGS="$save_CFLAGS"
10267fi
10268
10269# We must check for the threads library under a number of different
10270# names; the ordering is very important because some systems
10271# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
10272# libraries is broken (non-POSIX).
10273
10274# Create a list of thread flags to try. Items starting with a "-" are
10275# C compiler flags, and other items are library names, except for "none"
10276# which indicates that we try without any flags at all, and "pthread-config"
10277# which is a program returning the flags for the Pth emulation library.
10278
cristy2ec87cc2013-02-18 17:46:50 +000010279ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
cristy73bd4a52010-10-05 11:24:23 +000010280
10281# The ordering *is* (sometimes) important. Some notes on the
10282# individual items follow:
10283
10284# pthreads: AIX (must check this before -lpthread)
10285# none: in case threads are in libc; should be tried before -Kthread and
10286# other compiler flags to prevent continual compiler warnings
10287# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
10288# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
10289# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
10290# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
10291# -pthreads: Solaris/gcc
10292# -mthreads: Mingw32/gcc, Lynx/gcc
10293# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
10294# doesn't hurt to check since this sometimes defines pthreads too;
10295# also defines -D_REENTRANT)
10296# ... -mt is also the pthreads flag for HP/aCC
10297# pthread: Linux, etcetera
10298# --thread-safe: KAI C++
10299# pthread-config: use pthread-config program (for GNU Pth library)
10300
cristy2ec87cc2013-02-18 17:46:50 +000010301case ${host_os} in
10302 solaris*)
cristy73bd4a52010-10-05 11:24:23 +000010303
10304 # On Solaris (at least, for some versions), libc contains stubbed
10305 # (non-functional) versions of the pthreads routines, so link-based
10306 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
10307 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
10308 # a function called by this macro, so we could check for that, but
10309 # who knows whether they'll stub that too in a future libc.) So,
10310 # we'll just look for -pthreads and -lpthread first:
10311
10312 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
10313 ;;
10314
cristy2ec87cc2013-02-18 17:46:50 +000010315 darwin*)
cristya316db12011-10-24 00:49:45 +000010316 ax_pthread_flags="-pthread $ax_pthread_flags"
10317 ;;
cristy73bd4a52010-10-05 11:24:23 +000010318esac
10319
cristy17491be2014-06-24 01:10:53 +000010320# Clang doesn't consider unrecognized options an error unless we specify
10321# -Werror. We throw in some extra Clang-specific options to ensure that
10322# this doesn't happen for GCC, which also accepts -Werror.
10323
10324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5
10325$as_echo_n "checking if compiler needs -Werror to reject unknown flags... " >&6; }
10326save_CFLAGS="$CFLAGS"
10327ax_pthread_extra_flags="-Werror"
10328CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument"
10329cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10330/* end confdefs.h. */
10331int foo(void);
10332int
10333main ()
10334{
10335foo()
10336 ;
10337 return 0;
10338}
10339_ACEOF
10340if ac_fn_c_try_compile "$LINENO"; then :
10341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10342$as_echo "yes" >&6; }
10343else
10344 ax_pthread_extra_flags=
10345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10346$as_echo "no" >&6; }
10347fi
10348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10349CFLAGS="$save_CFLAGS"
10350
cristy73bd4a52010-10-05 11:24:23 +000010351if test x"$ax_pthread_ok" = xno; then
10352for flag in $ax_pthread_flags; do
10353
10354 case $flag in
10355 none)
10356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
10357$as_echo_n "checking whether pthreads work without any flags... " >&6; }
10358 ;;
10359
10360 -*)
10361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
10362$as_echo_n "checking whether pthreads work with $flag... " >&6; }
10363 PTHREAD_CFLAGS="$flag"
10364 ;;
10365
cristya316db12011-10-24 00:49:45 +000010366 pthread-config)
10367 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +000010368set dummy pthread-config; ac_word=$2
10369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10370$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010371if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010372 $as_echo_n "(cached) " >&6
10373else
10374 if test -n "$ax_pthread_config"; then
10375 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
10376else
10377as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10378for as_dir in $PATH
10379do
10380 IFS=$as_save_IFS
10381 test -z "$as_dir" && as_dir=.
10382 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010383 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010384 ac_cv_prog_ax_pthread_config="yes"
10385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10386 break 2
10387 fi
10388done
10389 done
10390IFS=$as_save_IFS
10391
10392 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
10393fi
10394fi
10395ax_pthread_config=$ac_cv_prog_ax_pthread_config
10396if test -n "$ax_pthread_config"; then
10397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
10398$as_echo "$ax_pthread_config" >&6; }
10399else
10400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10401$as_echo "no" >&6; }
10402fi
10403
10404
cristya316db12011-10-24 00:49:45 +000010405 if test x"$ax_pthread_config" = xno; then continue; fi
10406 PTHREAD_CFLAGS="`pthread-config --cflags`"
10407 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
10408 ;;
cristy73bd4a52010-10-05 11:24:23 +000010409
10410 *)
10411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
10412$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
10413 PTHREAD_LIBS="-l$flag"
10414 ;;
10415 esac
10416
10417 save_LIBS="$LIBS"
10418 save_CFLAGS="$CFLAGS"
10419 LIBS="$PTHREAD_LIBS $LIBS"
cristy17491be2014-06-24 01:10:53 +000010420 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags"
cristy73bd4a52010-10-05 11:24:23 +000010421
10422 # Check for various functions. We must include pthread.h,
10423 # since some functions may be macros. (On the Sequent, we
10424 # need a special flag -Kthread to make this header compile.)
10425 # We check for pthread_join because it is in -lpthread on IRIX
10426 # while pthread_create is in libc. We check for pthread_attr_init
10427 # due to DEC craziness with -lpthreads. We check for
10428 # pthread_cleanup_push because it is one of the few pthread
10429 # functions on Solaris that doesn't have a non-functional libc stub.
10430 # We try pthread_create on general principles.
10431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10432/* end confdefs.h. */
10433#include <pthread.h>
cristya316db12011-10-24 00:49:45 +000010434 static void routine(void *a) { a = 0; }
10435 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +000010436int
10437main ()
10438{
10439pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +000010440 pthread_create(&th, 0, start_routine, 0);
10441 pthread_join(th, 0);
10442 pthread_attr_init(&attr);
10443 pthread_cleanup_push(routine, 0);
10444 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +000010445 ;
10446 return 0;
10447}
10448_ACEOF
10449if ac_fn_c_try_link "$LINENO"; then :
10450 ax_pthread_ok=yes
10451fi
10452rm -f core conftest.err conftest.$ac_objext \
10453 conftest$ac_exeext conftest.$ac_ext
10454
10455 LIBS="$save_LIBS"
10456 CFLAGS="$save_CFLAGS"
10457
10458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
10459$as_echo "$ax_pthread_ok" >&6; }
10460 if test "x$ax_pthread_ok" = xyes; then
10461 break;
10462 fi
10463
10464 PTHREAD_LIBS=""
10465 PTHREAD_CFLAGS=""
10466done
10467fi
10468
10469# Various other checks:
10470if test "x$ax_pthread_ok" = xyes; then
10471 save_LIBS="$LIBS"
10472 LIBS="$PTHREAD_LIBS $LIBS"
10473 save_CFLAGS="$CFLAGS"
10474 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
10475
10476 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +000010477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +000010478$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +000010479 attr_name=unknown
10480 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
10481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000010482/* end confdefs.h. */
10483#include <pthread.h>
10484int
10485main ()
10486{
cristya316db12011-10-24 00:49:45 +000010487int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +000010488 ;
10489 return 0;
10490}
10491_ACEOF
10492if ac_fn_c_try_link "$LINENO"; then :
10493 attr_name=$attr; break
10494fi
10495rm -f core conftest.err conftest.$ac_objext \
10496 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +000010497 done
cristy73bd4a52010-10-05 11:24:23 +000010498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
10499$as_echo "$attr_name" >&6; }
10500 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
10501
10502cat >>confdefs.h <<_ACEOF
10503#define PTHREAD_CREATE_JOINABLE $attr_name
10504_ACEOF
10505
10506 fi
10507
10508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
10509$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
10510 flag=no
cristy2ec87cc2013-02-18 17:46:50 +000010511 case ${host_os} in
10512 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
10513 osf* | hpux*) flag="-D_REENTRANT";;
10514 solaris*)
10515 if test "$GCC" = "yes"; then
10516 flag="-D_REENTRANT"
10517 else
cristy17491be2014-06-24 01:10:53 +000010518 # TODO: What about Clang on Solaris?
cristy2ec87cc2013-02-18 17:46:50 +000010519 flag="-mt -D_REENTRANT"
10520 fi
10521 ;;
cristy73bd4a52010-10-05 11:24:23 +000010522 esac
cristy17491be2014-06-24 01:10:53 +000010523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag" >&5
10524$as_echo "$flag" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000010525 if test "x$flag" != xno; then
10526 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
10527 fi
10528
cristya316db12011-10-24 00:49:45 +000010529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
10530$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
10531if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
10532 $as_echo_n "(cached) " >&6
10533else
10534
10535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10536/* end confdefs.h. */
cristy17491be2014-06-24 01:10:53 +000010537#include <pthread.h>
cristya316db12011-10-24 00:49:45 +000010538int
10539main ()
10540{
10541int i = PTHREAD_PRIO_INHERIT;
10542 ;
10543 return 0;
10544}
10545_ACEOF
10546if ac_fn_c_try_link "$LINENO"; then :
10547 ax_cv_PTHREAD_PRIO_INHERIT=yes
10548else
10549 ax_cv_PTHREAD_PRIO_INHERIT=no
10550fi
10551rm -f core conftest.err conftest.$ac_objext \
10552 conftest$ac_exeext conftest.$ac_ext
10553
10554fi
10555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
10556$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
10557 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
10558
10559$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
10560
10561fi
10562
cristy73bd4a52010-10-05 11:24:23 +000010563 LIBS="$save_LIBS"
10564 CFLAGS="$save_CFLAGS"
10565
cristy23493c42013-04-11 16:04:59 +000010566 # More AIX lossage: compile with *_r variant
10567 if test "x$GCC" != xyes; then
10568 case $host_os in
10569 aix*)
10570 case "x/$CC" in #(
10571 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
10572 #handle absolute path differently from PATH based program lookup
10573 case "x$CC" in #(
10574 x/*) :
10575 if as_fn_executable_p ${CC}_r; then :
10576 PTHREAD_CC="${CC}_r"
10577fi ;; #(
10578 *) :
10579 for ac_prog in ${CC}_r
cristy73bd4a52010-10-05 11:24:23 +000010580do
10581 # Extract the first word of "$ac_prog", so it can be a program name with args.
10582set dummy $ac_prog; ac_word=$2
10583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10584$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010585if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010586 $as_echo_n "(cached) " >&6
10587else
10588 if test -n "$PTHREAD_CC"; then
10589 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
10590else
10591as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10592for as_dir in $PATH
10593do
10594 IFS=$as_save_IFS
10595 test -z "$as_dir" && as_dir=.
10596 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010597 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010598 ac_cv_prog_PTHREAD_CC="$ac_prog"
10599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10600 break 2
10601 fi
10602done
10603 done
10604IFS=$as_save_IFS
10605
10606fi
10607fi
10608PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
10609if test -n "$PTHREAD_CC"; then
10610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
10611$as_echo "$PTHREAD_CC" >&6; }
10612else
10613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10614$as_echo "no" >&6; }
10615fi
10616
10617
10618 test -n "$PTHREAD_CC" && break
10619done
cristy23493c42013-04-11 16:04:59 +000010620test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
10621 ;;
10622esac ;; #(
10623 *) :
10624 ;;
10625esac
10626 ;;
10627 esac
cristya316db12011-10-24 00:49:45 +000010628 fi
cristy73bd4a52010-10-05 11:24:23 +000010629fi
10630
cristy23493c42013-04-11 16:04:59 +000010631test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
10632
cristy73bd4a52010-10-05 11:24:23 +000010633
10634
10635
10636
10637# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
10638if test x"$ax_pthread_ok" = xyes; then
10639
10640$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
10641
10642 :
10643else
10644 ax_pthread_ok=no
10645
10646fi
10647ac_ext=c
10648ac_cpp='$CPP $CPPFLAGS'
10649ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10650ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10651ac_compiler_gnu=$ac_cv_c_compiler_gnu
10652
10653
10654
10655# Check whether --enable-opencl was given.
10656if test "${enable_opencl+set}" = set; then :
cristy48794642012-09-02 15:19:08 +000010657 enableval=$enable_opencl; enable_opencl=$enableval
cristy73bd4a52010-10-05 11:24:23 +000010658else
cristy48794642012-09-02 15:19:08 +000010659 enable_opencl='no'
cristy73bd4a52010-10-05 11:24:23 +000010660fi
10661
10662
cristy48794642012-09-02 15:19:08 +000010663if test "$enable_opencl" = 'yes'; then
cristy73bd4a52010-10-05 11:24:23 +000010664 ac_ext=c
10665ac_cpp='$CPP $CPPFLAGS'
10666ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10667ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10668ac_compiler_gnu=$ac_cv_c_compiler_gnu
10669
cristy75314cc2012-09-15 23:08:29 +000010670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
10671$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
10672if ${ax_cv_c_compiler_ms+:} false; then :
10673 $as_echo_n "(cached) " >&6
10674else
10675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10676/* end confdefs.h. */
10677
10678int
10679main ()
10680{
10681#ifndef _MSC_VER
10682 choke me
10683#endif
10684
10685 ;
10686 return 0;
10687}
10688_ACEOF
10689if ac_fn_c_try_compile "$LINENO"; then :
10690 ax_compiler_ms=yes
10691else
10692 ax_compiler_ms=no
10693fi
10694rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10695ax_cv_c_compiler_ms=$ax_compiler_ms
10696
10697fi
10698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
10699$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000010700 if test X$ax_compiler_ms = Xno; then :
10701 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
10702fi
10703
10704 ax_save_CPPFLAGS=$CPPFLAGS
cristyfdc7d122013-08-17 20:46:45 +000010705 ax_save_CL_CFLAGS=$CL_CFLAGS
10706
10707 found_opencl_header='no'
cristy73bd4a52010-10-05 11:24:23 +000010708 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
10709 for ac_header in CL/cl.h OpenCL/cl.h
10710do :
10711 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10712ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000010713if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000010714 cat >>confdefs.h <<_ACEOF
10715#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10716_ACEOF
cristyfdc7d122013-08-17 20:46:45 +000010717 found_opencl_header='yes'
10718 break;
10719else
10720 found_opencl_header='no'
cristy73bd4a52010-10-05 11:24:23 +000010721fi
10722
10723done
10724
cristyfdc7d122013-08-17 20:46:45 +000010725
10726 if test X$found_opencl_header = Xno; then :
10727 { ac_cv_header_CL_cl_h=; unset ac_cv_header_CL_cl_h;}
10728 { ac_cv_header_OpenCL_cl_h=; unset ac_cv_header_OpenCL_cl_h;}
10729 CL_CFLAGS="-I$AMDAPPSDKROOT/include"
10730 CPPFLAGS="$ax_save_CPPFLAGS $CL_CFLAGS"
10731 for ac_header in CL/cl.h OpenCL/cl.h
10732do :
10733 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10734ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10735if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10736 cat >>confdefs.h <<_ACEOF
10737#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10738_ACEOF
10739 found_opencl_header='yes'
10740 break;
10741else
10742 found_opencl_header='no'
10743fi
10744
10745done
10746
10747
10748fi
10749
10750 CPPFLAGS="$ax_save_CPPFLAGS"
cristy73bd4a52010-10-05 11:24:23 +000010751
10752 for ac_header in windows.h
10753do :
10754 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000010755if test "x$ac_cv_header_windows_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000010756 cat >>confdefs.h <<_ACEOF
10757#define HAVE_WINDOWS_H 1
10758_ACEOF
10759
10760fi
10761
10762done
10763
10764
10765
10766
10767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
10768$as_echo_n "checking for OpenCL library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010769if ${ax_cv_check_cl_libcl+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010770 $as_echo_n "(cached) " >&6
10771else
10772 ax_cv_check_cl_libcl=no
10773 case $host_cpu in
cristyfdc7d122013-08-17 20:46:45 +000010774 x86_64) ax_check_cl_libdir=lib64
10775 ax_check_cl_amd_libdir=x86_64
10776 ;;
10777 *) ax_check_cl_libdir=lib
10778 ax_check_cl_amd_libdir=x86
10779 ;;
cristy73bd4a52010-10-05 11:24:23 +000010780 esac
10781 ax_save_CPPFLAGS=$CPPFLAGS
10782 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
10783 ax_save_LIBS=$LIBS
10784 LIBS=""
10785 ax_check_libs="-lOpenCL -lCL -lclparser"
10786 for ax_lib in $ax_check_libs; do
10787 if test X$ax_compiler_ms = Xyes; then :
10788 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
10789else
10790 ax_try_lib=$ax_lib
10791fi
10792 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
10793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10794/* end confdefs.h. */
10795
10796 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10797 # include <windows.h>
10798 # endif
10799 # ifdef HAVE_CL_CL_H
10800 # include <CL/cl.h>
10801 # elif defined(HAVE_OPENCL_CL_H)
10802 # include <OpenCL/cl.h>
10803 # else
10804 # error no CL.h
10805 # endif
10806int
10807main ()
10808{
10809clCreateContextFromType(0,0,0,0,0)
10810 ;
10811 return 0;
10812}
10813_ACEOF
10814if ac_fn_c_try_link "$LINENO"; then :
10815 ax_cv_check_cl_libcl=$ax_try_lib; break
10816else
10817 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"
10818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10819/* end confdefs.h. */
10820
10821 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10822 # include <windows.h>
10823 # endif
10824 # ifdef HAVE_CL_CL_H
10825 # include <CL/cl.h>
10826 # elif defined(HAVE_OPENCL_CL_H)
10827 # include <OpenCL/cl.h>
10828 # else
10829 # error no CL.h
10830 # endif
10831int
10832main ()
10833{
10834clCreateContextFromType(0,0,0,0,0)
10835 ;
10836 return 0;
10837}
10838_ACEOF
10839if ac_fn_c_try_link "$LINENO"; then :
10840 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
10841else
cristy78c5a0c2010-12-04 20:00:59 +000010842 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 +000010843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10844/* end confdefs.h. */
10845
10846 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10847 # include <windows.h>
10848 # endif
10849 # ifdef HAVE_CL_CL_H
10850 # include <CL/cl.h>
10851 # elif defined(HAVE_OPENCL_CL_H)
10852 # include <OpenCL/cl.h>
10853 # else
10854 # error no CL.h
10855 # endif
10856int
10857main ()
10858{
10859clCreateContextFromType(0,0,0,0,0)
10860 ;
10861 return 0;
10862}
10863_ACEOF
10864if ac_fn_c_try_link "$LINENO"; then :
10865 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
cristyfdc7d122013-08-17 20:46:45 +000010866else
10867 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"
10868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10869/* end confdefs.h. */
10870
10871 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10872 # include <windows.h>
10873 # endif
10874 # ifdef HAVE_CL_CL_H
10875 # include <CL/cl.h>
10876 # elif defined(HAVE_OPENCL_CL_H)
10877 # include <OpenCL/cl.h>
10878 # else
10879 # error no CL.h
10880 # endif
10881int
10882main ()
10883{
10884clCreateContextFromType(0,0,0,0,0)
10885 ;
10886 return 0;
10887}
10888_ACEOF
10889if ac_fn_c_try_link "$LINENO"; then :
10890 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_amd_flags"; break
10891
10892fi
10893rm -f core conftest.err conftest.$ac_objext \
10894 conftest$ac_exeext conftest.$ac_ext
10895
10896
cristy73bd4a52010-10-05 11:24:23 +000010897fi
10898rm -f core conftest.err conftest.$ac_objext \
10899 conftest$ac_exeext conftest.$ac_ext
10900fi
10901rm -f core conftest.err conftest.$ac_objext \
10902 conftest$ac_exeext conftest.$ac_ext
10903fi
10904rm -f core conftest.err conftest.$ac_objext \
10905 conftest$ac_exeext conftest.$ac_ext
10906 done
10907
cristyc3f8b8e2011-12-22 14:55:16 +000010908 if test "X$ax_cv_check_cl_libcl" = Xno; then :
cristy78c5a0c2010-12-04 20:00:59 +000010909 LIBS='-Wl,-framework,OpenCL'
cristy73bd4a52010-10-05 11:24:23 +000010910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10911/* end confdefs.h. */
10912
10913 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10914 # include <windows.h>
10915 # endif
10916 # ifdef HAVE_CL_CL_H
10917 # include <CL/cl.h>
10918 # elif defined(HAVE_OPENCL_CL_H)
10919 # include <OpenCL/cl.h>
10920 # else
10921 # error no CL.h
10922 # endif
10923int
10924main ()
10925{
10926clCreateContextFromType(0,0,0,0,0)
10927 ;
10928 return 0;
10929}
10930_ACEOF
10931if ac_fn_c_try_link "$LINENO"; then :
10932 ax_cv_check_cl_libcl=$LIBS
10933fi
10934rm -f core conftest.err conftest.$ac_objext \
10935 conftest$ac_exeext conftest.$ac_ext
10936fi
10937
10938 LIBS=$ax_save_LIBS
10939 CPPFLAGS=$ax_save_CPPFLAGS
10940fi
10941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
10942$as_echo "$ax_cv_check_cl_libcl" >&6; }
10943
10944 if test "X$ax_cv_check_cl_libcl" = Xno; then :
10945 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
10946else
10947 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
10948$as_echo "#define _OPENCL 1" >>confdefs.h
10949
10950fi
10951 ac_ext=c
10952ac_cpp='$CPP $CPPFLAGS'
10953ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10954ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10955ac_compiler_gnu=$ac_cv_c_compiler_gnu
10956
10957fi
10958
10959
10960
cristy0c832c62014-03-07 22:21:04 +000010961#remove static link on Linux
10962CL_LIBS=`echo $CL_LIBS | $SED -e 's/-lOpenCL //'`
10963
cristy73bd4a52010-10-05 11:24:23 +000010964
cristyc7083c12009-10-14 03:16:55 +000010965CFLAGS="$CL_CFLAGS $CFLAGS"
cristyfdc7d122013-08-17 20:46:45 +000010966CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
cristyc7083c12009-10-14 03:16:55 +000010967LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +000010968
cristy391f1ce2010-09-09 17:23:28 +000010969if test "$enable_opencl" != no; then
cristy6e3607c2011-09-13 13:59:17 +000010970 if test "X$ax_cv_check_cl_libcl" != Xno; then :
cristy391f1ce2010-09-09 17:23:28 +000010971 MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
10972 fi
cristyfd9dcd42010-08-08 18:07:02 +000010973fi
cristy2e8b51d2009-10-17 18:26:15 +000010974
cristy3ed852e2009-09-05 21:47:34 +000010975########
10976#
10977# Check for large file support
10978#
10979########
10980# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +000010981if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010982 enableval=$enable_largefile;
10983fi
10984
10985if test "$enable_largefile" != no; then
10986
cristy8b350f62009-11-15 23:12:43 +000010987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010988$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010989if ${ac_cv_sys_largefile_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010990 $as_echo_n "(cached) " >&6
10991else
10992 ac_cv_sys_largefile_CC=no
10993 if test "$GCC" != yes; then
10994 ac_save_CC=$CC
10995 while :; do
10996 # IRIX 6.2 and later do not support large files by default,
10997 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +000010998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010999/* end confdefs.h. */
11000#include <sys/types.h>
11001 /* Check that off_t can represent 2**63 - 1 correctly.
11002 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11003 since some C++ compilers masquerading as C compilers
11004 incorrectly reject 9223372036854775807. */
11005#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11006 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11007 && LARGE_OFF_T % 2147483647 == 1)
11008 ? 1 : -1];
11009int
11010main ()
11011{
11012
11013 ;
11014 return 0;
11015}
11016_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011017 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011018 break
cristy3ed852e2009-09-05 21:47:34 +000011019fi
cristy3ed852e2009-09-05 21:47:34 +000011020rm -f core conftest.err conftest.$ac_objext
11021 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +000011022 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011023 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +000011024fi
cristy3ed852e2009-09-05 21:47:34 +000011025rm -f core conftest.err conftest.$ac_objext
11026 break
11027 done
11028 CC=$ac_save_CC
11029 rm -f conftest.$ac_ext
11030 fi
11031fi
cristy8b350f62009-11-15 23:12:43 +000011032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +000011033$as_echo "$ac_cv_sys_largefile_CC" >&6; }
11034 if test "$ac_cv_sys_largefile_CC" != no; then
11035 CC=$CC$ac_cv_sys_largefile_CC
11036 fi
11037
cristy8b350f62009-11-15 23:12:43 +000011038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000011039$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011040if ${ac_cv_sys_file_offset_bits+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000011041 $as_echo_n "(cached) " >&6
11042else
11043 while :; do
cristy8b350f62009-11-15 23:12:43 +000011044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011045/* end confdefs.h. */
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_file_offset_bits=no; 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
cristy8b350f62009-11-15 23:12:43 +000011067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011068/* end confdefs.h. */
11069#define _FILE_OFFSET_BITS 64
11070#include <sys/types.h>
11071 /* Check that off_t can represent 2**63 - 1 correctly.
11072 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11073 since some C++ compilers masquerading as C compilers
11074 incorrectly reject 9223372036854775807. */
11075#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11076 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11077 && LARGE_OFF_T % 2147483647 == 1)
11078 ? 1 : -1];
11079int
11080main ()
11081{
11082
11083 ;
11084 return 0;
11085}
11086_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011087if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011088 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +000011089fi
cristy3ed852e2009-09-05 21:47:34 +000011090rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11091 ac_cv_sys_file_offset_bits=unknown
11092 break
11093done
11094fi
cristy8b350f62009-11-15 23:12:43 +000011095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +000011096$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
11097case $ac_cv_sys_file_offset_bits in #(
11098 no | unknown) ;;
11099 *)
11100cat >>confdefs.h <<_ACEOF
11101#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
11102_ACEOF
11103;;
11104esac
11105rm -rf conftest*
11106 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +000011107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000011108$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011109if ${ac_cv_sys_large_files+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000011110 $as_echo_n "(cached) " >&6
11111else
11112 while :; do
cristy8b350f62009-11-15 23:12:43 +000011113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011114/* end confdefs.h. */
11115#include <sys/types.h>
11116 /* Check that off_t can represent 2**63 - 1 correctly.
11117 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11118 since some C++ compilers masquerading as C compilers
11119 incorrectly reject 9223372036854775807. */
11120#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11121 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11122 && LARGE_OFF_T % 2147483647 == 1)
11123 ? 1 : -1];
11124int
11125main ()
11126{
11127
11128 ;
11129 return 0;
11130}
11131_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011132if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011133 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +000011134fi
cristy3ed852e2009-09-05 21:47:34 +000011135rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000011136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011137/* end confdefs.h. */
11138#define _LARGE_FILES 1
11139#include <sys/types.h>
11140 /* Check that off_t can represent 2**63 - 1 correctly.
11141 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11142 since some C++ compilers masquerading as C compilers
11143 incorrectly reject 9223372036854775807. */
11144#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11145 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11146 && LARGE_OFF_T % 2147483647 == 1)
11147 ? 1 : -1];
11148int
11149main ()
11150{
11151
11152 ;
11153 return 0;
11154}
11155_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011156if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011157 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +000011158fi
cristy3ed852e2009-09-05 21:47:34 +000011159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11160 ac_cv_sys_large_files=unknown
11161 break
11162done
11163fi
cristy8b350f62009-11-15 23:12:43 +000011164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +000011165$as_echo "$ac_cv_sys_large_files" >&6; }
11166case $ac_cv_sys_large_files in #(
11167 no | unknown) ;;
11168 *)
11169cat >>confdefs.h <<_ACEOF
11170#define _LARGE_FILES $ac_cv_sys_large_files
11171_ACEOF
11172;;
11173esac
11174rm -rf conftest*
11175 fi
cristy14fefe52012-05-21 00:59:18 +000011176
11177
cristy3ed852e2009-09-05 21:47:34 +000011178fi
11179
cristy8b350f62009-11-15 23:12:43 +000011180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000011181$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011182if ${ac_cv_sys_largefile_source+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000011183 $as_echo_n "(cached) " >&6
11184else
11185 while :; do
cristy8b350f62009-11-15 23:12:43 +000011186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011187/* end confdefs.h. */
11188#include <sys/types.h> /* for off_t */
11189 #include <stdio.h>
11190int
11191main ()
11192{
11193int (*fp) (FILE *, off_t, int) = fseeko;
11194 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
11195 ;
11196 return 0;
11197}
11198_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011199if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011200 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +000011201fi
cristy8b350f62009-11-15 23:12:43 +000011202rm -f core conftest.err conftest.$ac_objext \
11203 conftest$ac_exeext conftest.$ac_ext
11204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011205/* end confdefs.h. */
11206#define _LARGEFILE_SOURCE 1
11207#include <sys/types.h> /* for off_t */
11208 #include <stdio.h>
11209int
11210main ()
11211{
11212int (*fp) (FILE *, off_t, int) = fseeko;
11213 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
11214 ;
11215 return 0;
11216}
11217_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011218if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011219 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +000011220fi
cristy8b350f62009-11-15 23:12:43 +000011221rm -f core conftest.err conftest.$ac_objext \
11222 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011223 ac_cv_sys_largefile_source=unknown
11224 break
11225done
11226fi
cristy8b350f62009-11-15 23:12:43 +000011227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +000011228$as_echo "$ac_cv_sys_largefile_source" >&6; }
11229case $ac_cv_sys_largefile_source in #(
11230 no | unknown) ;;
11231 *)
11232cat >>confdefs.h <<_ACEOF
11233#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
11234_ACEOF
11235;;
11236esac
11237rm -rf conftest*
11238
11239# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
11240# in glibc 2.1.3, but that breaks too many other things.
11241# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
11242if test $ac_cv_sys_largefile_source != unknown; then
11243
cristy8b350f62009-11-15 23:12:43 +000011244$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000011245
11246fi
11247
11248LFS_CPPFLAGS=''
11249if test "$enable_largefile" != no; then
cristyc1e0cc12011-09-21 16:41:16 +000011250 case $ac_cv_sys_file_offset_bits in
11251 no)
11252 # nothing to do here as the host supports LFS fine
11253 ;;
11254 unknown)
cristy8b350f62009-11-15 23:12:43 +000011255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +000011256$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011257 if test "$cross_compiling" = yes; then :
11258 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000011259$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000011260as_fn_error $? "cannot run test program while cross compiling
11261See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000011262else
cristy8b350f62009-11-15 23:12:43 +000011263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11264/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000011265#include <unistd.h>
11266 main () {
11267 exit(!(sizeof(off_t) == 8));
11268 }
cristyda16f162011-02-19 23:52:17 +000011269int
11270main ()
11271{
11272
11273 ;
11274 return 0;
11275}
cristy3ed852e2009-09-05 21:47:34 +000011276_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011277if ac_fn_c_try_run "$LINENO"; then :
11278 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000011279
cristyad38abe2012-12-23 23:03:21 +000011280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11281$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000011282else
cristyad38abe2012-12-23 23:03:21 +000011283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11284$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000011285fi
cristy8b350f62009-11-15 23:12:43 +000011286rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11287 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011288fi
11289
cristyc1e0cc12011-09-21 16:41:16 +000011290 ;;
11291 *)
11292 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
11293 ;;
11294 esac
cristy3ed852e2009-09-05 21:47:34 +000011295 if test "$ac_cv_sys_large_files" != 'no'; then
11296 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
11297 fi
11298 if test "$ac_cv_sys_largefile_source" != 'no'; then
11299 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
11300 fi
11301fi
11302
11303
cristy3ed852e2009-09-05 21:47:34 +000011304# Configure libtool
cristy73bd4a52010-10-05 11:24:23 +000011305enable_dlopen=yes
11306
11307
11308
11309case `pwd` in
11310 *\ * | *\ *)
11311 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11312$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11313esac
11314
11315
11316
cristy99bd5232011-12-07 14:38:20 +000011317macro_version='2.4.2'
11318macro_revision='1.3337'
cristy73bd4a52010-10-05 11:24:23 +000011319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332ltmain="$ac_aux_dir/ltmain.sh"
11333
cristy0c60a692010-11-04 01:09:47 +000011334# Backslashify metacharacters that are still active within
11335# double-quoted strings.
11336sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11337
11338# Same as above, but do not quote variable references.
11339double_quote_subst='s/\(["`\\]\)/\\\1/g'
11340
11341# Sed substitution to delay expansion of an escaped shell variable in a
11342# double_quote_subst'ed string.
11343delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11344
11345# Sed substitution to delay expansion of an escaped single quote.
11346delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11347
11348# Sed substitution to avoid accidental globbing in evaled expressions
11349no_glob_subst='s/\*/\\\*/g'
11350
cristy73bd4a52010-10-05 11:24:23 +000011351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11352$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011353if ${lt_cv_path_NM+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011354 $as_echo_n "(cached) " >&6
11355else
11356 if test -n "$NM"; then
11357 # Let the user override the test.
11358 lt_cv_path_NM="$NM"
11359else
11360 lt_nm_to_check="${ac_tool_prefix}nm"
11361 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11362 lt_nm_to_check="$lt_nm_to_check nm"
11363 fi
11364 for lt_tmp_nm in $lt_nm_to_check; do
11365 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11366 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11367 IFS="$lt_save_ifs"
11368 test -z "$ac_dir" && ac_dir=.
11369 tmp_nm="$ac_dir/$lt_tmp_nm"
11370 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
11371 # Check to see if the nm accepts a BSD-compat flag.
11372 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
11373 # nm: unknown option "B" ignored
11374 # Tru64's nm complains that /dev/null is an invalid object file
11375 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
11376 */dev/null* | *'Invalid file or object type'*)
11377 lt_cv_path_NM="$tmp_nm -B"
11378 break
11379 ;;
11380 *)
11381 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11382 */dev/null*)
11383 lt_cv_path_NM="$tmp_nm -p"
11384 break
11385 ;;
11386 *)
11387 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11388 continue # so that we can try to find one that supports BSD flags
11389 ;;
11390 esac
11391 ;;
11392 esac
11393 fi
11394 done
11395 IFS="$lt_save_ifs"
11396 done
11397 : ${lt_cv_path_NM=no}
11398fi
11399fi
11400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11401$as_echo "$lt_cv_path_NM" >&6; }
11402if test "$lt_cv_path_NM" != "no"; then
11403 NM="$lt_cv_path_NM"
11404else
11405 # Didn't find any BSD compatible name lister, look for dumpbin.
cristy0c60a692010-11-04 01:09:47 +000011406 if test -n "$DUMPBIN"; then :
11407 # Let the user override the test.
11408 else
11409 if test -n "$ac_tool_prefix"; then
11410 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000011411 do
11412 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11413set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11415$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011416if ${ac_cv_prog_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011417 $as_echo_n "(cached) " >&6
11418else
11419 if test -n "$DUMPBIN"; then
11420 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11421else
11422as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11423for as_dir in $PATH
11424do
11425 IFS=$as_save_IFS
11426 test -z "$as_dir" && as_dir=.
11427 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011428 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011429 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11431 break 2
11432 fi
11433done
11434 done
11435IFS=$as_save_IFS
11436
11437fi
11438fi
11439DUMPBIN=$ac_cv_prog_DUMPBIN
11440if test -n "$DUMPBIN"; then
11441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11442$as_echo "$DUMPBIN" >&6; }
11443else
11444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11445$as_echo "no" >&6; }
11446fi
11447
11448
11449 test -n "$DUMPBIN" && break
11450 done
11451fi
11452if test -z "$DUMPBIN"; then
11453 ac_ct_DUMPBIN=$DUMPBIN
cristy0c60a692010-11-04 01:09:47 +000011454 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000011455do
11456 # Extract the first word of "$ac_prog", so it can be a program name with args.
11457set dummy $ac_prog; ac_word=$2
11458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11459$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011460if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011461 $as_echo_n "(cached) " >&6
11462else
11463 if test -n "$ac_ct_DUMPBIN"; then
11464 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11465else
11466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11467for as_dir in $PATH
11468do
11469 IFS=$as_save_IFS
11470 test -z "$as_dir" && as_dir=.
11471 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011472 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011473 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11475 break 2
11476 fi
11477done
11478 done
11479IFS=$as_save_IFS
11480
11481fi
11482fi
11483ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11484if test -n "$ac_ct_DUMPBIN"; then
11485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11486$as_echo "$ac_ct_DUMPBIN" >&6; }
11487else
11488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11489$as_echo "no" >&6; }
11490fi
11491
11492
11493 test -n "$ac_ct_DUMPBIN" && break
11494done
11495
11496 if test "x$ac_ct_DUMPBIN" = x; then
11497 DUMPBIN=":"
11498 else
11499 case $cross_compiling:$ac_tool_warned in
11500yes:)
11501{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11502$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11503ac_tool_warned=yes ;;
11504esac
11505 DUMPBIN=$ac_ct_DUMPBIN
11506 fi
11507fi
11508
cristy0c60a692010-11-04 01:09:47 +000011509 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
11510 *COFF*)
11511 DUMPBIN="$DUMPBIN -symbols"
11512 ;;
11513 *)
11514 DUMPBIN=:
11515 ;;
11516 esac
11517 fi
cristy73bd4a52010-10-05 11:24:23 +000011518
11519 if test "$DUMPBIN" != ":"; then
11520 NM="$DUMPBIN"
11521 fi
11522fi
11523test -z "$NM" && NM=nm
11524
11525
11526
11527
11528
11529
11530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11531$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011532if ${lt_cv_nm_interface+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011533 $as_echo_n "(cached) " >&6
11534else
11535 lt_cv_nm_interface="BSD nm"
11536 echo "int some_variable = 0;" > conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000011537 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000011538 (eval "$ac_compile" 2>conftest.err)
11539 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000011540 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000011541 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11542 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000011543 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000011544 cat conftest.out >&5
11545 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11546 lt_cv_nm_interface="MS dumpbin"
11547 fi
11548 rm -f conftest*
11549fi
11550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11551$as_echo "$lt_cv_nm_interface" >&6; }
11552
11553# find the maximum length of command line arguments
11554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11555$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011556if ${lt_cv_sys_max_cmd_len+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011557 $as_echo_n "(cached) " >&6
11558else
11559 i=0
11560 teststring="ABCD"
11561
11562 case $build_os in
11563 msdosdjgpp*)
11564 # On DJGPP, this test can blow up pretty badly due to problems in libc
11565 # (any single argument exceeding 2000 bytes causes a buffer overrun
11566 # during glob expansion). Even if it were fixed, the result of this
11567 # check would be larger than it should be.
11568 lt_cv_sys_max_cmd_len=12288; # 12K is about right
11569 ;;
11570
11571 gnu*)
11572 # Under GNU Hurd, this test is not required because there is
11573 # no limit to the length of command line arguments.
11574 # Libtool will interpret -1 as no limit whatsoever
11575 lt_cv_sys_max_cmd_len=-1;
11576 ;;
11577
11578 cygwin* | mingw* | cegcc*)
11579 # On Win9x/ME, this test blows up -- it succeeds, but takes
11580 # about 5 minutes as the teststring grows exponentially.
11581 # Worse, since 9x/ME are not pre-emptively multitasking,
11582 # you end up with a "frozen" computer, even though with patience
11583 # the test eventually succeeds (with a max line length of 256k).
11584 # Instead, let's just punt: use the minimum linelength reported by
11585 # all of the supported platforms: 8192 (on NT/2K/XP).
11586 lt_cv_sys_max_cmd_len=8192;
11587 ;;
11588
cristy0c60a692010-11-04 01:09:47 +000011589 mint*)
11590 # On MiNT this can take a long time and run out of memory.
11591 lt_cv_sys_max_cmd_len=8192;
11592 ;;
11593
cristy73bd4a52010-10-05 11:24:23 +000011594 amigaos*)
11595 # On AmigaOS with pdksh, this test takes hours, literally.
11596 # So we just punt and use a minimum line length of 8192.
11597 lt_cv_sys_max_cmd_len=8192;
11598 ;;
11599
11600 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
11601 # This has been around since 386BSD, at least. Likely further.
11602 if test -x /sbin/sysctl; then
11603 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11604 elif test -x /usr/sbin/sysctl; then
11605 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11606 else
11607 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
11608 fi
11609 # And add a safety zone
11610 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11611 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11612 ;;
11613
11614 interix*)
11615 # We know the value 262144 and hardcode it with a safety zone (like BSD)
11616 lt_cv_sys_max_cmd_len=196608
11617 ;;
11618
cristy99bd5232011-12-07 14:38:20 +000011619 os2*)
11620 # The test takes a long time on OS/2.
11621 lt_cv_sys_max_cmd_len=8192
11622 ;;
11623
cristy73bd4a52010-10-05 11:24:23 +000011624 osf*)
11625 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11626 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11627 # nice to cause kernel panics so lets avoid the loop below.
11628 # First set a reasonable default.
11629 lt_cv_sys_max_cmd_len=16384
11630 #
11631 if test -x /sbin/sysconfig; then
11632 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11633 *1*) lt_cv_sys_max_cmd_len=-1 ;;
11634 esac
11635 fi
11636 ;;
11637 sco3.2v5*)
11638 lt_cv_sys_max_cmd_len=102400
11639 ;;
11640 sysv5* | sco5v6* | sysv4.2uw2*)
11641 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11642 if test -n "$kargmax"; then
11643 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
11644 else
11645 lt_cv_sys_max_cmd_len=32768
11646 fi
11647 ;;
11648 *)
11649 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11650 if test -n "$lt_cv_sys_max_cmd_len"; then
11651 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11652 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11653 else
11654 # Make teststring a little bigger before we do anything with it.
11655 # a 1K string should be a reasonable start.
11656 for i in 1 2 3 4 5 6 7 8 ; do
11657 teststring=$teststring$teststring
11658 done
11659 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11660 # If test is not a shell built-in, we'll probably end up computing a
11661 # maximum length that is only half of the actual maximum length, but
11662 # we can't tell.
cristy99bd5232011-12-07 14:38:20 +000011663 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
cristy0c60a692010-11-04 01:09:47 +000011664 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
cristy73bd4a52010-10-05 11:24:23 +000011665 test $i != 17 # 1/2 MB should be enough
11666 do
11667 i=`expr $i + 1`
11668 teststring=$teststring$teststring
11669 done
11670 # Only check the string length outside the loop.
11671 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11672 teststring=
11673 # Add a significant safety factor because C++ compilers can tack on
11674 # massive amounts of additional arguments before passing them to the
11675 # linker. It appears as though 1/2 is a usable value.
11676 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11677 fi
11678 ;;
11679 esac
11680
11681fi
11682
11683if test -n $lt_cv_sys_max_cmd_len ; then
11684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11685$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11686else
11687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11688$as_echo "none" >&6; }
11689fi
11690max_cmd_len=$lt_cv_sys_max_cmd_len
11691
11692
11693
11694
11695
11696
11697: ${CP="cp -f"}
11698: ${MV="mv -f"}
11699: ${RM="rm -f"}
11700
11701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
11702$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
11703# Try some XSI features
11704xsi_shell=no
11705( _lt_dummy="a/b/c"
cristyda16f162011-02-19 23:52:17 +000011706 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
11707 = c,a/b,b/c, \
cristy73bd4a52010-10-05 11:24:23 +000011708 && eval 'test $(( 1 + 1 )) -eq 2 \
11709 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
11710 && xsi_shell=yes
11711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
11712$as_echo "$xsi_shell" >&6; }
11713
11714
11715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
11716$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
11717lt_shell_append=no
11718( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
11719 >/dev/null 2>&1 \
11720 && lt_shell_append=yes
11721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
11722$as_echo "$lt_shell_append" >&6; }
11723
11724
11725if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11726 lt_unset=unset
11727else
11728 lt_unset=false
11729fi
11730
11731
11732
11733
11734
11735# test EBCDIC or ASCII
11736case `echo X|tr X '\101'` in
11737 A) # ASCII based system
11738 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11739 lt_SP2NL='tr \040 \012'
11740 lt_NL2SP='tr \015\012 \040\040'
11741 ;;
11742 *) # EBCDIC based system
11743 lt_SP2NL='tr \100 \n'
11744 lt_NL2SP='tr \r\n \100\100'
11745 ;;
11746esac
11747
11748
11749
11750
11751
11752
11753
11754
11755
cristyda16f162011-02-19 23:52:17 +000011756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
11757$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
11758if ${lt_cv_to_host_file_cmd+:} false; then :
11759 $as_echo_n "(cached) " >&6
11760else
11761 case $host in
11762 *-*-mingw* )
11763 case $build in
11764 *-*-mingw* ) # actually msys
11765 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
11766 ;;
11767 *-*-cygwin* )
11768 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
11769 ;;
11770 * ) # otherwise, assume *nix
11771 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
11772 ;;
11773 esac
11774 ;;
11775 *-*-cygwin* )
11776 case $build in
11777 *-*-mingw* ) # actually msys
11778 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
11779 ;;
11780 *-*-cygwin* )
11781 lt_cv_to_host_file_cmd=func_convert_file_noop
11782 ;;
11783 * ) # otherwise, assume *nix
11784 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
11785 ;;
11786 esac
11787 ;;
11788 * ) # unhandled hosts (and "normal" native builds)
11789 lt_cv_to_host_file_cmd=func_convert_file_noop
11790 ;;
11791esac
11792
11793fi
11794
11795to_host_file_cmd=$lt_cv_to_host_file_cmd
11796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
11797$as_echo "$lt_cv_to_host_file_cmd" >&6; }
11798
11799
11800
11801
11802
11803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
11804$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
11805if ${lt_cv_to_tool_file_cmd+:} false; then :
11806 $as_echo_n "(cached) " >&6
11807else
11808 #assume ordinary cross tools, or native build.
11809lt_cv_to_tool_file_cmd=func_convert_file_noop
11810case $host in
11811 *-*-mingw* )
11812 case $build in
11813 *-*-mingw* ) # actually msys
11814 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
11815 ;;
11816 esac
11817 ;;
11818esac
11819
11820fi
11821
11822to_tool_file_cmd=$lt_cv_to_tool_file_cmd
11823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
11824$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
11825
11826
11827
11828
11829
cristy73bd4a52010-10-05 11:24:23 +000011830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11831$as_echo_n "checking for $LD option to reload object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011832if ${lt_cv_ld_reload_flag+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011833 $as_echo_n "(cached) " >&6
11834else
11835 lt_cv_ld_reload_flag='-r'
11836fi
11837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11838$as_echo "$lt_cv_ld_reload_flag" >&6; }
11839reload_flag=$lt_cv_ld_reload_flag
11840case $reload_flag in
11841"" | " "*) ;;
11842*) reload_flag=" $reload_flag" ;;
11843esac
11844reload_cmds='$LD$reload_flag -o $output$reload_objs'
11845case $host_os in
cristyda16f162011-02-19 23:52:17 +000011846 cygwin* | mingw* | pw32* | cegcc*)
11847 if test "$GCC" != yes; then
11848 reload_cmds=false
11849 fi
11850 ;;
cristy73bd4a52010-10-05 11:24:23 +000011851 darwin*)
11852 if test "$GCC" = yes; then
11853 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
11854 else
11855 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11856 fi
11857 ;;
11858esac
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868if test -n "$ac_tool_prefix"; then
11869 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11870set dummy ${ac_tool_prefix}objdump; ac_word=$2
11871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11872$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011873if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011874 $as_echo_n "(cached) " >&6
11875else
11876 if test -n "$OBJDUMP"; then
11877 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11878else
11879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11880for as_dir in $PATH
11881do
11882 IFS=$as_save_IFS
11883 test -z "$as_dir" && as_dir=.
11884 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011885 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011886 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11888 break 2
11889 fi
11890done
11891 done
11892IFS=$as_save_IFS
11893
11894fi
11895fi
11896OBJDUMP=$ac_cv_prog_OBJDUMP
11897if test -n "$OBJDUMP"; then
11898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11899$as_echo "$OBJDUMP" >&6; }
11900else
11901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11902$as_echo "no" >&6; }
11903fi
11904
11905
11906fi
11907if test -z "$ac_cv_prog_OBJDUMP"; then
11908 ac_ct_OBJDUMP=$OBJDUMP
11909 # Extract the first word of "objdump", so it can be a program name with args.
11910set dummy objdump; ac_word=$2
11911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11912$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011913if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011914 $as_echo_n "(cached) " >&6
11915else
11916 if test -n "$ac_ct_OBJDUMP"; then
11917 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11918else
11919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11920for as_dir in $PATH
11921do
11922 IFS=$as_save_IFS
11923 test -z "$as_dir" && as_dir=.
11924 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011926 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11928 break 2
11929 fi
11930done
11931 done
11932IFS=$as_save_IFS
11933
11934fi
11935fi
11936ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11937if test -n "$ac_ct_OBJDUMP"; then
11938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11939$as_echo "$ac_ct_OBJDUMP" >&6; }
11940else
11941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11942$as_echo "no" >&6; }
11943fi
11944
11945 if test "x$ac_ct_OBJDUMP" = x; then
11946 OBJDUMP="false"
11947 else
11948 case $cross_compiling:$ac_tool_warned in
11949yes:)
11950{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11951$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11952ac_tool_warned=yes ;;
11953esac
11954 OBJDUMP=$ac_ct_OBJDUMP
11955 fi
11956else
11957 OBJDUMP="$ac_cv_prog_OBJDUMP"
11958fi
11959
11960test -z "$OBJDUMP" && OBJDUMP=objdump
11961
11962
11963
11964
11965
11966
11967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11968$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011969if ${lt_cv_deplibs_check_method+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011970 $as_echo_n "(cached) " >&6
11971else
11972 lt_cv_file_magic_cmd='$MAGIC_CMD'
11973lt_cv_file_magic_test_file=
11974lt_cv_deplibs_check_method='unknown'
11975# Need to set the preceding variable on all platforms that support
11976# interlibrary dependencies.
11977# 'none' -- dependencies not supported.
11978# `unknown' -- same as none, but documents that we really don't know.
11979# 'pass_all' -- all dependencies passed with no checks.
11980# 'test_compile' -- check by making test program.
11981# 'file_magic [[regex]]' -- check by looking for files in library path
11982# which responds to the $file_magic_cmd with a given extended regex.
11983# If you have `file' or equivalent on your system and you're not sure
11984# whether `pass_all' will *always* work, you probably want this one.
11985
11986case $host_os in
11987aix[4-9]*)
11988 lt_cv_deplibs_check_method=pass_all
11989 ;;
11990
11991beos*)
11992 lt_cv_deplibs_check_method=pass_all
11993 ;;
11994
11995bsdi[45]*)
11996 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11997 lt_cv_file_magic_cmd='/usr/bin/file -L'
11998 lt_cv_file_magic_test_file=/shlib/libc.so
11999 ;;
12000
12001cygwin*)
12002 # func_win32_libid is a shell function defined in ltmain.sh
12003 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12004 lt_cv_file_magic_cmd='func_win32_libid'
12005 ;;
12006
12007mingw* | pw32*)
12008 # Base MSYS/MinGW do not provide the 'file' command needed by
12009 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12010 # unless we find 'file', for example because we are cross-compiling.
cristy0c60a692010-11-04 01:09:47 +000012011 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12012 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
cristy73bd4a52010-10-05 11:24:23 +000012013 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12014 lt_cv_file_magic_cmd='func_win32_libid'
12015 else
cristy0c60a692010-11-04 01:09:47 +000012016 # Keep this pattern in sync with the one in func_win32_libid.
12017 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 +000012018 lt_cv_file_magic_cmd='$OBJDUMP -f'
12019 fi
12020 ;;
12021
cristy0c60a692010-11-04 01:09:47 +000012022cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000012023 # use the weaker test based on 'objdump'. See mingw*.
12024 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12025 lt_cv_file_magic_cmd='$OBJDUMP -f'
12026 ;;
12027
12028darwin* | rhapsody*)
12029 lt_cv_deplibs_check_method=pass_all
12030 ;;
12031
12032freebsd* | dragonfly*)
12033 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12034 case $host_cpu in
12035 i*86 )
12036 # Not sure whether the presence of OpenBSD here was a mistake.
12037 # Let's accept both of them until this is cleared up.
12038 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12039 lt_cv_file_magic_cmd=/usr/bin/file
12040 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12041 ;;
12042 esac
12043 else
12044 lt_cv_deplibs_check_method=pass_all
12045 fi
12046 ;;
12047
12048gnu*)
12049 lt_cv_deplibs_check_method=pass_all
12050 ;;
12051
cristy0c60a692010-11-04 01:09:47 +000012052haiku*)
12053 lt_cv_deplibs_check_method=pass_all
12054 ;;
12055
cristy73bd4a52010-10-05 11:24:23 +000012056hpux10.20* | hpux11*)
12057 lt_cv_file_magic_cmd=/usr/bin/file
12058 case $host_cpu in
12059 ia64*)
12060 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12061 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12062 ;;
12063 hppa*64*)
cristy0c60a692010-11-04 01:09:47 +000012064 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 +000012065 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12066 ;;
12067 *)
cristy0c60a692010-11-04 01:09:47 +000012068 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 +000012069 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12070 ;;
12071 esac
12072 ;;
12073
12074interix[3-9]*)
12075 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12076 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12077 ;;
12078
12079irix5* | irix6* | nonstopux*)
12080 case $LD in
12081 *-32|*"-32 ") libmagic=32-bit;;
12082 *-n32|*"-n32 ") libmagic=N32;;
12083 *-64|*"-64 ") libmagic=64-bit;;
12084 *) libmagic=never-match;;
12085 esac
12086 lt_cv_deplibs_check_method=pass_all
12087 ;;
12088
cristy99bd5232011-12-07 14:38:20 +000012089# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000012090linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000012091 lt_cv_deplibs_check_method=pass_all
12092 ;;
12093
12094netbsd*)
12095 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12096 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12097 else
12098 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12099 fi
12100 ;;
12101
12102newos6*)
12103 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12104 lt_cv_file_magic_cmd=/usr/bin/file
12105 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12106 ;;
12107
12108*nto* | *qnx*)
12109 lt_cv_deplibs_check_method=pass_all
12110 ;;
12111
12112openbsd*)
12113 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12114 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12115 else
12116 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12117 fi
12118 ;;
12119
12120osf3* | osf4* | osf5*)
12121 lt_cv_deplibs_check_method=pass_all
12122 ;;
12123
12124rdos*)
12125 lt_cv_deplibs_check_method=pass_all
12126 ;;
12127
12128solaris*)
12129 lt_cv_deplibs_check_method=pass_all
12130 ;;
12131
12132sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12133 lt_cv_deplibs_check_method=pass_all
12134 ;;
12135
12136sysv4 | sysv4.3*)
12137 case $host_vendor in
12138 motorola)
12139 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]'
12140 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12141 ;;
12142 ncr)
12143 lt_cv_deplibs_check_method=pass_all
12144 ;;
12145 sequent)
12146 lt_cv_file_magic_cmd='/bin/file'
12147 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12148 ;;
12149 sni)
12150 lt_cv_file_magic_cmd='/bin/file'
12151 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12152 lt_cv_file_magic_test_file=/lib/libc.so
12153 ;;
12154 siemens)
12155 lt_cv_deplibs_check_method=pass_all
12156 ;;
12157 pc)
12158 lt_cv_deplibs_check_method=pass_all
12159 ;;
12160 esac
12161 ;;
12162
12163tpf*)
12164 lt_cv_deplibs_check_method=pass_all
12165 ;;
12166esac
12167
12168fi
12169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12170$as_echo "$lt_cv_deplibs_check_method" >&6; }
cristyda16f162011-02-19 23:52:17 +000012171
12172file_magic_glob=
12173want_nocaseglob=no
12174if test "$build" = "$host"; then
12175 case $host_os in
12176 mingw* | pw32*)
12177 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
12178 want_nocaseglob=yes
12179 else
12180 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
12181 fi
12182 ;;
12183 esac
12184fi
12185
cristy73bd4a52010-10-05 11:24:23 +000012186file_magic_cmd=$lt_cv_file_magic_cmd
12187deplibs_check_method=$lt_cv_deplibs_check_method
12188test -z "$deplibs_check_method" && deplibs_check_method=unknown
12189
12190
12191
12192
12193
12194
12195
12196
12197
12198
12199
12200
cristyda16f162011-02-19 23:52:17 +000012201
12202
12203
12204
12205
12206
12207
12208
12209
12210
cristy73bd4a52010-10-05 11:24:23 +000012211if test -n "$ac_tool_prefix"; then
cristyda16f162011-02-19 23:52:17 +000012212 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12213set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000012214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12215$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012216if ${ac_cv_prog_DLLTOOL+:} false; then :
12217 $as_echo_n "(cached) " >&6
12218else
12219 if test -n "$DLLTOOL"; then
12220 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12221else
12222as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12223for as_dir in $PATH
12224do
12225 IFS=$as_save_IFS
12226 test -z "$as_dir" && as_dir=.
12227 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012228 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012229 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12231 break 2
12232 fi
12233done
12234 done
12235IFS=$as_save_IFS
12236
12237fi
12238fi
12239DLLTOOL=$ac_cv_prog_DLLTOOL
12240if test -n "$DLLTOOL"; then
12241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12242$as_echo "$DLLTOOL" >&6; }
12243else
12244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12245$as_echo "no" >&6; }
12246fi
12247
12248
12249fi
12250if test -z "$ac_cv_prog_DLLTOOL"; then
12251 ac_ct_DLLTOOL=$DLLTOOL
12252 # Extract the first word of "dlltool", so it can be a program name with args.
12253set dummy dlltool; ac_word=$2
12254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12255$as_echo_n "checking for $ac_word... " >&6; }
12256if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
12257 $as_echo_n "(cached) " >&6
12258else
12259 if test -n "$ac_ct_DLLTOOL"; then
12260 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12261else
12262as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12263for as_dir in $PATH
12264do
12265 IFS=$as_save_IFS
12266 test -z "$as_dir" && as_dir=.
12267 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012268 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012269 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12271 break 2
12272 fi
12273done
12274 done
12275IFS=$as_save_IFS
12276
12277fi
12278fi
12279ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12280if test -n "$ac_ct_DLLTOOL"; then
12281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12282$as_echo "$ac_ct_DLLTOOL" >&6; }
12283else
12284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12285$as_echo "no" >&6; }
12286fi
12287
12288 if test "x$ac_ct_DLLTOOL" = x; then
12289 DLLTOOL="false"
12290 else
12291 case $cross_compiling:$ac_tool_warned in
12292yes:)
12293{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12294$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12295ac_tool_warned=yes ;;
12296esac
12297 DLLTOOL=$ac_ct_DLLTOOL
12298 fi
12299else
12300 DLLTOOL="$ac_cv_prog_DLLTOOL"
12301fi
12302
12303test -z "$DLLTOOL" && DLLTOOL=dlltool
12304
12305
12306
12307
12308
12309
12310
12311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
12312$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
12313if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
12314 $as_echo_n "(cached) " >&6
12315else
12316 lt_cv_sharedlib_from_linklib_cmd='unknown'
12317
12318case $host_os in
12319cygwin* | mingw* | pw32* | cegcc*)
12320 # two different shell functions defined in ltmain.sh
12321 # decide which to use based on capabilities of $DLLTOOL
12322 case `$DLLTOOL --help 2>&1` in
12323 *--identify-strict*)
12324 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
12325 ;;
12326 *)
12327 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
12328 ;;
12329 esac
12330 ;;
12331*)
12332 # fallback: assume linklib IS sharedlib
12333 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
12334 ;;
12335esac
12336
12337fi
12338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
12339$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
12340sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
12341test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
12342
12343
12344
12345
12346
12347
12348
12349if test -n "$ac_tool_prefix"; then
12350 for ac_prog in ar
12351 do
12352 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12353set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12355$as_echo_n "checking for $ac_word... " >&6; }
12356if ${ac_cv_prog_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012357 $as_echo_n "(cached) " >&6
12358else
12359 if test -n "$AR"; then
12360 ac_cv_prog_AR="$AR" # Let the user override the test.
12361else
12362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12363for as_dir in $PATH
12364do
12365 IFS=$as_save_IFS
12366 test -z "$as_dir" && as_dir=.
12367 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012368 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012369 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000012370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12371 break 2
12372 fi
12373done
12374 done
12375IFS=$as_save_IFS
12376
12377fi
12378fi
12379AR=$ac_cv_prog_AR
12380if test -n "$AR"; then
12381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12382$as_echo "$AR" >&6; }
12383else
12384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12385$as_echo "no" >&6; }
12386fi
12387
12388
cristyda16f162011-02-19 23:52:17 +000012389 test -n "$AR" && break
12390 done
cristy73bd4a52010-10-05 11:24:23 +000012391fi
cristyda16f162011-02-19 23:52:17 +000012392if test -z "$AR"; then
cristy73bd4a52010-10-05 11:24:23 +000012393 ac_ct_AR=$AR
cristyda16f162011-02-19 23:52:17 +000012394 for ac_prog in ar
12395do
12396 # Extract the first word of "$ac_prog", so it can be a program name with args.
12397set dummy $ac_prog; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000012398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12399$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012400if ${ac_cv_prog_ac_ct_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012401 $as_echo_n "(cached) " >&6
12402else
12403 if test -n "$ac_ct_AR"; then
12404 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12405else
12406as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12407for as_dir in $PATH
12408do
12409 IFS=$as_save_IFS
12410 test -z "$as_dir" && as_dir=.
12411 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012412 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012413 ac_cv_prog_ac_ct_AR="$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000012414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12415 break 2
12416 fi
12417done
12418 done
12419IFS=$as_save_IFS
12420
12421fi
12422fi
12423ac_ct_AR=$ac_cv_prog_ac_ct_AR
12424if test -n "$ac_ct_AR"; then
12425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12426$as_echo "$ac_ct_AR" >&6; }
12427else
12428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12429$as_echo "no" >&6; }
12430fi
12431
cristyda16f162011-02-19 23:52:17 +000012432
12433 test -n "$ac_ct_AR" && break
12434done
12435
cristy73bd4a52010-10-05 11:24:23 +000012436 if test "x$ac_ct_AR" = x; then
12437 AR="false"
12438 else
12439 case $cross_compiling:$ac_tool_warned in
12440yes:)
12441{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12442$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12443ac_tool_warned=yes ;;
12444esac
12445 AR=$ac_ct_AR
12446 fi
cristy73bd4a52010-10-05 11:24:23 +000012447fi
12448
cristyda16f162011-02-19 23:52:17 +000012449: ${AR=ar}
12450: ${AR_FLAGS=cru}
cristy73bd4a52010-10-05 11:24:23 +000012451
12452
12453
12454
12455
12456
12457
12458
12459
12460
12461
cristyda16f162011-02-19 23:52:17 +000012462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
12463$as_echo_n "checking for archiver @FILE support... " >&6; }
12464if ${lt_cv_ar_at_file+:} false; then :
12465 $as_echo_n "(cached) " >&6
12466else
12467 lt_cv_ar_at_file=no
12468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12469/* end confdefs.h. */
12470
12471int
12472main ()
12473{
12474
12475 ;
12476 return 0;
12477}
12478_ACEOF
12479if ac_fn_c_try_compile "$LINENO"; then :
12480 echo conftest.$ac_objext > conftest.lst
12481 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
12482 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12483 (eval $lt_ar_try) 2>&5
12484 ac_status=$?
12485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12486 test $ac_status = 0; }
12487 if test "$ac_status" -eq 0; then
12488 # Ensure the archiver fails upon bogus file names.
12489 rm -f conftest.$ac_objext libconftest.a
12490 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12491 (eval $lt_ar_try) 2>&5
12492 ac_status=$?
12493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12494 test $ac_status = 0; }
12495 if test "$ac_status" -ne 0; then
12496 lt_cv_ar_at_file=@
12497 fi
12498 fi
12499 rm -f conftest.* libconftest.a
12500
12501fi
12502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12503
12504fi
12505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
12506$as_echo "$lt_cv_ar_at_file" >&6; }
12507
12508if test "x$lt_cv_ar_at_file" = xno; then
12509 archiver_list_spec=
12510else
12511 archiver_list_spec=$lt_cv_ar_at_file
12512fi
12513
12514
12515
12516
12517
12518
12519
cristy73bd4a52010-10-05 11:24:23 +000012520if test -n "$ac_tool_prefix"; then
12521 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12522set dummy ${ac_tool_prefix}strip; ac_word=$2
12523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12524$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012525if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012526 $as_echo_n "(cached) " >&6
12527else
12528 if test -n "$STRIP"; then
12529 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12530else
12531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12532for as_dir in $PATH
12533do
12534 IFS=$as_save_IFS
12535 test -z "$as_dir" && as_dir=.
12536 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012537 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012538 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12540 break 2
12541 fi
12542done
12543 done
12544IFS=$as_save_IFS
12545
12546fi
12547fi
12548STRIP=$ac_cv_prog_STRIP
12549if test -n "$STRIP"; then
12550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12551$as_echo "$STRIP" >&6; }
12552else
12553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12554$as_echo "no" >&6; }
12555fi
12556
12557
12558fi
12559if test -z "$ac_cv_prog_STRIP"; then
12560 ac_ct_STRIP=$STRIP
12561 # Extract the first word of "strip", so it can be a program name with args.
12562set dummy strip; ac_word=$2
12563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12564$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012565if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012566 $as_echo_n "(cached) " >&6
12567else
12568 if test -n "$ac_ct_STRIP"; then
12569 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12570else
12571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12572for as_dir in $PATH
12573do
12574 IFS=$as_save_IFS
12575 test -z "$as_dir" && as_dir=.
12576 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012577 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012578 ac_cv_prog_ac_ct_STRIP="strip"
12579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12580 break 2
12581 fi
12582done
12583 done
12584IFS=$as_save_IFS
12585
12586fi
12587fi
12588ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12589if test -n "$ac_ct_STRIP"; then
12590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12591$as_echo "$ac_ct_STRIP" >&6; }
12592else
12593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12594$as_echo "no" >&6; }
12595fi
12596
12597 if test "x$ac_ct_STRIP" = x; then
12598 STRIP=":"
12599 else
12600 case $cross_compiling:$ac_tool_warned in
12601yes:)
12602{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12603$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12604ac_tool_warned=yes ;;
12605esac
12606 STRIP=$ac_ct_STRIP
12607 fi
12608else
12609 STRIP="$ac_cv_prog_STRIP"
12610fi
12611
12612test -z "$STRIP" && STRIP=:
12613
12614
12615
12616
12617
12618
12619if test -n "$ac_tool_prefix"; then
12620 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12621set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12623$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012624if ${ac_cv_prog_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012625 $as_echo_n "(cached) " >&6
12626else
12627 if test -n "$RANLIB"; then
12628 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12629else
12630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12631for as_dir in $PATH
12632do
12633 IFS=$as_save_IFS
12634 test -z "$as_dir" && as_dir=.
12635 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012637 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12639 break 2
12640 fi
12641done
12642 done
12643IFS=$as_save_IFS
12644
12645fi
12646fi
12647RANLIB=$ac_cv_prog_RANLIB
12648if test -n "$RANLIB"; then
12649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12650$as_echo "$RANLIB" >&6; }
12651else
12652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12653$as_echo "no" >&6; }
12654fi
12655
12656
12657fi
12658if test -z "$ac_cv_prog_RANLIB"; then
12659 ac_ct_RANLIB=$RANLIB
12660 # Extract the first word of "ranlib", so it can be a program name with args.
12661set dummy ranlib; ac_word=$2
12662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12663$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012664if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012665 $as_echo_n "(cached) " >&6
12666else
12667 if test -n "$ac_ct_RANLIB"; then
12668 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12669else
12670as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12671for as_dir in $PATH
12672do
12673 IFS=$as_save_IFS
12674 test -z "$as_dir" && as_dir=.
12675 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012677 ac_cv_prog_ac_ct_RANLIB="ranlib"
12678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12679 break 2
12680 fi
12681done
12682 done
12683IFS=$as_save_IFS
12684
12685fi
12686fi
12687ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12688if test -n "$ac_ct_RANLIB"; then
12689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12690$as_echo "$ac_ct_RANLIB" >&6; }
12691else
12692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12693$as_echo "no" >&6; }
12694fi
12695
12696 if test "x$ac_ct_RANLIB" = x; then
12697 RANLIB=":"
12698 else
12699 case $cross_compiling:$ac_tool_warned in
12700yes:)
12701{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12702$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12703ac_tool_warned=yes ;;
12704esac
12705 RANLIB=$ac_ct_RANLIB
12706 fi
12707else
12708 RANLIB="$ac_cv_prog_RANLIB"
12709fi
12710
12711test -z "$RANLIB" && RANLIB=:
12712
12713
12714
12715
12716
12717
12718# Determine commands to create old-style static archives.
12719old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12720old_postinstall_cmds='chmod 644 $oldlib'
12721old_postuninstall_cmds=
12722
12723if test -n "$RANLIB"; then
12724 case $host_os in
12725 openbsd*)
cristy99bd5232011-12-07 14:38:20 +000012726 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000012727 ;;
12728 *)
cristy99bd5232011-12-07 14:38:20 +000012729 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000012730 ;;
12731 esac
cristy99bd5232011-12-07 14:38:20 +000012732 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000012733fi
12734
cristy0c60a692010-11-04 01:09:47 +000012735case $host_os in
12736 darwin*)
12737 lock_old_archive_extraction=yes ;;
12738 *)
12739 lock_old_archive_extraction=no ;;
12740esac
12741
12742
12743
12744
12745
12746
cristy73bd4a52010-10-05 11:24:23 +000012747
12748
12749
12750
12751
12752
12753
12754
12755
12756
12757
12758
12759
12760
12761
12762
12763
12764
12765
12766
12767
12768
12769
12770
12771
12772
12773
12774
12775
12776
12777
12778
12779
12780# If no C compiler was specified, use CC.
12781LTCC=${LTCC-"$CC"}
12782
12783# If no C compiler flags were specified, use CFLAGS.
12784LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12785
12786# Allow CC to be a program name with arguments.
12787compiler=$CC
12788
12789
12790# Check for command to grab the raw symbol name followed by C symbol from nm.
12791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12792$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012793if ${lt_cv_sys_global_symbol_pipe+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012794 $as_echo_n "(cached) " >&6
12795else
12796
12797# These are sane defaults that work on at least a few old systems.
12798# [They come from Ultrix. What could be older than Ultrix?!! ;)]
12799
12800# Character class describing NM global symbol codes.
12801symcode='[BCDEGRST]'
12802
12803# Regexp to match symbols that can be accessed directly from C.
12804sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12805
12806# Define system-specific variables.
12807case $host_os in
12808aix*)
12809 symcode='[BCDT]'
12810 ;;
12811cygwin* | mingw* | pw32* | cegcc*)
12812 symcode='[ABCDGISTW]'
12813 ;;
12814hpux*)
12815 if test "$host_cpu" = ia64; then
12816 symcode='[ABCDEGRST]'
12817 fi
12818 ;;
12819irix* | nonstopux*)
12820 symcode='[BCDEGRST]'
12821 ;;
12822osf*)
12823 symcode='[BCDEGQRST]'
12824 ;;
12825solaris*)
12826 symcode='[BDRT]'
12827 ;;
12828sco3.2v5*)
12829 symcode='[DT]'
12830 ;;
12831sysv4.2uw2*)
12832 symcode='[DT]'
12833 ;;
12834sysv5* | sco5v6* | unixware* | OpenUNIX*)
12835 symcode='[ABDT]'
12836 ;;
12837sysv4)
12838 symcode='[DFNSTU]'
12839 ;;
12840esac
12841
12842# If we're using GNU nm, then use its standard symbol codes.
12843case `$NM -V 2>&1` in
12844*GNU* | *'with BFD'*)
12845 symcode='[ABCDGIRSTW]' ;;
12846esac
12847
12848# Transform an extracted symbol line into a proper C declaration.
12849# Some systems (esp. on ia64) link data and code symbols differently,
12850# so use this general approach.
12851lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12852
12853# Transform an extracted symbol line into symbol name and symbol address
cristyda16f162011-02-19 23:52:17 +000012854lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
12855lt_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 +000012856
12857# Handle CRLF in mingw tool chain
12858opt_cr=
12859case $build_os in
12860mingw*)
12861 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12862 ;;
12863esac
12864
12865# Try without a prefix underscore, then with it.
12866for ac_symprfx in "" "_"; do
12867
12868 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12869 symxfrm="\\1 $ac_symprfx\\2 \\2"
12870
12871 # Write the raw and C identifiers.
12872 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12873 # Fake it for dumpbin and say T for any non-static function
12874 # and D for any global variable.
12875 # Also find C++ and __fastcall symbols from MSVC++,
12876 # which start with @ or ?.
12877 lt_cv_sys_global_symbol_pipe="$AWK '"\
12878" {last_section=section; section=\$ 3};"\
cristy99bd5232011-12-07 14:38:20 +000012879" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
cristy73bd4a52010-10-05 11:24:23 +000012880" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12881" \$ 0!~/External *\|/{next};"\
12882" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12883" {if(hide[section]) next};"\
12884" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12885" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12886" s[1]~/^[@?]/{print s[1], s[1]; next};"\
12887" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12888" ' prfx=^$ac_symprfx"
12889 else
12890 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12891 fi
cristyda16f162011-02-19 23:52:17 +000012892 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
cristy73bd4a52010-10-05 11:24:23 +000012893
12894 # Check to see that the pipe works correctly.
12895 pipe_works=no
12896
12897 rm -f conftest*
12898 cat > conftest.$ac_ext <<_LT_EOF
12899#ifdef __cplusplus
12900extern "C" {
12901#endif
12902char nm_test_var;
12903void nm_test_func(void);
12904void nm_test_func(void){}
12905#ifdef __cplusplus
12906}
12907#endif
12908int main(){nm_test_var='a';nm_test_func();return(0);}
12909_LT_EOF
12910
12911 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12912 (eval $ac_compile) 2>&5
12913 ac_status=$?
12914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12915 test $ac_status = 0; }; then
12916 # Now try to grab the symbols.
12917 nlist=conftest.nm
cristy0c60a692010-11-04 01:09:47 +000012918 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12919 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
cristy73bd4a52010-10-05 11:24:23 +000012920 ac_status=$?
12921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12922 test $ac_status = 0; } && test -s "$nlist"; then
12923 # Try sorting and uniquifying the output.
12924 if sort "$nlist" | uniq > "$nlist"T; then
12925 mv -f "$nlist"T "$nlist"
12926 else
12927 rm -f "$nlist"T
12928 fi
12929
12930 # Make sure that we snagged all the symbols we need.
12931 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12932 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12933 cat <<_LT_EOF > conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000012934/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
12935#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
12936/* DATA imports from DLLs on WIN32 con't be const, because runtime
12937 relocations are performed -- see ld's documentation on pseudo-relocs. */
12938# define LT_DLSYM_CONST
12939#elif defined(__osf__)
12940/* This system does not cope well with relocations in const data. */
12941# define LT_DLSYM_CONST
12942#else
12943# define LT_DLSYM_CONST const
12944#endif
12945
cristy73bd4a52010-10-05 11:24:23 +000012946#ifdef __cplusplus
12947extern "C" {
12948#endif
12949
12950_LT_EOF
12951 # Now generate the symbol file.
12952 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12953
12954 cat <<_LT_EOF >> conftest.$ac_ext
12955
12956/* The mapping between symbol names and symbols. */
cristyda16f162011-02-19 23:52:17 +000012957LT_DLSYM_CONST struct {
cristy73bd4a52010-10-05 11:24:23 +000012958 const char *name;
12959 void *address;
12960}
12961lt__PROGRAM__LTX_preloaded_symbols[] =
12962{
12963 { "@PROGRAM@", (void *) 0 },
12964_LT_EOF
12965 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12966 cat <<\_LT_EOF >> conftest.$ac_ext
12967 {0, (void *) 0}
12968};
12969
12970/* This works around a problem in FreeBSD linker */
12971#ifdef FREEBSD_WORKAROUND
12972static const void *lt_preloaded_setup() {
12973 return lt__PROGRAM__LTX_preloaded_symbols;
12974}
12975#endif
12976
12977#ifdef __cplusplus
12978}
12979#endif
12980_LT_EOF
12981 # Now try linking the two files.
12982 mv conftest.$ac_objext conftstm.$ac_objext
cristyda16f162011-02-19 23:52:17 +000012983 lt_globsym_save_LIBS=$LIBS
12984 lt_globsym_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000012985 LIBS="conftstm.$ac_objext"
12986 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12987 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12988 (eval $ac_link) 2>&5
12989 ac_status=$?
12990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12991 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12992 pipe_works=yes
12993 fi
cristyda16f162011-02-19 23:52:17 +000012994 LIBS=$lt_globsym_save_LIBS
12995 CFLAGS=$lt_globsym_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000012996 else
12997 echo "cannot find nm_test_func in $nlist" >&5
12998 fi
12999 else
13000 echo "cannot find nm_test_var in $nlist" >&5
13001 fi
13002 else
13003 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13004 fi
13005 else
13006 echo "$progname: failed program was:" >&5
13007 cat conftest.$ac_ext >&5
13008 fi
13009 rm -rf conftest* conftst*
13010
13011 # Do not use the global_symbol_pipe unless it works.
13012 if test "$pipe_works" = yes; then
13013 break
13014 else
13015 lt_cv_sys_global_symbol_pipe=
13016 fi
13017done
13018
13019fi
13020
13021if test -z "$lt_cv_sys_global_symbol_pipe"; then
13022 lt_cv_sys_global_symbol_to_cdecl=
13023fi
13024if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13026$as_echo "failed" >&6; }
13027else
13028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13029$as_echo "ok" >&6; }
13030fi
13031
cristyda16f162011-02-19 23:52:17 +000013032# Response file support.
13033if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13034 nm_file_list_spec='@'
13035elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
13036 nm_file_list_spec='@'
13037fi
cristy73bd4a52010-10-05 11:24:23 +000013038
13039
13040
13041
13042
13043
13044
13045
13046
13047
13048
13049
13050
13051
13052
13053
13054
13055
13056
13057
13058
cristyda16f162011-02-19 23:52:17 +000013059
13060
13061
13062
13063
13064
13065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
13066$as_echo_n "checking for sysroot... " >&6; }
13067
13068# Check whether --with-sysroot was given.
13069if test "${with_sysroot+set}" = set; then :
13070 withval=$with_sysroot;
13071else
13072 with_sysroot=no
13073fi
13074
13075
13076lt_sysroot=
13077case ${with_sysroot} in #(
13078 yes)
13079 if test "$GCC" = yes; then
13080 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
13081 fi
13082 ;; #(
13083 /*)
13084 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
13085 ;; #(
13086 no|'')
13087 ;; #(
13088 *)
13089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
13090$as_echo "${with_sysroot}" >&6; }
13091 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
13092 ;;
13093esac
13094
13095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
13096$as_echo "${lt_sysroot:-no}" >&6; }
13097
13098
13099
13100
13101
cristy73bd4a52010-10-05 11:24:23 +000013102# Check whether --enable-libtool-lock was given.
13103if test "${enable_libtool_lock+set}" = set; then :
13104 enableval=$enable_libtool_lock;
13105fi
13106
13107test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13108
13109# Some flags need to be propagated to the compiler or linker for good
13110# libtool support.
13111case $host in
13112ia64-*-hpux*)
13113 # Find out which ABI we are using.
13114 echo 'int i;' > conftest.$ac_ext
13115 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13116 (eval $ac_compile) 2>&5
13117 ac_status=$?
13118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13119 test $ac_status = 0; }; then
13120 case `/usr/bin/file conftest.$ac_objext` in
13121 *ELF-32*)
13122 HPUX_IA64_MODE="32"
13123 ;;
13124 *ELF-64*)
13125 HPUX_IA64_MODE="64"
13126 ;;
13127 esac
13128 fi
13129 rm -rf conftest*
13130 ;;
13131*-*-irix6*)
13132 # Find out which ABI we are using.
cristy0c60a692010-11-04 01:09:47 +000013133 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000013134 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13135 (eval $ac_compile) 2>&5
13136 ac_status=$?
13137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13138 test $ac_status = 0; }; then
13139 if test "$lt_cv_prog_gnu_ld" = yes; then
13140 case `/usr/bin/file conftest.$ac_objext` in
13141 *32-bit*)
13142 LD="${LD-ld} -melf32bsmip"
13143 ;;
13144 *N32*)
13145 LD="${LD-ld} -melf32bmipn32"
13146 ;;
13147 *64-bit*)
13148 LD="${LD-ld} -melf64bmip"
13149 ;;
13150 esac
13151 else
13152 case `/usr/bin/file conftest.$ac_objext` in
13153 *32-bit*)
13154 LD="${LD-ld} -32"
13155 ;;
13156 *N32*)
13157 LD="${LD-ld} -n32"
13158 ;;
13159 *64-bit*)
13160 LD="${LD-ld} -64"
13161 ;;
13162 esac
13163 fi
13164 fi
13165 rm -rf conftest*
13166 ;;
13167
cristyd95b7a52013-10-23 13:12:53 +000013168x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
cristy73bd4a52010-10-05 11:24:23 +000013169s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13170 # Find out which ABI we are using.
13171 echo 'int i;' > conftest.$ac_ext
13172 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13173 (eval $ac_compile) 2>&5
13174 ac_status=$?
13175 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13176 test $ac_status = 0; }; then
13177 case `/usr/bin/file conftest.o` in
13178 *32-bit*)
13179 case $host in
13180 x86_64-*kfreebsd*-gnu)
13181 LD="${LD-ld} -m elf_i386_fbsd"
13182 ;;
13183 x86_64-*linux*)
13184 LD="${LD-ld} -m elf_i386"
13185 ;;
cristya5bda012013-11-03 18:05:38 +000013186 powerpc64le-*linux*)
cristyd95b7a52013-10-23 13:12:53 +000013187 LD="${LD-ld} -m elf32lppclinux"
13188 ;;
cristya5bda012013-11-03 18:05:38 +000013189 powerpc64-*linux*)
cristy73bd4a52010-10-05 11:24:23 +000013190 LD="${LD-ld} -m elf32ppclinux"
13191 ;;
13192 s390x-*linux*)
13193 LD="${LD-ld} -m elf_s390"
13194 ;;
13195 sparc64-*linux*)
13196 LD="${LD-ld} -m elf32_sparc"
13197 ;;
13198 esac
13199 ;;
13200 *64-bit*)
13201 case $host in
13202 x86_64-*kfreebsd*-gnu)
13203 LD="${LD-ld} -m elf_x86_64_fbsd"
13204 ;;
13205 x86_64-*linux*)
13206 LD="${LD-ld} -m elf_x86_64"
13207 ;;
cristyd95b7a52013-10-23 13:12:53 +000013208 powerpcle-*linux*)
13209 LD="${LD-ld} -m elf64lppc"
13210 ;;
13211 powerpc-*linux*)
cristy73bd4a52010-10-05 11:24:23 +000013212 LD="${LD-ld} -m elf64ppc"
13213 ;;
13214 s390*-*linux*|s390*-*tpf*)
13215 LD="${LD-ld} -m elf64_s390"
13216 ;;
13217 sparc*-*linux*)
13218 LD="${LD-ld} -m elf64_sparc"
13219 ;;
13220 esac
13221 ;;
13222 esac
13223 fi
13224 rm -rf conftest*
13225 ;;
13226
13227*-*-sco3.2v5*)
13228 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13229 SAVE_CFLAGS="$CFLAGS"
13230 CFLAGS="$CFLAGS -belf"
13231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13232$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013233if ${lt_cv_cc_needs_belf+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013234 $as_echo_n "(cached) " >&6
13235else
13236 ac_ext=c
13237ac_cpp='$CPP $CPPFLAGS'
13238ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13239ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13240ac_compiler_gnu=$ac_cv_c_compiler_gnu
13241
13242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13243/* end confdefs.h. */
13244
13245int
13246main ()
13247{
13248
13249 ;
13250 return 0;
13251}
13252_ACEOF
13253if ac_fn_c_try_link "$LINENO"; then :
13254 lt_cv_cc_needs_belf=yes
13255else
13256 lt_cv_cc_needs_belf=no
13257fi
13258rm -f core conftest.err conftest.$ac_objext \
13259 conftest$ac_exeext conftest.$ac_ext
13260 ac_ext=c
13261ac_cpp='$CPP $CPPFLAGS'
13262ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13263ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13264ac_compiler_gnu=$ac_cv_c_compiler_gnu
13265
13266fi
13267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13268$as_echo "$lt_cv_cc_needs_belf" >&6; }
13269 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13270 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13271 CFLAGS="$SAVE_CFLAGS"
13272 fi
13273 ;;
cristy99bd5232011-12-07 14:38:20 +000013274*-*solaris*)
cristy73bd4a52010-10-05 11:24:23 +000013275 # Find out which ABI we are using.
13276 echo 'int i;' > conftest.$ac_ext
13277 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13278 (eval $ac_compile) 2>&5
13279 ac_status=$?
13280 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13281 test $ac_status = 0; }; then
13282 case `/usr/bin/file conftest.o` in
13283 *64-bit*)
13284 case $lt_cv_prog_gnu_ld in
cristy99bd5232011-12-07 14:38:20 +000013285 yes*)
13286 case $host in
13287 i?86-*-solaris*)
13288 LD="${LD-ld} -m elf_x86_64"
13289 ;;
13290 sparc*-*-solaris*)
13291 LD="${LD-ld} -m elf64_sparc"
13292 ;;
13293 esac
13294 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
13295 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
13296 LD="${LD-ld}_sol2"
13297 fi
13298 ;;
cristy73bd4a52010-10-05 11:24:23 +000013299 *)
13300 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13301 LD="${LD-ld} -64"
13302 fi
13303 ;;
13304 esac
13305 ;;
13306 esac
13307 fi
13308 rm -rf conftest*
13309 ;;
13310esac
13311
13312need_locks="$enable_libtool_lock"
13313
cristyda16f162011-02-19 23:52:17 +000013314if test -n "$ac_tool_prefix"; then
13315 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
13316set dummy ${ac_tool_prefix}mt; ac_word=$2
13317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13318$as_echo_n "checking for $ac_word... " >&6; }
13319if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
13320 $as_echo_n "(cached) " >&6
13321else
13322 if test -n "$MANIFEST_TOOL"; then
13323 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
13324else
13325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13326for as_dir in $PATH
13327do
13328 IFS=$as_save_IFS
13329 test -z "$as_dir" && as_dir=.
13330 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013331 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000013332 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
13333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13334 break 2
13335 fi
13336done
13337 done
13338IFS=$as_save_IFS
13339
13340fi
13341fi
13342MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
13343if test -n "$MANIFEST_TOOL"; then
13344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
13345$as_echo "$MANIFEST_TOOL" >&6; }
13346else
13347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13348$as_echo "no" >&6; }
13349fi
13350
13351
13352fi
13353if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
13354 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
13355 # Extract the first word of "mt", so it can be a program name with args.
13356set dummy mt; ac_word=$2
13357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13358$as_echo_n "checking for $ac_word... " >&6; }
13359if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
13360 $as_echo_n "(cached) " >&6
13361else
13362 if test -n "$ac_ct_MANIFEST_TOOL"; then
13363 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
13364else
13365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13366for as_dir in $PATH
13367do
13368 IFS=$as_save_IFS
13369 test -z "$as_dir" && as_dir=.
13370 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013371 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000013372 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
13373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13374 break 2
13375 fi
13376done
13377 done
13378IFS=$as_save_IFS
13379
13380fi
13381fi
13382ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
13383if test -n "$ac_ct_MANIFEST_TOOL"; then
13384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
13385$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
13386else
13387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13388$as_echo "no" >&6; }
13389fi
13390
13391 if test "x$ac_ct_MANIFEST_TOOL" = x; then
13392 MANIFEST_TOOL=":"
13393 else
13394 case $cross_compiling:$ac_tool_warned in
13395yes:)
13396{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13397$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13398ac_tool_warned=yes ;;
13399esac
13400 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
13401 fi
13402else
13403 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
13404fi
13405
13406test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
13407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
13408$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
13409if ${lt_cv_path_mainfest_tool+:} false; then :
13410 $as_echo_n "(cached) " >&6
13411else
13412 lt_cv_path_mainfest_tool=no
13413 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
13414 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
13415 cat conftest.err >&5
13416 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
13417 lt_cv_path_mainfest_tool=yes
13418 fi
13419 rm -f conftest*
13420fi
13421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
13422$as_echo "$lt_cv_path_mainfest_tool" >&6; }
13423if test "x$lt_cv_path_mainfest_tool" != xyes; then
13424 MANIFEST_TOOL=:
13425fi
13426
13427
13428
13429
13430
cristy73bd4a52010-10-05 11:24:23 +000013431
13432 case $host_os in
13433 rhapsody* | darwin*)
13434 if test -n "$ac_tool_prefix"; then
13435 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13436set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13438$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013439if ${ac_cv_prog_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013440 $as_echo_n "(cached) " >&6
13441else
13442 if test -n "$DSYMUTIL"; then
13443 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13444else
13445as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13446for as_dir in $PATH
13447do
13448 IFS=$as_save_IFS
13449 test -z "$as_dir" && as_dir=.
13450 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013451 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013452 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13454 break 2
13455 fi
13456done
13457 done
13458IFS=$as_save_IFS
13459
13460fi
13461fi
13462DSYMUTIL=$ac_cv_prog_DSYMUTIL
13463if test -n "$DSYMUTIL"; then
13464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13465$as_echo "$DSYMUTIL" >&6; }
13466else
13467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13468$as_echo "no" >&6; }
13469fi
13470
13471
13472fi
13473if test -z "$ac_cv_prog_DSYMUTIL"; then
13474 ac_ct_DSYMUTIL=$DSYMUTIL
13475 # Extract the first word of "dsymutil", so it can be a program name with args.
13476set dummy dsymutil; ac_word=$2
13477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13478$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013479if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013480 $as_echo_n "(cached) " >&6
13481else
13482 if test -n "$ac_ct_DSYMUTIL"; then
13483 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13484else
13485as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13486for as_dir in $PATH
13487do
13488 IFS=$as_save_IFS
13489 test -z "$as_dir" && as_dir=.
13490 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013491 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013492 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13494 break 2
13495 fi
13496done
13497 done
13498IFS=$as_save_IFS
13499
13500fi
13501fi
13502ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13503if test -n "$ac_ct_DSYMUTIL"; then
13504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13505$as_echo "$ac_ct_DSYMUTIL" >&6; }
13506else
13507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13508$as_echo "no" >&6; }
13509fi
13510
13511 if test "x$ac_ct_DSYMUTIL" = x; then
13512 DSYMUTIL=":"
13513 else
13514 case $cross_compiling:$ac_tool_warned in
13515yes:)
13516{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13517$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13518ac_tool_warned=yes ;;
13519esac
13520 DSYMUTIL=$ac_ct_DSYMUTIL
13521 fi
13522else
13523 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13524fi
13525
13526 if test -n "$ac_tool_prefix"; then
13527 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13528set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13530$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013531if ${ac_cv_prog_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013532 $as_echo_n "(cached) " >&6
13533else
13534 if test -n "$NMEDIT"; then
13535 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13536else
13537as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13538for as_dir in $PATH
13539do
13540 IFS=$as_save_IFS
13541 test -z "$as_dir" && as_dir=.
13542 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013543 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013544 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13546 break 2
13547 fi
13548done
13549 done
13550IFS=$as_save_IFS
13551
13552fi
13553fi
13554NMEDIT=$ac_cv_prog_NMEDIT
13555if test -n "$NMEDIT"; then
13556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13557$as_echo "$NMEDIT" >&6; }
13558else
13559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13560$as_echo "no" >&6; }
13561fi
13562
13563
13564fi
13565if test -z "$ac_cv_prog_NMEDIT"; then
13566 ac_ct_NMEDIT=$NMEDIT
13567 # Extract the first word of "nmedit", so it can be a program name with args.
13568set dummy nmedit; ac_word=$2
13569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13570$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013571if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013572 $as_echo_n "(cached) " >&6
13573else
13574 if test -n "$ac_ct_NMEDIT"; then
13575 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13576else
13577as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13578for as_dir in $PATH
13579do
13580 IFS=$as_save_IFS
13581 test -z "$as_dir" && as_dir=.
13582 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013584 ac_cv_prog_ac_ct_NMEDIT="nmedit"
13585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13586 break 2
13587 fi
13588done
13589 done
13590IFS=$as_save_IFS
13591
13592fi
13593fi
13594ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13595if test -n "$ac_ct_NMEDIT"; then
13596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13597$as_echo "$ac_ct_NMEDIT" >&6; }
13598else
13599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13600$as_echo "no" >&6; }
13601fi
13602
13603 if test "x$ac_ct_NMEDIT" = x; then
13604 NMEDIT=":"
13605 else
13606 case $cross_compiling:$ac_tool_warned in
13607yes:)
13608{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13609$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13610ac_tool_warned=yes ;;
13611esac
13612 NMEDIT=$ac_ct_NMEDIT
13613 fi
13614else
13615 NMEDIT="$ac_cv_prog_NMEDIT"
13616fi
13617
13618 if test -n "$ac_tool_prefix"; then
13619 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13620set dummy ${ac_tool_prefix}lipo; ac_word=$2
13621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13622$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013623if ${ac_cv_prog_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013624 $as_echo_n "(cached) " >&6
13625else
13626 if test -n "$LIPO"; then
13627 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13628else
13629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13630for as_dir in $PATH
13631do
13632 IFS=$as_save_IFS
13633 test -z "$as_dir" && as_dir=.
13634 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013635 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013636 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13638 break 2
13639 fi
13640done
13641 done
13642IFS=$as_save_IFS
13643
13644fi
13645fi
13646LIPO=$ac_cv_prog_LIPO
13647if test -n "$LIPO"; then
13648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13649$as_echo "$LIPO" >&6; }
13650else
13651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13652$as_echo "no" >&6; }
13653fi
13654
13655
13656fi
13657if test -z "$ac_cv_prog_LIPO"; then
13658 ac_ct_LIPO=$LIPO
13659 # Extract the first word of "lipo", so it can be a program name with args.
13660set dummy lipo; ac_word=$2
13661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13662$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013663if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013664 $as_echo_n "(cached) " >&6
13665else
13666 if test -n "$ac_ct_LIPO"; then
13667 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13668else
13669as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13670for as_dir in $PATH
13671do
13672 IFS=$as_save_IFS
13673 test -z "$as_dir" && as_dir=.
13674 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013675 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013676 ac_cv_prog_ac_ct_LIPO="lipo"
13677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13678 break 2
13679 fi
13680done
13681 done
13682IFS=$as_save_IFS
13683
13684fi
13685fi
13686ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13687if test -n "$ac_ct_LIPO"; then
13688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13689$as_echo "$ac_ct_LIPO" >&6; }
13690else
13691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13692$as_echo "no" >&6; }
13693fi
13694
13695 if test "x$ac_ct_LIPO" = x; then
13696 LIPO=":"
13697 else
13698 case $cross_compiling:$ac_tool_warned in
13699yes:)
13700{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13701$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13702ac_tool_warned=yes ;;
13703esac
13704 LIPO=$ac_ct_LIPO
13705 fi
13706else
13707 LIPO="$ac_cv_prog_LIPO"
13708fi
13709
13710 if test -n "$ac_tool_prefix"; then
13711 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13712set dummy ${ac_tool_prefix}otool; ac_word=$2
13713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13714$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013715if ${ac_cv_prog_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013716 $as_echo_n "(cached) " >&6
13717else
13718 if test -n "$OTOOL"; then
13719 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13720else
13721as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13722for as_dir in $PATH
13723do
13724 IFS=$as_save_IFS
13725 test -z "$as_dir" && as_dir=.
13726 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013727 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013728 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13730 break 2
13731 fi
13732done
13733 done
13734IFS=$as_save_IFS
13735
13736fi
13737fi
13738OTOOL=$ac_cv_prog_OTOOL
13739if test -n "$OTOOL"; then
13740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13741$as_echo "$OTOOL" >&6; }
13742else
13743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13744$as_echo "no" >&6; }
13745fi
13746
13747
13748fi
13749if test -z "$ac_cv_prog_OTOOL"; then
13750 ac_ct_OTOOL=$OTOOL
13751 # Extract the first word of "otool", so it can be a program name with args.
13752set dummy otool; ac_word=$2
13753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13754$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013755if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013756 $as_echo_n "(cached) " >&6
13757else
13758 if test -n "$ac_ct_OTOOL"; then
13759 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13760else
13761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13762for as_dir in $PATH
13763do
13764 IFS=$as_save_IFS
13765 test -z "$as_dir" && as_dir=.
13766 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013768 ac_cv_prog_ac_ct_OTOOL="otool"
13769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13770 break 2
13771 fi
13772done
13773 done
13774IFS=$as_save_IFS
13775
13776fi
13777fi
13778ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13779if test -n "$ac_ct_OTOOL"; then
13780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13781$as_echo "$ac_ct_OTOOL" >&6; }
13782else
13783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13784$as_echo "no" >&6; }
13785fi
13786
13787 if test "x$ac_ct_OTOOL" = x; then
13788 OTOOL=":"
13789 else
13790 case $cross_compiling:$ac_tool_warned in
13791yes:)
13792{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13793$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13794ac_tool_warned=yes ;;
13795esac
13796 OTOOL=$ac_ct_OTOOL
13797 fi
13798else
13799 OTOOL="$ac_cv_prog_OTOOL"
13800fi
13801
13802 if test -n "$ac_tool_prefix"; then
13803 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13804set dummy ${ac_tool_prefix}otool64; ac_word=$2
13805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13806$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013807if ${ac_cv_prog_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013808 $as_echo_n "(cached) " >&6
13809else
13810 if test -n "$OTOOL64"; then
13811 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13812else
13813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13814for as_dir in $PATH
13815do
13816 IFS=$as_save_IFS
13817 test -z "$as_dir" && as_dir=.
13818 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013819 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013820 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13822 break 2
13823 fi
13824done
13825 done
13826IFS=$as_save_IFS
13827
13828fi
13829fi
13830OTOOL64=$ac_cv_prog_OTOOL64
13831if test -n "$OTOOL64"; then
13832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13833$as_echo "$OTOOL64" >&6; }
13834else
13835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13836$as_echo "no" >&6; }
13837fi
13838
13839
13840fi
13841if test -z "$ac_cv_prog_OTOOL64"; then
13842 ac_ct_OTOOL64=$OTOOL64
13843 # Extract the first word of "otool64", so it can be a program name with args.
13844set dummy otool64; ac_word=$2
13845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13846$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013847if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013848 $as_echo_n "(cached) " >&6
13849else
13850 if test -n "$ac_ct_OTOOL64"; then
13851 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13852else
13853as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13854for as_dir in $PATH
13855do
13856 IFS=$as_save_IFS
13857 test -z "$as_dir" && as_dir=.
13858 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013859 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013860 ac_cv_prog_ac_ct_OTOOL64="otool64"
13861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13862 break 2
13863 fi
13864done
13865 done
13866IFS=$as_save_IFS
13867
13868fi
13869fi
13870ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13871if test -n "$ac_ct_OTOOL64"; then
13872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13873$as_echo "$ac_ct_OTOOL64" >&6; }
13874else
13875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13876$as_echo "no" >&6; }
13877fi
13878
13879 if test "x$ac_ct_OTOOL64" = x; then
13880 OTOOL64=":"
13881 else
13882 case $cross_compiling:$ac_tool_warned in
13883yes:)
13884{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13885$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13886ac_tool_warned=yes ;;
13887esac
13888 OTOOL64=$ac_ct_OTOOL64
13889 fi
13890else
13891 OTOOL64="$ac_cv_prog_OTOOL64"
13892fi
13893
13894
13895
13896
13897
13898
13899
13900
13901
13902
13903
13904
13905
13906
13907
13908
13909
13910
13911
13912
13913
13914
13915
13916
13917
13918
13919
13920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13921$as_echo_n "checking for -single_module linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013922if ${lt_cv_apple_cc_single_mod+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013923 $as_echo_n "(cached) " >&6
13924else
13925 lt_cv_apple_cc_single_mod=no
13926 if test -z "${LT_MULTI_MODULE}"; then
13927 # By default we will add the -single_module flag. You can override
13928 # by either setting the environment variable LT_MULTI_MODULE
13929 # non-empty at configure time, or by adding -multi_module to the
13930 # link flags.
13931 rm -rf libconftest.dylib*
13932 echo "int foo(void){return 1;}" > conftest.c
13933 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13934-dynamiclib -Wl,-single_module conftest.c" >&5
13935 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13936 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13937 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000013938 # If there is a non-empty error log, and "single_module"
13939 # appears in it, assume the flag caused a linker warning
13940 if test -s conftest.err && $GREP single_module conftest.err; then
13941 cat conftest.err >&5
13942 # Otherwise, if the output was created with a 0 exit code from
13943 # the compiler, it worked.
13944 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
cristy73bd4a52010-10-05 11:24:23 +000013945 lt_cv_apple_cc_single_mod=yes
13946 else
13947 cat conftest.err >&5
13948 fi
13949 rm -rf libconftest.dylib*
13950 rm -f conftest.*
13951 fi
13952fi
13953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13954$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
cristy99bd5232011-12-07 14:38:20 +000013955
cristy73bd4a52010-10-05 11:24:23 +000013956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13957$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013958if ${lt_cv_ld_exported_symbols_list+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013959 $as_echo_n "(cached) " >&6
13960else
13961 lt_cv_ld_exported_symbols_list=no
13962 save_LDFLAGS=$LDFLAGS
13963 echo "_main" > conftest.sym
13964 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13966/* end confdefs.h. */
13967
13968int
13969main ()
13970{
13971
13972 ;
13973 return 0;
13974}
13975_ACEOF
13976if ac_fn_c_try_link "$LINENO"; then :
13977 lt_cv_ld_exported_symbols_list=yes
13978else
13979 lt_cv_ld_exported_symbols_list=no
13980fi
13981rm -f core conftest.err conftest.$ac_objext \
13982 conftest$ac_exeext conftest.$ac_ext
13983 LDFLAGS="$save_LDFLAGS"
13984
13985fi
13986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13987$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
cristy99bd5232011-12-07 14:38:20 +000013988
cristy0c60a692010-11-04 01:09:47 +000013989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13990$as_echo_n "checking for -force_load linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013991if ${lt_cv_ld_force_load+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000013992 $as_echo_n "(cached) " >&6
13993else
13994 lt_cv_ld_force_load=no
13995 cat > conftest.c << _LT_EOF
13996int forced_loaded() { return 2;}
13997_LT_EOF
13998 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13999 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14000 echo "$AR cru libconftest.a conftest.o" >&5
14001 $AR cru libconftest.a conftest.o 2>&5
14002 echo "$RANLIB libconftest.a" >&5
14003 $RANLIB libconftest.a 2>&5
14004 cat > conftest.c << _LT_EOF
14005int main() { return 0;}
14006_LT_EOF
14007 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14008 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14009 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000014010 if test -s conftest.err && $GREP force_load conftest.err; then
14011 cat conftest.err >&5
14012 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
cristy0c60a692010-11-04 01:09:47 +000014013 lt_cv_ld_force_load=yes
14014 else
14015 cat conftest.err >&5
14016 fi
14017 rm -f conftest.err libconftest.a conftest conftest.c
14018 rm -rf conftest.dSYM
14019
14020fi
14021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14022$as_echo "$lt_cv_ld_force_load" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000014023 case $host_os in
14024 rhapsody* | darwin1.[012])
14025 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14026 darwin1.*)
14027 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14028 darwin*) # darwin 5.x on
14029 # if running on 10.5 or later, the deployment target defaults
14030 # to the OS version, if on x86, and 10.4, the deployment
14031 # target defaults to 10.4. Don't you love it?
14032 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14033 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14034 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14035 10.[012]*)
14036 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14037 10.*)
14038 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14039 esac
14040 ;;
14041 esac
14042 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14043 _lt_dar_single_mod='$single_module'
14044 fi
14045 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14046 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14047 else
14048 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14049 fi
cristy0c60a692010-11-04 01:09:47 +000014050 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
cristy73bd4a52010-10-05 11:24:23 +000014051 _lt_dsymutil='~$DSYMUTIL $lib || :'
14052 else
14053 _lt_dsymutil=
14054 fi
14055 ;;
14056 esac
14057
14058for ac_header in dlfcn.h
14059do :
14060 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
14061"
cristyda16f162011-02-19 23:52:17 +000014062if test "x$ac_cv_header_dlfcn_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000014063 cat >>confdefs.h <<_ACEOF
14064#define HAVE_DLFCN_H 1
14065_ACEOF
14066
14067fi
14068
14069done
14070
14071
14072
cristy73bd4a52010-10-05 11:24:23 +000014073
cristyda16f162011-02-19 23:52:17 +000014074func_stripname_cnf ()
14075{
14076 case ${2} in
14077 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
14078 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
14079 esac
14080} # func_stripname_cnf
14081
14082
14083
cristy73bd4a52010-10-05 11:24:23 +000014084
14085
14086# Set options
14087enable_win32_dll=yes
14088
14089case $host in
cristy0c60a692010-11-04 01:09:47 +000014090*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000014091 if test -n "$ac_tool_prefix"; then
14092 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
14093set dummy ${ac_tool_prefix}as; ac_word=$2
14094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14095$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014096if ${ac_cv_prog_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014097 $as_echo_n "(cached) " >&6
14098else
14099 if test -n "$AS"; then
14100 ac_cv_prog_AS="$AS" # Let the user override the test.
14101else
14102as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14103for as_dir in $PATH
14104do
14105 IFS=$as_save_IFS
14106 test -z "$as_dir" && as_dir=.
14107 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000014108 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000014109 ac_cv_prog_AS="${ac_tool_prefix}as"
14110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14111 break 2
14112 fi
14113done
14114 done
14115IFS=$as_save_IFS
14116
14117fi
14118fi
14119AS=$ac_cv_prog_AS
14120if test -n "$AS"; then
14121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
14122$as_echo "$AS" >&6; }
14123else
14124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14125$as_echo "no" >&6; }
14126fi
14127
14128
14129fi
14130if test -z "$ac_cv_prog_AS"; then
14131 ac_ct_AS=$AS
14132 # Extract the first word of "as", so it can be a program name with args.
14133set dummy as; ac_word=$2
14134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14135$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014136if ${ac_cv_prog_ac_ct_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014137 $as_echo_n "(cached) " >&6
14138else
14139 if test -n "$ac_ct_AS"; then
14140 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
14141else
14142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14143for as_dir in $PATH
14144do
14145 IFS=$as_save_IFS
14146 test -z "$as_dir" && as_dir=.
14147 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000014148 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000014149 ac_cv_prog_ac_ct_AS="as"
14150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14151 break 2
14152 fi
14153done
14154 done
14155IFS=$as_save_IFS
14156
14157fi
14158fi
14159ac_ct_AS=$ac_cv_prog_ac_ct_AS
14160if test -n "$ac_ct_AS"; then
14161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
14162$as_echo "$ac_ct_AS" >&6; }
14163else
14164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14165$as_echo "no" >&6; }
14166fi
14167
14168 if test "x$ac_ct_AS" = x; then
14169 AS="false"
14170 else
14171 case $cross_compiling:$ac_tool_warned in
14172yes:)
14173{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14174$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14175ac_tool_warned=yes ;;
14176esac
14177 AS=$ac_ct_AS
14178 fi
14179else
14180 AS="$ac_cv_prog_AS"
14181fi
14182
14183 if test -n "$ac_tool_prefix"; then
14184 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
14185set dummy ${ac_tool_prefix}dlltool; ac_word=$2
14186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14187$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014188if ${ac_cv_prog_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014189 $as_echo_n "(cached) " >&6
14190else
14191 if test -n "$DLLTOOL"; then
14192 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
14193else
14194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14195for as_dir in $PATH
14196do
14197 IFS=$as_save_IFS
14198 test -z "$as_dir" && as_dir=.
14199 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000014200 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000014201 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
14202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14203 break 2
14204 fi
14205done
14206 done
14207IFS=$as_save_IFS
14208
14209fi
14210fi
14211DLLTOOL=$ac_cv_prog_DLLTOOL
14212if test -n "$DLLTOOL"; then
14213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
14214$as_echo "$DLLTOOL" >&6; }
14215else
14216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14217$as_echo "no" >&6; }
14218fi
14219
14220
14221fi
14222if test -z "$ac_cv_prog_DLLTOOL"; then
14223 ac_ct_DLLTOOL=$DLLTOOL
14224 # Extract the first word of "dlltool", so it can be a program name with args.
14225set dummy dlltool; ac_word=$2
14226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14227$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014228if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014229 $as_echo_n "(cached) " >&6
14230else
14231 if test -n "$ac_ct_DLLTOOL"; then
14232 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
14233else
14234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14235for as_dir in $PATH
14236do
14237 IFS=$as_save_IFS
14238 test -z "$as_dir" && as_dir=.
14239 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000014240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000014241 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
14242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14243 break 2
14244 fi
14245done
14246 done
14247IFS=$as_save_IFS
14248
14249fi
14250fi
14251ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
14252if test -n "$ac_ct_DLLTOOL"; then
14253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
14254$as_echo "$ac_ct_DLLTOOL" >&6; }
14255else
14256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14257$as_echo "no" >&6; }
14258fi
14259
14260 if test "x$ac_ct_DLLTOOL" = x; then
14261 DLLTOOL="false"
14262 else
14263 case $cross_compiling:$ac_tool_warned in
14264yes:)
14265{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14266$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14267ac_tool_warned=yes ;;
14268esac
14269 DLLTOOL=$ac_ct_DLLTOOL
14270 fi
14271else
14272 DLLTOOL="$ac_cv_prog_DLLTOOL"
14273fi
14274
14275 if test -n "$ac_tool_prefix"; then
14276 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
14277set dummy ${ac_tool_prefix}objdump; ac_word=$2
14278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14279$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014280if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014281 $as_echo_n "(cached) " >&6
14282else
14283 if test -n "$OBJDUMP"; then
14284 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
14285else
14286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14287for as_dir in $PATH
14288do
14289 IFS=$as_save_IFS
14290 test -z "$as_dir" && as_dir=.
14291 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000014292 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000014293 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
14294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14295 break 2
14296 fi
14297done
14298 done
14299IFS=$as_save_IFS
14300
14301fi
14302fi
14303OBJDUMP=$ac_cv_prog_OBJDUMP
14304if test -n "$OBJDUMP"; then
14305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
14306$as_echo "$OBJDUMP" >&6; }
14307else
14308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14309$as_echo "no" >&6; }
14310fi
14311
14312
14313fi
14314if test -z "$ac_cv_prog_OBJDUMP"; then
14315 ac_ct_OBJDUMP=$OBJDUMP
14316 # Extract the first word of "objdump", so it can be a program name with args.
14317set dummy objdump; ac_word=$2
14318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14319$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014320if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014321 $as_echo_n "(cached) " >&6
14322else
14323 if test -n "$ac_ct_OBJDUMP"; then
14324 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
14325else
14326as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14327for as_dir in $PATH
14328do
14329 IFS=$as_save_IFS
14330 test -z "$as_dir" && as_dir=.
14331 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000014332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000014333 ac_cv_prog_ac_ct_OBJDUMP="objdump"
14334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14335 break 2
14336 fi
14337done
14338 done
14339IFS=$as_save_IFS
14340
14341fi
14342fi
14343ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
14344if test -n "$ac_ct_OBJDUMP"; then
14345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
14346$as_echo "$ac_ct_OBJDUMP" >&6; }
14347else
14348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14349$as_echo "no" >&6; }
14350fi
14351
14352 if test "x$ac_ct_OBJDUMP" = x; then
14353 OBJDUMP="false"
14354 else
14355 case $cross_compiling:$ac_tool_warned in
14356yes:)
14357{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14358$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14359ac_tool_warned=yes ;;
14360esac
14361 OBJDUMP=$ac_ct_OBJDUMP
14362 fi
14363else
14364 OBJDUMP="$ac_cv_prog_OBJDUMP"
14365fi
14366
14367 ;;
14368esac
14369
14370test -z "$AS" && AS=as
14371
14372
14373
14374
14375
14376test -z "$DLLTOOL" && DLLTOOL=dlltool
14377
14378
14379
14380
14381
14382test -z "$OBJDUMP" && OBJDUMP=objdump
14383
14384
14385
14386
14387
14388
14389
14390
14391
14392 # Check whether --enable-shared was given.
14393if test "${enable_shared+set}" = set; then :
14394 enableval=$enable_shared; p=${PACKAGE-default}
14395 case $enableval in
14396 yes) enable_shared=yes ;;
14397 no) enable_shared=no ;;
14398 *)
14399 enable_shared=no
14400 # Look at the argument we got. We use all the common list separators.
14401 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14402 for pkg in $enableval; do
14403 IFS="$lt_save_ifs"
14404 if test "X$pkg" = "X$p"; then
14405 enable_shared=yes
14406 fi
14407 done
14408 IFS="$lt_save_ifs"
14409 ;;
14410 esac
14411else
14412 enable_shared=yes
14413fi
14414
14415
14416
14417
14418
14419
14420
14421
14422
14423 # Check whether --enable-static was given.
14424if test "${enable_static+set}" = set; then :
14425 enableval=$enable_static; p=${PACKAGE-default}
14426 case $enableval in
14427 yes) enable_static=yes ;;
14428 no) enable_static=no ;;
14429 *)
14430 enable_static=no
14431 # Look at the argument we got. We use all the common list separators.
14432 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14433 for pkg in $enableval; do
14434 IFS="$lt_save_ifs"
14435 if test "X$pkg" = "X$p"; then
14436 enable_static=yes
14437 fi
14438 done
14439 IFS="$lt_save_ifs"
14440 ;;
14441 esac
14442else
14443 enable_static=yes
14444fi
14445
14446
14447
14448
14449
14450
14451
14452
14453
14454
14455# Check whether --with-pic was given.
14456if test "${with_pic+set}" = set; then :
cristy99bd5232011-12-07 14:38:20 +000014457 withval=$with_pic; lt_p=${PACKAGE-default}
14458 case $withval in
14459 yes|no) pic_mode=$withval ;;
14460 *)
14461 pic_mode=default
14462 # Look at the argument we got. We use all the common list separators.
14463 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14464 for lt_pkg in $withval; do
14465 IFS="$lt_save_ifs"
14466 if test "X$lt_pkg" = "X$lt_p"; then
14467 pic_mode=yes
14468 fi
14469 done
14470 IFS="$lt_save_ifs"
14471 ;;
14472 esac
cristy73bd4a52010-10-05 11:24:23 +000014473else
14474 pic_mode=default
14475fi
14476
14477
14478test -z "$pic_mode" && pic_mode=default
14479
14480
14481
14482
14483
14484
14485
14486 # Check whether --enable-fast-install was given.
14487if test "${enable_fast_install+set}" = set; then :
14488 enableval=$enable_fast_install; p=${PACKAGE-default}
14489 case $enableval in
14490 yes) enable_fast_install=yes ;;
14491 no) enable_fast_install=no ;;
14492 *)
14493 enable_fast_install=no
14494 # Look at the argument we got. We use all the common list separators.
14495 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14496 for pkg in $enableval; do
14497 IFS="$lt_save_ifs"
14498 if test "X$pkg" = "X$p"; then
14499 enable_fast_install=yes
14500 fi
14501 done
14502 IFS="$lt_save_ifs"
14503 ;;
14504 esac
14505else
14506 enable_fast_install=yes
14507fi
14508
14509
14510
14511
14512
14513
14514
14515
14516
14517
14518
14519# This can be used to rebuild libtool when needed
14520LIBTOOL_DEPS="$ltmain"
14521
14522# Always use our own libtool.
14523LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14524
14525
14526
14527
14528
14529
14530
14531
14532
14533
14534
14535
14536
14537
14538
14539
14540
14541
14542
14543
14544
14545
14546
14547
14548
cristy0c60a692010-11-04 01:09:47 +000014549
cristy99bd5232011-12-07 14:38:20 +000014550
14551
14552
14553
cristy73bd4a52010-10-05 11:24:23 +000014554test -z "$LN_S" && LN_S="ln -s"
14555
14556
14557
14558
14559
14560
14561
14562
14563
14564
14565
14566
14567
14568
14569if test -n "${ZSH_VERSION+set}" ; then
14570 setopt NO_GLOB_SUBST
14571fi
14572
14573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14574$as_echo_n "checking for objdir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014575if ${lt_cv_objdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014576 $as_echo_n "(cached) " >&6
14577else
14578 rm -f .libs 2>/dev/null
14579mkdir .libs 2>/dev/null
14580if test -d .libs; then
14581 lt_cv_objdir=.libs
14582else
14583 # MS-DOS does not allow filenames that begin with a dot.
14584 lt_cv_objdir=_libs
14585fi
14586rmdir .libs 2>/dev/null
14587fi
14588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14589$as_echo "$lt_cv_objdir" >&6; }
14590objdir=$lt_cv_objdir
14591
14592
14593
14594
14595
14596cat >>confdefs.h <<_ACEOF
14597#define LT_OBJDIR "$lt_cv_objdir/"
14598_ACEOF
14599
14600
14601
14602
cristy73bd4a52010-10-05 11:24:23 +000014603case $host_os in
14604aix3*)
14605 # AIX sometimes has problems with the GCC collect2 program. For some
14606 # reason, if we set the COLLECT_NAMES environment variable, the problems
14607 # vanish in a puff of smoke.
14608 if test "X${COLLECT_NAMES+set}" != Xset; then
14609 COLLECT_NAMES=
14610 export COLLECT_NAMES
14611 fi
14612 ;;
14613esac
14614
cristy73bd4a52010-10-05 11:24:23 +000014615# Global variables:
14616ofile=libtool
14617can_build_shared=yes
14618
14619# All known linkers require a `.a' archive for static linking (except MSVC,
14620# which needs '.lib').
14621libext=a
14622
14623with_gnu_ld="$lt_cv_prog_gnu_ld"
14624
14625old_CC="$CC"
14626old_CFLAGS="$CFLAGS"
14627
14628# Set sane defaults for various variables
14629test -z "$CC" && CC=cc
14630test -z "$LTCC" && LTCC=$CC
14631test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14632test -z "$LD" && LD=ld
14633test -z "$ac_objext" && ac_objext=o
14634
14635for cc_temp in $compiler""; do
14636 case $cc_temp in
14637 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14638 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14639 \-*) ;;
14640 *) break;;
14641 esac
14642done
cristy0c60a692010-11-04 01:09:47 +000014643cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000014644
14645
14646# Only perform the check for file, if the check method requires it
14647test -z "$MAGIC_CMD" && MAGIC_CMD=file
14648case $deplibs_check_method in
14649file_magic*)
14650 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14652$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014653if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014654 $as_echo_n "(cached) " >&6
14655else
14656 case $MAGIC_CMD in
14657[\\/*] | ?:[\\/]*)
14658 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14659 ;;
14660*)
14661 lt_save_MAGIC_CMD="$MAGIC_CMD"
14662 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14663 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14664 for ac_dir in $ac_dummy; do
14665 IFS="$lt_save_ifs"
14666 test -z "$ac_dir" && ac_dir=.
14667 if test -f $ac_dir/${ac_tool_prefix}file; then
14668 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14669 if test -n "$file_magic_test_file"; then
14670 case $deplibs_check_method in
14671 "file_magic "*)
14672 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14673 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14674 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14675 $EGREP "$file_magic_regex" > /dev/null; then
14676 :
14677 else
14678 cat <<_LT_EOF 1>&2
14679
14680*** Warning: the command libtool uses to detect shared libraries,
14681*** $file_magic_cmd, produces output that libtool cannot recognize.
14682*** The result is that libtool may fail to recognize shared libraries
14683*** as such. This will affect the creation of libtool libraries that
14684*** depend on shared libraries, but programs linked with such libtool
14685*** libraries will work regardless of this problem. Nevertheless, you
14686*** may want to report the problem to your system manager and/or to
14687*** bug-libtool@gnu.org
14688
14689_LT_EOF
14690 fi ;;
14691 esac
14692 fi
14693 break
14694 fi
14695 done
14696 IFS="$lt_save_ifs"
14697 MAGIC_CMD="$lt_save_MAGIC_CMD"
14698 ;;
14699esac
14700fi
14701
14702MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14703if test -n "$MAGIC_CMD"; then
14704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14705$as_echo "$MAGIC_CMD" >&6; }
14706else
14707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14708$as_echo "no" >&6; }
14709fi
14710
14711
14712
14713
14714
14715if test -z "$lt_cv_path_MAGIC_CMD"; then
14716 if test -n "$ac_tool_prefix"; then
14717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14718$as_echo_n "checking for file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014719if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014720 $as_echo_n "(cached) " >&6
14721else
14722 case $MAGIC_CMD in
14723[\\/*] | ?:[\\/]*)
14724 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14725 ;;
14726*)
14727 lt_save_MAGIC_CMD="$MAGIC_CMD"
14728 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14729 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14730 for ac_dir in $ac_dummy; do
14731 IFS="$lt_save_ifs"
14732 test -z "$ac_dir" && ac_dir=.
14733 if test -f $ac_dir/file; then
14734 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14735 if test -n "$file_magic_test_file"; then
14736 case $deplibs_check_method in
14737 "file_magic "*)
14738 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14739 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14740 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14741 $EGREP "$file_magic_regex" > /dev/null; then
14742 :
14743 else
14744 cat <<_LT_EOF 1>&2
14745
14746*** Warning: the command libtool uses to detect shared libraries,
14747*** $file_magic_cmd, produces output that libtool cannot recognize.
14748*** The result is that libtool may fail to recognize shared libraries
14749*** as such. This will affect the creation of libtool libraries that
14750*** depend on shared libraries, but programs linked with such libtool
14751*** libraries will work regardless of this problem. Nevertheless, you
14752*** may want to report the problem to your system manager and/or to
14753*** bug-libtool@gnu.org
14754
14755_LT_EOF
14756 fi ;;
14757 esac
14758 fi
14759 break
14760 fi
14761 done
14762 IFS="$lt_save_ifs"
14763 MAGIC_CMD="$lt_save_MAGIC_CMD"
14764 ;;
14765esac
14766fi
14767
14768MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14769if test -n "$MAGIC_CMD"; then
14770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14771$as_echo "$MAGIC_CMD" >&6; }
14772else
14773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14774$as_echo "no" >&6; }
14775fi
14776
14777
14778 else
14779 MAGIC_CMD=:
14780 fi
14781fi
14782
14783 fi
14784 ;;
14785esac
14786
14787# Use C for the default configuration in the libtool script
14788
14789lt_save_CC="$CC"
14790ac_ext=c
14791ac_cpp='$CPP $CPPFLAGS'
14792ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14793ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14794ac_compiler_gnu=$ac_cv_c_compiler_gnu
14795
14796
14797# Source file extension for C test sources.
14798ac_ext=c
14799
14800# Object file extension for compiled C test sources.
14801objext=o
14802objext=$objext
14803
14804# Code to be used in simple compile tests
14805lt_simple_compile_test_code="int some_variable = 0;"
14806
14807# Code to be used in simple link tests
14808lt_simple_link_test_code='int main(){return(0);}'
14809
14810
14811
14812
14813
14814
14815
14816# If no C compiler was specified, use CC.
14817LTCC=${LTCC-"$CC"}
14818
14819# If no C compiler flags were specified, use CFLAGS.
14820LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14821
14822# Allow CC to be a program name with arguments.
14823compiler=$CC
14824
14825# Save the default compiler, since it gets overwritten when the other
14826# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14827compiler_DEFAULT=$CC
14828
14829# save warnings/boilerplate of simple test code
14830ac_outfile=conftest.$ac_objext
14831echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14832eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14833_lt_compiler_boilerplate=`cat conftest.err`
14834$RM conftest*
14835
14836ac_outfile=conftest.$ac_objext
14837echo "$lt_simple_link_test_code" >conftest.$ac_ext
14838eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14839_lt_linker_boilerplate=`cat conftest.err`
14840$RM -r conftest*
14841
14842
14843## CAVEAT EMPTOR:
14844## There is no encapsulation within the following macros, do not change
14845## the running order or otherwise move them around unless you know exactly
14846## what you are doing...
14847if test -n "$compiler"; then
14848
14849lt_prog_compiler_no_builtin_flag=
14850
14851if test "$GCC" = yes; then
cristy0c60a692010-11-04 01:09:47 +000014852 case $cc_basename in
14853 nvcc*)
14854 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14855 *)
14856 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14857 esac
cristy73bd4a52010-10-05 11:24:23 +000014858
14859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14860$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014861if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014862 $as_echo_n "(cached) " >&6
14863else
14864 lt_cv_prog_compiler_rtti_exceptions=no
14865 ac_outfile=conftest.$ac_objext
14866 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14867 lt_compiler_flag="-fno-rtti -fno-exceptions"
14868 # Insert the option either (1) after the last *FLAGS variable, or
14869 # (2) before a word containing "conftest.", or (3) at the end.
14870 # Note that $ac_compile itself does not contain backslashes and begins
14871 # with a dollar sign (not a hyphen), so the echo should work correctly.
14872 # The option is referenced via a variable to avoid confusing sed.
14873 lt_compile=`echo "$ac_compile" | $SED \
14874 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14875 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14876 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014877 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014878 (eval "$lt_compile" 2>conftest.err)
14879 ac_status=$?
14880 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014882 if (exit $ac_status) && test -s "$ac_outfile"; then
14883 # The compiler can only warn and ignore the option if not recognized
14884 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000014885 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014886 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14887 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14888 lt_cv_prog_compiler_rtti_exceptions=yes
14889 fi
14890 fi
14891 $RM conftest*
14892
14893fi
14894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14895$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14896
14897if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14898 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14899else
14900 :
14901fi
14902
14903fi
14904
14905
14906
14907
14908
14909
14910 lt_prog_compiler_wl=
14911lt_prog_compiler_pic=
14912lt_prog_compiler_static=
14913
cristy73bd4a52010-10-05 11:24:23 +000014914
14915 if test "$GCC" = yes; then
14916 lt_prog_compiler_wl='-Wl,'
14917 lt_prog_compiler_static='-static'
14918
14919 case $host_os in
14920 aix*)
14921 # All AIX code is PIC.
14922 if test "$host_cpu" = ia64; then
14923 # AIX 5 now supports IA64 processor
14924 lt_prog_compiler_static='-Bstatic'
14925 fi
14926 ;;
14927
14928 amigaos*)
14929 case $host_cpu in
14930 powerpc)
14931 # see comment about AmigaOS4 .so support
14932 lt_prog_compiler_pic='-fPIC'
14933 ;;
14934 m68k)
14935 # FIXME: we need at least 68020 code to build shared libraries, but
14936 # adding the `-m68020' flag to GCC prevents building anything better,
14937 # like `-m68040'.
14938 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14939 ;;
14940 esac
14941 ;;
14942
14943 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14944 # PIC is the default for these OSes.
14945 ;;
14946
14947 mingw* | cygwin* | pw32* | os2* | cegcc*)
14948 # This hack is so that the source file can tell whether it is being
14949 # built for inclusion in a dll (and should export symbols for example).
14950 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14951 # (--disable-auto-import) libraries
14952 lt_prog_compiler_pic='-DDLL_EXPORT'
14953 ;;
14954
14955 darwin* | rhapsody*)
14956 # PIC is the default on this platform
14957 # Common symbols not allowed in MH_DYLIB files
14958 lt_prog_compiler_pic='-fno-common'
14959 ;;
14960
cristy0c60a692010-11-04 01:09:47 +000014961 haiku*)
14962 # PIC is the default for Haiku.
14963 # The "-static" flag exists, but is broken.
14964 lt_prog_compiler_static=
14965 ;;
14966
cristy73bd4a52010-10-05 11:24:23 +000014967 hpux*)
14968 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14969 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14970 # sets the default TLS model and affects inlining.
14971 case $host_cpu in
14972 hppa*64*)
14973 # +Z the default
14974 ;;
14975 *)
14976 lt_prog_compiler_pic='-fPIC'
14977 ;;
14978 esac
14979 ;;
14980
14981 interix[3-9]*)
14982 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14983 # Instead, we relocate shared libraries at runtime.
14984 ;;
14985
14986 msdosdjgpp*)
14987 # Just because we use GCC doesn't mean we suddenly get shared libraries
14988 # on systems that don't support them.
14989 lt_prog_compiler_can_build_shared=no
14990 enable_shared=no
14991 ;;
14992
14993 *nto* | *qnx*)
14994 # QNX uses GNU C++, but need to define -shared option too, otherwise
14995 # it will coredump.
14996 lt_prog_compiler_pic='-fPIC -shared'
14997 ;;
14998
14999 sysv4*MP*)
15000 if test -d /usr/nec; then
15001 lt_prog_compiler_pic=-Kconform_pic
15002 fi
15003 ;;
15004
15005 *)
15006 lt_prog_compiler_pic='-fPIC'
15007 ;;
15008 esac
cristy0c60a692010-11-04 01:09:47 +000015009
15010 case $cc_basename in
15011 nvcc*) # Cuda Compiler Driver 2.2
15012 lt_prog_compiler_wl='-Xlinker '
cristy99bd5232011-12-07 14:38:20 +000015013 if test -n "$lt_prog_compiler_pic"; then
15014 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
15015 fi
cristy0c60a692010-11-04 01:09:47 +000015016 ;;
15017 esac
cristy73bd4a52010-10-05 11:24:23 +000015018 else
15019 # PORTME Check for flag to pass linker flags through the system compiler.
15020 case $host_os in
15021 aix*)
15022 lt_prog_compiler_wl='-Wl,'
15023 if test "$host_cpu" = ia64; then
15024 # AIX 5 now supports IA64 processor
15025 lt_prog_compiler_static='-Bstatic'
15026 else
15027 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15028 fi
15029 ;;
15030
15031 mingw* | cygwin* | pw32* | os2* | cegcc*)
15032 # This hack is so that the source file can tell whether it is being
15033 # built for inclusion in a dll (and should export symbols for example).
15034 lt_prog_compiler_pic='-DDLL_EXPORT'
15035 ;;
15036
15037 hpux9* | hpux10* | hpux11*)
15038 lt_prog_compiler_wl='-Wl,'
15039 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15040 # not for PA HP-UX.
15041 case $host_cpu in
15042 hppa*64*|ia64*)
15043 # +Z the default
15044 ;;
15045 *)
15046 lt_prog_compiler_pic='+Z'
15047 ;;
15048 esac
15049 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15050 lt_prog_compiler_static='${wl}-a ${wl}archive'
15051 ;;
15052
15053 irix5* | irix6* | nonstopux*)
15054 lt_prog_compiler_wl='-Wl,'
15055 # PIC (with -KPIC) is the default.
15056 lt_prog_compiler_static='-non_shared'
15057 ;;
15058
cristy0c60a692010-11-04 01:09:47 +000015059 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000015060 case $cc_basename in
15061 # old Intel for x86_64 which still supported -KPIC.
15062 ecc*)
15063 lt_prog_compiler_wl='-Wl,'
15064 lt_prog_compiler_pic='-KPIC'
15065 lt_prog_compiler_static='-static'
15066 ;;
15067 # icc used to be incompatible with GCC.
15068 # ICC 10 doesn't accept -KPIC any more.
15069 icc* | ifort*)
15070 lt_prog_compiler_wl='-Wl,'
15071 lt_prog_compiler_pic='-fPIC'
15072 lt_prog_compiler_static='-static'
15073 ;;
15074 # Lahey Fortran 8.1.
15075 lf95*)
15076 lt_prog_compiler_wl='-Wl,'
15077 lt_prog_compiler_pic='--shared'
15078 lt_prog_compiler_static='--static'
15079 ;;
cristyda16f162011-02-19 23:52:17 +000015080 nagfor*)
15081 # NAG Fortran compiler
15082 lt_prog_compiler_wl='-Wl,-Wl,,'
15083 lt_prog_compiler_pic='-PIC'
15084 lt_prog_compiler_static='-Bstatic'
15085 ;;
cristy0c60a692010-11-04 01:09:47 +000015086 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
cristy73bd4a52010-10-05 11:24:23 +000015087 # Portland Group compilers (*not* the Pentium gcc compiler,
15088 # which looks to be a dead project)
15089 lt_prog_compiler_wl='-Wl,'
15090 lt_prog_compiler_pic='-fpic'
15091 lt_prog_compiler_static='-Bstatic'
15092 ;;
15093 ccc*)
15094 lt_prog_compiler_wl='-Wl,'
15095 # All Alpha code is PIC.
15096 lt_prog_compiler_static='-non_shared'
15097 ;;
cristy0c60a692010-11-04 01:09:47 +000015098 xl* | bgxl* | bgf* | mpixl*)
15099 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000015100 lt_prog_compiler_wl='-Wl,'
15101 lt_prog_compiler_pic='-qpic'
15102 lt_prog_compiler_static='-qstaticlink'
15103 ;;
15104 *)
15105 case `$CC -V 2>&1 | sed 5q` in
cristy99bd5232011-12-07 14:38:20 +000015106 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
cristy0c60a692010-11-04 01:09:47 +000015107 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15108 lt_prog_compiler_pic='-KPIC'
15109 lt_prog_compiler_static='-Bstatic'
15110 lt_prog_compiler_wl=''
15111 ;;
cristy99bd5232011-12-07 14:38:20 +000015112 *Sun\ F* | *Sun*Fortran*)
15113 lt_prog_compiler_pic='-KPIC'
15114 lt_prog_compiler_static='-Bstatic'
15115 lt_prog_compiler_wl='-Qoption ld '
15116 ;;
cristy73bd4a52010-10-05 11:24:23 +000015117 *Sun\ C*)
15118 # Sun C 5.9
15119 lt_prog_compiler_pic='-KPIC'
15120 lt_prog_compiler_static='-Bstatic'
15121 lt_prog_compiler_wl='-Wl,'
15122 ;;
cristy99bd5232011-12-07 14:38:20 +000015123 *Intel*\ [CF]*Compiler*)
15124 lt_prog_compiler_wl='-Wl,'
15125 lt_prog_compiler_pic='-fPIC'
15126 lt_prog_compiler_static='-static'
15127 ;;
15128 *Portland\ Group*)
15129 lt_prog_compiler_wl='-Wl,'
15130 lt_prog_compiler_pic='-fpic'
15131 lt_prog_compiler_static='-Bstatic'
15132 ;;
cristy73bd4a52010-10-05 11:24:23 +000015133 esac
15134 ;;
15135 esac
15136 ;;
15137
15138 newsos6)
15139 lt_prog_compiler_pic='-KPIC'
15140 lt_prog_compiler_static='-Bstatic'
15141 ;;
15142
15143 *nto* | *qnx*)
15144 # QNX uses GNU C++, but need to define -shared option too, otherwise
15145 # it will coredump.
15146 lt_prog_compiler_pic='-fPIC -shared'
15147 ;;
15148
15149 osf3* | osf4* | osf5*)
15150 lt_prog_compiler_wl='-Wl,'
15151 # All OSF/1 code is PIC.
15152 lt_prog_compiler_static='-non_shared'
15153 ;;
15154
15155 rdos*)
15156 lt_prog_compiler_static='-non_shared'
15157 ;;
15158
15159 solaris*)
15160 lt_prog_compiler_pic='-KPIC'
15161 lt_prog_compiler_static='-Bstatic'
15162 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000015163 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
cristy73bd4a52010-10-05 11:24:23 +000015164 lt_prog_compiler_wl='-Qoption ld ';;
15165 *)
15166 lt_prog_compiler_wl='-Wl,';;
15167 esac
15168 ;;
15169
15170 sunos4*)
15171 lt_prog_compiler_wl='-Qoption ld '
15172 lt_prog_compiler_pic='-PIC'
15173 lt_prog_compiler_static='-Bstatic'
15174 ;;
15175
15176 sysv4 | sysv4.2uw2* | sysv4.3*)
15177 lt_prog_compiler_wl='-Wl,'
15178 lt_prog_compiler_pic='-KPIC'
15179 lt_prog_compiler_static='-Bstatic'
15180 ;;
15181
15182 sysv4*MP*)
15183 if test -d /usr/nec ;then
15184 lt_prog_compiler_pic='-Kconform_pic'
15185 lt_prog_compiler_static='-Bstatic'
15186 fi
15187 ;;
15188
15189 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15190 lt_prog_compiler_wl='-Wl,'
15191 lt_prog_compiler_pic='-KPIC'
15192 lt_prog_compiler_static='-Bstatic'
15193 ;;
15194
15195 unicos*)
15196 lt_prog_compiler_wl='-Wl,'
15197 lt_prog_compiler_can_build_shared=no
15198 ;;
15199
15200 uts4*)
15201 lt_prog_compiler_pic='-pic'
15202 lt_prog_compiler_static='-Bstatic'
15203 ;;
15204
15205 *)
15206 lt_prog_compiler_can_build_shared=no
15207 ;;
15208 esac
15209 fi
15210
15211case $host_os in
15212 # For platforms which do not support PIC, -DPIC is meaningless:
15213 *djgpp*)
15214 lt_prog_compiler_pic=
15215 ;;
15216 *)
15217 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15218 ;;
15219esac
cristy73bd4a52010-10-05 11:24:23 +000015220
cristyda16f162011-02-19 23:52:17 +000015221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15222$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15223if ${lt_cv_prog_compiler_pic+:} false; then :
15224 $as_echo_n "(cached) " >&6
15225else
15226 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
15227fi
15228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
15229$as_echo "$lt_cv_prog_compiler_pic" >&6; }
15230lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
cristy73bd4a52010-10-05 11:24:23 +000015231
15232#
15233# Check to make sure the PIC flag actually works.
15234#
15235if test -n "$lt_prog_compiler_pic"; then
15236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15237$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015238if ${lt_cv_prog_compiler_pic_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000015239 $as_echo_n "(cached) " >&6
15240else
15241 lt_cv_prog_compiler_pic_works=no
15242 ac_outfile=conftest.$ac_objext
15243 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15244 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15245 # Insert the option either (1) after the last *FLAGS variable, or
15246 # (2) before a word containing "conftest.", or (3) at the end.
15247 # Note that $ac_compile itself does not contain backslashes and begins
15248 # with a dollar sign (not a hyphen), so the echo should work correctly.
15249 # The option is referenced via a variable to avoid confusing sed.
15250 lt_compile=`echo "$ac_compile" | $SED \
15251 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15252 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15253 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000015254 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000015255 (eval "$lt_compile" 2>conftest.err)
15256 ac_status=$?
15257 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000015258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000015259 if (exit $ac_status) && test -s "$ac_outfile"; then
15260 # The compiler can only warn and ignore the option if not recognized
15261 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000015262 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000015263 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15264 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15265 lt_cv_prog_compiler_pic_works=yes
15266 fi
15267 fi
15268 $RM conftest*
15269
15270fi
15271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15272$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15273
15274if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15275 case $lt_prog_compiler_pic in
15276 "" | " "*) ;;
15277 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15278 esac
15279else
15280 lt_prog_compiler_pic=
15281 lt_prog_compiler_can_build_shared=no
15282fi
15283
15284fi
15285
15286
15287
15288
15289
15290
cristyda16f162011-02-19 23:52:17 +000015291
15292
15293
15294
15295
cristy73bd4a52010-10-05 11:24:23 +000015296#
15297# Check to make sure the static flag actually works.
15298#
15299wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15301$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015302if ${lt_cv_prog_compiler_static_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000015303 $as_echo_n "(cached) " >&6
15304else
15305 lt_cv_prog_compiler_static_works=no
15306 save_LDFLAGS="$LDFLAGS"
15307 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15308 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15309 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15310 # The linker can only warn and ignore the option if not recognized
15311 # So say no if there are warnings
15312 if test -s conftest.err; then
15313 # Append any errors to the config.log.
15314 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000015315 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000015316 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15317 if diff conftest.exp conftest.er2 >/dev/null; then
15318 lt_cv_prog_compiler_static_works=yes
15319 fi
15320 else
15321 lt_cv_prog_compiler_static_works=yes
15322 fi
15323 fi
15324 $RM -r conftest*
15325 LDFLAGS="$save_LDFLAGS"
15326
15327fi
15328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15329$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15330
15331if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15332 :
15333else
15334 lt_prog_compiler_static=
15335fi
15336
15337
15338
15339
15340
15341
15342
15343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15344$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015345if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000015346 $as_echo_n "(cached) " >&6
15347else
15348 lt_cv_prog_compiler_c_o=no
15349 $RM -r conftest 2>/dev/null
15350 mkdir conftest
15351 cd conftest
15352 mkdir out
15353 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15354
15355 lt_compiler_flag="-o out/conftest2.$ac_objext"
15356 # Insert the option either (1) after the last *FLAGS variable, or
15357 # (2) before a word containing "conftest.", or (3) at the end.
15358 # Note that $ac_compile itself does not contain backslashes and begins
15359 # with a dollar sign (not a hyphen), so the echo should work correctly.
15360 lt_compile=`echo "$ac_compile" | $SED \
15361 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15362 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15363 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000015364 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000015365 (eval "$lt_compile" 2>out/conftest.err)
15366 ac_status=$?
15367 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000015368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000015369 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15370 then
15371 # The compiler can only warn and ignore the option if not recognized
15372 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000015373 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000015374 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15375 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15376 lt_cv_prog_compiler_c_o=yes
15377 fi
15378 fi
15379 chmod u+w . 2>&5
15380 $RM conftest*
15381 # SGI C++ compiler will create directory out/ii_files/ for
15382 # template instantiation
15383 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15384 $RM out/* && rmdir out
15385 cd ..
15386 $RM -r conftest
15387 $RM conftest*
15388
15389fi
15390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15391$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15392
15393
15394
15395
15396
15397
15398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15399$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015400if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000015401 $as_echo_n "(cached) " >&6
15402else
15403 lt_cv_prog_compiler_c_o=no
15404 $RM -r conftest 2>/dev/null
15405 mkdir conftest
15406 cd conftest
15407 mkdir out
15408 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15409
15410 lt_compiler_flag="-o out/conftest2.$ac_objext"
15411 # Insert the option either (1) after the last *FLAGS variable, or
15412 # (2) before a word containing "conftest.", or (3) at the end.
15413 # Note that $ac_compile itself does not contain backslashes and begins
15414 # with a dollar sign (not a hyphen), so the echo should work correctly.
15415 lt_compile=`echo "$ac_compile" | $SED \
15416 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15417 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15418 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000015419 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000015420 (eval "$lt_compile" 2>out/conftest.err)
15421 ac_status=$?
15422 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000015423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000015424 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15425 then
15426 # The compiler can only warn and ignore the option if not recognized
15427 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000015428 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000015429 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15430 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15431 lt_cv_prog_compiler_c_o=yes
15432 fi
15433 fi
15434 chmod u+w . 2>&5
15435 $RM conftest*
15436 # SGI C++ compiler will create directory out/ii_files/ for
15437 # template instantiation
15438 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15439 $RM out/* && rmdir out
15440 cd ..
15441 $RM -r conftest
15442 $RM conftest*
15443
15444fi
15445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15446$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15447
15448
15449
15450
15451hard_links="nottested"
15452if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15453 # do not overwrite the value of need_locks provided by the user
15454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15455$as_echo_n "checking if we can lock with hard links... " >&6; }
15456 hard_links=yes
15457 $RM conftest*
15458 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15459 touch conftest.a
15460 ln conftest.a conftest.b 2>&5 || hard_links=no
15461 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15463$as_echo "$hard_links" >&6; }
15464 if test "$hard_links" = no; then
15465 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15466$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15467 need_locks=warn
15468 fi
15469else
15470 need_locks=no
15471fi
15472
15473
15474
15475
15476
15477
15478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15479$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15480
15481 runpath_var=
15482 allow_undefined_flag=
15483 always_export_symbols=no
15484 archive_cmds=
15485 archive_expsym_cmds=
15486 compiler_needs_object=no
15487 enable_shared_with_static_runtimes=no
15488 export_dynamic_flag_spec=
15489 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15490 hardcode_automatic=no
15491 hardcode_direct=no
15492 hardcode_direct_absolute=no
15493 hardcode_libdir_flag_spec=
cristy73bd4a52010-10-05 11:24:23 +000015494 hardcode_libdir_separator=
15495 hardcode_minus_L=no
15496 hardcode_shlibpath_var=unsupported
15497 inherit_rpath=no
15498 link_all_deplibs=unknown
15499 module_cmds=
15500 module_expsym_cmds=
15501 old_archive_from_new_cmds=
15502 old_archive_from_expsyms_cmds=
15503 thread_safe_flag_spec=
15504 whole_archive_flag_spec=
15505 # include_expsyms should be a list of space-separated symbols to be *always*
15506 # included in the symbol list
15507 include_expsyms=
15508 # exclude_expsyms can be an extended regexp of symbols to exclude
15509 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15510 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15511 # as well as any symbol that contains `d'.
15512 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15513 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15514 # platforms (ab)use it in PIC code, but their linkers get confused if
15515 # the symbol is explicitly referenced. Since portable code cannot
15516 # rely on this symbol name, it's probably fine to never include it in
15517 # preloaded symbol tables.
15518 # Exclude shared library initialization/finalization symbols.
15519 extract_expsyms_cmds=
15520
15521 case $host_os in
15522 cygwin* | mingw* | pw32* | cegcc*)
15523 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15524 # When not using gcc, we currently assume that we are using
15525 # Microsoft Visual C++.
15526 if test "$GCC" != yes; then
15527 with_gnu_ld=no
15528 fi
15529 ;;
15530 interix*)
15531 # we just hope/assume this is gcc and not c89 (= MSVC++)
15532 with_gnu_ld=yes
15533 ;;
15534 openbsd*)
15535 with_gnu_ld=no
15536 ;;
15537 esac
15538
15539 ld_shlibs=yes
cristy0c60a692010-11-04 01:09:47 +000015540
15541 # On some targets, GNU ld is compatible enough with the native linker
15542 # that we're better off using the native interface for both.
15543 lt_use_gnu_ld_interface=no
cristy73bd4a52010-10-05 11:24:23 +000015544 if test "$with_gnu_ld" = yes; then
cristy0c60a692010-11-04 01:09:47 +000015545 case $host_os in
15546 aix*)
15547 # The AIX port of GNU ld has always aspired to compatibility
15548 # with the native linker. However, as the warning in the GNU ld
15549 # block says, versions before 2.19.5* couldn't really create working
15550 # shared libraries, regardless of the interface used.
15551 case `$LD -v 2>&1` in
15552 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15553 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15554 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15555 *)
15556 lt_use_gnu_ld_interface=yes
15557 ;;
15558 esac
15559 ;;
15560 *)
15561 lt_use_gnu_ld_interface=yes
15562 ;;
15563 esac
15564 fi
15565
15566 if test "$lt_use_gnu_ld_interface" = yes; then
cristy73bd4a52010-10-05 11:24:23 +000015567 # If archive_cmds runs LD, not CC, wlarc should be empty
15568 wlarc='${wl}'
15569
15570 # Set some defaults for GNU ld with shared library support. These
15571 # are reset later if shared libraries are not supported. Putting them
15572 # here allows them to be overridden if necessary.
15573 runpath_var=LD_RUN_PATH
15574 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15575 export_dynamic_flag_spec='${wl}--export-dynamic'
15576 # ancient GNU ld didn't support --whole-archive et. al.
15577 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15578 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15579 else
15580 whole_archive_flag_spec=
15581 fi
15582 supports_anon_versioning=no
15583 case `$LD -v 2>&1` in
cristy0c60a692010-11-04 01:09:47 +000015584 *GNU\ gold*) supports_anon_versioning=yes ;;
cristy73bd4a52010-10-05 11:24:23 +000015585 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15586 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15587 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15588 *\ 2.11.*) ;; # other 2.11 versions
15589 *) supports_anon_versioning=yes ;;
15590 esac
15591
15592 # See if GNU ld supports shared libraries.
15593 case $host_os in
15594 aix[3-9]*)
15595 # On AIX/PPC, the GNU linker is very broken
15596 if test "$host_cpu" != ia64; then
15597 ld_shlibs=no
15598 cat <<_LT_EOF 1>&2
15599
cristy0c60a692010-11-04 01:09:47 +000015600*** Warning: the GNU linker, at least up to release 2.19, is reported
cristy73bd4a52010-10-05 11:24:23 +000015601*** to be unable to reliably create shared libraries on AIX.
15602*** Therefore, libtool is disabling shared libraries support. If you
cristy0c60a692010-11-04 01:09:47 +000015603*** really care for shared libraries, you may want to install binutils
15604*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15605*** You will then need to restart the configuration process.
cristy73bd4a52010-10-05 11:24:23 +000015606
15607_LT_EOF
15608 fi
15609 ;;
15610
15611 amigaos*)
15612 case $host_cpu in
15613 powerpc)
15614 # see comment about AmigaOS4 .so support
15615 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15616 archive_expsym_cmds=''
15617 ;;
15618 m68k)
15619 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)'
15620 hardcode_libdir_flag_spec='-L$libdir'
15621 hardcode_minus_L=yes
15622 ;;
15623 esac
15624 ;;
15625
15626 beos*)
15627 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15628 allow_undefined_flag=unsupported
15629 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15630 # support --undefined. This deserves some investigation. FIXME
15631 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15632 else
15633 ld_shlibs=no
15634 fi
15635 ;;
15636
15637 cygwin* | mingw* | pw32* | cegcc*)
15638 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15639 # as there is no search path for DLLs.
15640 hardcode_libdir_flag_spec='-L$libdir'
cristy0c60a692010-11-04 01:09:47 +000015641 export_dynamic_flag_spec='${wl}--export-all-symbols'
cristy73bd4a52010-10-05 11:24:23 +000015642 allow_undefined_flag=unsupported
15643 always_export_symbols=no
15644 enable_shared_with_static_runtimes=yes
cristyda16f162011-02-19 23:52:17 +000015645 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'
15646 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 +000015647
15648 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15649 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15650 # If the export-symbols file already is a .def file (1st line
15651 # is EXPORTS), use it as is; otherwise, prepend...
15652 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15653 cp $export_symbols $output_objdir/$soname.def;
15654 else
15655 echo EXPORTS > $output_objdir/$soname.def;
15656 cat $export_symbols >> $output_objdir/$soname.def;
15657 fi~
15658 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15659 else
15660 ld_shlibs=no
15661 fi
15662 ;;
15663
cristy0c60a692010-11-04 01:09:47 +000015664 haiku*)
15665 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15666 link_all_deplibs=yes
15667 ;;
15668
cristy73bd4a52010-10-05 11:24:23 +000015669 interix[3-9]*)
15670 hardcode_direct=no
15671 hardcode_shlibpath_var=no
15672 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15673 export_dynamic_flag_spec='${wl}-E'
15674 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15675 # Instead, shared libraries are loaded at an image base (0x10000000 by
15676 # default) and relocated if they conflict, which is a slow very memory
15677 # consuming and fragmenting process. To avoid this, we pick a random,
15678 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15679 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15680 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15681 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'
15682 ;;
15683
cristy0c60a692010-11-04 01:09:47 +000015684 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000015685 tmp_diet=no
15686 if test "$host_os" = linux-dietlibc; then
15687 case $cc_basename in
15688 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15689 esac
15690 fi
15691 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15692 && test "$tmp_diet" = no
15693 then
cristyda16f162011-02-19 23:52:17 +000015694 tmp_addflag=' $pic_flag'
cristy73bd4a52010-10-05 11:24:23 +000015695 tmp_sharedflag='-shared'
15696 case $cc_basename,$host_cpu in
15697 pgcc*) # Portland Group C compiler
cristy0c60a692010-11-04 01:09:47 +000015698 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 +000015699 tmp_addflag=' $pic_flag'
15700 ;;
cristy0c60a692010-11-04 01:09:47 +000015701 pgf77* | pgf90* | pgf95* | pgfortran*)
15702 # Portland Group f77 and f90 compilers
15703 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 +000015704 tmp_addflag=' $pic_flag -Mnomain' ;;
15705 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15706 tmp_addflag=' -i_dynamic' ;;
15707 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15708 tmp_addflag=' -i_dynamic -nofor_main' ;;
15709 ifc* | ifort*) # Intel Fortran compiler
15710 tmp_addflag=' -nofor_main' ;;
15711 lf95*) # Lahey Fortran 8.1
15712 whole_archive_flag_spec=
15713 tmp_sharedflag='--shared' ;;
cristy0c60a692010-11-04 01:09:47 +000015714 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cristy73bd4a52010-10-05 11:24:23 +000015715 tmp_sharedflag='-qmkshrobj'
15716 tmp_addflag= ;;
cristy0c60a692010-11-04 01:09:47 +000015717 nvcc*) # Cuda Compiler Driver 2.2
15718 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'
15719 compiler_needs_object=yes
15720 ;;
cristy73bd4a52010-10-05 11:24:23 +000015721 esac
15722 case `$CC -V 2>&1 | sed 5q` in
15723 *Sun\ C*) # Sun C 5.9
cristy0c60a692010-11-04 01:09:47 +000015724 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 +000015725 compiler_needs_object=yes
15726 tmp_sharedflag='-G' ;;
15727 *Sun\ F*) # Sun Fortran 8.3
15728 tmp_sharedflag='-G' ;;
15729 esac
15730 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15731
15732 if test "x$supports_anon_versioning" = xyes; then
15733 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15734 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15735 echo "local: *; };" >> $output_objdir/$libname.ver~
15736 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15737 fi
15738
15739 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000015740 xlf* | bgf* | bgxlf* | mpixlf*)
cristy73bd4a52010-10-05 11:24:23 +000015741 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15742 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
cristy99bd5232011-12-07 14:38:20 +000015743 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
cristy0c60a692010-11-04 01:09:47 +000015744 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000015745 if test "x$supports_anon_versioning" = xyes; then
15746 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15747 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15748 echo "local: *; };" >> $output_objdir/$libname.ver~
cristy0c60a692010-11-04 01:09:47 +000015749 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000015750 fi
15751 ;;
15752 esac
15753 else
15754 ld_shlibs=no
15755 fi
15756 ;;
15757
15758 netbsd*)
15759 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15760 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15761 wlarc=
15762 else
cristyda16f162011-02-19 23:52:17 +000015763 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15764 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 +000015765 fi
15766 ;;
15767
15768 solaris*)
15769 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15770 ld_shlibs=no
15771 cat <<_LT_EOF 1>&2
15772
15773*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15774*** create shared libraries on Solaris systems. Therefore, libtool
15775*** is disabling shared libraries support. We urge you to upgrade GNU
15776*** binutils to release 2.9.1 or newer. Another option is to modify
15777*** your PATH or compiler configuration so that the native linker is
15778*** used, and then restart.
15779
15780_LT_EOF
15781 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000015782 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15783 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 +000015784 else
15785 ld_shlibs=no
15786 fi
15787 ;;
15788
15789 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15790 case `$LD -v 2>&1` in
15791 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15792 ld_shlibs=no
15793 cat <<_LT_EOF 1>&2
15794
15795*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15796*** reliably create shared libraries on SCO systems. Therefore, libtool
15797*** is disabling shared libraries support. We urge you to upgrade GNU
15798*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15799*** your PATH or compiler configuration so that the native linker is
15800*** used, and then restart.
15801
15802_LT_EOF
15803 ;;
15804 *)
15805 # For security reasons, it is highly recommended that you always
15806 # use absolute paths for naming shared libraries, and exclude the
15807 # DT_RUNPATH tag from executables and libraries. But doing so
15808 # requires that you compile everything twice, which is a pain.
15809 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15810 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15811 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15812 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15813 else
15814 ld_shlibs=no
15815 fi
15816 ;;
15817 esac
15818 ;;
15819
15820 sunos4*)
15821 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15822 wlarc=
15823 hardcode_direct=yes
15824 hardcode_shlibpath_var=no
15825 ;;
15826
15827 *)
15828 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000015829 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15830 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 +000015831 else
15832 ld_shlibs=no
15833 fi
15834 ;;
15835 esac
15836
15837 if test "$ld_shlibs" = no; then
15838 runpath_var=
15839 hardcode_libdir_flag_spec=
15840 export_dynamic_flag_spec=
15841 whole_archive_flag_spec=
15842 fi
15843 else
15844 # PORTME fill in a description of your system's linker (not GNU ld)
15845 case $host_os in
15846 aix3*)
15847 allow_undefined_flag=unsupported
15848 always_export_symbols=yes
15849 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'
15850 # Note: this linker hardcodes the directories in LIBPATH if there
15851 # are no directories specified by -L.
15852 hardcode_minus_L=yes
15853 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15854 # Neither direct hardcoding nor static linking is supported with a
15855 # broken collect2.
15856 hardcode_direct=unsupported
15857 fi
15858 ;;
15859
15860 aix[4-9]*)
15861 if test "$host_cpu" = ia64; then
15862 # On IA64, the linker does run time linking by default, so we don't
15863 # have to do anything special.
15864 aix_use_runtimelinking=no
15865 exp_sym_flag='-Bexport'
15866 no_entry_flag=""
15867 else
15868 # If we're using GNU nm, then we don't want the "-C" option.
15869 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000015870 # Also, AIX nm treats weak defined symbols like other global
15871 # defined symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000015872 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000015873 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 +000015874 else
15875 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'
15876 fi
15877 aix_use_runtimelinking=no
15878
15879 # Test if we are trying to use run time linking or normal
15880 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15881 # need to do runtime linking.
15882 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15883 for ld_flag in $LDFLAGS; do
15884 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15885 aix_use_runtimelinking=yes
15886 break
15887 fi
15888 done
15889 ;;
15890 esac
15891
15892 exp_sym_flag='-bexport'
15893 no_entry_flag='-bnoentry'
15894 fi
15895
15896 # When large executables or shared objects are built, AIX ld can
15897 # have problems creating the table of contents. If linking a library
15898 # or program results in "error TOC overflow" add -mminimal-toc to
15899 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15900 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15901
15902 archive_cmds=''
15903 hardcode_direct=yes
15904 hardcode_direct_absolute=yes
15905 hardcode_libdir_separator=':'
15906 link_all_deplibs=yes
15907 file_list_spec='${wl}-f,'
15908
15909 if test "$GCC" = yes; then
15910 case $host_os in aix4.[012]|aix4.[012].*)
15911 # We only want to do this on AIX 4.2 and lower, the check
15912 # below for broken collect2 doesn't work under 4.3+
15913 collect2name=`${CC} -print-prog-name=collect2`
15914 if test -f "$collect2name" &&
15915 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15916 then
15917 # We have reworked collect2
15918 :
15919 else
15920 # We have old collect2
15921 hardcode_direct=unsupported
15922 # It fails to find uninstalled libraries when the uninstalled
15923 # path is not listed in the libpath. Setting hardcode_minus_L
15924 # to unsupported forces relinking
15925 hardcode_minus_L=yes
15926 hardcode_libdir_flag_spec='-L$libdir'
15927 hardcode_libdir_separator=
15928 fi
15929 ;;
15930 esac
15931 shared_flag='-shared'
15932 if test "$aix_use_runtimelinking" = yes; then
15933 shared_flag="$shared_flag "'${wl}-G'
15934 fi
15935 else
15936 # not using gcc
15937 if test "$host_cpu" = ia64; then
15938 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15939 # chokes on -Wl,-G. The following line is correct:
15940 shared_flag='-G'
15941 else
15942 if test "$aix_use_runtimelinking" = yes; then
15943 shared_flag='${wl}-G'
15944 else
15945 shared_flag='${wl}-bM:SRE'
15946 fi
15947 fi
15948 fi
15949
15950 export_dynamic_flag_spec='${wl}-bexpall'
15951 # It seems that -bexpall does not export symbols beginning with
15952 # underscore (_), so it is better to generate a list of symbols to export.
15953 always_export_symbols=yes
15954 if test "$aix_use_runtimelinking" = yes; then
15955 # Warning - without using the other runtime loading flags (-brtl),
15956 # -berok will link without error, but may produce a broken library.
15957 allow_undefined_flag='-berok'
15958 # Determine the default libpath from the value encoded in an
15959 # empty executable.
cristyda16f162011-02-19 23:52:17 +000015960 if test "${lt_cv_aix_libpath+set}" = set; then
15961 aix_libpath=$lt_cv_aix_libpath
15962else
15963 if ${lt_cv_aix_libpath_+:} false; then :
15964 $as_echo_n "(cached) " >&6
15965else
15966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015967/* end confdefs.h. */
15968
15969int
15970main ()
15971{
15972
15973 ;
15974 return 0;
15975}
15976_ACEOF
15977if ac_fn_c_try_link "$LINENO"; then :
15978
cristyda16f162011-02-19 23:52:17 +000015979 lt_aix_libpath_sed='
15980 /Import File Strings/,/^$/ {
15981 /^0/ {
15982 s/^0 *\([^ ]*\) *$/\1/
15983 p
15984 }
15985 }'
15986 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15987 # Check for a 64-bit object if we didn't find anything.
15988 if test -z "$lt_cv_aix_libpath_"; then
15989 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15990 fi
cristy73bd4a52010-10-05 11:24:23 +000015991fi
15992rm -f core conftest.err conftest.$ac_objext \
15993 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015994 if test -z "$lt_cv_aix_libpath_"; then
15995 lt_cv_aix_libpath_="/usr/lib:/lib"
15996 fi
15997
15998fi
15999
16000 aix_libpath=$lt_cv_aix_libpath_
16001fi
cristy73bd4a52010-10-05 11:24:23 +000016002
16003 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cristy0c60a692010-11-04 01:09:47 +000016004 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 +000016005 else
16006 if test "$host_cpu" = ia64; then
16007 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
16008 allow_undefined_flag="-z nodefs"
16009 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"
16010 else
16011 # Determine the default libpath from the value encoded in an
16012 # empty executable.
cristyda16f162011-02-19 23:52:17 +000016013 if test "${lt_cv_aix_libpath+set}" = set; then
16014 aix_libpath=$lt_cv_aix_libpath
16015else
16016 if ${lt_cv_aix_libpath_+:} false; then :
16017 $as_echo_n "(cached) " >&6
16018else
16019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000016020/* end confdefs.h. */
16021
16022int
16023main ()
16024{
16025
16026 ;
16027 return 0;
16028}
16029_ACEOF
16030if ac_fn_c_try_link "$LINENO"; then :
16031
cristyda16f162011-02-19 23:52:17 +000016032 lt_aix_libpath_sed='
16033 /Import File Strings/,/^$/ {
16034 /^0/ {
16035 s/^0 *\([^ ]*\) *$/\1/
16036 p
16037 }
16038 }'
16039 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16040 # Check for a 64-bit object if we didn't find anything.
16041 if test -z "$lt_cv_aix_libpath_"; then
16042 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16043 fi
cristy73bd4a52010-10-05 11:24:23 +000016044fi
16045rm -f core conftest.err conftest.$ac_objext \
16046 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000016047 if test -z "$lt_cv_aix_libpath_"; then
16048 lt_cv_aix_libpath_="/usr/lib:/lib"
16049 fi
16050
16051fi
16052
16053 aix_libpath=$lt_cv_aix_libpath_
16054fi
cristy73bd4a52010-10-05 11:24:23 +000016055
16056 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16057 # Warning - without using the other run time loading flags,
16058 # -berok will link without error, but may produce a broken library.
16059 no_undefined_flag=' ${wl}-bernotok'
16060 allow_undefined_flag=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000016061 if test "$with_gnu_ld" = yes; then
16062 # We only use this code for GNU lds that support --whole-archive.
16063 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16064 else
16065 # Exported symbols can be pulled into shared objects from archives
16066 whole_archive_flag_spec='$convenience'
16067 fi
cristy73bd4a52010-10-05 11:24:23 +000016068 archive_cmds_need_lc=yes
16069 # This is similar to how AIX traditionally builds its shared libraries.
16070 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'
16071 fi
16072 fi
16073 ;;
16074
16075 amigaos*)
16076 case $host_cpu in
16077 powerpc)
16078 # see comment about AmigaOS4 .so support
16079 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16080 archive_expsym_cmds=''
16081 ;;
16082 m68k)
16083 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)'
16084 hardcode_libdir_flag_spec='-L$libdir'
16085 hardcode_minus_L=yes
16086 ;;
16087 esac
16088 ;;
16089
16090 bsdi[45]*)
16091 export_dynamic_flag_spec=-rdynamic
16092 ;;
16093
16094 cygwin* | mingw* | pw32* | cegcc*)
16095 # When not using gcc, we currently assume that we are using
16096 # Microsoft Visual C++.
16097 # hardcode_libdir_flag_spec is actually meaningless, as there is
16098 # no search path for DLLs.
cristyda16f162011-02-19 23:52:17 +000016099 case $cc_basename in
16100 cl*)
16101 # Native MSVC
16102 hardcode_libdir_flag_spec=' '
16103 allow_undefined_flag=unsupported
16104 always_export_symbols=yes
16105 file_list_spec='@'
16106 # Tell ltmain to make .lib files, not .a files.
16107 libext=lib
16108 # Tell ltmain to make .dll files, not .so files.
16109 shrext_cmds=".dll"
16110 # FIXME: Setting linknames here is a bad hack.
16111 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
16112 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16113 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
16114 else
16115 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
16116 fi~
16117 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
16118 linknames='
16119 # The linker will not automatically build a static lib if we build a DLL.
16120 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
16121 enable_shared_with_static_runtimes=yes
cristy99bd5232011-12-07 14:38:20 +000016122 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
cristyda16f162011-02-19 23:52:17 +000016123 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16124 # Don't use ranlib
16125 old_postinstall_cmds='chmod 644 $oldlib'
16126 postlink_cmds='lt_outputfile="@OUTPUT@"~
16127 lt_tool_outputfile="@TOOL_OUTPUT@"~
16128 case $lt_outputfile in
16129 *.exe|*.EXE) ;;
16130 *)
16131 lt_outputfile="$lt_outputfile.exe"
16132 lt_tool_outputfile="$lt_tool_outputfile.exe"
16133 ;;
16134 esac~
16135 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
16136 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
16137 $RM "$lt_outputfile.manifest";
16138 fi'
16139 ;;
16140 *)
16141 # Assume MSVC wrapper
16142 hardcode_libdir_flag_spec=' '
16143 allow_undefined_flag=unsupported
16144 # Tell ltmain to make .lib files, not .a files.
16145 libext=lib
16146 # Tell ltmain to make .dll files, not .so files.
16147 shrext_cmds=".dll"
16148 # FIXME: Setting linknames here is a bad hack.
16149 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16150 # The linker will automatically build a .lib file if we build a DLL.
16151 old_archive_from_new_cmds='true'
16152 # FIXME: Should let the user specify the lib program.
16153 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16154 enable_shared_with_static_runtimes=yes
16155 ;;
16156 esac
cristy73bd4a52010-10-05 11:24:23 +000016157 ;;
16158
16159 darwin* | rhapsody*)
16160
16161
16162 archive_cmds_need_lc=no
16163 hardcode_direct=no
16164 hardcode_automatic=yes
16165 hardcode_shlibpath_var=unsupported
cristy0c60a692010-11-04 01:09:47 +000016166 if test "$lt_cv_ld_force_load" = "yes"; then
16167 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 +000016168
cristy0c60a692010-11-04 01:09:47 +000016169 else
16170 whole_archive_flag_spec=''
16171 fi
cristy73bd4a52010-10-05 11:24:23 +000016172 link_all_deplibs=yes
16173 allow_undefined_flag="$_lt_dar_allow_undefined"
16174 case $cc_basename in
16175 ifort*) _lt_dar_can_shared=yes ;;
16176 *) _lt_dar_can_shared=$GCC ;;
16177 esac
16178 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000016179 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000016180 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16181 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16182 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}"
16183 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}"
16184
16185 else
16186 ld_shlibs=no
16187 fi
16188
16189 ;;
16190
16191 dgux*)
16192 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16193 hardcode_libdir_flag_spec='-L$libdir'
16194 hardcode_shlibpath_var=no
16195 ;;
16196
cristy73bd4a52010-10-05 11:24:23 +000016197 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16198 # support. Future versions do this automatically, but an explicit c++rt0.o
16199 # does not break anything, and helps significantly (at the cost of a little
16200 # extra space).
16201 freebsd2.2*)
16202 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16203 hardcode_libdir_flag_spec='-R$libdir'
16204 hardcode_direct=yes
16205 hardcode_shlibpath_var=no
16206 ;;
16207
16208 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
cristy99bd5232011-12-07 14:38:20 +000016209 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000016210 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16211 hardcode_direct=yes
16212 hardcode_minus_L=yes
16213 hardcode_shlibpath_var=no
16214 ;;
16215
16216 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16217 freebsd* | dragonfly*)
cristyda16f162011-02-19 23:52:17 +000016218 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000016219 hardcode_libdir_flag_spec='-R$libdir'
16220 hardcode_direct=yes
16221 hardcode_shlibpath_var=no
16222 ;;
16223
16224 hpux9*)
16225 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000016226 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 +000016227 else
16228 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'
16229 fi
16230 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16231 hardcode_libdir_separator=:
16232 hardcode_direct=yes
16233
16234 # hardcode_minus_L: Not really in the search PATH,
16235 # but as the default location of the library.
16236 hardcode_minus_L=yes
16237 export_dynamic_flag_spec='${wl}-E'
16238 ;;
16239
16240 hpux10*)
cristy0c60a692010-11-04 01:09:47 +000016241 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000016242 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 +000016243 else
16244 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16245 fi
16246 if test "$with_gnu_ld" = no; then
16247 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
cristy73bd4a52010-10-05 11:24:23 +000016248 hardcode_libdir_separator=:
16249 hardcode_direct=yes
16250 hardcode_direct_absolute=yes
16251 export_dynamic_flag_spec='${wl}-E'
16252 # hardcode_minus_L: Not really in the search PATH,
16253 # but as the default location of the library.
16254 hardcode_minus_L=yes
16255 fi
16256 ;;
16257
16258 hpux11*)
cristy0c60a692010-11-04 01:09:47 +000016259 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristy73bd4a52010-10-05 11:24:23 +000016260 case $host_cpu in
16261 hppa*64*)
16262 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16263 ;;
16264 ia64*)
cristyda16f162011-02-19 23:52:17 +000016265 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000016266 ;;
16267 *)
cristyda16f162011-02-19 23:52:17 +000016268 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 +000016269 ;;
16270 esac
16271 else
16272 case $host_cpu in
16273 hppa*64*)
16274 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16275 ;;
16276 ia64*)
16277 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16278 ;;
16279 *)
cristy0c60a692010-11-04 01:09:47 +000016280
16281 # Older versions of the 11.00 compiler do not understand -b yet
16282 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16284$as_echo_n "checking if $CC understands -b... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016285if ${lt_cv_prog_compiler__b+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000016286 $as_echo_n "(cached) " >&6
16287else
16288 lt_cv_prog_compiler__b=no
16289 save_LDFLAGS="$LDFLAGS"
16290 LDFLAGS="$LDFLAGS -b"
16291 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16292 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16293 # The linker can only warn and ignore the option if not recognized
16294 # So say no if there are warnings
16295 if test -s conftest.err; then
16296 # Append any errors to the config.log.
16297 cat conftest.err 1>&5
16298 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16299 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16300 if diff conftest.exp conftest.er2 >/dev/null; then
16301 lt_cv_prog_compiler__b=yes
16302 fi
16303 else
16304 lt_cv_prog_compiler__b=yes
16305 fi
16306 fi
16307 $RM -r conftest*
16308 LDFLAGS="$save_LDFLAGS"
16309
16310fi
16311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16312$as_echo "$lt_cv_prog_compiler__b" >&6; }
16313
16314if test x"$lt_cv_prog_compiler__b" = xyes; then
16315 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16316else
16317 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16318fi
16319
cristy73bd4a52010-10-05 11:24:23 +000016320 ;;
16321 esac
16322 fi
16323 if test "$with_gnu_ld" = no; then
16324 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16325 hardcode_libdir_separator=:
16326
16327 case $host_cpu in
16328 hppa*64*|ia64*)
16329 hardcode_direct=no
16330 hardcode_shlibpath_var=no
16331 ;;
16332 *)
16333 hardcode_direct=yes
16334 hardcode_direct_absolute=yes
16335 export_dynamic_flag_spec='${wl}-E'
16336
16337 # hardcode_minus_L: Not really in the search PATH,
16338 # but as the default location of the library.
16339 hardcode_minus_L=yes
16340 ;;
16341 esac
16342 fi
16343 ;;
16344
16345 irix5* | irix6* | nonstopux*)
16346 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000016347 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 +000016348 # Try to use the -exported_symbol ld option, if it does not
16349 # work, assume that -exports_file does not work either and
16350 # implicitly export all symbols.
cristyda16f162011-02-19 23:52:17 +000016351 # This should be the same for all languages, so no per-tag cache variable.
16352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
16353$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
16354if ${lt_cv_irix_exported_symbol+:} false; then :
16355 $as_echo_n "(cached) " >&6
16356else
16357 save_LDFLAGS="$LDFLAGS"
16358 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000016360/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000016361int foo (void) { return 0; }
cristy73bd4a52010-10-05 11:24:23 +000016362_ACEOF
16363if ac_fn_c_try_link "$LINENO"; then :
cristyda16f162011-02-19 23:52:17 +000016364 lt_cv_irix_exported_symbol=yes
16365else
16366 lt_cv_irix_exported_symbol=no
cristy73bd4a52010-10-05 11:24:23 +000016367fi
16368rm -f core conftest.err conftest.$ac_objext \
16369 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000016370 LDFLAGS="$save_LDFLAGS"
16371fi
16372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
16373$as_echo "$lt_cv_irix_exported_symbol" >&6; }
16374 if test "$lt_cv_irix_exported_symbol" = yes; then
16375 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'
16376 fi
cristy73bd4a52010-10-05 11:24:23 +000016377 else
cristy0c60a692010-11-04 01:09:47 +000016378 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'
16379 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 +000016380 fi
16381 archive_cmds_need_lc='no'
16382 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16383 hardcode_libdir_separator=:
16384 inherit_rpath=yes
16385 link_all_deplibs=yes
16386 ;;
16387
16388 netbsd*)
16389 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16390 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16391 else
16392 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16393 fi
16394 hardcode_libdir_flag_spec='-R$libdir'
16395 hardcode_direct=yes
16396 hardcode_shlibpath_var=no
16397 ;;
16398
16399 newsos6)
16400 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16401 hardcode_direct=yes
16402 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16403 hardcode_libdir_separator=:
16404 hardcode_shlibpath_var=no
16405 ;;
16406
16407 *nto* | *qnx*)
16408 ;;
16409
16410 openbsd*)
16411 if test -f /usr/libexec/ld.so; then
16412 hardcode_direct=yes
16413 hardcode_shlibpath_var=no
16414 hardcode_direct_absolute=yes
16415 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16416 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16417 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16418 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16419 export_dynamic_flag_spec='${wl}-E'
16420 else
16421 case $host_os in
16422 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16423 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16424 hardcode_libdir_flag_spec='-R$libdir'
16425 ;;
16426 *)
16427 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16428 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16429 ;;
16430 esac
16431 fi
16432 else
16433 ld_shlibs=no
16434 fi
16435 ;;
16436
16437 os2*)
16438 hardcode_libdir_flag_spec='-L$libdir'
16439 hardcode_minus_L=yes
16440 allow_undefined_flag=unsupported
cristy0c60a692010-11-04 01:09:47 +000016441 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 +000016442 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16443 ;;
16444
16445 osf3*)
16446 if test "$GCC" = yes; then
16447 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000016448 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 +000016449 else
16450 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000016451 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 +000016452 fi
16453 archive_cmds_need_lc='no'
16454 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16455 hardcode_libdir_separator=:
16456 ;;
16457
16458 osf4* | osf5*) # as osf3* with the addition of -msym flag
16459 if test "$GCC" = yes; then
16460 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristyda16f162011-02-19 23:52:17 +000016461 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 +000016462 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16463 else
16464 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000016465 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 +000016466 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 +000016467 $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 +000016468
16469 # Both c and cxx compiler support -rpath directly
16470 hardcode_libdir_flag_spec='-rpath $libdir'
16471 fi
16472 archive_cmds_need_lc='no'
16473 hardcode_libdir_separator=:
16474 ;;
16475
16476 solaris*)
16477 no_undefined_flag=' -z defs'
16478 if test "$GCC" = yes; then
16479 wlarc='${wl}'
cristyda16f162011-02-19 23:52:17 +000016480 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 +000016481 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 +000016482 $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 +000016483 else
16484 case `$CC -V 2>&1` in
16485 *"Compilers 5.0"*)
16486 wlarc=''
16487 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16488 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16489 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16490 ;;
16491 *)
16492 wlarc='${wl}'
16493 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16494 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16495 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16496 ;;
16497 esac
16498 fi
16499 hardcode_libdir_flag_spec='-R$libdir'
16500 hardcode_shlibpath_var=no
16501 case $host_os in
16502 solaris2.[0-5] | solaris2.[0-5].*) ;;
16503 *)
16504 # The compiler driver will combine and reorder linker options,
16505 # but understands `-z linker_flag'. GCC discards it without `$wl',
16506 # but is careful enough not to reorder.
16507 # Supported since Solaris 2.6 (maybe 2.5.1?)
16508 if test "$GCC" = yes; then
16509 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16510 else
16511 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16512 fi
16513 ;;
16514 esac
16515 link_all_deplibs=yes
16516 ;;
16517
16518 sunos4*)
16519 if test "x$host_vendor" = xsequent; then
16520 # Use $CC to link under sequent, because it throws in some extra .o
16521 # files that make .init and .fini sections work.
16522 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16523 else
16524 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16525 fi
16526 hardcode_libdir_flag_spec='-L$libdir'
16527 hardcode_direct=yes
16528 hardcode_minus_L=yes
16529 hardcode_shlibpath_var=no
16530 ;;
16531
16532 sysv4)
16533 case $host_vendor in
16534 sni)
16535 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16536 hardcode_direct=yes # is this really true???
16537 ;;
16538 siemens)
16539 ## LD is ld it makes a PLAMLIB
16540 ## CC just makes a GrossModule.
16541 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16542 reload_cmds='$CC -r -o $output$reload_objs'
16543 hardcode_direct=no
16544 ;;
16545 motorola)
16546 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16547 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16548 ;;
16549 esac
16550 runpath_var='LD_RUN_PATH'
16551 hardcode_shlibpath_var=no
16552 ;;
16553
16554 sysv4.3*)
16555 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16556 hardcode_shlibpath_var=no
16557 export_dynamic_flag_spec='-Bexport'
16558 ;;
16559
16560 sysv4*MP*)
16561 if test -d /usr/nec; then
16562 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16563 hardcode_shlibpath_var=no
16564 runpath_var=LD_RUN_PATH
16565 hardcode_runpath_var=yes
16566 ld_shlibs=yes
16567 fi
16568 ;;
16569
16570 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16571 no_undefined_flag='${wl}-z,text'
16572 archive_cmds_need_lc=no
16573 hardcode_shlibpath_var=no
16574 runpath_var='LD_RUN_PATH'
16575
16576 if test "$GCC" = yes; then
16577 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16578 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16579 else
16580 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16581 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16582 fi
16583 ;;
16584
16585 sysv5* | sco3.2v5* | sco5v6*)
16586 # Note: We can NOT use -z defs as we might desire, because we do not
16587 # link with -lc, and that would cause any symbols used from libc to
16588 # always be unresolved, which means just about no library would
16589 # ever link correctly. If we're not using GNU ld we use -z text
16590 # though, which does catch some bad symbols but isn't as heavy-handed
16591 # as -z defs.
16592 no_undefined_flag='${wl}-z,text'
16593 allow_undefined_flag='${wl}-z,nodefs'
16594 archive_cmds_need_lc=no
16595 hardcode_shlibpath_var=no
16596 hardcode_libdir_flag_spec='${wl}-R,$libdir'
16597 hardcode_libdir_separator=':'
16598 link_all_deplibs=yes
16599 export_dynamic_flag_spec='${wl}-Bexport'
16600 runpath_var='LD_RUN_PATH'
16601
16602 if test "$GCC" = yes; then
16603 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16604 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16605 else
16606 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16607 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16608 fi
16609 ;;
16610
16611 uts4*)
16612 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16613 hardcode_libdir_flag_spec='-L$libdir'
16614 hardcode_shlibpath_var=no
16615 ;;
16616
16617 *)
16618 ld_shlibs=no
16619 ;;
16620 esac
16621
16622 if test x$host_vendor = xsni; then
16623 case $host in
16624 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16625 export_dynamic_flag_spec='${wl}-Blargedynsym'
16626 ;;
16627 esac
16628 fi
16629 fi
16630
16631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16632$as_echo "$ld_shlibs" >&6; }
16633test "$ld_shlibs" = no && can_build_shared=no
16634
16635with_gnu_ld=$with_gnu_ld
16636
16637
16638
16639
16640
16641
16642
16643
16644
16645
16646
16647
16648
16649
16650
16651#
16652# Do we need to explicitly link libc?
16653#
16654case "x$archive_cmds_need_lc" in
16655x|xyes)
16656 # Assume -lc should be added
16657 archive_cmds_need_lc=yes
16658
16659 if test "$enable_shared" = yes && test "$GCC" = yes; then
16660 case $archive_cmds in
16661 *'~'*)
16662 # FIXME: we may have to deal with multi-command sequences.
16663 ;;
16664 '$CC '*)
16665 # Test whether the compiler implicitly links with -lc since on some
16666 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16667 # to ld, don't add -lc before -lgcc.
16668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16669$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016670if ${lt_cv_archive_cmds_need_lc+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000016671 $as_echo_n "(cached) " >&6
16672else
16673 $RM conftest*
16674 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000016675
cristy0c60a692010-11-04 01:09:47 +000016676 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000016677 (eval $ac_compile) 2>&5
16678 ac_status=$?
16679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16680 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000016681 soname=conftest
16682 lib=conftest
16683 libobjs=conftest.$ac_objext
16684 deplibs=
16685 wl=$lt_prog_compiler_wl
16686 pic_flag=$lt_prog_compiler_pic
16687 compiler_flags=-v
16688 linker_flags=-v
16689 verstring=
16690 output_objdir=.
16691 libname=conftest
16692 lt_save_allow_undefined_flag=$allow_undefined_flag
16693 allow_undefined_flag=
16694 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 +000016695 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16696 ac_status=$?
16697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16698 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000016699 then
16700 lt_cv_archive_cmds_need_lc=no
16701 else
16702 lt_cv_archive_cmds_need_lc=yes
16703 fi
16704 allow_undefined_flag=$lt_save_allow_undefined_flag
16705 else
16706 cat conftest.err 1>&5
16707 fi
16708 $RM conftest*
16709
16710fi
16711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16712$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16713 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
cristy73bd4a52010-10-05 11:24:23 +000016714 ;;
16715 esac
16716 fi
16717 ;;
16718esac
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
16778
16779
16780
16781
16782
16783
16784
16785
16786
16787
16788
16789
16790
16791
16792
16793
16794
16795
16796
16797
16798
16799
16800
16801
16802
16803
16804
16805
16806
16807
16808
16809
16810
16811
16812
16813
16814
16815
16816
16817
16818
16819
16820
16821
16822
16823
16824
16825
16826
16827
16828
16829
16830
16831
16832
16833
16834
16835
16836
16837
16838
16839
16840
16841
16842
16843
16844
16845
16846
16847
16848
16849
16850
16851
16852
16853
16854
16855
16856
16857
16858
16859
16860
16861
16862
16863
16864
16865
16866
16867
16868
16869
16870
cristy73bd4a52010-10-05 11:24:23 +000016871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16872$as_echo_n "checking dynamic linker characteristics... " >&6; }
16873
16874if test "$GCC" = yes; then
16875 case $host_os in
16876 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16877 *) lt_awk_arg="/^libraries:/" ;;
16878 esac
cristy0c60a692010-11-04 01:09:47 +000016879 case $host_os in
16880 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16881 *) lt_sed_strip_eq="s,=/,/,g" ;;
16882 esac
16883 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16884 case $lt_search_path_spec in
16885 *\;*)
cristy73bd4a52010-10-05 11:24:23 +000016886 # if the path contains ";" then we assume it to be the separator
16887 # otherwise default to the standard path separator (i.e. ":") - it is
16888 # assumed that no part of a normal pathname contains ";" but that should
16889 # okay in the real world where ";" in dirpaths is itself problematic.
cristy0c60a692010-11-04 01:09:47 +000016890 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16891 ;;
16892 *)
16893 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16894 ;;
16895 esac
cristy73bd4a52010-10-05 11:24:23 +000016896 # Ok, now we have the path, separated by spaces, we can step through it
16897 # and add multilib dir if necessary.
16898 lt_tmp_lt_search_path_spec=
16899 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16900 for lt_sys_path in $lt_search_path_spec; do
16901 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16902 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16903 else
16904 test -d "$lt_sys_path" && \
16905 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16906 fi
16907 done
cristy0c60a692010-11-04 01:09:47 +000016908 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
cristy73bd4a52010-10-05 11:24:23 +000016909BEGIN {RS=" "; FS="/|\n";} {
16910 lt_foo="";
16911 lt_count=0;
16912 for (lt_i = NF; lt_i > 0; lt_i--) {
16913 if ($lt_i != "" && $lt_i != ".") {
16914 if ($lt_i == "..") {
16915 lt_count++;
16916 } else {
16917 if (lt_count == 0) {
16918 lt_foo="/" $lt_i lt_foo;
16919 } else {
16920 lt_count--;
16921 }
16922 }
16923 }
16924 }
16925 if (lt_foo != "") { lt_freq[lt_foo]++; }
16926 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16927}'`
cristy0c60a692010-11-04 01:09:47 +000016928 # AWK program above erroneously prepends '/' to C:/dos/paths
16929 # for these hosts.
16930 case $host_os in
16931 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16932 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16933 esac
16934 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
cristy73bd4a52010-10-05 11:24:23 +000016935else
16936 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16937fi
16938library_names_spec=
16939libname_spec='lib$name'
16940soname_spec=
16941shrext_cmds=".so"
16942postinstall_cmds=
16943postuninstall_cmds=
16944finish_cmds=
16945finish_eval=
16946shlibpath_var=
16947shlibpath_overrides_runpath=unknown
16948version_type=none
16949dynamic_linker="$host_os ld.so"
16950sys_lib_dlsearch_path_spec="/lib /usr/lib"
16951need_lib_prefix=unknown
16952hardcode_into_libs=no
16953
16954# when you set need_version to no, make sure it does not cause -set_version
16955# flags to be left without arguments
16956need_version=unknown
16957
16958case $host_os in
16959aix3*)
cristy99bd5232011-12-07 14:38:20 +000016960 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016961 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16962 shlibpath_var=LIBPATH
16963
16964 # AIX 3 has no versioning support, so we append a major version to the name.
16965 soname_spec='${libname}${release}${shared_ext}$major'
16966 ;;
16967
16968aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000016969 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016970 need_lib_prefix=no
16971 need_version=no
16972 hardcode_into_libs=yes
16973 if test "$host_cpu" = ia64; then
16974 # AIX 5 supports IA64
16975 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16976 shlibpath_var=LD_LIBRARY_PATH
16977 else
16978 # With GCC up to 2.95.x, collect2 would create an import file
16979 # for dependence libraries. The import file would start with
16980 # the line `#! .'. This would cause the generated library to
16981 # depend on `.', always an invalid library. This was fixed in
16982 # development snapshots of GCC prior to 3.0.
16983 case $host_os in
16984 aix4 | aix4.[01] | aix4.[01].*)
16985 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16986 echo ' yes '
16987 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16988 :
16989 else
16990 can_build_shared=no
16991 fi
16992 ;;
16993 esac
16994 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16995 # soname into executable. Probably we can add versioning support to
16996 # collect2, so additional links can be useful in future.
16997 if test "$aix_use_runtimelinking" = yes; then
16998 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16999 # instead of lib<name>.a to let people know that these are not
17000 # typical AIX shared libraries.
17001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17002 else
17003 # We preserve .a as extension for shared libraries through AIX4.2
17004 # and later when we are not doing run time linking.
17005 library_names_spec='${libname}${release}.a $libname.a'
17006 soname_spec='${libname}${release}${shared_ext}$major'
17007 fi
17008 shlibpath_var=LIBPATH
17009 fi
17010 ;;
17011
17012amigaos*)
17013 case $host_cpu in
17014 powerpc)
17015 # Since July 2007 AmigaOS4 officially supports .so libraries.
17016 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17018 ;;
17019 m68k)
17020 library_names_spec='$libname.ixlibrary $libname.a'
17021 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000017022 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 +000017023 ;;
17024 esac
17025 ;;
17026
17027beos*)
17028 library_names_spec='${libname}${shared_ext}'
17029 dynamic_linker="$host_os ld.so"
17030 shlibpath_var=LIBRARY_PATH
17031 ;;
17032
17033bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000017034 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017035 need_version=no
17036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17037 soname_spec='${libname}${release}${shared_ext}$major'
17038 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17039 shlibpath_var=LD_LIBRARY_PATH
17040 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17041 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17042 # the default ld.so.conf also contains /usr/contrib/lib and
17043 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17044 # libtool to hard-code these into programs
17045 ;;
17046
17047cygwin* | mingw* | pw32* | cegcc*)
17048 version_type=windows
17049 shrext_cmds=".dll"
17050 need_version=no
17051 need_lib_prefix=no
17052
cristyda16f162011-02-19 23:52:17 +000017053 case $GCC,$cc_basename in
17054 yes,*)
17055 # gcc
cristy73bd4a52010-10-05 11:24:23 +000017056 library_names_spec='$libname.dll.a'
17057 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17058 postinstall_cmds='base_file=`basename \${file}`~
17059 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17060 dldir=$destdir/`dirname \$dlpath`~
17061 test -d \$dldir || mkdir -p \$dldir~
17062 $install_prog $dir/$dlname \$dldir/$dlname~
17063 chmod a+x \$dldir/$dlname~
17064 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17065 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17066 fi'
17067 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17068 dlpath=$dir/\$dldll~
17069 $RM \$dlpath'
17070 shlibpath_overrides_runpath=yes
17071
17072 case $host_os in
17073 cygwin*)
17074 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17075 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000017076
17077 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
cristy73bd4a52010-10-05 11:24:23 +000017078 ;;
17079 mingw* | cegcc*)
17080 # MinGW DLLs use traditional 'lib' prefix
17081 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000017082 ;;
17083 pw32*)
17084 # pw32 DLLs use 'pw' prefix rather than 'lib'
17085 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17086 ;;
17087 esac
cristyda16f162011-02-19 23:52:17 +000017088 dynamic_linker='Win32 ld.exe'
17089 ;;
17090
17091 *,cl*)
17092 # Native MSVC
17093 libname_spec='$name'
17094 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17095 library_names_spec='${libname}.dll.lib'
17096
17097 case $build_os in
17098 mingw*)
17099 sys_lib_search_path_spec=
17100 lt_save_ifs=$IFS
17101 IFS=';'
17102 for lt_path in $LIB
17103 do
17104 IFS=$lt_save_ifs
17105 # Let DOS variable expansion print the short 8.3 style file name.
17106 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17107 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17108 done
17109 IFS=$lt_save_ifs
17110 # Convert to MSYS style.
17111 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17112 ;;
17113 cygwin*)
17114 # Convert to unix form, then to dos form, then back to unix form
17115 # but this time dos style (no spaces!) so that the unix form looks
17116 # like /cygdrive/c/PROGRA~1:/cygdr...
17117 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17118 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17119 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17120 ;;
17121 *)
17122 sys_lib_search_path_spec="$LIB"
17123 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17124 # It is most probably a Windows format PATH.
17125 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17126 else
17127 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17128 fi
17129 # FIXME: find the short name or the path components, as spaces are
17130 # common. (e.g. "Program Files" -> "PROGRA~1")
17131 ;;
17132 esac
17133
17134 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17135 postinstall_cmds='base_file=`basename \${file}`~
17136 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17137 dldir=$destdir/`dirname \$dlpath`~
17138 test -d \$dldir || mkdir -p \$dldir~
17139 $install_prog $dir/$dlname \$dldir/$dlname'
17140 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17141 dlpath=$dir/\$dldll~
17142 $RM \$dlpath'
17143 shlibpath_overrides_runpath=yes
17144 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000017145 ;;
17146
17147 *)
cristyda16f162011-02-19 23:52:17 +000017148 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000017149 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000017150 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000017151 ;;
17152 esac
cristy73bd4a52010-10-05 11:24:23 +000017153 # FIXME: first we should search . and the directory the executable is in
17154 shlibpath_var=PATH
17155 ;;
17156
17157darwin* | rhapsody*)
17158 dynamic_linker="$host_os dyld"
17159 version_type=darwin
17160 need_lib_prefix=no
17161 need_version=no
17162 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17163 soname_spec='${libname}${release}${major}$shared_ext'
17164 shlibpath_overrides_runpath=yes
17165 shlibpath_var=DYLD_LIBRARY_PATH
17166 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17167
17168 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17169 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17170 ;;
17171
17172dgux*)
cristy99bd5232011-12-07 14:38:20 +000017173 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017174 need_lib_prefix=no
17175 need_version=no
17176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17177 soname_spec='${libname}${release}${shared_ext}$major'
17178 shlibpath_var=LD_LIBRARY_PATH
17179 ;;
17180
cristy73bd4a52010-10-05 11:24:23 +000017181freebsd* | dragonfly*)
17182 # DragonFly does not have aout. When/if they implement a new
17183 # versioning mechanism, adjust this.
17184 if test -x /usr/bin/objformat; then
17185 objformat=`/usr/bin/objformat`
17186 else
17187 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000017188 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000017189 *) objformat=elf ;;
17190 esac
17191 fi
17192 version_type=freebsd-$objformat
17193 case $version_type in
17194 freebsd-elf*)
17195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17196 need_version=no
17197 need_lib_prefix=no
17198 ;;
17199 freebsd-*)
17200 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17201 need_version=yes
17202 ;;
17203 esac
17204 shlibpath_var=LD_LIBRARY_PATH
17205 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000017206 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000017207 shlibpath_overrides_runpath=yes
17208 ;;
17209 freebsd3.[01]* | freebsdelf3.[01]*)
17210 shlibpath_overrides_runpath=yes
17211 hardcode_into_libs=yes
17212 ;;
17213 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17214 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17215 shlibpath_overrides_runpath=no
17216 hardcode_into_libs=yes
17217 ;;
17218 *) # from 4.6 on, and DragonFly
17219 shlibpath_overrides_runpath=yes
17220 hardcode_into_libs=yes
17221 ;;
17222 esac
17223 ;;
17224
17225gnu*)
cristy99bd5232011-12-07 14:38:20 +000017226 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017227 need_lib_prefix=no
17228 need_version=no
17229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17230 soname_spec='${libname}${release}${shared_ext}$major'
17231 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000017232 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000017233 hardcode_into_libs=yes
17234 ;;
17235
cristy0c60a692010-11-04 01:09:47 +000017236haiku*)
cristy99bd5232011-12-07 14:38:20 +000017237 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000017238 need_lib_prefix=no
17239 need_version=no
17240 dynamic_linker="$host_os runtime_loader"
17241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17242 soname_spec='${libname}${release}${shared_ext}$major'
17243 shlibpath_var=LIBRARY_PATH
17244 shlibpath_overrides_runpath=yes
17245 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
17246 hardcode_into_libs=yes
17247 ;;
17248
cristy73bd4a52010-10-05 11:24:23 +000017249hpux9* | hpux10* | hpux11*)
17250 # Give a soname corresponding to the major version so that dld.sl refuses to
17251 # link against other versions.
17252 version_type=sunos
17253 need_lib_prefix=no
17254 need_version=no
17255 case $host_cpu in
17256 ia64*)
17257 shrext_cmds='.so'
17258 hardcode_into_libs=yes
17259 dynamic_linker="$host_os dld.so"
17260 shlibpath_var=LD_LIBRARY_PATH
17261 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17263 soname_spec='${libname}${release}${shared_ext}$major'
17264 if test "X$HPUX_IA64_MODE" = X32; then
17265 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17266 else
17267 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17268 fi
17269 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17270 ;;
17271 hppa*64*)
17272 shrext_cmds='.sl'
17273 hardcode_into_libs=yes
17274 dynamic_linker="$host_os dld.sl"
17275 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17276 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17278 soname_spec='${libname}${release}${shared_ext}$major'
17279 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17280 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17281 ;;
17282 *)
17283 shrext_cmds='.sl'
17284 dynamic_linker="$host_os dld.sl"
17285 shlibpath_var=SHLIB_PATH
17286 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17288 soname_spec='${libname}${release}${shared_ext}$major'
17289 ;;
17290 esac
cristy0c60a692010-11-04 01:09:47 +000017291 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000017292 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000017293 # or fails outright, so override atomically:
17294 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000017295 ;;
17296
17297interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000017298 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017299 need_lib_prefix=no
17300 need_version=no
17301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17302 soname_spec='${libname}${release}${shared_ext}$major'
17303 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17304 shlibpath_var=LD_LIBRARY_PATH
17305 shlibpath_overrides_runpath=no
17306 hardcode_into_libs=yes
17307 ;;
17308
17309irix5* | irix6* | nonstopux*)
17310 case $host_os in
17311 nonstopux*) version_type=nonstopux ;;
17312 *)
17313 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000017314 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017315 else
17316 version_type=irix
17317 fi ;;
17318 esac
17319 need_lib_prefix=no
17320 need_version=no
17321 soname_spec='${libname}${release}${shared_ext}$major'
17322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17323 case $host_os in
17324 irix5* | nonstopux*)
17325 libsuff= shlibsuff=
17326 ;;
17327 *)
17328 case $LD in # libtool.m4 will add one of these switches to LD
17329 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17330 libsuff= shlibsuff= libmagic=32-bit;;
17331 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17332 libsuff=32 shlibsuff=N32 libmagic=N32;;
17333 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17334 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17335 *) libsuff= shlibsuff= libmagic=never-match;;
17336 esac
17337 ;;
17338 esac
17339 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17340 shlibpath_overrides_runpath=no
17341 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17342 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17343 hardcode_into_libs=yes
17344 ;;
17345
17346# No shared lib support for Linux oldld, aout, or coff.
17347linux*oldld* | linux*aout* | linux*coff*)
17348 dynamic_linker=no
17349 ;;
17350
cristy99bd5232011-12-07 14:38:20 +000017351# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000017352linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000017353 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017354 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 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17359 shlibpath_var=LD_LIBRARY_PATH
17360 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000017361
cristy73bd4a52010-10-05 11:24:23 +000017362 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000017363 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000017364 $as_echo_n "(cached) " >&6
17365else
17366 lt_cv_shlibpath_overrides_runpath=no
17367 save_LDFLAGS=$LDFLAGS
17368 save_libdir=$libdir
17369 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17370 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000017372/* end confdefs.h. */
17373
17374int
17375main ()
17376{
17377
17378 ;
17379 return 0;
17380}
17381_ACEOF
17382if ac_fn_c_try_link "$LINENO"; then :
17383 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000017384 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000017385fi
17386fi
17387rm -f core conftest.err conftest.$ac_objext \
17388 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017389 LDFLAGS=$save_LDFLAGS
17390 libdir=$save_libdir
17391
17392fi
17393
17394 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000017395
17396 # This implies no fast_install, which is unacceptable.
17397 # Some rework will be needed to allow for fast_install
17398 # before this can be enabled.
17399 hardcode_into_libs=yes
17400
17401 # Add ABI-specific directories to the system library path.
17402 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
17403
17404 # Append ld.so.conf contents to the search path
17405 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000017406 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 +000017407 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000017408
cristy73bd4a52010-10-05 11:24:23 +000017409 fi
17410
17411 # We used to test for /lib/ld.so.1 and disable shared libraries on
17412 # powerpc, because MkLinux only supported shared libraries with the
17413 # GNU dynamic linker. Since this was broken with cross compilers,
17414 # most powerpc-linux boxes support dynamic linking these days and
17415 # people can always --disable-shared, the test was removed, and we
17416 # assume the GNU/Linux dynamic linker is in use.
17417 dynamic_linker='GNU/Linux ld.so'
17418 ;;
17419
17420netbsd*)
17421 version_type=sunos
17422 need_lib_prefix=no
17423 need_version=no
17424 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17426 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17427 dynamic_linker='NetBSD (a.out) ld.so'
17428 else
17429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17430 soname_spec='${libname}${release}${shared_ext}$major'
17431 dynamic_linker='NetBSD ld.elf_so'
17432 fi
17433 shlibpath_var=LD_LIBRARY_PATH
17434 shlibpath_overrides_runpath=yes
17435 hardcode_into_libs=yes
17436 ;;
17437
17438newsos6)
cristy99bd5232011-12-07 14:38:20 +000017439 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17441 shlibpath_var=LD_LIBRARY_PATH
17442 shlibpath_overrides_runpath=yes
17443 ;;
17444
17445*nto* | *qnx*)
17446 version_type=qnx
17447 need_lib_prefix=no
17448 need_version=no
17449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17450 soname_spec='${libname}${release}${shared_ext}$major'
17451 shlibpath_var=LD_LIBRARY_PATH
17452 shlibpath_overrides_runpath=no
17453 hardcode_into_libs=yes
17454 dynamic_linker='ldqnx.so'
17455 ;;
17456
17457openbsd*)
17458 version_type=sunos
17459 sys_lib_dlsearch_path_spec="/usr/lib"
17460 need_lib_prefix=no
17461 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17462 case $host_os in
17463 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17464 *) need_version=no ;;
17465 esac
17466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17467 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17468 shlibpath_var=LD_LIBRARY_PATH
17469 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17470 case $host_os in
17471 openbsd2.[89] | openbsd2.[89].*)
17472 shlibpath_overrides_runpath=no
17473 ;;
17474 *)
17475 shlibpath_overrides_runpath=yes
17476 ;;
17477 esac
17478 else
17479 shlibpath_overrides_runpath=yes
17480 fi
17481 ;;
17482
17483os2*)
17484 libname_spec='$name'
17485 shrext_cmds=".dll"
17486 need_lib_prefix=no
17487 library_names_spec='$libname${shared_ext} $libname.a'
17488 dynamic_linker='OS/2 ld.exe'
17489 shlibpath_var=LIBPATH
17490 ;;
17491
17492osf3* | osf4* | osf5*)
17493 version_type=osf
17494 need_lib_prefix=no
17495 need_version=no
17496 soname_spec='${libname}${release}${shared_ext}$major'
17497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17498 shlibpath_var=LD_LIBRARY_PATH
17499 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17500 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17501 ;;
17502
17503rdos*)
17504 dynamic_linker=no
17505 ;;
17506
17507solaris*)
cristy99bd5232011-12-07 14:38:20 +000017508 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017509 need_lib_prefix=no
17510 need_version=no
17511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17512 soname_spec='${libname}${release}${shared_ext}$major'
17513 shlibpath_var=LD_LIBRARY_PATH
17514 shlibpath_overrides_runpath=yes
17515 hardcode_into_libs=yes
17516 # ldd complains unless libraries are executable
17517 postinstall_cmds='chmod +x $lib'
17518 ;;
17519
17520sunos4*)
17521 version_type=sunos
17522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17523 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17524 shlibpath_var=LD_LIBRARY_PATH
17525 shlibpath_overrides_runpath=yes
17526 if test "$with_gnu_ld" = yes; then
17527 need_lib_prefix=no
17528 fi
17529 need_version=yes
17530 ;;
17531
17532sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000017533 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17535 soname_spec='${libname}${release}${shared_ext}$major'
17536 shlibpath_var=LD_LIBRARY_PATH
17537 case $host_vendor in
17538 sni)
17539 shlibpath_overrides_runpath=no
17540 need_lib_prefix=no
17541 runpath_var=LD_RUN_PATH
17542 ;;
17543 siemens)
17544 need_lib_prefix=no
17545 ;;
17546 motorola)
17547 need_lib_prefix=no
17548 need_version=no
17549 shlibpath_overrides_runpath=no
17550 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17551 ;;
17552 esac
17553 ;;
17554
17555sysv4*MP*)
17556 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000017557 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017558 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17559 soname_spec='$libname${shared_ext}.$major'
17560 shlibpath_var=LD_LIBRARY_PATH
17561 fi
17562 ;;
17563
17564sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17565 version_type=freebsd-elf
17566 need_lib_prefix=no
17567 need_version=no
17568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17569 soname_spec='${libname}${release}${shared_ext}$major'
17570 shlibpath_var=LD_LIBRARY_PATH
17571 shlibpath_overrides_runpath=yes
17572 hardcode_into_libs=yes
17573 if test "$with_gnu_ld" = yes; then
17574 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17575 else
17576 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17577 case $host_os in
17578 sco3.2v5*)
17579 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17580 ;;
17581 esac
17582 fi
17583 sys_lib_dlsearch_path_spec='/usr/lib'
17584 ;;
17585
17586tpf*)
17587 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000017588 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017589 need_lib_prefix=no
17590 need_version=no
17591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17592 shlibpath_var=LD_LIBRARY_PATH
17593 shlibpath_overrides_runpath=no
17594 hardcode_into_libs=yes
17595 ;;
17596
17597uts4*)
cristy99bd5232011-12-07 14:38:20 +000017598 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17600 soname_spec='${libname}${release}${shared_ext}$major'
17601 shlibpath_var=LD_LIBRARY_PATH
17602 ;;
17603
17604*)
17605 dynamic_linker=no
17606 ;;
17607esac
17608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17609$as_echo "$dynamic_linker" >&6; }
17610test "$dynamic_linker" = no && can_build_shared=no
17611
17612variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17613if test "$GCC" = yes; then
17614 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17615fi
17616
17617if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17618 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17619fi
17620if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17621 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17622fi
17623
17624
17625
17626
17627
17628
17629
17630
17631
17632
17633
17634
17635
17636
17637
17638
17639
17640
17641
17642
17643
17644
17645
17646
17647
17648
17649
17650
17651
17652
17653
17654
17655
17656
17657
17658
17659
17660
17661
17662
17663
17664
17665
17666
17667
17668
17669
17670
17671
17672
17673
17674
17675
17676
17677
17678
17679
17680
17681
17682
17683
17684
17685
17686
17687
17688
17689
17690
17691
17692
17693
17694
17695
17696
17697
17698
17699
17700
17701
17702
17703
17704
17705
17706
17707
17708
17709
cristy0c60a692010-11-04 01:09:47 +000017710
17711
17712
17713
17714
cristy73bd4a52010-10-05 11:24:23 +000017715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17716$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17717hardcode_action=
17718if test -n "$hardcode_libdir_flag_spec" ||
17719 test -n "$runpath_var" ||
17720 test "X$hardcode_automatic" = "Xyes" ; then
17721
17722 # We can hardcode non-existent directories.
17723 if test "$hardcode_direct" != no &&
17724 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17725 # have to relink, otherwise we might link with an installed library
17726 # when we should be linking with a yet-to-be-installed one
17727 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17728 test "$hardcode_minus_L" != no; then
17729 # Linking always hardcodes the temporary library directory.
17730 hardcode_action=relink
17731 else
17732 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17733 hardcode_action=immediate
17734 fi
17735else
17736 # We cannot hardcode anything, or else we can only hardcode existing
17737 # directories.
17738 hardcode_action=unsupported
17739fi
17740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17741$as_echo "$hardcode_action" >&6; }
17742
17743if test "$hardcode_action" = relink ||
17744 test "$inherit_rpath" = yes; then
17745 # Fast installation is not supported
17746 enable_fast_install=no
17747elif test "$shlibpath_overrides_runpath" = yes ||
17748 test "$enable_shared" = no; then
17749 # Fast installation is not necessary
17750 enable_fast_install=needless
17751fi
17752
17753
17754
17755
17756
17757
17758 if test "x$enable_dlopen" != xyes; then
17759 enable_dlopen=unknown
17760 enable_dlopen_self=unknown
17761 enable_dlopen_self_static=unknown
17762else
17763 lt_cv_dlopen=no
17764 lt_cv_dlopen_libs=
17765
17766 case $host_os in
17767 beos*)
17768 lt_cv_dlopen="load_add_on"
17769 lt_cv_dlopen_libs=
17770 lt_cv_dlopen_self=yes
17771 ;;
17772
17773 mingw* | pw32* | cegcc*)
17774 lt_cv_dlopen="LoadLibrary"
17775 lt_cv_dlopen_libs=
17776 ;;
17777
17778 cygwin*)
17779 lt_cv_dlopen="dlopen"
17780 lt_cv_dlopen_libs=
17781 ;;
17782
17783 darwin*)
17784 # if libdl is installed we need to link against it
17785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17786$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017787if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017788 $as_echo_n "(cached) " >&6
17789else
17790 ac_check_lib_save_LIBS=$LIBS
17791LIBS="-ldl $LIBS"
17792cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17793/* end confdefs.h. */
17794
17795/* Override any GCC internal prototype to avoid an error.
17796 Use char because int might match the return type of a GCC
17797 builtin and then its argument prototype would still apply. */
17798#ifdef __cplusplus
17799extern "C"
17800#endif
17801char dlopen ();
17802int
17803main ()
17804{
17805return dlopen ();
17806 ;
17807 return 0;
17808}
17809_ACEOF
17810if ac_fn_c_try_link "$LINENO"; then :
17811 ac_cv_lib_dl_dlopen=yes
17812else
17813 ac_cv_lib_dl_dlopen=no
17814fi
17815rm -f core conftest.err conftest.$ac_objext \
17816 conftest$ac_exeext conftest.$ac_ext
17817LIBS=$ac_check_lib_save_LIBS
17818fi
17819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17820$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000017821if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017822 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17823else
17824
17825 lt_cv_dlopen="dyld"
17826 lt_cv_dlopen_libs=
17827 lt_cv_dlopen_self=yes
17828
17829fi
17830
17831 ;;
17832
17833 *)
17834 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000017835if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017836 lt_cv_dlopen="shl_load"
17837else
17838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17839$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017840if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017841 $as_echo_n "(cached) " >&6
17842else
17843 ac_check_lib_save_LIBS=$LIBS
17844LIBS="-ldld $LIBS"
17845cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17846/* end confdefs.h. */
17847
17848/* Override any GCC internal prototype to avoid an error.
17849 Use char because int might match the return type of a GCC
17850 builtin and then its argument prototype would still apply. */
17851#ifdef __cplusplus
17852extern "C"
17853#endif
17854char shl_load ();
17855int
17856main ()
17857{
17858return shl_load ();
17859 ;
17860 return 0;
17861}
17862_ACEOF
17863if ac_fn_c_try_link "$LINENO"; then :
17864 ac_cv_lib_dld_shl_load=yes
17865else
17866 ac_cv_lib_dld_shl_load=no
17867fi
17868rm -f core conftest.err conftest.$ac_objext \
17869 conftest$ac_exeext conftest.$ac_ext
17870LIBS=$ac_check_lib_save_LIBS
17871fi
17872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17873$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000017874if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017875 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17876else
17877 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
cristyda16f162011-02-19 23:52:17 +000017878if test "x$ac_cv_func_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017879 lt_cv_dlopen="dlopen"
17880else
17881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17882$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017883if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017884 $as_echo_n "(cached) " >&6
17885else
17886 ac_check_lib_save_LIBS=$LIBS
17887LIBS="-ldl $LIBS"
17888cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17889/* end confdefs.h. */
17890
17891/* Override any GCC internal prototype to avoid an error.
17892 Use char because int might match the return type of a GCC
17893 builtin and then its argument prototype would still apply. */
17894#ifdef __cplusplus
17895extern "C"
17896#endif
17897char dlopen ();
17898int
17899main ()
17900{
17901return dlopen ();
17902 ;
17903 return 0;
17904}
17905_ACEOF
17906if ac_fn_c_try_link "$LINENO"; then :
17907 ac_cv_lib_dl_dlopen=yes
17908else
17909 ac_cv_lib_dl_dlopen=no
17910fi
17911rm -f core conftest.err conftest.$ac_objext \
17912 conftest$ac_exeext conftest.$ac_ext
17913LIBS=$ac_check_lib_save_LIBS
17914fi
17915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17916$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000017917if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017918 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17919else
17920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17921$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017922if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017923 $as_echo_n "(cached) " >&6
17924else
17925 ac_check_lib_save_LIBS=$LIBS
17926LIBS="-lsvld $LIBS"
17927cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17928/* end confdefs.h. */
17929
17930/* Override any GCC internal prototype to avoid an error.
17931 Use char because int might match the return type of a GCC
17932 builtin and then its argument prototype would still apply. */
17933#ifdef __cplusplus
17934extern "C"
17935#endif
17936char dlopen ();
17937int
17938main ()
17939{
17940return dlopen ();
17941 ;
17942 return 0;
17943}
17944_ACEOF
17945if ac_fn_c_try_link "$LINENO"; then :
17946 ac_cv_lib_svld_dlopen=yes
17947else
17948 ac_cv_lib_svld_dlopen=no
17949fi
17950rm -f core conftest.err conftest.$ac_objext \
17951 conftest$ac_exeext conftest.$ac_ext
17952LIBS=$ac_check_lib_save_LIBS
17953fi
17954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17955$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000017956if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017957 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17958else
17959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17960$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017961if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017962 $as_echo_n "(cached) " >&6
17963else
17964 ac_check_lib_save_LIBS=$LIBS
17965LIBS="-ldld $LIBS"
17966cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17967/* end confdefs.h. */
17968
17969/* Override any GCC internal prototype to avoid an error.
17970 Use char because int might match the return type of a GCC
17971 builtin and then its argument prototype would still apply. */
17972#ifdef __cplusplus
17973extern "C"
17974#endif
17975char dld_link ();
17976int
17977main ()
17978{
17979return dld_link ();
17980 ;
17981 return 0;
17982}
17983_ACEOF
17984if ac_fn_c_try_link "$LINENO"; then :
17985 ac_cv_lib_dld_dld_link=yes
17986else
17987 ac_cv_lib_dld_dld_link=no
17988fi
17989rm -f core conftest.err conftest.$ac_objext \
17990 conftest$ac_exeext conftest.$ac_ext
17991LIBS=$ac_check_lib_save_LIBS
17992fi
17993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17994$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000017995if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017996 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17997fi
17998
17999
18000fi
18001
18002
18003fi
18004
18005
18006fi
18007
18008
18009fi
18010
18011
18012fi
18013
18014 ;;
18015 esac
18016
18017 if test "x$lt_cv_dlopen" != xno; then
18018 enable_dlopen=yes
18019 else
18020 enable_dlopen=no
18021 fi
18022
18023 case $lt_cv_dlopen in
18024 dlopen)
18025 save_CPPFLAGS="$CPPFLAGS"
18026 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18027
18028 save_LDFLAGS="$LDFLAGS"
18029 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18030
18031 save_LIBS="$LIBS"
18032 LIBS="$lt_cv_dlopen_libs $LIBS"
18033
18034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18035$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018036if ${lt_cv_dlopen_self+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018037 $as_echo_n "(cached) " >&6
18038else
18039 if test "$cross_compiling" = yes; then :
18040 lt_cv_dlopen_self=cross
18041else
18042 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18043 lt_status=$lt_dlunknown
18044 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000018045#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000018046#include "confdefs.h"
18047
18048#if HAVE_DLFCN_H
18049#include <dlfcn.h>
18050#endif
18051
18052#include <stdio.h>
18053
18054#ifdef RTLD_GLOBAL
18055# define LT_DLGLOBAL RTLD_GLOBAL
18056#else
18057# ifdef DL_GLOBAL
18058# define LT_DLGLOBAL DL_GLOBAL
18059# else
18060# define LT_DLGLOBAL 0
18061# endif
18062#endif
18063
18064/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18065 find out it does not work in some platform. */
18066#ifndef LT_DLLAZY_OR_NOW
18067# ifdef RTLD_LAZY
18068# define LT_DLLAZY_OR_NOW RTLD_LAZY
18069# else
18070# ifdef DL_LAZY
18071# define LT_DLLAZY_OR_NOW DL_LAZY
18072# else
18073# ifdef RTLD_NOW
18074# define LT_DLLAZY_OR_NOW RTLD_NOW
18075# else
18076# ifdef DL_NOW
18077# define LT_DLLAZY_OR_NOW DL_NOW
18078# else
18079# define LT_DLLAZY_OR_NOW 0
18080# endif
18081# endif
18082# endif
18083# endif
18084#endif
18085
cristy0c60a692010-11-04 01:09:47 +000018086/* When -fvisbility=hidden is used, assume the code has been annotated
18087 correspondingly for the symbols needed. */
18088#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000018089int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000018090#endif
18091
cristyda16f162011-02-19 23:52:17 +000018092int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000018093int main ()
18094{
18095 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18096 int status = $lt_dlunknown;
18097
18098 if (self)
18099 {
18100 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000018101 else
18102 {
18103 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18104 else puts (dlerror ());
18105 }
cristy73bd4a52010-10-05 11:24:23 +000018106 /* dlclose (self); */
18107 }
18108 else
18109 puts (dlerror ());
18110
18111 return status;
18112}
18113_LT_EOF
18114 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18115 (eval $ac_link) 2>&5
18116 ac_status=$?
18117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18118 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18119 (./conftest; exit; ) >&5 2>/dev/null
18120 lt_status=$?
18121 case x$lt_status in
18122 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18123 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18124 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18125 esac
18126 else :
18127 # compilation failed
18128 lt_cv_dlopen_self=no
18129 fi
18130fi
18131rm -fr conftest*
18132
18133
18134fi
18135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18136$as_echo "$lt_cv_dlopen_self" >&6; }
18137
18138 if test "x$lt_cv_dlopen_self" = xyes; then
18139 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18141$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018142if ${lt_cv_dlopen_self_static+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018143 $as_echo_n "(cached) " >&6
18144else
18145 if test "$cross_compiling" = yes; then :
18146 lt_cv_dlopen_self_static=cross
18147else
18148 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18149 lt_status=$lt_dlunknown
18150 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000018151#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000018152#include "confdefs.h"
18153
18154#if HAVE_DLFCN_H
18155#include <dlfcn.h>
18156#endif
18157
18158#include <stdio.h>
18159
18160#ifdef RTLD_GLOBAL
18161# define LT_DLGLOBAL RTLD_GLOBAL
18162#else
18163# ifdef DL_GLOBAL
18164# define LT_DLGLOBAL DL_GLOBAL
18165# else
18166# define LT_DLGLOBAL 0
18167# endif
18168#endif
18169
18170/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18171 find out it does not work in some platform. */
18172#ifndef LT_DLLAZY_OR_NOW
18173# ifdef RTLD_LAZY
18174# define LT_DLLAZY_OR_NOW RTLD_LAZY
18175# else
18176# ifdef DL_LAZY
18177# define LT_DLLAZY_OR_NOW DL_LAZY
18178# else
18179# ifdef RTLD_NOW
18180# define LT_DLLAZY_OR_NOW RTLD_NOW
18181# else
18182# ifdef DL_NOW
18183# define LT_DLLAZY_OR_NOW DL_NOW
18184# else
18185# define LT_DLLAZY_OR_NOW 0
18186# endif
18187# endif
18188# endif
18189# endif
18190#endif
18191
cristy0c60a692010-11-04 01:09:47 +000018192/* When -fvisbility=hidden is used, assume the code has been annotated
18193 correspondingly for the symbols needed. */
18194#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000018195int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000018196#endif
18197
cristyda16f162011-02-19 23:52:17 +000018198int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000018199int main ()
18200{
18201 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18202 int status = $lt_dlunknown;
18203
18204 if (self)
18205 {
18206 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000018207 else
18208 {
18209 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18210 else puts (dlerror ());
18211 }
cristy73bd4a52010-10-05 11:24:23 +000018212 /* dlclose (self); */
18213 }
18214 else
18215 puts (dlerror ());
18216
18217 return status;
18218}
18219_LT_EOF
18220 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18221 (eval $ac_link) 2>&5
18222 ac_status=$?
18223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18224 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18225 (./conftest; exit; ) >&5 2>/dev/null
18226 lt_status=$?
18227 case x$lt_status in
18228 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18229 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18230 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18231 esac
18232 else :
18233 # compilation failed
18234 lt_cv_dlopen_self_static=no
18235 fi
18236fi
18237rm -fr conftest*
18238
18239
18240fi
18241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18242$as_echo "$lt_cv_dlopen_self_static" >&6; }
18243 fi
18244
18245 CPPFLAGS="$save_CPPFLAGS"
18246 LDFLAGS="$save_LDFLAGS"
18247 LIBS="$save_LIBS"
18248 ;;
18249 esac
18250
18251 case $lt_cv_dlopen_self in
18252 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18253 *) enable_dlopen_self=unknown ;;
18254 esac
18255
18256 case $lt_cv_dlopen_self_static in
18257 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18258 *) enable_dlopen_self_static=unknown ;;
18259 esac
18260fi
18261
18262
18263
18264
18265
18266
18267
18268
18269
18270
18271
18272
18273
18274
18275
18276
18277
18278striplib=
18279old_striplib=
18280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18281$as_echo_n "checking whether stripping libraries is possible... " >&6; }
18282if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18283 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18284 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18286$as_echo "yes" >&6; }
18287else
18288# FIXME - insert some real tests, host_os isn't really good enough
18289 case $host_os in
18290 darwin*)
18291 if test -n "$STRIP" ; then
18292 striplib="$STRIP -x"
18293 old_striplib="$STRIP -S"
18294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18295$as_echo "yes" >&6; }
18296 else
18297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18298$as_echo "no" >&6; }
18299 fi
18300 ;;
18301 *)
18302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18303$as_echo "no" >&6; }
18304 ;;
18305 esac
18306fi
18307
18308
18309
18310
18311
18312
18313
18314
18315
18316
18317
18318
18319 # Report which library types will actually be built
18320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18321$as_echo_n "checking if libtool supports shared libraries... " >&6; }
18322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18323$as_echo "$can_build_shared" >&6; }
18324
18325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18326$as_echo_n "checking whether to build shared libraries... " >&6; }
18327 test "$can_build_shared" = "no" && enable_shared=no
18328
18329 # On AIX, shared libraries and static libraries use the same namespace, and
18330 # are all built from PIC.
18331 case $host_os in
18332 aix3*)
18333 test "$enable_shared" = yes && enable_static=no
18334 if test -n "$RANLIB"; then
18335 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18336 postinstall_cmds='$RANLIB $lib'
18337 fi
18338 ;;
18339
18340 aix[4-9]*)
18341 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18342 test "$enable_shared" = yes && enable_static=no
18343 fi
18344 ;;
18345 esac
18346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18347$as_echo "$enable_shared" >&6; }
18348
18349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18350$as_echo_n "checking whether to build static libraries... " >&6; }
18351 # Make sure either enable_shared or enable_static is yes.
18352 test "$enable_shared" = yes || enable_static=yes
18353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18354$as_echo "$enable_static" >&6; }
18355
18356
18357
18358
18359fi
18360ac_ext=c
18361ac_cpp='$CPP $CPPFLAGS'
18362ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18363ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18364ac_compiler_gnu=$ac_cv_c_compiler_gnu
18365
18366CC="$lt_save_CC"
18367
cristy0c60a692010-11-04 01:09:47 +000018368 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18369 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18370 (test "X$CXX" != "Xg++"))) ; then
18371 ac_ext=cpp
18372ac_cpp='$CXXCPP $CPPFLAGS'
18373ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18374ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18375ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18377$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18378if test -z "$CXXCPP"; then
cristyda16f162011-02-19 23:52:17 +000018379 if ${ac_cv_prog_CXXCPP+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000018380 $as_echo_n "(cached) " >&6
18381else
18382 # Double quotes because CXXCPP needs to be expanded
18383 for CXXCPP in "$CXX -E" "/lib/cpp"
18384 do
18385 ac_preproc_ok=false
18386for ac_cxx_preproc_warn_flag in '' yes
18387do
18388 # Use a header file that comes with gcc, so configuring glibc
18389 # with a fresh cross-compiler works.
18390 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18391 # <limits.h> exists even on freestanding compilers.
18392 # On the NeXT, cc -E runs the code through the compiler's parser,
18393 # not just through cpp. "Syntax error" is here to catch this case.
18394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18395/* end confdefs.h. */
18396#ifdef __STDC__
18397# include <limits.h>
18398#else
18399# include <assert.h>
18400#endif
18401 Syntax error
18402_ACEOF
18403if ac_fn_cxx_try_cpp "$LINENO"; then :
18404
18405else
18406 # Broken: fails on valid input.
18407continue
18408fi
cristyda16f162011-02-19 23:52:17 +000018409rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018410
18411 # OK, works on sane cases. Now check whether nonexistent headers
18412 # can be detected and how.
18413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18414/* end confdefs.h. */
18415#include <ac_nonexistent.h>
18416_ACEOF
18417if ac_fn_cxx_try_cpp "$LINENO"; then :
18418 # Broken: success on invalid input.
18419continue
18420else
18421 # Passes both tests.
18422ac_preproc_ok=:
18423break
18424fi
cristyda16f162011-02-19 23:52:17 +000018425rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018426
18427done
18428# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000018429rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018430if $ac_preproc_ok; then :
18431 break
18432fi
18433
18434 done
18435 ac_cv_prog_CXXCPP=$CXXCPP
18436
18437fi
18438 CXXCPP=$ac_cv_prog_CXXCPP
18439else
18440 ac_cv_prog_CXXCPP=$CXXCPP
18441fi
18442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18443$as_echo "$CXXCPP" >&6; }
18444ac_preproc_ok=false
18445for ac_cxx_preproc_warn_flag in '' yes
18446do
18447 # Use a header file that comes with gcc, so configuring glibc
18448 # with a fresh cross-compiler works.
18449 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18450 # <limits.h> exists even on freestanding compilers.
18451 # On the NeXT, cc -E runs the code through the compiler's parser,
18452 # not just through cpp. "Syntax error" is here to catch this case.
18453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18454/* end confdefs.h. */
18455#ifdef __STDC__
18456# include <limits.h>
18457#else
18458# include <assert.h>
18459#endif
18460 Syntax error
18461_ACEOF
18462if ac_fn_cxx_try_cpp "$LINENO"; then :
18463
18464else
18465 # Broken: fails on valid input.
18466continue
18467fi
cristyda16f162011-02-19 23:52:17 +000018468rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018469
18470 # OK, works on sane cases. Now check whether nonexistent headers
18471 # can be detected and how.
18472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18473/* end confdefs.h. */
18474#include <ac_nonexistent.h>
18475_ACEOF
18476if ac_fn_cxx_try_cpp "$LINENO"; then :
18477 # Broken: success on invalid input.
18478continue
18479else
18480 # Passes both tests.
18481ac_preproc_ok=:
18482break
18483fi
cristyda16f162011-02-19 23:52:17 +000018484rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018485
18486done
18487# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000018488rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018489if $ac_preproc_ok; then :
18490
18491else
18492 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18493$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18494as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
18495See \`config.log' for more details" "$LINENO" 5; }
18496fi
18497
18498ac_ext=c
18499ac_cpp='$CPP $CPPFLAGS'
18500ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18501ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18502ac_compiler_gnu=$ac_cv_c_compiler_gnu
18503
18504else
18505 _lt_caught_CXX_error=yes
18506fi
cristy73bd4a52010-10-05 11:24:23 +000018507
18508ac_ext=cpp
18509ac_cpp='$CXXCPP $CPPFLAGS'
18510ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18511ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18512ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18513
18514archive_cmds_need_lc_CXX=no
18515allow_undefined_flag_CXX=
18516always_export_symbols_CXX=no
18517archive_expsym_cmds_CXX=
18518compiler_needs_object_CXX=no
18519export_dynamic_flag_spec_CXX=
18520hardcode_direct_CXX=no
18521hardcode_direct_absolute_CXX=no
18522hardcode_libdir_flag_spec_CXX=
cristy73bd4a52010-10-05 11:24:23 +000018523hardcode_libdir_separator_CXX=
18524hardcode_minus_L_CXX=no
18525hardcode_shlibpath_var_CXX=unsupported
18526hardcode_automatic_CXX=no
18527inherit_rpath_CXX=no
18528module_cmds_CXX=
18529module_expsym_cmds_CXX=
18530link_all_deplibs_CXX=unknown
18531old_archive_cmds_CXX=$old_archive_cmds
cristy0c60a692010-11-04 01:09:47 +000018532reload_flag_CXX=$reload_flag
18533reload_cmds_CXX=$reload_cmds
cristy73bd4a52010-10-05 11:24:23 +000018534no_undefined_flag_CXX=
18535whole_archive_flag_spec_CXX=
18536enable_shared_with_static_runtimes_CXX=no
18537
18538# Source file extension for C++ test sources.
18539ac_ext=cpp
18540
18541# Object file extension for compiled C++ test sources.
18542objext=o
18543objext_CXX=$objext
18544
18545# No sense in running all these tests if we already determined that
18546# the CXX compiler isn't working. Some variables (like enable_shared)
18547# are currently assumed to apply to all compilers on this platform,
18548# and will be corrupted by setting them based on a non-working compiler.
18549if test "$_lt_caught_CXX_error" != yes; then
18550 # Code to be used in simple compile tests
18551 lt_simple_compile_test_code="int some_variable = 0;"
18552
18553 # Code to be used in simple link tests
18554 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18555
18556 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18557
18558
18559
18560
18561
18562
18563# If no C compiler was specified, use CC.
18564LTCC=${LTCC-"$CC"}
18565
18566# If no C compiler flags were specified, use CFLAGS.
18567LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18568
18569# Allow CC to be a program name with arguments.
18570compiler=$CC
18571
18572
18573 # save warnings/boilerplate of simple test code
18574 ac_outfile=conftest.$ac_objext
18575echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18576eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18577_lt_compiler_boilerplate=`cat conftest.err`
18578$RM conftest*
18579
18580 ac_outfile=conftest.$ac_objext
18581echo "$lt_simple_link_test_code" >conftest.$ac_ext
18582eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18583_lt_linker_boilerplate=`cat conftest.err`
18584$RM -r conftest*
18585
18586
18587 # Allow CC to be a program name with arguments.
18588 lt_save_CC=$CC
cristyda16f162011-02-19 23:52:17 +000018589 lt_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000018590 lt_save_LD=$LD
18591 lt_save_GCC=$GCC
18592 GCC=$GXX
18593 lt_save_with_gnu_ld=$with_gnu_ld
18594 lt_save_path_LD=$lt_cv_path_LD
18595 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18596 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18597 else
18598 $as_unset lt_cv_prog_gnu_ld
18599 fi
18600 if test -n "${lt_cv_path_LDCXX+set}"; then
18601 lt_cv_path_LD=$lt_cv_path_LDCXX
18602 else
18603 $as_unset lt_cv_path_LD
18604 fi
18605 test -z "${LDCXX+set}" || LD=$LDCXX
18606 CC=${CXX-"c++"}
cristyda16f162011-02-19 23:52:17 +000018607 CFLAGS=$CXXFLAGS
cristy73bd4a52010-10-05 11:24:23 +000018608 compiler=$CC
18609 compiler_CXX=$CC
18610 for cc_temp in $compiler""; do
18611 case $cc_temp in
18612 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18613 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18614 \-*) ;;
18615 *) break;;
18616 esac
18617done
cristy0c60a692010-11-04 01:09:47 +000018618cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000018619
18620
18621 if test -n "$compiler"; then
18622 # We don't want -fno-exception when compiling C++ code, so set the
18623 # no_builtin_flag separately
18624 if test "$GXX" = yes; then
18625 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18626 else
18627 lt_prog_compiler_no_builtin_flag_CXX=
18628 fi
18629
18630 if test "$GXX" = yes; then
18631 # Set up default GNU C++ configuration
18632
18633
18634
18635# Check whether --with-gnu-ld was given.
18636if test "${with_gnu_ld+set}" = set; then :
18637 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18638else
18639 with_gnu_ld=no
18640fi
18641
18642ac_prog=ld
18643if test "$GCC" = yes; then
18644 # Check if gcc -print-prog-name=ld gives a path.
18645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18646$as_echo_n "checking for ld used by $CC... " >&6; }
18647 case $host in
18648 *-*-mingw*)
18649 # gcc leaves a trailing carriage return which upsets mingw
18650 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18651 *)
18652 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18653 esac
18654 case $ac_prog in
18655 # Accept absolute paths.
18656 [\\/]* | ?:[\\/]*)
18657 re_direlt='/[^/][^/]*/\.\./'
18658 # Canonicalize the pathname of ld
18659 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18660 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18661 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18662 done
18663 test -z "$LD" && LD="$ac_prog"
18664 ;;
18665 "")
18666 # If it fails, then pretend we aren't using GCC.
18667 ac_prog=ld
18668 ;;
18669 *)
18670 # If it is relative, then search for the first ld in PATH.
18671 with_gnu_ld=unknown
18672 ;;
18673 esac
18674elif test "$with_gnu_ld" = yes; then
18675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18676$as_echo_n "checking for GNU ld... " >&6; }
18677else
18678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18679$as_echo_n "checking for non-GNU ld... " >&6; }
18680fi
cristyda16f162011-02-19 23:52:17 +000018681if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018682 $as_echo_n "(cached) " >&6
18683else
18684 if test -z "$LD"; then
18685 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18686 for ac_dir in $PATH; do
18687 IFS="$lt_save_ifs"
18688 test -z "$ac_dir" && ac_dir=.
18689 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18690 lt_cv_path_LD="$ac_dir/$ac_prog"
18691 # Check to see if the program is GNU ld. I'd rather use --version,
18692 # but apparently some variants of GNU ld only accept -v.
18693 # Break only if it was the GNU/non-GNU ld that we prefer.
18694 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18695 *GNU* | *'with BFD'*)
18696 test "$with_gnu_ld" != no && break
18697 ;;
18698 *)
18699 test "$with_gnu_ld" != yes && break
18700 ;;
18701 esac
18702 fi
18703 done
18704 IFS="$lt_save_ifs"
18705else
18706 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18707fi
18708fi
18709
18710LD="$lt_cv_path_LD"
18711if test -n "$LD"; then
18712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18713$as_echo "$LD" >&6; }
18714else
18715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18716$as_echo "no" >&6; }
18717fi
cristy98dddb52010-11-04 00:30:15 +000018718test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000018719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18720$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018721if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018722 $as_echo_n "(cached) " >&6
18723else
18724 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18725case `$LD -v 2>&1 </dev/null` in
18726*GNU* | *'with BFD'*)
18727 lt_cv_prog_gnu_ld=yes
18728 ;;
18729*)
18730 lt_cv_prog_gnu_ld=no
18731 ;;
18732esac
18733fi
18734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18735$as_echo "$lt_cv_prog_gnu_ld" >&6; }
18736with_gnu_ld=$lt_cv_prog_gnu_ld
18737
18738
18739
18740
18741
18742
18743
18744 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18745 # archiving commands below assume that GNU ld is being used.
18746 if test "$with_gnu_ld" = yes; then
cristyda16f162011-02-19 23:52:17 +000018747 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18748 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 +000018749
18750 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18751 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18752
18753 # If archive_cmds runs LD, not CC, wlarc should be empty
18754 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18755 # investigate it a little bit more. (MM)
18756 wlarc='${wl}'
18757
18758 # ancient GNU ld didn't support --whole-archive et. al.
18759 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18760 $GREP 'no-whole-archive' > /dev/null; then
18761 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18762 else
18763 whole_archive_flag_spec_CXX=
18764 fi
18765 else
18766 with_gnu_ld=no
18767 wlarc=
18768
18769 # A generic and very simple default shared library creation
18770 # command for GNU C++ for the case where it uses the native
18771 # linker, instead of GNU ld. If possible, this setting should
18772 # overridden to take advantage of the native linker features on
18773 # the platform it is being used on.
18774 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18775 fi
18776
18777 # Commands to make compiler produce verbose output that lists
18778 # what "hidden" libraries, object files and flags are used when
18779 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018780 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018781
18782 else
18783 GXX=no
18784 with_gnu_ld=no
18785 wlarc=
18786 fi
18787
18788 # PORTME: fill in a description of your system's C++ link characteristics
18789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18790$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18791 ld_shlibs_CXX=yes
18792 case $host_os in
18793 aix3*)
18794 # FIXME: insert proper C++ library support
18795 ld_shlibs_CXX=no
18796 ;;
18797 aix[4-9]*)
18798 if test "$host_cpu" = ia64; then
18799 # On IA64, the linker does run time linking by default, so we don't
18800 # have to do anything special.
18801 aix_use_runtimelinking=no
18802 exp_sym_flag='-Bexport'
18803 no_entry_flag=""
18804 else
18805 aix_use_runtimelinking=no
18806
18807 # Test if we are trying to use run time linking or normal
18808 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18809 # need to do runtime linking.
18810 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18811 for ld_flag in $LDFLAGS; do
18812 case $ld_flag in
18813 *-brtl*)
18814 aix_use_runtimelinking=yes
18815 break
18816 ;;
18817 esac
18818 done
18819 ;;
18820 esac
18821
18822 exp_sym_flag='-bexport'
18823 no_entry_flag='-bnoentry'
18824 fi
18825
18826 # When large executables or shared objects are built, AIX ld can
18827 # have problems creating the table of contents. If linking a library
18828 # or program results in "error TOC overflow" add -mminimal-toc to
18829 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18830 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18831
18832 archive_cmds_CXX=''
18833 hardcode_direct_CXX=yes
18834 hardcode_direct_absolute_CXX=yes
18835 hardcode_libdir_separator_CXX=':'
18836 link_all_deplibs_CXX=yes
18837 file_list_spec_CXX='${wl}-f,'
18838
18839 if test "$GXX" = yes; then
18840 case $host_os in aix4.[012]|aix4.[012].*)
18841 # We only want to do this on AIX 4.2 and lower, the check
18842 # below for broken collect2 doesn't work under 4.3+
18843 collect2name=`${CC} -print-prog-name=collect2`
18844 if test -f "$collect2name" &&
18845 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18846 then
18847 # We have reworked collect2
18848 :
18849 else
18850 # We have old collect2
18851 hardcode_direct_CXX=unsupported
18852 # It fails to find uninstalled libraries when the uninstalled
18853 # path is not listed in the libpath. Setting hardcode_minus_L
18854 # to unsupported forces relinking
18855 hardcode_minus_L_CXX=yes
18856 hardcode_libdir_flag_spec_CXX='-L$libdir'
18857 hardcode_libdir_separator_CXX=
18858 fi
18859 esac
18860 shared_flag='-shared'
18861 if test "$aix_use_runtimelinking" = yes; then
18862 shared_flag="$shared_flag "'${wl}-G'
18863 fi
18864 else
18865 # not using gcc
18866 if test "$host_cpu" = ia64; then
18867 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18868 # chokes on -Wl,-G. The following line is correct:
18869 shared_flag='-G'
18870 else
18871 if test "$aix_use_runtimelinking" = yes; then
18872 shared_flag='${wl}-G'
18873 else
18874 shared_flag='${wl}-bM:SRE'
18875 fi
18876 fi
18877 fi
18878
18879 export_dynamic_flag_spec_CXX='${wl}-bexpall'
18880 # It seems that -bexpall does not export symbols beginning with
18881 # underscore (_), so it is better to generate a list of symbols to
18882 # export.
18883 always_export_symbols_CXX=yes
18884 if test "$aix_use_runtimelinking" = yes; then
18885 # Warning - without using the other runtime loading flags (-brtl),
18886 # -berok will link without error, but may produce a broken library.
18887 allow_undefined_flag_CXX='-berok'
18888 # Determine the default libpath from the value encoded in an empty
18889 # executable.
cristyda16f162011-02-19 23:52:17 +000018890 if test "${lt_cv_aix_libpath+set}" = set; then
18891 aix_libpath=$lt_cv_aix_libpath
18892else
18893 if ${lt_cv_aix_libpath__CXX+:} false; then :
18894 $as_echo_n "(cached) " >&6
18895else
18896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000018897/* end confdefs.h. */
18898
18899int
18900main ()
18901{
18902
18903 ;
18904 return 0;
18905}
18906_ACEOF
18907if ac_fn_cxx_try_link "$LINENO"; then :
18908
cristyda16f162011-02-19 23:52:17 +000018909 lt_aix_libpath_sed='
18910 /Import File Strings/,/^$/ {
18911 /^0/ {
18912 s/^0 *\([^ ]*\) *$/\1/
18913 p
18914 }
18915 }'
18916 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18917 # Check for a 64-bit object if we didn't find anything.
18918 if test -z "$lt_cv_aix_libpath__CXX"; then
18919 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18920 fi
cristy73bd4a52010-10-05 11:24:23 +000018921fi
18922rm -f core conftest.err conftest.$ac_objext \
18923 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000018924 if test -z "$lt_cv_aix_libpath__CXX"; then
18925 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
18926 fi
18927
18928fi
18929
18930 aix_libpath=$lt_cv_aix_libpath__CXX
18931fi
cristy73bd4a52010-10-05 11:24:23 +000018932
18933 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18934
cristy0c60a692010-11-04 01:09:47 +000018935 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 +000018936 else
18937 if test "$host_cpu" = ia64; then
18938 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18939 allow_undefined_flag_CXX="-z nodefs"
18940 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"
18941 else
18942 # Determine the default libpath from the value encoded in an
18943 # empty executable.
cristyda16f162011-02-19 23:52:17 +000018944 if test "${lt_cv_aix_libpath+set}" = set; then
18945 aix_libpath=$lt_cv_aix_libpath
18946else
18947 if ${lt_cv_aix_libpath__CXX+:} false; then :
18948 $as_echo_n "(cached) " >&6
18949else
18950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000018951/* end confdefs.h. */
18952
18953int
18954main ()
18955{
18956
18957 ;
18958 return 0;
18959}
18960_ACEOF
18961if ac_fn_cxx_try_link "$LINENO"; then :
18962
cristyda16f162011-02-19 23:52:17 +000018963 lt_aix_libpath_sed='
18964 /Import File Strings/,/^$/ {
18965 /^0/ {
18966 s/^0 *\([^ ]*\) *$/\1/
18967 p
18968 }
18969 }'
18970 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18971 # Check for a 64-bit object if we didn't find anything.
18972 if test -z "$lt_cv_aix_libpath__CXX"; then
18973 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18974 fi
cristy73bd4a52010-10-05 11:24:23 +000018975fi
18976rm -f core conftest.err conftest.$ac_objext \
18977 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000018978 if test -z "$lt_cv_aix_libpath__CXX"; then
18979 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
18980 fi
18981
18982fi
18983
18984 aix_libpath=$lt_cv_aix_libpath__CXX
18985fi
cristy73bd4a52010-10-05 11:24:23 +000018986
18987 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18988 # Warning - without using the other run time loading flags,
18989 # -berok will link without error, but may produce a broken library.
18990 no_undefined_flag_CXX=' ${wl}-bernotok'
18991 allow_undefined_flag_CXX=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000018992 if test "$with_gnu_ld" = yes; then
18993 # We only use this code for GNU lds that support --whole-archive.
18994 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18995 else
18996 # Exported symbols can be pulled into shared objects from archives
18997 whole_archive_flag_spec_CXX='$convenience'
18998 fi
cristy73bd4a52010-10-05 11:24:23 +000018999 archive_cmds_need_lc_CXX=yes
19000 # This is similar to how AIX traditionally builds its shared
19001 # libraries.
19002 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'
19003 fi
19004 fi
19005 ;;
19006
19007 beos*)
19008 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19009 allow_undefined_flag_CXX=unsupported
19010 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19011 # support --undefined. This deserves some investigation. FIXME
19012 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19013 else
19014 ld_shlibs_CXX=no
19015 fi
19016 ;;
19017
19018 chorus*)
19019 case $cc_basename in
19020 *)
19021 # FIXME: insert proper C++ library support
19022 ld_shlibs_CXX=no
19023 ;;
19024 esac
19025 ;;
19026
19027 cygwin* | mingw* | pw32* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000019028 case $GXX,$cc_basename in
19029 ,cl* | no,cl*)
19030 # Native MSVC
19031 # hardcode_libdir_flag_spec is actually meaningless, as there is
19032 # no search path for DLLs.
19033 hardcode_libdir_flag_spec_CXX=' '
19034 allow_undefined_flag_CXX=unsupported
19035 always_export_symbols_CXX=yes
19036 file_list_spec_CXX='@'
19037 # Tell ltmain to make .lib files, not .a files.
19038 libext=lib
19039 # Tell ltmain to make .dll files, not .so files.
19040 shrext_cmds=".dll"
19041 # FIXME: Setting linknames here is a bad hack.
19042 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
19043 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19044 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
19045 else
19046 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
19047 fi~
19048 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
19049 linknames='
19050 # The linker will not automatically build a static lib if we build a DLL.
19051 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
19052 enable_shared_with_static_runtimes_CXX=yes
19053 # Don't use ranlib
19054 old_postinstall_cmds_CXX='chmod 644 $oldlib'
19055 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
19056 lt_tool_outputfile="@TOOL_OUTPUT@"~
19057 case $lt_outputfile in
19058 *.exe|*.EXE) ;;
19059 *)
19060 lt_outputfile="$lt_outputfile.exe"
19061 lt_tool_outputfile="$lt_tool_outputfile.exe"
19062 ;;
19063 esac~
19064 func_to_tool_file "$lt_outputfile"~
19065 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
19066 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
19067 $RM "$lt_outputfile.manifest";
19068 fi'
19069 ;;
19070 *)
19071 # g++
19072 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19073 # as there is no search path for DLLs.
19074 hardcode_libdir_flag_spec_CXX='-L$libdir'
19075 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
19076 allow_undefined_flag_CXX=unsupported
19077 always_export_symbols_CXX=no
19078 enable_shared_with_static_runtimes_CXX=yes
cristy73bd4a52010-10-05 11:24:23 +000019079
cristyda16f162011-02-19 23:52:17 +000019080 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19081 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'
19082 # If the export-symbols file already is a .def file (1st line
19083 # is EXPORTS), use it as is; otherwise, prepend...
19084 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19085 cp $export_symbols $output_objdir/$soname.def;
19086 else
19087 echo EXPORTS > $output_objdir/$soname.def;
19088 cat $export_symbols >> $output_objdir/$soname.def;
19089 fi~
19090 $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'
19091 else
19092 ld_shlibs_CXX=no
19093 fi
19094 ;;
19095 esac
19096 ;;
cristy73bd4a52010-10-05 11:24:23 +000019097 darwin* | rhapsody*)
19098
19099
19100 archive_cmds_need_lc_CXX=no
19101 hardcode_direct_CXX=no
19102 hardcode_automatic_CXX=yes
19103 hardcode_shlibpath_var_CXX=unsupported
cristy0c60a692010-11-04 01:09:47 +000019104 if test "$lt_cv_ld_force_load" = "yes"; then
19105 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 +000019106
cristy0c60a692010-11-04 01:09:47 +000019107 else
19108 whole_archive_flag_spec_CXX=''
19109 fi
cristy73bd4a52010-10-05 11:24:23 +000019110 link_all_deplibs_CXX=yes
19111 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
19112 case $cc_basename in
19113 ifort*) _lt_dar_can_shared=yes ;;
19114 *) _lt_dar_can_shared=$GCC ;;
19115 esac
19116 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000019117 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000019118 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}"
19119 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19120 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}"
19121 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}"
19122 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19123 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}"
19124 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}"
19125 fi
19126
19127 else
19128 ld_shlibs_CXX=no
19129 fi
19130
19131 ;;
19132
19133 dgux*)
19134 case $cc_basename in
19135 ec++*)
19136 # FIXME: insert proper C++ library support
19137 ld_shlibs_CXX=no
19138 ;;
19139 ghcx*)
19140 # Green Hills C++ Compiler
19141 # FIXME: insert proper C++ library support
19142 ld_shlibs_CXX=no
19143 ;;
19144 *)
19145 # FIXME: insert proper C++ library support
19146 ld_shlibs_CXX=no
19147 ;;
19148 esac
19149 ;;
19150
cristy99bd5232011-12-07 14:38:20 +000019151 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000019152 # C++ shared libraries reported to be fairly broken before
19153 # switch to ELF
19154 ld_shlibs_CXX=no
19155 ;;
19156
19157 freebsd-elf*)
19158 archive_cmds_need_lc_CXX=no
19159 ;;
19160
19161 freebsd* | dragonfly*)
19162 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19163 # conventions
19164 ld_shlibs_CXX=yes
19165 ;;
19166
19167 gnu*)
19168 ;;
19169
cristy0c60a692010-11-04 01:09:47 +000019170 haiku*)
19171 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19172 link_all_deplibs_CXX=yes
19173 ;;
19174
cristy73bd4a52010-10-05 11:24:23 +000019175 hpux9*)
19176 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19177 hardcode_libdir_separator_CXX=:
19178 export_dynamic_flag_spec_CXX='${wl}-E'
19179 hardcode_direct_CXX=yes
19180 hardcode_minus_L_CXX=yes # Not in the search PATH,
19181 # but as the default
19182 # location of the library.
19183
19184 case $cc_basename in
19185 CC*)
19186 # FIXME: insert proper C++ library support
19187 ld_shlibs_CXX=no
19188 ;;
19189 aCC*)
19190 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'
19191 # Commands to make compiler produce verbose output that lists
19192 # what "hidden" libraries, object files and flags are used when
19193 # linking a shared library.
19194 #
19195 # There doesn't appear to be a way to prevent this compiler from
19196 # explicitly linking system object files so we need to strip them
19197 # from the output so that they don't get included in the library
19198 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000019199 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 +000019200 ;;
19201 *)
19202 if test "$GXX" = yes; then
cristyda16f162011-02-19 23:52:17 +000019203 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 +000019204 else
19205 # FIXME: insert proper C++ library support
19206 ld_shlibs_CXX=no
19207 fi
19208 ;;
19209 esac
19210 ;;
19211
19212 hpux10*|hpux11*)
19213 if test $with_gnu_ld = no; then
19214 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19215 hardcode_libdir_separator_CXX=:
19216
19217 case $host_cpu in
19218 hppa*64*|ia64*)
19219 ;;
19220 *)
19221 export_dynamic_flag_spec_CXX='${wl}-E'
19222 ;;
19223 esac
19224 fi
19225 case $host_cpu in
19226 hppa*64*|ia64*)
19227 hardcode_direct_CXX=no
19228 hardcode_shlibpath_var_CXX=no
19229 ;;
19230 *)
19231 hardcode_direct_CXX=yes
19232 hardcode_direct_absolute_CXX=yes
19233 hardcode_minus_L_CXX=yes # Not in the search PATH,
19234 # but as the default
19235 # location of the library.
19236 ;;
19237 esac
19238
19239 case $cc_basename in
19240 CC*)
19241 # FIXME: insert proper C++ library support
19242 ld_shlibs_CXX=no
19243 ;;
19244 aCC*)
19245 case $host_cpu in
19246 hppa*64*)
19247 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19248 ;;
19249 ia64*)
19250 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19251 ;;
19252 *)
19253 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19254 ;;
19255 esac
19256 # Commands to make compiler produce verbose output that lists
19257 # what "hidden" libraries, object files and flags are used when
19258 # linking a shared library.
19259 #
19260 # There doesn't appear to be a way to prevent this compiler from
19261 # explicitly linking system object files so we need to strip them
19262 # from the output so that they don't get included in the library
19263 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000019264 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 +000019265 ;;
19266 *)
19267 if test "$GXX" = yes; then
19268 if test $with_gnu_ld = no; then
19269 case $host_cpu in
19270 hppa*64*)
19271 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19272 ;;
19273 ia64*)
cristyda16f162011-02-19 23:52:17 +000019274 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 +000019275 ;;
19276 *)
cristyda16f162011-02-19 23:52:17 +000019277 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 +000019278 ;;
19279 esac
19280 fi
19281 else
19282 # FIXME: insert proper C++ library support
19283 ld_shlibs_CXX=no
19284 fi
19285 ;;
19286 esac
19287 ;;
19288
19289 interix[3-9]*)
19290 hardcode_direct_CXX=no
19291 hardcode_shlibpath_var_CXX=no
19292 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19293 export_dynamic_flag_spec_CXX='${wl}-E'
19294 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19295 # Instead, shared libraries are loaded at an image base (0x10000000 by
19296 # default) and relocated if they conflict, which is a slow very memory
19297 # consuming and fragmenting process. To avoid this, we pick a random,
19298 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19299 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19300 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'
19301 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'
19302 ;;
19303 irix5* | irix6*)
19304 case $cc_basename in
19305 CC*)
19306 # SGI C++
cristy0c60a692010-11-04 01:09:47 +000019307 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 +000019308
19309 # Archives containing C++ object files must be created using
19310 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19311 # necessary to make sure instantiated templates are included
19312 # in the archive.
19313 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19314 ;;
19315 *)
19316 if test "$GXX" = yes; then
19317 if test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000019318 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 +000019319 else
cristyda16f162011-02-19 23:52:17 +000019320 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 +000019321 fi
19322 fi
19323 link_all_deplibs_CXX=yes
19324 ;;
19325 esac
19326 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19327 hardcode_libdir_separator_CXX=:
19328 inherit_rpath_CXX=yes
19329 ;;
19330
cristy0c60a692010-11-04 01:09:47 +000019331 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000019332 case $cc_basename in
19333 KCC*)
19334 # Kuck and Associates, Inc. (KAI) C++ Compiler
19335
19336 # KCC will only create a shared library if the output file
19337 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19338 # to its proper name (with version) after linking.
19339 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'
19340 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'
19341 # Commands to make compiler produce verbose output that lists
19342 # what "hidden" libraries, object files and flags are used when
19343 # linking a shared library.
19344 #
19345 # There doesn't appear to be a way to prevent this compiler from
19346 # explicitly linking system object files so we need to strip them
19347 # from the output so that they don't get included in the library
19348 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000019349 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 +000019350
19351 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19352 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19353
19354 # Archives containing C++ object files must be created using
19355 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19356 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19357 ;;
19358 icpc* | ecpc* )
19359 # Intel C++
19360 with_gnu_ld=yes
19361 # version 8.0 and above of icpc choke on multiply defined symbols
19362 # if we add $predep_objects and $postdep_objects, however 7.1 and
19363 # earlier do not add the objects themselves.
19364 case `$CC -V 2>&1` in
19365 *"Version 7."*)
19366 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19367 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'
19368 ;;
19369 *) # Version 8.0 or newer
19370 tmp_idyn=
19371 case $host_cpu in
19372 ia64*) tmp_idyn=' -i_dynamic';;
19373 esac
19374 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19375 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'
19376 ;;
19377 esac
19378 archive_cmds_need_lc_CXX=no
19379 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19380 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19381 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19382 ;;
19383 pgCC* | pgcpp*)
19384 # Portland Group C++ compiler
19385 case `$CC -V` in
cristy0c60a692010-11-04 01:09:47 +000019386 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
cristy73bd4a52010-10-05 11:24:23 +000019387 prelink_cmds_CXX='tpldir=Template.dir~
19388 rm -rf $tpldir~
19389 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
cristy0c60a692010-11-04 01:09:47 +000019390 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
cristy73bd4a52010-10-05 11:24:23 +000019391 old_archive_cmds_CXX='tpldir=Template.dir~
19392 rm -rf $tpldir~
19393 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
cristy0c60a692010-11-04 01:09:47 +000019394 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
cristy73bd4a52010-10-05 11:24:23 +000019395 $RANLIB $oldlib'
19396 archive_cmds_CXX='tpldir=Template.dir~
19397 rm -rf $tpldir~
19398 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000019399 $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 +000019400 archive_expsym_cmds_CXX='tpldir=Template.dir~
19401 rm -rf $tpldir~
19402 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000019403 $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 +000019404 ;;
cristy0c60a692010-11-04 01:09:47 +000019405 *) # Version 6 and above use weak symbols
cristy73bd4a52010-10-05 11:24:23 +000019406 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19407 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'
19408 ;;
19409 esac
19410
19411 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19412 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cristy0c60a692010-11-04 01:09:47 +000019413 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 +000019414 ;;
19415 cxx*)
19416 # Compaq C++
19417 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19418 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'
19419
19420 runpath_var=LD_RUN_PATH
19421 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19422 hardcode_libdir_separator_CXX=:
19423
19424 # Commands to make compiler produce verbose output that lists
19425 # what "hidden" libraries, object files and flags are used when
19426 # linking a shared library.
19427 #
19428 # There doesn't appear to be a way to prevent this compiler from
19429 # explicitly linking system object files so we need to strip them
19430 # from the output so that they don't get included in the library
19431 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000019432 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 +000019433 ;;
cristy0c60a692010-11-04 01:09:47 +000019434 xl* | mpixl* | bgxl*)
cristy73bd4a52010-10-05 11:24:23 +000019435 # IBM XL 8.0 on PPC, with GNU ld
19436 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19437 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19438 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19439 if test "x$supports_anon_versioning" = xyes; then
19440 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19441 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19442 echo "local: *; };" >> $output_objdir/$libname.ver~
19443 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19444 fi
19445 ;;
19446 *)
19447 case `$CC -V 2>&1 | sed 5q` in
19448 *Sun\ C*)
19449 # Sun C++ 5.9
19450 no_undefined_flag_CXX=' -zdefs'
19451 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19452 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'
19453 hardcode_libdir_flag_spec_CXX='-R$libdir'
cristy0c60a692010-11-04 01:09:47 +000019454 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 +000019455 compiler_needs_object_CXX=yes
19456
19457 # Not sure whether something based on
19458 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19459 # would be better.
cristy0c60a692010-11-04 01:09:47 +000019460 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000019461
19462 # Archives containing C++ object files must be created using
19463 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19464 # necessary to make sure instantiated templates are included
19465 # in the archive.
19466 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19467 ;;
19468 esac
19469 ;;
19470 esac
19471 ;;
19472
19473 lynxos*)
19474 # FIXME: insert proper C++ library support
19475 ld_shlibs_CXX=no
19476 ;;
19477
19478 m88k*)
19479 # FIXME: insert proper C++ library support
19480 ld_shlibs_CXX=no
19481 ;;
19482
19483 mvs*)
19484 case $cc_basename in
19485 cxx*)
19486 # FIXME: insert proper C++ library support
19487 ld_shlibs_CXX=no
19488 ;;
19489 *)
19490 # FIXME: insert proper C++ library support
19491 ld_shlibs_CXX=no
19492 ;;
19493 esac
19494 ;;
19495
19496 netbsd*)
19497 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19498 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19499 wlarc=
19500 hardcode_libdir_flag_spec_CXX='-R$libdir'
19501 hardcode_direct_CXX=yes
19502 hardcode_shlibpath_var_CXX=no
19503 fi
19504 # Workaround some broken pre-1.5 toolchains
19505 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19506 ;;
19507
19508 *nto* | *qnx*)
19509 ld_shlibs_CXX=yes
19510 ;;
19511
19512 openbsd2*)
19513 # C++ shared libraries are fairly broken
19514 ld_shlibs_CXX=no
19515 ;;
19516
19517 openbsd*)
19518 if test -f /usr/libexec/ld.so; then
19519 hardcode_direct_CXX=yes
19520 hardcode_shlibpath_var_CXX=no
19521 hardcode_direct_absolute_CXX=yes
19522 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19523 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19524 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19525 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19526 export_dynamic_flag_spec_CXX='${wl}-E'
19527 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19528 fi
cristy0c60a692010-11-04 01:09:47 +000019529 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000019530 else
19531 ld_shlibs_CXX=no
19532 fi
19533 ;;
19534
19535 osf3* | osf4* | osf5*)
19536 case $cc_basename in
19537 KCC*)
19538 # Kuck and Associates, Inc. (KAI) C++ Compiler
19539
19540 # KCC will only create a shared library if the output file
19541 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19542 # to its proper name (with version) after linking.
19543 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'
19544
19545 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19546 hardcode_libdir_separator_CXX=:
19547
19548 # Archives containing C++ object files must be created using
19549 # the KAI C++ compiler.
19550 case $host in
19551 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19552 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19553 esac
19554 ;;
19555 RCC*)
19556 # Rational C++ 2.4.1
19557 # FIXME: insert proper C++ library support
19558 ld_shlibs_CXX=no
19559 ;;
19560 cxx*)
19561 case $host in
19562 osf3*)
19563 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000019564 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 +000019565 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19566 ;;
19567 *)
19568 allow_undefined_flag_CXX=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000019569 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 +000019570 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19571 echo "-hidden">> $lib.exp~
cristy0c60a692010-11-04 01:09:47 +000019572 $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 +000019573 $RM $lib.exp'
19574 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19575 ;;
19576 esac
19577
19578 hardcode_libdir_separator_CXX=:
19579
19580 # Commands to make compiler produce verbose output that lists
19581 # what "hidden" libraries, object files and flags are used when
19582 # linking a shared library.
19583 #
19584 # There doesn't appear to be a way to prevent this compiler from
19585 # explicitly linking system object files so we need to strip them
19586 # from the output so that they don't get included in the library
19587 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000019588 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 +000019589 ;;
19590 *)
19591 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19592 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19593 case $host in
19594 osf3*)
cristy0c60a692010-11-04 01:09:47 +000019595 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 +000019596 ;;
19597 *)
cristyda16f162011-02-19 23:52:17 +000019598 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 +000019599 ;;
19600 esac
19601
19602 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19603 hardcode_libdir_separator_CXX=:
19604
19605 # Commands to make compiler produce verbose output that lists
19606 # what "hidden" libraries, object files and flags are used when
19607 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000019608 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000019609
19610 else
19611 # FIXME: insert proper C++ library support
19612 ld_shlibs_CXX=no
19613 fi
19614 ;;
19615 esac
19616 ;;
19617
19618 psos*)
19619 # FIXME: insert proper C++ library support
19620 ld_shlibs_CXX=no
19621 ;;
19622
19623 sunos4*)
19624 case $cc_basename in
19625 CC*)
19626 # Sun C++ 4.x
19627 # FIXME: insert proper C++ library support
19628 ld_shlibs_CXX=no
19629 ;;
19630 lcc*)
19631 # Lucid
19632 # FIXME: insert proper C++ library support
19633 ld_shlibs_CXX=no
19634 ;;
19635 *)
19636 # FIXME: insert proper C++ library support
19637 ld_shlibs_CXX=no
19638 ;;
19639 esac
19640 ;;
19641
19642 solaris*)
19643 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000019644 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000019645 # Sun C++ 4.2, 5.x and Centerline C++
19646 archive_cmds_need_lc_CXX=yes
19647 no_undefined_flag_CXX=' -zdefs'
19648 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19649 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19650 $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'
19651
19652 hardcode_libdir_flag_spec_CXX='-R$libdir'
19653 hardcode_shlibpath_var_CXX=no
19654 case $host_os in
19655 solaris2.[0-5] | solaris2.[0-5].*) ;;
19656 *)
19657 # The compiler driver will combine and reorder linker options,
19658 # but understands `-z linker_flag'.
19659 # Supported since Solaris 2.6 (maybe 2.5.1?)
19660 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19661 ;;
19662 esac
19663 link_all_deplibs_CXX=yes
19664
cristy0c60a692010-11-04 01:09:47 +000019665 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000019666
19667 # Archives containing C++ object files must be created using
19668 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19669 # necessary to make sure instantiated templates are included
19670 # in the archive.
19671 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19672 ;;
19673 gcx*)
19674 # Green Hills C++ Compiler
19675 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19676
19677 # The C++ compiler must be used to create the archive.
19678 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19679 ;;
19680 *)
19681 # GNU C++ compiler with Solaris linker
19682 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19683 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19684 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000019685 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 +000019686 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 +000019687 $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 +000019688
19689 # Commands to make compiler produce verbose output that lists
19690 # what "hidden" libraries, object files and flags are used when
19691 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000019692 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000019693 else
19694 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19695 # platform.
19696 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19697 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19698 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19699
19700 # Commands to make compiler produce verbose output that lists
19701 # what "hidden" libraries, object files and flags are used when
19702 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000019703 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000019704 fi
19705
19706 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19707 case $host_os in
19708 solaris2.[0-5] | solaris2.[0-5].*) ;;
19709 *)
19710 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19711 ;;
19712 esac
19713 fi
19714 ;;
19715 esac
19716 ;;
19717
19718 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19719 no_undefined_flag_CXX='${wl}-z,text'
19720 archive_cmds_need_lc_CXX=no
19721 hardcode_shlibpath_var_CXX=no
19722 runpath_var='LD_RUN_PATH'
19723
19724 case $cc_basename in
19725 CC*)
19726 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19727 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19728 ;;
19729 *)
19730 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19731 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19732 ;;
19733 esac
19734 ;;
19735
19736 sysv5* | sco3.2v5* | sco5v6*)
19737 # Note: We can NOT use -z defs as we might desire, because we do not
19738 # link with -lc, and that would cause any symbols used from libc to
19739 # always be unresolved, which means just about no library would
19740 # ever link correctly. If we're not using GNU ld we use -z text
19741 # though, which does catch some bad symbols but isn't as heavy-handed
19742 # as -z defs.
19743 no_undefined_flag_CXX='${wl}-z,text'
19744 allow_undefined_flag_CXX='${wl}-z,nodefs'
19745 archive_cmds_need_lc_CXX=no
19746 hardcode_shlibpath_var_CXX=no
19747 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19748 hardcode_libdir_separator_CXX=':'
19749 link_all_deplibs_CXX=yes
19750 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19751 runpath_var='LD_RUN_PATH'
19752
19753 case $cc_basename in
19754 CC*)
19755 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19756 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 +000019757 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19758 '"$old_archive_cmds_CXX"
19759 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19760 '"$reload_cmds_CXX"
cristy73bd4a52010-10-05 11:24:23 +000019761 ;;
19762 *)
19763 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19764 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19765 ;;
19766 esac
19767 ;;
19768
19769 tandem*)
19770 case $cc_basename in
19771 NCC*)
19772 # NonStop-UX NCC 3.20
19773 # FIXME: insert proper C++ library support
19774 ld_shlibs_CXX=no
19775 ;;
19776 *)
19777 # FIXME: insert proper C++ library support
19778 ld_shlibs_CXX=no
19779 ;;
19780 esac
19781 ;;
19782
19783 vxworks*)
19784 # FIXME: insert proper C++ library support
19785 ld_shlibs_CXX=no
19786 ;;
19787
19788 *)
19789 # FIXME: insert proper C++ library support
19790 ld_shlibs_CXX=no
19791 ;;
19792 esac
19793
19794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19795$as_echo "$ld_shlibs_CXX" >&6; }
19796 test "$ld_shlibs_CXX" = no && can_build_shared=no
19797
19798 GCC_CXX="$GXX"
19799 LD_CXX="$LD"
19800
19801 ## CAVEAT EMPTOR:
19802 ## There is no encapsulation within the following macros, do not change
19803 ## the running order or otherwise move them around unless you know exactly
19804 ## what you are doing...
19805 # Dependencies to place before and after the object being linked:
19806predep_objects_CXX=
19807postdep_objects_CXX=
19808predeps_CXX=
19809postdeps_CXX=
19810compiler_lib_search_path_CXX=
19811
19812cat > conftest.$ac_ext <<_LT_EOF
19813class Foo
19814{
19815public:
19816 Foo (void) { a = 0; }
19817private:
19818 int a;
19819};
19820_LT_EOF
19821
cristyda16f162011-02-19 23:52:17 +000019822
19823_lt_libdeps_save_CFLAGS=$CFLAGS
19824case "$CC $CFLAGS " in #(
19825*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
19826*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
cristy99bd5232011-12-07 14:38:20 +000019827*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
cristyda16f162011-02-19 23:52:17 +000019828esac
19829
cristy73bd4a52010-10-05 11:24:23 +000019830if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19831 (eval $ac_compile) 2>&5
19832 ac_status=$?
19833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19834 test $ac_status = 0; }; then
19835 # Parse the compiler output and extract the necessary
19836 # objects, libraries and library flags.
19837
19838 # Sentinel used to keep track of whether or not we are before
19839 # the conftest object file.
19840 pre_test_object_deps_done=no
19841
19842 for p in `eval "$output_verbose_link_cmd"`; do
cristyda16f162011-02-19 23:52:17 +000019843 case ${prev}${p} in
cristy73bd4a52010-10-05 11:24:23 +000019844
19845 -L* | -R* | -l*)
19846 # Some compilers place space between "-{L,R}" and the path.
19847 # Remove the space.
19848 if test $p = "-L" ||
19849 test $p = "-R"; then
19850 prev=$p
19851 continue
cristy73bd4a52010-10-05 11:24:23 +000019852 fi
19853
cristyda16f162011-02-19 23:52:17 +000019854 # Expand the sysroot to ease extracting the directories later.
19855 if test -z "$prev"; then
19856 case $p in
19857 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
19858 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
19859 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
19860 esac
19861 fi
19862 case $p in
19863 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
19864 esac
cristy73bd4a52010-10-05 11:24:23 +000019865 if test "$pre_test_object_deps_done" = no; then
cristyda16f162011-02-19 23:52:17 +000019866 case ${prev} in
19867 -L | -R)
cristy73bd4a52010-10-05 11:24:23 +000019868 # Internal compiler library paths should come after those
19869 # provided the user. The postdeps already come after the
19870 # user supplied libs so there is no need to process them.
19871 if test -z "$compiler_lib_search_path_CXX"; then
19872 compiler_lib_search_path_CXX="${prev}${p}"
19873 else
19874 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19875 fi
19876 ;;
19877 # The "-l" case would never come before the object being
19878 # linked, so don't bother handling this case.
19879 esac
19880 else
19881 if test -z "$postdeps_CXX"; then
19882 postdeps_CXX="${prev}${p}"
19883 else
19884 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19885 fi
19886 fi
cristyda16f162011-02-19 23:52:17 +000019887 prev=
cristy73bd4a52010-10-05 11:24:23 +000019888 ;;
19889
cristyda16f162011-02-19 23:52:17 +000019890 *.lto.$objext) ;; # Ignore GCC LTO objects
cristy73bd4a52010-10-05 11:24:23 +000019891 *.$objext)
19892 # This assumes that the test object file only shows up
19893 # once in the compiler output.
19894 if test "$p" = "conftest.$objext"; then
19895 pre_test_object_deps_done=yes
19896 continue
19897 fi
19898
19899 if test "$pre_test_object_deps_done" = no; then
19900 if test -z "$predep_objects_CXX"; then
19901 predep_objects_CXX="$p"
19902 else
19903 predep_objects_CXX="$predep_objects_CXX $p"
19904 fi
19905 else
19906 if test -z "$postdep_objects_CXX"; then
19907 postdep_objects_CXX="$p"
19908 else
19909 postdep_objects_CXX="$postdep_objects_CXX $p"
19910 fi
19911 fi
19912 ;;
19913
19914 *) ;; # Ignore the rest.
19915
19916 esac
19917 done
19918
19919 # Clean up.
19920 rm -f a.out a.exe
19921else
19922 echo "libtool.m4: error: problem compiling CXX test program"
19923fi
19924
19925$RM -f confest.$objext
cristyda16f162011-02-19 23:52:17 +000019926CFLAGS=$_lt_libdeps_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000019927
19928# PORTME: override above test on systems where it is broken
19929case $host_os in
19930interix[3-9]*)
19931 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19932 # hack all around it, let's just trust "g++" to DTRT.
19933 predep_objects_CXX=
19934 postdep_objects_CXX=
19935 postdeps_CXX=
19936 ;;
19937
19938linux*)
19939 case `$CC -V 2>&1 | sed 5q` in
19940 *Sun\ C*)
19941 # Sun C++ 5.9
19942
19943 # The more standards-conforming stlport4 library is
19944 # incompatible with the Cstd library. Avoid specifying
19945 # it if it's in CXXFLAGS. Ignore libCrun as
19946 # -library=stlport4 depends on it.
19947 case " $CXX $CXXFLAGS " in
19948 *" -library=stlport4 "*)
19949 solaris_use_stlport4=yes
19950 ;;
19951 esac
19952
19953 if test "$solaris_use_stlport4" != yes; then
19954 postdeps_CXX='-library=Cstd -library=Crun'
19955 fi
19956 ;;
19957 esac
19958 ;;
19959
19960solaris*)
19961 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000019962 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000019963 # The more standards-conforming stlport4 library is
19964 # incompatible with the Cstd library. Avoid specifying
19965 # it if it's in CXXFLAGS. Ignore libCrun as
19966 # -library=stlport4 depends on it.
19967 case " $CXX $CXXFLAGS " in
19968 *" -library=stlport4 "*)
19969 solaris_use_stlport4=yes
19970 ;;
19971 esac
19972
19973 # Adding this requires a known-good setup of shared libraries for
19974 # Sun compiler versions before 5.6, else PIC objects from an old
19975 # archive will be linked into the output, leading to subtle bugs.
19976 if test "$solaris_use_stlport4" != yes; then
19977 postdeps_CXX='-library=Cstd -library=Crun'
19978 fi
19979 ;;
19980 esac
19981 ;;
19982esac
19983
19984
19985case " $postdeps_CXX " in
19986*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19987esac
19988 compiler_lib_search_dirs_CXX=
19989if test -n "${compiler_lib_search_path_CXX}"; then
19990 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19991fi
19992
19993
19994
19995
19996
19997
19998
19999
20000
20001
20002
20003
20004
20005
20006
20007
20008
20009
20010
20011
20012
20013
20014
20015
20016
20017
20018
20019
20020
20021
20022
20023 lt_prog_compiler_wl_CXX=
20024lt_prog_compiler_pic_CXX=
20025lt_prog_compiler_static_CXX=
20026
cristy73bd4a52010-10-05 11:24:23 +000020027
20028 # C++ specific cases for pic, static, wl, etc.
20029 if test "$GXX" = yes; then
20030 lt_prog_compiler_wl_CXX='-Wl,'
20031 lt_prog_compiler_static_CXX='-static'
20032
20033 case $host_os in
20034 aix*)
20035 # All AIX code is PIC.
20036 if test "$host_cpu" = ia64; then
20037 # AIX 5 now supports IA64 processor
20038 lt_prog_compiler_static_CXX='-Bstatic'
20039 fi
20040 ;;
20041
20042 amigaos*)
20043 case $host_cpu in
20044 powerpc)
20045 # see comment about AmigaOS4 .so support
20046 lt_prog_compiler_pic_CXX='-fPIC'
20047 ;;
20048 m68k)
20049 # FIXME: we need at least 68020 code to build shared libraries, but
20050 # adding the `-m68020' flag to GCC prevents building anything better,
20051 # like `-m68040'.
20052 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
20053 ;;
20054 esac
20055 ;;
20056
20057 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20058 # PIC is the default for these OSes.
20059 ;;
20060 mingw* | cygwin* | os2* | pw32* | cegcc*)
20061 # This hack is so that the source file can tell whether it is being
20062 # built for inclusion in a dll (and should export symbols for example).
20063 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20064 # (--disable-auto-import) libraries
20065 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20066 ;;
20067 darwin* | rhapsody*)
20068 # PIC is the default on this platform
20069 # Common symbols not allowed in MH_DYLIB files
20070 lt_prog_compiler_pic_CXX='-fno-common'
20071 ;;
20072 *djgpp*)
20073 # DJGPP does not support shared libraries at all
20074 lt_prog_compiler_pic_CXX=
20075 ;;
cristy0c60a692010-11-04 01:09:47 +000020076 haiku*)
20077 # PIC is the default for Haiku.
20078 # The "-static" flag exists, but is broken.
20079 lt_prog_compiler_static_CXX=
20080 ;;
cristy73bd4a52010-10-05 11:24:23 +000020081 interix[3-9]*)
20082 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20083 # Instead, we relocate shared libraries at runtime.
20084 ;;
20085 sysv4*MP*)
20086 if test -d /usr/nec; then
20087 lt_prog_compiler_pic_CXX=-Kconform_pic
20088 fi
20089 ;;
20090 hpux*)
20091 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20092 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20093 # sets the default TLS model and affects inlining.
20094 case $host_cpu in
20095 hppa*64*)
20096 ;;
20097 *)
20098 lt_prog_compiler_pic_CXX='-fPIC'
20099 ;;
20100 esac
20101 ;;
20102 *qnx* | *nto*)
20103 # QNX uses GNU C++, but need to define -shared option too, otherwise
20104 # it will coredump.
20105 lt_prog_compiler_pic_CXX='-fPIC -shared'
20106 ;;
20107 *)
20108 lt_prog_compiler_pic_CXX='-fPIC'
20109 ;;
20110 esac
20111 else
20112 case $host_os in
20113 aix[4-9]*)
20114 # All AIX code is PIC.
20115 if test "$host_cpu" = ia64; then
20116 # AIX 5 now supports IA64 processor
20117 lt_prog_compiler_static_CXX='-Bstatic'
20118 else
20119 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
20120 fi
20121 ;;
20122 chorus*)
20123 case $cc_basename in
20124 cxch68*)
20125 # Green Hills C++ Compiler
20126 # _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"
20127 ;;
20128 esac
20129 ;;
cristyda16f162011-02-19 23:52:17 +000020130 mingw* | cygwin* | os2* | pw32* | cegcc*)
20131 # This hack is so that the source file can tell whether it is being
20132 # built for inclusion in a dll (and should export symbols for example).
20133 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20134 ;;
cristy73bd4a52010-10-05 11:24:23 +000020135 dgux*)
20136 case $cc_basename in
20137 ec++*)
20138 lt_prog_compiler_pic_CXX='-KPIC'
20139 ;;
20140 ghcx*)
20141 # Green Hills C++ Compiler
20142 lt_prog_compiler_pic_CXX='-pic'
20143 ;;
20144 *)
20145 ;;
20146 esac
20147 ;;
20148 freebsd* | dragonfly*)
20149 # FreeBSD uses GNU C++
20150 ;;
20151 hpux9* | hpux10* | hpux11*)
20152 case $cc_basename in
20153 CC*)
20154 lt_prog_compiler_wl_CXX='-Wl,'
20155 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20156 if test "$host_cpu" != ia64; then
20157 lt_prog_compiler_pic_CXX='+Z'
20158 fi
20159 ;;
20160 aCC*)
20161 lt_prog_compiler_wl_CXX='-Wl,'
20162 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20163 case $host_cpu in
20164 hppa*64*|ia64*)
20165 # +Z the default
20166 ;;
20167 *)
20168 lt_prog_compiler_pic_CXX='+Z'
20169 ;;
20170 esac
20171 ;;
20172 *)
20173 ;;
20174 esac
20175 ;;
20176 interix*)
20177 # This is c89, which is MS Visual C++ (no shared libs)
20178 # Anyone wants to do a port?
20179 ;;
20180 irix5* | irix6* | nonstopux*)
20181 case $cc_basename in
20182 CC*)
20183 lt_prog_compiler_wl_CXX='-Wl,'
20184 lt_prog_compiler_static_CXX='-non_shared'
20185 # CC pic flag -KPIC is the default.
20186 ;;
20187 *)
20188 ;;
20189 esac
20190 ;;
cristy0c60a692010-11-04 01:09:47 +000020191 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000020192 case $cc_basename in
20193 KCC*)
20194 # KAI C++ Compiler
20195 lt_prog_compiler_wl_CXX='--backend -Wl,'
20196 lt_prog_compiler_pic_CXX='-fPIC'
20197 ;;
20198 ecpc* )
20199 # old Intel C++ for x86_64 which still supported -KPIC.
20200 lt_prog_compiler_wl_CXX='-Wl,'
20201 lt_prog_compiler_pic_CXX='-KPIC'
20202 lt_prog_compiler_static_CXX='-static'
20203 ;;
20204 icpc* )
20205 # Intel C++, used to be incompatible with GCC.
20206 # ICC 10 doesn't accept -KPIC any more.
20207 lt_prog_compiler_wl_CXX='-Wl,'
20208 lt_prog_compiler_pic_CXX='-fPIC'
20209 lt_prog_compiler_static_CXX='-static'
20210 ;;
20211 pgCC* | pgcpp*)
20212 # Portland Group C++ compiler
20213 lt_prog_compiler_wl_CXX='-Wl,'
20214 lt_prog_compiler_pic_CXX='-fpic'
20215 lt_prog_compiler_static_CXX='-Bstatic'
20216 ;;
20217 cxx*)
20218 # Compaq C++
20219 # Make sure the PIC flag is empty. It appears that all Alpha
20220 # Linux and Compaq Tru64 Unix objects are PIC.
20221 lt_prog_compiler_pic_CXX=
20222 lt_prog_compiler_static_CXX='-non_shared'
20223 ;;
cristy0c60a692010-11-04 01:09:47 +000020224 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
20225 # IBM XL 8.0, 9.0 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000020226 lt_prog_compiler_wl_CXX='-Wl,'
20227 lt_prog_compiler_pic_CXX='-qpic'
20228 lt_prog_compiler_static_CXX='-qstaticlink'
20229 ;;
20230 *)
20231 case `$CC -V 2>&1 | sed 5q` in
20232 *Sun\ C*)
20233 # Sun C++ 5.9
20234 lt_prog_compiler_pic_CXX='-KPIC'
20235 lt_prog_compiler_static_CXX='-Bstatic'
20236 lt_prog_compiler_wl_CXX='-Qoption ld '
20237 ;;
20238 esac
20239 ;;
20240 esac
20241 ;;
20242 lynxos*)
20243 ;;
20244 m88k*)
20245 ;;
20246 mvs*)
20247 case $cc_basename in
20248 cxx*)
20249 lt_prog_compiler_pic_CXX='-W c,exportall'
20250 ;;
20251 *)
20252 ;;
20253 esac
20254 ;;
20255 netbsd*)
20256 ;;
20257 *qnx* | *nto*)
20258 # QNX uses GNU C++, but need to define -shared option too, otherwise
20259 # it will coredump.
20260 lt_prog_compiler_pic_CXX='-fPIC -shared'
20261 ;;
20262 osf3* | osf4* | osf5*)
20263 case $cc_basename in
20264 KCC*)
20265 lt_prog_compiler_wl_CXX='--backend -Wl,'
20266 ;;
20267 RCC*)
20268 # Rational C++ 2.4.1
20269 lt_prog_compiler_pic_CXX='-pic'
20270 ;;
20271 cxx*)
20272 # Digital/Compaq C++
20273 lt_prog_compiler_wl_CXX='-Wl,'
20274 # Make sure the PIC flag is empty. It appears that all Alpha
20275 # Linux and Compaq Tru64 Unix objects are PIC.
20276 lt_prog_compiler_pic_CXX=
20277 lt_prog_compiler_static_CXX='-non_shared'
20278 ;;
20279 *)
20280 ;;
20281 esac
20282 ;;
20283 psos*)
20284 ;;
20285 solaris*)
20286 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000020287 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000020288 # Sun C++ 4.2, 5.x and Centerline C++
20289 lt_prog_compiler_pic_CXX='-KPIC'
20290 lt_prog_compiler_static_CXX='-Bstatic'
20291 lt_prog_compiler_wl_CXX='-Qoption ld '
20292 ;;
20293 gcx*)
20294 # Green Hills C++ Compiler
20295 lt_prog_compiler_pic_CXX='-PIC'
20296 ;;
20297 *)
20298 ;;
20299 esac
20300 ;;
20301 sunos4*)
20302 case $cc_basename in
20303 CC*)
20304 # Sun C++ 4.x
20305 lt_prog_compiler_pic_CXX='-pic'
20306 lt_prog_compiler_static_CXX='-Bstatic'
20307 ;;
20308 lcc*)
20309 # Lucid
20310 lt_prog_compiler_pic_CXX='-pic'
20311 ;;
20312 *)
20313 ;;
20314 esac
20315 ;;
20316 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20317 case $cc_basename in
20318 CC*)
20319 lt_prog_compiler_wl_CXX='-Wl,'
20320 lt_prog_compiler_pic_CXX='-KPIC'
20321 lt_prog_compiler_static_CXX='-Bstatic'
20322 ;;
20323 esac
20324 ;;
20325 tandem*)
20326 case $cc_basename in
20327 NCC*)
20328 # NonStop-UX NCC 3.20
20329 lt_prog_compiler_pic_CXX='-KPIC'
20330 ;;
20331 *)
20332 ;;
20333 esac
20334 ;;
20335 vxworks*)
20336 ;;
20337 *)
20338 lt_prog_compiler_can_build_shared_CXX=no
20339 ;;
20340 esac
20341 fi
20342
20343case $host_os in
20344 # For platforms which do not support PIC, -DPIC is meaningless:
20345 *djgpp*)
20346 lt_prog_compiler_pic_CXX=
20347 ;;
20348 *)
20349 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20350 ;;
20351esac
cristy73bd4a52010-10-05 11:24:23 +000020352
cristyda16f162011-02-19 23:52:17 +000020353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20354$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20355if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
20356 $as_echo_n "(cached) " >&6
20357else
20358 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
20359fi
20360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
20361$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
20362lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
cristy73bd4a52010-10-05 11:24:23 +000020363
20364#
20365# Check to make sure the PIC flag actually works.
20366#
20367if test -n "$lt_prog_compiler_pic_CXX"; then
20368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20369$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020370if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020371 $as_echo_n "(cached) " >&6
20372else
20373 lt_cv_prog_compiler_pic_works_CXX=no
20374 ac_outfile=conftest.$ac_objext
20375 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20376 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20377 # Insert the option either (1) after the last *FLAGS variable, or
20378 # (2) before a word containing "conftest.", or (3) at the end.
20379 # Note that $ac_compile itself does not contain backslashes and begins
20380 # with a dollar sign (not a hyphen), so the echo should work correctly.
20381 # The option is referenced via a variable to avoid confusing sed.
20382 lt_compile=`echo "$ac_compile" | $SED \
20383 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20384 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20385 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000020386 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000020387 (eval "$lt_compile" 2>conftest.err)
20388 ac_status=$?
20389 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000020390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000020391 if (exit $ac_status) && test -s "$ac_outfile"; then
20392 # The compiler can only warn and ignore the option if not recognized
20393 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000020394 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000020395 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20396 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20397 lt_cv_prog_compiler_pic_works_CXX=yes
20398 fi
20399 fi
20400 $RM conftest*
20401
20402fi
20403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20404$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20405
20406if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20407 case $lt_prog_compiler_pic_CXX in
20408 "" | " "*) ;;
20409 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20410 esac
20411else
20412 lt_prog_compiler_pic_CXX=
20413 lt_prog_compiler_can_build_shared_CXX=no
20414fi
20415
20416fi
20417
20418
20419
cristyda16f162011-02-19 23:52:17 +000020420
20421
cristy73bd4a52010-10-05 11:24:23 +000020422#
20423# Check to make sure the static flag actually works.
20424#
20425wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20427$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020428if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020429 $as_echo_n "(cached) " >&6
20430else
20431 lt_cv_prog_compiler_static_works_CXX=no
20432 save_LDFLAGS="$LDFLAGS"
20433 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20434 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20435 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20436 # The linker can only warn and ignore the option if not recognized
20437 # So say no if there are warnings
20438 if test -s conftest.err; then
20439 # Append any errors to the config.log.
20440 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000020441 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000020442 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20443 if diff conftest.exp conftest.er2 >/dev/null; then
20444 lt_cv_prog_compiler_static_works_CXX=yes
20445 fi
20446 else
20447 lt_cv_prog_compiler_static_works_CXX=yes
20448 fi
20449 fi
20450 $RM -r conftest*
20451 LDFLAGS="$save_LDFLAGS"
20452
20453fi
20454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20455$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20456
20457if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20458 :
20459else
20460 lt_prog_compiler_static_CXX=
20461fi
20462
20463
20464
20465
20466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20467$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020468if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020469 $as_echo_n "(cached) " >&6
20470else
20471 lt_cv_prog_compiler_c_o_CXX=no
20472 $RM -r conftest 2>/dev/null
20473 mkdir conftest
20474 cd conftest
20475 mkdir out
20476 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20477
20478 lt_compiler_flag="-o out/conftest2.$ac_objext"
20479 # Insert the option either (1) after the last *FLAGS variable, or
20480 # (2) before a word containing "conftest.", or (3) at the end.
20481 # Note that $ac_compile itself does not contain backslashes and begins
20482 # with a dollar sign (not a hyphen), so the echo should work correctly.
20483 lt_compile=`echo "$ac_compile" | $SED \
20484 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20485 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20486 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000020487 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000020488 (eval "$lt_compile" 2>out/conftest.err)
20489 ac_status=$?
20490 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000020491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000020492 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20493 then
20494 # The compiler can only warn and ignore the option if not recognized
20495 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000020496 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000020497 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20498 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20499 lt_cv_prog_compiler_c_o_CXX=yes
20500 fi
20501 fi
20502 chmod u+w . 2>&5
20503 $RM conftest*
20504 # SGI C++ compiler will create directory out/ii_files/ for
20505 # template instantiation
20506 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20507 $RM out/* && rmdir out
20508 cd ..
20509 $RM -r conftest
20510 $RM conftest*
20511
20512fi
20513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20514$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20515
20516
20517
20518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20519$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020520if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020521 $as_echo_n "(cached) " >&6
20522else
20523 lt_cv_prog_compiler_c_o_CXX=no
20524 $RM -r conftest 2>/dev/null
20525 mkdir conftest
20526 cd conftest
20527 mkdir out
20528 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20529
20530 lt_compiler_flag="-o out/conftest2.$ac_objext"
20531 # Insert the option either (1) after the last *FLAGS variable, or
20532 # (2) before a word containing "conftest.", or (3) at the end.
20533 # Note that $ac_compile itself does not contain backslashes and begins
20534 # with a dollar sign (not a hyphen), so the echo should work correctly.
20535 lt_compile=`echo "$ac_compile" | $SED \
20536 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20537 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20538 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000020539 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000020540 (eval "$lt_compile" 2>out/conftest.err)
20541 ac_status=$?
20542 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000020543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000020544 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20545 then
20546 # The compiler can only warn and ignore the option if not recognized
20547 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000020548 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000020549 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20550 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20551 lt_cv_prog_compiler_c_o_CXX=yes
20552 fi
20553 fi
20554 chmod u+w . 2>&5
20555 $RM conftest*
20556 # SGI C++ compiler will create directory out/ii_files/ for
20557 # template instantiation
20558 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20559 $RM out/* && rmdir out
20560 cd ..
20561 $RM -r conftest
20562 $RM conftest*
20563
20564fi
20565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20566$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20567
20568
20569
20570
20571hard_links="nottested"
20572if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20573 # do not overwrite the value of need_locks provided by the user
20574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20575$as_echo_n "checking if we can lock with hard links... " >&6; }
20576 hard_links=yes
20577 $RM conftest*
20578 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20579 touch conftest.a
20580 ln conftest.a conftest.b 2>&5 || hard_links=no
20581 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20583$as_echo "$hard_links" >&6; }
20584 if test "$hard_links" = no; then
20585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20586$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20587 need_locks=warn
20588 fi
20589else
20590 need_locks=no
20591fi
20592
20593
20594
20595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20596$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20597
20598 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000020599 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
cristy73bd4a52010-10-05 11:24:23 +000020600 case $host_os in
20601 aix[4-9]*)
20602 # If we're using GNU nm, then we don't want the "-C" option.
20603 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000020604 # Also, AIX nm treats weak defined symbols like other global defined
20605 # symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000020606 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000020607 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 +000020608 else
20609 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'
20610 fi
20611 ;;
20612 pw32*)
20613 export_symbols_cmds_CXX="$ltdll_cmds"
cristyda16f162011-02-19 23:52:17 +000020614 ;;
cristy73bd4a52010-10-05 11:24:23 +000020615 cygwin* | mingw* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000020616 case $cc_basename in
cristy99bd5232011-12-07 14:38:20 +000020617 cl*)
20618 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
20619 ;;
cristyda16f162011-02-19 23:52:17 +000020620 *)
20621 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'
20622 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
20623 ;;
20624 esac
20625 ;;
cristy73bd4a52010-10-05 11:24:23 +000020626 *)
20627 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000020628 ;;
cristy73bd4a52010-10-05 11:24:23 +000020629 esac
cristy73bd4a52010-10-05 11:24:23 +000020630
20631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20632$as_echo "$ld_shlibs_CXX" >&6; }
20633test "$ld_shlibs_CXX" = no && can_build_shared=no
20634
20635with_gnu_ld_CXX=$with_gnu_ld
20636
20637
20638
20639
20640
20641
20642#
20643# Do we need to explicitly link libc?
20644#
20645case "x$archive_cmds_need_lc_CXX" in
20646x|xyes)
20647 # Assume -lc should be added
20648 archive_cmds_need_lc_CXX=yes
20649
20650 if test "$enable_shared" = yes && test "$GCC" = yes; then
20651 case $archive_cmds_CXX in
20652 *'~'*)
20653 # FIXME: we may have to deal with multi-command sequences.
20654 ;;
20655 '$CC '*)
20656 # Test whether the compiler implicitly links with -lc since on some
20657 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20658 # to ld, don't add -lc before -lgcc.
20659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20660$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020661if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000020662 $as_echo_n "(cached) " >&6
20663else
20664 $RM conftest*
20665 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000020666
cristy0c60a692010-11-04 01:09:47 +000020667 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000020668 (eval $ac_compile) 2>&5
20669 ac_status=$?
20670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20671 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000020672 soname=conftest
20673 lib=conftest
20674 libobjs=conftest.$ac_objext
20675 deplibs=
20676 wl=$lt_prog_compiler_wl_CXX
20677 pic_flag=$lt_prog_compiler_pic_CXX
20678 compiler_flags=-v
20679 linker_flags=-v
20680 verstring=
20681 output_objdir=.
20682 libname=conftest
20683 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20684 allow_undefined_flag_CXX=
20685 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 +000020686 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20687 ac_status=$?
20688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20689 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000020690 then
20691 lt_cv_archive_cmds_need_lc_CXX=no
20692 else
20693 lt_cv_archive_cmds_need_lc_CXX=yes
20694 fi
20695 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20696 else
20697 cat conftest.err 1>&5
20698 fi
20699 $RM conftest*
20700
20701fi
20702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20703$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20704 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
cristy73bd4a52010-10-05 11:24:23 +000020705 ;;
20706 esac
20707 fi
20708 ;;
20709esac
20710
20711
20712
20713
20714
20715
20716
20717
20718
20719
20720
20721
20722
20723
20724
20725
20726
20727
20728
20729
20730
20731
20732
20733
20734
20735
20736
20737
20738
20739
20740
20741
20742
20743
20744
20745
20746
20747
20748
20749
20750
20751
20752
20753
20754
20755
20756
20757
20758
20759
20760
20761
20762
20763
20764
20765
20766
20767
20768
20769
20770
20771
cristy73bd4a52010-10-05 11:24:23 +000020772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20773$as_echo_n "checking dynamic linker characteristics... " >&6; }
20774
20775library_names_spec=
20776libname_spec='lib$name'
20777soname_spec=
20778shrext_cmds=".so"
20779postinstall_cmds=
20780postuninstall_cmds=
20781finish_cmds=
20782finish_eval=
20783shlibpath_var=
20784shlibpath_overrides_runpath=unknown
20785version_type=none
20786dynamic_linker="$host_os ld.so"
20787sys_lib_dlsearch_path_spec="/lib /usr/lib"
20788need_lib_prefix=unknown
20789hardcode_into_libs=no
20790
20791# when you set need_version to no, make sure it does not cause -set_version
20792# flags to be left without arguments
20793need_version=unknown
20794
20795case $host_os in
20796aix3*)
cristy99bd5232011-12-07 14:38:20 +000020797 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020798 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20799 shlibpath_var=LIBPATH
20800
20801 # AIX 3 has no versioning support, so we append a major version to the name.
20802 soname_spec='${libname}${release}${shared_ext}$major'
20803 ;;
20804
20805aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000020806 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020807 need_lib_prefix=no
20808 need_version=no
20809 hardcode_into_libs=yes
20810 if test "$host_cpu" = ia64; then
20811 # AIX 5 supports IA64
20812 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20813 shlibpath_var=LD_LIBRARY_PATH
20814 else
20815 # With GCC up to 2.95.x, collect2 would create an import file
20816 # for dependence libraries. The import file would start with
20817 # the line `#! .'. This would cause the generated library to
20818 # depend on `.', always an invalid library. This was fixed in
20819 # development snapshots of GCC prior to 3.0.
20820 case $host_os in
20821 aix4 | aix4.[01] | aix4.[01].*)
20822 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20823 echo ' yes '
20824 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20825 :
20826 else
20827 can_build_shared=no
20828 fi
20829 ;;
20830 esac
20831 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20832 # soname into executable. Probably we can add versioning support to
20833 # collect2, so additional links can be useful in future.
20834 if test "$aix_use_runtimelinking" = yes; then
20835 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20836 # instead of lib<name>.a to let people know that these are not
20837 # typical AIX shared libraries.
20838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20839 else
20840 # We preserve .a as extension for shared libraries through AIX4.2
20841 # and later when we are not doing run time linking.
20842 library_names_spec='${libname}${release}.a $libname.a'
20843 soname_spec='${libname}${release}${shared_ext}$major'
20844 fi
20845 shlibpath_var=LIBPATH
20846 fi
20847 ;;
20848
20849amigaos*)
20850 case $host_cpu in
20851 powerpc)
20852 # Since July 2007 AmigaOS4 officially supports .so libraries.
20853 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20855 ;;
20856 m68k)
20857 library_names_spec='$libname.ixlibrary $libname.a'
20858 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000020859 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 +000020860 ;;
20861 esac
20862 ;;
20863
20864beos*)
20865 library_names_spec='${libname}${shared_ext}'
20866 dynamic_linker="$host_os ld.so"
20867 shlibpath_var=LIBRARY_PATH
20868 ;;
20869
20870bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000020871 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020872 need_version=no
20873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20874 soname_spec='${libname}${release}${shared_ext}$major'
20875 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20876 shlibpath_var=LD_LIBRARY_PATH
20877 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20878 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20879 # the default ld.so.conf also contains /usr/contrib/lib and
20880 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20881 # libtool to hard-code these into programs
20882 ;;
20883
20884cygwin* | mingw* | pw32* | cegcc*)
20885 version_type=windows
20886 shrext_cmds=".dll"
20887 need_version=no
20888 need_lib_prefix=no
20889
cristyda16f162011-02-19 23:52:17 +000020890 case $GCC,$cc_basename in
20891 yes,*)
20892 # gcc
cristy73bd4a52010-10-05 11:24:23 +000020893 library_names_spec='$libname.dll.a'
20894 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20895 postinstall_cmds='base_file=`basename \${file}`~
20896 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20897 dldir=$destdir/`dirname \$dlpath`~
20898 test -d \$dldir || mkdir -p \$dldir~
20899 $install_prog $dir/$dlname \$dldir/$dlname~
20900 chmod a+x \$dldir/$dlname~
20901 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20902 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20903 fi'
20904 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20905 dlpath=$dir/\$dldll~
20906 $RM \$dlpath'
20907 shlibpath_overrides_runpath=yes
20908
20909 case $host_os in
20910 cygwin*)
20911 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20912 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000020913
cristy73bd4a52010-10-05 11:24:23 +000020914 ;;
20915 mingw* | cegcc*)
20916 # MinGW DLLs use traditional 'lib' prefix
20917 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000020918 ;;
20919 pw32*)
20920 # pw32 DLLs use 'pw' prefix rather than 'lib'
20921 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20922 ;;
20923 esac
cristyda16f162011-02-19 23:52:17 +000020924 dynamic_linker='Win32 ld.exe'
20925 ;;
20926
20927 *,cl*)
20928 # Native MSVC
20929 libname_spec='$name'
20930 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20931 library_names_spec='${libname}.dll.lib'
20932
20933 case $build_os in
20934 mingw*)
20935 sys_lib_search_path_spec=
20936 lt_save_ifs=$IFS
20937 IFS=';'
20938 for lt_path in $LIB
20939 do
20940 IFS=$lt_save_ifs
20941 # Let DOS variable expansion print the short 8.3 style file name.
20942 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
20943 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
20944 done
20945 IFS=$lt_save_ifs
20946 # Convert to MSYS style.
20947 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
20948 ;;
20949 cygwin*)
20950 # Convert to unix form, then to dos form, then back to unix form
20951 # but this time dos style (no spaces!) so that the unix form looks
20952 # like /cygdrive/c/PROGRA~1:/cygdr...
20953 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
20954 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
20955 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20956 ;;
20957 *)
20958 sys_lib_search_path_spec="$LIB"
20959 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
20960 # It is most probably a Windows format PATH.
20961 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20962 else
20963 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20964 fi
20965 # FIXME: find the short name or the path components, as spaces are
20966 # common. (e.g. "Program Files" -> "PROGRA~1")
20967 ;;
20968 esac
20969
20970 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20971 postinstall_cmds='base_file=`basename \${file}`~
20972 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20973 dldir=$destdir/`dirname \$dlpath`~
20974 test -d \$dldir || mkdir -p \$dldir~
20975 $install_prog $dir/$dlname \$dldir/$dlname'
20976 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20977 dlpath=$dir/\$dldll~
20978 $RM \$dlpath'
20979 shlibpath_overrides_runpath=yes
20980 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000020981 ;;
20982
20983 *)
cristyda16f162011-02-19 23:52:17 +000020984 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000020985 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000020986 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000020987 ;;
20988 esac
cristy73bd4a52010-10-05 11:24:23 +000020989 # FIXME: first we should search . and the directory the executable is in
20990 shlibpath_var=PATH
20991 ;;
20992
20993darwin* | rhapsody*)
20994 dynamic_linker="$host_os dyld"
20995 version_type=darwin
20996 need_lib_prefix=no
20997 need_version=no
20998 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20999 soname_spec='${libname}${release}${major}$shared_ext'
21000 shlibpath_overrides_runpath=yes
21001 shlibpath_var=DYLD_LIBRARY_PATH
21002 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
21003
21004 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
21005 ;;
21006
21007dgux*)
cristy99bd5232011-12-07 14:38:20 +000021008 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021009 need_lib_prefix=no
21010 need_version=no
21011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21012 soname_spec='${libname}${release}${shared_ext}$major'
21013 shlibpath_var=LD_LIBRARY_PATH
21014 ;;
21015
cristy73bd4a52010-10-05 11:24:23 +000021016freebsd* | dragonfly*)
21017 # DragonFly does not have aout. When/if they implement a new
21018 # versioning mechanism, adjust this.
21019 if test -x /usr/bin/objformat; then
21020 objformat=`/usr/bin/objformat`
21021 else
21022 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000021023 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000021024 *) objformat=elf ;;
21025 esac
21026 fi
21027 version_type=freebsd-$objformat
21028 case $version_type in
21029 freebsd-elf*)
21030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21031 need_version=no
21032 need_lib_prefix=no
21033 ;;
21034 freebsd-*)
21035 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21036 need_version=yes
21037 ;;
21038 esac
21039 shlibpath_var=LD_LIBRARY_PATH
21040 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000021041 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000021042 shlibpath_overrides_runpath=yes
21043 ;;
21044 freebsd3.[01]* | freebsdelf3.[01]*)
21045 shlibpath_overrides_runpath=yes
21046 hardcode_into_libs=yes
21047 ;;
21048 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
21049 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
21050 shlibpath_overrides_runpath=no
21051 hardcode_into_libs=yes
21052 ;;
21053 *) # from 4.6 on, and DragonFly
21054 shlibpath_overrides_runpath=yes
21055 hardcode_into_libs=yes
21056 ;;
21057 esac
21058 ;;
21059
21060gnu*)
cristy99bd5232011-12-07 14:38:20 +000021061 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021062 need_lib_prefix=no
21063 need_version=no
21064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21065 soname_spec='${libname}${release}${shared_ext}$major'
21066 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000021067 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000021068 hardcode_into_libs=yes
21069 ;;
21070
cristy0c60a692010-11-04 01:09:47 +000021071haiku*)
cristy99bd5232011-12-07 14:38:20 +000021072 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000021073 need_lib_prefix=no
21074 need_version=no
21075 dynamic_linker="$host_os runtime_loader"
21076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21077 soname_spec='${libname}${release}${shared_ext}$major'
21078 shlibpath_var=LIBRARY_PATH
21079 shlibpath_overrides_runpath=yes
21080 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
21081 hardcode_into_libs=yes
21082 ;;
21083
cristy73bd4a52010-10-05 11:24:23 +000021084hpux9* | hpux10* | hpux11*)
21085 # Give a soname corresponding to the major version so that dld.sl refuses to
21086 # link against other versions.
21087 version_type=sunos
21088 need_lib_prefix=no
21089 need_version=no
21090 case $host_cpu in
21091 ia64*)
21092 shrext_cmds='.so'
21093 hardcode_into_libs=yes
21094 dynamic_linker="$host_os dld.so"
21095 shlibpath_var=LD_LIBRARY_PATH
21096 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21098 soname_spec='${libname}${release}${shared_ext}$major'
21099 if test "X$HPUX_IA64_MODE" = X32; then
21100 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21101 else
21102 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21103 fi
21104 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21105 ;;
21106 hppa*64*)
21107 shrext_cmds='.sl'
21108 hardcode_into_libs=yes
21109 dynamic_linker="$host_os dld.sl"
21110 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21111 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21113 soname_spec='${libname}${release}${shared_ext}$major'
21114 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21115 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21116 ;;
21117 *)
21118 shrext_cmds='.sl'
21119 dynamic_linker="$host_os dld.sl"
21120 shlibpath_var=SHLIB_PATH
21121 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21123 soname_spec='${libname}${release}${shared_ext}$major'
21124 ;;
21125 esac
cristy0c60a692010-11-04 01:09:47 +000021126 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000021127 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000021128 # or fails outright, so override atomically:
21129 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000021130 ;;
21131
21132interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000021133 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021134 need_lib_prefix=no
21135 need_version=no
21136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21137 soname_spec='${libname}${release}${shared_ext}$major'
21138 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21139 shlibpath_var=LD_LIBRARY_PATH
21140 shlibpath_overrides_runpath=no
21141 hardcode_into_libs=yes
21142 ;;
21143
21144irix5* | irix6* | nonstopux*)
21145 case $host_os in
21146 nonstopux*) version_type=nonstopux ;;
21147 *)
21148 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000021149 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021150 else
21151 version_type=irix
21152 fi ;;
21153 esac
21154 need_lib_prefix=no
21155 need_version=no
21156 soname_spec='${libname}${release}${shared_ext}$major'
21157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21158 case $host_os in
21159 irix5* | nonstopux*)
21160 libsuff= shlibsuff=
21161 ;;
21162 *)
21163 case $LD in # libtool.m4 will add one of these switches to LD
21164 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21165 libsuff= shlibsuff= libmagic=32-bit;;
21166 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21167 libsuff=32 shlibsuff=N32 libmagic=N32;;
21168 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21169 libsuff=64 shlibsuff=64 libmagic=64-bit;;
21170 *) libsuff= shlibsuff= libmagic=never-match;;
21171 esac
21172 ;;
21173 esac
21174 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21175 shlibpath_overrides_runpath=no
21176 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21177 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21178 hardcode_into_libs=yes
21179 ;;
21180
21181# No shared lib support for Linux oldld, aout, or coff.
21182linux*oldld* | linux*aout* | linux*coff*)
21183 dynamic_linker=no
21184 ;;
21185
cristy99bd5232011-12-07 14:38:20 +000021186# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000021187linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000021188 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021189 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 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21194 shlibpath_var=LD_LIBRARY_PATH
21195 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000021196
cristy73bd4a52010-10-05 11:24:23 +000021197 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000021198 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000021199 $as_echo_n "(cached) " >&6
21200else
21201 lt_cv_shlibpath_overrides_runpath=no
21202 save_LDFLAGS=$LDFLAGS
21203 save_libdir=$libdir
21204 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21205 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000021207/* end confdefs.h. */
21208
21209int
21210main ()
21211{
21212
21213 ;
21214 return 0;
21215}
21216_ACEOF
21217if ac_fn_cxx_try_link "$LINENO"; then :
21218 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000021219 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000021220fi
21221fi
21222rm -f core conftest.err conftest.$ac_objext \
21223 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000021224 LDFLAGS=$save_LDFLAGS
21225 libdir=$save_libdir
21226
21227fi
21228
21229 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000021230
21231 # This implies no fast_install, which is unacceptable.
21232 # Some rework will be needed to allow for fast_install
21233 # before this can be enabled.
21234 hardcode_into_libs=yes
21235
21236 # Add ABI-specific directories to the system library path.
21237 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
21238
21239 # Append ld.so.conf contents to the search path
21240 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000021241 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 +000021242 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000021243
cristy73bd4a52010-10-05 11:24:23 +000021244 fi
21245
21246 # We used to test for /lib/ld.so.1 and disable shared libraries on
21247 # powerpc, because MkLinux only supported shared libraries with the
21248 # GNU dynamic linker. Since this was broken with cross compilers,
21249 # most powerpc-linux boxes support dynamic linking these days and
21250 # people can always --disable-shared, the test was removed, and we
21251 # assume the GNU/Linux dynamic linker is in use.
21252 dynamic_linker='GNU/Linux ld.so'
21253 ;;
21254
21255netbsd*)
21256 version_type=sunos
21257 need_lib_prefix=no
21258 need_version=no
21259 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21261 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21262 dynamic_linker='NetBSD (a.out) ld.so'
21263 else
21264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21265 soname_spec='${libname}${release}${shared_ext}$major'
21266 dynamic_linker='NetBSD ld.elf_so'
21267 fi
21268 shlibpath_var=LD_LIBRARY_PATH
21269 shlibpath_overrides_runpath=yes
21270 hardcode_into_libs=yes
21271 ;;
21272
21273newsos6)
cristy99bd5232011-12-07 14:38:20 +000021274 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21276 shlibpath_var=LD_LIBRARY_PATH
21277 shlibpath_overrides_runpath=yes
21278 ;;
21279
21280*nto* | *qnx*)
21281 version_type=qnx
21282 need_lib_prefix=no
21283 need_version=no
21284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21285 soname_spec='${libname}${release}${shared_ext}$major'
21286 shlibpath_var=LD_LIBRARY_PATH
21287 shlibpath_overrides_runpath=no
21288 hardcode_into_libs=yes
21289 dynamic_linker='ldqnx.so'
21290 ;;
21291
21292openbsd*)
21293 version_type=sunos
21294 sys_lib_dlsearch_path_spec="/usr/lib"
21295 need_lib_prefix=no
21296 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21297 case $host_os in
21298 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21299 *) need_version=no ;;
21300 esac
21301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21302 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21303 shlibpath_var=LD_LIBRARY_PATH
21304 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21305 case $host_os in
21306 openbsd2.[89] | openbsd2.[89].*)
21307 shlibpath_overrides_runpath=no
21308 ;;
21309 *)
21310 shlibpath_overrides_runpath=yes
21311 ;;
21312 esac
21313 else
21314 shlibpath_overrides_runpath=yes
21315 fi
21316 ;;
21317
21318os2*)
21319 libname_spec='$name'
21320 shrext_cmds=".dll"
21321 need_lib_prefix=no
21322 library_names_spec='$libname${shared_ext} $libname.a'
21323 dynamic_linker='OS/2 ld.exe'
21324 shlibpath_var=LIBPATH
21325 ;;
21326
21327osf3* | osf4* | osf5*)
21328 version_type=osf
21329 need_lib_prefix=no
21330 need_version=no
21331 soname_spec='${libname}${release}${shared_ext}$major'
21332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21333 shlibpath_var=LD_LIBRARY_PATH
21334 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21335 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21336 ;;
21337
21338rdos*)
21339 dynamic_linker=no
21340 ;;
21341
21342solaris*)
cristy99bd5232011-12-07 14:38:20 +000021343 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021344 need_lib_prefix=no
21345 need_version=no
21346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21347 soname_spec='${libname}${release}${shared_ext}$major'
21348 shlibpath_var=LD_LIBRARY_PATH
21349 shlibpath_overrides_runpath=yes
21350 hardcode_into_libs=yes
21351 # ldd complains unless libraries are executable
21352 postinstall_cmds='chmod +x $lib'
21353 ;;
21354
21355sunos4*)
21356 version_type=sunos
21357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21358 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21359 shlibpath_var=LD_LIBRARY_PATH
21360 shlibpath_overrides_runpath=yes
21361 if test "$with_gnu_ld" = yes; then
21362 need_lib_prefix=no
21363 fi
21364 need_version=yes
21365 ;;
21366
21367sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000021368 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21370 soname_spec='${libname}${release}${shared_ext}$major'
21371 shlibpath_var=LD_LIBRARY_PATH
21372 case $host_vendor in
21373 sni)
21374 shlibpath_overrides_runpath=no
21375 need_lib_prefix=no
21376 runpath_var=LD_RUN_PATH
21377 ;;
21378 siemens)
21379 need_lib_prefix=no
21380 ;;
21381 motorola)
21382 need_lib_prefix=no
21383 need_version=no
21384 shlibpath_overrides_runpath=no
21385 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21386 ;;
21387 esac
21388 ;;
21389
21390sysv4*MP*)
21391 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000021392 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021393 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21394 soname_spec='$libname${shared_ext}.$major'
21395 shlibpath_var=LD_LIBRARY_PATH
21396 fi
21397 ;;
21398
21399sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21400 version_type=freebsd-elf
21401 need_lib_prefix=no
21402 need_version=no
21403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21404 soname_spec='${libname}${release}${shared_ext}$major'
21405 shlibpath_var=LD_LIBRARY_PATH
21406 shlibpath_overrides_runpath=yes
21407 hardcode_into_libs=yes
21408 if test "$with_gnu_ld" = yes; then
21409 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21410 else
21411 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21412 case $host_os in
21413 sco3.2v5*)
21414 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21415 ;;
21416 esac
21417 fi
21418 sys_lib_dlsearch_path_spec='/usr/lib'
21419 ;;
21420
21421tpf*)
21422 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000021423 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021424 need_lib_prefix=no
21425 need_version=no
21426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21427 shlibpath_var=LD_LIBRARY_PATH
21428 shlibpath_overrides_runpath=no
21429 hardcode_into_libs=yes
21430 ;;
21431
21432uts4*)
cristy99bd5232011-12-07 14:38:20 +000021433 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21435 soname_spec='${libname}${release}${shared_ext}$major'
21436 shlibpath_var=LD_LIBRARY_PATH
21437 ;;
21438
21439*)
21440 dynamic_linker=no
21441 ;;
21442esac
21443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21444$as_echo "$dynamic_linker" >&6; }
21445test "$dynamic_linker" = no && can_build_shared=no
21446
21447variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21448if test "$GCC" = yes; then
21449 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21450fi
21451
21452if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21453 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21454fi
21455if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21456 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21457fi
21458
21459
21460
21461
21462
21463
21464
21465
21466
21467
21468
21469
21470
21471
21472
21473
21474
21475
21476
21477
21478
21479
21480
21481
21482
21483
21484
21485
21486
21487
21488
21489
21490
21491
21492
21493
cristy0c60a692010-11-04 01:09:47 +000021494
21495
cristy73bd4a52010-10-05 11:24:23 +000021496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21497$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21498hardcode_action_CXX=
21499if test -n "$hardcode_libdir_flag_spec_CXX" ||
21500 test -n "$runpath_var_CXX" ||
21501 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21502
21503 # We can hardcode non-existent directories.
21504 if test "$hardcode_direct_CXX" != no &&
21505 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21506 # have to relink, otherwise we might link with an installed library
21507 # when we should be linking with a yet-to-be-installed one
21508 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21509 test "$hardcode_minus_L_CXX" != no; then
21510 # Linking always hardcodes the temporary library directory.
21511 hardcode_action_CXX=relink
21512 else
21513 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21514 hardcode_action_CXX=immediate
21515 fi
21516else
21517 # We cannot hardcode anything, or else we can only hardcode existing
21518 # directories.
21519 hardcode_action_CXX=unsupported
21520fi
21521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21522$as_echo "$hardcode_action_CXX" >&6; }
21523
21524if test "$hardcode_action_CXX" = relink ||
21525 test "$inherit_rpath_CXX" = yes; then
21526 # Fast installation is not supported
21527 enable_fast_install=no
21528elif test "$shlibpath_overrides_runpath" = yes ||
21529 test "$enable_shared" = no; then
21530 # Fast installation is not necessary
21531 enable_fast_install=needless
21532fi
21533
21534
21535
21536
21537
21538
21539
21540 fi # test -n "$compiler"
21541
21542 CC=$lt_save_CC
cristyda16f162011-02-19 23:52:17 +000021543 CFLAGS=$lt_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000021544 LDCXX=$LD
21545 LD=$lt_save_LD
21546 GCC=$lt_save_GCC
21547 with_gnu_ld=$lt_save_with_gnu_ld
21548 lt_cv_path_LDCXX=$lt_cv_path_LD
21549 lt_cv_path_LD=$lt_save_path_LD
21550 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21551 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21552fi # test "$_lt_caught_CXX_error" != yes
21553
21554ac_ext=c
21555ac_cpp='$CPP $CPPFLAGS'
21556ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21557ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21558ac_compiler_gnu=$ac_cv_c_compiler_gnu
21559
21560
21561
21562
21563
21564
21565
21566
21567
21568
21569
21570
21571
cristy99bd5232011-12-07 14:38:20 +000021572
21573
cristy73bd4a52010-10-05 11:24:23 +000021574 ac_config_commands="$ac_config_commands libtool"
21575
21576
21577
21578
21579# Only expand once:
21580
21581
21582
cristy3ed852e2009-09-05 21:47:34 +000021583
21584
cristy3ed852e2009-09-05 21:47:34 +000021585# Check to see if building shared libraries
21586libtool_build_shared_libs='no'
21587if test "$enable_shared" = 'yes'; then
21588 libtool_build_shared_libs='yes'
21589fi
21590
21591# Check to see if building static libraries
21592libtool_build_static_libs='no'
21593if test "$enable_static" = 'yes'; then
21594 libtool_build_static_libs='yes'
21595fi
21596
cristy73bd4a52010-10-05 11:24:23 +000021597 if test "${libtool_build_shared_libs}" = 'yes'; then
21598 WITH_SHARED_LIBS_TRUE=
21599 WITH_SHARED_LIBS_FALSE='#'
21600else
21601 WITH_SHARED_LIBS_TRUE='#'
21602 WITH_SHARED_LIBS_FALSE=
21603fi
21604
cristy3ed852e2009-09-05 21:47:34 +000021605#
21606# Enable support for building loadable modules
21607#
cristyaf4cbf32012-10-16 23:47:41 +000021608build_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000021609
21610# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000021611if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021612 withval=$with_modules; with_modules=$withval
21613else
cristy5a1cefd2010-01-06 20:42:35 +000021614 with_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000021615fi
21616
21617
21618# Only allow building loadable modules if we are building shared libraries
21619if test "$with_modules" != 'no' ; then
21620 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000021621 { $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 +000021622$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
cristyc6722092012-10-14 00:19:31 +000021623 build_modules='no'
21624 else
21625 build_modules='yes'
21626 fi
cristy3ed852e2009-09-05 21:47:34 +000021627fi
cristyc6722092012-10-14 00:19:31 +000021628if test "$build_modules" != 'no' ; then
cristy3ed852e2009-09-05 21:47:34 +000021629
cristy8b350f62009-11-15 23:12:43 +000021630$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021631
cristyfa161182012-12-19 15:45:28 +000021632 MAGICK_FEATURES="$MAGICK_FEATURES Modules"
cristy3ed852e2009-09-05 21:47:34 +000021633fi
cristyc6722092012-10-14 00:19:31 +000021634 if test "$build_modules" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +000021635 WITH_MODULES_TRUE=
21636 WITH_MODULES_FALSE='#'
21637else
21638 WITH_MODULES_TRUE='#'
21639 WITH_MODULES_FALSE=
21640fi
21641
cristy3ed852e2009-09-05 21:47:34 +000021642
cristy3ed852e2009-09-05 21:47:34 +000021643# Enable build using delegate libraries built in subdirectories rather than installed
cristyfbb0ef02010-12-19 02:32:11 +000021644# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms lzma png tiff ttf wmf xml zlib)
cristy3ed852e2009-09-05 21:47:34 +000021645# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000021646if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021647 enableval=$enable_delegate_build; enable_delegate_build=$enableval
21648else
21649 enable_delegate_build='no'
21650fi
21651
21652
21653# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000021654if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021655 enableval=$enable_deprecated; enable_deprecated=$enableval
21656else
21657 enable_deprecated='no'
21658fi
21659
21660
21661if test "$enable_deprecated" = 'yes'; then
21662
cristy8b350f62009-11-15 23:12:43 +000021663$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021664
21665else
21666 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
21667fi
21668
21669# Build a version of ImageMagick which operates uninstalled.
21670# Used to build distributions located via MAGICK_HOME / executable path
21671# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000021672if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021673 enableval=$enable_installed; enable_installed=$enableval
21674else
21675 enable_installed='yes'
21676fi
21677
21678
21679if test "$enable_installed" = 'yes'; then
21680
cristy8b350f62009-11-15 23:12:43 +000021681$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021682
21683else
21684 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
21685fi
21686
21687# Permit enciphering and deciphering image pixels.
21688# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000021689if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021690 enableval=$enable_cipher; enable_cipher=$enableval
21691else
21692 enable_cipher='yes'
21693fi
21694
21695
21696if test "$enable_cipher" = 'yes'; then
21697
cristy8b350f62009-11-15 23:12:43 +000021698$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021699
cristy0f6fc2d2015-05-30 00:49:11 +000021700 MAGICK_FEATURES="Cipher $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000021701fi
21702
cristy6e3607c2011-09-13 13:59:17 +000021703# Build a zero-configuration version of ImageMagick.
21704# Check whether --enable-zero-configuration was given.
21705if test "${enable_zero_configuration+set}" = set; then :
21706 enableval=$enable_zero_configuration; enable_zero_configuration=$enableval
cristy3ed852e2009-09-05 21:47:34 +000021707else
cristy6e3607c2011-09-13 13:59:17 +000021708 enable_zero_configuration='no'
cristy3ed852e2009-09-05 21:47:34 +000021709fi
21710
21711
cristy6e3607c2011-09-13 13:59:17 +000021712if test "$enable_zero_configuration" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000021713
cristy6e3607c2011-09-13 13:59:17 +000021714$as_echo "#define ZERO_CONFIGURATION_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021715
cristy0f6fc2d2015-05-30 00:49:11 +000021716 MAGICK_FEATURES="Zero-configuration $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000021717fi
21718
21719# Build a high dynamic range version of ImageMagick.
21720# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000021721if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021722 enableval=$enable_hdri; enable_hdri=$enableval
21723else
cristy191c0b72012-08-12 16:29:52 +000021724 enable_hdri='yes'
cristy3ed852e2009-09-05 21:47:34 +000021725fi
21726
21727
21728MAGICK_HDRI=""
21729if test "$enable_hdri" = 'yes'; then
21730 MAGICK_HDRI="HDRI"
cristye52f12f2012-12-31 15:32:36 +000021731 magick_hdri_enable='1';
cristyfd9dcd42010-08-08 18:07:02 +000021732 MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
cristye52f12f2012-12-31 15:32:36 +000021733else
21734 magick_hdri_enable='0'
cristy3ed852e2009-09-05 21:47:34 +000021735fi
21736
cristye52f12f2012-12-31 15:32:36 +000021737cat >>confdefs.h <<_ACEOF
21738#define HDRI_ENABLE_OBSOLETE_IN_H $magick_hdri_enable
21739_ACEOF
21740
21741MAGICK_PCFLAGS="$MAGICK_PCFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
21742CFLAGS="$CFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
cristy72062382012-12-31 16:49:52 +000021743CPPFLAGS="$CPPFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
cristye52f12f2012-12-31 15:32:36 +000021744
cristy3ed852e2009-09-05 21:47:34 +000021745# Build a version of ImageMagick with assert statements.
21746# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000021747if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021748 enableval=$enable_assert; enable_assert=$enableval
21749else
21750 enable_assert='yes'
21751fi
21752
21753
21754if test "$enable_assert" = 'no'; then
21755
cristy8b350f62009-11-15 23:12:43 +000021756$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021757
21758fi
21759
cristya448bd22011-10-14 12:38:13 +000021760# Don't emit "rebuild rules" for configure, Makefile.ins, etc.
cristy73bd4a52010-10-05 11:24:23 +000021761
21762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
21763$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
21764 # Check whether --enable-maintainer-mode was given.
21765if test "${enable_maintainer_mode+set}" = set; then :
21766 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
21767else
21768 USE_MAINTAINER_MODE=no
21769fi
21770
21771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
21772$as_echo "$USE_MAINTAINER_MODE" >&6; }
21773 if test $USE_MAINTAINER_MODE = yes; then
21774 MAINTAINER_MODE_TRUE=
21775 MAINTAINER_MODE_FALSE='#'
21776else
21777 MAINTAINER_MODE_TRUE='#'
21778 MAINTAINER_MODE_FALSE=
21779fi
21780
21781 MAINT=$MAINTAINER_MODE_TRUE
21782
21783
cristy3ed852e2009-09-05 21:47:34 +000021784
cristy944e51f2013-04-16 18:45:02 +000021785# Enable hugepages support
21786# Check whether --enable-hugepages was given.
21787if test "${enable_hugepages+set}" = set; then :
21788 enableval=$enable_hugepages; enable_hugepages=$enableval
21789else
21790 enable_hugepages='no'
21791fi
21792
21793
cristy3ed852e2009-09-05 21:47:34 +000021794# Enable ccmalloc memory debugging support
21795# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000021796if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021797 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
21798else
21799 enable_ccmalloc='no'
21800fi
21801
21802
21803# Enable Electric Fence memory debugging support
21804# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000021805if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021806 enableval=$enable_efence; enable_efence=$enableval
21807else
21808 enable_efence='no'
21809fi
21810
21811
21812# Enable prof-based profiling support
21813# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000021814if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021815 enableval=$enable_prof; enable_prof=$enableval
21816else
21817 enable_prof='no'
21818fi
21819
21820
21821# Enable gprof-based profiling support
21822# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000021823if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021824 enableval=$enable_gprof; enable_gprof=$enableval
21825else
21826 enable_gprof='no'
21827fi
21828
21829
21830# Enable gcov-based profiling support
21831# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000021832if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021833 enableval=$enable_gcov; enable_gcov=$enableval
21834else
21835 enable_gcov='no'
21836fi
21837
21838
21839enable_profiling='no'
21840if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
21841 enable_profiling='yes'
21842 if test "$libtool_build_shared_libs" = 'yes'; then
21843 echo "Warning: Can not profile code using shared libraries"
21844 fi
21845fi
21846
21847# Magick API method prefix
21848
21849# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000021850if test "${with_method_prefix+set}" = set; then :
cristyfc3d0222012-02-07 15:05:57 +000021851 withval=$with_method_prefix; with_method_prefix=$withval
cristy3ed852e2009-09-05 21:47:34 +000021852else
cristyfc3d0222012-02-07 15:05:57 +000021853 with_method_prefix='no'
cristy3ed852e2009-09-05 21:47:34 +000021854fi
21855
21856
cristyfc3d0222012-02-07 15:05:57 +000021857if test "$with_method_prefix" != 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000021858
21859cat >>confdefs.h <<_ACEOF
21860#define NAMESPACE_PREFIX $with_method_prefix
21861_ACEOF
21862
cristyfc3d0222012-02-07 15:05:57 +000021863 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-method-prefix "
cristy3ed852e2009-09-05 21:47:34 +000021864fi
21865
cristy71d8c202012-03-20 17:05:01 +000021866# Enable legacy support (default no)
21867# Check whether --enable-legacy-support was given.
21868if test "${enable_legacy_support+set}" = set; then :
21869 enableval=$enable_legacy_support; with_legacy_support=$enableval
21870else
21871 with_legacy_support='no'
21872fi
21873
21874 if test "$with_legacy_support" != 'no'; then
21875 LEGACY_SUPPORT_TRUE=
21876 LEGACY_SUPPORT_FALSE='#'
21877else
21878 LEGACY_SUPPORT_TRUE='#'
21879 LEGACY_SUPPORT_FALSE=
21880fi
21881
21882
cristy3ed852e2009-09-05 21:47:34 +000021883# Number of bits in a Quantum
21884
21885# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000021886if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021887 withval=$with_quantum_depth; with_quantum_depth=$withval
21888else
21889 with_quantum_depth=16
21890fi
21891
21892
21893if test "$with_quantum_depth" != '8'; then
21894 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
21895fi
21896
21897case "${with_quantum_depth}" in
21898 8 ) ;;
21899 16 ) ;;
21900 32 ) ;;
21901 64 ) ;;
cristy98dddb52010-11-04 00:30:15 +000021902 * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000021903esac
21904QUANTUM_DEPTH="$with_quantum_depth"
21905
21906cat >>confdefs.h <<_ACEOF
cristye52f12f2012-12-31 15:32:36 +000021907#define QUANTUM_DEPTH_OBSOLETE_IN_H $QUANTUM_DEPTH
cristy3ed852e2009-09-05 21:47:34 +000021908_ACEOF
21909
cristya371edf2013-02-06 13:42:17 +000021910MAGICK_PCFLAGS="$MAGICK_PCFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristye52f12f2012-12-31 15:32:36 +000021911CFLAGS="$CFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristy72062382012-12-31 16:49:52 +000021912CPPFLAGS="$CPPFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristy3ed852e2009-09-05 21:47:34 +000021913
cristy01ff9f32012-12-01 18:15:29 +000021914# define a lib suffix for abi purpose
cristy7a26abd2012-12-03 00:18:59 +000021915MAGICK_ABI_SUFFIX="Q${QUANTUM_DEPTH}"
cristye386d192012-12-01 21:05:20 +000021916if test "$enable_hdri" = 'yes'; then
cristy7a26abd2012-12-03 00:18:59 +000021917 MAGICK_ABI_SUFFIX="Q${QUANTUM_DEPTH}${MAGICK_HDRI}"
cristye386d192012-12-01 21:05:20 +000021918fi
cristy01ff9f32012-12-01 18:15:29 +000021919
21920
cristy3ed852e2009-09-05 21:47:34 +000021921# Set pixel cache threshold
21922
21923# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000021924if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021925 withval=$with_cache; with_cache=$withval
21926else
21927 with_cache=''
21928fi
21929
21930
21931if test "$with_cache" != ''; then
21932
21933cat >>confdefs.h <<_ACEOF
21934#define PixelCacheThreshold $with_cache
21935_ACEOF
21936
21937 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
21938fi
21939
21940# Disable/Enable support for full delegate paths
21941
21942# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000021943if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021944 withval=$with_frozenpaths; with_frozenpaths=$withval
21945else
21946 with_frozenpaths='no'
21947fi
21948
21949
21950# Enable build/install of Magick++
21951
21952# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000021953if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021954 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
21955else
21956 with_magick_plus_plus='yes'
21957fi
21958
21959
cristy3a75f062012-09-08 23:29:40 +000021960# Encode the this name into the shared library.
21961
21962# Check whether --with-package-release-name was given.
21963if test "${with_package_release_name+set}" = set; then :
21964 withval=$with_package_release_name; MAGICK_LT_RELEASE_OPTS="-release $withval"
21965fi
21966
21967
21968
cristy3ed852e2009-09-05 21:47:34 +000021969# Disable build/install of PerlMagick.
21970
21971# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000021972if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021973 withval=$with_perl; with_perl=$withval
21974else
cristyb5f4e2f2010-04-25 00:49:11 +000021975 with_perl='no'
cristy3ed852e2009-09-05 21:47:34 +000021976fi
21977
21978
21979# Options to pass when configuring PerlMagick
21980
21981# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000021982if test "${with_perl_options+set}" = set; then :
cristy949301e2010-01-06 01:38:40 +000021983 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
cristy3ed852e2009-09-05 21:47:34 +000021984fi
21985
21986
cristy3ed852e2009-09-05 21:47:34 +000021987
cristy3b0097d2014-11-04 15:34:47 +000021988# Enable jemalloc, object-caching memory allocation library.
21989
21990# Check whether --with-jemalloc was given.
21991if test "${with_jemalloc+set}" = set; then :
21992 withval=$with_jemalloc; with_jemalloc=$withval
21993else
21994 with_jemalloc='no'
21995fi
21996
21997if test "$with_jemalloc" != 'yes' ; then
21998 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jemalloc=$with_jemalloc "
21999fi
22000
cristy3ed852e2009-09-05 21:47:34 +000022001# Enable umem, object-caching memory allocation library.
22002
22003# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000022004if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022005 withval=$with_umem; with_umem=$withval
22006else
22007 with_umem='no'
22008fi
22009
22010if test "$with_umem" != 'yes' ; then
22011 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
22012fi
22013
22014#
22015# Specify path to shared libstdc++ if not in normal location
22016#
22017
22018# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000022019if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022020 withval=$with_libstdc; with_libstdc=$withval
22021else
22022 with_libstdc=''
22023fi
22024
22025
22026if test "$with_libstdc" != ''; then
22027 if test -d "$with_libstdc"; then
22028 LIBSTDCLDFLAGS="-L$with_libstdc"
22029 fi
22030fi
22031
22032
22033# Does gcc required -traditional?
22034if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000022035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000022036$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022037if ${ac_cv_prog_gcc_traditional+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022038 $as_echo_n "(cached) " >&6
22039else
22040 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000022041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022042/* end confdefs.h. */
22043#include <sgtty.h>
22044Autoconf TIOCGETP
22045_ACEOF
22046if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022047 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000022048 ac_cv_prog_gcc_traditional=yes
22049else
22050 ac_cv_prog_gcc_traditional=no
22051fi
22052rm -f conftest*
22053
22054
22055 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000022056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022057/* end confdefs.h. */
22058#include <termio.h>
22059Autoconf TCGETA
22060_ACEOF
22061if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022062 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000022063 ac_cv_prog_gcc_traditional=yes
22064fi
22065rm -f conftest*
22066
22067 fi
22068fi
cristy8b350f62009-11-15 23:12:43 +000022069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000022070$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
22071 if test $ac_cv_prog_gcc_traditional = yes; then
22072 CC="$CC -traditional"
22073 fi
22074fi
22075
22076
22077########
22078#
22079# Set defines required to build DLLs and modules using MinGW
22080#
22081########
22082# These options are set for multi-thread DLL module build
22083# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
22084# module: _DLL
22085# executable/Magick++: _DLL _MAGICKMOD_
22086MODULE_EXTRA_CPPFLAGS=''
22087LIBRARY_EXTRA_CPPFLAGS=''
22088if test "${native_win32_build}" = 'yes'; then
22089 if test "${libtool_build_shared_libs}" = 'yes'; then
22090 CPPFLAGS="$CPPFLAGS -D_DLL"
22091 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
22092 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
22093 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
cristyc6722092012-10-14 00:19:31 +000022094 if test "$build_modules" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000022095 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
22096 else
22097 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
22098 fi
22099 else
22100 CPPFLAGS="$CPPFLAGS -D_LIB"
22101 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
22102 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
22103 fi
22104 if test "$with_threads" = 'yes'; then
22105 CPPFLAGS="$CPPFLAGS -D_MT"
22106 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
22107 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
22108 fi
22109fi
22110
22111
22112
22113# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000022114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000022115$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022116if ${ac_cv_header_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022117 $as_echo_n "(cached) " >&6
22118else
cristy8b350f62009-11-15 23:12:43 +000022119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022120/* end confdefs.h. */
22121#include <stdlib.h>
22122#include <stdarg.h>
22123#include <string.h>
22124#include <float.h>
22125
22126int
22127main ()
22128{
22129
22130 ;
22131 return 0;
22132}
22133_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022134if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022135 ac_cv_header_stdc=yes
22136else
cristy8b350f62009-11-15 23:12:43 +000022137 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000022138fi
cristy3ed852e2009-09-05 21:47:34 +000022139rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22140
22141if test $ac_cv_header_stdc = yes; then
22142 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000022143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022144/* end confdefs.h. */
22145#include <string.h>
22146
22147_ACEOF
22148if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022149 $EGREP "memchr" >/dev/null 2>&1; then :
22150
cristy3ed852e2009-09-05 21:47:34 +000022151else
22152 ac_cv_header_stdc=no
22153fi
22154rm -f conftest*
22155
22156fi
22157
22158if test $ac_cv_header_stdc = yes; then
22159 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000022160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022161/* end confdefs.h. */
22162#include <stdlib.h>
22163
22164_ACEOF
22165if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022166 $EGREP "free" >/dev/null 2>&1; then :
22167
cristy3ed852e2009-09-05 21:47:34 +000022168else
22169 ac_cv_header_stdc=no
22170fi
22171rm -f conftest*
22172
22173fi
22174
22175if test $ac_cv_header_stdc = yes; then
22176 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000022177 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022178 :
22179else
cristy8b350f62009-11-15 23:12:43 +000022180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022181/* end confdefs.h. */
22182#include <ctype.h>
22183#include <stdlib.h>
22184#if ((' ' & 0x0FF) == 0x020)
22185# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
22186# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
22187#else
22188# define ISLOWER(c) \
22189 (('a' <= (c) && (c) <= 'i') \
22190 || ('j' <= (c) && (c) <= 'r') \
22191 || ('s' <= (c) && (c) <= 'z'))
22192# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
22193#endif
22194
22195#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
22196int
22197main ()
22198{
22199 int i;
22200 for (i = 0; i < 256; i++)
22201 if (XOR (islower (i), ISLOWER (i))
22202 || toupper (i) != TOUPPER (i))
22203 return 2;
22204 return 0;
22205}
22206_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022207if ac_fn_c_try_run "$LINENO"; then :
22208
cristy3ed852e2009-09-05 21:47:34 +000022209else
cristy8b350f62009-11-15 23:12:43 +000022210 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000022211fi
cristy8b350f62009-11-15 23:12:43 +000022212rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22213 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022214fi
22215
cristy3ed852e2009-09-05 21:47:34 +000022216fi
22217fi
cristy8b350f62009-11-15 23:12:43 +000022218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000022219$as_echo "$ac_cv_header_stdc" >&6; }
22220if test $ac_cv_header_stdc = yes; then
22221
cristy8b350f62009-11-15 23:12:43 +000022222$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022223
22224fi
22225
22226if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000022227 { $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 +000022228 header files. Compilation cannot proceed. Please install the ANSI C
22229 headers and rerun this script." >&5
22230$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
22231 header files. Compilation cannot proceed. Please install the ANSI C
22232 headers and rerun this script." >&2;};
22233fi
cristya0b81c32010-01-22 02:54:33 +000022234
22235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
22236$as_echo_n "checking whether to enable assertions... " >&6; }
22237 # Check whether --enable-assert was given.
22238if test "${enable_assert+set}" = set; then :
22239 enableval=$enable_assert; ac_enable_assert=$enableval
22240 if test "x$enableval" = xno; then :
22241
22242$as_echo "#define NDEBUG 1" >>confdefs.h
22243
22244elif test "x$enableval" != xyes; then :
22245 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
22246$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
22247 ac_enable_assert=yes
22248fi
22249else
22250 ac_enable_assert=yes
22251fi
22252
22253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
22254$as_echo "$ac_enable_assert" >&6; }
22255
cristy3ed852e2009-09-05 21:47:34 +000022256ac_header_dirent=no
22257for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22258 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000022259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000022260$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022261if eval \${$as_ac_Header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022262 $as_echo_n "(cached) " >&6
22263else
cristy8b350f62009-11-15 23:12:43 +000022264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022265/* end confdefs.h. */
22266#include <sys/types.h>
22267#include <$ac_hdr>
22268
22269int
22270main ()
22271{
22272if ((DIR *) 0)
22273return 0;
22274 ;
22275 return 0;
22276}
22277_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022278if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022279 eval "$as_ac_Header=yes"
22280else
cristy8b350f62009-11-15 23:12:43 +000022281 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000022282fi
cristy3ed852e2009-09-05 21:47:34 +000022283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22284fi
cristy8b350f62009-11-15 23:12:43 +000022285eval ac_res=\$$as_ac_Header
22286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000022287$as_echo "$ac_res" >&6; }
cristy98dddb52010-11-04 00:30:15 +000022288if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000022289 cat >>confdefs.h <<_ACEOF
22290#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22291_ACEOF
22292
22293ac_header_dirent=$ac_hdr; break
22294fi
22295
22296done
22297# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22298if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000022299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000022300$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022301if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022302 $as_echo_n "(cached) " >&6
22303else
22304 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000022305cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022306/* end confdefs.h. */
22307
22308/* Override any GCC internal prototype to avoid an error.
22309 Use char because int might match the return type of a GCC
22310 builtin and then its argument prototype would still apply. */
22311#ifdef __cplusplus
22312extern "C"
22313#endif
22314char opendir ();
22315int
22316main ()
22317{
22318return opendir ();
22319 ;
22320 return 0;
22321}
22322_ACEOF
22323for ac_lib in '' dir; do
22324 if test -z "$ac_lib"; then
22325 ac_res="none required"
22326 else
22327 ac_res=-l$ac_lib
22328 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22329 fi
cristy8b350f62009-11-15 23:12:43 +000022330 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022331 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000022332fi
cristy8b350f62009-11-15 23:12:43 +000022333rm -f core conftest.err conftest.$ac_objext \
22334 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000022335 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022336 break
22337fi
22338done
cristyda16f162011-02-19 23:52:17 +000022339if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000022340
cristy3ed852e2009-09-05 21:47:34 +000022341else
22342 ac_cv_search_opendir=no
22343fi
22344rm conftest.$ac_ext
22345LIBS=$ac_func_search_save_LIBS
22346fi
cristy8b350f62009-11-15 23:12:43 +000022347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000022348$as_echo "$ac_cv_search_opendir" >&6; }
22349ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000022350if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000022351 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22352
22353fi
22354
22355else
cristy8b350f62009-11-15 23:12:43 +000022356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000022357$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022358if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022359 $as_echo_n "(cached) " >&6
22360else
22361 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000022362cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022363/* end confdefs.h. */
22364
22365/* Override any GCC internal prototype to avoid an error.
22366 Use char because int might match the return type of a GCC
22367 builtin and then its argument prototype would still apply. */
22368#ifdef __cplusplus
22369extern "C"
22370#endif
22371char opendir ();
22372int
22373main ()
22374{
22375return opendir ();
22376 ;
22377 return 0;
22378}
22379_ACEOF
22380for ac_lib in '' x; do
22381 if test -z "$ac_lib"; then
22382 ac_res="none required"
22383 else
22384 ac_res=-l$ac_lib
22385 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22386 fi
cristy8b350f62009-11-15 23:12:43 +000022387 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022388 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000022389fi
cristy8b350f62009-11-15 23:12:43 +000022390rm -f core conftest.err conftest.$ac_objext \
22391 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000022392 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022393 break
22394fi
22395done
cristyda16f162011-02-19 23:52:17 +000022396if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000022397
cristy3ed852e2009-09-05 21:47:34 +000022398else
22399 ac_cv_search_opendir=no
22400fi
22401rm conftest.$ac_ext
22402LIBS=$ac_func_search_save_LIBS
22403fi
cristy8b350f62009-11-15 23:12:43 +000022404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000022405$as_echo "$ac_cv_search_opendir" >&6; }
22406ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000022407if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000022408 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22409
22410fi
22411
22412fi
22413
22414
22415# Check additional headers
cristy66988ab2015-05-30 17:20:38 +000022416for 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/sendfile.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 +000022417do :
22418 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22419ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000022420if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000022421 cat >>confdefs.h <<_ACEOF
22422#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22423_ACEOF
22424
22425fi
22426
22427done
22428
22429
22430########
22431#
22432# Checks for typedefs, structures, and compiler characteristics.
22433#
22434########
22435
cristy8b350f62009-11-15 23:12:43 +000022436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000022437$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022438if ${ac_cv_header_stdbool_h+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022439 $as_echo_n "(cached) " >&6
22440else
cristy8b350f62009-11-15 23:12:43 +000022441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022442/* end confdefs.h. */
22443
cristy14fefe52012-05-21 00:59:18 +000022444 #include <stdbool.h>
22445 #ifndef bool
22446 "error: bool is not defined"
22447 #endif
22448 #ifndef false
22449 "error: false is not defined"
22450 #endif
22451 #if false
22452 "error: false is not 0"
22453 #endif
22454 #ifndef true
22455 "error: true is not defined"
22456 #endif
22457 #if true != 1
22458 "error: true is not 1"
22459 #endif
22460 #ifndef __bool_true_false_are_defined
22461 "error: __bool_true_false_are_defined is not defined"
22462 #endif
cristy3ed852e2009-09-05 21:47:34 +000022463
cristy14fefe52012-05-21 00:59:18 +000022464 struct s { _Bool s: 1; _Bool t; } s;
cristy3ed852e2009-09-05 21:47:34 +000022465
cristy14fefe52012-05-21 00:59:18 +000022466 char a[true == 1 ? 1 : -1];
22467 char b[false == 0 ? 1 : -1];
22468 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
22469 char d[(bool) 0.5 == true ? 1 : -1];
22470 /* See body of main program for 'e'. */
22471 char f[(_Bool) 0.0 == false ? 1 : -1];
22472 char g[true];
22473 char h[sizeof (_Bool)];
22474 char i[sizeof s.t];
22475 enum { j = false, k = true, l = false * true, m = true * 256 };
22476 /* The following fails for
22477 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
22478 _Bool n[m];
22479 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
22480 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
22481 /* Catch a bug in an HP-UX C compiler. See
22482 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
22483 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
22484 */
22485 _Bool q = true;
22486 _Bool *pq = &q;
cristy3ed852e2009-09-05 21:47:34 +000022487
22488int
22489main ()
22490{
22491
cristy14fefe52012-05-21 00:59:18 +000022492 bool e = &s;
22493 *pq |= q;
22494 *pq |= ! q;
22495 /* Refer to every declared value, to avoid compiler optimizations. */
22496 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
22497 + !m + !n + !o + !p + !q + !pq);
cristy3ed852e2009-09-05 21:47:34 +000022498
22499 ;
22500 return 0;
22501}
22502_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022503if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022504 ac_cv_header_stdbool_h=yes
22505else
cristy8b350f62009-11-15 23:12:43 +000022506 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000022507fi
cristy3ed852e2009-09-05 21:47:34 +000022508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22509fi
cristy8b350f62009-11-15 23:12:43 +000022510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000022511$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy14fefe52012-05-21 00:59:18 +000022512 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000022513if test "x$ac_cv_type__Bool" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000022514
22515cat >>confdefs.h <<_ACEOF
22516#define HAVE__BOOL 1
22517_ACEOF
22518
22519
22520fi
22521
cristy14fefe52012-05-21 00:59:18 +000022522
cristy3ed852e2009-09-05 21:47:34 +000022523if test $ac_cv_header_stdbool_h = yes; then
22524
cristy8b350f62009-11-15 23:12:43 +000022525$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022526
22527fi
22528
cristy8b350f62009-11-15 23:12:43 +000022529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000022530$as_echo_n "checking for working volatile... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022531if ${ac_cv_c_volatile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022532 $as_echo_n "(cached) " >&6
22533else
cristy8b350f62009-11-15 23:12:43 +000022534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022535/* end confdefs.h. */
22536
22537int
22538main ()
22539{
22540
22541volatile int x;
22542int * volatile y = (int *) 0;
22543return !x && !y;
22544 ;
22545 return 0;
22546}
22547_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022548if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022549 ac_cv_c_volatile=yes
22550else
cristy8b350f62009-11-15 23:12:43 +000022551 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000022552fi
cristy3ed852e2009-09-05 21:47:34 +000022553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22554fi
cristy8b350f62009-11-15 23:12:43 +000022555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000022556$as_echo "$ac_cv_c_volatile" >&6; }
22557if test $ac_cv_c_volatile = no; then
22558
cristy8b350f62009-11-15 23:12:43 +000022559$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022560
22561fi
22562
cristy8b350f62009-11-15 23:12:43 +000022563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000022564$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022565if ${ac_cv_c_stringize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022566 $as_echo_n "(cached) " >&6
22567else
cristy8b350f62009-11-15 23:12:43 +000022568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022569/* end confdefs.h. */
22570#define x(y) #y
22571
22572char *s = x(teststring);
22573_ACEOF
22574if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022575 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000022576 ac_cv_c_stringize=no
22577else
22578 ac_cv_c_stringize=yes
22579fi
22580rm -f conftest*
22581
22582fi
cristy8b350f62009-11-15 23:12:43 +000022583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000022584$as_echo "$ac_cv_c_stringize" >&6; }
22585if test $ac_cv_c_stringize = yes; then
22586
cristy8b350f62009-11-15 23:12:43 +000022587$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022588
22589fi
22590
cristy8b350f62009-11-15 23:12:43 +000022591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000022592$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022593if ${ac_cv_header_stat_broken+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022594 $as_echo_n "(cached) " >&6
22595else
cristy8b350f62009-11-15 23:12:43 +000022596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022597/* end confdefs.h. */
22598#include <sys/types.h>
22599#include <sys/stat.h>
22600
22601#if defined S_ISBLK && defined S_IFDIR
22602extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
22603#endif
22604
22605#if defined S_ISBLK && defined S_IFCHR
22606extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
22607#endif
22608
22609#if defined S_ISLNK && defined S_IFREG
22610extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
22611#endif
22612
22613#if defined S_ISSOCK && defined S_IFREG
22614extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
22615#endif
22616
22617_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022618if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022619 ac_cv_header_stat_broken=no
22620else
cristy8b350f62009-11-15 23:12:43 +000022621 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000022622fi
cristy3ed852e2009-09-05 21:47:34 +000022623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22624fi
cristy8b350f62009-11-15 23:12:43 +000022625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000022626$as_echo "$ac_cv_header_stat_broken" >&6; }
22627if test $ac_cv_header_stat_broken = yes; then
22628
cristy8b350f62009-11-15 23:12:43 +000022629$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022630
22631fi
22632
cristy8b350f62009-11-15 23:12:43 +000022633{ $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 +000022634$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022635if ${ac_cv_header_time+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022636 $as_echo_n "(cached) " >&6
22637else
cristy8b350f62009-11-15 23:12:43 +000022638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022639/* end confdefs.h. */
22640#include <sys/types.h>
22641#include <sys/time.h>
22642#include <time.h>
22643
22644int
22645main ()
22646{
22647if ((struct tm *) 0)
22648return 0;
22649 ;
22650 return 0;
22651}
22652_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022653if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022654 ac_cv_header_time=yes
22655else
cristy8b350f62009-11-15 23:12:43 +000022656 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000022657fi
cristy3ed852e2009-09-05 21:47:34 +000022658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22659fi
cristy8b350f62009-11-15 23:12:43 +000022660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000022661$as_echo "$ac_cv_header_time" >&6; }
22662if test $ac_cv_header_time = yes; then
22663
cristy8b350f62009-11-15 23:12:43 +000022664$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022665
22666fi
22667
cristy8b350f62009-11-15 23:12:43 +000022668{ $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 +000022669$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022670if ${ac_cv_struct_tm+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022671 $as_echo_n "(cached) " >&6
22672else
cristy8b350f62009-11-15 23:12:43 +000022673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022674/* end confdefs.h. */
22675#include <sys/types.h>
22676#include <time.h>
22677
22678int
22679main ()
22680{
22681struct tm tm;
22682 int *p = &tm.tm_sec;
22683 return !p;
22684 ;
22685 return 0;
22686}
22687_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022688if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022689 ac_cv_struct_tm=time.h
22690else
cristy8b350f62009-11-15 23:12:43 +000022691 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000022692fi
cristy3ed852e2009-09-05 21:47:34 +000022693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22694fi
cristy8b350f62009-11-15 23:12:43 +000022695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000022696$as_echo "$ac_cv_struct_tm" >&6; }
22697if test $ac_cv_struct_tm = sys/time.h; then
22698
cristy8b350f62009-11-15 23:12:43 +000022699$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022700
22701fi
22702
cristy92703d82010-04-26 00:18:18 +000022703ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
22704#include <$ac_cv_struct_tm>
22705
22706"
cristyda16f162011-02-19 23:52:17 +000022707if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000022708
22709cat >>confdefs.h <<_ACEOF
22710#define HAVE_STRUCT_TM_TM_ZONE 1
22711_ACEOF
22712
22713
22714fi
22715
22716if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
22717
22718$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
22719
22720else
22721 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
22722"
cristyda16f162011-02-19 23:52:17 +000022723if test "x$ac_cv_have_decl_tzname" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000022724 ac_have_decl=1
22725else
22726 ac_have_decl=0
22727fi
22728
22729cat >>confdefs.h <<_ACEOF
22730#define HAVE_DECL_TZNAME $ac_have_decl
22731_ACEOF
22732
22733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
22734$as_echo_n "checking for tzname... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022735if ${ac_cv_var_tzname+:} false; then :
cristy92703d82010-04-26 00:18:18 +000022736 $as_echo_n "(cached) " >&6
22737else
22738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22739/* end confdefs.h. */
22740#include <time.h>
22741#if !HAVE_DECL_TZNAME
22742extern char *tzname[];
22743#endif
22744
22745int
22746main ()
22747{
22748return tzname[0][0];
22749 ;
22750 return 0;
22751}
22752_ACEOF
22753if ac_fn_c_try_link "$LINENO"; then :
22754 ac_cv_var_tzname=yes
22755else
22756 ac_cv_var_tzname=no
22757fi
22758rm -f core conftest.err conftest.$ac_objext \
22759 conftest$ac_exeext conftest.$ac_ext
22760fi
22761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
22762$as_echo "$ac_cv_var_tzname" >&6; }
22763 if test $ac_cv_var_tzname = yes; then
22764
22765$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
22766
22767 fi
22768fi
22769
cristy8b350f62009-11-15 23:12:43 +000022770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000022771$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022772if ${ac_cv_sys_interpreter+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022773 $as_echo_n "(cached) " >&6
22774else
22775 echo '#! /bin/cat
22776exit 69
22777' >conftest
22778chmod u+x conftest
22779(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
22780if test $? -ne 69; then
22781 ac_cv_sys_interpreter=yes
22782else
22783 ac_cv_sys_interpreter=no
22784fi
22785rm -f conftest
22786fi
cristy8b350f62009-11-15 23:12:43 +000022787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000022788$as_echo "$ac_cv_sys_interpreter" >&6; }
22789interpval=$ac_cv_sys_interpreter
22790
22791
cristye80f9cb2013-01-09 01:09:31 +000022792#
22793# Checks for language qualifiers and semantics.
22794#
22795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
22796$as_echo_n "checking whether char is unsigned... " >&6; }
22797if ${ac_cv_c_char_unsigned+:} false; then :
22798 $as_echo_n "(cached) " >&6
22799else
22800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22801/* end confdefs.h. */
22802$ac_includes_default
22803int
22804main ()
22805{
22806static int test_array [1 - 2 * !(((char) -1) < 0)];
22807test_array [0] = 0;
22808return test_array [0];
22809
22810 ;
22811 return 0;
22812}
22813_ACEOF
22814if ac_fn_c_try_compile "$LINENO"; then :
22815 ac_cv_c_char_unsigned=no
22816else
22817 ac_cv_c_char_unsigned=yes
22818fi
22819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22820fi
22821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
22822$as_echo "$ac_cv_c_char_unsigned" >&6; }
22823if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
22824 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
22825
22826fi
22827
22828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
22829$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
22830if ${ac_cv_c_const+:} false; then :
22831 $as_echo_n "(cached) " >&6
22832else
22833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22834/* end confdefs.h. */
22835
22836int
22837main ()
22838{
22839
22840#ifndef __cplusplus
22841 /* Ultrix mips cc rejects this sort of thing. */
22842 typedef int charset[2];
22843 const charset cs = { 0, 0 };
22844 /* SunOS 4.1.1 cc rejects this. */
22845 char const *const *pcpcc;
22846 char **ppc;
22847 /* NEC SVR4.0.2 mips cc rejects this. */
22848 struct point {int x, y;};
22849 static struct point const zero = {0,0};
22850 /* AIX XL C 1.02.0.0 rejects this.
22851 It does not let you subtract one const X* pointer from another in
22852 an arm of an if-expression whose if-part is not a constant
22853 expression */
22854 const char *g = "string";
22855 pcpcc = &g + (g ? g-g : 0);
22856 /* HPUX 7.0 cc rejects these. */
22857 ++pcpcc;
22858 ppc = (char**) pcpcc;
22859 pcpcc = (char const *const *) ppc;
22860 { /* SCO 3.2v4 cc rejects this sort of thing. */
22861 char tx;
22862 char *t = &tx;
22863 char const *s = 0 ? (char *) 0 : (char const *) 0;
22864
22865 *t++ = 0;
22866 if (s) return 0;
22867 }
22868 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
22869 int x[] = {25, 17};
22870 const int *foo = &x[0];
22871 ++foo;
22872 }
22873 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22874 typedef const int *iptr;
22875 iptr p = 0;
22876 ++p;
22877 }
22878 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
22879 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22880 struct s { int j; const int *ap[3]; } bx;
22881 struct s *b = &bx; b->j = 5;
22882 }
22883 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22884 const int foo = 10;
22885 if (!foo) return 0;
22886 }
22887 return !cs[0] && !zero.x;
22888#endif
22889
22890 ;
22891 return 0;
22892}
22893_ACEOF
22894if ac_fn_c_try_compile "$LINENO"; then :
22895 ac_cv_c_const=yes
22896else
22897 ac_cv_c_const=no
22898fi
22899rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22900fi
22901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
22902$as_echo "$ac_cv_c_const" >&6; }
22903if test $ac_cv_c_const = no; then
22904
22905$as_echo "#define const /**/" >>confdefs.h
22906
22907fi
22908
cristy8b350f62009-11-15 23:12:43 +000022909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022910$as_echo_n "checking for inline... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022911if ${ac_cv_c_inline+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022912 $as_echo_n "(cached) " >&6
22913else
22914 ac_cv_c_inline=no
22915for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000022916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022917/* end confdefs.h. */
22918#ifndef __cplusplus
22919typedef int foo_t;
22920static $ac_kw foo_t static_foo () {return 0; }
22921$ac_kw foo_t foo () {return 0; }
22922#endif
22923
22924_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022925if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022926 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022927fi
cristy3ed852e2009-09-05 21:47:34 +000022928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22929 test "$ac_cv_c_inline" != no && break
22930done
22931
22932fi
cristy8b350f62009-11-15 23:12:43 +000022933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022934$as_echo "$ac_cv_c_inline" >&6; }
22935
cristy3ed852e2009-09-05 21:47:34 +000022936case $ac_cv_c_inline in
22937 inline | yes) ;;
22938 *)
22939 case $ac_cv_c_inline in
22940 no) ac_val=;;
22941 *) ac_val=$ac_cv_c_inline;;
22942 esac
22943 cat >>confdefs.h <<_ACEOF
22944#ifndef __cplusplus
22945#define inline $ac_val
22946#endif
22947_ACEOF
22948 ;;
22949esac
22950
cristy8b350f62009-11-15 23:12:43 +000022951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000022952$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022953if ${ac_cv_c_restrict+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022954 $as_echo_n "(cached) " >&6
22955else
22956 ac_cv_c_restrict=no
22957 # The order here caters to the fact that C++ does not require restrict.
22958 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000022959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022960/* end confdefs.h. */
22961typedef int * int_ptr;
22962 int foo (int_ptr $ac_kw ip) {
22963 return ip[0];
22964 }
22965int
22966main ()
22967{
22968int s[1];
22969 int * $ac_kw t = s;
22970 t[0] = 0;
22971 return foo(t)
22972 ;
22973 return 0;
22974}
22975_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022976if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022977 ac_cv_c_restrict=$ac_kw
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 test "$ac_cv_c_restrict" != no && break
22981 done
22982
22983fi
cristy8b350f62009-11-15 23:12:43 +000022984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000022985$as_echo "$ac_cv_c_restrict" >&6; }
22986
cristy3ed852e2009-09-05 21:47:34 +000022987 case $ac_cv_c_restrict in
22988 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000022989 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022990 ;;
22991 *) cat >>confdefs.h <<_ACEOF
22992#define restrict $ac_cv_c_restrict
22993_ACEOF
22994 ;;
22995 esac
22996
cristye80f9cb2013-01-09 01:09:31 +000022997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
22998$as_echo_n "checking for working volatile... " >&6; }
22999if ${ac_cv_c_volatile+:} false; then :
23000 $as_echo_n "(cached) " >&6
23001else
23002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23003/* end confdefs.h. */
23004
23005int
23006main ()
23007{
23008
23009volatile int x;
23010int * volatile y = (int *) 0;
23011return !x && !y;
23012 ;
23013 return 0;
23014}
23015_ACEOF
23016if ac_fn_c_try_compile "$LINENO"; then :
23017 ac_cv_c_volatile=yes
23018else
23019 ac_cv_c_volatile=no
23020fi
23021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23022fi
23023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
23024$as_echo "$ac_cv_c_volatile" >&6; }
23025if test $ac_cv_c_volatile = no; then
23026
23027$as_echo "#define volatile /**/" >>confdefs.h
23028
23029fi
23030
cristy3ed852e2009-09-05 21:47:34 +000023031
23032# If words are stored with the most significant byte first (like
23033# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000023034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000023035$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023036if ${ac_cv_c_bigendian+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023037 $as_echo_n "(cached) " >&6
23038else
23039 ac_cv_c_bigendian=unknown
23040 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000023041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023042/* end confdefs.h. */
23043#ifndef __APPLE_CC__
23044 not a universal capable compiler
23045 #endif
23046 typedef int dummy;
23047
23048_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023049if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023050
23051 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000023052 # there are at least two -arch flags with different values.
23053 ac_arch=
23054 ac_prev=
23055 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
23056 if test -n "$ac_prev"; then
23057 case $ac_word in
23058 i?86 | x86_64 | ppc | ppc64)
23059 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
23060 ac_arch=$ac_word
23061 else
23062 ac_cv_c_bigendian=universal
23063 break
23064 fi
23065 ;;
23066 esac
23067 ac_prev=
23068 elif test "x$ac_word" = "x-arch"; then
23069 ac_prev=arch
23070 fi
23071 done
cristy3ed852e2009-09-05 21:47:34 +000023072fi
cristy3ed852e2009-09-05 21:47:34 +000023073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23074 if test $ac_cv_c_bigendian = unknown; then
23075 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000023076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023077/* end confdefs.h. */
23078#include <sys/types.h>
23079 #include <sys/param.h>
23080
23081int
23082main ()
23083{
23084#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
23085 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
23086 && LITTLE_ENDIAN)
23087 bogus endian macros
23088 #endif
23089
23090 ;
23091 return 0;
23092}
23093_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023094if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023095 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000023096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023097/* end confdefs.h. */
23098#include <sys/types.h>
23099 #include <sys/param.h>
23100
23101int
23102main ()
23103{
23104#if BYTE_ORDER != BIG_ENDIAN
23105 not big endian
23106 #endif
23107
23108 ;
23109 return 0;
23110}
23111_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023112if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023113 ac_cv_c_bigendian=yes
23114else
cristy8b350f62009-11-15 23:12:43 +000023115 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000023116fi
cristy3ed852e2009-09-05 21:47:34 +000023117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023118fi
cristy3ed852e2009-09-05 21:47:34 +000023119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23120 fi
23121 if test $ac_cv_c_bigendian = unknown; then
23122 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000023123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023124/* end confdefs.h. */
23125#include <limits.h>
23126
23127int
23128main ()
23129{
23130#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
23131 bogus endian macros
23132 #endif
23133
23134 ;
23135 return 0;
23136}
23137_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023138if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023139 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000023140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023141/* end confdefs.h. */
23142#include <limits.h>
23143
23144int
23145main ()
23146{
23147#ifndef _BIG_ENDIAN
23148 not big endian
23149 #endif
23150
23151 ;
23152 return 0;
23153}
23154_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023155if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023156 ac_cv_c_bigendian=yes
23157else
cristy8b350f62009-11-15 23:12:43 +000023158 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000023159fi
cristy3ed852e2009-09-05 21:47:34 +000023160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023161fi
cristy3ed852e2009-09-05 21:47:34 +000023162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23163 fi
23164 if test $ac_cv_c_bigendian = unknown; then
23165 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000023166 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023167 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000023168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023169/* end confdefs.h. */
23170short int ascii_mm[] =
23171 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
23172 short int ascii_ii[] =
23173 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
23174 int use_ascii (int i) {
23175 return ascii_mm[i] + ascii_ii[i];
23176 }
23177 short int ebcdic_ii[] =
23178 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
23179 short int ebcdic_mm[] =
23180 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
23181 int use_ebcdic (int i) {
23182 return ebcdic_mm[i] + ebcdic_ii[i];
23183 }
23184 extern int foo;
23185
23186int
23187main ()
23188{
23189return use_ascii (foo) == use_ebcdic (foo);
23190 ;
23191 return 0;
23192}
23193_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023194if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023195 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
23196 ac_cv_c_bigendian=yes
23197 fi
23198 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
23199 if test "$ac_cv_c_bigendian" = unknown; then
23200 ac_cv_c_bigendian=no
23201 else
23202 # finding both strings is unlikely to happen, but who knows?
23203 ac_cv_c_bigendian=unknown
23204 fi
23205 fi
cristy3ed852e2009-09-05 21:47:34 +000023206fi
cristy3ed852e2009-09-05 21:47:34 +000023207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23208else
cristy8b350f62009-11-15 23:12:43 +000023209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023210/* end confdefs.h. */
23211$ac_includes_default
23212int
23213main ()
23214{
23215
23216 /* Are we little or big endian? From Harbison&Steele. */
23217 union
23218 {
23219 long int l;
23220 char c[sizeof (long int)];
23221 } u;
23222 u.l = 1;
23223 return u.c[sizeof (long int) - 1] == 1;
23224
23225 ;
23226 return 0;
23227}
23228_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023229if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023230 ac_cv_c_bigendian=no
23231else
cristy8b350f62009-11-15 23:12:43 +000023232 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000023233fi
cristy8b350f62009-11-15 23:12:43 +000023234rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23235 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023236fi
23237
cristy3ed852e2009-09-05 21:47:34 +000023238 fi
23239fi
cristy8b350f62009-11-15 23:12:43 +000023240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000023241$as_echo "$ac_cv_c_bigendian" >&6; }
23242 case $ac_cv_c_bigendian in #(
23243 yes)
cristy8b350f62009-11-15 23:12:43 +000023244 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023245;; #(
23246 no)
23247 ;; #(
23248 universal)
23249
cristy8b350f62009-11-15 23:12:43 +000023250$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023251
23252 ;; #(
23253 *)
cristy98dddb52010-11-04 00:30:15 +000023254 as_fn_error $? "unknown endianness
cristy8b350f62009-11-15 23:12:43 +000023255 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000023256 esac
23257
23258
cristy501c8042011-05-26 17:46:28 +000023259# Define to a suitable type, if standard headers do not define it.
23260ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
23261case $ac_cv_c_int8_t in #(
23262 no|yes) ;; #(
23263 *)
cristy3ed852e2009-09-05 21:47:34 +000023264
23265cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000023266#define int8_t $ac_cv_c_int8_t
23267_ACEOF
23268;;
23269esac
23270
23271ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
23272case $ac_cv_c_int16_t in #(
23273 no|yes) ;; #(
23274 *)
23275
23276cat >>confdefs.h <<_ACEOF
23277#define int16_t $ac_cv_c_int16_t
23278_ACEOF
23279;;
23280esac
23281
23282ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
23283case $ac_cv_c_int32_t in #(
23284 no|yes) ;; #(
23285 *)
23286
23287cat >>confdefs.h <<_ACEOF
23288#define int32_t $ac_cv_c_int32_t
23289_ACEOF
23290;;
23291esac
23292
23293ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
23294case $ac_cv_c_int64_t in #(
23295 no|yes) ;; #(
23296 *)
23297
23298cat >>confdefs.h <<_ACEOF
23299#define int64_t $ac_cv_c_int64_t
23300_ACEOF
23301;;
23302esac
23303
23304
cristy045228a2013-06-23 11:00:16 +000023305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23306$as_echo_n "checking for unsigned long long int... " >&6; }
23307if ${ac_cv_type_unsigned_long_long_int+:} false; then :
cristy501c8042011-05-26 17:46:28 +000023308 $as_echo_n "(cached) " >&6
23309else
cristy045228a2013-06-23 11:00:16 +000023310 ac_cv_type_unsigned_long_long_int=yes
23311 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
23312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy501c8042011-05-26 17:46:28 +000023313/* end confdefs.h. */
23314
23315 /* For now, do not test the preprocessor; as of 2007 there are too many
cristy5ed9c6e2013-07-14 21:20:31 +000023316 implementations with broken preprocessors. Perhaps this can
23317 be revisited in 2012. In the meantime, code should not expect
23318 #if to work with literals wider than 32 bits. */
cristy501c8042011-05-26 17:46:28 +000023319 /* Test literals. */
23320 long long int ll = 9223372036854775807ll;
23321 long long int nll = -9223372036854775807LL;
23322 unsigned long long int ull = 18446744073709551615ULL;
23323 /* Test constant expressions. */
23324 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
cristy5ed9c6e2013-07-14 21:20:31 +000023325 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000023326 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
cristy5ed9c6e2013-07-14 21:20:31 +000023327 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000023328 int i = 63;
23329int
23330main ()
23331{
23332/* Test availability of runtime routines for shift and division. */
23333 long long int llmax = 9223372036854775807ll;
23334 unsigned long long int ullmax = 18446744073709551615ull;
23335 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
cristy5ed9c6e2013-07-14 21:20:31 +000023336 | (llmax / ll) | (llmax % ll)
23337 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23338 | (ullmax / ull) | (ullmax % ull));
cristy501c8042011-05-26 17:46:28 +000023339 ;
23340 return 0;
23341}
23342
23343_ACEOF
23344if ac_fn_c_try_link "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000023345
23346else
23347 ac_cv_type_unsigned_long_long_int=no
23348fi
23349rm -f core conftest.err conftest.$ac_objext \
23350 conftest$ac_exeext conftest.$ac_ext
23351 fi
23352fi
23353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23354$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23355 if test $ac_cv_type_unsigned_long_long_int = yes; then
23356
23357$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23358
23359 fi
23360
23361
23362
23363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
23364$as_echo_n "checking for long long int... " >&6; }
23365if ${ac_cv_type_long_long_int+:} false; then :
23366 $as_echo_n "(cached) " >&6
23367else
cristy501c8042011-05-26 17:46:28 +000023368 ac_cv_type_long_long_int=yes
cristy045228a2013-06-23 11:00:16 +000023369 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
cristy5ed9c6e2013-07-14 21:20:31 +000023370 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
23371 if test $ac_cv_type_long_long_int = yes; then
23372 if test "$cross_compiling" = yes; then :
cristy045228a2013-06-23 11:00:16 +000023373 :
cristy501c8042011-05-26 17:46:28 +000023374else
23375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23376/* end confdefs.h. */
23377#include <limits.h>
cristy5ed9c6e2013-07-14 21:20:31 +000023378 #ifndef LLONG_MAX
23379 # define HALF \
23380 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
23381 # define LLONG_MAX (HALF - 1 + HALF)
23382 #endif
cristy501c8042011-05-26 17:46:28 +000023383int
23384main ()
23385{
23386long long int n = 1;
cristy5ed9c6e2013-07-14 21:20:31 +000023387 int i;
23388 for (i = 0; ; i++)
23389 {
23390 long long int m = n << i;
23391 if (m >> i != n)
23392 return 1;
23393 if (LLONG_MAX / 2 < m)
23394 break;
23395 }
23396 return 0;
cristy501c8042011-05-26 17:46:28 +000023397 ;
23398 return 0;
23399}
23400_ACEOF
23401if ac_fn_c_try_run "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000023402
cristy501c8042011-05-26 17:46:28 +000023403else
23404 ac_cv_type_long_long_int=no
23405fi
23406rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23407 conftest.$ac_objext conftest.beam conftest.$ac_ext
23408fi
23409
cristy5ed9c6e2013-07-14 21:20:31 +000023410 fi
cristy045228a2013-06-23 11:00:16 +000023411 fi
cristy501c8042011-05-26 17:46:28 +000023412fi
23413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
23414$as_echo "$ac_cv_type_long_long_int" >&6; }
23415 if test $ac_cv_type_long_long_int = yes; then
23416
23417$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
23418
23419 fi
23420
23421
23422
23423 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
23424if test "x$ac_cv_type_intmax_t" = xyes; then :
23425
23426$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
23427
23428else
23429 test $ac_cv_type_long_long_int = yes \
23430 && ac_type='long long int' \
23431 || ac_type='long int'
23432
23433cat >>confdefs.h <<_ACEOF
23434#define intmax_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000023435_ACEOF
23436
23437fi
23438
23439
cristy501c8042011-05-26 17:46:28 +000023440
23441 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
23442if test "x$ac_cv_type_intptr_t" = xyes; then :
23443
23444$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023445
cristy3ed852e2009-09-05 21:47:34 +000023446else
cristy501c8042011-05-26 17:46:28 +000023447 for ac_type in 'int' 'long int' 'long long int'; do
23448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23449/* end confdefs.h. */
23450$ac_includes_default
23451int
23452main ()
23453{
23454static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
cristy14fefe52012-05-21 00:59:18 +000023455test_array [0] = 0;
23456return test_array [0];
cristy501c8042011-05-26 17:46:28 +000023457
23458 ;
23459 return 0;
23460}
23461_ACEOF
23462if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023463
23464cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000023465#define intptr_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000023466_ACEOF
23467
cristy501c8042011-05-26 17:46:28 +000023468 ac_type=
23469fi
23470rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23471 test -z "$ac_type" && break
23472 done
cristy3ed852e2009-09-05 21:47:34 +000023473fi
23474
23475
cristy3ed852e2009-09-05 21:47:34 +000023476
cristy501c8042011-05-26 17:46:28 +000023477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
23478$as_echo_n "checking for long double... " >&6; }
23479if ${ac_cv_type_long_double+:} false; then :
23480 $as_echo_n "(cached) " >&6
cristy3ed852e2009-09-05 21:47:34 +000023481else
cristy501c8042011-05-26 17:46:28 +000023482 if test "$GCC" = yes; then
23483 ac_cv_type_long_double=yes
23484 else
23485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23486/* end confdefs.h. */
23487/* The Stardent Vistra knows sizeof (long double), but does
23488 not support it. */
23489 long double foo = 0.0L;
23490int
23491main ()
23492{
23493static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
23494 sizeof (double) <= sizeof (long double))];
cristy14fefe52012-05-21 00:59:18 +000023495test_array [0] = 0;
23496return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000023497
cristy501c8042011-05-26 17:46:28 +000023498 ;
23499 return 0;
23500}
cristy3ed852e2009-09-05 21:47:34 +000023501_ACEOF
cristy501c8042011-05-26 17:46:28 +000023502if ac_fn_c_try_compile "$LINENO"; then :
23503 ac_cv_type_long_double=yes
cristy3ed852e2009-09-05 21:47:34 +000023504else
cristy501c8042011-05-26 17:46:28 +000023505 ac_cv_type_long_double=no
cristy3ed852e2009-09-05 21:47:34 +000023506fi
cristy501c8042011-05-26 17:46:28 +000023507rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23508 fi
cristy3ed852e2009-09-05 21:47:34 +000023509fi
cristy501c8042011-05-26 17:46:28 +000023510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
23511$as_echo "$ac_cv_type_long_double" >&6; }
23512 if test $ac_cv_type_long_double = yes; then
cristy3ed852e2009-09-05 21:47:34 +000023513
cristy501c8042011-05-26 17:46:28 +000023514$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023515
cristy501c8042011-05-26 17:46:28 +000023516 fi
23517
cristy3ed852e2009-09-05 21:47:34 +000023518
cristy8b350f62009-11-15 23:12:43 +000023519 { $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 +000023520$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023521if ${ac_cv_type_long_double_wider+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023522 $as_echo_n "(cached) " >&6
23523else
cristy8b350f62009-11-15 23:12:43 +000023524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023525/* end confdefs.h. */
23526#include <float.h>
23527 long double const a[] =
23528 {
23529 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
23530 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
23531 };
23532 long double
23533 f (long double x)
23534 {
23535 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
23536 + (x ? f (x) : 'c'));
23537 }
23538
23539int
23540main ()
23541{
23542static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
23543 + (DBL_MANT_DIG < LDBL_MANT_DIG)
23544 - (LDBL_MAX_EXP < DBL_MAX_EXP)
23545 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
23546 && (int) LDBL_EPSILON == 0
23547 )];
cristy14fefe52012-05-21 00:59:18 +000023548test_array [0] = 0;
23549return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000023550
23551 ;
23552 return 0;
23553}
23554_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023555if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023556 ac_cv_type_long_double_wider=yes
23557else
cristy8b350f62009-11-15 23:12:43 +000023558 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000023559fi
cristy3ed852e2009-09-05 21:47:34 +000023560rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23561fi
cristy8b350f62009-11-15 23:12:43 +000023562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000023563$as_echo "$ac_cv_type_long_double_wider" >&6; }
23564 if test $ac_cv_type_long_double_wider = yes; then
23565
cristy8b350f62009-11-15 23:12:43 +000023566$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023567
23568 fi
23569
23570
cristy045228a2013-06-23 11:00:16 +000023571
cristy501c8042011-05-26 17:46:28 +000023572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
23573$as_echo_n "checking for long long int... " >&6; }
23574if ${ac_cv_type_long_long_int+:} false; then :
23575 $as_echo_n "(cached) " >&6
23576else
cristy501c8042011-05-26 17:46:28 +000023577 ac_cv_type_long_long_int=yes
cristy045228a2013-06-23 11:00:16 +000023578 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
cristy5ed9c6e2013-07-14 21:20:31 +000023579 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
23580 if test $ac_cv_type_long_long_int = yes; then
23581 if test "$cross_compiling" = yes; then :
cristy045228a2013-06-23 11:00:16 +000023582 :
cristy501c8042011-05-26 17:46:28 +000023583else
23584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23585/* end confdefs.h. */
23586#include <limits.h>
cristy5ed9c6e2013-07-14 21:20:31 +000023587 #ifndef LLONG_MAX
23588 # define HALF \
23589 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
23590 # define LLONG_MAX (HALF - 1 + HALF)
23591 #endif
cristy501c8042011-05-26 17:46:28 +000023592int
23593main ()
23594{
23595long long int n = 1;
cristy5ed9c6e2013-07-14 21:20:31 +000023596 int i;
23597 for (i = 0; ; i++)
23598 {
23599 long long int m = n << i;
23600 if (m >> i != n)
23601 return 1;
23602 if (LLONG_MAX / 2 < m)
23603 break;
23604 }
23605 return 0;
cristy501c8042011-05-26 17:46:28 +000023606 ;
23607 return 0;
23608}
23609_ACEOF
23610if ac_fn_c_try_run "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000023611
cristy501c8042011-05-26 17:46:28 +000023612else
23613 ac_cv_type_long_long_int=no
23614fi
23615rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23616 conftest.$ac_objext conftest.beam conftest.$ac_ext
23617fi
23618
cristy5ed9c6e2013-07-14 21:20:31 +000023619 fi
cristy045228a2013-06-23 11:00:16 +000023620 fi
cristy501c8042011-05-26 17:46:28 +000023621fi
23622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
23623$as_echo "$ac_cv_type_long_long_int" >&6; }
23624 if test $ac_cv_type_long_long_int = yes; then
23625
23626$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
23627
23628 fi
23629
23630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
23631$as_echo_n "checking for mbstate_t... " >&6; }
23632if ${ac_cv_type_mbstate_t+:} false; then :
23633 $as_echo_n "(cached) " >&6
23634else
23635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23636/* end confdefs.h. */
23637$ac_includes_default
23638# include <wchar.h>
23639int
23640main ()
23641{
23642mbstate_t x; return sizeof x;
23643 ;
23644 return 0;
23645}
23646_ACEOF
23647if ac_fn_c_try_compile "$LINENO"; then :
23648 ac_cv_type_mbstate_t=yes
23649else
23650 ac_cv_type_mbstate_t=no
23651fi
23652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23653fi
23654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
23655$as_echo "$ac_cv_type_mbstate_t" >&6; }
23656 if test $ac_cv_type_mbstate_t = yes; then
23657
23658$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
23659
23660 else
23661
23662$as_echo "#define mbstate_t int" >>confdefs.h
23663
23664 fi
23665ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
23666if test "x$ac_cv_type_mode_t" = xyes; then :
23667
23668else
23669
23670cat >>confdefs.h <<_ACEOF
23671#define mode_t int
23672_ACEOF
23673
23674fi
23675
23676ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
23677if test "x$ac_cv_type_off_t" = xyes; then :
23678
23679else
23680
23681cat >>confdefs.h <<_ACEOF
23682#define off_t long int
23683_ACEOF
23684
23685fi
23686
23687ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
23688if test "x$ac_cv_type_pid_t" = xyes; then :
23689
23690else
23691
23692cat >>confdefs.h <<_ACEOF
23693#define pid_t int
23694_ACEOF
23695
23696fi
23697
23698ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
23699if test "x$ac_cv_type_size_t" = xyes; then :
23700
23701else
23702
23703cat >>confdefs.h <<_ACEOF
23704#define size_t unsigned int
23705_ACEOF
23706
23707fi
23708
23709ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
23710if test "x$ac_cv_type_ssize_t" = xyes; then :
23711
23712else
23713
23714cat >>confdefs.h <<_ACEOF
23715#define ssize_t int
23716_ACEOF
23717
23718fi
23719
23720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
23721$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
23722if ${ac_cv_type_uid_t+:} false; then :
23723 $as_echo_n "(cached) " >&6
23724else
23725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23726/* end confdefs.h. */
23727#include <sys/types.h>
23728
23729_ACEOF
23730if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23731 $EGREP "uid_t" >/dev/null 2>&1; then :
23732 ac_cv_type_uid_t=yes
23733else
23734 ac_cv_type_uid_t=no
23735fi
23736rm -f conftest*
23737
23738fi
23739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
23740$as_echo "$ac_cv_type_uid_t" >&6; }
23741if test $ac_cv_type_uid_t = no; then
23742
23743$as_echo "#define uid_t int" >>confdefs.h
23744
23745
23746$as_echo "#define gid_t int" >>confdefs.h
23747
23748fi
23749
23750ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
23751case $ac_cv_c_uint8_t in #(
23752 no|yes) ;; #(
23753 *)
23754
23755$as_echo "#define _UINT8_T 1" >>confdefs.h
23756
23757
23758cat >>confdefs.h <<_ACEOF
23759#define uint8_t $ac_cv_c_uint8_t
23760_ACEOF
23761;;
23762 esac
23763
23764ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
23765case $ac_cv_c_uint16_t in #(
23766 no|yes) ;; #(
23767 *)
23768
23769
23770cat >>confdefs.h <<_ACEOF
23771#define uint16_t $ac_cv_c_uint16_t
23772_ACEOF
23773;;
23774 esac
23775
23776ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
23777case $ac_cv_c_uint32_t in #(
23778 no|yes) ;; #(
23779 *)
23780
23781$as_echo "#define _UINT32_T 1" >>confdefs.h
23782
23783
23784cat >>confdefs.h <<_ACEOF
23785#define uint32_t $ac_cv_c_uint32_t
23786_ACEOF
23787;;
23788 esac
23789
23790ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
23791case $ac_cv_c_uint64_t in #(
23792 no|yes) ;; #(
23793 *)
23794
23795$as_echo "#define _UINT64_T 1" >>confdefs.h
23796
23797
23798cat >>confdefs.h <<_ACEOF
23799#define uint64_t $ac_cv_c_uint64_t
23800_ACEOF
23801;;
23802 esac
23803
23804
cristy501c8042011-05-26 17:46:28 +000023805
23806 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
23807if test "x$ac_cv_type_uintmax_t" = xyes; then :
23808
23809$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
23810
23811else
23812 test $ac_cv_type_unsigned_long_long_int = yes \
23813 && ac_type='unsigned long long int' \
23814 || ac_type='unsigned long int'
23815
23816cat >>confdefs.h <<_ACEOF
23817#define uintmax_t $ac_type
23818_ACEOF
23819
23820fi
23821
23822
23823
23824 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
23825if test "x$ac_cv_type_uintptr_t" = xyes; then :
23826
23827$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
23828
23829else
23830 for ac_type in 'unsigned int' 'unsigned long int' \
23831 'unsigned long long int'; do
23832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23833/* end confdefs.h. */
23834$ac_includes_default
23835int
23836main ()
23837{
23838static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
cristy14fefe52012-05-21 00:59:18 +000023839test_array [0] = 0;
23840return test_array [0];
cristy501c8042011-05-26 17:46:28 +000023841
23842 ;
23843 return 0;
23844}
23845_ACEOF
23846if ac_fn_c_try_compile "$LINENO"; then :
23847
23848cat >>confdefs.h <<_ACEOF
23849#define uintptr_t $ac_type
23850_ACEOF
23851
23852 ac_type=
23853fi
23854rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23855 test -z "$ac_type" && break
23856 done
23857fi
23858
23859
23860
23861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23862$as_echo_n "checking for unsigned long long int... " >&6; }
23863if ${ac_cv_type_unsigned_long_long_int+:} false; then :
23864 $as_echo_n "(cached) " >&6
23865else
cristy045228a2013-06-23 11:00:16 +000023866 ac_cv_type_unsigned_long_long_int=yes
23867 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
23868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy501c8042011-05-26 17:46:28 +000023869/* end confdefs.h. */
23870
23871 /* For now, do not test the preprocessor; as of 2007 there are too many
cristy5ed9c6e2013-07-14 21:20:31 +000023872 implementations with broken preprocessors. Perhaps this can
23873 be revisited in 2012. In the meantime, code should not expect
23874 #if to work with literals wider than 32 bits. */
cristy501c8042011-05-26 17:46:28 +000023875 /* Test literals. */
23876 long long int ll = 9223372036854775807ll;
23877 long long int nll = -9223372036854775807LL;
23878 unsigned long long int ull = 18446744073709551615ULL;
23879 /* Test constant expressions. */
23880 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
cristy5ed9c6e2013-07-14 21:20:31 +000023881 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000023882 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
cristy5ed9c6e2013-07-14 21:20:31 +000023883 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000023884 int i = 63;
23885int
23886main ()
23887{
23888/* Test availability of runtime routines for shift and division. */
23889 long long int llmax = 9223372036854775807ll;
23890 unsigned long long int ullmax = 18446744073709551615ull;
23891 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
cristy5ed9c6e2013-07-14 21:20:31 +000023892 | (llmax / ll) | (llmax % ll)
23893 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23894 | (ullmax / ull) | (ullmax % ull));
cristy501c8042011-05-26 17:46:28 +000023895 ;
23896 return 0;
23897}
23898
23899_ACEOF
23900if ac_fn_c_try_link "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000023901
cristy501c8042011-05-26 17:46:28 +000023902else
23903 ac_cv_type_unsigned_long_long_int=no
23904fi
23905rm -f core conftest.err conftest.$ac_objext \
23906 conftest$ac_exeext conftest.$ac_ext
cristy045228a2013-06-23 11:00:16 +000023907 fi
cristy501c8042011-05-26 17:46:28 +000023908fi
23909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23910$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23911 if test $ac_cv_type_unsigned_long_long_int = yes; then
23912
23913$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23914
23915 fi
23916
23917
cristy708922a2015-05-17 02:33:56 +000023918ac_fn_c_check_type "$LINENO" "locale_t" "ac_cv_type_locale_t" "#include <xlocale.h>
23919"
cristy98beafc2015-05-14 19:55:55 +000023920if test "x$ac_cv_type_locale_t" = xyes; then :
23921
23922cat >>confdefs.h <<_ACEOF
23923#define HAVE_LOCALE_T 1
23924_ACEOF
23925
23926
23927fi
23928
23929
cristyfec31822013-05-23 12:32:12 +000023930# Float_t and double_t are intended to be the the most efficient type.
23931ac_fn_c_check_type "$LINENO" "float_t" "ac_cv_type_float_t" "#include <math.h>
23932"
23933if test "x$ac_cv_type_float_t" = xyes; then :
23934
23935cat >>confdefs.h <<_ACEOF
23936#define HAVE_FLOAT_T 1
23937_ACEOF
23938
23939
23940fi
23941
23942ac_fn_c_check_type "$LINENO" "double_t" "ac_cv_type_double_t" "#include <math.h>
23943"
23944if test "x$ac_cv_type_double_t" = xyes; then :
23945
23946cat >>confdefs.h <<_ACEOF
23947#define HAVE_DOUBLE_T 1
23948_ACEOF
23949
23950
23951fi
23952
23953# The cast to long int works around a bug in the HP C Compiler
23954# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23955# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23956# This bug is HP SR number 8606223364.
23957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float_t" >&5
23958$as_echo_n "checking size of float_t... " >&6; }
23959if ${ac_cv_sizeof_float_t+:} false; then :
23960 $as_echo_n "(cached) " >&6
23961else
23962 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float_t))" "ac_cv_sizeof_float_t" "#include <math.h>
23963"; then :
23964
23965else
23966 if test "$ac_cv_type_float_t" = yes; then
23967 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23968$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23969as_fn_error 77 "cannot compute sizeof (float_t)
23970See \`config.log' for more details" "$LINENO" 5; }
23971 else
23972 ac_cv_sizeof_float_t=0
23973 fi
23974fi
23975
23976fi
23977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float_t" >&5
23978$as_echo "$ac_cv_sizeof_float_t" >&6; }
23979
23980
23981
23982cat >>confdefs.h <<_ACEOF
23983#define SIZEOF_FLOAT_T $ac_cv_sizeof_float_t
23984_ACEOF
23985
23986
23987# The cast to long int works around a bug in the HP C Compiler
23988# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23989# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23990# This bug is HP SR number 8606223364.
23991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double_t" >&5
23992$as_echo_n "checking size of double_t... " >&6; }
23993if ${ac_cv_sizeof_double_t+:} false; then :
23994 $as_echo_n "(cached) " >&6
23995else
23996 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double_t))" "ac_cv_sizeof_double_t" "#include <math.h>
23997"; then :
23998
23999else
24000 if test "$ac_cv_type_double_t" = yes; then
24001 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24002$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24003as_fn_error 77 "cannot compute sizeof (double_t)
24004See \`config.log' for more details" "$LINENO" 5; }
24005 else
24006 ac_cv_sizeof_double_t=0
24007 fi
24008fi
24009
24010fi
24011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double_t" >&5
24012$as_echo "$ac_cv_sizeof_double_t" >&6; }
24013
24014
24015
24016cat >>confdefs.h <<_ACEOF
24017#define SIZEOF_DOUBLE_T $ac_cv_sizeof_double_t
24018_ACEOF
24019
24020
24021
cristy9b86f202012-11-28 21:55:35 +000024022# Get size of float, double and long double for comparaison.
24023# The cast to long int works around a bug in the HP C Compiler
24024# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24025# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24026# This bug is HP SR number 8606223364.
24027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
24028$as_echo_n "checking size of float... " >&6; }
24029if ${ac_cv_sizeof_float+:} false; then :
24030 $as_echo_n "(cached) " >&6
24031else
24032 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then :
24033
24034else
24035 if test "$ac_cv_type_float" = yes; then
24036 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24037$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24038as_fn_error 77 "cannot compute sizeof (float)
24039See \`config.log' for more details" "$LINENO" 5; }
24040 else
24041 ac_cv_sizeof_float=0
24042 fi
24043fi
24044
24045fi
24046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
24047$as_echo "$ac_cv_sizeof_float" >&6; }
24048
24049
24050
24051cat >>confdefs.h <<_ACEOF
24052#define SIZEOF_FLOAT $ac_cv_sizeof_float
24053_ACEOF
24054
24055
24056# The cast to long int works around a bug in the HP C Compiler
24057# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24058# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24059# This bug is HP SR number 8606223364.
24060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
24061$as_echo_n "checking size of double... " >&6; }
24062if ${ac_cv_sizeof_double+:} false; then :
24063 $as_echo_n "(cached) " >&6
24064else
24065 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
24066
24067else
24068 if test "$ac_cv_type_double" = yes; then
24069 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24070$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24071as_fn_error 77 "cannot compute sizeof (double)
24072See \`config.log' for more details" "$LINENO" 5; }
24073 else
24074 ac_cv_sizeof_double=0
24075 fi
24076fi
24077
24078fi
24079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
24080$as_echo "$ac_cv_sizeof_double" >&6; }
24081
24082
24083
24084cat >>confdefs.h <<_ACEOF
24085#define SIZEOF_DOUBLE $ac_cv_sizeof_double
24086_ACEOF
24087
24088
cristy9e2b6242014-03-25 11:49:41 +000024089# The cast to long int works around a bug in the HP C Compiler
cristyfec31822013-05-23 12:32:12 +000024090# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24091# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24092# This bug is HP SR number 8606223364.
24093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
24094$as_echo_n "checking size of long double... " >&6; }
24095if ${ac_cv_sizeof_long_double+:} false; then :
24096 $as_echo_n "(cached) " >&6
24097else
24098 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
24099
24100else
24101 if test "$ac_cv_type_long_double" = yes; then
24102 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24103$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24104as_fn_error 77 "cannot compute sizeof (long double)
24105See \`config.log' for more details" "$LINENO" 5; }
24106 else
24107 ac_cv_sizeof_long_double=0
24108 fi
24109fi
24110
24111fi
24112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
24113$as_echo "$ac_cv_sizeof_long_double" >&6; }
24114
24115
24116
24117cat >>confdefs.h <<_ACEOF
24118#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
24119_ACEOF
24120
24121
cristyf0cf9a22012-10-24 12:05:01 +000024122
cristy3ed852e2009-09-05 21:47:34 +000024123# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
24124# The cast to long int works around a bug in the HP C Compiler
24125# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24126# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24127# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000024129$as_echo_n "checking size of signed short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024130if ${ac_cv_sizeof_signed_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024131 $as_echo_n "(cached) " >&6
24132else
cristy8b350f62009-11-15 23:12:43 +000024133 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 +000024134
cristy3ed852e2009-09-05 21:47:34 +000024135else
cristy8b350f62009-11-15 23:12:43 +000024136 if test "$ac_cv_type_signed_short" = yes; then
24137 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024138$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024139as_fn_error 77 "cannot compute sizeof (signed short)
24140See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024141 else
24142 ac_cv_sizeof_signed_short=0
24143 fi
24144fi
cristy8b350f62009-11-15 23:12:43 +000024145
cristy3ed852e2009-09-05 21:47:34 +000024146fi
cristy8b350f62009-11-15 23:12:43 +000024147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000024148$as_echo "$ac_cv_sizeof_signed_short" >&6; }
24149
24150
24151
24152cat >>confdefs.h <<_ACEOF
24153#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
24154_ACEOF
24155
24156
24157
24158# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
24159# The cast to long int works around a bug in the HP C Compiler
24160# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24161# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24162# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000024164$as_echo_n "checking size of unsigned short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024165if ${ac_cv_sizeof_unsigned_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024166 $as_echo_n "(cached) " >&6
24167else
cristy8b350f62009-11-15 23:12:43 +000024168 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 +000024169
cristy3ed852e2009-09-05 21:47:34 +000024170else
cristy8b350f62009-11-15 23:12:43 +000024171 if test "$ac_cv_type_unsigned_short" = yes; then
24172 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024173$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024174as_fn_error 77 "cannot compute sizeof (unsigned short)
24175See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024176 else
24177 ac_cv_sizeof_unsigned_short=0
24178 fi
24179fi
cristy8b350f62009-11-15 23:12:43 +000024180
cristy3ed852e2009-09-05 21:47:34 +000024181fi
cristy8b350f62009-11-15 23:12:43 +000024182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000024183$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
24184
24185
24186
24187cat >>confdefs.h <<_ACEOF
24188#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
24189_ACEOF
24190
24191
24192
24193# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
24194# The cast to long int works around a bug in the HP C Compiler
24195# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24196# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24197# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000024199$as_echo_n "checking size of signed int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024200if ${ac_cv_sizeof_signed_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024201 $as_echo_n "(cached) " >&6
24202else
cristy8b350f62009-11-15 23:12:43 +000024203 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 +000024204
cristy3ed852e2009-09-05 21:47:34 +000024205else
cristy8b350f62009-11-15 23:12:43 +000024206 if test "$ac_cv_type_signed_int" = yes; then
24207 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024208$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024209as_fn_error 77 "cannot compute sizeof (signed int)
24210See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024211 else
24212 ac_cv_sizeof_signed_int=0
24213 fi
24214fi
cristy8b350f62009-11-15 23:12:43 +000024215
cristy3ed852e2009-09-05 21:47:34 +000024216fi
cristy8b350f62009-11-15 23:12:43 +000024217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000024218$as_echo "$ac_cv_sizeof_signed_int" >&6; }
24219
24220
24221
24222cat >>confdefs.h <<_ACEOF
24223#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
24224_ACEOF
24225
24226
24227
24228# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
24229# The cast to long int works around a bug in the HP C Compiler
24230# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24231# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24232# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000024234$as_echo_n "checking size of unsigned int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024235if ${ac_cv_sizeof_unsigned_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024236 $as_echo_n "(cached) " >&6
24237else
cristy8b350f62009-11-15 23:12:43 +000024238 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 +000024239
cristy3ed852e2009-09-05 21:47:34 +000024240else
cristy8b350f62009-11-15 23:12:43 +000024241 if test "$ac_cv_type_unsigned_int" = yes; then
24242 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024243$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024244as_fn_error 77 "cannot compute sizeof (unsigned int)
24245See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024246 else
24247 ac_cv_sizeof_unsigned_int=0
24248 fi
24249fi
cristy8b350f62009-11-15 23:12:43 +000024250
cristy3ed852e2009-09-05 21:47:34 +000024251fi
cristy8b350f62009-11-15 23:12:43 +000024252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000024253$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
24254
24255
24256
24257cat >>confdefs.h <<_ACEOF
24258#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
24259_ACEOF
24260
24261
24262
24263# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
24264# The cast to long int works around a bug in the HP C Compiler
24265# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24266# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24267# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024269$as_echo_n "checking size of signed long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024270if ${ac_cv_sizeof_signed_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024271 $as_echo_n "(cached) " >&6
24272else
cristy8b350f62009-11-15 23:12:43 +000024273 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 +000024274
cristy3ed852e2009-09-05 21:47:34 +000024275else
cristy8b350f62009-11-15 23:12:43 +000024276 if test "$ac_cv_type_signed_long" = yes; then
24277 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024278$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024279as_fn_error 77 "cannot compute sizeof (signed long)
24280See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024281 else
24282 ac_cv_sizeof_signed_long=0
24283 fi
24284fi
cristy8b350f62009-11-15 23:12:43 +000024285
cristy3ed852e2009-09-05 21:47:34 +000024286fi
cristy8b350f62009-11-15 23:12:43 +000024287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024288$as_echo "$ac_cv_sizeof_signed_long" >&6; }
24289
24290
24291
24292cat >>confdefs.h <<_ACEOF
24293#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
24294_ACEOF
24295
24296
24297
24298# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
24299# The cast to long int works around a bug in the HP C Compiler
24300# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24301# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24302# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024304$as_echo_n "checking size of unsigned long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024305if ${ac_cv_sizeof_unsigned_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024306 $as_echo_n "(cached) " >&6
24307else
cristy8b350f62009-11-15 23:12:43 +000024308 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 +000024309
cristy3ed852e2009-09-05 21:47:34 +000024310else
cristy8b350f62009-11-15 23:12:43 +000024311 if test "$ac_cv_type_unsigned_long" = yes; then
24312 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024313$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024314as_fn_error 77 "cannot compute sizeof (unsigned long)
24315See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024316 else
24317 ac_cv_sizeof_unsigned_long=0
24318 fi
24319fi
cristy8b350f62009-11-15 23:12:43 +000024320
cristy3ed852e2009-09-05 21:47:34 +000024321fi
cristy8b350f62009-11-15 23:12:43 +000024322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024323$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
24324
24325
24326
24327cat >>confdefs.h <<_ACEOF
24328#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
24329_ACEOF
24330
24331
24332
24333# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
24334# 'signed long long' is not supported then the value defined is zero.
24335# The cast to long int works around a bug in the HP C Compiler
24336# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24337# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24338# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024340$as_echo_n "checking size of signed long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024341if ${ac_cv_sizeof_signed_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024342 $as_echo_n "(cached) " >&6
24343else
cristy8b350f62009-11-15 23:12:43 +000024344 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 +000024345
cristy3ed852e2009-09-05 21:47:34 +000024346else
cristy8b350f62009-11-15 23:12:43 +000024347 if test "$ac_cv_type_signed_long_long" = yes; then
24348 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024349$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024350as_fn_error 77 "cannot compute sizeof (signed long long)
24351See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024352 else
24353 ac_cv_sizeof_signed_long_long=0
24354 fi
24355fi
cristy8b350f62009-11-15 23:12:43 +000024356
cristy3ed852e2009-09-05 21:47:34 +000024357fi
cristy8b350f62009-11-15 23:12:43 +000024358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024359$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
24360
24361
24362
24363cat >>confdefs.h <<_ACEOF
24364#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
24365_ACEOF
24366
24367
24368
24369# Obtain size of a 'unsigned long long' and define as
24370# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
24371# supported then the value defined is zero.
24372# The cast to long int works around a bug in the HP C Compiler
24373# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24374# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24375# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024377$as_echo_n "checking size of unsigned long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024378if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024379 $as_echo_n "(cached) " >&6
24380else
cristy8b350f62009-11-15 23:12:43 +000024381 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 +000024382
cristy3ed852e2009-09-05 21:47:34 +000024383else
cristy8b350f62009-11-15 23:12:43 +000024384 if test "$ac_cv_type_unsigned_long_long" = yes; then
24385 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024386$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024387as_fn_error 77 "cannot compute sizeof (unsigned long long)
24388See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024389 else
24390 ac_cv_sizeof_unsigned_long_long=0
24391 fi
24392fi
cristy8b350f62009-11-15 23:12:43 +000024393
cristy3ed852e2009-09-05 21:47:34 +000024394fi
cristy8b350f62009-11-15 23:12:43 +000024395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024396$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
24397
24398
24399
24400cat >>confdefs.h <<_ACEOF
24401#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
24402_ACEOF
24403
24404
24405
cristyfec31822013-05-23 12:32:12 +000024406# Obtain size of off_t and define as SIZEOF_OFF_T
24407# The cast to long int works around a bug in the HP C Compiler
24408# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24409# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24410# This bug is HP SR number 8606223364.
24411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
24412$as_echo_n "checking size of off_t... " >&6; }
24413if ${ac_cv_sizeof_off_t+:} false; then :
24414 $as_echo_n "(cached) " >&6
24415else
24416 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
24417
24418else
24419 if test "$ac_cv_type_off_t" = yes; then
24420 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24421$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24422as_fn_error 77 "cannot compute sizeof (off_t)
24423See \`config.log' for more details" "$LINENO" 5; }
24424 else
24425 ac_cv_sizeof_off_t=0
24426 fi
24427fi
24428
24429fi
24430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
24431$as_echo "$ac_cv_sizeof_off_t" >&6; }
24432
24433
24434
24435cat >>confdefs.h <<_ACEOF
24436#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
24437_ACEOF
24438
24439
24440
24441# Obtain size of size_t and define as SIZEOF_SIZE_T
24442# The cast to long int works around a bug in the HP C Compiler
24443# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24444# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24445# This bug is HP SR number 8606223364.
24446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
24447$as_echo_n "checking size of size_t... " >&6; }
24448if ${ac_cv_sizeof_size_t+:} false; then :
24449 $as_echo_n "(cached) " >&6
24450else
24451 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
24452
24453else
24454 if test "$ac_cv_type_size_t" = yes; then
24455 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24456$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24457as_fn_error 77 "cannot compute sizeof (size_t)
24458See \`config.log' for more details" "$LINENO" 5; }
24459 else
24460 ac_cv_sizeof_size_t=0
24461 fi
24462fi
24463
24464fi
24465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
24466$as_echo "$ac_cv_sizeof_size_t" >&6; }
24467
24468
24469
24470cat >>confdefs.h <<_ACEOF
24471#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
24472_ACEOF
24473
24474
24475
24476# Obtain size of ssize_t and define as SIZEOF_SSIZE_T
24477# The cast to long int works around a bug in the HP C Compiler
24478# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24479# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24480# This bug is HP SR number 8606223364.
24481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
24482$as_echo_n "checking size of ssize_t... " >&6; }
24483if ${ac_cv_sizeof_ssize_t+:} false; then :
24484 $as_echo_n "(cached) " >&6
24485else
24486 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
24487
24488else
24489 if test "$ac_cv_type_ssize_t" = yes; then
24490 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24491$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24492as_fn_error 77 "cannot compute sizeof (ssize_t)
24493See \`config.log' for more details" "$LINENO" 5; }
24494 else
24495 ac_cv_sizeof_ssize_t=0
24496 fi
24497fi
24498
24499fi
24500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
24501$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
24502
24503
24504
24505cat >>confdefs.h <<_ACEOF
24506#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
24507_ACEOF
24508
24509
24510
cristy3ed852e2009-09-05 21:47:34 +000024511# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
24512# The cast to long int works around a bug in the HP C Compiler
24513# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24514# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24515# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000024517$as_echo_n "checking size of unsigned int*... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024518if ${ac_cv_sizeof_unsigned_intp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024519 $as_echo_n "(cached) " >&6
24520else
cristy8b350f62009-11-15 23:12:43 +000024521 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 +000024522
cristy3ed852e2009-09-05 21:47:34 +000024523else
cristy8b350f62009-11-15 23:12:43 +000024524 if test "$ac_cv_type_unsigned_intp" = yes; then
24525 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024526$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024527as_fn_error 77 "cannot compute sizeof (unsigned int*)
24528See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024529 else
24530 ac_cv_sizeof_unsigned_intp=0
24531 fi
24532fi
cristy8b350f62009-11-15 23:12:43 +000024533
cristy3ed852e2009-09-05 21:47:34 +000024534fi
cristy8b350f62009-11-15 23:12:43 +000024535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024536$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
24537
24538
24539
24540cat >>confdefs.h <<_ACEOF
24541#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
24542_ACEOF
24543
24544
24545
24546#
24547# Compute sized types for current CPU and compiler options.
24548#
24549
cristy8b350f62009-11-15 23:12:43 +000024550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024551$as_echo_n "checking for signed 8-bit type... " >&6; }
24552INT8_T='signed char'
cristyad38abe2012-12-23 23:03:21 +000024553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
24554$as_echo "$INT8_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024555
24556
cristy8b350f62009-11-15 23:12:43 +000024557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024558$as_echo_n "checking for unsigned 8-bit type... " >&6; }
24559UINT8_T='unsigned char'
cristyad38abe2012-12-23 23:03:21 +000024560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
24561$as_echo "$UINT8_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024562
24563
cristy8b350f62009-11-15 23:12:43 +000024564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024565$as_echo_n "checking for signed 16-bit type... " >&6; }
24566INT16_T='signed short'
cristyad38abe2012-12-23 23:03:21 +000024567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
24568$as_echo "$INT16_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024569
24570
cristy8b350f62009-11-15 23:12:43 +000024571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024572$as_echo_n "checking for unsigned 16-bit type... " >&6; }
24573UINT16_T='unsigned short'
cristyad38abe2012-12-23 23:03:21 +000024574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
24575$as_echo "$UINT16_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024576
24577
cristy8b350f62009-11-15 23:12:43 +000024578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024579$as_echo_n "checking for signed 32-bit type... " >&6; }
24580INT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024581INT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024582if test $ac_cv_sizeof_signed_int -eq 4; then
24583 INT32_T='signed int'
cristy6d5e20f2011-04-25 13:48:54 +000024584 INT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000024585elif test $ac_cv_sizeof_signed_long -eq 4; then
24586 INT32_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000024587 INT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024588fi
cristyad38abe2012-12-23 23:03:21 +000024589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
24590$as_echo "$INT32_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024591
24592
cristy6d5e20f2011-04-25 13:48:54 +000024593
cristy8b350f62009-11-15 23:12:43 +000024594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024595$as_echo_n "checking for unsigned 32-bit type... " >&6; }
24596UINT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024597UINT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024598if test $ac_cv_sizeof_unsigned_int -eq 4; then
24599 UINT32_T='unsigned int'
cristy6d5e20f2011-04-25 13:48:54 +000024600 UINT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000024601elif test $ac_cv_sizeof_unsigned_long -eq 4; then
24602 UINT32_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000024603 UINT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024604fi
cristyad38abe2012-12-23 23:03:21 +000024605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
24606$as_echo "$UINT32_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024607
24608
cristy6d5e20f2011-04-25 13:48:54 +000024609
cristy8b350f62009-11-15 23:12:43 +000024610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024611$as_echo_n "checking for signed 64-bit type... " >&6; }
24612INT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024613INT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024614if test $ac_cv_sizeof_signed_long -eq 8; then
24615 INT64_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000024616 INT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024617elif test $ac_cv_sizeof_signed_long_long -eq 8; then
24618 INT64_T='signed long long'
cristy6d5e20f2011-04-25 13:48:54 +000024619 INT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000024620fi
cristy3a99dcf2011-12-17 01:29:40 +000024621case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000024622 mingw* )
24623 INT64_F='"I64"'
24624 ;;
24625esac
cristyad38abe2012-12-23 23:03:21 +000024626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
24627$as_echo "$INT64_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024628
24629
cristy6d5e20f2011-04-25 13:48:54 +000024630
cristy8b350f62009-11-15 23:12:43 +000024631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024632$as_echo_n "checking for unsigned 64-bit type... " >&6; }
24633UINT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024634UINT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024635if test $ac_cv_sizeof_unsigned_long -eq 8; then
24636 UINT64_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000024637 UINT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024638elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
24639 UINT64_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000024640 UINT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000024641fi
cristy3a99dcf2011-12-17 01:29:40 +000024642case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000024643 mingw* )
24644 UINT64_F='"I64"'
24645 ;;
24646esac
cristyad38abe2012-12-23 23:03:21 +000024647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
24648$as_echo "$UINT64_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024649
24650
cristy6d5e20f2011-04-25 13:48:54 +000024651
cristy8b350f62009-11-15 23:12:43 +000024652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024653$as_echo_n "checking for unsigned maximum type... " >&6; }
24654UINTMAX_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024655UINTMAX_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024656if test "$UINT64_T" != 'none'; then
24657 UINTMAX_T=$UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +000024658 UINTMAX_F=$UINT64_F
cristy3ed852e2009-09-05 21:47:34 +000024659elif test "$UINT32_T" != 'none'; then
24660 UINTMAX_T=$UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +000024661 UINTMAX_F=$UINT32_F
cristy3ed852e2009-09-05 21:47:34 +000024662fi
cristyad38abe2012-12-23 23:03:21 +000024663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5
24664$as_echo "$UINTMAX_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024665
24666
cristy6d5e20f2011-04-25 13:48:54 +000024667
cristy8b350f62009-11-15 23:12:43 +000024668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024669$as_echo_n "checking for pointer difference type... " >&6; }
24670UINTPTR_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024671UINTPTR_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024672if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
24673 UINTPTR_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000024674 UINTPTR_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024675elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
24676 UINTPTR_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000024677 UINTPTR_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000024678fi
cristyad38abe2012-12-23 23:03:21 +000024679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5
24680$as_echo "$UINTPTR_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024681
24682
cristy6d5e20f2011-04-25 13:48:54 +000024683
cristy8b350f62009-11-15 23:12:43 +000024684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000024685$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024686cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024687/* end confdefs.h. */
24688
24689int
24690main ()
24691{
24692{ const char *func = __func__; return(func != 0 ? 0 : 1); }
24693 ;
24694 return 0;
24695}
24696_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024697if ac_fn_c_try_compile "$LINENO"; then :
cristyad38abe2012-12-23 23:03:21 +000024698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24699$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024700else
cristyad38abe2012-12-23 23:03:21 +000024701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24702$as_echo "no" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000024704$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024706/* end confdefs.h. */
24707
24708int
24709main ()
24710{
24711{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
24712 ;
24713 return 0;
24714}
24715_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024716if ac_fn_c_try_compile "$LINENO"; then :
cristyad38abe2012-12-23 23:03:21 +000024717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24718$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024719
cristy8b350f62009-11-15 23:12:43 +000024720$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024721
24722else
cristyad38abe2012-12-23 23:03:21 +000024723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24724$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024725
cristy8b350f62009-11-15 23:12:43 +000024726$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024727
24728fi
cristy3ed852e2009-09-05 21:47:34 +000024729rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24730fi
cristy3ed852e2009-09-05 21:47:34 +000024731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24732
24733########
24734#
24735# Check for functions
24736#
24737########
cristy8b350f62009-11-15 23:12:43 +000024738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024739$as_echo_n "checking whether closedir returns void... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024740if ${ac_cv_func_closedir_void+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024741 $as_echo_n "(cached) " >&6
24742else
cristy8b350f62009-11-15 23:12:43 +000024743 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024744 ac_cv_func_closedir_void=yes
24745else
cristy8b350f62009-11-15 23:12:43 +000024746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024747/* end confdefs.h. */
24748$ac_includes_default
24749#include <$ac_header_dirent>
24750#ifndef __cplusplus
24751int closedir ();
24752#endif
24753
24754int
24755main ()
24756{
24757return closedir (opendir (".")) != 0;
24758 ;
24759 return 0;
24760}
24761_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024762if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024763 ac_cv_func_closedir_void=no
24764else
cristy8b350f62009-11-15 23:12:43 +000024765 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000024766fi
cristy8b350f62009-11-15 23:12:43 +000024767rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24768 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024769fi
24770
cristy3ed852e2009-09-05 21:47:34 +000024771fi
cristy8b350f62009-11-15 23:12:43 +000024772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024773$as_echo "$ac_cv_func_closedir_void" >&6; }
24774if test $ac_cv_func_closedir_void = yes; then
24775
cristy8b350f62009-11-15 23:12:43 +000024776$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024777
24778fi
24779
cristycd4c5312009-11-22 01:19:08 +000024780
24781
24782
24783 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000024784do :
24785 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000024786ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
24787"
cristy98dddb52010-11-04 00:30:15 +000024788if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024789 cat >>confdefs.h <<_ACEOF
24790#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24791_ACEOF
24792
24793fi
24794
24795done
24796
cristycd4c5312009-11-22 01:19:08 +000024797
24798
24799
24800
24801
24802
24803
cristy3ed852e2009-09-05 21:47:34 +000024804for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000024805do :
24806 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000024807if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024808 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024809#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000024810_ACEOF
24811
24812fi
24813done
24814
cristy8b350f62009-11-15 23:12:43 +000024815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000024816$as_echo_n "checking for working mmap... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024817if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024818 $as_echo_n "(cached) " >&6
24819else
cristy8b350f62009-11-15 23:12:43 +000024820 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024821 ac_cv_func_mmap_fixed_mapped=no
24822else
cristy8b350f62009-11-15 23:12:43 +000024823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024824/* end confdefs.h. */
24825$ac_includes_default
24826/* malloc might have been renamed as rpl_malloc. */
24827#undef malloc
24828
24829/* Thanks to Mike Haertel and Jim Avera for this test.
24830 Here is a matrix of mmap possibilities:
24831 mmap private not fixed
24832 mmap private fixed at somewhere currently unmapped
24833 mmap private fixed at somewhere already mapped
24834 mmap shared not fixed
24835 mmap shared fixed at somewhere currently unmapped
24836 mmap shared fixed at somewhere already mapped
24837 For private mappings, we should verify that changes cannot be read()
24838 back from the file, nor mmap's back from the file at a different
24839 address. (There have been systems where private was not correctly
24840 implemented like the infamous i386 svr4.0, and systems where the
24841 VM page cache was not coherent with the file system buffer cache
24842 like early versions of FreeBSD and possibly contemporary NetBSD.)
24843 For shared mappings, we should conversely verify that changes get
24844 propagated back to all the places they're supposed to be.
24845
24846 Grep wants private fixed already mapped.
24847 The main things grep needs to know about mmap are:
24848 * does it exist and is it safe to write into the mmap'd area
24849 * how to use it (BSD variants) */
24850
24851#include <fcntl.h>
24852#include <sys/mman.h>
24853
24854#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
24855char *malloc ();
24856#endif
24857
24858/* This mess was copied from the GNU getpagesize.h. */
24859#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000024860# ifdef _SC_PAGESIZE
24861# define getpagesize() sysconf(_SC_PAGESIZE)
24862# else /* no _SC_PAGESIZE */
24863# ifdef HAVE_SYS_PARAM_H
24864# include <sys/param.h>
24865# ifdef EXEC_PAGESIZE
24866# define getpagesize() EXEC_PAGESIZE
24867# else /* no EXEC_PAGESIZE */
24868# ifdef NBPG
24869# define getpagesize() NBPG * CLSIZE
24870# ifndef CLSIZE
24871# define CLSIZE 1
24872# endif /* no CLSIZE */
24873# else /* no NBPG */
24874# ifdef NBPC
24875# define getpagesize() NBPC
24876# else /* no NBPC */
24877# ifdef PAGESIZE
24878# define getpagesize() PAGESIZE
24879# endif /* PAGESIZE */
24880# endif /* no NBPC */
24881# endif /* no NBPG */
24882# endif /* no EXEC_PAGESIZE */
24883# else /* no HAVE_SYS_PARAM_H */
24884# define getpagesize() 8192 /* punt totally */
24885# endif /* no HAVE_SYS_PARAM_H */
24886# endif /* no _SC_PAGESIZE */
24887
24888#endif /* no HAVE_GETPAGESIZE */
24889
24890int
24891main ()
24892{
24893 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000024894 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000024895 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000024896 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000024897
24898 pagesize = getpagesize ();
24899
24900 /* First, make a file with some known garbage in it. */
24901 data = (char *) malloc (pagesize);
24902 if (!data)
24903 return 1;
24904 for (i = 0; i < pagesize; ++i)
24905 *(data + i) = rand ();
24906 umask (0);
24907 fd = creat ("conftest.mmap", 0600);
24908 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024909 return 2;
cristy3ed852e2009-09-05 21:47:34 +000024910 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024911 return 3;
cristy3ed852e2009-09-05 21:47:34 +000024912 close (fd);
24913
cristycd4c5312009-11-22 01:19:08 +000024914 /* Next, check that the tail of a page is zero-filled. File must have
24915 non-zero length, otherwise we risk SIGBUS for entire page. */
24916 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
24917 if (fd2 < 0)
24918 return 4;
cristyc54f5d42009-11-27 21:36:31 +000024919 cdata2 = "";
24920 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000024921 return 5;
cristyc54f5d42009-11-27 21:36:31 +000024922 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000024923 if (data2 == MAP_FAILED)
24924 return 6;
24925 for (i = 0; i < pagesize; ++i)
24926 if (*(data2 + i))
24927 return 7;
24928 close (fd2);
24929 if (munmap (data2, pagesize))
24930 return 8;
24931
cristy3ed852e2009-09-05 21:47:34 +000024932 /* Next, try to mmap the file at a fixed address which already has
24933 something else allocated at it. If we can, also make sure that
24934 we see the same garbage. */
24935 fd = open ("conftest.mmap", O_RDWR);
24936 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024937 return 9;
cristy3ed852e2009-09-05 21:47:34 +000024938 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
24939 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000024940 return 10;
cristy3ed852e2009-09-05 21:47:34 +000024941 for (i = 0; i < pagesize; ++i)
24942 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000024943 return 11;
cristy3ed852e2009-09-05 21:47:34 +000024944
24945 /* Finally, make sure that changes to the mapped area do not
24946 percolate back to the file as seen by read(). (This is a bug on
24947 some variants of i386 svr4.0.) */
24948 for (i = 0; i < pagesize; ++i)
24949 *(data2 + i) = *(data2 + i) + 1;
24950 data3 = (char *) malloc (pagesize);
24951 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000024952 return 12;
cristy3ed852e2009-09-05 21:47:34 +000024953 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024954 return 13;
cristy3ed852e2009-09-05 21:47:34 +000024955 for (i = 0; i < pagesize; ++i)
24956 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000024957 return 14;
cristy3ed852e2009-09-05 21:47:34 +000024958 close (fd);
24959 return 0;
24960}
24961_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024962if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024963 ac_cv_func_mmap_fixed_mapped=yes
24964else
cristy8b350f62009-11-15 23:12:43 +000024965 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000024966fi
cristy8b350f62009-11-15 23:12:43 +000024967rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24968 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024969fi
24970
cristy3ed852e2009-09-05 21:47:34 +000024971fi
cristy8b350f62009-11-15 23:12:43 +000024972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000024973$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
24974if test $ac_cv_func_mmap_fixed_mapped = yes; then
24975
cristy8b350f62009-11-15 23:12:43 +000024976$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024977
24978fi
cristycd4c5312009-11-22 01:19:08 +000024979rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000024980
cristy3ed852e2009-09-05 21:47:34 +000024981for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000024982do :
24983 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000024984if test "x$ac_cv_header_vfork_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024985 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024986#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000024987_ACEOF
24988
24989fi
24990
24991done
24992
cristy3ed852e2009-09-05 21:47:34 +000024993for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000024994do :
24995 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24996ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000024997if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024998 cat >>confdefs.h <<_ACEOF
24999#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25000_ACEOF
25001
25002fi
25003done
25004
25005if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000025006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000025007$as_echo_n "checking for working fork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025008if ${ac_cv_func_fork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025009 $as_echo_n "(cached) " >&6
25010else
cristy8b350f62009-11-15 23:12:43 +000025011 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025012 ac_cv_func_fork_works=cross
25013else
cristy8b350f62009-11-15 23:12:43 +000025014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025015/* end confdefs.h. */
25016$ac_includes_default
25017int
25018main ()
25019{
25020
25021 /* By Ruediger Kuhlmann. */
25022 return fork () < 0;
25023
25024 ;
25025 return 0;
25026}
25027_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025028if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025029 ac_cv_func_fork_works=yes
25030else
cristy8b350f62009-11-15 23:12:43 +000025031 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000025032fi
cristy8b350f62009-11-15 23:12:43 +000025033rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25034 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025035fi
25036
cristy3ed852e2009-09-05 21:47:34 +000025037fi
cristy8b350f62009-11-15 23:12:43 +000025038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000025039$as_echo "$ac_cv_func_fork_works" >&6; }
25040
25041else
25042 ac_cv_func_fork_works=$ac_cv_func_fork
25043fi
25044if test "x$ac_cv_func_fork_works" = xcross; then
25045 case $host in
25046 *-*-amigaos* | *-*-msdosdjgpp*)
25047 # Override, as these systems have only a dummy fork() stub
25048 ac_cv_func_fork_works=no
25049 ;;
25050 *)
25051 ac_cv_func_fork_works=yes
25052 ;;
25053 esac
cristy8b350f62009-11-15 23:12:43 +000025054 { $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 +000025055$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
25056fi
25057ac_cv_func_vfork_works=$ac_cv_func_vfork
25058if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000025059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000025060$as_echo_n "checking for working vfork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025061if ${ac_cv_func_vfork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025062 $as_echo_n "(cached) " >&6
25063else
cristy8b350f62009-11-15 23:12:43 +000025064 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025065 ac_cv_func_vfork_works=cross
25066else
cristy8b350f62009-11-15 23:12:43 +000025067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025068/* end confdefs.h. */
25069/* Thanks to Paul Eggert for this test. */
25070$ac_includes_default
25071#include <sys/wait.h>
25072#ifdef HAVE_VFORK_H
25073# include <vfork.h>
25074#endif
25075/* On some sparc systems, changes by the child to local and incoming
25076 argument registers are propagated back to the parent. The compiler
25077 is told about this with #include <vfork.h>, but some compilers
25078 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
25079 static variable whose address is put into a register that is
25080 clobbered by the vfork. */
25081static void
25082#ifdef __cplusplus
25083sparc_address_test (int arg)
25084# else
25085sparc_address_test (arg) int arg;
25086#endif
25087{
25088 static pid_t child;
25089 if (!child) {
25090 child = vfork ();
25091 if (child < 0) {
25092 perror ("vfork");
25093 _exit(2);
25094 }
25095 if (!child) {
25096 arg = getpid();
25097 write(-1, "", 0);
25098 _exit (arg);
25099 }
25100 }
25101}
25102
25103int
25104main ()
25105{
25106 pid_t parent = getpid ();
25107 pid_t child;
25108
25109 sparc_address_test (0);
25110
25111 child = vfork ();
25112
25113 if (child == 0) {
25114 /* Here is another test for sparc vfork register problems. This
25115 test uses lots of local variables, at least as many local
25116 variables as main has allocated so far including compiler
25117 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
25118 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
25119 reuse the register of parent for one of the local variables,
25120 since it will think that parent can't possibly be used any more
25121 in this routine. Assigning to the local variable will thus
25122 munge parent in the parent process. */
25123 pid_t
25124 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
25125 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
25126 /* Convince the compiler that p..p7 are live; otherwise, it might
25127 use the same hardware register for all 8 local variables. */
25128 if (p != p1 || p != p2 || p != p3 || p != p4
25129 || p != p5 || p != p6 || p != p7)
25130 _exit(1);
25131
25132 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
25133 from child file descriptors. If the child closes a descriptor
25134 before it execs or exits, this munges the parent's descriptor
25135 as well. Test for this by closing stdout in the child. */
25136 _exit(close(fileno(stdout)) != 0);
25137 } else {
25138 int status;
25139 struct stat st;
25140
25141 while (wait(&status) != child)
25142 ;
25143 return (
25144 /* Was there some problem with vforking? */
25145 child < 0
25146
25147 /* Did the child fail? (This shouldn't happen.) */
25148 || status
25149
25150 /* Did the vfork/compiler bug occur? */
25151 || parent != getpid()
25152
25153 /* Did the file descriptor bug occur? */
25154 || fstat(fileno(stdout), &st) != 0
25155 );
25156 }
25157}
25158_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025159if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025160 ac_cv_func_vfork_works=yes
25161else
cristy8b350f62009-11-15 23:12:43 +000025162 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000025163fi
cristy8b350f62009-11-15 23:12:43 +000025164rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25165 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025166fi
25167
cristy3ed852e2009-09-05 21:47:34 +000025168fi
cristy8b350f62009-11-15 23:12:43 +000025169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000025170$as_echo "$ac_cv_func_vfork_works" >&6; }
25171
25172fi;
25173if test "x$ac_cv_func_fork_works" = xcross; then
25174 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000025175 { $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 +000025176$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
25177fi
25178
25179if test "x$ac_cv_func_vfork_works" = xyes; then
25180
cristy8b350f62009-11-15 23:12:43 +000025181$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025182
25183else
25184
cristy8b350f62009-11-15 23:12:43 +000025185$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025186
25187fi
25188if test "x$ac_cv_func_fork_works" = xyes; then
25189
cristy8b350f62009-11-15 23:12:43 +000025190$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025191
25192fi
25193
cristy8b350f62009-11-15 23:12:43 +000025194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025195$as_echo_n "checking for working memcmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025196if ${ac_cv_func_memcmp_working+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025197 $as_echo_n "(cached) " >&6
25198else
cristy8b350f62009-11-15 23:12:43 +000025199 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025200 ac_cv_func_memcmp_working=no
25201else
cristy8b350f62009-11-15 23:12:43 +000025202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025203/* end confdefs.h. */
25204$ac_includes_default
25205int
25206main ()
25207{
25208
25209 /* Some versions of memcmp are not 8-bit clean. */
25210 char c0 = '\100', c1 = '\200', c2 = '\201';
25211 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
25212 return 1;
25213
25214 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
25215 or more and with at least one buffer not starting on a 4-byte boundary.
25216 William Lewis provided this test program. */
25217 {
25218 char foo[21];
25219 char bar[21];
25220 int i;
25221 for (i = 0; i < 4; i++)
25222 {
25223 char *a = foo + i;
25224 char *b = bar + i;
25225 strcpy (a, "--------01111111");
25226 strcpy (b, "--------10000000");
25227 if (memcmp (a, b, 16) >= 0)
25228 return 1;
25229 }
25230 return 0;
25231 }
25232
25233 ;
25234 return 0;
25235}
25236_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025237if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025238 ac_cv_func_memcmp_working=yes
25239else
cristy8b350f62009-11-15 23:12:43 +000025240 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000025241fi
cristy8b350f62009-11-15 23:12:43 +000025242rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25243 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025244fi
25245
cristy3ed852e2009-09-05 21:47:34 +000025246fi
cristy8b350f62009-11-15 23:12:43 +000025247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000025248$as_echo "$ac_cv_func_memcmp_working" >&6; }
25249test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
25250 *" memcmp.$ac_objext "* ) ;;
25251 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
25252 ;;
25253esac
25254
25255
cristy3ed852e2009-09-05 21:47:34 +000025256for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000025257do :
25258 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25259ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000025260if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000025261 cat >>confdefs.h <<_ACEOF
25262#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25263_ACEOF
25264
25265fi
25266
25267done
25268
cristy8b350f62009-11-15 23:12:43 +000025269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000025270$as_echo_n "checking types of arguments for select... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025271if ${ac_cv_func_select_args+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025272 $as_echo_n "(cached) " >&6
25273else
25274 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
25275 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
25276 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000025277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025278/* end confdefs.h. */
25279$ac_includes_default
25280#ifdef HAVE_SYS_SELECT_H
25281# include <sys/select.h>
25282#endif
25283#ifdef HAVE_SYS_SOCKET_H
25284# include <sys/socket.h>
25285#endif
25286
25287int
25288main ()
25289{
25290extern int select ($ac_arg1,
25291 $ac_arg234, $ac_arg234, $ac_arg234,
25292 $ac_arg5);
25293 ;
25294 return 0;
25295}
25296_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025297if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025298 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000025299fi
cristy3ed852e2009-09-05 21:47:34 +000025300rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25301 done
25302 done
25303done
25304# Provide a safe default value.
cristyda16f162011-02-19 23:52:17 +000025305: "${ac_cv_func_select_args=int,int *,struct timeval *}"
cristy3ed852e2009-09-05 21:47:34 +000025306
25307fi
cristy8b350f62009-11-15 23:12:43 +000025308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000025309$as_echo "$ac_cv_func_select_args" >&6; }
25310ac_save_IFS=$IFS; IFS=','
25311set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
25312IFS=$ac_save_IFS
25313shift
25314
25315cat >>confdefs.h <<_ACEOF
25316#define SELECT_TYPE_ARG1 $1
25317_ACEOF
25318
25319
25320cat >>confdefs.h <<_ACEOF
25321#define SELECT_TYPE_ARG234 ($2)
25322_ACEOF
25323
25324
25325cat >>confdefs.h <<_ACEOF
25326#define SELECT_TYPE_ARG5 ($3)
25327_ACEOF
25328
25329rm -f conftest*
25330
cristyda16f162011-02-19 23:52:17 +000025331if ${ac_cv_func_setvbuf_reversed+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025332 $as_echo_n "(cached) " >&6
25333else
25334 ac_cv_func_setvbuf_reversed=no
25335fi
25336
25337
cristy8b350f62009-11-15 23:12:43 +000025338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000025339$as_echo_n "checking return type of signal handlers... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025340if ${ac_cv_type_signal+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025341 $as_echo_n "(cached) " >&6
25342else
cristy8b350f62009-11-15 23:12:43 +000025343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025344/* end confdefs.h. */
25345#include <sys/types.h>
25346#include <signal.h>
25347
25348int
25349main ()
25350{
25351return *(signal (0, 0)) (0) == 1;
25352 ;
25353 return 0;
25354}
25355_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025356if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025357 ac_cv_type_signal=int
25358else
cristy8b350f62009-11-15 23:12:43 +000025359 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000025360fi
cristy3ed852e2009-09-05 21:47:34 +000025361rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25362fi
cristy8b350f62009-11-15 23:12:43 +000025363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000025364$as_echo "$ac_cv_type_signal" >&6; }
25365
25366cat >>confdefs.h <<_ACEOF
25367#define RETSIGTYPE $ac_cv_type_signal
25368_ACEOF
25369
25370
cristy8b350f62009-11-15 23:12:43 +000025371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000025372$as_echo_n "checking for working strtod... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025373if ${ac_cv_func_strtod+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025374 $as_echo_n "(cached) " >&6
25375else
cristy8b350f62009-11-15 23:12:43 +000025376 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025377 ac_cv_func_strtod=no
25378else
cristy8b350f62009-11-15 23:12:43 +000025379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025380/* end confdefs.h. */
25381
25382$ac_includes_default
25383#ifndef strtod
25384double strtod ();
25385#endif
25386int
25387main()
25388{
25389 {
25390 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
25391 char *string = " +69";
25392 char *term;
25393 double value;
25394 value = strtod (string, &term);
25395 if (value != 69 || term != (string + 4))
25396 return 1;
25397 }
25398
25399 {
25400 /* Under Solaris 2.4, strtod returns the wrong value for the
25401 terminating character under some conditions. */
25402 char *string = "NaN";
25403 char *term;
25404 strtod (string, &term);
25405 if (term != string && *(term - 1) == 0)
25406 return 1;
25407 }
25408 return 0;
25409}
25410
25411_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025412if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025413 ac_cv_func_strtod=yes
25414else
cristy8b350f62009-11-15 23:12:43 +000025415 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000025416fi
cristy8b350f62009-11-15 23:12:43 +000025417rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25418 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025419fi
25420
cristy3ed852e2009-09-05 21:47:34 +000025421fi
cristy8b350f62009-11-15 23:12:43 +000025422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000025423$as_echo "$ac_cv_func_strtod" >&6; }
25424if test $ac_cv_func_strtod = no; then
25425 case " $LIBOBJS " in
25426 *" strtod.$ac_objext "* ) ;;
25427 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
25428 ;;
25429esac
25430
cristy8b350f62009-11-15 23:12:43 +000025431ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
cristyda16f162011-02-19 23:52:17 +000025432if test "x$ac_cv_func_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025433
cristy3ed852e2009-09-05 21:47:34 +000025434fi
25435
cristy3ed852e2009-09-05 21:47:34 +000025436if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000025437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000025438$as_echo_n "checking for pow in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025439if ${ac_cv_lib_m_pow+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025440 $as_echo_n "(cached) " >&6
25441else
25442 ac_check_lib_save_LIBS=$LIBS
25443LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025444cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025445/* end confdefs.h. */
25446
25447/* Override any GCC internal prototype to avoid an error.
25448 Use char because int might match the return type of a GCC
25449 builtin and then its argument prototype would still apply. */
25450#ifdef __cplusplus
25451extern "C"
25452#endif
25453char pow ();
25454int
25455main ()
25456{
25457return pow ();
25458 ;
25459 return 0;
25460}
25461_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025462if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025463 ac_cv_lib_m_pow=yes
25464else
cristy8b350f62009-11-15 23:12:43 +000025465 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000025466fi
cristy8b350f62009-11-15 23:12:43 +000025467rm -f core conftest.err conftest.$ac_objext \
25468 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025469LIBS=$ac_check_lib_save_LIBS
25470fi
cristy8b350f62009-11-15 23:12:43 +000025471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000025472$as_echo "$ac_cv_lib_m_pow" >&6; }
cristyda16f162011-02-19 23:52:17 +000025473if test "x$ac_cv_lib_m_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025474 POW_LIB=-lm
25475else
cristy8b350f62009-11-15 23:12:43 +000025476 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000025477$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
25478fi
25479
25480fi
25481
25482fi
25483
cristy7d4a1d62011-10-13 15:54:12 +000025484ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
25485if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
25486 ac_have_decl=1
25487else
25488 ac_have_decl=0
25489fi
25490
25491cat >>confdefs.h <<_ACEOF
25492#define HAVE_DECL_STRERROR_R $ac_have_decl
25493_ACEOF
25494
25495for ac_func in strerror_r
25496do :
25497 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
25498if test "x$ac_cv_func_strerror_r" = xyes; then :
25499 cat >>confdefs.h <<_ACEOF
25500#define HAVE_STRERROR_R 1
25501_ACEOF
25502
25503fi
25504done
25505
25506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
25507$as_echo_n "checking whether strerror_r returns char *... " >&6; }
25508if ${ac_cv_func_strerror_r_char_p+:} false; then :
25509 $as_echo_n "(cached) " >&6
25510else
25511
25512 ac_cv_func_strerror_r_char_p=no
25513 if test $ac_cv_have_decl_strerror_r = yes; then
25514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25515/* end confdefs.h. */
25516$ac_includes_default
25517int
25518main ()
25519{
25520
25521 char buf[100];
25522 char x = *strerror_r (0, buf, sizeof buf);
25523 char *p = strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000025524 return !p || x;
cristy7d4a1d62011-10-13 15:54:12 +000025525
25526 ;
25527 return 0;
25528}
25529_ACEOF
25530if ac_fn_c_try_compile "$LINENO"; then :
25531 ac_cv_func_strerror_r_char_p=yes
25532fi
25533rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25534 else
25535 # strerror_r is not declared. Choose between
25536 # systems that have relatively inaccessible declarations for the
25537 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
25538 # former has a strerror_r that returns char*, while the latter
25539 # has a strerror_r that returns `int'.
25540 # This test should segfault on the DEC system.
25541 if test "$cross_compiling" = yes; then :
25542 :
25543else
25544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25545/* end confdefs.h. */
25546$ac_includes_default
25547 extern char *strerror_r ();
25548int
25549main ()
25550{
25551char buf[100];
25552 char x = *strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000025553 return ! isalpha (x);
cristy7d4a1d62011-10-13 15:54:12 +000025554 ;
25555 return 0;
25556}
25557_ACEOF
25558if ac_fn_c_try_run "$LINENO"; then :
25559 ac_cv_func_strerror_r_char_p=yes
25560fi
25561rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25562 conftest.$ac_objext conftest.beam conftest.$ac_ext
25563fi
25564
25565 fi
25566
25567fi
25568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
25569$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
25570if test $ac_cv_func_strerror_r_char_p = yes; then
25571
25572$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
25573
25574fi
25575
cristy3ed852e2009-09-05 21:47:34 +000025576for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000025577do :
25578 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
cristyda16f162011-02-19 23:52:17 +000025579if test "x$ac_cv_func_vprintf" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025580 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025581#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000025582_ACEOF
25583
cristy8b350f62009-11-15 23:12:43 +000025584ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
cristyda16f162011-02-19 23:52:17 +000025585if test "x$ac_cv_func__doprnt" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025586
cristy8b350f62009-11-15 23:12:43 +000025587$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025588
25589fi
25590
25591fi
25592done
25593
25594
25595
cristy161b9262010-03-20 19:34:32 +000025596#
25597# Find math library
25598#
25599MATH_LIBS=''
25600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
25601$as_echo_n "checking for sqrt in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025602if ${ac_cv_lib_m_sqrt+:} false; then :
cristy161b9262010-03-20 19:34:32 +000025603 $as_echo_n "(cached) " >&6
25604else
25605 ac_check_lib_save_LIBS=$LIBS
25606LIBS="-lm $LIBS"
25607cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25608/* end confdefs.h. */
25609
25610/* Override any GCC internal prototype to avoid an error.
25611 Use char because int might match the return type of a GCC
25612 builtin and then its argument prototype would still apply. */
25613#ifdef __cplusplus
25614extern "C"
25615#endif
25616char sqrt ();
25617int
25618main ()
25619{
25620return sqrt ();
25621 ;
25622 return 0;
25623}
25624_ACEOF
25625if ac_fn_c_try_link "$LINENO"; then :
25626 ac_cv_lib_m_sqrt=yes
25627else
25628 ac_cv_lib_m_sqrt=no
25629fi
25630rm -f core conftest.err conftest.$ac_objext \
25631 conftest$ac_exeext conftest.$ac_ext
25632LIBS=$ac_check_lib_save_LIBS
25633fi
25634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
25635$as_echo "$ac_cv_lib_m_sqrt" >&6; }
cristyda16f162011-02-19 23:52:17 +000025636if test "x$ac_cv_lib_m_sqrt" = xyes; then :
cristy161b9262010-03-20 19:34:32 +000025637 MATH_LIBS="-lm"
25638fi
25639
25640LIBS="$MATH_LIBS $LIBS"
25641
25642
cristy85572162013-01-04 19:19:32 +000025643#
25644# Find socket library
25645#
cristy8a5d7f42013-01-06 15:24:33 +000025646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
25647$as_echo_n "checking for library containing gethostbyname... " >&6; }
25648if ${ac_cv_search_gethostbyname+:} false; then :
25649 $as_echo_n "(cached) " >&6
25650else
25651 ac_func_search_save_LIBS=$LIBS
25652cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25653/* end confdefs.h. */
25654
25655/* Override any GCC internal prototype to avoid an error.
25656 Use char because int might match the return type of a GCC
25657 builtin and then its argument prototype would still apply. */
25658#ifdef __cplusplus
25659extern "C"
25660#endif
25661char gethostbyname ();
25662int
25663main ()
25664{
25665return gethostbyname ();
25666 ;
25667 return 0;
25668}
25669_ACEOF
25670for ac_lib in '' resolv nsl; do
25671 if test -z "$ac_lib"; then
25672 ac_res="none required"
25673 else
25674 ac_res=-l$ac_lib
25675 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25676 fi
25677 if ac_fn_c_try_link "$LINENO"; then :
25678 ac_cv_search_gethostbyname=$ac_res
25679fi
25680rm -f core conftest.err conftest.$ac_objext \
25681 conftest$ac_exeext
25682 if ${ac_cv_search_gethostbyname+:} false; then :
25683 break
25684fi
25685done
25686if ${ac_cv_search_gethostbyname+:} false; then :
25687
25688else
25689 ac_cv_search_gethostbyname=no
25690fi
25691rm conftest.$ac_ext
25692LIBS=$ac_func_search_save_LIBS
25693fi
25694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
25695$as_echo "$ac_cv_search_gethostbyname" >&6; }
25696ac_res=$ac_cv_search_gethostbyname
25697if test "$ac_res" != no; then :
25698 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25699
25700fi
25701
cristy85572162013-01-04 19:19:32 +000025702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
25703$as_echo_n "checking for library containing socket... " >&6; }
25704if ${ac_cv_search_socket+:} false; then :
25705 $as_echo_n "(cached) " >&6
25706else
25707 ac_func_search_save_LIBS=$LIBS
25708cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25709/* end confdefs.h. */
25710
25711/* Override any GCC internal prototype to avoid an error.
25712 Use char because int might match the return type of a GCC
25713 builtin and then its argument prototype would still apply. */
25714#ifdef __cplusplus
25715extern "C"
25716#endif
25717char socket ();
25718int
25719main ()
25720{
25721return socket ();
25722 ;
25723 return 0;
25724}
25725_ACEOF
25726for ac_lib in '' socket; do
25727 if test -z "$ac_lib"; then
25728 ac_res="none required"
25729 else
25730 ac_res=-l$ac_lib
25731 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25732 fi
25733 if ac_fn_c_try_link "$LINENO"; then :
25734 ac_cv_search_socket=$ac_res
25735fi
25736rm -f core conftest.err conftest.$ac_objext \
25737 conftest$ac_exeext
25738 if ${ac_cv_search_socket+:} false; then :
25739 break
25740fi
25741done
25742if ${ac_cv_search_socket+:} false; then :
25743
25744else
25745 ac_cv_search_socket=no
25746fi
25747rm conftest.$ac_ext
25748LIBS=$ac_func_search_save_LIBS
25749fi
25750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
25751$as_echo "$ac_cv_search_socket" >&6; }
25752ac_res=$ac_cv_search_socket
25753if test "$ac_res" != no; then :
25754 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25755
cristy85572162013-01-04 19:19:32 +000025756
cristy8a5d7f42013-01-06 15:24:33 +000025757$as_echo "#define HAVE_SOCKET 1" >>confdefs.h
cristy85572162013-01-04 19:19:32 +000025758
cristy03f187e2013-01-24 00:22:19 +000025759 MAGICK_FEATURES="DPC $MAGICK_FEATURES"
cristy85572162013-01-04 19:19:32 +000025760
25761fi
25762
25763
cristya29f2b82015-05-30 14:10:30 +000025764for 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 sendfile 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 +000025765do :
25766 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25767ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025768if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000025769 cat >>confdefs.h <<_ACEOF
25770#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25771_ACEOF
25772
25773fi
25774done
25775
25776
cristye43a45e2009-09-28 14:49:00 +000025777#
25778# Check for clock_gettime().
25779#
cristy8b350f62009-11-15 23:12:43 +000025780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000025781$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025782if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000025783 $as_echo_n "(cached) " >&6
25784else
25785 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000025786cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000025787/* end confdefs.h. */
25788
25789/* Override any GCC internal prototype to avoid an error.
25790 Use char because int might match the return type of a GCC
25791 builtin and then its argument prototype would still apply. */
25792#ifdef __cplusplus
25793extern "C"
25794#endif
25795char clock_gettime ();
25796int
25797main ()
25798{
25799return clock_gettime ();
25800 ;
25801 return 0;
25802}
25803_ACEOF
25804for ac_lib in '' rt; do
25805 if test -z "$ac_lib"; then
25806 ac_res="none required"
25807 else
25808 ac_res=-l$ac_lib
25809 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25810 fi
cristy8b350f62009-11-15 23:12:43 +000025811 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025812 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000025813fi
cristy8b350f62009-11-15 23:12:43 +000025814rm -f core conftest.err conftest.$ac_objext \
25815 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000025816 if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000025817 break
25818fi
25819done
cristyda16f162011-02-19 23:52:17 +000025820if ${ac_cv_search_clock_gettime+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000025821
cristye43a45e2009-09-28 14:49:00 +000025822else
25823 ac_cv_search_clock_gettime=no
25824fi
25825rm conftest.$ac_ext
25826LIBS=$ac_func_search_save_LIBS
25827fi
cristy8b350f62009-11-15 23:12:43 +000025828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000025829$as_echo "$ac_cv_search_clock_gettime" >&6; }
25830ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000025831if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000025832 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25833
25834
cristy8b350f62009-11-15 23:12:43 +000025835$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025836
cristy8b350f62009-11-15 23:12:43 +000025837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000025838$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000025840/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000025841
25842 #include <time.h>
cristye43a45e2009-09-28 14:49:00 +000025843int
25844main ()
25845{
25846clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000025847 ;
25848 return 0;
25849}
25850_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025851if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025852
cristyad38abe2012-12-23 23:03:21 +000025853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25854$as_echo "yes" >&6; }
cristye43a45e2009-09-28 14:49:00 +000025855
cristy8b350f62009-11-15 23:12:43 +000025856$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025857
25858
25859else
cristyad38abe2012-12-23 23:03:21 +000025860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25861$as_echo "no" >&6; }
cristye43a45e2009-09-28 14:49:00 +000025862
25863fi
cristye43a45e2009-09-28 14:49:00 +000025864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25865
25866else
25867
cristy8b350f62009-11-15 23:12:43 +000025868 for ac_func in gettimeofday ftime
25869do :
25870 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25871ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025872if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristye43a45e2009-09-28 14:49:00 +000025873 cat >>confdefs.h <<_ACEOF
25874#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25875_ACEOF
25876 break
25877fi
25878done
25879
25880
25881
25882fi
25883
25884
cristy3ed852e2009-09-05 21:47:34 +000025885########
25886#
25887# Check for function prototypes
25888#
25889########
25890
cristy8b350f62009-11-15 23:12:43 +000025891ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000025892#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025893"
cristyda16f162011-02-19 23:52:17 +000025894if test "x$ac_cv_have_decl_pread" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025895 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025896else
cristy8b350f62009-11-15 23:12:43 +000025897 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025898fi
25899
cristy3ed852e2009-09-05 21:47:34 +000025900cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025901#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025902_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025903ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000025904#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025905"
cristyda16f162011-02-19 23:52:17 +000025906if test "x$ac_cv_have_decl_pwrite" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025907 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025908else
cristy8b350f62009-11-15 23:12:43 +000025909 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025910fi
25911
cristy3ed852e2009-09-05 21:47:34 +000025912cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025913#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025914_ACEOF
25915
25916
cristy8b350f62009-11-15 23:12:43 +000025917ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000025918#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000025919"
cristyda16f162011-02-19 23:52:17 +000025920if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025921 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025922else
cristy8b350f62009-11-15 23:12:43 +000025923 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025924fi
25925
cristy3ed852e2009-09-05 21:47:34 +000025926cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025927#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025928_ACEOF
25929
25930
cristy8b350f62009-11-15 23:12:43 +000025931ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000025932#include <stdio.h>
25933#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000025934"
cristyda16f162011-02-19 23:52:17 +000025935if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025936 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025937else
cristy8b350f62009-11-15 23:12:43 +000025938 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025939fi
25940
cristy3ed852e2009-09-05 21:47:34 +000025941cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025942#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025943_ACEOF
25944
25945
cristy3ed852e2009-09-05 21:47:34 +000025946########
25947#
25948# C++ Support Tests (For Magick++)
25949#
25950########
25951have_magick_plus_plus='no'
25952if test "$with_magick_plus_plus" = 'yes'; then
25953 OLIBS="$LIBS"
25954 LIBS=''
25955 ac_ext=cpp
25956ac_cpp='$CXXCPP $CPPFLAGS'
25957ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25958ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25959ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25960
25961
25962 # Full set of headers used...
25963 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
25964 # functional iomanip iosfwd iostream iterator list string strstream utility
25965 ac_ext=cpp
25966ac_cpp='$CXXCPP $CPPFLAGS'
25967ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25968ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25969ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25970
25971 ac_ext=cpp
25972ac_cpp='$CXXCPP $CPPFLAGS'
25973ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25974ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25975ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25976if test -z "$CXX"; then
25977 if test -n "$CCC"; then
25978 CXX=$CCC
25979 else
25980 if test -n "$ac_tool_prefix"; then
25981 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25982 do
25983 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
25984set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025986$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025987if ${ac_cv_prog_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025988 $as_echo_n "(cached) " >&6
25989else
25990 if test -n "$CXX"; then
25991 ac_cv_prog_CXX="$CXX" # Let the user override the test.
25992else
25993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25994for as_dir in $PATH
25995do
25996 IFS=$as_save_IFS
25997 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025998 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000025999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000026000 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000026001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000026002 break 2
26003 fi
26004done
cristy8b350f62009-11-15 23:12:43 +000026005 done
cristy3ed852e2009-09-05 21:47:34 +000026006IFS=$as_save_IFS
26007
26008fi
26009fi
26010CXX=$ac_cv_prog_CXX
26011if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000026012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000026013$as_echo "$CXX" >&6; }
26014else
cristy8b350f62009-11-15 23:12:43 +000026015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026016$as_echo "no" >&6; }
26017fi
26018
26019
26020 test -n "$CXX" && break
26021 done
26022fi
26023if test -z "$CXX"; then
26024 ac_ct_CXX=$CXX
26025 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
26026do
26027 # Extract the first word of "$ac_prog", so it can be a program name with args.
26028set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000026029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000026030$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026031if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026032 $as_echo_n "(cached) " >&6
26033else
26034 if test -n "$ac_ct_CXX"; then
26035 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
26036else
26037as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26038for as_dir in $PATH
26039do
26040 IFS=$as_save_IFS
26041 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000026042 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000026043 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000026044 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000026045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000026046 break 2
26047 fi
26048done
cristy8b350f62009-11-15 23:12:43 +000026049 done
cristy3ed852e2009-09-05 21:47:34 +000026050IFS=$as_save_IFS
26051
26052fi
26053fi
26054ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
26055if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000026056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000026057$as_echo "$ac_ct_CXX" >&6; }
26058else
cristy8b350f62009-11-15 23:12:43 +000026059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026060$as_echo "no" >&6; }
26061fi
26062
26063
26064 test -n "$ac_ct_CXX" && break
26065done
26066
26067 if test "x$ac_ct_CXX" = x; then
26068 CXX="g++"
26069 else
26070 case $cross_compiling:$ac_tool_warned in
26071yes:)
cristy8b350f62009-11-15 23:12:43 +000026072{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000026073$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26074ac_tool_warned=yes ;;
26075esac
26076 CXX=$ac_ct_CXX
26077 fi
26078fi
26079
26080 fi
26081fi
26082# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000026083$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000026084set X $ac_compile
26085ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000026086for ac_option in --version -v -V -qversion; do
26087 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000026088case "(($ac_try" in
26089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26090 *) ac_try_echo=$ac_try;;
26091esac
cristy8b350f62009-11-15 23:12:43 +000026092eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
26093$as_echo "$ac_try_echo"; } >&5
26094 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000026095 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026096 if test -s conftest.err; then
26097 sed '10a\
26098... rest of stderr output deleted ...
26099 10q' conftest.err >conftest.er1
26100 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000026101 fi
cristycd4c5312009-11-22 01:19:08 +000026102 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000026103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26104 test $ac_status = 0; }
26105done
cristy3ed852e2009-09-05 21:47:34 +000026106
cristy8b350f62009-11-15 23:12:43 +000026107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000026108$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026109if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026110 $as_echo_n "(cached) " >&6
26111else
cristy8b350f62009-11-15 23:12:43 +000026112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026113/* end confdefs.h. */
26114
26115int
26116main ()
26117{
26118#ifndef __GNUC__
26119 choke me
26120#endif
26121
26122 ;
26123 return 0;
26124}
26125_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026126if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026127 ac_compiler_gnu=yes
26128else
cristy8b350f62009-11-15 23:12:43 +000026129 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000026130fi
cristy3ed852e2009-09-05 21:47:34 +000026131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26132ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
26133
26134fi
cristy8b350f62009-11-15 23:12:43 +000026135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000026136$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
26137if test $ac_compiler_gnu = yes; then
26138 GXX=yes
26139else
26140 GXX=
26141fi
26142ac_test_CXXFLAGS=${CXXFLAGS+set}
26143ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000026144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000026145$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026146if ${ac_cv_prog_cxx_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026147 $as_echo_n "(cached) " >&6
26148else
26149 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
26150 ac_cxx_werror_flag=yes
26151 ac_cv_prog_cxx_g=no
26152 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000026153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026154/* end confdefs.h. */
26155
26156int
26157main ()
26158{
26159
26160 ;
26161 return 0;
26162}
26163_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026164if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026165 ac_cv_prog_cxx_g=yes
26166else
cristy8b350f62009-11-15 23:12:43 +000026167 CXXFLAGS=""
26168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026169/* end confdefs.h. */
26170
26171int
26172main ()
26173{
26174
26175 ;
26176 return 0;
26177}
26178_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026179if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026180
cristy8b350f62009-11-15 23:12:43 +000026181else
26182 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000026183 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000026184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026185/* end confdefs.h. */
26186
26187int
26188main ()
26189{
26190
26191 ;
26192 return 0;
26193}
26194_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026195if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026196 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000026197fi
cristy3ed852e2009-09-05 21:47:34 +000026198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26199fi
cristy3ed852e2009-09-05 21:47:34 +000026200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26201fi
cristy3ed852e2009-09-05 21:47:34 +000026202rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26203 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
26204fi
cristy8b350f62009-11-15 23:12:43 +000026205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000026206$as_echo "$ac_cv_prog_cxx_g" >&6; }
26207if test "$ac_test_CXXFLAGS" = set; then
26208 CXXFLAGS=$ac_save_CXXFLAGS
26209elif test $ac_cv_prog_cxx_g = yes; then
26210 if test "$GXX" = yes; then
26211 CXXFLAGS="-g -O2"
26212 else
26213 CXXFLAGS="-g"
26214 fi
26215else
26216 if test "$GXX" = yes; then
26217 CXXFLAGS="-O2"
26218 else
26219 CXXFLAGS=
26220 fi
26221fi
26222ac_ext=cpp
26223ac_cpp='$CXXCPP $CPPFLAGS'
26224ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26225ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26226ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26227
cristy73bd4a52010-10-05 11:24:23 +000026228depcc="$CXX" am_compiler_list=
26229
26230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
26231$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026232if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026233 $as_echo_n "(cached) " >&6
26234else
26235 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
26236 # We make a subdir and do the tests there. Otherwise we can end up
26237 # making bogus files that we don't know about and never remove. For
26238 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +000026239 # making a dummy file named 'D' -- because '-MD' means "put the output
26240 # in D".
cristy7247bba2012-02-05 16:37:27 +000026241 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +000026242 mkdir conftest.dir
26243 # Copy depcomp to subdir because otherwise we won't find it if we're
26244 # using a relative directory.
26245 cp "$am_depcomp" conftest.dir
26246 cd conftest.dir
26247 # We will build objects and dependencies in a subdirectory because
26248 # it helps to detect inapplicable dependency modes. For instance
26249 # both Tru64's cc and ICC support -MD to output dependencies as a
26250 # side effect of compilation, but ICC will put the dependencies in
26251 # the current directory while Tru64 will put them in the object
26252 # directory.
26253 mkdir sub
26254
26255 am_cv_CXX_dependencies_compiler_type=none
26256 if test "$am_compiler_list" = ""; then
26257 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
26258 fi
26259 am__universal=false
26260 case " $depcc " in #(
26261 *\ -arch\ *\ -arch\ *) am__universal=true ;;
26262 esac
26263
26264 for depmode in $am_compiler_list; do
26265 # Setup a source with many dependencies, because some compilers
26266 # like to wrap large dependency lists on column 80 (with \), and
26267 # we should not choose a depcomp mode which is confused by this.
26268 #
26269 # We need to recreate these files for each test, as the compiler may
26270 # overwrite some of them when testing with obscure command lines.
26271 # This happens at least with the AIX C compiler.
26272 : > sub/conftest.c
26273 for i in 1 2 3 4 5 6; do
26274 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +000026275 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
26276 # Solaris 10 /bin/sh.
26277 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +000026278 done
26279 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
26280
cristyc0890a62012-07-19 00:18:20 +000026281 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +000026282 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +000026283 # handle '-M -o', and we need to detect this. Also, some Intel
26284 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +000026285 am__obj=sub/conftest.${OBJEXT-o}
26286 am__minus_obj="-o $am__obj"
26287 case $depmode in
26288 gcc)
26289 # This depmode causes a compiler race in universal mode.
26290 test "$am__universal" = false || continue
26291 ;;
26292 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +000026293 # After this tag, mechanisms are not by side-effect, so they'll
26294 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +000026295 if test "x$enable_dependency_tracking" = xyes; then
26296 continue
26297 else
26298 break
26299 fi
26300 ;;
cristy7247bba2012-02-05 16:37:27 +000026301 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +000026302 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +000026303 # not run yet. These depmodes are late enough in the game, and
26304 # so weak that their functioning should not be impacted.
26305 am__obj=conftest.${OBJEXT-o}
26306 am__minus_obj=
26307 ;;
26308 none) break ;;
26309 esac
26310 if depmode=$depmode \
26311 source=sub/conftest.c object=$am__obj \
26312 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
26313 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
26314 >/dev/null 2>conftest.err &&
26315 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
26316 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
26317 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
26318 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
26319 # icc doesn't choke on unknown options, it will just issue warnings
26320 # or remarks (even with -Werror). So we grep stderr for any message
26321 # that says an option was ignored or not supported.
26322 # When given -MP, icc 7.0 and 7.1 complain thusly:
26323 # icc: Command line warning: ignoring option '-M'; no argument required
26324 # The diagnosis changed in icc 8.0:
26325 # icc: Command line remark: option '-MP' not supported
26326 if (grep 'ignoring option' conftest.err ||
26327 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
26328 am_cv_CXX_dependencies_compiler_type=$depmode
26329 break
26330 fi
26331 fi
26332 done
26333
26334 cd ..
26335 rm -rf conftest.dir
26336else
26337 am_cv_CXX_dependencies_compiler_type=none
26338fi
26339
26340fi
26341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
26342$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
26343CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
26344
26345 if
26346 test "x$enable_dependency_tracking" != xno \
26347 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
26348 am__fastdepCXX_TRUE=
26349 am__fastdepCXX_FALSE='#'
26350else
26351 am__fastdepCXX_TRUE='#'
26352 am__fastdepCXX_FALSE=
26353fi
26354
26355
cristy146497a2015-05-17 22:46:16 +000026356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
cristy73bd4a52010-10-05 11:24:23 +000026357$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026358if ${ax_cv_cxx_bool+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026359 $as_echo_n "(cached) " >&6
26360else
cristy146497a2015-05-17 22:46:16 +000026361 ac_ext=cpp
cristy73bd4a52010-10-05 11:24:23 +000026362ac_cpp='$CXXCPP $CPPFLAGS'
26363ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26364ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26365ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26366
cristy146497a2015-05-17 22:46:16 +000026367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000026368/* end confdefs.h. */
cristy146497a2015-05-17 22:46:16 +000026369 int f(int x){return 1;}
26370 int f(char x){return 1;}
26371 int f(bool x){return 1;}
cristy73bd4a52010-10-05 11:24:23 +000026372int
26373main ()
26374{
26375bool b = true; return f(b);
26376 ;
26377 return 0;
26378}
26379_ACEOF
26380if ac_fn_cxx_try_compile "$LINENO"; then :
26381 ax_cv_cxx_bool=yes
26382else
26383 ax_cv_cxx_bool=no
26384fi
26385rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy146497a2015-05-17 22:46:16 +000026386 ac_ext=cpp
cristy73bd4a52010-10-05 11:24:23 +000026387ac_cpp='$CXXCPP $CPPFLAGS'
26388ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26389ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26390ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26391
26392
26393fi
26394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
26395$as_echo "$ax_cv_cxx_bool" >&6; }
cristy146497a2015-05-17 22:46:16 +000026396 if test "X$ax_cv_cxx_bool" = Xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000026397
26398$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
26399
26400fi
26401
26402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
26403$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026404if ${ax_cv_cxx_namespaces+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026405 $as_echo_n "(cached) " >&6
26406else
cristy17491be2014-06-24 01:10:53 +000026407 ac_ext=cpp
cristy73bd4a52010-10-05 11:24:23 +000026408ac_cpp='$CXXCPP $CPPFLAGS'
26409ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26410ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26411ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26412
26413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26414/* end confdefs.h. */
26415namespace Outer { namespace Inner { int i = 0; }}
cristy17491be2014-06-24 01:10:53 +000026416 using namespace Outer::Inner; int foo(void) { return i;}
cristy73bd4a52010-10-05 11:24:23 +000026417_ACEOF
26418if ac_fn_cxx_try_compile "$LINENO"; then :
26419 ax_cv_cxx_namespaces=yes
26420else
26421 ax_cv_cxx_namespaces=no
26422fi
26423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26424 ac_ext=cpp
26425ac_cpp='$CXXCPP $CPPFLAGS'
26426ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26427ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26428ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26429
26430
26431fi
26432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
26433$as_echo "$ax_cv_cxx_namespaces" >&6; }
26434if test "$ax_cv_cxx_namespaces" = yes; then
26435
26436$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
26437
26438fi
26439
26440
26441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
26442$as_echo_n "checking if g++ supports namespace std... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026443if ${ax_cv_cxx_have_std_namespace+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026444 $as_echo_n "(cached) " >&6
26445else
26446
26447 ac_ext=cpp
26448ac_cpp='$CXXCPP $CPPFLAGS'
26449ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26450ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26451ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26452
26453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26454/* end confdefs.h. */
26455#include <iostream>
26456 std::istream& is = std::cin;
26457int
26458main ()
26459{
26460
26461 ;
26462 return 0;
26463}
26464_ACEOF
26465if ac_fn_cxx_try_compile "$LINENO"; then :
26466 ax_cv_cxx_have_std_namespace=yes
26467else
26468 ax_cv_cxx_have_std_namespace=no
26469fi
26470rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26471 ac_ext=cpp
26472ac_cpp='$CXXCPP $CPPFLAGS'
26473ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26474ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26475ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26476
26477
26478fi
26479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
26480$as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
26481 if test "$ax_cv_cxx_have_std_namespace" = yes; then
26482
26483$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
26484
26485 fi
26486
26487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
26488$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026489if ${ac_cv_cxx_have_std_libs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026490 $as_echo_n "(cached) " >&6
26491else
26492
26493
26494 ac_ext=cpp
26495ac_cpp='$CXXCPP $CPPFLAGS'
26496ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26497ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26498ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26499
26500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26501/* end confdefs.h. */
26502#include <iostream>
26503#include <map>
26504#include <iomanip>
26505#include <cmath>
26506#ifdef HAVE_NAMESPACES
26507using namespace std;
26508#endif
26509int
26510main ()
26511{
26512return 0;
26513 ;
26514 return 0;
26515}
26516_ACEOF
26517if ac_fn_cxx_try_compile "$LINENO"; then :
26518 ac_cv_cxx_have_std_libs=yes
26519else
26520 ac_cv_cxx_have_std_libs=no
26521fi
26522rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26523 ac_ext=cpp
26524ac_cpp='$CXXCPP $CPPFLAGS'
26525ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26526ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26527ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26528
26529
26530fi
26531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
26532$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
26533if test "$ac_cv_cxx_have_std_libs" = yes; then
26534
26535$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
26536
26537fi
26538
cristy3ed852e2009-09-05 21:47:34 +000026539
26540 OPENMP_CXXFLAGS=
26541 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000026542if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026543 enableval=$enable_openmp;
26544fi
26545
26546 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000026547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
26548$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026549if ${ac_cv_prog_cxx_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026550 $as_echo_n "(cached) " >&6
26551else
cristy8b350f62009-11-15 23:12:43 +000026552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26553/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000026554
26555#ifndef _OPENMP
26556 choke me
26557#endif
26558#include <omp.h>
26559int main () { return omp_get_num_threads (); }
26560
26561_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026562if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026563 ac_cv_prog_cxx_openmp='none needed'
26564else
cristy8b350f62009-11-15 23:12:43 +000026565 ac_cv_prog_cxx_openmp='unsupported'
cristy14fefe52012-05-21 00:59:18 +000026566 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
26567 -Popenmp --openmp; do
cristy3ed852e2009-09-05 21:47:34 +000026568 ac_save_CXXFLAGS=$CXXFLAGS
26569 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000026570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26571/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000026572
26573#ifndef _OPENMP
26574 choke me
26575#endif
26576#include <omp.h>
26577int main () { return omp_get_num_threads (); }
26578
26579_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026580if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026581 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000026582fi
cristy8b350f62009-11-15 23:12:43 +000026583rm -f core conftest.err conftest.$ac_objext \
26584 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026585 CXXFLAGS=$ac_save_CXXFLAGS
26586 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
26587 break
26588 fi
26589 done
26590fi
cristy8b350f62009-11-15 23:12:43 +000026591rm -f core conftest.err conftest.$ac_objext \
26592 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026593fi
cristy8b350f62009-11-15 23:12:43 +000026594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026595$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
26596 case $ac_cv_prog_cxx_openmp in #(
26597 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000026598 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000026599 *)
cristy8b350f62009-11-15 23:12:43 +000026600 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000026601 esac
26602 fi
26603
26604
26605 ac_ext=c
26606ac_cpp='$CPP $CPPFLAGS'
26607ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26608ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26609ac_compiler_gnu=$ac_cv_c_compiler_gnu
26610
26611
cristy8b350f62009-11-15 23:12:43 +000026612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000026613$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
26614 if \
cristy964cb7f2010-04-25 23:18:00 +000026615 test $ax_cv_cxx_bool = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000026616 test $ax_cv_cxx_namespaces = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000026617 test $ac_cv_cxx_have_std_libs = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000026618 test $ax_cv_cxx_have_std_namespace = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000026619 have_magick_plus_plus='yes'
26620 else
26621 have_magick_plus_plus='no (failed tests)'
26622 fi
cristyad38abe2012-12-23 23:03:21 +000026623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
26624$as_echo "$have_magick_plus_plus" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026625 LIBS="$OLIBS"
26626fi
cristy73bd4a52010-10-05 11:24:23 +000026627 if test "$have_magick_plus_plus" = 'yes'; then
26628 WITH_MAGICK_PLUS_PLUS_TRUE=
26629 WITH_MAGICK_PLUS_PLUS_FALSE='#'
26630else
26631 WITH_MAGICK_PLUS_PLUS_TRUE='#'
26632 WITH_MAGICK_PLUS_PLUS_FALSE=
26633fi
26634
cristy3ed852e2009-09-05 21:47:34 +000026635
26636# Only check for delegate libraries in subdirectories if requested.
26637if test "$enable_delegate_build" != 'no'; then
26638 # Check for delegate sub-directories and add -I & -L options as required.
26639 # This presumes that delegates are installed as detailed in the ImageMagick
26640 # README. If delegates are installed in a standard location where the
26641 # compiler will automatically find them then these options should not be
26642 # required.
26643
26644 #
26645 # Most delegates have includes in the same directory as the library, but not all...
26646 #
26647 # Includes
cristy834307f2015-01-25 00:43:41 +000026648 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 +000026649 if test -d "$builddir/$dir"; then
26650 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
26651 else
26652 if test -d "$srcdirfull/$dir"; then
26653 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
26654 fi
26655 fi
26656 done
26657
26658 # Libraries
cristy834307f2015-01-25 00:43:41 +000026659 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 +000026660 if test -d "$builddir/$dir/.libs"; then
26661 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
26662 else
26663 if test -d "$srcdirfull/$dir/.libs"; then
26664 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
26665 fi
26666 fi
26667 if test -d "$builddir/$dir"; then
26668 LDFLAGS="$LDFLAGS -L$builddir/$dir"
26669 else
26670 if test -d "$srcdirfull/$dir"; then
26671 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
26672 fi
26673 fi
26674 done
26675fi
26676
26677# Assume that delegate headers reside under same directory as ImageMagick
26678# installation prefix.
cristybdabdd62013-03-04 17:43:36 +000026679MAGICK_CPPFLAGS="-I$INCLUDE_DIR/${PACKAGE_NAME}-$MAGICK_MAJOR_VERSION $MAGICK_CPPFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000026680
26681#
26682# Find the X11 RGB database
26683#
cristy8b350f62009-11-15 23:12:43 +000026684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000026685$as_echo_n "checking for X11 configure files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026686if ${im_cv_x_configure+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026687 $as_echo_n "(cached) " >&6
26688else
26689 # Look for the header file in a standard set of common directories.
26690# Check X11 before X11Rn because it is often a symlink to the current release.
26691 for ac_dir in \
26692 /lib/usr/lib/X11 \
26693 /usr/X11/lib \
26694 /usr/X11R4/lib \
26695 /usr/X11R5/lib \
26696 /usr/X11R6/lib \
26697 /usr/X11R7/lib \
26698 /usr/X386/lib \
26699 /usr/XFree86/lib/X11 \
26700 /usr/athena/lib \
26701 /usr/lib \
26702 /usr/lib/X11 \
26703 /usr/lib/X11R4 \
26704 /usr/lib/X11R5 \
26705 /usr/lib/X11R6 \
26706 /usr/lib/X11R7 \
26707 /usr/local/X11/lib \
26708 /usr/local/X11R4/lib \
26709 /usr/local/X11R5/lib \
26710 /usr/local/X11R6/lib \
26711 /usr/local/lib \
26712 /usr/local/lib/X11 \
26713 /usr/local/lib/X11R4 \
26714 /usr/local/lib/X11R5 \
26715 /usr/local/lib/X11R6 \
26716 /usr/local/lib/X11R7 \
26717 /usr/local/x11r5/lib \
26718 /usr/lpp/Xamples/lib \
26719 /usr/openwin/lib \
26720 /usr/openwin/share/lib \
26721 /usr/unsupported/lib \
26722 /usr/x386/lib \
26723 ; do
26724 if test -f "$ac_dir/X11/rgb.txt"; then
26725 im_cv_x_configure="$ac_dir/X11/"
26726 break
26727 elif test -f "$ac_dir/rgb.txt"; then
26728 im_cv_x_configure="$ac_dir/"
26729 break
26730 fi
26731
26732 done
26733fi
cristy8b350f62009-11-15 23:12:43 +000026734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000026735$as_echo "$im_cv_x_configure" >&6; }
26736X11_CONFIGURE_PATH="$im_cv_x_configure"
26737case "${build_os}" in
26738 mingw* )
26739 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
26740 ;;
26741esac
26742
26743cat >>confdefs.h <<_ACEOF
26744#define X11_CONFIGURE_PATH "$X11ConfigurePath"
26745_ACEOF
26746
26747
26748#
26749# Find OpenMP library
26750#
26751GOMP_LIBS=''
26752if test "$enable_openmp" != 'no'; then
26753 if test "${GCC}" = "yes"; then
cristy18307f12011-12-30 01:20:16 +000026754 # Open64 (passes for GCC but uses different OpenMP implementation)
26755 if test "x$GOMP_LIBS" = x ; then
26756 if $CC --version 2>&1 | grep Open64 > /dev/null ; then
26757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for omp_get_num_procs in -lopenmp" >&5
26758$as_echo_n "checking for omp_get_num_procs in -lopenmp... " >&6; }
26759if ${ac_cv_lib_openmp_omp_get_num_procs+:} false; then :
26760 $as_echo_n "(cached) " >&6
26761else
26762 ac_check_lib_save_LIBS=$LIBS
26763LIBS="-lopenmp $LIBS"
26764cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26765/* end confdefs.h. */
26766
26767/* Override any GCC internal prototype to avoid an error.
26768 Use char because int might match the return type of a GCC
26769 builtin and then its argument prototype would still apply. */
26770#ifdef __cplusplus
26771extern "C"
26772#endif
26773char omp_get_num_procs ();
26774int
26775main ()
26776{
26777return omp_get_num_procs ();
26778 ;
26779 return 0;
26780}
26781_ACEOF
26782if ac_fn_c_try_link "$LINENO"; then :
26783 ac_cv_lib_openmp_omp_get_num_procs=yes
26784else
26785 ac_cv_lib_openmp_omp_get_num_procs=no
26786fi
26787rm -f core conftest.err conftest.$ac_objext \
26788 conftest$ac_exeext conftest.$ac_ext
26789LIBS=$ac_check_lib_save_LIBS
26790fi
26791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_openmp_omp_get_num_procs" >&5
26792$as_echo "$ac_cv_lib_openmp_omp_get_num_procs" >&6; }
26793if test "x$ac_cv_lib_openmp_omp_get_num_procs" = xyes; then :
26794 GOMP_LIBS="-lopenmp"
26795fi
26796
26797 fi
26798 fi
26799 # GCC
26800 if test "x$GOMP_LIBS" = x ; then
26801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026802$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026803if ${ac_cv_lib_gomp_GOMP_parallel_start+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026804 $as_echo_n "(cached) " >&6
26805else
26806 ac_check_lib_save_LIBS=$LIBS
26807LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026808cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026809/* end confdefs.h. */
26810
26811/* Override any GCC internal prototype to avoid an error.
26812 Use char because int might match the return type of a GCC
26813 builtin and then its argument prototype would still apply. */
26814#ifdef __cplusplus
26815extern "C"
26816#endif
26817char GOMP_parallel_start ();
26818int
26819main ()
26820{
26821return GOMP_parallel_start ();
26822 ;
26823 return 0;
26824}
26825_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026826if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026827 ac_cv_lib_gomp_GOMP_parallel_start=yes
26828else
cristy8b350f62009-11-15 23:12:43 +000026829 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000026830fi
cristy8b350f62009-11-15 23:12:43 +000026831rm -f core conftest.err conftest.$ac_objext \
26832 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026833LIBS=$ac_check_lib_save_LIBS
26834fi
cristy8b350f62009-11-15 23:12:43 +000026835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000026836$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristyda16f162011-02-19 23:52:17 +000026837if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026838 GOMP_LIBS="-lgomp"
26839fi
cristy18307f12011-12-30 01:20:16 +000026840
26841 fi
cristy3ed852e2009-09-05 21:47:34 +000026842 else
cristy18307f12011-12-30 01:20:16 +000026843 # Sun CC
26844 if test "x$GOMP_LIBS" = x ; then
26845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000026846$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026847if ${ac_cv_lib_mtsk_sunw_mp_register_warn+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026848 $as_echo_n "(cached) " >&6
26849else
26850 ac_check_lib_save_LIBS=$LIBS
26851LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026852cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026853/* end confdefs.h. */
26854
26855/* Override any GCC internal prototype to avoid an error.
26856 Use char because int might match the return type of a GCC
26857 builtin and then its argument prototype would still apply. */
26858#ifdef __cplusplus
26859extern "C"
26860#endif
26861char sunw_mp_register_warn ();
26862int
26863main ()
26864{
26865return sunw_mp_register_warn ();
26866 ;
26867 return 0;
26868}
26869_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026870if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026871 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
26872else
cristy8b350f62009-11-15 23:12:43 +000026873 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000026874fi
cristy8b350f62009-11-15 23:12:43 +000026875rm -f core conftest.err conftest.$ac_objext \
26876 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026877LIBS=$ac_check_lib_save_LIBS
26878fi
cristy8b350f62009-11-15 23:12:43 +000026879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000026880$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristyda16f162011-02-19 23:52:17 +000026881if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026882 GOMP_LIBS="-lmtsk"
26883fi
cristy18307f12011-12-30 01:20:16 +000026884
26885 fi
26886 # AIX xlc
26887 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000026888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026889$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026890if ${ac_cv_lib_xlsmp__xlsmpFlush+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026891 $as_echo_n "(cached) " >&6
26892else
26893 ac_check_lib_save_LIBS=$LIBS
26894LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026895cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026896/* end confdefs.h. */
26897
26898/* Override any GCC internal prototype to avoid an error.
26899 Use char because int might match the return type of a GCC
26900 builtin and then its argument prototype would still apply. */
26901#ifdef __cplusplus
26902extern "C"
26903#endif
26904char _xlsmpFlush ();
26905int
26906main ()
26907{
26908return _xlsmpFlush ();
26909 ;
26910 return 0;
26911}
26912_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026913if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026914 ac_cv_lib_xlsmp__xlsmpFlush=yes
26915else
cristy8b350f62009-11-15 23:12:43 +000026916 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000026917fi
cristy8b350f62009-11-15 23:12:43 +000026918rm -f core conftest.err conftest.$ac_objext \
26919 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026920LIBS=$ac_check_lib_save_LIBS
26921fi
cristy8b350f62009-11-15 23:12:43 +000026922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000026923$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristyda16f162011-02-19 23:52:17 +000026924if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026925 GOMP_LIBS="-lxlsmp"
26926fi
cristy18307f12011-12-30 01:20:16 +000026927
26928 fi
26929 # SGI IRIX 6.5 MIPSpro C/C++
26930 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000026931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026932$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026933if ${ac_cv_lib_mp_mp_destroy+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026934 $as_echo_n "(cached) " >&6
26935else
26936 ac_check_lib_save_LIBS=$LIBS
26937LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026938cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026939/* end confdefs.h. */
26940
26941/* Override any GCC internal prototype to avoid an error.
26942 Use char because int might match the return type of a GCC
26943 builtin and then its argument prototype would still apply. */
26944#ifdef __cplusplus
26945extern "C"
26946#endif
26947char mp_destroy ();
26948int
26949main ()
26950{
26951return mp_destroy ();
26952 ;
26953 return 0;
26954}
26955_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026956if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026957 ac_cv_lib_mp_mp_destroy=yes
26958else
cristy8b350f62009-11-15 23:12:43 +000026959 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000026960fi
cristy8b350f62009-11-15 23:12:43 +000026961rm -f core conftest.err conftest.$ac_objext \
26962 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026963LIBS=$ac_check_lib_save_LIBS
26964fi
cristy8b350f62009-11-15 23:12:43 +000026965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000026966$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristyda16f162011-02-19 23:52:17 +000026967if test "x$ac_cv_lib_mp_mp_destroy" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026968 GOMP_LIBS="-lmp"
26969fi
cristy18307f12011-12-30 01:20:16 +000026970
26971 fi
cristy3ed852e2009-09-05 21:47:34 +000026972 fi
26973 LIBS="$GOMP_LIBS $LIBS"
26974fi
26975
26976
cristy12ac8192014-11-04 13:59:13 +000026977#
cristy3b0097d2014-11-04 15:34:47 +000026978# Check for jemalloc.
cristy12ac8192014-11-04 13:59:13 +000026979#
cristy3b0097d2014-11-04 15:34:47 +000026980have_jemalloc='no'
26981JEMALLOC_LIBS=''
26982if test "$with_jemalloc" != 'no'; then
26983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JEMALLOC support " >&5
26984$as_echo_n "checking for JEMALLOC support ... " >&6; }
26985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26986$as_echo "" >&6; }
26987 failed=0
26988 passed=0
26989 ac_fn_c_check_header_mongrel "$LINENO" "jemalloc/jemalloc.h" "ac_cv_header_jemalloc_jemalloc_h" "$ac_includes_default"
26990if test "x$ac_cv_header_jemalloc_jemalloc_h" = xyes; then :
cristy22007ae2014-11-04 15:59:22 +000026991 passed=`expr $passed + 1`
26992else
26993 failed=`expr $failed + 1`
cristy12ac8192014-11-04 13:59:13 +000026994fi
26995
26996
cristy3b0097d2014-11-04 15:34:47 +000026997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc_stats_print in -ljemalloc" >&5
26998$as_echo_n "checking for malloc_stats_print in -ljemalloc... " >&6; }
26999if ${ac_cv_lib_jemalloc_malloc_stats_print+:} false; then :
cristy12ac8192014-11-04 13:59:13 +000027000 $as_echo_n "(cached) " >&6
27001else
27002 ac_check_lib_save_LIBS=$LIBS
27003LIBS="-ljemalloc $LIBS"
27004cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27005/* end confdefs.h. */
27006
27007/* Override any GCC internal prototype to avoid an error.
27008 Use char because int might match the return type of a GCC
27009 builtin and then its argument prototype would still apply. */
27010#ifdef __cplusplus
27011extern "C"
27012#endif
cristy3b0097d2014-11-04 15:34:47 +000027013char malloc_stats_print ();
cristy12ac8192014-11-04 13:59:13 +000027014int
27015main ()
27016{
cristy3b0097d2014-11-04 15:34:47 +000027017return malloc_stats_print ();
cristy12ac8192014-11-04 13:59:13 +000027018 ;
27019 return 0;
27020}
27021_ACEOF
27022if ac_fn_c_try_link "$LINENO"; then :
cristy3b0097d2014-11-04 15:34:47 +000027023 ac_cv_lib_jemalloc_malloc_stats_print=yes
cristy12ac8192014-11-04 13:59:13 +000027024else
cristy3b0097d2014-11-04 15:34:47 +000027025 ac_cv_lib_jemalloc_malloc_stats_print=no
cristy12ac8192014-11-04 13:59:13 +000027026fi
27027rm -f core conftest.err conftest.$ac_objext \
27028 conftest$ac_exeext conftest.$ac_ext
27029LIBS=$ac_check_lib_save_LIBS
27030fi
cristy3b0097d2014-11-04 15:34:47 +000027031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jemalloc_malloc_stats_print" >&5
27032$as_echo "$ac_cv_lib_jemalloc_malloc_stats_print" >&6; }
27033if test "x$ac_cv_lib_jemalloc_malloc_stats_print" = xyes; then :
cristy22007ae2014-11-04 15:59:22 +000027034 passed=`expr $passed + 1`
27035else
27036 failed=`expr $failed + 1`
cristy12ac8192014-11-04 13:59:13 +000027037fi
27038
cristy3b0097d2014-11-04 15:34:47 +000027039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if jemalloc memory allocation library is complete" >&5
27040$as_echo_n "checking if jemalloc memory allocation library is complete... " >&6; }
27041 if test $passed -gt 0; then
27042 if test $failed -gt 0; then
27043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27044$as_echo "no -- some components failed test" >&6; }
27045 have_jemalloc='no (failed tests)'
27046 else
27047 JEMALLOC_LIBS='-ljemalloc'
27048 LIBS="$JEMALLOC_LIBS $LIBS"
cristy12ac8192014-11-04 13:59:13 +000027049
cristy3b0097d2014-11-04 15:34:47 +000027050$as_echo "#define HasJEMALLOC 1" >>confdefs.h
cristy12ac8192014-11-04 13:59:13 +000027051
cristy3b0097d2014-11-04 15:34:47 +000027052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27053$as_echo "yes" >&6; }
27054 have_jemalloc='yes'
27055 fi
cristy12ac8192014-11-04 13:59:13 +000027056 else
cristy3b0097d2014-11-04 15:34:47 +000027057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27058$as_echo "no" >&6; }
cristy12ac8192014-11-04 13:59:13 +000027059 fi
27060fi
cristy3b0097d2014-11-04 15:34:47 +000027061 if test "$have_jemalloc" = 'yes'; then
27062 HasJEMALLOC_TRUE=
27063 HasJEMALLOC_FALSE='#'
27064else
27065 HasJEMALLOC_TRUE='#'
27066 HasJEMALLOC_FALSE=
cristy12ac8192014-11-04 13:59:13 +000027067fi
27068
cristy3b0097d2014-11-04 15:34:47 +000027069
27070
cristy3ed852e2009-09-05 21:47:34 +000027071#
27072# Check for umem.
27073#
27074have_umem='no'
27075UMEM_LIBS=''
27076if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000027078$as_echo_n "checking for UMEM support ... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000027079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27080$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027081 failed=0
27082 passed=0
cristy8b350f62009-11-15 23:12:43 +000027083 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027084if test "x$ac_cv_header_umem_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027085 passed=`expr $passed + 1`
27086else
27087 failed=`expr $failed + 1`
27088fi
27089
27090
cristy8b350f62009-11-15 23:12:43 +000027091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000027092$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027093if ${ac_cv_lib_umem_umem_alloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027094 $as_echo_n "(cached) " >&6
27095else
27096 ac_check_lib_save_LIBS=$LIBS
27097LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027098cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027099/* end confdefs.h. */
27100
27101/* Override any GCC internal prototype to avoid an error.
27102 Use char because int might match the return type of a GCC
27103 builtin and then its argument prototype would still apply. */
27104#ifdef __cplusplus
27105extern "C"
27106#endif
27107char umem_alloc ();
27108int
27109main ()
27110{
27111return umem_alloc ();
27112 ;
27113 return 0;
27114}
27115_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027116if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027117 ac_cv_lib_umem_umem_alloc=yes
27118else
cristy8b350f62009-11-15 23:12:43 +000027119 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000027120fi
cristy8b350f62009-11-15 23:12:43 +000027121rm -f core conftest.err conftest.$ac_objext \
27122 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027123LIBS=$ac_check_lib_save_LIBS
27124fi
cristy8b350f62009-11-15 23:12:43 +000027125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027126$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000027127if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027128 passed=`expr $passed + 1`
27129else
27130 failed=`expr $failed + 1`
27131fi
27132
cristy8b350f62009-11-15 23:12:43 +000027133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000027134$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027135if ${ac_cv_lib_umem_umem_free+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027136 $as_echo_n "(cached) " >&6
27137else
27138 ac_check_lib_save_LIBS=$LIBS
27139LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027140cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027141/* end confdefs.h. */
27142
27143/* Override any GCC internal prototype to avoid an error.
27144 Use char because int might match the return type of a GCC
27145 builtin and then its argument prototype would still apply. */
27146#ifdef __cplusplus
27147extern "C"
27148#endif
27149char umem_free ();
27150int
27151main ()
27152{
27153return umem_free ();
27154 ;
27155 return 0;
27156}
27157_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027158if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027159 ac_cv_lib_umem_umem_free=yes
27160else
cristy8b350f62009-11-15 23:12:43 +000027161 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000027162fi
cristy8b350f62009-11-15 23:12:43 +000027163rm -f core conftest.err conftest.$ac_objext \
27164 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027165LIBS=$ac_check_lib_save_LIBS
27166fi
cristy8b350f62009-11-15 23:12:43 +000027167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000027168$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristyda16f162011-02-19 23:52:17 +000027169if test "x$ac_cv_lib_umem_umem_free" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027170 passed=`expr $passed + 1`
27171else
27172 failed=`expr $failed + 1`
27173fi
27174
cristy8b350f62009-11-15 23:12:43 +000027175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027176$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
27177 if test $passed -gt 0; then
27178 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000027179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27180$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027181 have_umem='no (failed tests)'
27182 else
27183 UMEM_LIBS='-lumem'
27184 LIBS="$UMEM_LIBS $LIBS"
27185
cristy8b350f62009-11-15 23:12:43 +000027186$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027187
cristyad38abe2012-12-23 23:03:21 +000027188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27189$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027190 have_umem='yes'
27191 fi
27192 else
cristyad38abe2012-12-23 23:03:21 +000027193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27194$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027195 fi
27196fi
cristy73bd4a52010-10-05 11:24:23 +000027197 if test "$have_umem" = 'yes'; then
27198 HasUMEM_TRUE=
27199 HasUMEM_FALSE='#'
27200else
27201 HasUMEM_TRUE='#'
27202 HasUMEM_FALSE=
27203fi
27204
cristy3ed852e2009-09-05 21:47:34 +000027205
27206
27207#
27208# Add support for ccmalloc memory debugging library if requested
27209#
27210have_ccmalloc='no'
27211CCMALLOC_LIBS=''
27212if test "$enable_ccmalloc" = 'yes'; then
27213 # Extract the first word of "ccmalloc", so it can be a program name with args.
27214set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000027215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000027216$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027217if ${ac_cv_path_CCMALLOCDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027218 $as_echo_n "(cached) " >&6
27219else
27220 case $CCMALLOCDelegate in
27221 [\\/]* | ?:[\\/]*)
27222 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
27223 ;;
27224 *)
27225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27226for as_dir in $PATH
27227do
27228 IFS=$as_save_IFS
27229 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000027230 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000027231 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000027232 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000027233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027234 break 2
27235 fi
27236done
cristy8b350f62009-11-15 23:12:43 +000027237 done
cristy3ed852e2009-09-05 21:47:34 +000027238IFS=$as_save_IFS
27239
27240 ;;
27241esac
27242fi
27243CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
27244if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000027245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000027246$as_echo "$CCMALLOCDelegate" >&6; }
27247else
cristy8b350f62009-11-15 23:12:43 +000027248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027249$as_echo "no" >&6; }
27250fi
27251
27252
27253 if test -n "$CCMALLOCDelegate"; then
27254 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
27255 OLIBS="$LIBS"
27256 # Assume that gcc is used with ccmalloc.
27257 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000027258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027259$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027260if ${ac_cv_lib_ccmalloc_ccmalloc_malloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027261 $as_echo_n "(cached) " >&6
27262else
27263 ac_check_lib_save_LIBS=$LIBS
27264LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027265cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027266/* end confdefs.h. */
27267
27268/* Override any GCC internal prototype to avoid an error.
27269 Use char because int might match the return type of a GCC
27270 builtin and then its argument prototype would still apply. */
27271#ifdef __cplusplus
27272extern "C"
27273#endif
27274char ccmalloc_malloc ();
27275int
27276main ()
27277{
27278return ccmalloc_malloc ();
27279 ;
27280 return 0;
27281}
27282_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027283if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027284 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
27285else
cristy8b350f62009-11-15 23:12:43 +000027286 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000027287fi
cristy8b350f62009-11-15 23:12:43 +000027288rm -f core conftest.err conftest.$ac_objext \
27289 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027290LIBS=$ac_check_lib_save_LIBS
27291fi
cristy8b350f62009-11-15 23:12:43 +000027292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027293$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000027294if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027295 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
27296fi
27297
27298 if test -n "$CCMALLOC_LIBS"; then
27299 LIBS="$OLIBS"
27300 LIBS="$LIBS $CCMALLOC_LIBS"
27301 have_ccmalloc='yes'
27302 else
27303 LIBS="$OLIBS"
27304 fi
27305 fi
27306fi
27307
27308#
cristy944e51f2013-04-16 18:45:02 +000027309# Add support for 'huge pages' if requested
27310#
27311if test "x$enable_hugepages" != "xno"; then :
27312
27313
27314$as_echo "#define HAVE_HUGEPAGES 1" >>confdefs.h
27315
27316
27317fi
27318
27319#
cristy3ed852e2009-09-05 21:47:34 +000027320# Add support for efence memory debugging library if requested
27321#
27322if test "$enable_efence" = 'yes'; then
27323 EFENCE_LIBS='-lefence'
27324 LIBS="$EFENCE_LIBS $LIBS"
27325fi
27326
cristy3ed852e2009-09-05 21:47:34 +000027327
27328#
27329# Check for BZLIB
27330#
27331
27332
27333# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000027334if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027335 withval=$with_bzlib; with_bzlib=$withval
27336else
27337 with_bzlib='yes'
27338fi
27339
27340
27341if test "$with_bzlib" != 'yes'; then
27342 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
27343fi
27344
27345have_bzlib='no'
27346if test "$with_bzlib" != 'no'; then
27347 BZLIB_LIBS=''
cristyad38abe2012-12-23 23:03:21 +000027348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27349$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000027351$as_echo_n "checking for BZLIB... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000027352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27353$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027354 failed=0
27355 passed=0
27356 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000027357 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027358if test "x$ac_cv_header_bzlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027359 passed=`expr $passed + 1`
27360else
27361 failed=`expr $failed + 1`
27362fi
27363
27364
cristy8b350f62009-11-15 23:12:43 +000027365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000027366$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027367if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027368 $as_echo_n "(cached) " >&6
27369else
27370 ac_check_lib_save_LIBS=$LIBS
27371LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027372cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027373/* end confdefs.h. */
27374
27375/* Override any GCC internal prototype to avoid an error.
27376 Use char because int might match the return type of a GCC
27377 builtin and then its argument prototype would still apply. */
27378#ifdef __cplusplus
27379extern "C"
27380#endif
27381char BZ2_bzDecompress ();
27382int
27383main ()
27384{
27385return BZ2_bzDecompress ();
27386 ;
27387 return 0;
27388}
27389_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027390if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027391 ac_cv_lib_bz2_BZ2_bzDecompress=yes
27392else
cristy8b350f62009-11-15 23:12:43 +000027393 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000027394fi
cristy8b350f62009-11-15 23:12:43 +000027395rm -f core conftest.err conftest.$ac_objext \
27396 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027397LIBS=$ac_check_lib_save_LIBS
27398fi
cristy8b350f62009-11-15 23:12:43 +000027399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027400$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027401if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027402 found_libbz=`expr $found_libbz + 1`
27403fi
27404
27405 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000027407$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027408if ${ac_cv_lib_bz2__imp__BZ2_decompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027409 $as_echo_n "(cached) " >&6
27410else
27411 ac_check_lib_save_LIBS=$LIBS
27412LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027413cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027414/* end confdefs.h. */
27415
27416/* Override any GCC internal prototype to avoid an error.
27417 Use char because int might match the return type of a GCC
27418 builtin and then its argument prototype would still apply. */
27419#ifdef __cplusplus
27420extern "C"
27421#endif
27422char _imp__BZ2_decompress ();
27423int
27424main ()
27425{
27426return _imp__BZ2_decompress ();
27427 ;
27428 return 0;
27429}
27430_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027431if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027432 ac_cv_lib_bz2__imp__BZ2_decompress=yes
27433else
cristy8b350f62009-11-15 23:12:43 +000027434 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000027435fi
cristy8b350f62009-11-15 23:12:43 +000027436rm -f core conftest.err conftest.$ac_objext \
27437 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027438LIBS=$ac_check_lib_save_LIBS
27439fi
cristy8b350f62009-11-15 23:12:43 +000027440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027441$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027442if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027443 found_libbz=`expr $found_libbz + 1`
27444fi
27445
27446 fi
27447 if test $found_libbz -gt 0; then
27448 passed=`expr $passed + 1`
27449 else
27450 failed=`expr $failed + 1`
27451 fi
cristy8b350f62009-11-15 23:12:43 +000027452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027453$as_echo_n "checking if BZLIB package is complete... " >&6; }
27454 if test $passed -gt 0; then
27455 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000027456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27457$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027458 have_bzlib='no (failed tests)'
27459 else
27460 BZLIB_LIBS='-lbz2'
27461 LIBS="$BZLIB_LIBS $LIBS"
27462
cristy8b350f62009-11-15 23:12:43 +000027463$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027464
cristyad38abe2012-12-23 23:03:21 +000027465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27466$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027467 have_bzlib='yes'
27468 fi
27469 else
cristyad38abe2012-12-23 23:03:21 +000027470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27471$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027472 fi
27473fi
cristy73bd4a52010-10-05 11:24:23 +000027474 if test "$have_bzlib" = 'yes'; then
27475 BZLIB_DELEGATE_TRUE=
27476 BZLIB_DELEGATE_FALSE='#'
27477else
27478 BZLIB_DELEGATE_TRUE='#'
27479 BZLIB_DELEGATE_FALSE=
27480fi
27481
cristy3ed852e2009-09-05 21:47:34 +000027482
27483
27484#
27485# Find the X11 include and library directories.
27486#
27487IPC_LIBS=''
27488X11_LIBS=''
27489XEXT_LIBS=''
27490XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000027491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000027492$as_echo_n "checking for X... " >&6; }
27493
27494
27495# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000027496if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000027497 withval=$with_x;
27498fi
27499
27500# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
27501if test "x$with_x" = xno; then
27502 # The user explicitly disabled X.
27503 have_x=disabled
27504else
27505 case $x_includes,$x_libraries in #(
cristy98dddb52010-11-04 00:30:15 +000027506 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
cristyda16f162011-02-19 23:52:17 +000027507 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
cristyc7083c12009-10-14 03:16:55 +000027508 $as_echo_n "(cached) " >&6
27509else
27510 # One or both of the vars are not set, and there is no cached value.
27511ac_x_includes=no ac_x_libraries=no
27512rm -f -r conftest.dir
27513if mkdir conftest.dir; then
27514 cd conftest.dir
27515 cat >Imakefile <<'_ACEOF'
27516incroot:
27517 @echo incroot='${INCROOT}'
27518usrlibdir:
27519 @echo usrlibdir='${USRLIBDIR}'
27520libdir:
27521 @echo libdir='${LIBDIR}'
27522_ACEOF
27523 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
cristy98dddb52010-11-04 00:30:15 +000027524 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristyc7083c12009-10-14 03:16:55 +000027525 for ac_var in incroot usrlibdir libdir; do
27526 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
27527 done
27528 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
27529 for ac_extension in a so sl dylib la dll; do
27530 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
27531 test -f "$ac_im_libdir/libX11.$ac_extension"; then
27532 ac_im_usrlibdir=$ac_im_libdir; break
27533 fi
27534 done
27535 # Screen out bogus values from the imake configuration. They are
27536 # bogus both because they are the default anyway, and because
27537 # using them would break gcc on systems where it needs fixed includes.
27538 case $ac_im_incroot in
27539 /usr/include) ac_x_includes= ;;
27540 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
27541 esac
27542 case $ac_im_usrlibdir in
27543 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
27544 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
27545 esac
27546 fi
27547 cd ..
27548 rm -f -r conftest.dir
27549fi
27550
27551# Standard set of common directories for X headers.
27552# Check X11 before X11Rn because it is often a symlink to the current release.
27553ac_x_header_dirs='
27554/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000027555/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000027556/usr/X11R6/include
27557/usr/X11R5/include
27558/usr/X11R4/include
27559
27560/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000027561/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000027562/usr/include/X11R6
27563/usr/include/X11R5
27564/usr/include/X11R4
27565
27566/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000027567/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000027568/usr/local/X11R6/include
27569/usr/local/X11R5/include
27570/usr/local/X11R4/include
27571
27572/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000027573/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000027574/usr/local/include/X11R6
27575/usr/local/include/X11R5
27576/usr/local/include/X11R4
27577
27578/usr/X386/include
27579/usr/x386/include
27580/usr/XFree86/include/X11
27581
27582/usr/include
27583/usr/local/include
27584/usr/unsupported/include
27585/usr/athena/include
27586/usr/local/x11r5/include
27587/usr/lpp/Xamples/include
27588
27589/usr/openwin/include
27590/usr/openwin/share/include'
27591
27592if test "$ac_x_includes" = no; then
27593 # Guess where to find include files, by looking for Xlib.h.
27594 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000027595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027596/* end confdefs.h. */
27597#include <X11/Xlib.h>
27598_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027599if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000027600 # We can compile using X headers with no special include directory.
27601ac_x_includes=
27602else
cristyc7083c12009-10-14 03:16:55 +000027603 for ac_dir in $ac_x_header_dirs; do
27604 if test -r "$ac_dir/X11/Xlib.h"; then
27605 ac_x_includes=$ac_dir
27606 break
27607 fi
27608done
27609fi
cristyda16f162011-02-19 23:52:17 +000027610rm -f conftest.err conftest.i conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027611fi # $ac_x_includes = no
27612
27613if test "$ac_x_libraries" = no; then
27614 # Check for the libraries.
27615 # See if we find them without any special options.
27616 # Don't add to $LIBS permanently.
27617 ac_save_LIBS=$LIBS
27618 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027620/* end confdefs.h. */
27621#include <X11/Xlib.h>
27622int
27623main ()
27624{
27625XrmInitialize ()
27626 ;
27627 return 0;
27628}
27629_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027630if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000027631 LIBS=$ac_save_LIBS
27632# We can link X programs with no special library path.
27633ac_x_libraries=
27634else
cristy8b350f62009-11-15 23:12:43 +000027635 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000027636for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
27637do
27638 # Don't even attempt the hair of trying to link an X program!
27639 for ac_extension in a so sl dylib la dll; do
27640 if test -r "$ac_dir/libX11.$ac_extension"; then
27641 ac_x_libraries=$ac_dir
27642 break 2
27643 fi
27644 done
27645done
27646fi
cristy8b350f62009-11-15 23:12:43 +000027647rm -f core conftest.err conftest.$ac_objext \
27648 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027649fi # $ac_x_libraries = no
27650
27651case $ac_x_includes,$ac_x_libraries in #(
27652 no,* | *,no | *\'*)
27653 # Didn't find X, or a directory has "'" in its name.
27654 ac_cv_have_x="have_x=no";; #(
27655 *)
27656 # Record where we found X for the cache.
27657 ac_cv_have_x="have_x=yes\
27658 ac_x_includes='$ac_x_includes'\
27659 ac_x_libraries='$ac_x_libraries'"
27660esac
27661fi
27662;; #(
27663 *) have_x=yes;;
27664 esac
27665 eval "$ac_cv_have_x"
27666fi # $with_x != no
27667
27668if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000027669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000027670$as_echo "$have_x" >&6; }
27671 no_x=yes
27672else
27673 # If each of the values was on the command line, it overrides each guess.
27674 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
27675 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
27676 # Update the cache value to reflect the command line values.
27677 ac_cv_have_x="have_x=yes\
27678 ac_x_includes='$x_includes'\
27679 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000027680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000027681$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
27682fi
27683
cristy3ed852e2009-09-05 21:47:34 +000027684if test "$no_x" = yes; then
27685 # Not all programs may use this symbol, but it does not hurt to define it.
27686
cristy8b350f62009-11-15 23:12:43 +000027687$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027688
27689 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
27690else
27691 if test -n "$x_includes"; then
27692 X_CFLAGS="$X_CFLAGS -I$x_includes"
27693 fi
27694
27695 # It would also be nice to do this for all -L options, not just this one.
27696 if test -n "$x_libraries"; then
27697 X_LIBS="$X_LIBS -L$x_libraries"
27698 # For Solaris; some versions of Sun CC require a space after -R and
27699 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000027700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000027701$as_echo_n "checking whether -R must be followed by a space... " >&6; }
27702 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
27703 ac_xsave_c_werror_flag=$ac_c_werror_flag
27704 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000027705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027706/* end confdefs.h. */
27707
27708int
27709main ()
27710{
27711
27712 ;
27713 return 0;
27714}
27715_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027716if ac_fn_c_try_link "$LINENO"; then :
27717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027718$as_echo "no" >&6; }
27719 X_LIBS="$X_LIBS -R$x_libraries"
27720else
cristy8b350f62009-11-15 23:12:43 +000027721 LIBS="$ac_xsave_LIBS -R $x_libraries"
27722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027723/* end confdefs.h. */
27724
27725int
27726main ()
27727{
27728
27729 ;
27730 return 0;
27731}
27732_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027733if ac_fn_c_try_link "$LINENO"; then :
27734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027735$as_echo "yes" >&6; }
27736 X_LIBS="$X_LIBS -R $x_libraries"
27737else
cristy8b350f62009-11-15 23:12:43 +000027738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000027739$as_echo "neither works" >&6; }
27740fi
cristy8b350f62009-11-15 23:12:43 +000027741rm -f core conftest.err conftest.$ac_objext \
27742 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027743fi
cristy8b350f62009-11-15 23:12:43 +000027744rm -f core conftest.err conftest.$ac_objext \
27745 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027746 ac_c_werror_flag=$ac_xsave_c_werror_flag
27747 LIBS=$ac_xsave_LIBS
27748 fi
27749
27750 # Check for system-dependent libraries X programs must link with.
27751 # Do this before checking for the system-independent R6 libraries
27752 # (-lICE), since we may need -lsocket or whatever for X linking.
27753
27754 if test "$ISC" = yes; then
27755 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
27756 else
27757 # Martyn Johnson says this is needed for Ultrix, if the X
27758 # libraries were built with DECnet support. And Karl Berry says
27759 # the Alpha needs dnet_stub (dnet does not exist).
27760 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000027761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027762/* end confdefs.h. */
27763
27764/* Override any GCC internal prototype to avoid an error.
27765 Use char because int might match the return type of a GCC
27766 builtin and then its argument prototype would still apply. */
27767#ifdef __cplusplus
27768extern "C"
27769#endif
27770char XOpenDisplay ();
27771int
27772main ()
27773{
27774return XOpenDisplay ();
27775 ;
27776 return 0;
27777}
27778_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027779if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027780
cristy8b350f62009-11-15 23:12:43 +000027781else
27782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000027783$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027784if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027785 $as_echo_n "(cached) " >&6
27786else
27787 ac_check_lib_save_LIBS=$LIBS
27788LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027789cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027790/* end confdefs.h. */
27791
27792/* Override any GCC internal prototype to avoid an error.
27793 Use char because int might match the return type of a GCC
27794 builtin and then its argument prototype would still apply. */
27795#ifdef __cplusplus
27796extern "C"
27797#endif
27798char dnet_ntoa ();
27799int
27800main ()
27801{
27802return dnet_ntoa ();
27803 ;
27804 return 0;
27805}
27806_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027807if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027808 ac_cv_lib_dnet_dnet_ntoa=yes
27809else
cristy8b350f62009-11-15 23:12:43 +000027810 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000027811fi
cristy8b350f62009-11-15 23:12:43 +000027812rm -f core conftest.err conftest.$ac_objext \
27813 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027814LIBS=$ac_check_lib_save_LIBS
27815fi
cristy8b350f62009-11-15 23:12:43 +000027816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027817$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027818if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027819 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
27820fi
27821
27822 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000027823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000027824$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027825if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027826 $as_echo_n "(cached) " >&6
27827else
27828 ac_check_lib_save_LIBS=$LIBS
27829LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027830cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027831/* end confdefs.h. */
27832
27833/* Override any GCC internal prototype to avoid an error.
27834 Use char because int might match the return type of a GCC
27835 builtin and then its argument prototype would still apply. */
27836#ifdef __cplusplus
27837extern "C"
27838#endif
27839char dnet_ntoa ();
27840int
27841main ()
27842{
27843return dnet_ntoa ();
27844 ;
27845 return 0;
27846}
27847_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027848if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027849 ac_cv_lib_dnet_stub_dnet_ntoa=yes
27850else
cristy8b350f62009-11-15 23:12:43 +000027851 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000027852fi
cristy8b350f62009-11-15 23:12:43 +000027853rm -f core conftest.err conftest.$ac_objext \
27854 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027855LIBS=$ac_check_lib_save_LIBS
27856fi
cristy8b350f62009-11-15 23:12:43 +000027857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027858$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027859if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027860 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
27861fi
27862
27863 fi
27864fi
cristy8b350f62009-11-15 23:12:43 +000027865rm -f core conftest.err conftest.$ac_objext \
27866 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027867 LIBS="$ac_xsave_LIBS"
27868
27869 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
27870 # to get the SysV transport functions.
27871 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
27872 # needs -lnsl.
27873 # The nsl library prevents programs from opening the X display
27874 # on Irix 5.2, according to T.E. Dickey.
27875 # The functions gethostbyname, getservbyname, and inet_addr are
27876 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000027877 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
cristyda16f162011-02-19 23:52:17 +000027878if test "x$ac_cv_func_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027879
cristy3ed852e2009-09-05 21:47:34 +000027880fi
27881
cristy3ed852e2009-09-05 21:47:34 +000027882 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000027884$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027885if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027886 $as_echo_n "(cached) " >&6
27887else
27888 ac_check_lib_save_LIBS=$LIBS
27889LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027890cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027891/* end confdefs.h. */
27892
27893/* Override any GCC internal prototype to avoid an error.
27894 Use char because int might match the return type of a GCC
27895 builtin and then its argument prototype would still apply. */
27896#ifdef __cplusplus
27897extern "C"
27898#endif
27899char gethostbyname ();
27900int
27901main ()
27902{
27903return gethostbyname ();
27904 ;
27905 return 0;
27906}
27907_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027908if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027909 ac_cv_lib_nsl_gethostbyname=yes
27910else
cristy8b350f62009-11-15 23:12:43 +000027911 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027912fi
cristy8b350f62009-11-15 23:12:43 +000027913rm -f core conftest.err conftest.$ac_objext \
27914 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027915LIBS=$ac_check_lib_save_LIBS
27916fi
cristy8b350f62009-11-15 23:12:43 +000027917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027918$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027919if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027920 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
27921fi
27922
27923 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000027925$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027926if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027927 $as_echo_n "(cached) " >&6
27928else
27929 ac_check_lib_save_LIBS=$LIBS
27930LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027931cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027932/* end confdefs.h. */
27933
27934/* Override any GCC internal prototype to avoid an error.
27935 Use char because int might match the return type of a GCC
27936 builtin and then its argument prototype would still apply. */
27937#ifdef __cplusplus
27938extern "C"
27939#endif
27940char gethostbyname ();
27941int
27942main ()
27943{
27944return gethostbyname ();
27945 ;
27946 return 0;
27947}
27948_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027949if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027950 ac_cv_lib_bsd_gethostbyname=yes
27951else
cristy8b350f62009-11-15 23:12:43 +000027952 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027953fi
cristy8b350f62009-11-15 23:12:43 +000027954rm -f core conftest.err conftest.$ac_objext \
27955 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027956LIBS=$ac_check_lib_save_LIBS
27957fi
cristy8b350f62009-11-15 23:12:43 +000027958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027959$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027960if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027961 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
27962fi
27963
27964 fi
27965 fi
27966
27967 # lieder@skyler.mavd.honeywell.com says without -lsocket,
27968 # socket/setsockopt and other routines are undefined under SCO ODT
27969 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
27970 # on later versions), says Simon Leinen: it contains gethostby*
27971 # variants that don't use the name server (or something). -lsocket
27972 # must be given before -lnsl if both are needed. We assume that
27973 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000027974 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
cristyda16f162011-02-19 23:52:17 +000027975if test "x$ac_cv_func_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027976
cristy3ed852e2009-09-05 21:47:34 +000027977fi
27978
cristy3ed852e2009-09-05 21:47:34 +000027979 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000027980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000027981$as_echo_n "checking for connect in -lsocket... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027982if ${ac_cv_lib_socket_connect+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027983 $as_echo_n "(cached) " >&6
27984else
27985 ac_check_lib_save_LIBS=$LIBS
27986LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027987cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027988/* end confdefs.h. */
27989
27990/* Override any GCC internal prototype to avoid an error.
27991 Use char because int might match the return type of a GCC
27992 builtin and then its argument prototype would still apply. */
27993#ifdef __cplusplus
27994extern "C"
27995#endif
27996char connect ();
27997int
27998main ()
27999{
28000return connect ();
28001 ;
28002 return 0;
28003}
28004_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028005if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028006 ac_cv_lib_socket_connect=yes
28007else
cristy8b350f62009-11-15 23:12:43 +000028008 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000028009fi
cristy8b350f62009-11-15 23:12:43 +000028010rm -f core conftest.err conftest.$ac_objext \
28011 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028012LIBS=$ac_check_lib_save_LIBS
28013fi
cristy8b350f62009-11-15 23:12:43 +000028014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000028015$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristyda16f162011-02-19 23:52:17 +000028016if test "x$ac_cv_lib_socket_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028017 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
28018fi
28019
28020 fi
28021
28022 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000028023 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
cristyda16f162011-02-19 23:52:17 +000028024if test "x$ac_cv_func_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028025
cristy3ed852e2009-09-05 21:47:34 +000028026fi
28027
cristy3ed852e2009-09-05 21:47:34 +000028028 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000028029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000028030$as_echo_n "checking for remove in -lposix... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028031if ${ac_cv_lib_posix_remove+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028032 $as_echo_n "(cached) " >&6
28033else
28034 ac_check_lib_save_LIBS=$LIBS
28035LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028036cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028037/* end confdefs.h. */
28038
28039/* Override any GCC internal prototype to avoid an error.
28040 Use char because int might match the return type of a GCC
28041 builtin and then its argument prototype would still apply. */
28042#ifdef __cplusplus
28043extern "C"
28044#endif
28045char remove ();
28046int
28047main ()
28048{
28049return remove ();
28050 ;
28051 return 0;
28052}
28053_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028054if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028055 ac_cv_lib_posix_remove=yes
28056else
cristy8b350f62009-11-15 23:12:43 +000028057 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000028058fi
cristy8b350f62009-11-15 23:12:43 +000028059rm -f core conftest.err conftest.$ac_objext \
28060 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028061LIBS=$ac_check_lib_save_LIBS
28062fi
cristy8b350f62009-11-15 23:12:43 +000028063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000028064$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristyda16f162011-02-19 23:52:17 +000028065if test "x$ac_cv_lib_posix_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028066 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
28067fi
28068
28069 fi
28070
28071 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000028072 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
cristyda16f162011-02-19 23:52:17 +000028073if test "x$ac_cv_func_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028074
cristy3ed852e2009-09-05 21:47:34 +000028075fi
28076
cristy3ed852e2009-09-05 21:47:34 +000028077 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000028078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000028079$as_echo_n "checking for shmat in -lipc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028080if ${ac_cv_lib_ipc_shmat+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028081 $as_echo_n "(cached) " >&6
28082else
28083 ac_check_lib_save_LIBS=$LIBS
28084LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028085cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028086/* end confdefs.h. */
28087
28088/* Override any GCC internal prototype to avoid an error.
28089 Use char because int might match the return type of a GCC
28090 builtin and then its argument prototype would still apply. */
28091#ifdef __cplusplus
28092extern "C"
28093#endif
28094char shmat ();
28095int
28096main ()
28097{
28098return shmat ();
28099 ;
28100 return 0;
28101}
28102_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028103if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028104 ac_cv_lib_ipc_shmat=yes
28105else
cristy8b350f62009-11-15 23:12:43 +000028106 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000028107fi
cristy8b350f62009-11-15 23:12:43 +000028108rm -f core conftest.err conftest.$ac_objext \
28109 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028110LIBS=$ac_check_lib_save_LIBS
28111fi
cristy8b350f62009-11-15 23:12:43 +000028112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000028113$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristyda16f162011-02-19 23:52:17 +000028114if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028115 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
28116fi
28117
28118 fi
28119 fi
28120
28121 # Check for libraries that X11R6 Xt/Xaw programs need.
28122 ac_save_LDFLAGS=$LDFLAGS
28123 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
28124 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
28125 # check for ICE first), but we must link in the order -lSM -lICE or
28126 # we get undefined symbols. So assume we have SM if we have ICE.
28127 # These have to be linked with before -lX11, unlike the other
28128 # libraries we check for below, so use a different variable.
28129 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000028130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000028131$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028132if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028133 $as_echo_n "(cached) " >&6
28134else
28135 ac_check_lib_save_LIBS=$LIBS
28136LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028137cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028138/* end confdefs.h. */
28139
28140/* Override any GCC internal prototype to avoid an error.
28141 Use char because int might match the return type of a GCC
28142 builtin and then its argument prototype would still apply. */
28143#ifdef __cplusplus
28144extern "C"
28145#endif
28146char IceConnectionNumber ();
28147int
28148main ()
28149{
28150return IceConnectionNumber ();
28151 ;
28152 return 0;
28153}
28154_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028155if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028156 ac_cv_lib_ICE_IceConnectionNumber=yes
28157else
cristy8b350f62009-11-15 23:12:43 +000028158 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000028159fi
cristy8b350f62009-11-15 23:12:43 +000028160rm -f core conftest.err conftest.$ac_objext \
28161 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028162LIBS=$ac_check_lib_save_LIBS
28163fi
cristy8b350f62009-11-15 23:12:43 +000028164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000028165$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristyda16f162011-02-19 23:52:17 +000028166if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028167 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
28168fi
28169
28170 LDFLAGS=$ac_save_LDFLAGS
28171
28172fi
28173
28174if test "$no_x" != 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000028175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28176$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000028178$as_echo_n "checking for X11... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28180$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028181 LDFLAGS="$LDFLAGS $X_LIBS"
28182 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
28183 LIBS="$X11_LIBS $LIBS"
28184 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
28185
28186
cristy8b350f62009-11-15 23:12:43 +000028187$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028188
28189 #
28190 # Check for X11 shared memory extension
28191 #
28192 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000028193 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
cristyda16f162011-02-19 23:52:17 +000028194if test "x$ac_cv_func_shmctl" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028195 have_shmctl='yes'
28196fi
28197
28198 if test "$have_shmctl" != 'yes'; then
28199 PERSIST_LIBS=$LIBS
28200 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000028201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028202/* end confdefs.h. */
28203
28204/* Override any GCC internal prototype to avoid an error.
28205 Use char because int might match the return type of a GCC
28206 builtin and then its argument prototype would still apply. */
28207#ifdef __cplusplus
28208extern "C"
28209#endif
28210char shmctl ();
28211int
28212main ()
28213{
28214return shmctl ();
28215 ;
28216 return 0;
28217}
28218_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028219if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028220 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000028221fi
cristy8b350f62009-11-15 23:12:43 +000028222rm -f core conftest.err conftest.$ac_objext \
28223 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028224 LIBS=$PERSIST_LIBS
28225 fi
28226
28227 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000028228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028229$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028230if ${ac_cv_lib_Xext_XShmAttach+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028231 $as_echo_n "(cached) " >&6
28232else
28233 ac_check_lib_save_LIBS=$LIBS
28234LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028235cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028236/* end confdefs.h. */
28237
28238/* Override any GCC internal prototype to avoid an error.
28239 Use char because int might match the return type of a GCC
28240 builtin and then its argument prototype would still apply. */
28241#ifdef __cplusplus
28242extern "C"
28243#endif
28244char XShmAttach ();
28245int
28246main ()
28247{
28248return XShmAttach ();
28249 ;
28250 return 0;
28251}
28252_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028253if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028254 ac_cv_lib_Xext_XShmAttach=yes
28255else
cristy8b350f62009-11-15 23:12:43 +000028256 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000028257fi
cristy8b350f62009-11-15 23:12:43 +000028258rm -f core conftest.err conftest.$ac_objext \
28259 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028260LIBS=$ac_check_lib_save_LIBS
28261fi
cristy8b350f62009-11-15 23:12:43 +000028262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000028263$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristyda16f162011-02-19 23:52:17 +000028264if test "x$ac_cv_lib_Xext_XShmAttach" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028265 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000028266$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028267
28268fi
28269
28270 fi
28271
28272 #
28273 # Check for X11 shape extension
28274 #
cristy8b350f62009-11-15 23:12:43 +000028275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028276$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028277if ${ac_cv_lib_Xext_XShapeCombineMask+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028278 $as_echo_n "(cached) " >&6
28279else
28280 ac_check_lib_save_LIBS=$LIBS
28281LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028282cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028283/* end confdefs.h. */
28284
28285/* Override any GCC internal prototype to avoid an error.
28286 Use char because int might match the return type of a GCC
28287 builtin and then its argument prototype would still apply. */
28288#ifdef __cplusplus
28289extern "C"
28290#endif
28291char XShapeCombineMask ();
28292int
28293main ()
28294{
28295return XShapeCombineMask ();
28296 ;
28297 return 0;
28298}
28299_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028300if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028301 ac_cv_lib_Xext_XShapeCombineMask=yes
28302else
cristy8b350f62009-11-15 23:12:43 +000028303 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000028304fi
cristy8b350f62009-11-15 23:12:43 +000028305rm -f core conftest.err conftest.$ac_objext \
28306 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028307LIBS=$ac_check_lib_save_LIBS
28308fi
cristy8b350f62009-11-15 23:12:43 +000028309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000028310$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristyda16f162011-02-19 23:52:17 +000028311if test "x$ac_cv_lib_Xext_XShapeCombineMask" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028312 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000028313$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028314
28315fi
28316
cristy8b350f62009-11-15 23:12:43 +000028317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000028318$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028319if ${ac_cv_lib_Xt_XtSetEventDispatcher+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028320 $as_echo_n "(cached) " >&6
28321else
28322 ac_check_lib_save_LIBS=$LIBS
28323LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028324cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028325/* end confdefs.h. */
28326
28327/* Override any GCC internal prototype to avoid an error.
28328 Use char because int might match the return type of a GCC
28329 builtin and then its argument prototype would still apply. */
28330#ifdef __cplusplus
28331extern "C"
28332#endif
28333char XtSetEventDispatcher ();
28334int
28335main ()
28336{
28337return XtSetEventDispatcher ();
28338 ;
28339 return 0;
28340}
28341_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028342if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028343 ac_cv_lib_Xt_XtSetEventDispatcher=yes
28344else
cristy8b350f62009-11-15 23:12:43 +000028345 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000028346fi
cristy8b350f62009-11-15 23:12:43 +000028347rm -f core conftest.err conftest.$ac_objext \
28348 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028349LIBS=$ac_check_lib_save_LIBS
28350fi
cristy8b350f62009-11-15 23:12:43 +000028351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000028352$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristyda16f162011-02-19 23:52:17 +000028353if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028354 XT_LIBS='-lXt'
28355fi
28356
28357 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
28358fi
28359if test "$no_x" != 'yes'; then
28360 have_x='yes'
28361else
28362 have_x='no'
28363fi
cristy73bd4a52010-10-05 11:24:23 +000028364 if test "$have_x" = 'yes'; then
28365 X11_DELEGATE_TRUE=
28366 X11_DELEGATE_FALSE='#'
28367else
28368 X11_DELEGATE_TRUE='#'
28369 X11_DELEGATE_FALSE=
28370fi
28371
cristy3ed852e2009-09-05 21:47:34 +000028372
28373
28374
28375
28376#
28377# Check for ZLIB
28378#
28379
28380# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000028381if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028382 withval=$with_zlib; with_zlib=$withval
28383else
28384 with_zlib='yes'
28385fi
28386
28387
28388if test "$with_zlib" != 'yes'; then
28389 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
28390fi
28391
28392have_zlib='no'
cristy32f75d42015-06-05 18:46:23 +000028393ZLIB_CFLAGS=""
28394ZLIB_LIBS=""
28395ZLIB_PKG=""
28396if test "x$with_zlib" = "xyes"; then
28397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristyad38abe2012-12-23 23:03:21 +000028398$as_echo "-------------------------------------------------------------" >&6; }
cristy32f75d42015-06-05 18:46:23 +000028399
28400pkg_failed=no
28401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000028402$as_echo_n "checking for ZLIB... " >&6; }
cristy32f75d42015-06-05 18:46:23 +000028403
28404if test -n "$ZLIB_CFLAGS"; then
28405 pkg_cv_ZLIB_CFLAGS="$ZLIB_CFLAGS"
28406 elif test -n "$PKG_CONFIG"; then
28407 if test -n "$PKG_CONFIG" && \
28408 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib >= 1.0.0\""; } >&5
28409 ($PKG_CONFIG --exists --print-errors "zlib >= 1.0.0") 2>&5
28410 ac_status=$?
28411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28412 test $ac_status = 0; }; then
28413 pkg_cv_ZLIB_CFLAGS=`$PKG_CONFIG --cflags "zlib >= 1.0.0" 2>/dev/null`
28414 test "x$?" != "x0" && pkg_failed=yes
cristy3ed852e2009-09-05 21:47:34 +000028415else
cristy32f75d42015-06-05 18:46:23 +000028416 pkg_failed=yes
28417fi
28418 else
28419 pkg_failed=untried
28420fi
28421if test -n "$ZLIB_LIBS"; then
28422 pkg_cv_ZLIB_LIBS="$ZLIB_LIBS"
28423 elif test -n "$PKG_CONFIG"; then
28424 if test -n "$PKG_CONFIG" && \
28425 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib >= 1.0.0\""; } >&5
28426 ($PKG_CONFIG --exists --print-errors "zlib >= 1.0.0") 2>&5
28427 ac_status=$?
28428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28429 test $ac_status = 0; }; then
28430 pkg_cv_ZLIB_LIBS=`$PKG_CONFIG --libs "zlib >= 1.0.0" 2>/dev/null`
28431 test "x$?" != "x0" && pkg_failed=yes
28432else
28433 pkg_failed=yes
28434fi
28435 else
28436 pkg_failed=untried
cristy3ed852e2009-09-05 21:47:34 +000028437fi
28438
28439
cristy3ed852e2009-09-05 21:47:34 +000028440
cristy32f75d42015-06-05 18:46:23 +000028441if test $pkg_failed = yes; then
28442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28443$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028444
cristy32f75d42015-06-05 18:46:23 +000028445if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28446 _pkg_short_errors_supported=yes
cristy3ed852e2009-09-05 21:47:34 +000028447else
cristy32f75d42015-06-05 18:46:23 +000028448 _pkg_short_errors_supported=no
cristy3ed852e2009-09-05 21:47:34 +000028449fi
cristy32f75d42015-06-05 18:46:23 +000028450 if test $_pkg_short_errors_supported = yes; then
28451 ZLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "zlib >= 1.0.0" 2>&1`
cristy3ed852e2009-09-05 21:47:34 +000028452 else
cristy32f75d42015-06-05 18:46:23 +000028453 ZLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "zlib >= 1.0.0" 2>&1`
28454 fi
28455 # Put the nasty error message in config.log where it belongs
28456 echo "$ZLIB_PKG_ERRORS" >&5
28457
28458 have_zlib=no
28459elif test $pkg_failed = untried; then
28460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28461$as_echo "no" >&6; }
28462 have_zlib=no
28463else
28464 ZLIB_CFLAGS=$pkg_cv_ZLIB_CFLAGS
28465 ZLIB_LIBS=$pkg_cv_ZLIB_LIBS
28466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28467$as_echo "yes" >&6; }
28468 have_zlib=yes
28469fi
28470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28471$as_echo "" >&6; }
28472fi
28473
28474if test "$have_zlib" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000028475
cristy8b350f62009-11-15 23:12:43 +000028476$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028477
cristy32f75d42015-06-05 18:46:23 +000028478 CFLAGS="$ZLIB_CFLAGS $CFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000028479fi
cristy32f75d42015-06-05 18:46:23 +000028480
cristy73bd4a52010-10-05 11:24:23 +000028481 if test "$have_zlib" = 'yes'; then
28482 ZLIB_DELEGATE_TRUE=
28483 ZLIB_DELEGATE_FALSE='#'
28484else
28485 ZLIB_DELEGATE_TRUE='#'
28486 ZLIB_DELEGATE_FALSE=
28487fi
28488
cristy3ed852e2009-09-05 21:47:34 +000028489
28490
cristy32f75d42015-06-05 18:46:23 +000028491
28492
cristy5eef09f2012-10-16 12:08:28 +000028493# whether modules are built or not.
28494with_ltdl='yes'
28495have_ltdl='no'
28496LTDL_LIBS=''
28497if test "$build_modules" != 'no' ; then
cristyad38abe2012-12-23 23:03:21 +000028498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28499$as_echo "-------------------------------------------------------------" >&6; }
cristy5eef09f2012-10-16 12:08:28 +000028500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libltdl" >&5
28501$as_echo_n "checking for libltdl... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28503$as_echo "" >&6; }
cristy5eef09f2012-10-16 12:08:28 +000028504 failed=0
28505 passed=0
28506 ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default"
28507if test "x$ac_cv_header_ltdl_h" = xyes; then :
28508 passed=`expr $passed + 1`
28509else
28510 failed=`expr $failed + 1`
28511fi
28512
28513
28514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlinit in -lltdl" >&5
28515$as_echo_n "checking for lt_dlinit in -lltdl... " >&6; }
28516if ${ac_cv_lib_ltdl_lt_dlinit+:} false; then :
28517 $as_echo_n "(cached) " >&6
28518else
28519 ac_check_lib_save_LIBS=$LIBS
28520LIBS="-lltdl $LIBS"
28521cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28522/* end confdefs.h. */
28523
28524/* Override any GCC internal prototype to avoid an error.
28525 Use char because int might match the return type of a GCC
28526 builtin and then its argument prototype would still apply. */
28527#ifdef __cplusplus
28528extern "C"
28529#endif
28530char lt_dlinit ();
28531int
28532main ()
28533{
28534return lt_dlinit ();
28535 ;
28536 return 0;
28537}
28538_ACEOF
28539if ac_fn_c_try_link "$LINENO"; then :
28540 ac_cv_lib_ltdl_lt_dlinit=yes
28541else
28542 ac_cv_lib_ltdl_lt_dlinit=no
28543fi
28544rm -f core conftest.err conftest.$ac_objext \
28545 conftest$ac_exeext conftest.$ac_ext
28546LIBS=$ac_check_lib_save_LIBS
28547fi
28548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
28549$as_echo "$ac_cv_lib_ltdl_lt_dlinit" >&6; }
28550if test "x$ac_cv_lib_ltdl_lt_dlinit" = xyes; then :
28551 passed=`expr $passed + 1`
28552else
28553 failed=`expr $failed + 1`
28554fi
28555
28556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libltdl package is complete" >&5
28557$as_echo_n "checking if libltdl package is complete... " >&6; }
28558 if test $passed -gt 0 ; then
28559 if test $failed -gt 0 ; then
28560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28561$as_echo "no -- some components failed test" >&6; }
28562 have_ltdl='no (failed tests)'
28563 else
28564 LTDL_LIBS='-lltdl'
28565 LIBS="$LTDL_LIBS $LIBS"
28566
28567$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
28568
28569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28570$as_echo "yes" >&6; }
28571 have_ltdl='yes'
28572 fi
28573 else
28574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28575$as_echo "no" >&6; }
28576 fi
cristyaf4cbf32012-10-16 23:47:41 +000028577 if test "$have_ltdl" != 'yes' ; then
28578 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28579$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28580as_fn_error 1 "libltdl is required for modules build
28581See \`config.log' for more details" "$LINENO" 5; }
28582 fi
cristy5eef09f2012-10-16 12:08:28 +000028583fi
28584 if test "$have_ltdl" != 'no'; then
28585 WITH_LTDL_TRUE=
28586 WITH_LTDL_FALSE='#'
28587else
28588 WITH_LTDL_TRUE='#'
28589 WITH_LTDL_FALSE=
28590fi
28591
28592
cristy3ed852e2009-09-05 21:47:34 +000028593#
28594# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
28595#
28596LIB_DL=''
28597if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000028598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000028599$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028600if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028601 $as_echo_n "(cached) " >&6
28602else
28603 ac_check_lib_save_LIBS=$LIBS
28604LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028605cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028606/* end confdefs.h. */
28607
28608/* Override any GCC internal prototype to avoid an error.
28609 Use char because int might match the return type of a GCC
28610 builtin and then its argument prototype would still apply. */
28611#ifdef __cplusplus
28612extern "C"
28613#endif
28614char dlopen ();
28615int
28616main ()
28617{
28618return dlopen ();
28619 ;
28620 return 0;
28621}
28622_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028623if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028624 ac_cv_lib_dl_dlopen=yes
28625else
cristy8b350f62009-11-15 23:12:43 +000028626 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000028627fi
cristy8b350f62009-11-15 23:12:43 +000028628rm -f core conftest.err conftest.$ac_objext \
28629 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028630LIBS=$ac_check_lib_save_LIBS
28631fi
cristy8b350f62009-11-15 23:12:43 +000028632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000028633$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000028634if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028635 LIB_DL='-ldl'
28636fi
28637
28638 LIBS="$LIB_DL $LIBS"
28639fi
28640
28641
28642
28643#
cristy5a3dc992014-12-05 19:50:04 +000028644# Set Apple font directory.
28645#
28646
28647# Check whether --with-apple-font-dir was given.
28648if test "${with_apple_font_dir+set}" = set; then :
28649 withval=$with_apple_font_dir; with_apple_font_dir=$withval
28650else
28651 with_apple_font_dir='default'
28652fi
28653
28654
28655if test "$with_apple_font_dir" != 'default'; then
28656 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-apple-font-dir=$with_apple_font_dir "
28657fi
28658
28659
28660#
cristy3ed852e2009-09-05 21:47:34 +000028661# Check for Autotrace delegate library.
28662#
28663
28664# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000028665if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028666 withval=$with_autotrace; with_autotrace=$withval
28667else
28668 with_autotrace='no'
28669fi
28670
28671
28672if test "$with_autotrace" != 'yes'; then
28673 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
28674fi
28675
28676have_autotrace='no'
28677AUTOTRACE_CFLAGS=""
28678AUTOTRACE_LIBS=""
28679AUTOTRACE_PKG=""
28680if test "x$with_autotrace" = "xyes"; then
cristy32f75d42015-06-05 18:46:23 +000028681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristyad38abe2012-12-23 23:03:21 +000028682$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000028683
28684pkg_failed=no
28685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
28686$as_echo_n "checking for AUTOTRACE... " >&6; }
28687
28688if test -n "$AUTOTRACE_CFLAGS"; then
28689 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
28690 elif test -n "$PKG_CONFIG"; then
28691 if test -n "$PKG_CONFIG" && \
28692 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28693 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28694 ac_status=$?
28695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28696 test $ac_status = 0; }; then
28697 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000028698 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000028699else
28700 pkg_failed=yes
28701fi
28702 else
28703 pkg_failed=untried
28704fi
28705if test -n "$AUTOTRACE_LIBS"; then
28706 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
28707 elif test -n "$PKG_CONFIG"; then
28708 if test -n "$PKG_CONFIG" && \
28709 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28710 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28711 ac_status=$?
28712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28713 test $ac_status = 0; }; then
28714 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000028715 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000028716else
28717 pkg_failed=yes
28718fi
28719 else
28720 pkg_failed=untried
28721fi
28722
28723
28724
28725if test $pkg_failed = yes; then
cristy146497a2015-05-17 22:46:16 +000028726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28727$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000028728
28729if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28730 _pkg_short_errors_supported=yes
28731else
28732 _pkg_short_errors_supported=no
28733fi
28734 if test $_pkg_short_errors_supported = yes; then
cristy146497a2015-05-17 22:46:16 +000028735 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "autotrace >= 0.31.1" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000028736 else
cristy146497a2015-05-17 22:46:16 +000028737 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "autotrace >= 0.31.1" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000028738 fi
28739 # Put the nasty error message in config.log where it belongs
28740 echo "$AUTOTRACE_PKG_ERRORS" >&5
28741
cristy146497a2015-05-17 22:46:16 +000028742 have_autotrace=no
cristy73bd4a52010-10-05 11:24:23 +000028743elif test $pkg_failed = untried; then
cristy146497a2015-05-17 22:46:16 +000028744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28745$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000028746 have_autotrace=no
28747else
28748 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
28749 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
28750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28751$as_echo "yes" >&6; }
28752 have_autotrace=yes
28753fi
cristy32f75d42015-06-05 18:46:23 +000028754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristyad38abe2012-12-23 23:03:21 +000028755$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028756fi
28757
28758if test "$have_autotrace" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000028759
cristy8b350f62009-11-15 23:12:43 +000028760$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028761
cristy32f75d42015-06-05 18:46:23 +000028762 CFLAGS="$AUTOTRACE_CFLAGS $CFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000028763fi
28764
cristy73bd4a52010-10-05 11:24:23 +000028765 if test "$have_autotrace" = 'yes'; then
28766 AUTOTRACE_DELEGATE_TRUE=
28767 AUTOTRACE_DELEGATE_FALSE='#'
28768else
28769 AUTOTRACE_DELEGATE_TRUE='#'
28770 AUTOTRACE_DELEGATE_FALSE=
28771fi
28772
cristy3ed852e2009-09-05 21:47:34 +000028773
28774
28775
28776
28777#
28778# Check for Display Postscript delegate library.
28779#
28780
28781# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000028782if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028783 withval=$with_dps; with_dps=$withval
28784else
28785 with_dps='yes'
28786fi
28787
28788
28789if test "$with_dps" != 'yes'; then
28790 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
28791fi
28792
28793have_dps='no'
28794DPS_LIBS=''
28795if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28797$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000028799$as_echo_n "checking for DPS... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28801$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028802 failed=0
28803 passed=0
28804 PERSIST_CPPFLAGS="$CPPFLAGS"
28805 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000028806 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 +000028807if test "x$ac_cv_header_DPS_dpsXclient_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028808 passed=`expr $passed + 1`
28809else
28810 failed=`expr $failed + 1`
28811fi
28812
28813
28814 # DPS issues:
28815 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
28816 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
28817 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
28818 # ImageMagick itself doesn't use -lXt.
28819 have_libdps='no'
28820 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000028821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028822$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028823if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028824 $as_echo_n "(cached) " >&6
28825else
28826 ac_check_lib_save_LIBS=$LIBS
28827LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028828cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028829/* end confdefs.h. */
28830
28831/* Override any GCC internal prototype to avoid an error.
28832 Use char because int might match the return type of a GCC
28833 builtin and then its argument prototype would still apply. */
28834#ifdef __cplusplus
28835extern "C"
28836#endif
28837char DPSInitialize ();
28838int
28839main ()
28840{
28841return DPSInitialize ();
28842 ;
28843 return 0;
28844}
28845_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028846if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028847 ac_cv_lib_dps_DPSInitialize=yes
28848else
cristy8b350f62009-11-15 23:12:43 +000028849 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028850fi
cristy8b350f62009-11-15 23:12:43 +000028851rm -f core conftest.err conftest.$ac_objext \
28852 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028853LIBS=$ac_check_lib_save_LIBS
28854fi
cristy8b350f62009-11-15 23:12:43 +000028855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028856$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028857if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028858 have_libdps='yes'
28859else
28860 have_libdps='no'
28861fi
28862
28863 if test "$have_libdps" != 'yes'; then
28864 # Unset cache variable so we can try again.
28865 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000028866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028867$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028868if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028869 $as_echo_n "(cached) " >&6
28870else
28871 ac_check_lib_save_LIBS=$LIBS
28872LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028873cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028874/* end confdefs.h. */
28875
28876/* Override any GCC internal prototype to avoid an error.
28877 Use char because int might match the return type of a GCC
28878 builtin and then its argument prototype would still apply. */
28879#ifdef __cplusplus
28880extern "C"
28881#endif
28882char DPSInitialize ();
28883int
28884main ()
28885{
28886return DPSInitialize ();
28887 ;
28888 return 0;
28889}
28890_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028891if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028892 ac_cv_lib_dps_DPSInitialize=yes
28893else
cristy8b350f62009-11-15 23:12:43 +000028894 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028895fi
cristy8b350f62009-11-15 23:12:43 +000028896rm -f core conftest.err conftest.$ac_objext \
28897 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028898LIBS=$ac_check_lib_save_LIBS
28899fi
cristy8b350f62009-11-15 23:12:43 +000028900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028901$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028902if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028903 have_libdps='yes'
28904else
28905 have_libdps='no'
28906fi
28907
28908 if test "$have_libdps" = 'yes'; then
28909 LIBDPS_XT='-lXt'
28910 fi
28911 fi
28912 if test "$have_libdps" = 'yes'; then
28913 passed=`expr $passed + 1`
28914 else
28915 failed=`expr $failed + 1`
28916 fi
cristy8b350f62009-11-15 23:12:43 +000028917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000028918$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028919if ${ac_cv_lib_dpstk_XDPSPixelsPerPoint+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028920 $as_echo_n "(cached) " >&6
28921else
28922 ac_check_lib_save_LIBS=$LIBS
28923LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028924cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028925/* end confdefs.h. */
28926
28927/* Override any GCC internal prototype to avoid an error.
28928 Use char because int might match the return type of a GCC
28929 builtin and then its argument prototype would still apply. */
28930#ifdef __cplusplus
28931extern "C"
28932#endif
28933char XDPSPixelsPerPoint ();
28934int
28935main ()
28936{
28937return XDPSPixelsPerPoint ();
28938 ;
28939 return 0;
28940}
28941_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028942if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028943 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
28944else
cristy8b350f62009-11-15 23:12:43 +000028945 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000028946fi
cristy8b350f62009-11-15 23:12:43 +000028947rm -f core conftest.err conftest.$ac_objext \
28948 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028949LIBS=$ac_check_lib_save_LIBS
28950fi
cristy8b350f62009-11-15 23:12:43 +000028951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000028952$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristyda16f162011-02-19 23:52:17 +000028953if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028954 passed=`expr $passed + 1`
28955else
28956 failed=`expr $failed + 1`
28957fi
28958
cristy8b350f62009-11-15 23:12:43 +000028959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028960$as_echo_n "checking if DPS package is complete... " >&6; }
28961 if test $passed -gt 0; then
28962 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28964$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028965 have_dps='no (failed tests)'
28966 CPPFLAGS="$PERSIST_CPPFLAGS"
28967 else
28968 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
28969 LIBS="$DPS_LIBS $LIBS"
28970
cristy8b350f62009-11-15 23:12:43 +000028971$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028972
cristyad38abe2012-12-23 23:03:21 +000028973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28974$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028975 have_dps='yes'
28976 fi
28977 else
cristyad38abe2012-12-23 23:03:21 +000028978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28979$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028980 CPPFLAGS=$PERSIST_CPPFLAGS
28981 fi
28982fi
cristy73bd4a52010-10-05 11:24:23 +000028983 if test "$have_dps" = 'yes'; then
28984 DPS_DELEGATE_TRUE=
28985 DPS_DELEGATE_FALSE='#'
28986else
28987 DPS_DELEGATE_TRUE='#'
28988 DPS_DELEGATE_FALSE=
28989fi
28990
cristy3ed852e2009-09-05 21:47:34 +000028991
28992
28993
28994#
cristy430a7312010-01-21 20:44:04 +000028995# Set DejaVu font directory.
28996#
28997
28998# Check whether --with-dejavu-font-dir was given.
28999if test "${with_dejavu_font_dir+set}" = set; then :
29000 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
29001else
29002 with_dejavu_font_dir='default'
29003fi
29004
29005
29006if test "$with_dejavu_font_dir" != 'default'; then
29007 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
29008fi
29009
29010
29011#
cristy3ed852e2009-09-05 21:47:34 +000029012# Check for FFTW delegate library.
29013#
29014
29015# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000029016if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029017 withval=$with_fftw; with_fftw=$withval
29018else
29019 with_fftw='yes'
29020fi
29021
29022
29023if test "$with_fftw" != 'yes'; then
29024 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
29025fi
29026
cristy81beccd2011-10-03 18:17:24 +000029027have_fftw='no'
cristy32f75d42015-06-05 18:46:23 +000029028FFTW_CFLAGS=""
29029FFTW_LIBS=""
29030FFTW_PKG=""
29031if test "x$with_fftw" = "xyes"; then
29032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristyad38abe2012-12-23 23:03:21 +000029033$as_echo "-------------------------------------------------------------" >&6; }
cristy32f75d42015-06-05 18:46:23 +000029034
29035pkg_failed=no
29036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw3" >&5
29037$as_echo_n "checking for fftw3... " >&6; }
29038
29039if test -n "$fftw3_CFLAGS"; then
29040 pkg_cv_fftw3_CFLAGS="$fftw3_CFLAGS"
29041 elif test -n "$PKG_CONFIG"; then
29042 if test -n "$PKG_CONFIG" && \
29043 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fftw3 >= 3.0.0\""; } >&5
29044 ($PKG_CONFIG --exists --print-errors "fftw3 >= 3.0.0") 2>&5
29045 ac_status=$?
29046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29047 test $ac_status = 0; }; then
29048 pkg_cv_fftw3_CFLAGS=`$PKG_CONFIG --cflags "fftw3 >= 3.0.0" 2>/dev/null`
29049 test "x$?" != "x0" && pkg_failed=yes
cristy81beccd2011-10-03 18:17:24 +000029050else
cristy32f75d42015-06-05 18:46:23 +000029051 pkg_failed=yes
29052fi
29053 else
29054 pkg_failed=untried
29055fi
29056if test -n "$fftw3_LIBS"; then
29057 pkg_cv_fftw3_LIBS="$fftw3_LIBS"
29058 elif test -n "$PKG_CONFIG"; then
29059 if test -n "$PKG_CONFIG" && \
29060 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fftw3 >= 3.0.0\""; } >&5
29061 ($PKG_CONFIG --exists --print-errors "fftw3 >= 3.0.0") 2>&5
29062 ac_status=$?
29063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29064 test $ac_status = 0; }; then
29065 pkg_cv_fftw3_LIBS=`$PKG_CONFIG --libs "fftw3 >= 3.0.0" 2>/dev/null`
29066 test "x$?" != "x0" && pkg_failed=yes
29067else
29068 pkg_failed=yes
29069fi
29070 else
29071 pkg_failed=untried
cristy3ed852e2009-09-05 21:47:34 +000029072fi
29073
cristy81beccd2011-10-03 18:17:24 +000029074
cristy81beccd2011-10-03 18:17:24 +000029075
cristy32f75d42015-06-05 18:46:23 +000029076if test $pkg_failed = yes; then
29077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29078$as_echo "no" >&6; }
cristy81beccd2011-10-03 18:17:24 +000029079
cristy32f75d42015-06-05 18:46:23 +000029080if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29081 _pkg_short_errors_supported=yes
29082else
29083 _pkg_short_errors_supported=no
29084fi
29085 if test $_pkg_short_errors_supported = yes; then
29086 fftw3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fftw3 >= 3.0.0" 2>&1`
cristy81beccd2011-10-03 18:17:24 +000029087 else
cristy32f75d42015-06-05 18:46:23 +000029088 fftw3_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fftw3 >= 3.0.0" 2>&1`
29089 fi
29090 # Put the nasty error message in config.log where it belongs
29091 echo "$fftw3_PKG_ERRORS" >&5
29092
29093 have_fftw=no
29094elif test $pkg_failed = untried; then
29095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29096$as_echo "no" >&6; }
29097 have_fftw=no
29098else
29099 fftw3_CFLAGS=$pkg_cv_fftw3_CFLAGS
29100 fftw3_LIBS=$pkg_cv_fftw3_LIBS
29101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29102$as_echo "yes" >&6; }
29103 have_fftw=yes
29104fi
29105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29106$as_echo "" >&6; }
29107fi
29108
29109if test "$have_fftw" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000029110
cristy8b350f62009-11-15 23:12:43 +000029111$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029112
cristyb74ab6e2015-06-06 12:39:54 +000029113 FFTW_CFLAGS="$fftw3_CFLAGS"
29114 FFTW_LIBS="$fftw3_LIBS"
cristy32f75d42015-06-05 18:46:23 +000029115 CFLAGS="$fftw3_CFLAGS $CFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000029116fi
cristy32f75d42015-06-05 18:46:23 +000029117
cristy73bd4a52010-10-05 11:24:23 +000029118 if test "$have_fftw" = 'yes'; then
29119 FFTW_DELEGATE_TRUE=
29120 FFTW_DELEGATE_FALSE='#'
29121else
29122 FFTW_DELEGATE_TRUE='#'
29123 FFTW_DELEGATE_FALSE=
29124fi
29125
cristy3ed852e2009-09-05 21:47:34 +000029126
29127
29128
cristy32f75d42015-06-05 18:46:23 +000029129
cristy3ed852e2009-09-05 21:47:34 +000029130#
29131# Check for FlashPIX delegate library.
29132#
29133
29134# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000029135if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029136 withval=$with_fpx; with_fpx=$withval
29137else
29138 with_fpx='yes'
29139fi
29140
29141
29142if test "$with_fpx" != 'yes'; then
29143 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
29144fi
29145
29146have_fpx='no'
29147FPX_LIBS=''
29148if test "$with_fpx" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29150$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000029152$as_echo_n "checking for FlashPIX... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29154$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029155 failed=0
29156 passed=0
29157 ac_ext=cpp
29158ac_cpp='$CXXCPP $CPPFLAGS'
29159ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29160ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29161ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29162
29163
cristy8b350f62009-11-15 23:12:43 +000029164ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029165if test "x$ac_cv_header_fpxlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029166 passed=`expr $passed + 1`
29167else
29168 failed=`expr $failed + 1`
29169fi
29170
29171
cristy8b350f62009-11-15 23:12:43 +000029172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000029173$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029174if ${ac_cv_lib_fpx_FPX_OpenImageByFilename+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029175 $as_echo_n "(cached) " >&6
29176else
29177 ac_check_lib_save_LIBS=$LIBS
29178LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029179cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029180/* end confdefs.h. */
29181
29182/* Override any GCC internal prototype to avoid an error.
29183 Use char because int might match the return type of a GCC
29184 builtin and then its argument prototype would still apply. */
29185#ifdef __cplusplus
29186extern "C"
29187#endif
29188char FPX_OpenImageByFilename ();
29189int
29190main ()
29191{
29192return FPX_OpenImageByFilename ();
29193 ;
29194 return 0;
29195}
29196_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029197if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029198 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
29199else
cristy8b350f62009-11-15 23:12:43 +000029200 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000029201fi
cristy8b350f62009-11-15 23:12:43 +000029202rm -f core conftest.err conftest.$ac_objext \
29203 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029204LIBS=$ac_check_lib_save_LIBS
29205fi
cristy8b350f62009-11-15 23:12:43 +000029206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000029207$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristyda16f162011-02-19 23:52:17 +000029208if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029209 passed=`expr $passed + 1`
29210else
29211 failed=`expr $failed + 1`
29212fi
29213
29214 ac_ext=c
29215ac_cpp='$CPP $CPPFLAGS'
29216ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29217ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29218ac_compiler_gnu=$ac_cv_c_compiler_gnu
29219
cristy8b350f62009-11-15 23:12:43 +000029220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029221$as_echo_n "checking if FlashPIX package is complete... " >&6; }
29222 if test $passed -gt 0; then
29223 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29225$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029226 have_fpx='no (failed tests)'
29227 else
29228 FPX_LIBS='-lfpx'
29229
cristy8b350f62009-11-15 23:12:43 +000029230$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029231
cristyad38abe2012-12-23 23:03:21 +000029232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29233$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029234 have_fpx='yes'
29235 PERLMAINCC="$CXX"
29236 fi
29237 else
cristyad38abe2012-12-23 23:03:21 +000029238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29239$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029240 fi
29241fi
cristy73bd4a52010-10-05 11:24:23 +000029242 if test "$have_fpx" = 'yes'; then
29243 FPX_DELEGATE_TRUE=
29244 FPX_DELEGATE_FALSE='#'
29245else
29246 FPX_DELEGATE_TRUE='#'
29247 FPX_DELEGATE_FALSE=
29248fi
29249
cristy3ed852e2009-09-05 21:47:34 +000029250
cristy853d9902014-08-21 18:50:43 +000029251
29252
29253#
29254# Check for DJVU delegate library.
29255#
29256
29257# Check whether --with-djvu was given.
29258if test "${with_djvu+set}" = set; then :
29259 withval=$with_djvu; with_djvu=$withval
29260else
29261 with_djvu='yes'
29262fi
29263
29264
29265if test "$with_djvu" != 'yes'; then
29266 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
29267fi
29268
29269have_djvu='no'
cristy32f75d42015-06-05 18:46:23 +000029270DJVU_CFLAGS=""
29271DJVU_LIBS=""
29272DJVU_PKG=""
29273if test "x$with_djvu" = "xyes"; then
29274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy853d9902014-08-21 18:50:43 +000029275$as_echo "-------------------------------------------------------------" >&6; }
cristy32f75d42015-06-05 18:46:23 +000029276
29277pkg_failed=no
29278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvuapi" >&5
29279$as_echo_n "checking for ddjvuapi... " >&6; }
29280
29281if test -n "$ddjvuapi_CFLAGS"; then
29282 pkg_cv_ddjvuapi_CFLAGS="$ddjvuapi_CFLAGS"
29283 elif test -n "$PKG_CONFIG"; then
29284 if test -n "$PKG_CONFIG" && \
29285 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ddjvuapi >= 3.5.0\""; } >&5
29286 ($PKG_CONFIG --exists --print-errors "ddjvuapi >= 3.5.0") 2>&5
29287 ac_status=$?
29288 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29289 test $ac_status = 0; }; then
29290 pkg_cv_ddjvuapi_CFLAGS=`$PKG_CONFIG --cflags "ddjvuapi >= 3.5.0" 2>/dev/null`
29291 test "x$?" != "x0" && pkg_failed=yes
cristy853d9902014-08-21 18:50:43 +000029292else
cristy32f75d42015-06-05 18:46:23 +000029293 pkg_failed=yes
29294fi
29295 else
29296 pkg_failed=untried
29297fi
29298if test -n "$ddjvuapi_LIBS"; then
29299 pkg_cv_ddjvuapi_LIBS="$ddjvuapi_LIBS"
29300 elif test -n "$PKG_CONFIG"; then
29301 if test -n "$PKG_CONFIG" && \
29302 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ddjvuapi >= 3.5.0\""; } >&5
29303 ($PKG_CONFIG --exists --print-errors "ddjvuapi >= 3.5.0") 2>&5
29304 ac_status=$?
29305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29306 test $ac_status = 0; }; then
29307 pkg_cv_ddjvuapi_LIBS=`$PKG_CONFIG --libs "ddjvuapi >= 3.5.0" 2>/dev/null`
29308 test "x$?" != "x0" && pkg_failed=yes
29309else
29310 pkg_failed=yes
29311fi
29312 else
29313 pkg_failed=untried
cristy853d9902014-08-21 18:50:43 +000029314fi
29315
29316
cristy853d9902014-08-21 18:50:43 +000029317
cristy32f75d42015-06-05 18:46:23 +000029318if test $pkg_failed = yes; then
29319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29320$as_echo "no" >&6; }
cristy853d9902014-08-21 18:50:43 +000029321
cristy32f75d42015-06-05 18:46:23 +000029322if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29323 _pkg_short_errors_supported=yes
29324else
29325 _pkg_short_errors_supported=no
29326fi
29327 if test $_pkg_short_errors_supported = yes; then
29328 ddjvuapi_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ddjvuapi >= 3.5.0" 2>&1`
cristy853d9902014-08-21 18:50:43 +000029329 else
cristy32f75d42015-06-05 18:46:23 +000029330 ddjvuapi_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ddjvuapi >= 3.5.0" 2>&1`
29331 fi
29332 # Put the nasty error message in config.log where it belongs
29333 echo "$ddjvuapi_PKG_ERRORS" >&5
29334
29335 have_djvu=no
29336elif test $pkg_failed = untried; then
29337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29338$as_echo "no" >&6; }
29339 have_djvu=no
29340else
29341 ddjvuapi_CFLAGS=$pkg_cv_ddjvuapi_CFLAGS
29342 ddjvuapi_LIBS=$pkg_cv_ddjvuapi_LIBS
29343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29344$as_echo "yes" >&6; }
29345 have_djvu=yes
29346fi
29347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29348$as_echo "" >&6; }
29349fi
29350
29351if test "$have_djvu" = 'yes'; then
cristy853d9902014-08-21 18:50:43 +000029352
29353$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
29354
cristyc83c2cc2015-06-06 16:35:26 +000029355 DJVU_CFLAGS="$ddjvuapi_CFLAGS"
29356 DJVU_LIBS="$ddjvuapi_LIBS"
29357 CFLAGS="$ddjvuapi_CFLAGS $CFLAGS"
cristy853d9902014-08-21 18:50:43 +000029358fi
cristy32f75d42015-06-05 18:46:23 +000029359
cristy853d9902014-08-21 18:50:43 +000029360 if test "$have_djvu" = 'yes'; then
29361 DJVU_DELEGATE_TRUE=
29362 DJVU_DELEGATE_FALSE='#'
29363else
29364 DJVU_DELEGATE_TRUE='#'
29365 DJVU_DELEGATE_FALSE=
29366fi
29367
29368
cristy3ed852e2009-09-05 21:47:34 +000029369
29370
cristy32f75d42015-06-05 18:46:23 +000029371
cristy3ed852e2009-09-05 21:47:34 +000029372#
29373# Check for fontconfig delegate library.
29374#
29375
29376# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000029377if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029378 withval=$with_fontconfig; with_fontconfig=$withval
29379else
cristyfc3d0222012-02-07 15:05:57 +000029380 with_fontconfig='yes'
cristy3ed852e2009-09-05 21:47:34 +000029381fi
29382
29383
29384if test "$with_fontconfig" != 'yes'; then
29385 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
29386fi
29387
29388have_fontconfig='no'
29389FONTCONFIG_CFLAGS=""
29390FONTCONFIG_LIBS=""
29391FONTCONFIG_PKG=""
29392if test "x$with_fontconfig" = "xyes"; then
cristy32f75d42015-06-05 18:46:23 +000029393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristyad38abe2012-12-23 23:03:21 +000029394$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029395
29396pkg_failed=no
29397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
29398$as_echo_n "checking for FONTCONFIG... " >&6; }
29399
29400if test -n "$FONTCONFIG_CFLAGS"; then
29401 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
29402 elif test -n "$PKG_CONFIG"; then
29403 if test -n "$PKG_CONFIG" && \
29404 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
29405 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
29406 ac_status=$?
29407 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29408 test $ac_status = 0; }; then
29409 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000029410 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000029411else
29412 pkg_failed=yes
29413fi
29414 else
29415 pkg_failed=untried
29416fi
29417if test -n "$FONTCONFIG_LIBS"; then
29418 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
29419 elif test -n "$PKG_CONFIG"; then
29420 if test -n "$PKG_CONFIG" && \
29421 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
29422 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
29423 ac_status=$?
29424 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29425 test $ac_status = 0; }; then
29426 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000029427 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000029428else
29429 pkg_failed=yes
29430fi
29431 else
29432 pkg_failed=untried
29433fi
29434
29435
29436
29437if test $pkg_failed = yes; then
cristy146497a2015-05-17 22:46:16 +000029438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29439$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029440
29441if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29442 _pkg_short_errors_supported=yes
29443else
29444 _pkg_short_errors_supported=no
29445fi
29446 if test $_pkg_short_errors_supported = yes; then
cristy146497a2015-05-17 22:46:16 +000029447 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fontconfig >= 2.1.0" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000029448 else
cristy146497a2015-05-17 22:46:16 +000029449 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fontconfig >= 2.1.0" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000029450 fi
29451 # Put the nasty error message in config.log where it belongs
29452 echo "$FONTCONFIG_PKG_ERRORS" >&5
29453
cristy146497a2015-05-17 22:46:16 +000029454 have_fontconfig=no
cristy73bd4a52010-10-05 11:24:23 +000029455elif test $pkg_failed = untried; then
cristy146497a2015-05-17 22:46:16 +000029456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29457$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029458 have_fontconfig=no
29459else
29460 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
29461 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
29462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29463$as_echo "yes" >&6; }
29464 have_fontconfig=yes
29465fi
cristy32f75d42015-06-05 18:46:23 +000029466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristyad38abe2012-12-23 23:03:21 +000029467$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029468fi
29469
29470if test "$have_fontconfig" = 'yes'; then
29471
cristy8b350f62009-11-15 23:12:43 +000029472$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029473
cristy32f75d42015-06-05 18:46:23 +000029474 CFLAGS="$FONTCONFIG_CFLAGS $CFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000029475fi
29476
cristy73bd4a52010-10-05 11:24:23 +000029477 if test "$have_fontconfig" = 'yes'; then
29478 FONTCONFIG_DELEGATE_TRUE=
29479 FONTCONFIG_DELEGATE_FALSE='#'
29480else
29481 FONTCONFIG_DELEGATE_TRUE='#'
29482 FONTCONFIG_DELEGATE_FALSE=
29483fi
29484
cristy3ed852e2009-09-05 21:47:34 +000029485
29486
29487
29488
29489#
cristy03f187e2013-01-24 00:22:19 +000029490# Check for the Freetype delegate library.
cristy3ed852e2009-09-05 21:47:34 +000029491#
29492
29493# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000029494if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029495 withval=$with_freetype; with_freetype=$withval
29496else
29497 with_freetype='yes'
29498fi
29499
29500
cristy3ed852e2009-09-05 21:47:34 +000029501if test "$with_freetype" != 'yes'; then
29502 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
29503fi
29504
cristy81beccd2011-10-03 18:17:24 +000029505have_freetype='no'
cristy03f187e2013-01-24 00:22:19 +000029506FREETYPE_CFLAGS=""
29507FREETYPE_LIBS=""
29508FREETYPE_PKG=""
29509if test "x$with_freetype" = "xyes"; then
cristy32f75d42015-06-05 18:46:23 +000029510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristyad38abe2012-12-23 23:03:21 +000029511$as_echo "-------------------------------------------------------------" >&6; }
cristy03f187e2013-01-24 00:22:19 +000029512
29513pkg_failed=no
29514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5
29515$as_echo_n "checking for FREETYPE... " >&6; }
29516
29517if test -n "$FREETYPE_CFLAGS"; then
29518 pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS"
29519 elif test -n "$PKG_CONFIG"; then
29520 if test -n "$PKG_CONFIG" && \
29521 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
29522 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
29523 ac_status=$?
29524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29525 test $ac_status = 0; }; then
29526 pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000029527 test "x$?" != "x0" && pkg_failed=yes
cristy03f187e2013-01-24 00:22:19 +000029528else
29529 pkg_failed=yes
29530fi
29531 else
29532 pkg_failed=untried
29533fi
29534if test -n "$FREETYPE_LIBS"; then
29535 pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS"
29536 elif test -n "$PKG_CONFIG"; then
29537 if test -n "$PKG_CONFIG" && \
29538 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
29539 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
29540 ac_status=$?
29541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29542 test $ac_status = 0; }; then
29543 pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000029544 test "x$?" != "x0" && pkg_failed=yes
cristy03f187e2013-01-24 00:22:19 +000029545else
29546 pkg_failed=yes
29547fi
29548 else
29549 pkg_failed=untried
29550fi
29551
29552
29553
29554if test $pkg_failed = yes; then
cristy146497a2015-05-17 22:46:16 +000029555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29556$as_echo "no" >&6; }
cristy03f187e2013-01-24 00:22:19 +000029557
29558if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29559 _pkg_short_errors_supported=yes
29560else
29561 _pkg_short_errors_supported=no
29562fi
29563 if test $_pkg_short_errors_supported = yes; then
cristy146497a2015-05-17 22:46:16 +000029564 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "freetype2" 2>&1`
cristy03f187e2013-01-24 00:22:19 +000029565 else
cristy146497a2015-05-17 22:46:16 +000029566 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "freetype2" 2>&1`
cristy03f187e2013-01-24 00:22:19 +000029567 fi
29568 # Put the nasty error message in config.log where it belongs
29569 echo "$FREETYPE_PKG_ERRORS" >&5
29570
cristy146497a2015-05-17 22:46:16 +000029571 have_freetype=no
cristy03f187e2013-01-24 00:22:19 +000029572elif test $pkg_failed = untried; then
cristy146497a2015-05-17 22:46:16 +000029573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29574$as_echo "no" >&6; }
cristy03f187e2013-01-24 00:22:19 +000029575 have_freetype=no
29576else
29577 FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS
29578 FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS
29579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29580$as_echo "yes" >&6; }
29581 have_freetype=yes
29582fi
cristy32f75d42015-06-05 18:46:23 +000029583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristyad38abe2012-12-23 23:03:21 +000029584$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029585fi
29586
cristy03f187e2013-01-24 00:22:19 +000029587if test "$have_freetype" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000029588
cristy8b350f62009-11-15 23:12:43 +000029589$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029590
cristy32f75d42015-06-05 18:46:23 +000029591 CFLAGS="$FREETYPE_CFLAGS $CFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000029592fi
cristy03f187e2013-01-24 00:22:19 +000029593
cristy73bd4a52010-10-05 11:24:23 +000029594 if test "$have_freetype" = 'yes'; then
29595 FREETYPE_DELEGATE_TRUE=
29596 FREETYPE_DELEGATE_FALSE='#'
29597else
29598 FREETYPE_DELEGATE_TRUE='#'
29599 FREETYPE_DELEGATE_FALSE=
29600fi
29601
cristy3ed852e2009-09-05 21:47:34 +000029602
29603
29604
cristy03f187e2013-01-24 00:22:19 +000029605
cristy3ed852e2009-09-05 21:47:34 +000029606#
29607# Check for Ghostscript library or framework.
29608#
29609# Test for iapi.h & test for gsapi_new_instance in -lgs
29610# or -framework Ghostscript
29611
29612
29613# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000029614if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029615 withval=$with_gslib; with_gslib=$withval
29616else
29617 with_gslib='no'
29618fi
29619
29620
cristyb7931f12009-09-25 10:22:21 +000029621gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000029622if test "$with_gslib" != 'yes'; then
29623 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
29624fi
29625
29626have_gslib='no'
29627GS_LIBS=''
29628if test "$with_gslib" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29630$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000029632$as_echo_n "checking for Ghostscript... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29634$as_echo "" >&6; }
cristyb7931f12009-09-25 10:22:21 +000029635 framework=0
cristy3ed852e2009-09-05 21:47:34 +000029636 failed=0
29637 passed=0
cristy8b350f62009-11-15 23:12:43 +000029638 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 +000029639if test "x$ac_cv_header_ghostscript_iapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029640 passed=`expr $passed + 1`
29641else
29642 failed=`expr $failed + 1`
29643fi
29644
29645
cristy8b350f62009-11-15 23:12:43 +000029646 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 +000029647if test "x$ac_cv_header_ghostscript_ierrors_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029648 passed=`expr $passed + 1`
29649else
29650 failed=`expr $failed + 1`
29651fi
29652
29653
cristy73bd4a52010-10-05 11:24:23 +000029654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
29655$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029656if ${ac_cv_framework_Ghostscript_gsapi_new_instance+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000029657 $as_echo_n "(cached) " >&6
29658else
29659 ac_check_framework_save_LIBS=$LIBS
29660LIBS="-framework Ghostscript $LIBS"
29661cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29662/* end confdefs.h. */
29663
29664/* Override any GCC internal prototype to avoid an error.
29665 Use char because int might match the return type of a GCC
29666 builtin and then its argument prototype would still apply. */
29667#ifdef __cplusplus
29668extern "C"
29669#endif
29670char gsapi_new_instance ();
29671int
29672main ()
29673{
29674return gsapi_new_instance ();
29675 ;
29676 return 0;
29677}
29678_ACEOF
29679if ac_fn_c_try_link "$LINENO"; then :
29680 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
29681else
29682 ac_cv_framework_Ghostscript_gsapi_new_instance=no
29683fi
29684rm -f core conftest.err conftest.$ac_objext \
29685 conftest$ac_exeext conftest.$ac_ext
29686LIBS=$ac_check_framework_save_LIBS
29687fi
29688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
29689$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
29690if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
29691 framework=`expr $framework + 1`
29692else
29693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000029694$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029695if ${ac_cv_lib_gs_gsapi_new_instance+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029696 $as_echo_n "(cached) " >&6
29697else
29698 ac_check_lib_save_LIBS=$LIBS
29699LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029700cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029701/* end confdefs.h. */
29702
29703/* Override any GCC internal prototype to avoid an error.
29704 Use char because int might match the return type of a GCC
29705 builtin and then its argument prototype would still apply. */
29706#ifdef __cplusplus
29707extern "C"
29708#endif
29709char gsapi_new_instance ();
29710int
29711main ()
29712{
29713return gsapi_new_instance ();
29714 ;
29715 return 0;
29716}
29717_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029718if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029719 ac_cv_lib_gs_gsapi_new_instance=yes
29720else
cristy8b350f62009-11-15 23:12:43 +000029721 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000029722fi
cristy8b350f62009-11-15 23:12:43 +000029723rm -f core conftest.err conftest.$ac_objext \
29724 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029725LIBS=$ac_check_lib_save_LIBS
29726fi
cristy8b350f62009-11-15 23:12:43 +000029727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000029728$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristyda16f162011-02-19 23:52:17 +000029729if test "x$ac_cv_lib_gs_gsapi_new_instance" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029730 passed=`expr $passed + 1`
29731else
29732 failed=`expr $failed + 1`
29733fi
cristy73bd4a52010-10-05 11:24:23 +000029734
29735fi
cristy8b350f62009-11-15 23:12:43 +000029736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029737$as_echo_n "checking if Ghostscript package is complete... " >&6; }
29738 if test $passed -gt 0; then
29739 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29741$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029742 have_gslib='no (failed tests)'
29743 else
29744 if test $framework -gt 0; then
29745 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000029746 gslib_framework='yes'
cristyad38abe2012-12-23 23:03:21 +000029747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
29748$as_echo "yes, using framework." >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029749 else
cristyad38abe2012-12-23 23:03:21 +000029750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
29751$as_echo "yes, using library." >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029752 GS_LIBS='-lgs'
29753 fi
29754 LIBS="$GS_LIBS $LIBS"
29755
cristy8b350f62009-11-15 23:12:43 +000029756$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029757
29758 have_gslib='yes'
29759 fi
29760 else
cristyad38abe2012-12-23 23:03:21 +000029761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29762$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029763 fi
29764fi
cristy73bd4a52010-10-05 11:24:23 +000029765 if test "$have_gslib" = 'yes'; then
29766 GS_DELEGATE_TRUE=
29767 GS_DELEGATE_FALSE='#'
29768else
29769 GS_DELEGATE_TRUE='#'
29770 GS_DELEGATE_FALSE=
29771fi
29772
cristy3ed852e2009-09-05 21:47:34 +000029773
29774
29775# Set default font search path
29776
29777# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000029778if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029779 withval=$with_fontpath; with_fontpath=$withval
29780else
29781 with_fontpath=''
29782fi
29783
29784
29785if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
29786 with_fontpath=''
29787else
29788
29789cat >>confdefs.h <<_ACEOF
29790#define MAGICK_FONT_PATH "$with_fontpath"
29791_ACEOF
29792
29793fi
29794if test "$with_fontpath=" != ''; then
29795 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
29796fi
29797
29798# Set Ghostscript font directory
29799
29800# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000029801if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029802 withval=$with_gs_font_dir; with_gs_font_dir=$withval
29803else
29804 with_gs_font_dir='default'
29805fi
29806
29807
29808if test "$with_gs_font_dir" != 'default'; then
29809 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
29810fi
29811
29812
29813#
29814# Check for GVC delegate library.
29815#
29816
29817# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000029818if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029819 withval=$with_gvc; with_gvc=$withval
29820else
cristy86e31f32015-06-06 15:47:32 +000029821 with_gvc='yes'
cristy3ed852e2009-09-05 21:47:34 +000029822fi
29823
29824
29825if test "$with_gvc" != 'yes'; then
29826 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
29827fi
29828
29829GVC_PKG=""
29830if test "x$with_gvc" = "xyes"; then
cristy32f75d42015-06-05 18:46:23 +000029831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristyad38abe2012-12-23 23:03:21 +000029832$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029833
29834pkg_failed=no
29835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
29836$as_echo_n "checking for GVC... " >&6; }
29837
29838if test -n "$GVC_CFLAGS"; then
29839 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
29840 elif test -n "$PKG_CONFIG"; then
29841 if test -n "$PKG_CONFIG" && \
29842 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29843 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29844 ac_status=$?
29845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29846 test $ac_status = 0; }; then
29847 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000029848 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000029849else
29850 pkg_failed=yes
29851fi
29852 else
29853 pkg_failed=untried
29854fi
29855if test -n "$GVC_LIBS"; then
29856 pkg_cv_GVC_LIBS="$GVC_LIBS"
29857 elif test -n "$PKG_CONFIG"; then
29858 if test -n "$PKG_CONFIG" && \
29859 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29860 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29861 ac_status=$?
29862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29863 test $ac_status = 0; }; then
29864 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000029865 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000029866else
29867 pkg_failed=yes
29868fi
29869 else
29870 pkg_failed=untried
29871fi
29872
29873
29874
29875if test $pkg_failed = yes; then
cristy146497a2015-05-17 22:46:16 +000029876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29877$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029878
29879if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29880 _pkg_short_errors_supported=yes
29881else
29882 _pkg_short_errors_supported=no
29883fi
29884 if test $_pkg_short_errors_supported = yes; then
cristy146497a2015-05-17 22:46:16 +000029885 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libgvc >= 2.9.0" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000029886 else
cristy146497a2015-05-17 22:46:16 +000029887 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libgvc >= 2.9.0" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000029888 fi
29889 # Put the nasty error message in config.log where it belongs
29890 echo "$GVC_PKG_ERRORS" >&5
29891
cristy146497a2015-05-17 22:46:16 +000029892 have_gvc=no
cristy73bd4a52010-10-05 11:24:23 +000029893elif test $pkg_failed = untried; then
cristy146497a2015-05-17 22:46:16 +000029894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29895$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029896 have_gvc=no
29897else
29898 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
29899 GVC_LIBS=$pkg_cv_GVC_LIBS
29900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29901$as_echo "yes" >&6; }
29902 have_gvc=yes
29903fi
cristy32f75d42015-06-05 18:46:23 +000029904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristyad38abe2012-12-23 23:03:21 +000029905$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029906fi
29907
29908if test "$have_gvc" = 'yes'; then
29909
cristy8b350f62009-11-15 23:12:43 +000029910$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029911
cristy32f75d42015-06-05 18:46:23 +000029912 CFLAGS="$GVC_CFLAGS $CFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000029913fi
29914
cristy73bd4a52010-10-05 11:24:23 +000029915 if test "$have_gvc" = 'yes'; then
29916 GVC_DELEGATE_TRUE=
29917 GVC_DELEGATE_FALSE='#'
29918else
29919 GVC_DELEGATE_TRUE='#'
29920 GVC_DELEGATE_FALSE=
29921fi
29922
cristy3ed852e2009-09-05 21:47:34 +000029923
29924
29925
29926
29927#
29928# Check for JBIG delegate library.
29929#
29930
29931
29932# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000029933if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029934 withval=$with_jbig; with_jbig=$withval
29935else
29936 with_jbig='yes'
29937fi
29938
29939
29940have_jbig='no'
29941JBIG_LIBS=''
29942if test "$with_jbig" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29944$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029946$as_echo_n "checking for JBIG... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29948$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029949 failed=0
29950 passed=0
cristy8b350f62009-11-15 23:12:43 +000029951 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029952if test "x$ac_cv_header_jbig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029953 passed=`expr $passed + 1`
29954else
29955 failed=`expr $failed + 1`
29956fi
29957
29958
cristy8b350f62009-11-15 23:12:43 +000029959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000029960$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029961if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029962 $as_echo_n "(cached) " >&6
29963else
29964 ac_check_lib_save_LIBS=$LIBS
29965LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029966cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029967/* end confdefs.h. */
29968
29969/* Override any GCC internal prototype to avoid an error.
29970 Use char because int might match the return type of a GCC
29971 builtin and then its argument prototype would still apply. */
29972#ifdef __cplusplus
29973extern "C"
29974#endif
29975char jbg_dec_init ();
29976int
29977main ()
29978{
29979return jbg_dec_init ();
29980 ;
29981 return 0;
29982}
29983_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029984if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029985 ac_cv_lib_jbig_jbg_dec_init=yes
29986else
cristy8b350f62009-11-15 23:12:43 +000029987 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000029988fi
cristy8b350f62009-11-15 23:12:43 +000029989rm -f core conftest.err conftest.$ac_objext \
29990 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029991LIBS=$ac_check_lib_save_LIBS
29992fi
cristy8b350f62009-11-15 23:12:43 +000029993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000029994$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000029995if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029996 passed=`expr $passed + 1`
29997else
29998 failed=`expr $failed + 1`
29999fi
30000
cristy8b350f62009-11-15 23:12:43 +000030001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030002$as_echo_n "checking if JBIG package is complete... " >&6; }
30003 if test $passed -gt 0; then
30004 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000030005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30006$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030007 have_jbig='no (failed tests)'
30008 else
30009 JBIG_LIBS='-ljbig'
30010 LIBS="$JBIG_LIBS $LIBS"
30011
cristy8b350f62009-11-15 23:12:43 +000030012$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030013
cristyad38abe2012-12-23 23:03:21 +000030014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30015$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030016 have_jbig='yes'
30017 fi
30018 else
cristyad38abe2012-12-23 23:03:21 +000030019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30020$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030021 fi
30022fi
cristy73bd4a52010-10-05 11:24:23 +000030023 if test "$have_jbig" = 'yes'; then
30024 JBIG_DELEGATE_TRUE=
30025 JBIG_DELEGATE_FALSE='#'
30026else
30027 JBIG_DELEGATE_TRUE='#'
30028 JBIG_DELEGATE_FALSE=
30029fi
30030
cristy3ed852e2009-09-05 21:47:34 +000030031
30032
30033
30034#
30035# Check for JPEG delegate library.
30036#
30037
30038# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000030039if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030040 withval=$with_jpeg; with_jpeg=$withval
30041else
30042 with_jpeg='yes'
30043fi
30044
30045
30046if test "$with_jpeg" != 'yes'; then
30047 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
30048fi
30049
30050have_jpeg='no'
30051JPEG_LIBS=''
30052if test "$with_jpeg" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000030053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30054$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000030056$as_echo_n "checking for JPEG... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000030057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30058$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030059 failed=0
30060 passed=0
cristy8b350f62009-11-15 23:12:43 +000030061 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030062if test "x$ac_cv_header_jconfig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030063 passed=`expr $passed + 1`
30064else
30065 failed=`expr $failed + 1`
30066fi
30067
30068
cristy8b350f62009-11-15 23:12:43 +000030069 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030070if test "x$ac_cv_header_jerror_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030071 passed=`expr $passed + 1`
30072else
30073 failed=`expr $failed + 1`
30074fi
30075
30076
cristy8b350f62009-11-15 23:12:43 +000030077 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030078if test "x$ac_cv_header_jmorecfg_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030079 passed=`expr $passed + 1`
30080else
30081 failed=`expr $failed + 1`
30082fi
30083
30084
cristy8b350f62009-11-15 23:12:43 +000030085 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030086if test "x$ac_cv_header_jpeglib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030087 passed=`expr $passed + 1`
30088else
30089 failed=`expr $failed + 1`
30090fi
30091
30092
cristy8b350f62009-11-15 23:12:43 +000030093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000030094$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030095if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030096 $as_echo_n "(cached) " >&6
30097else
30098 ac_check_lib_save_LIBS=$LIBS
30099LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030100cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030101/* end confdefs.h. */
30102
30103/* Override any GCC internal prototype to avoid an error.
30104 Use char because int might match the return type of a GCC
30105 builtin and then its argument prototype would still apply. */
30106#ifdef __cplusplus
30107extern "C"
30108#endif
30109char jpeg_read_header ();
30110int
30111main ()
30112{
30113return jpeg_read_header ();
30114 ;
30115 return 0;
30116}
30117_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030118if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030119 ac_cv_lib_jpeg_jpeg_read_header=yes
30120else
cristy8b350f62009-11-15 23:12:43 +000030121 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000030122fi
cristy8b350f62009-11-15 23:12:43 +000030123rm -f core conftest.err conftest.$ac_objext \
30124 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030125LIBS=$ac_check_lib_save_LIBS
30126fi
cristy8b350f62009-11-15 23:12:43 +000030127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000030128$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristyda16f162011-02-19 23:52:17 +000030129if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030130 passed=`expr $passed + 1`
30131else
30132 failed=`expr $failed + 1`
30133fi
30134
30135
30136# Test for compatible JPEG library
30137if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000030138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000030139$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030140if ${ac_cv_jpeg_version_ok+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030141 $as_echo_n "(cached) " >&6
30142else
cristy8b350f62009-11-15 23:12:43 +000030143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030144/* end confdefs.h. */
30145#include <stdio.h>
30146#include <stdlib.h>
30147#include <jpeglib.h>
30148
30149int
30150main ()
30151{
30152
30153#if JPEG_LIB_VERSION < 62
30154#error IJG JPEG library must be version 6b or newer!
30155#endif
30156return 0;
30157
30158 ;
30159 return 0;
30160}
30161_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030162if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030163 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
30164else
cristy8b350f62009-11-15 23:12:43 +000030165 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000030166fi
cristy3ed852e2009-09-05 21:47:34 +000030167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30168fi
cristy8b350f62009-11-15 23:12:43 +000030169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000030170$as_echo "$ac_cv_jpeg_version_ok" >&6; }
30171fi
cristy8b350f62009-11-15 23:12:43 +000030172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030173$as_echo_n "checking if JPEG package is complete... " >&6; }
30174 if test $passed -gt 0; then
30175 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000030176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30177$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030178 have_jpeg='no (failed tests)'
30179 else
30180 JPEG_LIBS='-ljpeg'
30181 LIBS="$JPEG_LIBS $LIBS"
30182
cristy8b350f62009-11-15 23:12:43 +000030183$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030184
cristyad38abe2012-12-23 23:03:21 +000030185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30186$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030187 have_jpeg='yes'
30188 fi
30189 else
cristyad38abe2012-12-23 23:03:21 +000030190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30191$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030192 fi
30193fi
cristy73bd4a52010-10-05 11:24:23 +000030194 if test "$have_jpeg" = 'yes'; then
30195 JPEG_DELEGATE_TRUE=
30196 JPEG_DELEGATE_FALSE='#'
30197else
30198 JPEG_DELEGATE_TRUE='#'
30199 JPEG_DELEGATE_FALSE=
30200fi
30201
cristy3ed852e2009-09-05 21:47:34 +000030202
30203
30204
30205#
cristy3ed852e2009-09-05 21:47:34 +000030206# Check for LCMS delegate library.
30207#
30208
30209# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000030210if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030211 withval=$with_lcms; with_lcms=$withval
30212else
30213 with_lcms='yes'
30214fi
30215
cristy71203402010-06-18 13:12:03 +000030216if test "$with_lcms" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000030217 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
30218fi
30219
cristy71203402010-06-18 13:12:03 +000030220have_lcms='no'
cristy32f75d42015-06-05 18:46:23 +000030221LCMS_CFLAGS=""
30222LCMS_LIBS=""
30223LCMS_PKG=""
30224if test "x$with_lcms" = "xyes"; then
30225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristyad38abe2012-12-23 23:03:21 +000030226$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000030227
cristy32f75d42015-06-05 18:46:23 +000030228pkg_failed=no
cristyb054e072015-06-05 20:35:43 +000030229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS2" >&5
30230$as_echo_n "checking for LCMS2... " >&6; }
30231
30232if test -n "$LCMS2_CFLAGS"; then
30233 pkg_cv_LCMS2_CFLAGS="$LCMS2_CFLAGS"
30234 elif test -n "$PKG_CONFIG"; then
30235 if test -n "$PKG_CONFIG" && \
30236 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms2 >= 2.0.0\""; } >&5
30237 ($PKG_CONFIG --exists --print-errors "lcms2 >= 2.0.0") 2>&5
30238 ac_status=$?
30239 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30240 test $ac_status = 0; }; then
30241 pkg_cv_LCMS2_CFLAGS=`$PKG_CONFIG --cflags "lcms2 >= 2.0.0" 2>/dev/null`
30242 test "x$?" != "x0" && pkg_failed=yes
30243else
30244 pkg_failed=yes
30245fi
30246 else
30247 pkg_failed=untried
30248fi
30249if test -n "$LCMS2_LIBS"; then
30250 pkg_cv_LCMS2_LIBS="$LCMS2_LIBS"
30251 elif test -n "$PKG_CONFIG"; then
30252 if test -n "$PKG_CONFIG" && \
30253 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms2 >= 2.0.0\""; } >&5
30254 ($PKG_CONFIG --exists --print-errors "lcms2 >= 2.0.0") 2>&5
30255 ac_status=$?
30256 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30257 test $ac_status = 0; }; then
30258 pkg_cv_LCMS2_LIBS=`$PKG_CONFIG --libs "lcms2 >= 2.0.0" 2>/dev/null`
30259 test "x$?" != "x0" && pkg_failed=yes
30260else
30261 pkg_failed=yes
30262fi
30263 else
30264 pkg_failed=untried
30265fi
30266
30267
30268
30269if test $pkg_failed = yes; then
30270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30271$as_echo "no" >&6; }
30272
30273if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30274 _pkg_short_errors_supported=yes
30275else
30276 _pkg_short_errors_supported=no
30277fi
30278 if test $_pkg_short_errors_supported = yes; then
30279 LCMS2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lcms2 >= 2.0.0" 2>&1`
30280 else
30281 LCMS2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lcms2 >= 2.0.0" 2>&1`
30282 fi
30283 # Put the nasty error message in config.log where it belongs
30284 echo "$LCMS2_PKG_ERRORS" >&5
30285
30286 have_lcms=no
30287elif test $pkg_failed = untried; then
30288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30289$as_echo "no" >&6; }
30290 have_lcms=no
30291else
30292 LCMS2_CFLAGS=$pkg_cv_LCMS2_CFLAGS
30293 LCMS2_LIBS=$pkg_cv_LCMS2_LIBS
30294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30295$as_echo "yes" >&6; }
30296 have_lcms=yes
30297fi
30298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30299$as_echo "" >&6; }
30300fi
30301
30302if test "$have_lcms" = 'yes'; then
30303
30304$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
30305
cristyb74ab6e2015-06-06 12:39:54 +000030306 LCMS_CFLAGS="$LCMS2_CFLAGS"
30307 LCMS_LIBS="$LCMS2_LIBS"
cristyb054e072015-06-05 20:35:43 +000030308 CFLAGS="$LCMS2_CFLAGS $CFLAGS"
cristyd6ac47f2015-06-06 13:46:55 +000030309 ac_fn_c_check_header_mongrel "$LINENO" "lcms2/lcms2.h" "ac_cv_header_lcms2_lcms2_h" "$ac_includes_default"
30310if test "x$ac_cv_header_lcms2_lcms2_h" = xyes; then :
30311 have_lcms_header='yes'
30312fi
30313
30314
30315 if test "$have_lcms_header" = 'yes'; then
30316
30317$as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
30318
cristybc8ef1c2015-06-06 14:32:21 +000030319 else
30320
30321$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
30322
cristyd6ac47f2015-06-06 13:46:55 +000030323 fi
cristy32f75d42015-06-05 18:46:23 +000030324fi
30325
30326 if test "$have_lcms" = 'yes'; then
cristy73bd4a52010-10-05 11:24:23 +000030327 LCMS_DELEGATE_TRUE=
30328 LCMS_DELEGATE_FALSE='#'
30329else
30330 LCMS_DELEGATE_TRUE='#'
30331 LCMS_DELEGATE_FALSE=
30332fi
30333
cristy71203402010-06-18 13:12:03 +000030334
cristy3ed852e2009-09-05 21:47:34 +000030335
30336
30337
30338#
cristy99db3872014-01-01 15:11:34 +000030339# Check for the OpenJP2 delegate library.
30340#
30341
30342# Check whether --with-openjp2 was given.
30343if test "${with_openjp2+set}" = set; then :
30344 withval=$with_openjp2; with_openjp2=$withval
30345else
30346 with_openjp2='yes'
30347fi
30348
30349
30350if test "$with_openjp2" != 'yes'; then
30351 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openjp2=$with_openjp2 "
30352fi
30353
30354have_openjp2='no'
30355LIBOPENJP2_CFLAGS=""
30356LIBOPENJP2_LIBS=""
30357LIBOPENJP2_PKG=""
30358if test "x$with_openjp2" = "xyes"; then
cristy32f75d42015-06-05 18:46:23 +000030359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy99db3872014-01-01 15:11:34 +000030360$as_echo "-------------------------------------------------------------" >&6; }
30361
30362pkg_failed=no
30363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBOPENJP2" >&5
30364$as_echo_n "checking for LIBOPENJP2... " >&6; }
30365
30366if test -n "$LIBOPENJP2_CFLAGS"; then
30367 pkg_cv_LIBOPENJP2_CFLAGS="$LIBOPENJP2_CFLAGS"
30368 elif test -n "$PKG_CONFIG"; then
30369 if test -n "$PKG_CONFIG" && \
cristybc964932014-05-08 21:45:03 +000030370 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libopenjp2 >= 2.1.0\""; } >&5
30371 ($PKG_CONFIG --exists --print-errors "libopenjp2 >= 2.1.0") 2>&5
cristy99db3872014-01-01 15:11:34 +000030372 ac_status=$?
30373 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30374 test $ac_status = 0; }; then
cristybc964932014-05-08 21:45:03 +000030375 pkg_cv_LIBOPENJP2_CFLAGS=`$PKG_CONFIG --cflags "libopenjp2 >= 2.1.0" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000030376 test "x$?" != "x0" && pkg_failed=yes
cristy99db3872014-01-01 15:11:34 +000030377else
30378 pkg_failed=yes
30379fi
30380 else
30381 pkg_failed=untried
30382fi
30383if test -n "$LIBOPENJP2_LIBS"; then
30384 pkg_cv_LIBOPENJP2_LIBS="$LIBOPENJP2_LIBS"
30385 elif test -n "$PKG_CONFIG"; then
30386 if test -n "$PKG_CONFIG" && \
cristybc964932014-05-08 21:45:03 +000030387 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libopenjp2 >= 2.1.0\""; } >&5
30388 ($PKG_CONFIG --exists --print-errors "libopenjp2 >= 2.1.0") 2>&5
cristy99db3872014-01-01 15:11:34 +000030389 ac_status=$?
30390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30391 test $ac_status = 0; }; then
cristybc964932014-05-08 21:45:03 +000030392 pkg_cv_LIBOPENJP2_LIBS=`$PKG_CONFIG --libs "libopenjp2 >= 2.1.0" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000030393 test "x$?" != "x0" && pkg_failed=yes
cristy99db3872014-01-01 15:11:34 +000030394else
30395 pkg_failed=yes
30396fi
30397 else
30398 pkg_failed=untried
30399fi
30400
30401
30402
30403if test $pkg_failed = yes; then
cristy146497a2015-05-17 22:46:16 +000030404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30405$as_echo "no" >&6; }
cristy99db3872014-01-01 15:11:34 +000030406
30407if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30408 _pkg_short_errors_supported=yes
30409else
30410 _pkg_short_errors_supported=no
30411fi
30412 if test $_pkg_short_errors_supported = yes; then
cristy146497a2015-05-17 22:46:16 +000030413 LIBOPENJP2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libopenjp2 >= 2.1.0" 2>&1`
cristy99db3872014-01-01 15:11:34 +000030414 else
cristy146497a2015-05-17 22:46:16 +000030415 LIBOPENJP2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libopenjp2 >= 2.1.0" 2>&1`
cristy99db3872014-01-01 15:11:34 +000030416 fi
30417 # Put the nasty error message in config.log where it belongs
30418 echo "$LIBOPENJP2_PKG_ERRORS" >&5
30419
cristy146497a2015-05-17 22:46:16 +000030420 have_openjp2=no
cristy99db3872014-01-01 15:11:34 +000030421elif test $pkg_failed = untried; then
cristy146497a2015-05-17 22:46:16 +000030422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30423$as_echo "no" >&6; }
cristy99db3872014-01-01 15:11:34 +000030424 have_openjp2=no
30425else
30426 LIBOPENJP2_CFLAGS=$pkg_cv_LIBOPENJP2_CFLAGS
30427 LIBOPENJP2_LIBS=$pkg_cv_LIBOPENJP2_LIBS
30428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30429$as_echo "yes" >&6; }
30430 have_openjp2=yes
30431fi
cristy32f75d42015-06-05 18:46:23 +000030432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy99db3872014-01-01 15:11:34 +000030433$as_echo "" >&6; }
30434fi
30435
30436if test "$have_openjp2" = 'yes'; then
30437
30438$as_echo "#define LIBOPENJP2_DELEGATE 1" >>confdefs.h
30439
cristy32f75d42015-06-05 18:46:23 +000030440 CFLAGS="$LIBOPENJP2_CFLAGS $CFLAGS"
cristy99db3872014-01-01 15:11:34 +000030441fi
30442
30443 if test "$have_openjp2" = 'yes'; then
30444 LIBOPENJP2_DELEGATE_TRUE=
30445 LIBOPENJP2_DELEGATE_FALSE='#'
30446else
30447 LIBOPENJP2_DELEGATE_TRUE='#'
30448 LIBOPENJP2_DELEGATE_FALSE=
30449fi
30450
30451
30452
30453
30454
30455
30456#
cristy3ed852e2009-09-05 21:47:34 +000030457# Check for the LQR (Liquid Rescale) delegate library.
30458#
30459
30460# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000030461if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030462 withval=$with_lqr; with_lqr=$withval
30463else
30464 with_lqr='yes'
30465fi
30466
30467
30468if test "$with_lqr" != 'yes'; then
30469 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
30470fi
30471
30472have_lqr='no'
30473LQR_CFLAGS=""
30474LQR_LIBS=""
30475LQR_PKG=""
30476if test "x$with_lqr" = "xyes"; then
cristy32f75d42015-06-05 18:46:23 +000030477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristyad38abe2012-12-23 23:03:21 +000030478$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030479
30480pkg_failed=no
30481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
30482$as_echo_n "checking for LQR... " >&6; }
30483
30484if test -n "$LQR_CFLAGS"; then
30485 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
30486 elif test -n "$PKG_CONFIG"; then
30487 if test -n "$PKG_CONFIG" && \
30488 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
30489 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
30490 ac_status=$?
30491 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30492 test $ac_status = 0; }; then
30493 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000030494 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000030495else
30496 pkg_failed=yes
30497fi
30498 else
30499 pkg_failed=untried
30500fi
30501if test -n "$LQR_LIBS"; then
30502 pkg_cv_LQR_LIBS="$LQR_LIBS"
30503 elif test -n "$PKG_CONFIG"; then
30504 if test -n "$PKG_CONFIG" && \
30505 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
30506 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
30507 ac_status=$?
30508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30509 test $ac_status = 0; }; then
30510 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000030511 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000030512else
30513 pkg_failed=yes
30514fi
30515 else
30516 pkg_failed=untried
30517fi
30518
30519
30520
30521if test $pkg_failed = yes; then
cristy146497a2015-05-17 22:46:16 +000030522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30523$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030524
30525if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30526 _pkg_short_errors_supported=yes
30527else
30528 _pkg_short_errors_supported=no
30529fi
30530 if test $_pkg_short_errors_supported = yes; then
cristy146497a2015-05-17 22:46:16 +000030531 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lqr-1 >= 0.1.0" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000030532 else
cristy146497a2015-05-17 22:46:16 +000030533 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lqr-1 >= 0.1.0" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000030534 fi
30535 # Put the nasty error message in config.log where it belongs
30536 echo "$LQR_PKG_ERRORS" >&5
30537
cristy146497a2015-05-17 22:46:16 +000030538 have_lqr=no
cristy73bd4a52010-10-05 11:24:23 +000030539elif test $pkg_failed = untried; then
cristy146497a2015-05-17 22:46:16 +000030540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30541$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030542 have_lqr=no
30543else
30544 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
30545 LQR_LIBS=$pkg_cv_LQR_LIBS
30546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30547$as_echo "yes" >&6; }
30548 have_lqr=yes
30549fi
cristy32f75d42015-06-05 18:46:23 +000030550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristyad38abe2012-12-23 23:03:21 +000030551$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030552fi
30553
30554if test "$have_lqr" = 'yes'; then
30555
cristy8b350f62009-11-15 23:12:43 +000030556$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030557
cristy32f75d42015-06-05 18:46:23 +000030558 CFLAGS="$LQR_CFLAGS $CFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000030559fi
30560
cristy73bd4a52010-10-05 11:24:23 +000030561 if test "$have_lqr" = 'yes'; then
30562 LQR_DELEGATE_TRUE=
30563 LQR_DELEGATE_FALSE='#'
30564else
30565 LQR_DELEGATE_TRUE='#'
30566 LQR_DELEGATE_FALSE=
30567fi
30568
cristy3ed852e2009-09-05 21:47:34 +000030569
30570
30571
30572
cristy81beccd2011-10-03 18:17:24 +000030573# Disable LZMA (lzma library)
cristyfbb0ef02010-12-19 02:32:11 +000030574
30575# Check whether --with-lzma was given.
30576if test "${with_lzma+set}" = set; then :
30577 withval=$with_lzma; with_lzma=$withval
30578else
30579 with_lzma='yes'
30580fi
30581
cristy81beccd2011-10-03 18:17:24 +000030582if test "$with_lzma" != 'yes' ; then
cristyfbb0ef02010-12-19 02:32:11 +000030583 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma "
30584fi
30585
cristyb94e5002011-11-14 13:20:10 +000030586LZMA_PKG=""
30587if test "x$with_lzma" = "xyes"; then
cristy32f75d42015-06-05 18:46:23 +000030588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristyad38abe2012-12-23 23:03:21 +000030589$as_echo "-------------------------------------------------------------" >&6; }
cristyb94e5002011-11-14 13:20:10 +000030590
30591pkg_failed=no
30592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5
cristyfbb0ef02010-12-19 02:32:11 +000030593$as_echo_n "checking for LZMA... " >&6; }
cristyb94e5002011-11-14 13:20:10 +000030594
30595if test -n "$LZMA_CFLAGS"; then
30596 pkg_cv_LZMA_CFLAGS="$LZMA_CFLAGS"
30597 elif test -n "$PKG_CONFIG"; then
30598 if test -n "$PKG_CONFIG" && \
30599 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30600 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30601 ac_status=$?
30602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30603 test $ac_status = 0; }; then
30604 pkg_cv_LZMA_CFLAGS=`$PKG_CONFIG --cflags "liblzma >= 2.9.0" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000030605 test "x$?" != "x0" && pkg_failed=yes
cristyb94e5002011-11-14 13:20:10 +000030606else
30607 pkg_failed=yes
30608fi
30609 else
30610 pkg_failed=untried
30611fi
30612if test -n "$LZMA_LIBS"; then
30613 pkg_cv_LZMA_LIBS="$LZMA_LIBS"
30614 elif test -n "$PKG_CONFIG"; then
30615 if test -n "$PKG_CONFIG" && \
30616 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30617 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30618 ac_status=$?
30619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30620 test $ac_status = 0; }; then
30621 pkg_cv_LZMA_LIBS=`$PKG_CONFIG --libs "liblzma >= 2.9.0" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000030622 test "x$?" != "x0" && pkg_failed=yes
cristyb94e5002011-11-14 13:20:10 +000030623else
30624 pkg_failed=yes
30625fi
30626 else
30627 pkg_failed=untried
30628fi
30629
30630
30631
30632if test $pkg_failed = yes; then
cristy146497a2015-05-17 22:46:16 +000030633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30634$as_echo "no" >&6; }
cristyb94e5002011-11-14 13:20:10 +000030635
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
cristy146497a2015-05-17 22:46:16 +000030642 LZMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "liblzma >= 2.9.0" 2>&1`
cristyb94e5002011-11-14 13:20:10 +000030643 else
cristy146497a2015-05-17 22:46:16 +000030644 LZMA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "liblzma >= 2.9.0" 2>&1`
cristyb94e5002011-11-14 13:20:10 +000030645 fi
30646 # Put the nasty error message in config.log where it belongs
30647 echo "$LZMA_PKG_ERRORS" >&5
30648
cristy146497a2015-05-17 22:46:16 +000030649 have_lzma=no
cristyb94e5002011-11-14 13:20:10 +000030650elif test $pkg_failed = untried; then
cristy146497a2015-05-17 22:46:16 +000030651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30652$as_echo "no" >&6; }
cristyb94e5002011-11-14 13:20:10 +000030653 have_lzma=no
30654else
30655 LZMA_CFLAGS=$pkg_cv_LZMA_CFLAGS
30656 LZMA_LIBS=$pkg_cv_LZMA_LIBS
30657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30658$as_echo "yes" >&6; }
30659 have_lzma=yes
30660fi
cristy32f75d42015-06-05 18:46:23 +000030661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristyad38abe2012-12-23 23:03:21 +000030662$as_echo "" >&6; }
cristyfbb0ef02010-12-19 02:32:11 +000030663fi
30664
cristyb94e5002011-11-14 13:20:10 +000030665if test "$have_lzma" = 'yes'; then
cristyfbb0ef02010-12-19 02:32:11 +000030666
30667$as_echo "#define LZMA_DELEGATE 1" >>confdefs.h
30668
cristy32f75d42015-06-05 18:46:23 +000030669 CFLAGS="$LZMA_CFLAGS $CFLAGS"
cristyfbb0ef02010-12-19 02:32:11 +000030670fi
cristyb94e5002011-11-14 13:20:10 +000030671
cristyfbb0ef02010-12-19 02:32:11 +000030672 if test "$have_lzma" = 'yes'; then
30673 LZMA_DELEGATE_TRUE=
30674 LZMA_DELEGATE_FALSE='#'
30675else
30676 LZMA_DELEGATE_TRUE='#'
30677 LZMA_DELEGATE_FALSE=
30678fi
30679
30680
30681
30682
cristyb94e5002011-11-14 13:20:10 +000030683
cristy3ed852e2009-09-05 21:47:34 +000030684#
30685# Check for the OpenEXR delegate library.
30686#
30687
30688# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000030689if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030690 withval=$with_openexr; with_openexr=$withval
30691else
30692 with_openexr='yes'
30693fi
30694
30695
30696if test "$with_openexr" != 'yes'; then
30697 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
30698fi
30699
30700have_openexr='no'
30701OPENEXR_CFLAGS=""
30702OPENEXR_LIBS=""
30703OPENEXR_PKG=""
30704if test "x$with_openexr" = "xyes"; then
cristy32f75d42015-06-05 18:46:23 +000030705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristyad38abe2012-12-23 23:03:21 +000030706$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030707
30708pkg_failed=no
30709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
30710$as_echo_n "checking for OPENEXR... " >&6; }
30711
30712if test -n "$OPENEXR_CFLAGS"; then
30713 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
30714 elif test -n "$PKG_CONFIG"; then
30715 if test -n "$PKG_CONFIG" && \
30716 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30717 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30718 ac_status=$?
30719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30720 test $ac_status = 0; }; then
30721 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000030722 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000030723else
30724 pkg_failed=yes
30725fi
30726 else
30727 pkg_failed=untried
30728fi
30729if test -n "$OPENEXR_LIBS"; then
30730 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
30731 elif test -n "$PKG_CONFIG"; then
30732 if test -n "$PKG_CONFIG" && \
30733 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30734 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30735 ac_status=$?
30736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30737 test $ac_status = 0; }; then
30738 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000030739 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000030740else
30741 pkg_failed=yes
30742fi
30743 else
30744 pkg_failed=untried
30745fi
30746
30747
30748
30749if test $pkg_failed = yes; then
cristy146497a2015-05-17 22:46:16 +000030750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30751$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030752
30753if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30754 _pkg_short_errors_supported=yes
30755else
30756 _pkg_short_errors_supported=no
30757fi
30758 if test $_pkg_short_errors_supported = yes; then
cristy146497a2015-05-17 22:46:16 +000030759 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "OpenEXR >= 1.0.6" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000030760 else
cristy146497a2015-05-17 22:46:16 +000030761 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "OpenEXR >= 1.0.6" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000030762 fi
30763 # Put the nasty error message in config.log where it belongs
30764 echo "$OPENEXR_PKG_ERRORS" >&5
30765
cristy146497a2015-05-17 22:46:16 +000030766 have_openexr=no
cristy73bd4a52010-10-05 11:24:23 +000030767elif test $pkg_failed = untried; then
cristy146497a2015-05-17 22:46:16 +000030768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30769$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030770 have_openexr=no
30771else
30772 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
30773 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
30774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30775$as_echo "yes" >&6; }
30776 have_openexr=yes
30777fi
cristy32f75d42015-06-05 18:46:23 +000030778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristyad38abe2012-12-23 23:03:21 +000030779$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030780fi
30781
30782if test "$have_openexr" = 'yes'; then
30783
cristy8b350f62009-11-15 23:12:43 +000030784$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030785
cristy32f75d42015-06-05 18:46:23 +000030786 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000030787fi
30788
cristy73bd4a52010-10-05 11:24:23 +000030789 if test "$have_openexr" = 'yes'; then
30790 OPENEXR_DELEGATE_TRUE=
30791 OPENEXR_DELEGATE_FALSE='#'
30792else
30793 OPENEXR_DELEGATE_TRUE='#'
30794 OPENEXR_DELEGATE_FALSE=
30795fi
30796
cristy3ed852e2009-09-05 21:47:34 +000030797
30798
30799
30800
30801#
cristy41cbe8a2011-10-27 01:35:18 +000030802# Check for PANGO delegate library.
30803#
30804
30805# Check whether --with-pango was given.
30806if test "${with_pango+set}" = set; then :
30807 withval=$with_pango; with_pango=$withval
30808else
cristyfc3d0222012-02-07 15:05:57 +000030809 with_pango='yes'
cristy41cbe8a2011-10-27 01:35:18 +000030810fi
30811
30812
30813if test "$with_pango" != 'yes'; then
30814 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-pango=$with_pango "
30815fi
30816
30817have_pango='no'
cristya054b762012-03-26 23:16:00 +000030818have_pangocairo='no'
cristy41cbe8a2011-10-27 01:35:18 +000030819PANGO_CFLAGS=""
30820PANGO_LIBS=""
30821PANGO_PKG=""
30822if test "x$with_pango" = "xyes"; then
cristy32f75d42015-06-05 18:46:23 +000030823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy41cbe8a2011-10-27 01:35:18 +000030824$as_echo "-------------------------------------------------------------" >&6; }
30825
30826pkg_failed=no
30827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
30828$as_echo_n "checking for PANGO... " >&6; }
30829
30830if test -n "$PANGO_CFLAGS"; then
30831 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
30832 elif test -n "$PKG_CONFIG"; then
30833 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000030834 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
30835 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000030836 ac_status=$?
30837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30838 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000030839 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pangocairo >= 1.28.1" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000030840 test "x$?" != "x0" && pkg_failed=yes
cristy41cbe8a2011-10-27 01:35:18 +000030841else
30842 pkg_failed=yes
30843fi
30844 else
30845 pkg_failed=untried
30846fi
30847if test -n "$PANGO_LIBS"; then
30848 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
30849 elif test -n "$PKG_CONFIG"; then
30850 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000030851 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
30852 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000030853 ac_status=$?
30854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30855 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000030856 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pangocairo >= 1.28.1" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000030857 test "x$?" != "x0" && pkg_failed=yes
cristy41cbe8a2011-10-27 01:35:18 +000030858else
30859 pkg_failed=yes
30860fi
30861 else
30862 pkg_failed=untried
30863fi
30864
30865
30866
30867if test $pkg_failed = yes; then
cristy146497a2015-05-17 22:46:16 +000030868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30869$as_echo "no" >&6; }
cristy41cbe8a2011-10-27 01:35:18 +000030870
30871if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30872 _pkg_short_errors_supported=yes
30873else
30874 _pkg_short_errors_supported=no
30875fi
30876 if test $_pkg_short_errors_supported = yes; then
cristy146497a2015-05-17 22:46:16 +000030877 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000030878 else
cristy146497a2015-05-17 22:46:16 +000030879 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000030880 fi
30881 # Put the nasty error message in config.log where it belongs
30882 echo "$PANGO_PKG_ERRORS" >&5
30883
cristy146497a2015-05-17 22:46:16 +000030884 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000030885elif test $pkg_failed = untried; then
cristy146497a2015-05-17 22:46:16 +000030886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30887$as_echo "no" >&6; }
cristya054b762012-03-26 23:16:00 +000030888 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000030889else
30890 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
30891 PANGO_LIBS=$pkg_cv_PANGO_LIBS
30892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30893$as_echo "yes" >&6; }
cristya054b762012-03-26 23:16:00 +000030894 have_pangocairo=yes
cristy41cbe8a2011-10-27 01:35:18 +000030895fi
cristy32f75d42015-06-05 18:46:23 +000030896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy41cbe8a2011-10-27 01:35:18 +000030897$as_echo "" >&6; }
cristy7dc48ed2011-10-28 14:11:43 +000030898
30899pkg_failed=no
30900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
30901$as_echo_n "checking for PANGO... " >&6; }
30902
30903if test -n "$PANGO_CFLAGS"; then
30904 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
30905 elif test -n "$PKG_CONFIG"; then
30906 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000030907 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
30908 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000030909 ac_status=$?
30910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30911 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000030912 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pango >= 1.28.1" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000030913 test "x$?" != "x0" && pkg_failed=yes
cristy7dc48ed2011-10-28 14:11:43 +000030914else
30915 pkg_failed=yes
30916fi
30917 else
30918 pkg_failed=untried
30919fi
30920if test -n "$PANGO_LIBS"; then
30921 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
30922 elif test -n "$PKG_CONFIG"; then
30923 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000030924 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
30925 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000030926 ac_status=$?
30927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30928 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000030929 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pango >= 1.28.1" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000030930 test "x$?" != "x0" && pkg_failed=yes
cristy7dc48ed2011-10-28 14:11:43 +000030931else
30932 pkg_failed=yes
30933fi
30934 else
30935 pkg_failed=untried
30936fi
30937
30938
30939
30940if test $pkg_failed = yes; then
cristy146497a2015-05-17 22:46:16 +000030941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30942$as_echo "no" >&6; }
cristy7dc48ed2011-10-28 14:11:43 +000030943
30944if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30945 _pkg_short_errors_supported=yes
30946else
30947 _pkg_short_errors_supported=no
30948fi
30949 if test $_pkg_short_errors_supported = yes; then
cristy146497a2015-05-17 22:46:16 +000030950 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000030951 else
cristy146497a2015-05-17 22:46:16 +000030952 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000030953 fi
30954 # Put the nasty error message in config.log where it belongs
30955 echo "$PANGO_PKG_ERRORS" >&5
30956
cristy146497a2015-05-17 22:46:16 +000030957 have_pango=no
cristy7dc48ed2011-10-28 14:11:43 +000030958elif test $pkg_failed = untried; then
cristy146497a2015-05-17 22:46:16 +000030959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30960$as_echo "no" >&6; }
cristy7dc48ed2011-10-28 14:11:43 +000030961 have_pango=no
30962else
30963 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
30964 PANGO_LIBS=$pkg_cv_PANGO_LIBS
30965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30966$as_echo "yes" >&6; }
30967 have_pango=yes
30968fi
cristy32f75d42015-06-05 18:46:23 +000030969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy7dc48ed2011-10-28 14:11:43 +000030970$as_echo "" >&6; }
cristy41cbe8a2011-10-27 01:35:18 +000030971fi
30972
30973if test "$have_pango" = 'yes'; then
30974
30975$as_echo "#define PANGO_DELEGATE 1" >>confdefs.h
30976
cristy32f75d42015-06-05 18:46:23 +000030977 CFLAGS="$PANGO_CFLAGS $CFLAGS"
cristy41cbe8a2011-10-27 01:35:18 +000030978fi
30979
cristya054b762012-03-26 23:16:00 +000030980if test "$have_pangocairo" = 'yes'; then
cristy41cbe8a2011-10-27 01:35:18 +000030981
cristya054b762012-03-26 23:16:00 +000030982$as_echo "#define PANGOCAIRO_DELEGATE 1" >>confdefs.h
cristy41cbe8a2011-10-27 01:35:18 +000030983
cristy32f75d42015-06-05 18:46:23 +000030984 CFLAGS="$PANGOCAIRO_CFLAGS $CFLAGS"
cristy41cbe8a2011-10-27 01:35:18 +000030985fi
30986
30987 if test "$have_pango" = 'yes'; then
30988 PANGO_DELEGATE_TRUE=
30989 PANGO_DELEGATE_FALSE='#'
30990else
30991 PANGO_DELEGATE_TRUE='#'
30992 PANGO_DELEGATE_FALSE=
30993fi
30994
cristya054b762012-03-26 23:16:00 +000030995 if test "$have_pangocairo" = 'yes'; then
30996 PANGOCAIRO_DELEGATE_TRUE=
30997 PANGOCAIRO_DELEGATE_FALSE='#'
cristy41cbe8a2011-10-27 01:35:18 +000030998else
cristya054b762012-03-26 23:16:00 +000030999 PANGOCAIRO_DELEGATE_TRUE='#'
31000 PANGOCAIRO_DELEGATE_FALSE=
cristy41cbe8a2011-10-27 01:35:18 +000031001fi
31002
31003
31004
31005
31006
31007#
cristy3ed852e2009-09-05 21:47:34 +000031008# Check for PNG delegate library.
31009#
31010
31011# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000031012if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031013 withval=$with_png; with_png=$withval
31014else
31015 with_png='yes'
31016fi
31017
31018
31019if test "$with_png" != 'yes'; then
31020 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
31021fi
31022
cristy81beccd2011-10-03 18:17:24 +000031023have_png='no'
cristy32f75d42015-06-05 18:46:23 +000031024PNG_CFLAGS=""
31025PNG_LIBS=""
31026PNG_PKG=""
31027if test "x$with_png" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000031028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31029$as_echo "-------------------------------------------------------------" >&6; }
cristy32f75d42015-06-05 18:46:23 +000031030
31031pkg_failed=no
31032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
31033$as_echo_n "checking for PNG... " >&6; }
31034
31035if test -n "$PNG_CFLAGS"; then
31036 pkg_cv_PNG_CFLAGS="$PNG_CFLAGS"
31037 elif test -n "$PKG_CONFIG"; then
31038 if test -n "$PKG_CONFIG" && \
31039 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng >= 1.0.0\""; } >&5
31040 ($PKG_CONFIG --exists --print-errors "libpng >= 1.0.0") 2>&5
31041 ac_status=$?
31042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31043 test $ac_status = 0; }; then
31044 pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng >= 1.0.0" 2>/dev/null`
31045 test "x$?" != "x0" && pkg_failed=yes
31046else
31047 pkg_failed=yes
31048fi
31049 else
31050 pkg_failed=untried
31051fi
31052if test -n "$PNG_LIBS"; then
31053 pkg_cv_PNG_LIBS="$PNG_LIBS"
31054 elif test -n "$PKG_CONFIG"; then
31055 if test -n "$PKG_CONFIG" && \
31056 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng >= 1.0.0\""; } >&5
31057 ($PKG_CONFIG --exists --print-errors "libpng >= 1.0.0") 2>&5
31058 ac_status=$?
31059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31060 test $ac_status = 0; }; then
31061 pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng >= 1.0.0" 2>/dev/null`
31062 test "x$?" != "x0" && pkg_failed=yes
31063else
31064 pkg_failed=yes
31065fi
31066 else
31067 pkg_failed=untried
31068fi
31069
31070
31071
31072if test $pkg_failed = yes; then
31073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31074$as_echo "no" >&6; }
31075
31076if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31077 _pkg_short_errors_supported=yes
31078else
31079 _pkg_short_errors_supported=no
31080fi
31081 if test $_pkg_short_errors_supported = yes; then
31082 PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpng >= 1.0.0" 2>&1`
31083 else
31084 PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpng >= 1.0.0" 2>&1`
31085 fi
31086 # Put the nasty error message in config.log where it belongs
31087 echo "$PNG_PKG_ERRORS" >&5
31088
31089 have_png=no
31090elif test $pkg_failed = untried; then
31091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31092$as_echo "no" >&6; }
31093 have_png=no
31094else
31095 PNG_CFLAGS=$pkg_cv_PNG_CFLAGS
31096 PNG_LIBS=$pkg_cv_PNG_LIBS
31097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31098$as_echo "yes" >&6; }
31099 have_png=yes
31100fi
cristyad38abe2012-12-23 23:03:21 +000031101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31102$as_echo "" >&6; }
cristy64877302011-08-23 19:10:31 +000031103fi
31104
cristy32f75d42015-06-05 18:46:23 +000031105if test "$have_png" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000031106
cristy8b350f62009-11-15 23:12:43 +000031107$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031108
cristy32f75d42015-06-05 18:46:23 +000031109 CFLAGS="$PNG_CFLAGS $CFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000031110fi
cristy64877302011-08-23 19:10:31 +000031111
cristy73bd4a52010-10-05 11:24:23 +000031112 if test "$have_png" = 'yes'; then
31113 PNG_DELEGATE_TRUE=
31114 PNG_DELEGATE_FALSE='#'
31115else
31116 PNG_DELEGATE_TRUE='#'
31117 PNG_DELEGATE_FALSE=
31118fi
31119
cristy3ed852e2009-09-05 21:47:34 +000031120
cristy50d3f5c2011-09-10 20:09:06 +000031121
cristy3ed852e2009-09-05 21:47:34 +000031122
31123
31124#
31125# Check for RSVG delegate library.
31126#
31127
31128# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000031129if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031130 withval=$with_rsvg; with_rsvg=$withval
31131else
cristy1164d5f2012-08-15 00:58:25 +000031132 with_rsvg='no'
cristy3ed852e2009-09-05 21:47:34 +000031133fi
31134
31135
31136if test "$with_rsvg" != 'yes'; then
31137 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
31138fi
31139
31140have_rsvg='no'
31141have_cairo='no'
31142RSVG_CFLAGS=""
31143RSVG_LIBS=""
31144RSVG_PKG=""
31145if test "x$with_rsvg" = "xyes"; then
cristy32f75d42015-06-05 18:46:23 +000031146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristyad38abe2012-12-23 23:03:21 +000031147$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031148
31149pkg_failed=no
31150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
31151$as_echo_n "checking for RSVG... " >&6; }
31152
31153if test -n "$RSVG_CFLAGS"; then
31154 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
31155 elif test -n "$PKG_CONFIG"; then
31156 if test -n "$PKG_CONFIG" && \
31157 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31158 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31159 ac_status=$?
31160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31161 test $ac_status = 0; }; then
31162 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000031163 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000031164else
31165 pkg_failed=yes
31166fi
31167 else
31168 pkg_failed=untried
31169fi
31170if test -n "$RSVG_LIBS"; then
31171 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
31172 elif test -n "$PKG_CONFIG"; then
31173 if test -n "$PKG_CONFIG" && \
31174 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31175 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31176 ac_status=$?
31177 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31178 test $ac_status = 0; }; then
31179 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000031180 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000031181else
31182 pkg_failed=yes
31183fi
31184 else
31185 pkg_failed=untried
31186fi
31187
31188
31189
31190if test $pkg_failed = yes; then
cristy146497a2015-05-17 22:46:16 +000031191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31192$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031193
31194if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31195 _pkg_short_errors_supported=yes
31196else
31197 _pkg_short_errors_supported=no
31198fi
31199 if test $_pkg_short_errors_supported = yes; then
cristy146497a2015-05-17 22:46:16 +000031200 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "librsvg-2.0 >= 2.9.0" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000031201 else
cristy146497a2015-05-17 22:46:16 +000031202 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "librsvg-2.0 >= 2.9.0" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000031203 fi
31204 # Put the nasty error message in config.log where it belongs
31205 echo "$RSVG_PKG_ERRORS" >&5
31206
cristy146497a2015-05-17 22:46:16 +000031207 have_rsvg=no
cristy73bd4a52010-10-05 11:24:23 +000031208elif test $pkg_failed = untried; then
cristy146497a2015-05-17 22:46:16 +000031209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31210$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031211 have_rsvg=no
31212else
31213 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
31214 RSVG_LIBS=$pkg_cv_RSVG_LIBS
31215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31216$as_echo "yes" >&6; }
31217 have_rsvg=yes
31218fi
cristy32f75d42015-06-05 18:46:23 +000031219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristyad38abe2012-12-23 23:03:21 +000031220$as_echo "" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031221
31222pkg_failed=no
31223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
31224$as_echo_n "checking for CAIRO_SVG... " >&6; }
31225
31226if test -n "$CAIRO_SVG_CFLAGS"; then
31227 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
31228 elif test -n "$PKG_CONFIG"; then
31229 if test -n "$PKG_CONFIG" && \
31230 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31231 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31232 ac_status=$?
31233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31234 test $ac_status = 0; }; then
31235 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000031236 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000031237else
31238 pkg_failed=yes
31239fi
31240 else
31241 pkg_failed=untried
31242fi
31243if test -n "$CAIRO_SVG_LIBS"; then
31244 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
31245 elif test -n "$PKG_CONFIG"; then
31246 if test -n "$PKG_CONFIG" && \
31247 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31248 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31249 ac_status=$?
31250 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31251 test $ac_status = 0; }; then
31252 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000031253 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000031254else
31255 pkg_failed=yes
31256fi
31257 else
31258 pkg_failed=untried
31259fi
31260
31261
31262
31263if test $pkg_failed = yes; then
cristy146497a2015-05-17 22:46:16 +000031264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31265$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031266
31267if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31268 _pkg_short_errors_supported=yes
31269else
31270 _pkg_short_errors_supported=no
31271fi
31272 if test $_pkg_short_errors_supported = yes; then
cristy146497a2015-05-17 22:46:16 +000031273 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cairo-svg" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000031274 else
cristy146497a2015-05-17 22:46:16 +000031275 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cairo-svg" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000031276 fi
31277 # Put the nasty error message in config.log where it belongs
31278 echo "$CAIRO_SVG_PKG_ERRORS" >&5
31279
cristy146497a2015-05-17 22:46:16 +000031280 have_cairo=no
cristy73bd4a52010-10-05 11:24:23 +000031281elif test $pkg_failed = untried; then
cristy146497a2015-05-17 22:46:16 +000031282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31283$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031284 have_cairo=no
31285else
31286 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
31287 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
31288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31289$as_echo "yes" >&6; }
31290 have_cairo=yes
31291fi
cristy32f75d42015-06-05 18:46:23 +000031292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristyad38abe2012-12-23 23:03:21 +000031293$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031294fi
31295
31296if test "$have_rsvg" = 'yes'; then
31297
cristy8b350f62009-11-15 23:12:43 +000031298$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031299
cristy32f75d42015-06-05 18:46:23 +000031300 CFLAGS="$RSVG_CFLAGS $CFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000031301fi
31302
31303if test "$have_cairo" = 'yes'; then
31304
cristy8b350f62009-11-15 23:12:43 +000031305$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031306
cristy32f75d42015-06-05 18:46:23 +000031307 CFLAGS="$CAIRO_SVG_CFLAGS $CFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000031308fi
31309
cristy73bd4a52010-10-05 11:24:23 +000031310 if test "$have_rsvg" = 'yes'; then
31311 RSVG_DELEGATE_TRUE=
31312 RSVG_DELEGATE_FALSE='#'
31313else
31314 RSVG_DELEGATE_TRUE='#'
31315 RSVG_DELEGATE_FALSE=
31316fi
31317
31318 if test "$have_cairo" = 'yes'; then
31319 CAIRO_DELEGATE_TRUE=
31320 CAIRO_DELEGATE_FALSE='#'
31321else
31322 CAIRO_DELEGATE_TRUE='#'
31323 CAIRO_DELEGATE_FALSE=
31324fi
31325
cristy3ed852e2009-09-05 21:47:34 +000031326
31327
31328
31329
31330#
31331# Check for TIFF delegate library.
31332#
31333
31334# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000031335if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031336 withval=$with_tiff; with_tiff=$withval
31337else
31338 with_tiff='yes'
31339fi
31340
31341
31342if test "$with_tiff" != 'yes'; then
31343 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
31344fi
31345
31346have_tiff='no'
31347TIFF_LIBS=''
31348if test "$with_tiff" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000031349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31350$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000031352$as_echo_n "checking for TIFF... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000031353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31354$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031355 failed=0
31356 passed=0
cristy8b350f62009-11-15 23:12:43 +000031357 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031358if test "x$ac_cv_header_tiff_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031359 passed=`expr $passed + 1`
31360else
31361 failed=`expr $failed + 1`
31362fi
31363
31364
cristy8b350f62009-11-15 23:12:43 +000031365 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031366if test "x$ac_cv_header_tiffio_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031367 passed=`expr $passed + 1`
31368else
31369 failed=`expr $failed + 1`
31370fi
31371
31372
cristy8b350f62009-11-15 23:12:43 +000031373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031374$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031375if ${ac_cv_lib_tiff_TIFFOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031376 $as_echo_n "(cached) " >&6
31377else
31378 ac_check_lib_save_LIBS=$LIBS
31379LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031380cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031381/* end confdefs.h. */
31382
31383/* Override any GCC internal prototype to avoid an error.
31384 Use char because int might match the return type of a GCC
31385 builtin and then its argument prototype would still apply. */
31386#ifdef __cplusplus
31387extern "C"
31388#endif
31389char TIFFOpen ();
31390int
31391main ()
31392{
31393return TIFFOpen ();
31394 ;
31395 return 0;
31396}
31397_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031398if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031399 ac_cv_lib_tiff_TIFFOpen=yes
31400else
cristy8b350f62009-11-15 23:12:43 +000031401 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031402fi
cristy8b350f62009-11-15 23:12:43 +000031403rm -f core conftest.err conftest.$ac_objext \
31404 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031405LIBS=$ac_check_lib_save_LIBS
31406fi
cristy8b350f62009-11-15 23:12:43 +000031407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031408$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031409if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031410 passed=`expr $passed + 1`
31411else
31412 failed=`expr $failed + 1`
31413fi
31414
cristy8b350f62009-11-15 23:12:43 +000031415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031416$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031417if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031418 $as_echo_n "(cached) " >&6
31419else
31420 ac_check_lib_save_LIBS=$LIBS
31421LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031422cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031423/* end confdefs.h. */
31424
31425/* Override any GCC internal prototype to avoid an error.
31426 Use char because int might match the return type of a GCC
31427 builtin and then its argument prototype would still apply. */
31428#ifdef __cplusplus
31429extern "C"
31430#endif
31431char TIFFClientOpen ();
31432int
31433main ()
31434{
31435return TIFFClientOpen ();
31436 ;
31437 return 0;
31438}
31439_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031440if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031441 ac_cv_lib_tiff_TIFFClientOpen=yes
31442else
cristy8b350f62009-11-15 23:12:43 +000031443 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031444fi
cristy8b350f62009-11-15 23:12:43 +000031445rm -f core conftest.err conftest.$ac_objext \
31446 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031447LIBS=$ac_check_lib_save_LIBS
31448fi
cristy8b350f62009-11-15 23:12:43 +000031449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031450$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031451if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031452 passed=`expr $passed + 1`
31453else
31454 failed=`expr $failed + 1`
31455fi
31456
cristy8b350f62009-11-15 23:12:43 +000031457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031458$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031459if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031460 $as_echo_n "(cached) " >&6
31461else
31462 ac_check_lib_save_LIBS=$LIBS
31463LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031464cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031465/* end confdefs.h. */
31466
31467/* Override any GCC internal prototype to avoid an error.
31468 Use char because int might match the return type of a GCC
31469 builtin and then its argument prototype would still apply. */
31470#ifdef __cplusplus
31471extern "C"
31472#endif
31473char TIFFIsByteSwapped ();
31474int
31475main ()
31476{
31477return TIFFIsByteSwapped ();
31478 ;
31479 return 0;
31480}
31481_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031482if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031483 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
31484else
cristy8b350f62009-11-15 23:12:43 +000031485 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000031486fi
cristy8b350f62009-11-15 23:12:43 +000031487rm -f core conftest.err conftest.$ac_objext \
31488 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031489LIBS=$ac_check_lib_save_LIBS
31490fi
cristy8b350f62009-11-15 23:12:43 +000031491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000031492$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristyda16f162011-02-19 23:52:17 +000031493if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031494 passed=`expr $passed + 1`
31495else
31496 failed=`expr $failed + 1`
31497fi
31498
cristy8b350f62009-11-15 23:12:43 +000031499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031500$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031501if ${ac_cv_lib_tiff_TIFFReadRGBATile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031502 $as_echo_n "(cached) " >&6
31503else
31504 ac_check_lib_save_LIBS=$LIBS
31505LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031506cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031507/* end confdefs.h. */
31508
31509/* Override any GCC internal prototype to avoid an error.
31510 Use char because int might match the return type of a GCC
31511 builtin and then its argument prototype would still apply. */
31512#ifdef __cplusplus
31513extern "C"
31514#endif
31515char TIFFReadRGBATile ();
31516int
31517main ()
31518{
31519return TIFFReadRGBATile ();
31520 ;
31521 return 0;
31522}
31523_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031524if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031525 ac_cv_lib_tiff_TIFFReadRGBATile=yes
31526else
cristy8b350f62009-11-15 23:12:43 +000031527 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000031528fi
cristy8b350f62009-11-15 23:12:43 +000031529rm -f core conftest.err conftest.$ac_objext \
31530 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031531LIBS=$ac_check_lib_save_LIBS
31532fi
cristy8b350f62009-11-15 23:12:43 +000031533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000031534$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristyda16f162011-02-19 23:52:17 +000031535if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031536 passed=`expr $passed + 1`
31537else
31538 failed=`expr $failed + 1`
31539fi
31540
cristy8b350f62009-11-15 23:12:43 +000031541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031542$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031543if ${ac_cv_lib_tiff_TIFFReadRGBAStrip+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031544 $as_echo_n "(cached) " >&6
31545else
31546 ac_check_lib_save_LIBS=$LIBS
31547LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031548cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031549/* end confdefs.h. */
31550
31551/* Override any GCC internal prototype to avoid an error.
31552 Use char because int might match the return type of a GCC
31553 builtin and then its argument prototype would still apply. */
31554#ifdef __cplusplus
31555extern "C"
31556#endif
31557char TIFFReadRGBAStrip ();
31558int
31559main ()
31560{
31561return TIFFReadRGBAStrip ();
31562 ;
31563 return 0;
31564}
31565_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031566if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031567 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
31568else
cristy8b350f62009-11-15 23:12:43 +000031569 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000031570fi
cristy8b350f62009-11-15 23:12:43 +000031571rm -f core conftest.err conftest.$ac_objext \
31572 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031573LIBS=$ac_check_lib_save_LIBS
31574fi
cristy8b350f62009-11-15 23:12:43 +000031575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000031576$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristyda16f162011-02-19 23:52:17 +000031577if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031578 passed=`expr $passed + 1`
31579else
31580 failed=`expr $failed + 1`
31581fi
31582
cristy8b350f62009-11-15 23:12:43 +000031583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000031584$as_echo_n "checking if TIFF package is complete... " >&6; }
31585 if test $passed -gt 0; then
31586 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000031587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31588$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031589 have_tiff='no (failed tests)'
31590 else
31591 TIFF_LIBS='-ltiff'
31592 LIBS="$TIFF_LIBS $LIBS"
31593
cristy8b350f62009-11-15 23:12:43 +000031594$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031595
cristyad38abe2012-12-23 23:03:21 +000031596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31597$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031598 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000031599 for ac_header in tiffconf.h
31600do :
31601 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031602if test "x$ac_cv_header_tiffconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031603 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031604#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000031605_ACEOF
31606
31607fi
31608
31609done
31610
cristy8b350f62009-11-15 23:12:43 +000031611 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3f590e52011-11-14 14:29:44 +000031612 TIFFIsBigEndian TIFFReadEXIFDirectory TIFFSetErrorHandlerExt \
31613 TIFFSetTagExtender TIFFSetWarningHandlerExt \
31614 TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000031615do :
31616 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31617ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000031618if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000031619 cat >>confdefs.h <<_ACEOF
31620#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31621_ACEOF
31622
31623fi
31624done
31625
31626 fi
31627 else
cristyad38abe2012-12-23 23:03:21 +000031628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31629$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031630 fi
31631fi
cristy73bd4a52010-10-05 11:24:23 +000031632 if test "$have_tiff" = 'yes'; then
31633 TIFF_DELEGATE_TRUE=
31634 TIFF_DELEGATE_FALSE='#'
31635else
31636 TIFF_DELEGATE_TRUE='#'
31637 TIFF_DELEGATE_FALSE=
31638fi
31639
cristy3ed852e2009-09-05 21:47:34 +000031640
31641
31642
31643#
cristyb1860752011-03-14 00:27:46 +000031644# Check for WEBP delegate library.
31645#
31646
31647# Check whether --with-webp was given.
31648if test "${with_webp+set}" = set; then :
31649 withval=$with_webp; with_webp=$withval
31650else
31651 with_webp='yes'
31652fi
31653
31654
31655if test "$with_webp" != 'yes'; then
31656 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-webp=$with_webp "
31657fi
31658
31659have_webp='no'
31660WEBP_LIBS=''
31661if test "$with_webp" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000031662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31663$as_echo "-------------------------------------------------------------" >&6; }
cristyb1860752011-03-14 00:27:46 +000031664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBP" >&5
31665$as_echo_n "checking for WEBP... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000031666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31667$as_echo "" >&6; }
cristyb1860752011-03-14 00:27:46 +000031668 failed=0
31669 passed=0
31670 ac_fn_c_check_header_mongrel "$LINENO" "webp/decode.h" "ac_cv_header_webp_decode_h" "$ac_includes_default"
31671if test "x$ac_cv_header_webp_decode_h" = xyes; then :
31672 passed=`expr $passed + 1`
31673else
31674 failed=`expr $failed + 1`
31675fi
31676
31677
cristy6d670312013-03-22 23:23:01 +000031678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPPictureInitInternal in -lwebp" >&5
31679$as_echo_n "checking for WebPPictureInitInternal in -lwebp... " >&6; }
31680if ${ac_cv_lib_webp_WebPPictureInitInternal+:} false; then :
cristyb1860752011-03-14 00:27:46 +000031681 $as_echo_n "(cached) " >&6
31682else
31683 ac_check_lib_save_LIBS=$LIBS
31684LIBS="-lwebp $LIBS"
31685cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31686/* end confdefs.h. */
31687
31688/* Override any GCC internal prototype to avoid an error.
31689 Use char because int might match the return type of a GCC
31690 builtin and then its argument prototype would still apply. */
31691#ifdef __cplusplus
31692extern "C"
31693#endif
cristy6d670312013-03-22 23:23:01 +000031694char WebPPictureInitInternal ();
cristyb1860752011-03-14 00:27:46 +000031695int
31696main ()
31697{
cristy6d670312013-03-22 23:23:01 +000031698return WebPPictureInitInternal ();
cristyb1860752011-03-14 00:27:46 +000031699 ;
31700 return 0;
31701}
31702_ACEOF
31703if ac_fn_c_try_link "$LINENO"; then :
cristy6d670312013-03-22 23:23:01 +000031704 ac_cv_lib_webp_WebPPictureInitInternal=yes
cristyb1860752011-03-14 00:27:46 +000031705else
cristy6d670312013-03-22 23:23:01 +000031706 ac_cv_lib_webp_WebPPictureInitInternal=no
cristyb1860752011-03-14 00:27:46 +000031707fi
31708rm -f core conftest.err conftest.$ac_objext \
31709 conftest$ac_exeext conftest.$ac_ext
31710LIBS=$ac_check_lib_save_LIBS
31711fi
cristy6d670312013-03-22 23:23:01 +000031712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPPictureInitInternal" >&5
31713$as_echo "$ac_cv_lib_webp_WebPPictureInitInternal" >&6; }
31714if test "x$ac_cv_lib_webp_WebPPictureInitInternal" = xyes; then :
cristyb1860752011-03-14 00:27:46 +000031715 passed=`expr $passed + 1`
31716else
31717 failed=`expr $failed + 1`
31718fi
31719
31720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WEBP package is complete" >&5
31721$as_echo_n "checking if WEBP package is complete... " >&6; }
31722 if test $passed -gt 0; then
31723 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000031724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31725$as_echo "no -- some components failed test" >&6; }
cristyb1860752011-03-14 00:27:46 +000031726 have_webp='no (failed tests)'
31727 else
31728 WEBP_LIBS='-lwebp'
31729 LIBS="$WEBP_LIBS $LIBS"
31730
31731$as_echo "#define WEBP_DELEGATE 1" >>confdefs.h
31732
cristyad38abe2012-12-23 23:03:21 +000031733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31734$as_echo "yes" >&6; }
cristyb1860752011-03-14 00:27:46 +000031735 have_webp='yes'
31736 fi
31737 else
cristyad38abe2012-12-23 23:03:21 +000031738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31739$as_echo "no" >&6; }
cristyb1860752011-03-14 00:27:46 +000031740 fi
31741fi
31742 if test "$have_webp" = 'yes'; then
31743 WEBP_DELEGATE_TRUE=
31744 WEBP_DELEGATE_FALSE='#'
31745else
31746 WEBP_DELEGATE_TRUE='#'
31747 WEBP_DELEGATE_FALSE=
31748fi
31749
31750
31751
31752
31753#
cristy3ed852e2009-09-05 21:47:34 +000031754# Set Windows font directory.
31755#
31756
31757# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000031758if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031759 withval=$with_windows_font_dir; with_windows_font_dir=$withval
31760else
cristy5a3dc992014-12-05 19:50:04 +000031761 with_windows_font_dir='default'
cristy3ed852e2009-09-05 21:47:34 +000031762fi
31763
cristy5a3dc992014-12-05 19:50:04 +000031764
31765if test "$with_windows_font_dir" != 'default'; then
cristy3ed852e2009-09-05 21:47:34 +000031766 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
31767fi
31768
31769
31770#
31771# Check for WMF delegate library.
31772#
31773
31774# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000031775if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031776 withval=$with_wmf; with_wmf=$withval
31777else
cristy32f75d42015-06-05 18:46:23 +000031778 with_wmf='yes'
cristy3ed852e2009-09-05 21:47:34 +000031779fi
31780
31781
31782if test "$with_wmf" != 'yes'; then
31783 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
31784fi
31785
31786have_wmf='no'
cristyebc8f692015-06-16 10:36:30 +000031787WMF_LIBS=''
31788WMF_CFLAGS=''
31789OLIBS="$LIBS"
31790if test "$with_wmf" != 'no'; then
31791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF support " >&5
31792$as_echo_n "checking for WMF support ... " >&6; }
cristy32f75d42015-06-05 18:46:23 +000031793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31794$as_echo "" >&6; }
cristyebc8f692015-06-16 10:36:30 +000031795
31796 have_libwmflite='no'
31797 have_libwmf_ipa_h='no'
31798
31799 ac_fn_c_check_header_compile "$LINENO" "libwmf/ipa.h" "ac_cv_header_libwmf_ipa_h" "$FT2BUILD_H
31800"
31801if test "x$ac_cv_header_libwmf_ipa_h" = xyes; then :
31802 have_libwmf_ipa_h='yes'
cristy03f7cf92011-12-15 01:40:41 +000031803fi
31804
cristyebc8f692015-06-16 10:36:30 +000031805
31806 if test "$have_libwmf_ipa_h" = 'yes'; then
31807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_lite_create in -lwmflite" >&5
31808$as_echo_n "checking for wmf_lite_create in -lwmflite... " >&6; }
31809if ${ac_cv_lib_wmflite_wmf_lite_create+:} false; then :
31810 $as_echo_n "(cached) " >&6
31811else
31812 ac_check_lib_save_LIBS=$LIBS
31813LIBS="-lwmflite $LIBS"
31814cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31815/* end confdefs.h. */
31816
31817/* Override any GCC internal prototype to avoid an error.
31818 Use char because int might match the return type of a GCC
31819 builtin and then its argument prototype would still apply. */
31820#ifdef __cplusplus
31821extern "C"
31822#endif
31823char wmf_lite_create ();
31824int
31825main ()
31826{
31827return wmf_lite_create ();
31828 ;
31829 return 0;
31830}
31831_ACEOF
31832if ac_fn_c_try_link "$LINENO"; then :
31833 ac_cv_lib_wmflite_wmf_lite_create=yes
31834else
31835 ac_cv_lib_wmflite_wmf_lite_create=no
31836fi
31837rm -f core conftest.err conftest.$ac_objext \
31838 conftest$ac_exeext conftest.$ac_ext
31839LIBS=$ac_check_lib_save_LIBS
31840fi
31841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmflite_wmf_lite_create" >&5
31842$as_echo "$ac_cv_lib_wmflite_wmf_lite_create" >&6; }
31843if test "x$ac_cv_lib_wmflite_wmf_lite_create" = xyes; then :
31844 have_libwmflite='yes'
31845fi
31846
31847 if test "$have_libwmflite" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000031848
cristy8b350f62009-11-15 23:12:43 +000031849$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031850
cristyebc8f692015-06-16 10:36:30 +000031851 WMF_LIBS='-lwmflite'
31852 LIBS="$WMF_LIBS $LIBS"
31853 have_wmf='yes'
31854 else
31855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31856$as_echo "no -- some components failed test" >&6; }
31857 have_wmf='no (failed tests)'
31858 have_wmflite='no (failed tests)'
31859 LIBS="$OLIBS"
31860 WMF_LIBS=''
31861 fi
31862 fi
cristy3ed852e2009-09-05 21:47:34 +000031863fi
cristyebc8f692015-06-16 10:36:30 +000031864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete " >&5
31865$as_echo_n "checking if WMF package is complete ... " >&6; }
31866if test "$have_wmf" = 'yes'; then
31867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31868$as_echo "yes" >&6; }
31869else
31870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31871$as_echo "no" >&6; }
31872fi
cristy73bd4a52010-10-05 11:24:23 +000031873 if test "$have_wmf" = 'yes'; then
31874 WMF_DELEGATE_TRUE=
31875 WMF_DELEGATE_FALSE='#'
31876else
31877 WMF_DELEGATE_TRUE='#'
31878 WMF_DELEGATE_FALSE=
31879fi
31880
cristy3ed852e2009-09-05 21:47:34 +000031881
31882
31883
cristy81beccd2011-10-03 18:17:24 +000031884
cristy3ed852e2009-09-05 21:47:34 +000031885#
31886# Check for XML delegate library.
31887#
31888
31889# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000031890if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031891 withval=$with_xml; with_xml=$withval
31892else
cristyfc3d0222012-02-07 15:05:57 +000031893 with_xml='yes'
cristy3ed852e2009-09-05 21:47:34 +000031894fi
31895
31896
cristy81beccd2011-10-03 18:17:24 +000031897if test "$with_xml" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000031898 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
31899fi
31900
cristy81beccd2011-10-03 18:17:24 +000031901have_xml='no'
cristy32f75d42015-06-05 18:46:23 +000031902XML_CFLAGS=""
31903XML_LIBS=""
31904XML_PKG=""
31905if test "x$with_xml" = "xyes"; then
31906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristyad38abe2012-12-23 23:03:21 +000031907$as_echo "-------------------------------------------------------------" >&6; }
cristy32f75d42015-06-05 18:46:23 +000031908
31909pkg_failed=no
31910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
cristy81beccd2011-10-03 18:17:24 +000031911$as_echo_n "checking for XML... " >&6; }
cristy81beccd2011-10-03 18:17:24 +000031912
cristy32f75d42015-06-05 18:46:23 +000031913if test -n "$XML_CFLAGS"; then
31914 pkg_cv_XML_CFLAGS="$XML_CFLAGS"
31915 elif test -n "$PKG_CONFIG"; then
31916 if test -n "$PKG_CONFIG" && \
31917 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.0.0\""; } >&5
31918 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.0.0") 2>&5
31919 ac_status=$?
31920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31921 test $ac_status = 0; }; then
31922 pkg_cv_XML_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.0.0" 2>/dev/null`
31923 test "x$?" != "x0" && pkg_failed=yes
cristy81beccd2011-10-03 18:17:24 +000031924else
cristy32f75d42015-06-05 18:46:23 +000031925 pkg_failed=yes
31926fi
31927 else
31928 pkg_failed=untried
31929fi
31930if test -n "$XML_LIBS"; then
31931 pkg_cv_XML_LIBS="$XML_LIBS"
31932 elif test -n "$PKG_CONFIG"; then
31933 if test -n "$PKG_CONFIG" && \
31934 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.0.0\""; } >&5
31935 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.0.0") 2>&5
31936 ac_status=$?
31937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31938 test $ac_status = 0; }; then
31939 pkg_cv_XML_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.0.0" 2>/dev/null`
31940 test "x$?" != "x0" && pkg_failed=yes
31941else
31942 pkg_failed=yes
31943fi
31944 else
31945 pkg_failed=untried
31946fi
31947
31948
31949
31950if test $pkg_failed = yes; then
31951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy81beccd2011-10-03 18:17:24 +000031952$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031953
cristy32f75d42015-06-05 18:46:23 +000031954if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31955 _pkg_short_errors_supported=yes
cristy81beccd2011-10-03 18:17:24 +000031956else
cristy32f75d42015-06-05 18:46:23 +000031957 _pkg_short_errors_supported=no
cristy81beccd2011-10-03 18:17:24 +000031958fi
cristy32f75d42015-06-05 18:46:23 +000031959 if test $_pkg_short_errors_supported = yes; then
31960 XML_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0 >= 2.0.0" 2>&1`
cristy81beccd2011-10-03 18:17:24 +000031961 else
cristy32f75d42015-06-05 18:46:23 +000031962 XML_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0 >= 2.0.0" 2>&1`
31963 fi
31964 # Put the nasty error message in config.log where it belongs
31965 echo "$XML_PKG_ERRORS" >&5
31966
31967 have_xml=no
31968elif test $pkg_failed = untried; then
31969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31970$as_echo "no" >&6; }
31971 have_xml=no
31972else
31973 XML_CFLAGS=$pkg_cv_XML_CFLAGS
31974 XML_LIBS=$pkg_cv_XML_LIBS
31975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31976$as_echo "yes" >&6; }
31977 have_xml=yes
31978fi
31979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31980$as_echo "" >&6; }
31981fi
31982
31983if test "$have_xml" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000031984
cristy8b350f62009-11-15 23:12:43 +000031985$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031986
cristy32f75d42015-06-05 18:46:23 +000031987 CFLAGS="$XML_CFLAGS $CFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000031988fi
cristy32f75d42015-06-05 18:46:23 +000031989
cristy73bd4a52010-10-05 11:24:23 +000031990 if test "$have_xml" = 'yes'; then
31991 XML_DELEGATE_TRUE=
31992 XML_DELEGATE_FALSE='#'
31993else
31994 XML_DELEGATE_TRUE='#'
31995 XML_DELEGATE_FALSE=
31996fi
31997
cristy3ed852e2009-09-05 21:47:34 +000031998
31999
32000
cristy32f75d42015-06-05 18:46:23 +000032001
cristy3ed852e2009-09-05 21:47:34 +000032002# Substitute compiler name to build/link PerlMagick
32003#
32004
32005
32006#
32007# Configure install Paths
32008#
cristy7def36a2011-10-28 19:04:41 +000032009
cristy2a11bef2011-10-28 18:33:11 +000032010# Path to ImageMagick header files
cristybdabdd62013-03-04 17:43:36 +000032011INCLUDE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristye52f12f2012-12-31 15:32:36 +000032012INCLUDE_PATH="${INCLUDE_DIR}/${INCLUDE_RELATIVE_PATH}"
32013DEFINE_INCLUDE_PATH="${INCLUDE_DIR}/${INCLUDE_RELATIVE_PATH}/"
cristy2a11bef2011-10-28 18:33:11 +000032014case "${build_os}" in
32015 mingw* )
32016 DEFINE_INCLUDE_PATH=`$WinPathScript "$DEFINE_INCLUDE_PATH" 1`
32017 ;;
32018esac
32019
32020cat >>confdefs.h <<_ACEOF
32021#define INCLUDE_PATH "$DEFINE_INCLUDE_PATH"
32022_ACEOF
32023
32024
cristy3ed852e2009-09-05 21:47:34 +000032025
cristye52f12f2012-12-31 15:32:36 +000032026# Path to ImageMagick header files (arch part)
32027INCLUDEARCH_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}"
32028DEFINE_INCLUDEARCH_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}/"
32029case "${build_os}" in
32030 mingw* )
32031 DEFINE_INCLUDEARCH_PATH=`$WinPathScript "$DEFINE_INCLUDEARCH_PATH" 1`
32032 ;;
32033esac
32034
32035cat >>confdefs.h <<_ACEOF
32036#define INCLUDEARCH_PATH "$DEFINE_INCLUDE_PATH"
32037_ACEOF
32038
32039
32040
cristy3ed852e2009-09-05 21:47:34 +000032041# Subdirectory under lib to place ImageMagick lib files
32042LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
32043
32044cat >>confdefs.h <<_ACEOF
32045#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
32046_ACEOF
32047
32048
32049# Path to ImageMagick bin directory
32050EXECUTABLE_PATH="${BIN_DIR}"
32051DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
32052case "${build_os}" in
32053 mingw* )
32054 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
32055 ;;
32056esac
32057
32058cat >>confdefs.h <<_ACEOF
32059#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
32060_ACEOF
32061
32062
32063
32064# Path to ImageMagick lib
32065LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
32066DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
32067case "${build_os}" in
32068 mingw* )
32069 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
32070 ;;
32071esac
32072
32073cat >>confdefs.h <<_ACEOF
32074#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
32075_ACEOF
32076
32077
32078
cristy3ed852e2009-09-05 21:47:34 +000032079#
cristy8d0ff762013-03-10 20:33:28 +000032080# path to local binaries
32081if test "x$LIB_BIN_BASEDIRNAME" = "x"; then
32082 LIB_BIN_BASEDIRNAME="bin"
32083fi
32084
32085cat >>confdefs.h <<_ACEOF
32086#define LIB_BIN_BASEDIRNAME "$LIB_BIN_BASEDIRNAME"
32087_ACEOF
32088
32089
32090
32091if test "x$LIB_BIN_DIR" = "x"; then
32092 LIB_BIN_DIR=${LIB_BIN_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
32093fi
32094
32095
32096LIB_BIN_DIR_RELATIVE_PATH=$LIB_BIN_DIR
32097
32098LIB_BIN_DIR_PATH="${LIBRARY_PATH}/${LIB_BIN_DIR_RELATIVE_PATH}"
32099
32100
32101#
cristy01ff9f32012-12-01 18:15:29 +000032102# path to modules lib
32103if test "x$MODULES_BASEDIRNAME" = "x"; then
32104 MODULES_BASEDIRNAME="modules"
32105fi
cristy3ed852e2009-09-05 21:47:34 +000032106
32107cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000032108#define MODULES_BASEDIRNAME "$MODULES_BASEDIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000032109_ACEOF
32110
cristy01ff9f32012-12-01 18:15:29 +000032111
32112
32113if test "x$MODULES_DIRNAME" = "x"; then
cristy4bdbd342012-12-03 18:41:18 +000032114 MODULES_DIRNAME=${MODULES_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
32115else
cristy3ed852e2009-09-05 21:47:34 +000032116
32117cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000032118#define MODULES_DIRNAME "$MODULES_DIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000032119_ACEOF
32120
cristycf4a3c22012-12-02 21:47:25 +000032121fi
cristy01ff9f32012-12-01 18:15:29 +000032122
32123
cristy371d4812012-12-01 19:48:10 +000032124MODULES_RELATIVE_PATH="${MODULES_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000032125
32126MODULES_PATH="${LIBRARY_PATH}/${MODULES_RELATIVE_PATH}"
32127
32128
32129#
32130# path to coders lib
32131if test "x$CODER_DIRNAME" = "x"; then
32132 CODER_DIRNAME="coders"
32133fi
32134
32135cat >>confdefs.h <<_ACEOF
32136#define CODER_DIRNAME "$CODER_DIRNAME"
32137_ACEOF
32138
32139
32140
cristy371d4812012-12-01 19:48:10 +000032141CODER_RELATIVE_PATH="${CODER_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000032142CODER_PATH="${MODULES_PATH}/${CODER_DIRNAME}"
cristy3ed852e2009-09-05 21:47:34 +000032143
32144
32145#
32146# Subdirectory under lib to place ImageMagick filter module files
cristy01ff9f32012-12-01 18:15:29 +000032147#
32148# path to coders lib
32149if test "x$FILTER_DIRNAME" = "x"; then
32150 FILTER_DIRNAME="filters"
32151fi
cristy3ed852e2009-09-05 21:47:34 +000032152
32153cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000032154#define FILTER_DIRNAME "$FILTER_DIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000032155_ACEOF
32156
cristy3ed852e2009-09-05 21:47:34 +000032157
cristy3ed852e2009-09-05 21:47:34 +000032158
cristy371d4812012-12-01 19:48:10 +000032159FILTER_RELATIVE_PATH="${FILTER_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000032160FILTER_PATH="${MODULES_PATH}/${FILTER_DIRNAME}"
cristy3ed852e2009-09-05 21:47:34 +000032161
32162
32163#
32164# Path to ImageMagick documentation files
Cristye35bdc62015-09-19 18:29:00 -040032165DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
32166DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}"
32167DEFINE_DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032168case "${build_os}" in
32169 mingw* )
32170 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
32171 ;;
32172esac
32173
32174cat >>confdefs.h <<_ACEOF
32175#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
32176_ACEOF
32177
32178
32179
cristydd17feb2014-03-05 02:06:32 +000032180#
32181# Enable/Disable documentation
32182# Check whether --enable-docs was given.
32183if test "${enable_docs+set}" = set; then :
32184 enableval=$enable_docs; wantdocs=$enableval
32185else
cristy02272312014-03-07 00:55:25 +000032186 wantdocs=yes
cristydd17feb2014-03-05 02:06:32 +000032187fi
32188
cristy02272312014-03-07 00:55:25 +000032189 if test "$wantdocs" = "yes"; then
cristydd17feb2014-03-05 02:06:32 +000032190 INSTALL_DOC_TRUE=
32191 INSTALL_DOC_FALSE='#'
32192else
32193 INSTALL_DOC_TRUE='#'
32194 INSTALL_DOC_FALSE=
32195fi
32196
32197
cristy2a11bef2011-10-28 18:33:11 +000032198# Subdirectory to place architecture-dependent configuration files
cristybdabdd62013-03-04 17:43:36 +000032199CONFIGURE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristy45dbd322011-03-27 16:40:38 +000032200
32201cat >>confdefs.h <<_ACEOF
32202#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
32203_ACEOF
32204
cristy7def36a2011-10-28 19:04:41 +000032205CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
cristy45dbd322011-03-27 16:40:38 +000032206DEFINE_CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
32207case "${build_os}" in
32208 mingw* )
32209 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
32210 ;;
32211esac
32212
32213cat >>confdefs.h <<_ACEOF
32214#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
32215_ACEOF
32216
32217
32218
cristy2a11bef2011-10-28 18:33:11 +000032219# Subdirectory to place architecture-independent configuration files
cristybdabdd62013-03-04 17:43:36 +000032220SHARE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristy3ed852e2009-09-05 21:47:34 +000032221
32222cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032223#define SHARE_RELATIVE_PATH "$SHARE_RELATIVE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032224_ACEOF
32225
cristy670aa3c2011-11-03 00:54:00 +000032226SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
cristy4f820712011-04-01 12:35:43 +000032227DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032228case "${build_os}" in
32229 mingw* )
cristy4f820712011-04-01 12:35:43 +000032230 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
cristy3ed852e2009-09-05 21:47:34 +000032231 ;;
32232esac
32233
32234cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032235#define SHARE_PATH "$DEFINE_SHARE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032236_ACEOF
32237
32238
32239
cristy54378032012-12-04 15:52:20 +000032240#
32241# Subdirectory to place architecture-dependent configuration files.
32242if test "x$SHAREARCH_BASEDIRNAME" = "x"; then
32243 SHAREARCH_BASEDIRNAME="config"
32244fi
cristy670aa3c2011-11-03 00:54:00 +000032245
32246cat >>confdefs.h <<_ACEOF
cristy54378032012-12-04 15:52:20 +000032247#define SHAREARCH_BASEDIRNAME "$SHAREARCH_BASEDIRNAME"
cristy670aa3c2011-11-03 00:54:00 +000032248_ACEOF
32249
cristy54378032012-12-04 15:52:20 +000032250
32251
32252if test "x$SHAREARCH_DIRNAME" = "x"; then
32253 SHAREARCH_DIRNAME=${SHAREARCH_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
32254else
cristy670aa3c2011-11-03 00:54:00 +000032255
32256cat >>confdefs.h <<_ACEOF
cristy54378032012-12-04 15:52:20 +000032257#define SHAREARCH_DIRNAME "$SHAREARCH_DIRNAME"
cristy670aa3c2011-11-03 00:54:00 +000032258_ACEOF
32259
cristy54378032012-12-04 15:52:20 +000032260fi
32261
32262
32263SHAREARCH_RELATIVE_PATH="${SHAREARCH_DIRNAME}"
32264
32265SHAREARCH_PATH="${LIBRARY_PATH}/${SHAREARCH_RELATIVE_PATH}"
cristy670aa3c2011-11-03 00:54:00 +000032266
32267
cristy3ed852e2009-09-05 21:47:34 +000032268#
32269# program_transform_name is formed for use in a Makefile, so create a
32270# modified version for use in a shell script.
32271configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
32272
32273# Default delegate definitions
cristyad38abe2012-12-23 23:03:21 +000032274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32275$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000032277$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000032278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32279$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032280AutotraceDecodeDelegateDefault='autotrace'
cristy16b412d2014-12-15 11:09:48 +000032281BPGDecodeDelegateDefault='bpgdec'
32282BPGEncodeDelegateDefault='bpgenc'
cristy3d7f8062009-09-24 20:45:35 +000032283BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000032284BZIPDelegateDefault='bzip2'
32285BrowseDelegateDefault='xdg-open'
cristy3ed852e2009-09-05 21:47:34 +000032286CatDelegateDefault='cat'
32287DNGDecodeDelegateDefault='ufraw-batch'
cristy66f238e2014-05-16 12:21:48 +000032288DOCDecodeDelegateDefault='soffice'
cristy3ed852e2009-09-05 21:47:34 +000032289GVCDecodeDelegateDefault='dot'
32290DVIDecodeDelegateDefault='dvips'
32291EchoDelegateDefault='echo'
32292EditorDelegateDefault='xterm'
cristy3ed852e2009-09-05 21:47:34 +000032293ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
32294DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
32295MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
32296GnuplotDecodeDelegateDefault='gnuplot'
cristy3ed852e2009-09-05 21:47:34 +000032297HPGLDecodeDelegateDefault='hp2xx'
32298HTMLDecodeDelegateDefault='html2ps'
32299ILBMDecodeDelegateDefault='ilbmtoppm'
32300ILBMEncodeDelegateDefault='ppmtoilbm'
cristy71f53d52013-04-27 13:33:59 +000032301JXRDecodeDelegateDefault='JxrDecApp'
32302JXREncodeDelegateDefault='JxrEncApp'
cristy3ed852e2009-09-05 21:47:34 +000032303LPDelegateDefault='lp'
32304LPRDelegateDefault='lpr'
cristy3ed852e2009-09-05 21:47:34 +000032305LaunchDelegateDefault='gimp'
32306MANDelegateDefault='groff'
cristy81ab5af2013-10-06 18:28:39 +000032307MPEGDecodeDelegateDefault='avconv'
32308MPEGEncodeDelegateDefault='avconv'
cristy935c86e2010-06-05 23:50:07 +000032309MrSIDDecodeDelegateDefault='mrsidgeodecode'
cristy3ed852e2009-09-05 21:47:34 +000032310MVDelegateDefault='mv'
32311PCLDelegateDefault='pcl6'
32312PGPDecodeDelegateDefault='pgpv'
32313POVDelegateDefault='povray'
32314if test "$native_win32_build" = 'yes'; then
32315 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000032316elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000032317 PSDelegateDefault='gsc'
32318else
32319 PSDelegateDefault='gs'
32320fi
32321RLEEncodeDelegateDefault='rawtorle'
32322RMDelegateDefault='rm'
cristy5281e322012-02-09 21:12:45 +000032323RSVGDecodeDelegateDefault='rsvg-convert'
cristy3ed852e2009-09-05 21:47:34 +000032324SCANDecodeDelegateDefault='scanimage'
cristyec6934f2012-08-14 18:38:40 +000032325SVGDecodeDelegateDefault='inkscape'
cristy3ed852e2009-09-05 21:47:34 +000032326TXTDelegateDefault='enscript'
cristy16db5ed2010-07-29 13:32:02 +000032327UniconvertorDelegateDefault='uniconvertor'
cristy86e86092013-08-04 17:43:57 +000032328WebPDecodeDelegateDefault='dwebp'
32329WebPEncodeDelegateDefault='cwebp'
cristy3ed852e2009-09-05 21:47:34 +000032330WMFDecodeDelegateDefault='wmf2eps'
32331WWWDecodeDelegateDefault='curl'
32332XPSDelegateDefault='gxps'
32333ZipDelegateDefault='gzip'
32334
32335# Search for delegates
32336# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
32337set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032339$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032340if ${ac_cv_path_AutotraceDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032341 $as_echo_n "(cached) " >&6
32342else
32343 case $AutotraceDecodeDelegate in
32344 [\\/]* | ?:[\\/]*)
32345 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
32346 ;;
32347 *)
32348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32349for as_dir in $PATH
32350do
32351 IFS=$as_save_IFS
32352 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032353 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032354 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032355 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032357 break 2
32358 fi
32359done
cristy8b350f62009-11-15 23:12:43 +000032360 done
cristy3ed852e2009-09-05 21:47:34 +000032361IFS=$as_save_IFS
32362
32363 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
32364 ;;
32365esac
32366fi
32367AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
32368if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032370$as_echo "$AutotraceDecodeDelegate" >&6; }
32371else
cristy8b350f62009-11-15 23:12:43 +000032372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032373$as_echo "no" >&6; }
32374fi
32375
32376
cristy16b412d2014-12-15 11:09:48 +000032377# Extract the first word of ""$BGPDecodeDelegateDefault"", so it can be a program name with args.
32378set dummy "$BGPDecodeDelegateDefault"; ac_word=$2
32379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32380$as_echo_n "checking for $ac_word... " >&6; }
32381if ${ac_cv_path_BGPDecodeDelegate+:} false; then :
32382 $as_echo_n "(cached) " >&6
32383else
32384 case $BGPDecodeDelegate in
32385 [\\/]* | ?:[\\/]*)
32386 ac_cv_path_BGPDecodeDelegate="$BGPDecodeDelegate" # Let the user override the test with a path.
32387 ;;
32388 *)
32389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32390for as_dir in $PATH
32391do
32392 IFS=$as_save_IFS
32393 test -z "$as_dir" && as_dir=.
32394 for ac_exec_ext in '' $ac_executable_extensions; do
32395 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32396 ac_cv_path_BGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
32397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32398 break 2
32399 fi
32400done
32401 done
32402IFS=$as_save_IFS
32403
32404 test -z "$ac_cv_path_BGPDecodeDelegate" && ac_cv_path_BGPDecodeDelegate=""$BGPDecodeDelegateDefault""
32405 ;;
32406esac
32407fi
32408BGPDecodeDelegate=$ac_cv_path_BGPDecodeDelegate
32409if test -n "$BGPDecodeDelegate"; then
32410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BGPDecodeDelegate" >&5
32411$as_echo "$BGPDecodeDelegate" >&6; }
32412else
32413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32414$as_echo "no" >&6; }
32415fi
32416
32417
32418# Extract the first word of ""$BGPEncodeDelegateDefault"", so it can be a program name with args.
32419set dummy "$BGPEncodeDelegateDefault"; ac_word=$2
32420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32421$as_echo_n "checking for $ac_word... " >&6; }
32422if ${ac_cv_path_BGPEncodeDelegate+:} false; then :
32423 $as_echo_n "(cached) " >&6
32424else
32425 case $BGPEncodeDelegate in
32426 [\\/]* | ?:[\\/]*)
32427 ac_cv_path_BGPEncodeDelegate="$BGPEncodeDelegate" # Let the user override the test with a path.
32428 ;;
32429 *)
32430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32431for as_dir in $PATH
32432do
32433 IFS=$as_save_IFS
32434 test -z "$as_dir" && as_dir=.
32435 for ac_exec_ext in '' $ac_executable_extensions; do
32436 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32437 ac_cv_path_BGPEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
32438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32439 break 2
32440 fi
32441done
32442 done
32443IFS=$as_save_IFS
32444
32445 test -z "$ac_cv_path_BGPEncodeDelegate" && ac_cv_path_BGPEncodeDelegate=""$BGPEncodeDelegateDefault""
32446 ;;
32447esac
32448fi
32449BGPEncodeDelegate=$ac_cv_path_BGPEncodeDelegate
32450if test -n "$BGPEncodeDelegate"; then
32451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BGPEncodeDelegate" >&5
32452$as_echo "$BGPEncodeDelegate" >&6; }
32453else
32454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32455$as_echo "no" >&6; }
32456fi
32457
32458
cristy3ed852e2009-09-05 21:47:34 +000032459# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
32460set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032462$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032463if ${ac_cv_path_BlenderDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032464 $as_echo_n "(cached) " >&6
32465else
32466 case $BlenderDecodeDelegate in
32467 [\\/]* | ?:[\\/]*)
32468 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
32469 ;;
32470 *)
32471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32472for as_dir in $PATH
32473do
32474 IFS=$as_save_IFS
32475 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032476 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032477 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032478 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032480 break 2
32481 fi
32482done
cristy8b350f62009-11-15 23:12:43 +000032483 done
cristy3ed852e2009-09-05 21:47:34 +000032484IFS=$as_save_IFS
32485
32486 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
32487 ;;
32488esac
32489fi
32490BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
32491if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032493$as_echo "$BlenderDecodeDelegate" >&6; }
32494else
cristy8b350f62009-11-15 23:12:43 +000032495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032496$as_echo "no" >&6; }
32497fi
32498
32499
32500# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
32501set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032503$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032504if ${ac_cv_path_BZIPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032505 $as_echo_n "(cached) " >&6
32506else
32507 case $BZIPDelegate in
32508 [\\/]* | ?:[\\/]*)
32509 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
32510 ;;
32511 *)
32512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32513for as_dir in $PATH
32514do
32515 IFS=$as_save_IFS
32516 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032517 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032518 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032519 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032521 break 2
32522 fi
32523done
cristy8b350f62009-11-15 23:12:43 +000032524 done
cristy3ed852e2009-09-05 21:47:34 +000032525IFS=$as_save_IFS
32526
32527 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
32528 ;;
32529esac
32530fi
32531BZIPDelegate=$ac_cv_path_BZIPDelegate
32532if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032534$as_echo "$BZIPDelegate" >&6; }
32535else
cristy8b350f62009-11-15 23:12:43 +000032536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032537$as_echo "no" >&6; }
32538fi
32539
32540
cristyc59f0e72012-08-27 12:59:33 +000032541for ac_prog in "$BrowseDelegateDefault" google-chrome firefox konqueror mozilla lynx
32542do
32543 # Extract the first word of "$ac_prog", so it can be a program name with args.
32544set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032546$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032547if ${ac_cv_path_BrowseDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032548 $as_echo_n "(cached) " >&6
32549else
32550 case $BrowseDelegate in
32551 [\\/]* | ?:[\\/]*)
32552 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
32553 ;;
32554 *)
32555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32556for as_dir in $PATH
32557do
32558 IFS=$as_save_IFS
32559 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032560 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032561 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032562 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032564 break 2
32565 fi
32566done
cristy8b350f62009-11-15 23:12:43 +000032567 done
cristy3ed852e2009-09-05 21:47:34 +000032568IFS=$as_save_IFS
32569
cristy3ed852e2009-09-05 21:47:34 +000032570 ;;
32571esac
32572fi
32573BrowseDelegate=$ac_cv_path_BrowseDelegate
32574if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032576$as_echo "$BrowseDelegate" >&6; }
32577else
cristy8b350f62009-11-15 23:12:43 +000032578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032579$as_echo "no" >&6; }
32580fi
32581
32582
cristyc59f0e72012-08-27 12:59:33 +000032583 test -n "$BrowseDelegate" && break
32584done
32585test -n "$BrowseDelegate" || BrowseDelegate=""$BrowseDelegateDefault""
32586
cristy3ed852e2009-09-05 21:47:34 +000032587# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
32588set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032590$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032591if ${ac_cv_path_CatDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032592 $as_echo_n "(cached) " >&6
32593else
32594 case $CatDelegate in
32595 [\\/]* | ?:[\\/]*)
32596 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
32597 ;;
32598 *)
32599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32600for as_dir in $PATH
32601do
32602 IFS=$as_save_IFS
32603 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032604 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032605 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032606 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032608 break 2
32609 fi
32610done
cristy8b350f62009-11-15 23:12:43 +000032611 done
cristy3ed852e2009-09-05 21:47:34 +000032612IFS=$as_save_IFS
32613
32614 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
32615 ;;
32616esac
32617fi
32618CatDelegate=$ac_cv_path_CatDelegate
32619if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032621$as_echo "$CatDelegate" >&6; }
32622else
cristy8b350f62009-11-15 23:12:43 +000032623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032624$as_echo "no" >&6; }
32625fi
32626
32627
32628# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
32629set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032631$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032632if ${ac_cv_path_DNGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032633 $as_echo_n "(cached) " >&6
32634else
32635 case $DNGDecodeDelegate in
32636 [\\/]* | ?:[\\/]*)
32637 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
32638 ;;
32639 *)
32640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32641for as_dir in $PATH
32642do
32643 IFS=$as_save_IFS
32644 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032645 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032647 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032649 break 2
32650 fi
32651done
cristy8b350f62009-11-15 23:12:43 +000032652 done
cristy3ed852e2009-09-05 21:47:34 +000032653IFS=$as_save_IFS
32654
32655 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
32656 ;;
32657esac
32658fi
32659DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
32660if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032662$as_echo "$DNGDecodeDelegate" >&6; }
32663else
cristy8b350f62009-11-15 23:12:43 +000032664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032665$as_echo "no" >&6; }
32666fi
32667
32668
cristy66f238e2014-05-16 12:21:48 +000032669# Extract the first word of ""$DOCDecodeDelegateDefault"", so it can be a program name with args.
32670set dummy "$DOCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032672$as_echo_n "checking for $ac_word... " >&6; }
cristy66f238e2014-05-16 12:21:48 +000032673if ${ac_cv_path_DOCDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032674 $as_echo_n "(cached) " >&6
32675else
cristy66f238e2014-05-16 12:21:48 +000032676 case $DOCDecodeDelegate in
cristy3ed852e2009-09-05 21:47:34 +000032677 [\\/]* | ?:[\\/]*)
cristy66f238e2014-05-16 12:21:48 +000032678 ac_cv_path_DOCDecodeDelegate="$DOCDecodeDelegate" # Let the user override the test with a path.
cristy3ed852e2009-09-05 21:47:34 +000032679 ;;
32680 *)
32681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32682for as_dir in $PATH
32683do
32684 IFS=$as_save_IFS
32685 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032686 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032687 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy66f238e2014-05-16 12:21:48 +000032688 ac_cv_path_DOCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032690 break 2
32691 fi
32692done
cristy8b350f62009-11-15 23:12:43 +000032693 done
cristy3ed852e2009-09-05 21:47:34 +000032694IFS=$as_save_IFS
32695
cristy66f238e2014-05-16 12:21:48 +000032696 test -z "$ac_cv_path_DOCDecodeDelegate" && ac_cv_path_DOCDecodeDelegate=""$DOCDecodeDelegateDefault""
cristy3ed852e2009-09-05 21:47:34 +000032697 ;;
32698esac
32699fi
cristy66f238e2014-05-16 12:21:48 +000032700DOCDecodeDelegate=$ac_cv_path_DOCDecodeDelegate
32701if test -n "$DOCDecodeDelegate"; then
32702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOCDecodeDelegate" >&5
32703$as_echo "$DOCDecodeDelegate" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032704else
cristy8b350f62009-11-15 23:12:43 +000032705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032706$as_echo "no" >&6; }
32707fi
32708
32709
32710# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
32711set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032713$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032714if ${ac_cv_path_DVIDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032715 $as_echo_n "(cached) " >&6
32716else
32717 case $DVIDecodeDelegate in
32718 [\\/]* | ?:[\\/]*)
32719 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
32720 ;;
32721 *)
32722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32723for as_dir in $PATH
32724do
32725 IFS=$as_save_IFS
32726 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032727 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032728 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032729 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032731 break 2
32732 fi
32733done
cristy8b350f62009-11-15 23:12:43 +000032734 done
cristy3ed852e2009-09-05 21:47:34 +000032735IFS=$as_save_IFS
32736
32737 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
32738 ;;
32739esac
32740fi
32741DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
32742if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032744$as_echo "$DVIDecodeDelegate" >&6; }
32745else
cristy8b350f62009-11-15 23:12:43 +000032746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032747$as_echo "no" >&6; }
32748fi
32749
32750
cristy3ed852e2009-09-05 21:47:34 +000032751# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
32752set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032754$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032755if ${ac_cv_path_ConvertDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032756 $as_echo_n "(cached) " >&6
32757else
32758 case $ConvertDelegate in
32759 [\\/]* | ?:[\\/]*)
32760 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
32761 ;;
32762 *)
32763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32764for as_dir in $PATH
32765do
32766 IFS=$as_save_IFS
32767 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032768 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032770 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032772 break 2
32773 fi
32774done
cristy8b350f62009-11-15 23:12:43 +000032775 done
cristy3ed852e2009-09-05 21:47:34 +000032776IFS=$as_save_IFS
32777
32778 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
32779 ;;
32780esac
32781fi
32782ConvertDelegate=$ac_cv_path_ConvertDelegate
32783if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032785$as_echo "$ConvertDelegate" >&6; }
32786else
cristy8b350f62009-11-15 23:12:43 +000032787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032788$as_echo "no" >&6; }
32789fi
32790
32791
32792# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
32793set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032795$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032796if ${ac_cv_path_DisplayDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032797 $as_echo_n "(cached) " >&6
32798else
32799 case $DisplayDelegate in
32800 [\\/]* | ?:[\\/]*)
32801 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
32802 ;;
32803 *)
32804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32805for as_dir in $PATH
32806do
32807 IFS=$as_save_IFS
32808 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032809 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032810 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032811 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032813 break 2
32814 fi
32815done
cristy8b350f62009-11-15 23:12:43 +000032816 done
cristy3ed852e2009-09-05 21:47:34 +000032817IFS=$as_save_IFS
32818
32819 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
32820 ;;
32821esac
32822fi
32823DisplayDelegate=$ac_cv_path_DisplayDelegate
32824if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032826$as_echo "$DisplayDelegate" >&6; }
32827else
cristy8b350f62009-11-15 23:12:43 +000032828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032829$as_echo "no" >&6; }
32830fi
32831
32832
cristy66f238e2014-05-16 12:21:48 +000032833# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
32834set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032836$as_echo_n "checking for $ac_word... " >&6; }
cristy66f238e2014-05-16 12:21:48 +000032837if ${ac_cv_path_EchoDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032838 $as_echo_n "(cached) " >&6
32839else
cristy66f238e2014-05-16 12:21:48 +000032840 case $EchoDelegate in
cristy3ed852e2009-09-05 21:47:34 +000032841 [\\/]* | ?:[\\/]*)
cristy66f238e2014-05-16 12:21:48 +000032842 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
cristy3ed852e2009-09-05 21:47:34 +000032843 ;;
32844 *)
32845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32846for as_dir in $PATH
32847do
32848 IFS=$as_save_IFS
32849 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032850 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032851 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy66f238e2014-05-16 12:21:48 +000032852 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032854 break 2
32855 fi
32856done
cristy8b350f62009-11-15 23:12:43 +000032857 done
cristy3ed852e2009-09-05 21:47:34 +000032858IFS=$as_save_IFS
32859
cristy66f238e2014-05-16 12:21:48 +000032860 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
cristy3ed852e2009-09-05 21:47:34 +000032861 ;;
32862esac
32863fi
cristy66f238e2014-05-16 12:21:48 +000032864EchoDelegate=$ac_cv_path_EchoDelegate
32865if test -n "$EchoDelegate"; then
32866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
32867$as_echo "$EchoDelegate" >&6; }
32868else
32869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32870$as_echo "no" >&6; }
32871fi
32872
32873
32874# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
32875set dummy "$EditorDelegateDefault"; ac_word=$2
32876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32877$as_echo_n "checking for $ac_word... " >&6; }
32878if ${ac_cv_path_EditorDelegate+:} false; then :
32879 $as_echo_n "(cached) " >&6
32880else
32881 case $EditorDelegate in
32882 [\\/]* | ?:[\\/]*)
32883 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
32884 ;;
32885 *)
32886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32887for as_dir in $PATH
32888do
32889 IFS=$as_save_IFS
32890 test -z "$as_dir" && as_dir=.
32891 for ac_exec_ext in '' $ac_executable_extensions; do
32892 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32893 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
32894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32895 break 2
32896 fi
32897done
32898 done
32899IFS=$as_save_IFS
32900
32901 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
32902 ;;
32903esac
32904fi
32905EditorDelegate=$ac_cv_path_EditorDelegate
32906if test -n "$EditorDelegate"; then
32907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
32908$as_echo "$EditorDelegate" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032909else
cristy8b350f62009-11-15 23:12:43 +000032910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032911$as_echo "no" >&6; }
32912fi
32913
32914
32915# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
32916set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032918$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032919if ${ac_cv_path_GnuplotDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032920 $as_echo_n "(cached) " >&6
32921else
32922 case $GnuplotDecodeDelegate in
32923 [\\/]* | ?:[\\/]*)
32924 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
32925 ;;
32926 *)
32927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32928for as_dir in $PATH
32929do
32930 IFS=$as_save_IFS
32931 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032932 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032933 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032934 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032936 break 2
32937 fi
32938done
cristy8b350f62009-11-15 23:12:43 +000032939 done
cristy3ed852e2009-09-05 21:47:34 +000032940IFS=$as_save_IFS
32941
32942 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
32943 ;;
32944esac
32945fi
32946GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
32947if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032949$as_echo "$GnuplotDecodeDelegate" >&6; }
32950else
cristy8b350f62009-11-15 23:12:43 +000032951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032952$as_echo "no" >&6; }
32953fi
32954
32955
cristy66f238e2014-05-16 12:21:48 +000032956# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
32957set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
32958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32959$as_echo_n "checking for $ac_word... " >&6; }
32960if ${ac_cv_path_GVCDecodeDelegate+:} false; then :
32961 $as_echo_n "(cached) " >&6
32962else
32963 case $GVCDecodeDelegate in
32964 [\\/]* | ?:[\\/]*)
32965 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
32966 ;;
32967 *)
32968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32969for as_dir in $PATH
32970do
32971 IFS=$as_save_IFS
32972 test -z "$as_dir" && as_dir=.
32973 for ac_exec_ext in '' $ac_executable_extensions; do
32974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32975 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
32976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32977 break 2
32978 fi
32979done
32980 done
32981IFS=$as_save_IFS
32982
32983 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
32984 ;;
32985esac
32986fi
32987GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
32988if test -n "$GVCDecodeDelegate"; then
32989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
32990$as_echo "$GVCDecodeDelegate" >&6; }
32991else
32992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32993$as_echo "no" >&6; }
32994fi
32995
32996
cristy3ed852e2009-09-05 21:47:34 +000032997# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
32998set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033000$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033001if ${ac_cv_path_HPGLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033002 $as_echo_n "(cached) " >&6
33003else
33004 case $HPGLDecodeDelegate in
33005 [\\/]* | ?:[\\/]*)
33006 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
33007 ;;
33008 *)
33009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33010for as_dir in $PATH
33011do
33012 IFS=$as_save_IFS
33013 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033014 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033015 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033016 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033018 break 2
33019 fi
33020done
cristy8b350f62009-11-15 23:12:43 +000033021 done
cristy3ed852e2009-09-05 21:47:34 +000033022IFS=$as_save_IFS
33023
33024 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
33025 ;;
33026esac
33027fi
33028HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
33029if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033031$as_echo "$HPGLDecodeDelegate" >&6; }
33032else
cristy8b350f62009-11-15 23:12:43 +000033033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033034$as_echo "no" >&6; }
33035fi
33036
33037
33038# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
33039set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033041$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033042if ${ac_cv_path_HTMLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033043 $as_echo_n "(cached) " >&6
33044else
33045 case $HTMLDecodeDelegate in
33046 [\\/]* | ?:[\\/]*)
33047 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
33048 ;;
33049 *)
33050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33051for as_dir in $PATH
33052do
33053 IFS=$as_save_IFS
33054 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033055 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033056 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033057 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033059 break 2
33060 fi
33061done
cristy8b350f62009-11-15 23:12:43 +000033062 done
cristy3ed852e2009-09-05 21:47:34 +000033063IFS=$as_save_IFS
33064
33065 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
33066 ;;
33067esac
33068fi
33069HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
33070if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033072$as_echo "$HTMLDecodeDelegate" >&6; }
33073else
cristy8b350f62009-11-15 23:12:43 +000033074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033075$as_echo "no" >&6; }
33076fi
33077
33078
33079# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
33080set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033082$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033083if ${ac_cv_path_ILBMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033084 $as_echo_n "(cached) " >&6
33085else
33086 case $ILBMDecodeDelegate in
33087 [\\/]* | ?:[\\/]*)
33088 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
33089 ;;
33090 *)
33091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33092for as_dir in $PATH
33093do
33094 IFS=$as_save_IFS
33095 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033096 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033098 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033100 break 2
33101 fi
33102done
cristy8b350f62009-11-15 23:12:43 +000033103 done
cristy3ed852e2009-09-05 21:47:34 +000033104IFS=$as_save_IFS
33105
33106 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
33107 ;;
33108esac
33109fi
33110ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
33111if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033113$as_echo "$ILBMDecodeDelegate" >&6; }
33114else
cristy8b350f62009-11-15 23:12:43 +000033115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033116$as_echo "no" >&6; }
33117fi
33118
33119
33120# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
33121set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033123$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033124if ${ac_cv_path_ILBMEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033125 $as_echo_n "(cached) " >&6
33126else
33127 case $ILBMEncodeDelegate in
33128 [\\/]* | ?:[\\/]*)
33129 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
33130 ;;
33131 *)
33132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33133for as_dir in $PATH
33134do
33135 IFS=$as_save_IFS
33136 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033137 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033138 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033139 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033141 break 2
33142 fi
33143done
cristy8b350f62009-11-15 23:12:43 +000033144 done
cristy3ed852e2009-09-05 21:47:34 +000033145IFS=$as_save_IFS
33146
33147 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
33148 ;;
33149esac
33150fi
33151ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
33152if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033154$as_echo "$ILBMEncodeDelegate" >&6; }
33155else
cristy8b350f62009-11-15 23:12:43 +000033156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033157$as_echo "no" >&6; }
33158fi
33159
33160
cristy71f53d52013-04-27 13:33:59 +000033161# Extract the first word of ""$JXRDecodeDelegateDefault"", so it can be a program name with args.
33162set dummy "$JXRDecodeDelegateDefault"; ac_word=$2
33163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33164$as_echo_n "checking for $ac_word... " >&6; }
33165if ${ac_cv_path_JXRDecodeDelegate+:} false; then :
33166 $as_echo_n "(cached) " >&6
33167else
33168 case $JXRDecodeDelegate in
33169 [\\/]* | ?:[\\/]*)
33170 ac_cv_path_JXRDecodeDelegate="$JXRDecodeDelegate" # Let the user override the test with a path.
33171 ;;
33172 *)
33173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33174for as_dir in $PATH
33175do
33176 IFS=$as_save_IFS
33177 test -z "$as_dir" && as_dir=.
33178 for ac_exec_ext in '' $ac_executable_extensions; do
33179 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33180 ac_cv_path_JXRDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33182 break 2
33183 fi
33184done
33185 done
33186IFS=$as_save_IFS
33187
33188 test -z "$ac_cv_path_JXRDecodeDelegate" && ac_cv_path_JXRDecodeDelegate=""$JXRDecodeDelegateDefault""
33189 ;;
33190esac
33191fi
33192JXRDecodeDelegate=$ac_cv_path_JXRDecodeDelegate
33193if test -n "$JXRDecodeDelegate"; then
33194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JXRDecodeDelegate" >&5
33195$as_echo "$JXRDecodeDelegate" >&6; }
33196else
33197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33198$as_echo "no" >&6; }
33199fi
33200
33201
33202# Extract the first word of ""$JXREncodeDelegateDefault"", so it can be a program name with args.
33203set dummy "$JXREncodeDelegateDefault"; ac_word=$2
33204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33205$as_echo_n "checking for $ac_word... " >&6; }
33206if ${ac_cv_path_JXREncodeDelegate+:} false; then :
33207 $as_echo_n "(cached) " >&6
33208else
33209 case $JXREncodeDelegate in
33210 [\\/]* | ?:[\\/]*)
33211 ac_cv_path_JXREncodeDelegate="$JXREncodeDelegate" # Let the user override the test with a path.
33212 ;;
33213 *)
33214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33215for as_dir in $PATH
33216do
33217 IFS=$as_save_IFS
33218 test -z "$as_dir" && as_dir=.
33219 for ac_exec_ext in '' $ac_executable_extensions; do
33220 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33221 ac_cv_path_JXREncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33223 break 2
33224 fi
33225done
33226 done
33227IFS=$as_save_IFS
33228
33229 test -z "$ac_cv_path_JXREncodeDelegate" && ac_cv_path_JXREncodeDelegate=""$JXREncodeDelegateDefault""
33230 ;;
33231esac
33232fi
33233JXREncodeDelegate=$ac_cv_path_JXREncodeDelegate
33234if test -n "$JXREncodeDelegate"; then
33235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JXREncodeDelegate" >&5
33236$as_echo "$JXREncodeDelegate" >&6; }
33237else
33238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33239$as_echo "no" >&6; }
33240fi
33241
33242
cristy3ed852e2009-09-05 21:47:34 +000033243# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
33244set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033246$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033247if ${ac_cv_path_LPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033248 $as_echo_n "(cached) " >&6
33249else
33250 case $LPDelegate in
33251 [\\/]* | ?:[\\/]*)
33252 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
33253 ;;
33254 *)
33255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33256for as_dir in $PATH
33257do
33258 IFS=$as_save_IFS
33259 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033260 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033261 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033262 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033264 break 2
33265 fi
33266done
cristy8b350f62009-11-15 23:12:43 +000033267 done
cristy3ed852e2009-09-05 21:47:34 +000033268IFS=$as_save_IFS
33269
33270 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
33271 ;;
33272esac
33273fi
33274LPDelegate=$ac_cv_path_LPDelegate
33275if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033277$as_echo "$LPDelegate" >&6; }
33278else
cristy8b350f62009-11-15 23:12:43 +000033279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033280$as_echo "no" >&6; }
33281fi
33282
33283
33284# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
33285set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033287$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033288if ${ac_cv_path_LPRDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033289 $as_echo_n "(cached) " >&6
33290else
33291 case $LPRDelegate in
33292 [\\/]* | ?:[\\/]*)
33293 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
33294 ;;
33295 *)
33296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33297for as_dir in $PATH
33298do
33299 IFS=$as_save_IFS
33300 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033301 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033302 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033303 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033305 break 2
33306 fi
33307done
cristy8b350f62009-11-15 23:12:43 +000033308 done
cristy3ed852e2009-09-05 21:47:34 +000033309IFS=$as_save_IFS
33310
33311 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
33312 ;;
33313esac
33314fi
33315LPRDelegate=$ac_cv_path_LPRDelegate
33316if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033318$as_echo "$LPRDelegate" >&6; }
33319else
cristy8b350f62009-11-15 23:12:43 +000033320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033321$as_echo "no" >&6; }
33322fi
33323
33324
cristy3ed852e2009-09-05 21:47:34 +000033325# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
33326set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033328$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033329if ${ac_cv_path_LaunchDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033330 $as_echo_n "(cached) " >&6
33331else
33332 case $LaunchDelegate in
33333 [\\/]* | ?:[\\/]*)
33334 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
33335 ;;
33336 *)
33337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33338for as_dir in $PATH
33339do
33340 IFS=$as_save_IFS
33341 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033342 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033343 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033344 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033346 break 2
33347 fi
33348done
cristy8b350f62009-11-15 23:12:43 +000033349 done
cristy3ed852e2009-09-05 21:47:34 +000033350IFS=$as_save_IFS
33351
33352 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
33353 ;;
33354esac
33355fi
33356LaunchDelegate=$ac_cv_path_LaunchDelegate
33357if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033359$as_echo "$LaunchDelegate" >&6; }
33360else
cristy8b350f62009-11-15 23:12:43 +000033361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033362$as_echo "no" >&6; }
33363fi
33364
33365
33366# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
33367set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033369$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033370if ${ac_cv_path_MANDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033371 $as_echo_n "(cached) " >&6
33372else
33373 case $MANDelegate in
33374 [\\/]* | ?:[\\/]*)
33375 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
33376 ;;
33377 *)
33378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33379for as_dir in $PATH
33380do
33381 IFS=$as_save_IFS
33382 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033383 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033384 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033385 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033387 break 2
33388 fi
33389done
cristy8b350f62009-11-15 23:12:43 +000033390 done
cristy3ed852e2009-09-05 21:47:34 +000033391IFS=$as_save_IFS
33392
33393 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
33394 ;;
33395esac
33396fi
33397MANDelegate=$ac_cv_path_MANDelegate
33398if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033400$as_echo "$MANDelegate" >&6; }
33401else
cristy8b350f62009-11-15 23:12:43 +000033402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033403$as_echo "no" >&6; }
33404fi
33405
33406
cristy66f238e2014-05-16 12:21:48 +000033407# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
33408set dummy "$MogrifyDelegateDefault"; ac_word=$2
33409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33410$as_echo_n "checking for $ac_word... " >&6; }
33411if ${ac_cv_path_MogrifyDelegate+:} false; then :
33412 $as_echo_n "(cached) " >&6
33413else
33414 case $MogrifyDelegate in
33415 [\\/]* | ?:[\\/]*)
33416 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
33417 ;;
33418 *)
33419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33420for as_dir in $PATH
33421do
33422 IFS=$as_save_IFS
33423 test -z "$as_dir" && as_dir=.
33424 for ac_exec_ext in '' $ac_executable_extensions; do
33425 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33426 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
33427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33428 break 2
33429 fi
33430done
33431 done
33432IFS=$as_save_IFS
33433
33434 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
33435 ;;
33436esac
33437fi
33438MogrifyDelegate=$ac_cv_path_MogrifyDelegate
33439if test -n "$MogrifyDelegate"; then
33440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
33441$as_echo "$MogrifyDelegate" >&6; }
33442else
33443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33444$as_echo "no" >&6; }
33445fi
33446
33447
cristy3ed852e2009-09-05 21:47:34 +000033448# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
33449set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033451$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033452if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033453 $as_echo_n "(cached) " >&6
33454else
33455 case $MPEGDecodeDelegate in
33456 [\\/]* | ?:[\\/]*)
33457 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
33458 ;;
33459 *)
33460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33461for as_dir in $PATH
33462do
33463 IFS=$as_save_IFS
33464 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033465 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033467 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033469 break 2
33470 fi
33471done
cristy8b350f62009-11-15 23:12:43 +000033472 done
cristy3ed852e2009-09-05 21:47:34 +000033473IFS=$as_save_IFS
33474
33475 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
33476 ;;
33477esac
33478fi
33479MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
33480if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033482$as_echo "$MPEGDecodeDelegate" >&6; }
33483else
cristy8b350f62009-11-15 23:12:43 +000033484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033485$as_echo "no" >&6; }
33486fi
33487
33488
cristy058d15f2014-08-21 18:53:03 +000033489if test "$MPEGDecodeDelegate" = "$MPEGDecodeDelegateDefault" ; then
cristy81ab5af2013-10-06 18:28:39 +000033490 MPEGDecodeDelegateDefault='ffmpeg'
33491 # Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
33492set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
33493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33494$as_echo_n "checking for $ac_word... " >&6; }
33495if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
33496 $as_echo_n "(cached) " >&6
33497else
33498 case $MPEGDecodeDelegate in
33499 [\\/]* | ?:[\\/]*)
33500 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
33501 ;;
33502 *)
33503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33504for as_dir in $PATH
33505do
33506 IFS=$as_save_IFS
33507 test -z "$as_dir" && as_dir=.
33508 for ac_exec_ext in '' $ac_executable_extensions; do
33509 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33510 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33512 break 2
33513 fi
33514done
33515 done
33516IFS=$as_save_IFS
33517
33518 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
33519 ;;
33520esac
33521fi
33522MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
33523if test -n "$MPEGDecodeDelegate"; then
33524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
33525$as_echo "$MPEGDecodeDelegate" >&6; }
33526else
33527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33528$as_echo "no" >&6; }
33529fi
33530
33531
33532fi;
cristy3ed852e2009-09-05 21:47:34 +000033533# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
33534set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033536$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033537if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033538 $as_echo_n "(cached) " >&6
33539else
33540 case $MPEGEncodeDelegate in
33541 [\\/]* | ?:[\\/]*)
33542 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
33543 ;;
33544 *)
33545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33546for as_dir in $PATH
33547do
33548 IFS=$as_save_IFS
33549 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033550 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033551 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033552 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033554 break 2
33555 fi
33556done
cristy8b350f62009-11-15 23:12:43 +000033557 done
cristy3ed852e2009-09-05 21:47:34 +000033558IFS=$as_save_IFS
33559
33560 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
33561 ;;
33562esac
33563fi
33564MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
33565if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033567$as_echo "$MPEGEncodeDelegate" >&6; }
33568else
cristy8b350f62009-11-15 23:12:43 +000033569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033570$as_echo "no" >&6; }
33571fi
33572
33573
cristy058d15f2014-08-21 18:53:03 +000033574if test "$MPEGEncodeDelegate" = "$MPEGEncodeDelegateDefault" ; then
cristy81ab5af2013-10-06 18:28:39 +000033575 MPEGEncodeDelegateDefault='ffmpeg'
33576 # Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
33577set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
33578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33579$as_echo_n "checking for $ac_word... " >&6; }
33580if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
33581 $as_echo_n "(cached) " >&6
33582else
33583 case $MPEGEncodeDelegate in
33584 [\\/]* | ?:[\\/]*)
33585 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
33586 ;;
33587 *)
33588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33589for as_dir in $PATH
33590do
33591 IFS=$as_save_IFS
33592 test -z "$as_dir" && as_dir=.
33593 for ac_exec_ext in '' $ac_executable_extensions; do
33594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33595 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33597 break 2
33598 fi
33599done
33600 done
33601IFS=$as_save_IFS
33602
33603 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
33604 ;;
33605esac
33606fi
33607MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
33608if test -n "$MPEGEncodeDelegate"; then
33609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
33610$as_echo "$MPEGEncodeDelegate" >&6; }
33611else
33612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33613$as_echo "no" >&6; }
33614fi
33615
33616
33617fi;
cristy935c86e2010-06-05 23:50:07 +000033618# Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
33619set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
33620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33621$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033622if ${ac_cv_path_MrSIDDecodeDelegate+:} false; then :
cristy935c86e2010-06-05 23:50:07 +000033623 $as_echo_n "(cached) " >&6
33624else
33625 case $MrSIDDecodeDelegate in
33626 [\\/]* | ?:[\\/]*)
33627 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
33628 ;;
33629 *)
33630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33631for as_dir in $PATH
33632do
33633 IFS=$as_save_IFS
33634 test -z "$as_dir" && as_dir=.
33635 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy935c86e2010-06-05 23:50:07 +000033637 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33639 break 2
33640 fi
33641done
33642 done
33643IFS=$as_save_IFS
33644
33645 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
33646 ;;
33647esac
33648fi
33649MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
33650if test -n "$MrSIDDecodeDelegate"; then
33651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
33652$as_echo "$MrSIDDecodeDelegate" >&6; }
33653else
33654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33655$as_echo "no" >&6; }
33656fi
33657
33658
cristy3ed852e2009-09-05 21:47:34 +000033659# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
33660set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033662$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033663if ${ac_cv_path_MVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033664 $as_echo_n "(cached) " >&6
33665else
33666 case $MVDelegate in
33667 [\\/]* | ?:[\\/]*)
33668 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
33669 ;;
33670 *)
33671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33672for as_dir in $PATH
33673do
33674 IFS=$as_save_IFS
33675 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033676 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033677 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033678 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033680 break 2
33681 fi
33682done
cristy8b350f62009-11-15 23:12:43 +000033683 done
cristy3ed852e2009-09-05 21:47:34 +000033684IFS=$as_save_IFS
33685
33686 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
33687 ;;
33688esac
33689fi
33690MVDelegate=$ac_cv_path_MVDelegate
33691if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033693$as_echo "$MVDelegate" >&6; }
33694else
cristy8b350f62009-11-15 23:12:43 +000033695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033696$as_echo "no" >&6; }
33697fi
33698
33699
33700# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
33701set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033703$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033704if ${ac_cv_path_PCLDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033705 $as_echo_n "(cached) " >&6
33706else
33707 case $PCLDelegate in
33708 [\\/]* | ?:[\\/]*)
33709 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
33710 ;;
33711 *)
33712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33713for as_dir in $PATH
33714do
33715 IFS=$as_save_IFS
33716 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033717 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033718 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033719 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033721 break 2
33722 fi
33723done
cristy8b350f62009-11-15 23:12:43 +000033724 done
cristy3ed852e2009-09-05 21:47:34 +000033725IFS=$as_save_IFS
33726
33727 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
33728 ;;
33729esac
33730fi
33731PCLDelegate=$ac_cv_path_PCLDelegate
33732if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033734$as_echo "$PCLDelegate" >&6; }
33735else
cristy8b350f62009-11-15 23:12:43 +000033736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033737$as_echo "no" >&6; }
33738fi
33739
33740
33741# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
33742set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033744$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033745if ${ac_cv_path_PGPDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033746 $as_echo_n "(cached) " >&6
33747else
33748 case $PGPDecodeDelegate in
33749 [\\/]* | ?:[\\/]*)
33750 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
33751 ;;
33752 *)
33753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33754for as_dir in $PATH
33755do
33756 IFS=$as_save_IFS
33757 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033758 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033759 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033760 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033762 break 2
33763 fi
33764done
cristy8b350f62009-11-15 23:12:43 +000033765 done
cristy3ed852e2009-09-05 21:47:34 +000033766IFS=$as_save_IFS
33767
33768 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
33769 ;;
33770esac
33771fi
33772PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
33773if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033775$as_echo "$PGPDecodeDelegate" >&6; }
33776else
cristy8b350f62009-11-15 23:12:43 +000033777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033778$as_echo "no" >&6; }
33779fi
33780
33781
33782# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
33783set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033785$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033786if ${ac_cv_path_POVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033787 $as_echo_n "(cached) " >&6
33788else
33789 case $POVDelegate in
33790 [\\/]* | ?:[\\/]*)
33791 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
33792 ;;
33793 *)
33794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33795for as_dir in $PATH
33796do
33797 IFS=$as_save_IFS
33798 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033799 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033800 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033801 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033803 break 2
33804 fi
33805done
cristy8b350f62009-11-15 23:12:43 +000033806 done
cristy3ed852e2009-09-05 21:47:34 +000033807IFS=$as_save_IFS
33808
33809 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
33810 ;;
33811esac
33812fi
33813POVDelegate=$ac_cv_path_POVDelegate
33814if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033816$as_echo "$POVDelegate" >&6; }
33817else
cristy8b350f62009-11-15 23:12:43 +000033818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033819$as_echo "no" >&6; }
33820fi
33821
33822
33823for ac_prog in gsx gsc "$PSDelegateDefault"
33824do
33825 # Extract the first word of "$ac_prog", so it can be a program name with args.
33826set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033828$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033829if ${ac_cv_path_PSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033830 $as_echo_n "(cached) " >&6
33831else
33832 case $PSDelegate in
33833 [\\/]* | ?:[\\/]*)
33834 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
33835 ;;
33836 *)
33837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33838for as_dir in $PATH
33839do
33840 IFS=$as_save_IFS
33841 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033842 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033843 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033844 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033846 break 2
33847 fi
33848done
cristy8b350f62009-11-15 23:12:43 +000033849 done
cristy3ed852e2009-09-05 21:47:34 +000033850IFS=$as_save_IFS
33851
33852 ;;
33853esac
33854fi
33855PSDelegate=$ac_cv_path_PSDelegate
33856if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033858$as_echo "$PSDelegate" >&6; }
33859else
cristy8b350f62009-11-15 23:12:43 +000033860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033861$as_echo "no" >&6; }
33862fi
33863
33864
33865 test -n "$PSDelegate" && break
33866done
33867test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
33868
33869# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
33870set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033872$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033873if ${ac_cv_path_RLEEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033874 $as_echo_n "(cached) " >&6
33875else
33876 case $RLEEncodeDelegate in
33877 [\\/]* | ?:[\\/]*)
33878 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
33879 ;;
33880 *)
33881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33882for as_dir in $PATH
33883do
33884 IFS=$as_save_IFS
33885 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033886 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033887 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033888 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033890 break 2
33891 fi
33892done
cristy8b350f62009-11-15 23:12:43 +000033893 done
cristy3ed852e2009-09-05 21:47:34 +000033894IFS=$as_save_IFS
33895
33896 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
33897 ;;
33898esac
33899fi
33900RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
33901if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033903$as_echo "$RLEEncodeDelegate" >&6; }
33904else
cristy8b350f62009-11-15 23:12:43 +000033905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033906$as_echo "no" >&6; }
33907fi
33908
33909
33910# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
33911set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033913$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033914if ${ac_cv_path_RMDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033915 $as_echo_n "(cached) " >&6
33916else
33917 case $RMDelegate in
33918 [\\/]* | ?:[\\/]*)
33919 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
33920 ;;
33921 *)
33922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33923for as_dir in $PATH
33924do
33925 IFS=$as_save_IFS
33926 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033927 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033929 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033931 break 2
33932 fi
33933done
cristy8b350f62009-11-15 23:12:43 +000033934 done
cristy3ed852e2009-09-05 21:47:34 +000033935IFS=$as_save_IFS
33936
33937 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
33938 ;;
33939esac
33940fi
33941RMDelegate=$ac_cv_path_RMDelegate
33942if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033944$as_echo "$RMDelegate" >&6; }
33945else
cristy8b350f62009-11-15 23:12:43 +000033946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033947$as_echo "no" >&6; }
33948fi
33949
33950
cristy4689cf02010-02-17 21:15:45 +000033951# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
33952set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
33953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33954$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033955if ${ac_cv_path_RSVGDecodeDelegate+:} false; then :
cristy4689cf02010-02-17 21:15:45 +000033956 $as_echo_n "(cached) " >&6
33957else
33958 case $RSVGDecodeDelegate in
33959 [\\/]* | ?:[\\/]*)
33960 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
33961 ;;
33962 *)
33963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33964for as_dir in $PATH
33965do
33966 IFS=$as_save_IFS
33967 test -z "$as_dir" && as_dir=.
33968 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033969 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy4689cf02010-02-17 21:15:45 +000033970 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33972 break 2
33973 fi
33974done
33975 done
33976IFS=$as_save_IFS
33977
33978 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
33979 ;;
33980esac
33981fi
33982RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
33983if test -n "$RSVGDecodeDelegate"; then
33984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
33985$as_echo "$RSVGDecodeDelegate" >&6; }
33986else
33987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33988$as_echo "no" >&6; }
33989fi
33990
33991
cristy3ed852e2009-09-05 21:47:34 +000033992# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
33993set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033995$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033996if ${ac_cv_path_SCANDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033997 $as_echo_n "(cached) " >&6
33998else
33999 case $SCANDecodeDelegate in
34000 [\\/]* | ?:[\\/]*)
34001 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
34002 ;;
34003 *)
34004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34005for as_dir in $PATH
34006do
34007 IFS=$as_save_IFS
34008 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034009 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034010 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034011 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034013 break 2
34014 fi
34015done
cristy8b350f62009-11-15 23:12:43 +000034016 done
cristy3ed852e2009-09-05 21:47:34 +000034017IFS=$as_save_IFS
34018
34019 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
34020 ;;
34021esac
34022fi
34023SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
34024if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034026$as_echo "$SCANDecodeDelegate" >&6; }
34027else
cristy8b350f62009-11-15 23:12:43 +000034028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034029$as_echo "no" >&6; }
34030fi
34031
34032
cristyec6934f2012-08-14 18:38:40 +000034033# Extract the first word of ""$SVGDecodeDelegateDefault"", so it can be a program name with args.
34034set dummy "$SVGDecodeDelegateDefault"; ac_word=$2
34035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34036$as_echo_n "checking for $ac_word... " >&6; }
34037if ${ac_cv_path_SVGDecodeDelegate+:} false; then :
34038 $as_echo_n "(cached) " >&6
34039else
34040 case $SVGDecodeDelegate in
34041 [\\/]* | ?:[\\/]*)
34042 ac_cv_path_SVGDecodeDelegate="$SVGDecodeDelegate" # Let the user override the test with a path.
34043 ;;
34044 *)
34045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34046for as_dir in $PATH
34047do
34048 IFS=$as_save_IFS
34049 test -z "$as_dir" && as_dir=.
34050 for ac_exec_ext in '' $ac_executable_extensions; do
34051 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34052 ac_cv_path_SVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34054 break 2
34055 fi
34056done
34057 done
34058IFS=$as_save_IFS
34059
34060 test -z "$ac_cv_path_SVGDecodeDelegate" && ac_cv_path_SVGDecodeDelegate=""$SVGDecodeDelegateDefault""
34061 ;;
34062esac
34063fi
34064SVGDecodeDelegate=$ac_cv_path_SVGDecodeDelegate
34065if test -n "$SVGDecodeDelegate"; then
34066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SVGDecodeDelegate" >&5
34067$as_echo "$SVGDecodeDelegate" >&6; }
34068else
34069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34070$as_echo "no" >&6; }
34071fi
34072
34073
cristy3ed852e2009-09-05 21:47:34 +000034074# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
34075set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034077$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034078if ${ac_cv_path_TXTDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034079 $as_echo_n "(cached) " >&6
34080else
34081 case $TXTDelegate in
34082 [\\/]* | ?:[\\/]*)
34083 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
34084 ;;
34085 *)
34086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34087for as_dir in $PATH
34088do
34089 IFS=$as_save_IFS
34090 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034091 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034093 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034095 break 2
34096 fi
34097done
cristy8b350f62009-11-15 23:12:43 +000034098 done
cristy3ed852e2009-09-05 21:47:34 +000034099IFS=$as_save_IFS
34100
34101 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
34102 ;;
34103esac
34104fi
34105TXTDelegate=$ac_cv_path_TXTDelegate
34106if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034108$as_echo "$TXTDelegate" >&6; }
34109else
cristy8b350f62009-11-15 23:12:43 +000034110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034111$as_echo "no" >&6; }
34112fi
34113
34114
cristy5ac9ac82010-07-29 13:24:24 +000034115# Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
34116set dummy "$UniconvertorDelegateDefault"; ac_word=$2
34117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34118$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034119if ${ac_cv_path_UniconvertorDelegate+:} false; then :
cristy5ac9ac82010-07-29 13:24:24 +000034120 $as_echo_n "(cached) " >&6
34121else
34122 case $UniconvertorDelegate in
34123 [\\/]* | ?:[\\/]*)
34124 ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
34125 ;;
34126 *)
34127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34128for as_dir in $PATH
34129do
34130 IFS=$as_save_IFS
34131 test -z "$as_dir" && as_dir=.
34132 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034133 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy5ac9ac82010-07-29 13:24:24 +000034134 ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
34135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34136 break 2
34137 fi
34138done
34139 done
34140IFS=$as_save_IFS
34141
34142 test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
34143 ;;
34144esac
34145fi
34146UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
34147if test -n "$UniconvertorDelegate"; then
34148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
34149$as_echo "$UniconvertorDelegate" >&6; }
34150else
34151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34152$as_echo "no" >&6; }
34153fi
34154
34155
cristy86e86092013-08-04 17:43:57 +000034156# Extract the first word of ""$WebPDecodeDelegateDefault"", so it can be a program name with args.
34157set dummy "$WebPDecodeDelegateDefault"; ac_word=$2
34158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34159$as_echo_n "checking for $ac_word... " >&6; }
34160if ${ac_cv_path_WebPDecodeDelegate+:} false; then :
34161 $as_echo_n "(cached) " >&6
34162else
34163 case $WebPDecodeDelegate in
34164 [\\/]* | ?:[\\/]*)
34165 ac_cv_path_WebPDecodeDelegate="$WebPDecodeDelegate" # Let the user override the test with a path.
34166 ;;
34167 *)
34168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34169for as_dir in $PATH
34170do
34171 IFS=$as_save_IFS
34172 test -z "$as_dir" && as_dir=.
34173 for ac_exec_ext in '' $ac_executable_extensions; do
34174 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34175 ac_cv_path_WebPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34177 break 2
34178 fi
34179done
34180 done
34181IFS=$as_save_IFS
34182
34183 test -z "$ac_cv_path_WebPDecodeDelegate" && ac_cv_path_WebPDecodeDelegate=""$WebPDecodeDelegateDefault""
34184 ;;
34185esac
34186fi
34187WebPDecodeDelegate=$ac_cv_path_WebPDecodeDelegate
34188if test -n "$WebPDecodeDelegate"; then
34189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WebPDecodeDelegate" >&5
34190$as_echo "$WebPDecodeDelegate" >&6; }
34191else
34192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34193$as_echo "no" >&6; }
34194fi
34195
34196
34197# Extract the first word of ""$WebPEncodeDelegateDefault"", so it can be a program name with args.
34198set dummy "$WebPEncodeDelegateDefault"; ac_word=$2
34199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34200$as_echo_n "checking for $ac_word... " >&6; }
34201if ${ac_cv_path_WebPEncodeDelegate+:} false; then :
34202 $as_echo_n "(cached) " >&6
34203else
34204 case $WebPEncodeDelegate in
34205 [\\/]* | ?:[\\/]*)
34206 ac_cv_path_WebPEncodeDelegate="$WebPEncodeDelegate" # Let the user override the test with a path.
34207 ;;
34208 *)
34209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34210for as_dir in $PATH
34211do
34212 IFS=$as_save_IFS
34213 test -z "$as_dir" && as_dir=.
34214 for ac_exec_ext in '' $ac_executable_extensions; do
34215 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34216 ac_cv_path_WebPEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34218 break 2
34219 fi
34220done
34221 done
34222IFS=$as_save_IFS
34223
34224 test -z "$ac_cv_path_WebPEncodeDelegate" && ac_cv_path_WebPEncodeDelegate=""$WebPEncodeDelegateDefault""
34225 ;;
34226esac
34227fi
34228WebPEncodeDelegate=$ac_cv_path_WebPEncodeDelegate
34229if test -n "$WebPEncodeDelegate"; then
34230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WebPEncodeDelegate" >&5
34231$as_echo "$WebPEncodeDelegate" >&6; }
34232else
34233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34234$as_echo "no" >&6; }
34235fi
34236
34237
cristy3ed852e2009-09-05 21:47:34 +000034238# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
34239set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034241$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034242if ${ac_cv_path_WMFDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034243 $as_echo_n "(cached) " >&6
34244else
34245 case $WMFDecodeDelegate in
34246 [\\/]* | ?:[\\/]*)
34247 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
34248 ;;
34249 *)
34250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34251for as_dir in $PATH
34252do
34253 IFS=$as_save_IFS
34254 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034255 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034256 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034257 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034259 break 2
34260 fi
34261done
cristy8b350f62009-11-15 23:12:43 +000034262 done
cristy3ed852e2009-09-05 21:47:34 +000034263IFS=$as_save_IFS
34264
34265 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
34266 ;;
34267esac
34268fi
34269WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
34270if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034272$as_echo "$WMFDecodeDelegate" >&6; }
34273else
cristy8b350f62009-11-15 23:12:43 +000034274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034275$as_echo "no" >&6; }
34276fi
34277
34278
34279# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
34280set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034282$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034283if ${ac_cv_path_WWWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034284 $as_echo_n "(cached) " >&6
34285else
34286 case $WWWDecodeDelegate in
34287 [\\/]* | ?:[\\/]*)
34288 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
34289 ;;
34290 *)
34291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34292for as_dir in $PATH
34293do
34294 IFS=$as_save_IFS
34295 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034296 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034297 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034298 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034300 break 2
34301 fi
34302done
cristy8b350f62009-11-15 23:12:43 +000034303 done
cristy3ed852e2009-09-05 21:47:34 +000034304IFS=$as_save_IFS
34305
34306 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
34307 ;;
34308esac
34309fi
34310WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
34311if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034313$as_echo "$WWWDecodeDelegate" >&6; }
34314else
cristy8b350f62009-11-15 23:12:43 +000034315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034316$as_echo "no" >&6; }
34317fi
34318
34319
34320# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
34321set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034323$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034324if ${ac_cv_path_XPSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034325 $as_echo_n "(cached) " >&6
34326else
34327 case $XPSDelegate in
34328 [\\/]* | ?:[\\/]*)
34329 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
34330 ;;
34331 *)
34332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34333for as_dir in $PATH
34334do
34335 IFS=$as_save_IFS
34336 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034337 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034338 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034339 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034341 break 2
34342 fi
34343done
cristy8b350f62009-11-15 23:12:43 +000034344 done
cristy3ed852e2009-09-05 21:47:34 +000034345IFS=$as_save_IFS
34346
34347 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
34348 ;;
34349esac
34350fi
34351XPSDelegate=$ac_cv_path_XPSDelegate
34352if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034354$as_echo "$XPSDelegate" >&6; }
34355else
cristy8b350f62009-11-15 23:12:43 +000034356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034357$as_echo "no" >&6; }
34358fi
34359
34360
34361# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
34362set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034364$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034365if ${ac_cv_path_ZipDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034366 $as_echo_n "(cached) " >&6
34367else
34368 case $ZipDelegate in
34369 [\\/]* | ?:[\\/]*)
34370 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
34371 ;;
34372 *)
34373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34374for as_dir in $PATH
34375do
34376 IFS=$as_save_IFS
34377 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034378 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034380 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034382 break 2
34383 fi
34384done
cristy8b350f62009-11-15 23:12:43 +000034385 done
cristy3ed852e2009-09-05 21:47:34 +000034386IFS=$as_save_IFS
34387
34388 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
34389 ;;
34390esac
34391fi
34392ZipDelegate=$ac_cv_path_ZipDelegate
34393if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034395$as_echo "$ZipDelegate" >&6; }
34396else
cristy8b350f62009-11-15 23:12:43 +000034397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034398$as_echo "no" >&6; }
34399fi
34400
34401
34402
34403# Prefer lpr to lp; lp needs options tacked on.
34404if test "$LPRDelegate" != no; then
34405 PrintDelegate="$LPRDelegate"
34406else
34407 PrintDelegate="$LPDelegate -c -s"
34408fi
34409
34410
34411# Installed ImageMagick utiltity paths
34412ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
34413DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
34414MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
34415
34416# Set delegate booleans
cristy81ab5af2013-10-06 18:28:39 +000034417have_avconv='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_avconv='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000034418have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
34419have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
34420have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
cristy935c86e2010-06-05 23:50:07 +000034421have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000034422have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
34423have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000034424have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
34425
34426#
34427# Test for font directories
34428#
34429type_include_files=''
34430
cristy5a3dc992014-12-05 19:50:04 +000034431 Apple fonts.
34432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Apple fonts directory" >&5
34433$as_echo_n "checking for Apple fonts directory... " >&6; }
34434apple_font_dir=''
34435if test "${with_apple_font_dir}" != 'default'; then
34436 apple_font_dir="${with_apple_font_dir}/"
34437else
34438 for font_dir in '/Library/Fonts/'; do
34439 if test -f "${font_dir}Arial.ttf"; then
34440 apple_font_dir="${font_dir}"
34441 break 1
34442 fi
34443 done
34444fi
34445if test "${apple_font_dir}x" != 'x'; then
34446 type_include_files="${type_include_files} "'<include file="type-apple.xml" />'
34447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apple_font_dir" >&5
34448$as_echo "$apple_font_dir" >&6; }
34449else
34450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
34451$as_echo "not found!" >&6; };
34452fi
34453
34454
cristy430a7312010-01-21 20:44:04 +000034455# Dejavu fonts.
34456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
34457$as_echo_n "checking for Dejavu fonts directory... " >&6; }
34458dejavu_font_dir=''
34459if test "${with_dejavu_font_dir}" != 'default'; then
34460 dejavu_font_dir="${with_dejavu_font_dir}/"
34461else
34462 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
34463 if test -f "${font_dir}DejaVuSerif.ttf"; then
34464 dejavu_font_dir="${font_dir}"
34465 break 1
34466 fi
34467 done
34468fi
34469if test "${dejavu_font_dir}x" != 'x'; then
34470 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
cristyad38abe2012-12-23 23:03:21 +000034471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dejavu_font_dir" >&5
34472$as_echo "$dejavu_font_dir" >&6; }
cristy430a7312010-01-21 20:44:04 +000034473else
cristyad38abe2012-12-23 23:03:21 +000034474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
34475$as_echo "not found!" >&6; };
cristy430a7312010-01-21 20:44:04 +000034476fi
34477
34478
cristy3ed852e2009-09-05 21:47:34 +000034479# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000034480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000034481$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
34482ghostscript_font_dir=''
34483if test "${with_gs_font_dir}" != 'default'; then
34484 ghostscript_font_dir="${with_gs_font_dir}/"
34485else
34486 if test "${native_win32_build}" = 'yes'; then
34487 # Native Windows Build
34488 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
34489 if test -f "${font_dir}a010013l.pfb"; then
34490 ghostscript_font_dir="$font_dir"
34491 break 1
34492 fi
34493 done
34494 if test "${PSDelegate}" != 'gswin32c'; then
34495 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
34496 fi
34497 else
34498 # Linux / Mac OS X / Unix Build
34499 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
34500 if test -f "${font_dir}a010013l.pfb"; then
34501 ghostscript_font_dir="${font_dir}"
34502 break 1
34503 fi
34504 done
34505 if test "${ghostscript_font_dir}x" = 'x'; then
34506 if test "$PSDelegate" != 'gs'; then
34507 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
34508 fi
34509 fi
34510 fi
34511fi
34512if test "${ghostscript_font_dir}x" != 'x'; then
34513 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristyad38abe2012-12-23 23:03:21 +000034514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
34515$as_echo "$ghostscript_font_dir" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034516else
cristyad38abe2012-12-23 23:03:21 +000034517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
34518$as_echo "not found!" >&6; };
cristy3ed852e2009-09-05 21:47:34 +000034519fi
34520
34521case "${build_os}" in
34522 mingw* )
34523 PSDelegate=`$WinPathScript "$PSDelegate" 1`
34524 ;;
34525esac
34526
cristy5a3dc992014-12-05 19:50:04 +000034527# Windows fonts.
34528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Windows fonts directory" >&5
34529$as_echo_n "checking for Windows fonts directory... " >&6; }
34530windows_font_dir=''
34531if test "${with_windows_font_dir}" != 'default'; then
34532 windows_font_dir="${with_windows_font_dir}/"
34533else
34534 for font_dir in '/usr/X11R6/lib/X11/fonts/truetype/' '/usr/X11R7/lib/X11/fonts/truetype/' '/usr/share/fonts/msttcore/'; do
34535 if test -f "${font_dir}arial.ttf"; then
34536 windows_font_dir="${font_dir}"
34537 break 1
34538 fi
34539 done
34540fi
34541if test "${windows_font_dir}x" != 'x'; then
34542 type_include_files="${type_include_files} "'<include file="type-windows.xml" />'
34543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $windows_font_dir" >&5
34544$as_echo "$windows_font_dir" >&6; }
34545else
34546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
34547$as_echo "not found!" >&6; };
34548fi
34549
34550
cristy3ed852e2009-09-05 21:47:34 +000034551
34552
34553#
34554# Handle case where user doesn't want frozen paths
34555#
34556if test "$with_frozenpaths" != 'yes'; then
34557 # Re-set delegate definitions to default (no paths)
34558 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
cristy16b412d2014-12-15 11:09:48 +000034559 BGPDecodeDelegate="$BGPDecodeDelegateDefault"
34560 BGPEncodeDelegate="$BGPEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034561 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
34562 BZIPDelegate="$BZIPDelegateDefault"
34563 BrowseDelegate="$BrowseDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034564 CatDelegate="$CatDelegateDefault"
34565 ConvertDelegate="$ConvertDelegateDefault"
cristy71f53d52013-04-27 13:33:59 +000034566 DisplayDelegate="$DisplayDelegateDefault"
34567 DNGDecodeDelegate="$DNGDecodeDelegateDefault"
cristy66f238e2014-05-16 12:21:48 +000034568 DOCDecodeDelegate="$DOCDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034569 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
34570 EchoDelegate="$EchoDelegateDefault"
34571 EditorDelegate="$EditorDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034572 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
cristy71f53d52013-04-27 13:33:59 +000034573 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034574 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
34575 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
34576 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
34577 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
cristy71f53d52013-04-27 13:33:59 +000034578 JXRDecodeDelegate="$JXRDecodeDelegateDefault"
34579 JXREncodeDelegate="$JXREncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034580 LPDelegate="$LPDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034581 LaunchDelegate="$LaunchDelegateDefault"
34582 MANDelegate="$MANDelegateDefault"
34583 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
34584 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034585 MogrifyDelegate="$MogrifyDelegateDefault"
cristy935c86e2010-06-05 23:50:07 +000034586 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
34587 MVDelegate="$MVDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034588 PCLDelegate="$PCLDelegateDefault"
34589 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
34590 POVDelegate="$POVDelegateDefault"
34591 PSDelegate="$PSDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034592 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
34593 RMDelegate="$RMDelegateDefault"
cristy4689cf02010-02-17 21:15:45 +000034594 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034595 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
cristyec6934f2012-08-14 18:38:40 +000034596 SVGDecodeDelegate="$SVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034597 ShowImageDelegate="$ShowImageDelegateDefault"
34598 TXTDelegate="$TXTDelegateDefault"
cristy5ac9ac82010-07-29 13:24:24 +000034599 UniconvertorDelegate="$UniconvertorDelegateDefault"
cristy86e86092013-08-04 17:43:57 +000034600 WebPDecodeDelegate="$WebPDecodeDelegateDefault"
34601 WebPEncodeDelegate="$WebPEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034602 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
34603 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
34604 XPSDelegate="$XPSDelegateDefault"
34605 ZipDelegate="$ZipDelegateDefault"
34606fi
34607
34608# Delegate substitutions
34609
34610
34611
34612
34613
34614
34615
34616
34617
34618
34619
34620
34621
34622
34623
34624
34625
34626
34627
34628
34629
34630
34631
34632
34633
34634
34635
34636
34637
34638
34639
34640
34641
34642
34643
34644
34645
34646
34647
34648
cristy71f53d52013-04-27 13:33:59 +000034649
34650
cristy16b412d2014-12-15 11:09:48 +000034651
34652
cristy3ed852e2009-09-05 21:47:34 +000034653#
34654# RPM support.
34655#
34656RPM=''
34657for ac_prog in gnutar gtar tar
34658do
34659 # Extract the first word of "$ac_prog", so it can be a program name with args.
34660set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034662$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034663if ${ac_cv_prog_TAR+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034664 $as_echo_n "(cached) " >&6
34665else
34666 if test -n "$TAR"; then
34667 ac_cv_prog_TAR="$TAR" # Let the user override the test.
34668else
34669as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34670for as_dir in $PATH
34671do
34672 IFS=$as_save_IFS
34673 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034674 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034675 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034676 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034678 break 2
34679 fi
34680done
cristy8b350f62009-11-15 23:12:43 +000034681 done
cristy3ed852e2009-09-05 21:47:34 +000034682IFS=$as_save_IFS
34683
34684fi
34685fi
34686TAR=$ac_cv_prog_TAR
34687if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000034688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000034689$as_echo "$TAR" >&6; }
34690else
cristy8b350f62009-11-15 23:12:43 +000034691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034692$as_echo "no" >&6; }
34693fi
34694
34695
34696 test -n "$TAR" && break
34697done
34698
34699for ac_prog in perl
34700do
34701 # Extract the first word of "$ac_prog", so it can be a program name with args.
34702set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034704$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034705if ${ac_cv_prog_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034706 $as_echo_n "(cached) " >&6
34707else
34708 if test -n "$PERL"; then
34709 ac_cv_prog_PERL="$PERL" # Let the user override the test.
34710else
34711as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34712for as_dir in $PATH
34713do
34714 IFS=$as_save_IFS
34715 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034716 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034717 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034718 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034720 break 2
34721 fi
34722done
cristy8b350f62009-11-15 23:12:43 +000034723 done
cristy3ed852e2009-09-05 21:47:34 +000034724IFS=$as_save_IFS
34725
34726fi
34727fi
34728PERL=$ac_cv_prog_PERL
34729if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000034730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034731$as_echo "$PERL" >&6; }
34732else
cristy8b350f62009-11-15 23:12:43 +000034733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034734$as_echo "no" >&6; }
34735fi
34736
34737
34738 test -n "$PERL" && break
34739done
34740
34741for ac_prog in rpmbuild rpm
34742do
34743 # Extract the first word of "$ac_prog", so it can be a program name with args.
34744set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034746$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034747if ${ac_cv_prog_RPM+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034748 $as_echo_n "(cached) " >&6
34749else
34750 if test -n "$RPM"; then
34751 ac_cv_prog_RPM="$RPM" # Let the user override the test.
34752else
34753as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34754for as_dir in $PATH
34755do
34756 IFS=$as_save_IFS
34757 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034758 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034759 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034760 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034762 break 2
34763 fi
34764done
cristy8b350f62009-11-15 23:12:43 +000034765 done
cristy3ed852e2009-09-05 21:47:34 +000034766IFS=$as_save_IFS
34767
34768fi
34769fi
34770RPM=$ac_cv_prog_RPM
34771if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000034772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000034773$as_echo "$RPM" >&6; }
34774else
cristy8b350f62009-11-15 23:12:43 +000034775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034776$as_echo "no" >&6; }
34777fi
34778
34779
34780 test -n "$RPM" && break
34781done
34782
34783
cristy73bd4a52010-10-05 11:24:23 +000034784ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
34785
34786
34787AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
34788
34789
34790AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
34791
34792
34793AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
34794
34795
34796 if test "x$RPM" != "x" ; then
34797 RPM_DELEGATE_TRUE=
34798 RPM_DELEGATE_FALSE='#'
34799else
34800 RPM_DELEGATE_TRUE='#'
34801 RPM_DELEGATE_FALSE=
34802fi
34803
cristy3ed852e2009-09-05 21:47:34 +000034804
34805#
34806# 7ZIP support (http://p7zip.sourceforge.net/)
34807#
34808P7ZIP=''
34809for ac_prog in 7za
34810do
34811 # Extract the first word of "$ac_prog", so it can be a program name with args.
34812set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034814$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034815if ${ac_cv_prog_P7ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034816 $as_echo_n "(cached) " >&6
34817else
34818 if test -n "$P7ZIP"; then
34819 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
34820else
34821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34822for as_dir in $PATH
34823do
34824 IFS=$as_save_IFS
34825 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034826 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034828 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034830 break 2
34831 fi
34832done
cristy8b350f62009-11-15 23:12:43 +000034833 done
cristy3ed852e2009-09-05 21:47:34 +000034834IFS=$as_save_IFS
34835
34836fi
34837fi
34838P7ZIP=$ac_cv_prog_P7ZIP
34839if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000034840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000034841$as_echo "$P7ZIP" >&6; }
34842else
cristy8b350f62009-11-15 23:12:43 +000034843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034844$as_echo "no" >&6; }
34845fi
34846
34847
34848 test -n "$P7ZIP" && break
34849done
34850
34851
cristy73bd4a52010-10-05 11:24:23 +000034852 if test "x$P7ZIP" != "x" ; then
34853 P7ZIP_DELEGATE_TRUE=
34854 P7ZIP_DELEGATE_FALSE='#'
34855else
34856 P7ZIP_DELEGATE_TRUE='#'
34857 P7ZIP_DELEGATE_FALSE=
34858fi
34859
cristy3ed852e2009-09-05 21:47:34 +000034860
34861#
34862# ZIP support (http://www.info-zip.org/Zip.html)
34863#
34864ZIP=''
34865for ac_prog in zip
34866do
34867 # Extract the first word of "$ac_prog", so it can be a program name with args.
34868set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034870$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034871if ${ac_cv_prog_ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034872 $as_echo_n "(cached) " >&6
34873else
34874 if test -n "$ZIP"; then
34875 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
34876else
34877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34878for as_dir in $PATH
34879do
34880 IFS=$as_save_IFS
34881 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034882 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034883 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034884 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034886 break 2
34887 fi
34888done
cristy8b350f62009-11-15 23:12:43 +000034889 done
cristy3ed852e2009-09-05 21:47:34 +000034890IFS=$as_save_IFS
34891
34892fi
34893fi
34894ZIP=$ac_cv_prog_ZIP
34895if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000034896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000034897$as_echo "$ZIP" >&6; }
34898else
cristy8b350f62009-11-15 23:12:43 +000034899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034900$as_echo "no" >&6; }
34901fi
34902
34903
34904 test -n "$ZIP" && break
34905done
34906
34907
cristy73bd4a52010-10-05 11:24:23 +000034908 if test "x$ZIP" != "x" ; then
34909 ZIP_DELEGATE_TRUE=
34910 ZIP_DELEGATE_FALSE='#'
34911else
34912 ZIP_DELEGATE_TRUE='#'
34913 ZIP_DELEGATE_FALSE=
34914fi
34915
cristy3ed852e2009-09-05 21:47:34 +000034916
34917#
34918# GhostPCL related configuration.
34919#
34920PCLColorDevice=ppmraw
cristy8bc84082011-09-07 13:57:00 +000034921PCLCMYKDevice=pamcmyk32
cristy3ed852e2009-09-05 21:47:34 +000034922PCLMonoDevice=pbmraw
34923if test -z "$PCLVersion"; then
34924 PCLVersion='unknown'
34925fi
34926if test $have_pcl = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000034927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
34928$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000034929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034930$as_echo_n "checking for PCL... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000034931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
34932$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034933 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000034934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034935$as_echo_n "checking for pcl color device... " >&6; }
cristy86e31f32015-06-06 15:47:32 +000034936 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
cristy3ed852e2009-09-05 21:47:34 +000034937 :
34938 else
34939 PCLColorDevice=ppmraw
34940 fi
cristyad38abe2012-12-23 23:03:21 +000034941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
34942$as_echo "$PCLColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034943
34944 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000034945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034946$as_echo_n "checking for pcl CMYK device... " >&6; }
cristy86e31f32015-06-06 15:47:32 +000034947 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
cristy3ed852e2009-09-05 21:47:34 +000034948 :
34949 else
34950 PCLCMYKDevice=$PCLColorDevice
34951 fi
cristyad38abe2012-12-23 23:03:21 +000034952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
34953$as_echo "$PCLCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034954
34955 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000034956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034957$as_echo_n "checking for pcl mono device... " >&6; }
cristy86e31f32015-06-06 15:47:32 +000034958 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
cristy3ed852e2009-09-05 21:47:34 +000034959 :
34960 else
34961 PCLMonoDevice=$PCLColorDevice
34962 fi
cristyad38abe2012-12-23 23:03:21 +000034963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
34964$as_echo "$PCLMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034965fi
34966
34967
34968
34969
34970
34971
34972#
34973# GhostXPS related configuration.
34974#
34975XPSColorDevice=ppmraw
34976XPSCMYKDevice=bmpsep8
34977XPSMonoDevice=pbmraw
34978if test -z "$XPSVersion"; then
34979 XPSVersion='unknown'
34980fi
34981if test $have_xps = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000034982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
34983$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000034984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000034985$as_echo_n "checking for XPS... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000034986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
34987$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034988 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000034989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034990$as_echo_n "checking for xps color device... " >&6; }
cristy86e31f32015-06-06 15:47:32 +000034991 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
cristy3ed852e2009-09-05 21:47:34 +000034992 :
34993 else
34994 XPSColorDevice=ppmraw
34995 fi
cristyad38abe2012-12-23 23:03:21 +000034996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
34997$as_echo "$XPSColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034998
34999 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035001$as_echo_n "checking for xps CMYK device... " >&6; }
cristy86e31f32015-06-06 15:47:32 +000035002 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
cristy3ed852e2009-09-05 21:47:34 +000035003 :
35004 else
35005 XPSCMYKDevice=$XPSColorDevice
35006 fi
cristyad38abe2012-12-23 23:03:21 +000035007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
35008$as_echo "$XPSCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035009
35010 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035012$as_echo_n "checking for xps mono device... " >&6; }
cristy86e31f32015-06-06 15:47:32 +000035013 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
cristy3ed852e2009-09-05 21:47:34 +000035014 :
35015 else
35016 XPSMonoDevice=$XPSColorDevice
35017 fi
cristyad38abe2012-12-23 23:03:21 +000035018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
35019$as_echo "$XPSMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035020fi
35021
35022
35023
35024
35025
35026
35027#
35028# Ghostscript related configuration.
35029#
cristya97426c2011-02-04 01:41:27 +000035030GSAlphaDevice=pngalpha
cristy3ed852e2009-09-05 21:47:34 +000035031GSColorDevice=pnmraw
cristy63970c52015-06-06 16:09:04 +000035032GSCMYKDevice=pamcmyk32
cristy3ed852e2009-09-05 21:47:34 +000035033GSMonoDevice=pbmraw
35034GSPDFDevice=pdfwrite
cristyb096ea52013-10-26 20:56:38 +000035035GSPSDevice=ps2write
cristya5b91e72015-01-07 15:39:36 +000035036GSEPSDevice=eps2write
cristy3ed852e2009-09-05 21:47:34 +000035037GSVersion='unknown'
35038if test $have_gs = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000035039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35040$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000035042$as_echo_n "checking for Ghostscript... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35044$as_echo "" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000035046$as_echo_n "checking for Ghostscript version... " >&6; }
35047 if GSVersion=`$PSDelegate --version`; then
35048 :
35049 else
35050 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
35051 fi
cristyad38abe2012-12-23 23:03:21 +000035052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
35053$as_echo "$GSVersion" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035054
cristy3ed852e2009-09-05 21:47:34 +000035055 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000035056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035057$as_echo_n "checking for gs color device... " >&6; }
cristy86e31f32015-06-06 15:47:32 +000035058 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
cristy3ed852e2009-09-05 21:47:34 +000035059 :
35060 else
cristy63970c52015-06-06 16:09:04 +000035061 GSColorDevice=ppmraw
cristy3ed852e2009-09-05 21:47:34 +000035062 fi
cristyad38abe2012-12-23 23:03:21 +000035063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
35064$as_echo "$GSColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035065
cristy63970c52015-06-06 16:09:04 +000035066 # GSAlphaDevice
35067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
35068$as_echo_n "checking for gs alpha device... " >&6; }
35069 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
35070 :
35071 else
35072 GSAlphaDevice=$GSColorDevice
35073 fi
35074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
35075$as_echo "$GSAlphaDevice" >&6; }
35076
cristy3ed852e2009-09-05 21:47:34 +000035077 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035079$as_echo_n "checking for gs CMYK device... " >&6; }
cristy86e31f32015-06-06 15:47:32 +000035080 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
cristy3ed852e2009-09-05 21:47:34 +000035081 :
35082 else
cristy63970c52015-06-06 16:09:04 +000035083 GSCMYKDevice=pam
cristy3ed852e2009-09-05 21:47:34 +000035084 fi
cristyad38abe2012-12-23 23:03:21 +000035085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
35086$as_echo "$GSCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035087
35088 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035090$as_echo_n "checking for gs mono device... " >&6; }
cristy86e31f32015-06-06 15:47:32 +000035091 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
cristy3ed852e2009-09-05 21:47:34 +000035092 :
35093 else
35094 GSMonoDevice=$GSColorDevice
35095 fi
cristyad38abe2012-12-23 23:03:21 +000035096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
35097$as_echo "$GSMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035098
35099 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000035100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035101$as_echo_n "checking for gs PDF writing device... " >&6; }
cristy86e31f32015-06-06 15:47:32 +000035102 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
cristy3ed852e2009-09-05 21:47:34 +000035103 :
35104 else
35105 GSPDFDevice=nodevice
35106 fi
cristy63970c52015-06-06 16:09:04 +000035107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
cristyad38abe2012-12-23 23:03:21 +000035108$as_echo "$GSPDFDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035109
35110 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000035111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035112$as_echo_n "checking for gs PS writing device... " >&6; }
cristy86e31f32015-06-06 15:47:32 +000035113 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
cristy3ed852e2009-09-05 21:47:34 +000035114 :
35115 else
cristy15308162015-01-09 23:43:12 +000035116 GSPSDevice=pswrite
cristy3ed852e2009-09-05 21:47:34 +000035117 fi
cristyad38abe2012-12-23 23:03:21 +000035118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
35119$as_echo "$GSPSDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035120
35121 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000035122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035123$as_echo_n "checking for gs EPS writing device... " >&6; }
cristy86e31f32015-06-06 15:47:32 +000035124 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
cristy3ed852e2009-09-05 21:47:34 +000035125 :
35126 else
cristy15308162015-01-09 23:43:12 +000035127 GSEPSDevice=epswrite
cristy3ed852e2009-09-05 21:47:34 +000035128 fi
cristyad38abe2012-12-23 23:03:21 +000035129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
35130$as_echo "$GSEPSDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035131fi
35132
35133
35134
35135
35136
35137
35138
35139
35140
35141
35142#
35143# PerlMagick-related configuration
35144#
35145
35146# Look for PERL if PerlMagick requested
35147# If name/path of desired PERL interpreter is specified, look for that one first
35148have_perl='no'
35149if test "$with_perl" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000035150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35151$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000035153$as_echo_n "checking for Perl... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35155$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035156 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000035157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000035158$as_echo_n "checking for perl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035159if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035160 $as_echo_n "(cached) " >&6
35161else
35162 ac_cv_path_PERL="$with_perl"
35163fi
cristy8b350f62009-11-15 23:12:43 +000035164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035165$as_echo "$ac_cv_path_PERL" >&6; };
35166 PERL=$ac_cv_path_PERL
35167 have_perl="$ac_cv_path_PERL"
35168 else
35169 for ac_prog in perl perl5
35170do
35171 # Extract the first word of "$ac_prog", so it can be a program name with args.
35172set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035174$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035175if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035176 $as_echo_n "(cached) " >&6
35177else
35178 case $PERL in
35179 [\\/]* | ?:[\\/]*)
35180 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
35181 ;;
35182 *)
35183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35184for as_dir in $PATH
35185do
35186 IFS=$as_save_IFS
35187 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035188 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035190 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000035191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035192 break 2
35193 fi
35194done
cristy8b350f62009-11-15 23:12:43 +000035195 done
cristy3ed852e2009-09-05 21:47:34 +000035196IFS=$as_save_IFS
35197
35198 ;;
35199esac
35200fi
35201PERL=$ac_cv_path_PERL
35202if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000035203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035204$as_echo "$PERL" >&6; }
35205else
cristy8b350f62009-11-15 23:12:43 +000035206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035207$as_echo "no" >&6; }
35208fi
35209
35210
35211 test -n "$PERL" && break
35212done
35213 if test "$ac_cv_path_PERL"; then
35214 have_perl="$ac_cv_path_PERL"
35215 fi
35216 fi
35217fi
35218
cristy949301e2010-01-06 01:38:40 +000035219if test "$with_perl" != 'yes' ; then
35220 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
35221fi
35222
35223PERL_SUPPORTS_DESTDIR='no'
35224
cristy3ed852e2009-09-05 21:47:34 +000035225with_perl_static='no'
35226with_perl_dynamic='no'
35227if test "$have_perl" != 'no'; then
35228 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
35229 with_perl_static='yes'
35230 fi
35231 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
35232 with_perl_dynamic='yes'
35233 fi
35234 # Is PERL's MakeMaker new enough to support DESTDIR?
cristy73bd4a52010-10-05 11:24:23 +000035235
35236
35237
35238
35239 if test -n "$PERL"; then :
35240
35241 ax_perl_version="5.8.1"
35242
35243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
35244$as_echo_n "checking for perl version... " >&6; }
35245
cristy17491be2014-06-24 01:10:53 +000035246 perl_version=`$PERL --version 2>&1 \
35247 | $SED -n -e '/This is perl/b inspect
35248b
35249: inspect
35250s/.* (\{0,1\}v\([0-9]*\.[0-9]*\.[0-9]*\))\{0,1\} .*/\1/;p'`
cristy73bd4a52010-10-05 11:24:23 +000035251
35252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
35253$as_echo "$perl_version" >&6; }
35254
35255 PERL_VERSION=$perl_version
35256
35257
35258
35259
35260
35261 # Used to indicate true or false condition
35262 ax_compare_version=false
35263
35264 # Convert the two version strings to be compared into a format that
35265 # allows a simple string comparison. The end result is that a version
35266 # string of the form 1.12.5-r617 will be converted to the form
35267 # 0001001200050617. In other words, each number is zero padded to four
35268 # digits, and non digits are removed.
35269
35270 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
35271 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
35272 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
35273 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
35274 -e 's/[^0-9]//g'`
35275
35276
35277 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
35278 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
35279 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
35280 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
35281 -e 's/[^0-9]//g'`
35282
35283
35284 ax_compare_version=`echo "x$ax_compare_version_A
35285x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
35286
35287
35288
35289 if test "$ax_compare_version" = "true" ; then
35290
35291 :
35292 PERL_SUPPORTS_DESTDIR='yes'
35293
35294 else
35295 :
35296 PERL_SUPPORTS_DESTDIR='no'
35297
35298 fi
35299
35300
35301else
35302
35303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
35304$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
35305 PERL_SUPPORTS_DESTDIR='no'
35306
cristy3ed852e2009-09-05 21:47:34 +000035307fi
cristy73bd4a52010-10-05 11:24:23 +000035308
35309fi
35310 if test "$have_perl" != 'no'; then
35311 WITH_PERL_TRUE=
35312 WITH_PERL_FALSE='#'
35313else
35314 WITH_PERL_TRUE='#'
35315 WITH_PERL_FALSE=
35316fi
35317
35318 if test $with_perl_static = 'yes'; then
35319 WITH_PERL_STATIC_TRUE=
35320 WITH_PERL_STATIC_FALSE='#'
35321else
35322 WITH_PERL_STATIC_TRUE='#'
35323 WITH_PERL_STATIC_FALSE=
35324fi
35325
35326 if test $with_perl_dynamic = 'yes'; then
35327 WITH_PERL_DYNAMIC_TRUE=
35328 WITH_PERL_DYNAMIC_FALSE='#'
35329else
35330 WITH_PERL_DYNAMIC_TRUE='#'
35331 WITH_PERL_DYNAMIC_FALSE=
35332fi
35333
cristy3ed852e2009-09-05 21:47:34 +000035334
35335
35336# Determine path to pick up MagickCore library from for use with building PerlMagick
35337MAGICKCORE_PATH="${LIB_DIR}"
35338if test $with_perl_static = 'yes'; then
35339 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
35340 libtool_objdir=$objdir
35341
35342 # Linker search path to library, followed by -lMagickCore
cristy4c08aed2011-07-01 19:47:50 +000035343 MAGICKCORE_PATH="${builddir}/MagickCore/${libtool_objdir}"
cristy3ed852e2009-09-05 21:47:34 +000035344fi
35345
35346
cristy2a3eb392012-12-17 13:39:20 +000035347# Create a simple string containing format names for all delegate libraries.
cristy422d5502012-12-22 22:20:57 +000035348MAGICK_DELEGATES=''
cristy2a3eb392012-12-17 13:39:20 +000035349if test "$have_autotrace" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035350 MAGICK_DELEGATES="$MAGICK_DELEGATES autotrace"
cristy3ed852e2009-09-05 21:47:34 +000035351fi
cristy2a3eb392012-12-17 13:39:20 +000035352if test "$have_bzlib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035353 MAGICK_DELEGATES="$MAGICK_DELEGATES bzlib"
cristy2a3eb392012-12-17 13:39:20 +000035354fi
35355if test "$have_dps" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035356 MAGICK_DELEGATES="$MAGICK_DELEGATES dps"
cristy2a3eb392012-12-17 13:39:20 +000035357fi
35358if test "$have_djvu" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035359 MAGICK_DELEGATES="$MAGICK_DELEGATES djvu"
cristy2a3eb392012-12-17 13:39:20 +000035360fi
cristy81ab5af2013-10-06 18:28:39 +000035361if test "$have_avconv" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035362 MAGICK_DELEGATES="$MAGICK_DELEGATES mpeg"
cristy2a3eb392012-12-17 13:39:20 +000035363fi
35364if test "$have_fftw" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035365 MAGICK_DELEGATES="$MAGICK_DELEGATES fftw"
cristy2a3eb392012-12-17 13:39:20 +000035366fi
cristy2a3eb392012-12-17 13:39:20 +000035367if test "$have_fpx" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035368 MAGICK_DELEGATES="$MAGICK_DELEGATES fpx"
cristy2a3eb392012-12-17 13:39:20 +000035369fi
35370if test "$have_fontconfig" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035371 MAGICK_DELEGATES="$MAGICK_DELEGATES fontconfig"
cristy2a3eb392012-12-17 13:39:20 +000035372fi
35373if test "$have_freetype" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035374 MAGICK_DELEGATES="$MAGICK_DELEGATES freetype"
cristy2a3eb392012-12-17 13:39:20 +000035375fi
35376if test "$have_gslib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035377 MAGICK_DELEGATES="$MAGICK_DELEGATES gslib"
cristy2a3eb392012-12-17 13:39:20 +000035378fi
35379if test "$have_jbig" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035380 MAGICK_DELEGATES="$MAGICK_DELEGATES jbig"
cristy2a3eb392012-12-17 13:39:20 +000035381fi
35382if test "$have_png$have_jpeg" = 'yesyes' ; then
cristy422d5502012-12-22 22:20:57 +000035383 MAGICK_DELEGATES="$MAGICK_DELEGATES jng"
cristy2a3eb392012-12-17 13:39:20 +000035384fi
cristy2a3eb392012-12-17 13:39:20 +000035385if test "$have_jpeg" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035386 MAGICK_DELEGATES="$MAGICK_DELEGATES jpeg"
cristy2a3eb392012-12-17 13:39:20 +000035387fi
35388if test "$have_lcms" = 'yes' || test "$have_lcms2" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035389 MAGICK_DELEGATES="$MAGICK_DELEGATES lcms"
cristy2a3eb392012-12-17 13:39:20 +000035390fi
35391if test "$have_lqr" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035392 MAGICK_DELEGATES="$MAGICK_DELEGATES lqr"
cristy2a3eb392012-12-17 13:39:20 +000035393fi
35394if test "$have_lzma" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035395 MAGICK_DELEGATES="$MAGICK_DELEGATES lzma"
cristy2a3eb392012-12-17 13:39:20 +000035396fi
35397if test "$have_openexr" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035398 MAGICK_DELEGATES="$MAGICK_DELEGATES openexr"
cristy2a3eb392012-12-17 13:39:20 +000035399fi
cristy99db3872014-01-01 15:11:34 +000035400if test "$have_openjp2" = 'yes' ; then
35401 MAGICK_DELEGATES="$MAGICK_DELEGATES openjp2"
cristy3fe09452014-01-01 12:29:14 +000035402fi
cristy2a3eb392012-12-17 13:39:20 +000035403if test "$have_pango" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035404 MAGICK_DELEGATES="$MAGICK_DELEGATES pango"
cristy2a3eb392012-12-17 13:39:20 +000035405fi
35406if test "$have_png" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035407 MAGICK_DELEGATES="$MAGICK_DELEGATES png"
cristy2a3eb392012-12-17 13:39:20 +000035408fi
35409have_ps='no'
35410if test "$have_dps" = 'yes' || \
35411 test "$have_gs" = 'yes' || \
35412 test "${native_win32_build}" = 'yes' ; then
35413 have_ps='yes'
35414fi
35415if test "$have_ps" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035416 MAGICK_DELEGATES="$MAGICK_DELEGATES ps"
cristy2a3eb392012-12-17 13:39:20 +000035417fi
cristy2a3eb392012-12-17 13:39:20 +000035418if test "$have_ra_ppm" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035419 MAGICK_DELEGATES="$MAGICK_DELEGATES rad"
cristy2a3eb392012-12-17 13:39:20 +000035420fi
35421if test "$have_rsvg" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035422 MAGICK_DELEGATES="$MAGICK_DELEGATES rsvg"
cristy2a3eb392012-12-17 13:39:20 +000035423fi
35424if test "$have_tiff" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035425 MAGICK_DELEGATES="$MAGICK_DELEGATES tiff"
cristy2a3eb392012-12-17 13:39:20 +000035426fi
35427if test "$have_ttf" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035428 MAGICK_DELEGATES="$MAGICK_DELEGATES ttf"
cristy2a3eb392012-12-17 13:39:20 +000035429fi
cristy3b640ed2013-07-29 00:27:59 +000035430if test "$have_webp" = 'yes' ; then
35431 MAGICK_DELEGATES="$MAGICK_DELEGATES webp"
35432fi
cristy2a3eb392012-12-17 13:39:20 +000035433if test "$have_wmf" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035434 MAGICK_DELEGATES="$MAGICK_DELEGATES wmf"
cristy2a3eb392012-12-17 13:39:20 +000035435fi
35436if test "$have_x" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035437 MAGICK_DELEGATES="$MAGICK_DELEGATES x"
cristy2a3eb392012-12-17 13:39:20 +000035438fi
35439if test "$have_xml" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035440 MAGICK_DELEGATES="$MAGICK_DELEGATES xml"
cristy2a3eb392012-12-17 13:39:20 +000035441fi
35442if test "$have_zlib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035443 MAGICK_DELEGATES="$MAGICK_DELEGATES zlib"
cristy2a3eb392012-12-17 13:39:20 +000035444fi
cristyead532a2015-06-05 00:49:30 +000035445
cristy2a3eb392012-12-17 13:39:20 +000035446# Remove extraneous spaces from output variables (asthetic)
cristy422d5502012-12-22 22:20:57 +000035447MAGICK_DELEGATES=`echo $MAGICK_DELEGATES | sed -e 's/ */ /g'`
cristy2a3eb392012-12-17 13:39:20 +000035448MAGICK_FEATURES=`echo $MAGICK_FEATURES | sed -e 's/ */ /g'`
cristy3ed852e2009-09-05 21:47:34 +000035449
35450
cristyfa161182012-12-19 15:45:28 +000035451
cristy3ed852e2009-09-05 21:47:34 +000035452#
35453# Handle special compiler flags
35454#
35455
35456# Add '-p' if prof source profiling support enabled
35457if test "$enable_prof" = 'yes'; then
35458 CFLAGS="-p $CFLAGS"
35459 CXXFLAGS="-p $CXXFLAGS"
35460 LDFLAGS="-p $LDFLAGS"
35461fi
35462
35463# Add '-pg' if gprof source profiling support enabled
35464if test "$enable_gprof" = 'yes'; then
35465 CFLAGS="-pg $CFLAGS"
35466 CXXFLAGS="-pg $CXXFLAGS"
35467 LDFLAGS="-pg $LDFLAGS"
35468fi
35469
35470# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
35471# This is a gcc-specific feature
35472if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000035473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000035474$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035475if ${ac_cv_lib_gcov__gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035476 $as_echo_n "(cached) " >&6
35477else
35478 ac_check_lib_save_LIBS=$LIBS
35479LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000035480cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035481/* end confdefs.h. */
35482
35483/* Override any GCC internal prototype to avoid an error.
35484 Use char because int might match the return type of a GCC
35485 builtin and then its argument prototype would still apply. */
35486#ifdef __cplusplus
35487extern "C"
35488#endif
35489char _gcov_init ();
35490int
35491main ()
35492{
35493return _gcov_init ();
35494 ;
35495 return 0;
35496}
35497_ACEOF
cristy8b350f62009-11-15 23:12:43 +000035498if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000035499 ac_cv_lib_gcov__gcov_init=yes
35500else
cristy8b350f62009-11-15 23:12:43 +000035501 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000035502fi
cristy8b350f62009-11-15 23:12:43 +000035503rm -f core conftest.err conftest.$ac_objext \
35504 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035505LIBS=$ac_check_lib_save_LIBS
35506fi
cristy8b350f62009-11-15 23:12:43 +000035507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000035508$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000035509if test "x$ac_cv_lib_gcov__gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000035510 cat >>confdefs.h <<_ACEOF
35511#define HAVE_LIBGCOV 1
35512_ACEOF
35513
35514 LIBS="-lgcov $LIBS"
35515
35516fi
35517
cristy8b350f62009-11-15 23:12:43 +000035518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000035519$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035520if ${ac_cv_lib_gcov___gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035521 $as_echo_n "(cached) " >&6
35522else
35523 ac_check_lib_save_LIBS=$LIBS
35524LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000035525cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035526/* end confdefs.h. */
35527
35528/* Override any GCC internal prototype to avoid an error.
35529 Use char because int might match the return type of a GCC
35530 builtin and then its argument prototype would still apply. */
35531#ifdef __cplusplus
35532extern "C"
35533#endif
35534char __gcov_init ();
35535int
35536main ()
35537{
35538return __gcov_init ();
35539 ;
35540 return 0;
35541}
35542_ACEOF
cristy8b350f62009-11-15 23:12:43 +000035543if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000035544 ac_cv_lib_gcov___gcov_init=yes
35545else
cristy8b350f62009-11-15 23:12:43 +000035546 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000035547fi
cristy8b350f62009-11-15 23:12:43 +000035548rm -f core conftest.err conftest.$ac_objext \
35549 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035550LIBS=$ac_check_lib_save_LIBS
35551fi
cristy8b350f62009-11-15 23:12:43 +000035552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000035553$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000035554if test "x$ac_cv_lib_gcov___gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000035555 cat >>confdefs.h <<_ACEOF
35556#define HAVE_LIBGCOV 1
35557_ACEOF
35558
35559 LIBS="-lgcov $LIBS"
35560
35561fi
35562
35563 case "$target_os" in
35564 darwin*)
35565 OSX_GCOV_LDFLAG="-Wl,-single_module"
35566 ;;
35567 *)
35568 OSX_GCOV_LDFLAG=""
35569 ;;
35570 esac
35571
35572 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
35573 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
35574 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
35575fi
35576
35577#
35578# Build library dependency list for libMagickCore
35579#
35580
cristyc6722092012-10-14 00:19:31 +000035581if test "$build_modules" != 'no'; then
cristybc8ef1c2015-06-06 14:32:21 +000035582 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 +000035583else
cristy70870272015-06-06 15:54:14 +000035584 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 $LIBOPENJP2_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 +000035585fi
35586
35587
cristy3ed852e2009-09-05 21:47:34 +000035588# Pass only user-provided LIBS as "global" libraries
35589LIBS=$USER_LIBS
35590
35591#AC_SUBST(CPPFLAGS)
35592
35593#AC_SUBST(LDFLAGS)
35594#AC_SUBST(X_PRE_LIBS)
35595#AC_SUBST(X_LIBS)
35596#AC_SUBST(X_EXTRA_LIBS)
35597
35598MAGICK_CFLAGS=$CFLAGS
35599MAGICK_CXXFLAGS="$CXXFLAGS"
35600MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
35601MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
35602MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
cristy31b9e072013-10-17 15:02:53 +000035603MAGICK_LIBS="$MAGICK_DEP_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000035604
35605
35606
35607
35608
35609
35610
35611
35612# Set configured scripts to executable.
35613ac_config_commands="$ac_config_commands default"
35614
cristy2bd4b6e2012-07-22 15:29:11 +000035615ac_config_commands="$ac_config_commands magick.sh.in"
35616
cristy3ed852e2009-09-05 21:47:34 +000035617ac_config_commands="$ac_config_commands MagickCore-config.in"
35618
cristy3ed852e2009-09-05 21:47:34 +000035619ac_config_commands="$ac_config_commands MagickWand-config.in"
35620
cristy3ed852e2009-09-05 21:47:34 +000035621ac_config_commands="$ac_config_commands Magick++-config.in"
35622
35623ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
35624
35625
cristyad38abe2012-12-23 23:03:21 +000035626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35627$as_echo "-------------------------------------------------------------" >&6; }
35628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
35629$as_echo "Update ImageMagick configuration" >&6; }
cristy9af1cbf2014-12-28 22:03:09 +000035630
35631rm -f magick-version
35632
35633result_dejavu_font_dir='none'
35634if test "${dejavu_font_dir}x" != 'x'; then
35635 result_dejavu_font_dir=$dejavu_font_dir
35636fi
35637
35638result_ghostscript_font_dir='none'
35639if test "${ghostscript_font_dir}x" != 'x'; then
35640 result_ghostscript_font_dir=$ghostscript_font_dir
35641fi
35642
35643result_windows_font_dir='none'
35644if test "${windows_font_dir}x" != 'x'; then
35645 result_windows_font_dir=${windows_font_dir}
35646fi
35647
35648# ==============================================================================
35649# Generate build environment
35650# ==============================================================================
35651ac_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"
35652
cristy3ed852e2009-09-05 21:47:34 +000035653cat >confcache <<\_ACEOF
35654# This file is a shell script that caches the results of configure
35655# tests run on this system so they can be shared between configure
35656# scripts and configure runs, see configure's option --config-cache.
35657# It is not useful on other systems. If it contains results you don't
35658# want to keep, you may remove or edit it.
35659#
35660# config.status only pays attention to the cache file if you give it
35661# the --recheck option to rerun configure.
35662#
35663# `ac_cv_env_foo' variables (set or unset) will be overridden when
35664# loading this file, other *unset* `ac_cv_foo' will be assigned the
35665# following values.
35666
35667_ACEOF
35668
35669# The following way of writing the cache mishandles newlines in values,
35670# but we know of no workaround that is simple, portable, and efficient.
35671# So, we kill variables containing newlines.
35672# Ultrix sh set writes to stderr and can't be redirected directly,
35673# and sets the high bit in the cache file unless we assign to the vars.
35674(
35675 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35676 eval ac_val=\$$ac_var
35677 case $ac_val in #(
35678 *${as_nl}*)
35679 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000035680 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000035681$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
35682 esac
35683 case $ac_var in #(
35684 _ | IFS | as_nl) ;; #(
35685 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000035686 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000035687 esac ;;
35688 esac
35689 done
35690
35691 (set) 2>&1 |
35692 case $as_nl`(ac_space=' '; set) 2>&1` in #(
35693 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000035694 # `set' does not quote correctly, so add quotes: double-quote
35695 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000035696 sed -n \
35697 "s/'/'\\\\''/g;
35698 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35699 ;; #(
35700 *)
35701 # `set' quotes correctly as required by POSIX, so do not add quotes.
35702 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
35703 ;;
35704 esac |
35705 sort
35706) |
35707 sed '
35708 /^ac_cv_env_/b end
35709 t clear
35710 :clear
35711 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35712 t end
35713 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35714 :end' >>confcache
35715if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
35716 if test -w "$cache_file"; then
cristyda16f162011-02-19 23:52:17 +000035717 if test "x$cache_file" != "x/dev/null"; then
cristy8b350f62009-11-15 23:12:43 +000035718 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000035719$as_echo "$as_me: updating cache $cache_file" >&6;}
cristyda16f162011-02-19 23:52:17 +000035720 if test ! -f "$cache_file" || test -h "$cache_file"; then
35721 cat confcache >"$cache_file"
35722 else
35723 case $cache_file in #(
35724 */* | ?:*)
35725 mv -f confcache "$cache_file"$$ &&
35726 mv -f "$cache_file"$$ "$cache_file" ;; #(
35727 *)
35728 mv -f confcache "$cache_file" ;;
35729 esac
35730 fi
35731 fi
cristy3ed852e2009-09-05 21:47:34 +000035732 else
cristy8b350f62009-11-15 23:12:43 +000035733 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000035734$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
35735 fi
35736fi
35737rm -f confcache
35738
35739test "x$prefix" = xNONE && prefix=$ac_default_prefix
35740# Let make expand exec_prefix.
35741test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35742
35743DEFS=-DHAVE_CONFIG_H
35744
35745ac_libobjs=
35746ac_ltlibobjs=
cristy98dddb52010-11-04 00:30:15 +000035747U=
cristy3ed852e2009-09-05 21:47:34 +000035748for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35749 # 1. Remove the extension, and $U if already installed.
35750 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
35751 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
35752 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
35753 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000035754 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35755 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000035756done
35757LIBOBJS=$ac_libobjs
35758
35759LTLIBOBJS=$ac_ltlibobjs
35760
35761
cristyc0890a62012-07-19 00:18:20 +000035762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
35763$as_echo_n "checking that generated files are newer than configure... " >&6; }
35764 if test -n "$am_sleep_pid"; then
35765 # Hide warnings about reused PIDs.
35766 wait $am_sleep_pid 2>/dev/null
35767 fi
35768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
35769$as_echo "done" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000035770 if test -n "$EXEEXT"; then
35771 am__EXEEXT_TRUE=
35772 am__EXEEXT_FALSE='#'
35773else
35774 am__EXEEXT_TRUE='#'
35775 am__EXEEXT_FALSE=
35776fi
cristy3ed852e2009-09-05 21:47:34 +000035777
cristy9af1cbf2014-12-28 22:03:09 +000035778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
35779$as_echo_n "checking that generated files are newer than configure... " >&6; }
35780 if test -n "$am_sleep_pid"; then
35781 # Hide warnings about reused PIDs.
35782 wait $am_sleep_pid 2>/dev/null
35783 fi
35784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
35785$as_echo "done" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000035786if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035787 as_fn_error $? "conditional \"AMDEP\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035788Usually this means the macro was only invoked conditionally." "$LINENO" 5
35789fi
35790if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035791 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035792Usually this means the macro was only invoked conditionally." "$LINENO" 5
35793fi
35794if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035795 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035796Usually this means the macro was only invoked conditionally." "$LINENO" 5
35797fi
35798if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035799 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035800Usually this means the macro was only invoked conditionally." "$LINENO" 5
35801fi
cristy9b86f202012-11-28 21:55:35 +000035802if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
35803 as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
35804Usually this means the macro was only invoked conditionally." "$LINENO" 5
35805fi
cristy73bd4a52010-10-05 11:24:23 +000035806if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035807 as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035808Usually this means the macro was only invoked conditionally." "$LINENO" 5
35809fi
35810if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035811 as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035812Usually this means the macro was only invoked conditionally." "$LINENO" 5
35813fi
35814if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035815 as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035816Usually this means the macro was only invoked conditionally." "$LINENO" 5
35817fi
35818if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035819 as_fn_error $? "conditional \"USING_CL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035820Usually this means the macro was only invoked conditionally." "$LINENO" 5
35821fi
cristy73bd4a52010-10-05 11:24:23 +000035822if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035823 as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035824Usually this means the macro was only invoked conditionally." "$LINENO" 5
35825fi
35826if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035827 as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035828Usually this means the macro was only invoked conditionally." "$LINENO" 5
35829fi
cristy73bd4a52010-10-05 11:24:23 +000035830if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035831 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035832Usually this means the macro was only invoked conditionally." "$LINENO" 5
35833fi
cristy71d8c202012-03-20 17:05:01 +000035834if test -z "${LEGACY_SUPPORT_TRUE}" && test -z "${LEGACY_SUPPORT_FALSE}"; then
35835 as_fn_error $? "conditional \"LEGACY_SUPPORT\" was never defined.
35836Usually this means the macro was only invoked conditionally." "$LINENO" 5
35837fi
cristy73bd4a52010-10-05 11:24:23 +000035838
35839if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035840 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035841Usually this means the macro was only invoked conditionally." "$LINENO" 5
35842fi
35843if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035844 as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035845Usually this means the macro was only invoked conditionally." "$LINENO" 5
35846fi
cristy3b0097d2014-11-04 15:34:47 +000035847if test -z "${HasJEMALLOC_TRUE}" && test -z "${HasJEMALLOC_FALSE}"; then
35848 as_fn_error $? "conditional \"HasJEMALLOC\" was never defined.
35849Usually this means the macro was only invoked conditionally." "$LINENO" 5
35850fi
cristy73bd4a52010-10-05 11:24:23 +000035851if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035852 as_fn_error $? "conditional \"HasUMEM\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035853Usually this means the macro was only invoked conditionally." "$LINENO" 5
35854fi
35855if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035856 as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035857Usually this means the macro was only invoked conditionally." "$LINENO" 5
35858fi
35859if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035860 as_fn_error $? "conditional \"X11_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035861Usually this means the macro was only invoked conditionally." "$LINENO" 5
35862fi
35863if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035864 as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035865Usually this means the macro was only invoked conditionally." "$LINENO" 5
35866fi
cristy5eef09f2012-10-16 12:08:28 +000035867if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
35868 as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
35869Usually this means the macro was only invoked conditionally." "$LINENO" 5
35870fi
cristy73bd4a52010-10-05 11:24:23 +000035871if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035872 as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035873Usually this means the macro was only invoked conditionally." "$LINENO" 5
35874fi
35875if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035876 as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035877Usually this means the macro was only invoked conditionally." "$LINENO" 5
35878fi
cristy73bd4a52010-10-05 11:24:23 +000035879if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035880 as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035881Usually this means the macro was only invoked conditionally." "$LINENO" 5
35882fi
35883if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035884 as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035885Usually this means the macro was only invoked conditionally." "$LINENO" 5
35886fi
cristy853d9902014-08-21 18:50:43 +000035887if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
35888 as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined.
35889Usually this means the macro was only invoked conditionally." "$LINENO" 5
35890fi
cristy73bd4a52010-10-05 11:24:23 +000035891if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035892 as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035893Usually this means the macro was only invoked conditionally." "$LINENO" 5
35894fi
35895if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035896 as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035897Usually this means the macro was only invoked conditionally." "$LINENO" 5
35898fi
35899if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035900 as_fn_error $? "conditional \"GS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035901Usually this means the macro was only invoked conditionally." "$LINENO" 5
35902fi
35903if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035904 as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035905Usually this means the macro was only invoked conditionally." "$LINENO" 5
35906fi
35907if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035908 as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035909Usually this means the macro was only invoked conditionally." "$LINENO" 5
35910fi
35911if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035912 as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035913Usually this means the macro was only invoked conditionally." "$LINENO" 5
35914fi
cristy73bd4a52010-10-05 11:24:23 +000035915if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035916 as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035917Usually this means the macro was only invoked conditionally." "$LINENO" 5
35918fi
cristy99db3872014-01-01 15:11:34 +000035919if test -z "${LIBOPENJP2_DELEGATE_TRUE}" && test -z "${LIBOPENJP2_DELEGATE_FALSE}"; then
35920 as_fn_error $? "conditional \"LIBOPENJP2_DELEGATE\" was never defined.
35921Usually this means the macro was only invoked conditionally." "$LINENO" 5
35922fi
cristy73bd4a52010-10-05 11:24:23 +000035923if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035924 as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035925Usually this means the macro was only invoked conditionally." "$LINENO" 5
35926fi
cristyfbb0ef02010-12-19 02:32:11 +000035927if test -z "${LZMA_DELEGATE_TRUE}" && test -z "${LZMA_DELEGATE_FALSE}"; then
35928 as_fn_error $? "conditional \"LZMA_DELEGATE\" was never defined.
35929Usually this means the macro was only invoked conditionally." "$LINENO" 5
35930fi
cristy73bd4a52010-10-05 11:24:23 +000035931if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035932 as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035933Usually this means the macro was only invoked conditionally." "$LINENO" 5
35934fi
cristy41cbe8a2011-10-27 01:35:18 +000035935if test -z "${PANGO_DELEGATE_TRUE}" && test -z "${PANGO_DELEGATE_FALSE}"; then
35936 as_fn_error $? "conditional \"PANGO_DELEGATE\" was never defined.
35937Usually this means the macro was only invoked conditionally." "$LINENO" 5
35938fi
cristya054b762012-03-26 23:16:00 +000035939if test -z "${PANGOCAIRO_DELEGATE_TRUE}" && test -z "${PANGOCAIRO_DELEGATE_FALSE}"; then
35940 as_fn_error $? "conditional \"PANGOCAIRO_DELEGATE\" was never defined.
cristy41cbe8a2011-10-27 01:35:18 +000035941Usually this means the macro was only invoked conditionally." "$LINENO" 5
35942fi
cristy73bd4a52010-10-05 11:24:23 +000035943if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035944 as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035945Usually this means the macro was only invoked conditionally." "$LINENO" 5
35946fi
35947if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035948 as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035949Usually this means the macro was only invoked conditionally." "$LINENO" 5
35950fi
35951if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035952 as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035953Usually this means the macro was only invoked conditionally." "$LINENO" 5
35954fi
35955if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035956 as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035957Usually this means the macro was only invoked conditionally." "$LINENO" 5
35958fi
cristyb1860752011-03-14 00:27:46 +000035959if test -z "${WEBP_DELEGATE_TRUE}" && test -z "${WEBP_DELEGATE_FALSE}"; then
35960 as_fn_error $? "conditional \"WEBP_DELEGATE\" was never defined.
35961Usually this means the macro was only invoked conditionally." "$LINENO" 5
35962fi
cristy73bd4a52010-10-05 11:24:23 +000035963if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035964 as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035965Usually this means the macro was only invoked conditionally." "$LINENO" 5
35966fi
35967if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035968 as_fn_error $? "conditional \"XML_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035969Usually this means the macro was only invoked conditionally." "$LINENO" 5
35970fi
cristydd17feb2014-03-05 02:06:32 +000035971if test -z "${INSTALL_DOC_TRUE}" && test -z "${INSTALL_DOC_FALSE}"; then
35972 as_fn_error $? "conditional \"INSTALL_DOC\" was never defined.
35973Usually this means the macro was only invoked conditionally." "$LINENO" 5
35974fi
cristy73bd4a52010-10-05 11:24:23 +000035975if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035976 as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035977Usually this means the macro was only invoked conditionally." "$LINENO" 5
35978fi
35979if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035980 as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035981Usually this means the macro was only invoked conditionally." "$LINENO" 5
35982fi
35983if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035984 as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035985Usually this means the macro was only invoked conditionally." "$LINENO" 5
35986fi
35987if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035988 as_fn_error $? "conditional \"WITH_PERL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035989Usually this means the macro was only invoked conditionally." "$LINENO" 5
35990fi
35991if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035992 as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035993Usually this means the macro was only invoked conditionally." "$LINENO" 5
35994fi
35995if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035996 as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035997Usually this means the macro was only invoked conditionally." "$LINENO" 5
35998fi
cristy3ed852e2009-09-05 21:47:34 +000035999
cristyda16f162011-02-19 23:52:17 +000036000: "${CONFIG_STATUS=./config.status}"
cristy3ed852e2009-09-05 21:47:34 +000036001ac_write_fail=0
36002ac_clean_files_save=$ac_clean_files
36003ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000036004{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000036005$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000036006as_write_fail=0
36007cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000036008#! $SHELL
36009# Generated by $as_me.
36010# Run this file to recreate the current configuration.
36011# Compiler output produced by configure, useful for debugging
36012# configure, is in config.log if it exists.
36013
36014debug=false
36015ac_cs_recheck=false
36016ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000036017
cristy8b350f62009-11-15 23:12:43 +000036018SHELL=\${CONFIG_SHELL-$SHELL}
36019export SHELL
36020_ASEOF
36021cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
36022## -------------------- ##
36023## M4sh Initialization. ##
36024## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000036025
36026# Be more Bourne compatible
36027DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000036028if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000036029 emulate sh
36030 NULLCMD=:
36031 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
36032 # is contrary to our usage. Disable this feature.
36033 alias -g '${1+"$@"}'='"$@"'
36034 setopt NO_GLOB_SUBST
36035else
cristy8b350f62009-11-15 23:12:43 +000036036 case `(set -o) 2>/dev/null` in #(
36037 *posix*) :
36038 set -o posix ;; #(
36039 *) :
36040 ;;
cristy3ed852e2009-09-05 21:47:34 +000036041esac
cristy3ed852e2009-09-05 21:47:34 +000036042fi
36043
36044
cristy3ed852e2009-09-05 21:47:34 +000036045as_nl='
36046'
36047export as_nl
36048# Printing a long string crashes Solaris 7 /usr/bin/printf.
36049as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
36050as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
36051as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000036052# Prefer a ksh shell builtin over an external printf program on Solaris,
36053# but without wasting forks for bash or zsh.
36054if test -z "$BASH_VERSION$ZSH_VERSION" \
36055 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
36056 as_echo='print -r --'
36057 as_echo_n='print -rn --'
36058elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000036059 as_echo='printf %s\n'
36060 as_echo_n='printf %s'
36061else
36062 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
36063 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
36064 as_echo_n='/usr/ucb/echo -n'
36065 else
36066 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
36067 as_echo_n_body='eval
36068 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000036069 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000036070 *"$as_nl"*)
36071 expr "X$arg" : "X\\(.*\\)$as_nl";
36072 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
36073 esac;
36074 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
36075 '
36076 export as_echo_n_body
36077 as_echo_n='sh -c $as_echo_n_body as_echo'
36078 fi
36079 export as_echo_body
36080 as_echo='sh -c $as_echo_body as_echo'
36081fi
36082
36083# The user is always right.
36084if test "${PATH_SEPARATOR+set}" != set; then
36085 PATH_SEPARATOR=:
36086 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
36087 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
36088 PATH_SEPARATOR=';'
36089 }
36090fi
36091
cristy3ed852e2009-09-05 21:47:34 +000036092
36093# IFS
36094# We need space, tab and new line, in precisely that order. Quoting is
36095# there to prevent editors from complaining about space-tab.
36096# (If _AS_PATH_WALK were called with IFS unset, it would disable word
36097# splitting by setting IFS to empty value.)
36098IFS=" "" $as_nl"
36099
36100# Find who we are. Look in the path if we contain no directory separator.
cristyda16f162011-02-19 23:52:17 +000036101as_myself=
cristy8b350f62009-11-15 23:12:43 +000036102case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000036103 *[\\/]* ) as_myself=$0 ;;
36104 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36105for as_dir in $PATH
36106do
36107 IFS=$as_save_IFS
36108 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000036109 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
36110 done
cristy3ed852e2009-09-05 21:47:34 +000036111IFS=$as_save_IFS
36112
36113 ;;
36114esac
36115# We did not find ourselves, most probably we were run as `sh COMMAND'
36116# in which case we are not to be found in the path.
36117if test "x$as_myself" = x; then
36118 as_myself=$0
36119fi
36120if test ! -f "$as_myself"; then
36121 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000036122 exit 1
cristy3ed852e2009-09-05 21:47:34 +000036123fi
36124
cristy8b350f62009-11-15 23:12:43 +000036125# Unset variables that we do not need and which cause bugs (e.g. in
36126# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
36127# suppresses any "Segmentation fault" message there. '((' could
36128# trigger a bug in pdksh 5.2.14.
36129for as_var in BASH_ENV ENV MAIL MAILPATH
36130do eval test x\${$as_var+set} = xset \
36131 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000036132done
36133PS1='$ '
36134PS2='> '
36135PS4='+ '
36136
36137# NLS nuisances.
36138LC_ALL=C
36139export LC_ALL
36140LANGUAGE=C
36141export LANGUAGE
36142
cristy8b350f62009-11-15 23:12:43 +000036143# CDPATH.
36144(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36145
36146
cristy98dddb52010-11-04 00:30:15 +000036147# as_fn_error STATUS ERROR [LINENO LOG_FD]
36148# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +000036149# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
36150# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +000036151# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +000036152as_fn_error ()
36153{
cristy98dddb52010-11-04 00:30:15 +000036154 as_status=$1; test $as_status -eq 0 && as_status=1
36155 if test "$4"; then
36156 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
36157 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +000036158 fi
cristy98dddb52010-11-04 00:30:15 +000036159 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +000036160 as_fn_exit $as_status
36161} # as_fn_error
36162
36163
36164# as_fn_set_status STATUS
36165# -----------------------
36166# Set $? to STATUS, without forking.
36167as_fn_set_status ()
36168{
36169 return $1
36170} # as_fn_set_status
36171
36172# as_fn_exit STATUS
36173# -----------------
36174# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
36175as_fn_exit ()
36176{
36177 set +e
36178 as_fn_set_status $1
36179 exit $1
36180} # as_fn_exit
36181
36182# as_fn_unset VAR
36183# ---------------
36184# Portably unset VAR.
36185as_fn_unset ()
36186{
36187 { eval $1=; unset $1;}
36188}
36189as_unset=as_fn_unset
36190# as_fn_append VAR VALUE
36191# ----------------------
36192# Append the text in VALUE to the end of the definition contained in VAR. Take
36193# advantage of any shell optimizations that allow amortized linear growth over
36194# repeated appends, instead of the typical quadratic growth present in naive
36195# implementations.
36196if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
36197 eval 'as_fn_append ()
36198 {
36199 eval $1+=\$2
36200 }'
36201else
36202 as_fn_append ()
36203 {
36204 eval $1=\$$1\$2
36205 }
36206fi # as_fn_append
36207
36208# as_fn_arith ARG...
36209# ------------------
36210# Perform arithmetic evaluation on the ARGs, and store the result in the
36211# global $as_val. Take advantage of shells that can avoid forks. The arguments
36212# must be portable across $(()) and expr.
36213if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
36214 eval 'as_fn_arith ()
36215 {
36216 as_val=$(( $* ))
36217 }'
36218else
36219 as_fn_arith ()
36220 {
36221 as_val=`expr "$@" || test $? -eq 1`
36222 }
36223fi # as_fn_arith
36224
36225
cristy3ed852e2009-09-05 21:47:34 +000036226if expr a : '\(a\)' >/dev/null 2>&1 &&
36227 test "X`expr 00001 : '.*\(...\)'`" = X001; then
36228 as_expr=expr
36229else
36230 as_expr=false
36231fi
36232
36233if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
36234 as_basename=basename
36235else
36236 as_basename=false
36237fi
36238
cristy8b350f62009-11-15 23:12:43 +000036239if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
36240 as_dirname=dirname
36241else
36242 as_dirname=false
36243fi
cristy3ed852e2009-09-05 21:47:34 +000036244
cristy3ed852e2009-09-05 21:47:34 +000036245as_me=`$as_basename -- "$0" ||
36246$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
36247 X"$0" : 'X\(//\)$' \| \
36248 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
36249$as_echo X/"$0" |
36250 sed '/^.*\/\([^/][^/]*\)\/*$/{
36251 s//\1/
36252 q
36253 }
36254 /^X\/\(\/\/\)$/{
36255 s//\1/
36256 q
36257 }
36258 /^X\/\(\/\).*/{
36259 s//\1/
36260 q
36261 }
36262 s/.*/./; q'`
36263
cristy8b350f62009-11-15 23:12:43 +000036264# Avoid depending upon Character Ranges.
36265as_cr_letters='abcdefghijklmnopqrstuvwxyz'
36266as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36267as_cr_Letters=$as_cr_letters$as_cr_LETTERS
36268as_cr_digits='0123456789'
36269as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000036270
36271ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000036272case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000036273-n*)
cristy8b350f62009-11-15 23:12:43 +000036274 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000036275 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000036276 xy) ECHO_C='\c';;
36277 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
36278 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000036279 esac;;
36280*)
36281 ECHO_N='-n';;
36282esac
cristy3ed852e2009-09-05 21:47:34 +000036283
36284rm -f conf$$ conf$$.exe conf$$.file
36285if test -d conf$$.dir; then
36286 rm -f conf$$.dir/conf$$.file
36287else
36288 rm -f conf$$.dir
36289 mkdir conf$$.dir 2>/dev/null
36290fi
36291if (echo >conf$$.file) 2>/dev/null; then
36292 if ln -s conf$$.file conf$$ 2>/dev/null; then
36293 as_ln_s='ln -s'
36294 # ... but there are two gotchas:
36295 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
36296 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
cristy14fefe52012-05-21 00:59:18 +000036297 # In both cases, we have to default to `cp -pR'.
cristy3ed852e2009-09-05 21:47:34 +000036298 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
cristy14fefe52012-05-21 00:59:18 +000036299 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036300 elif ln conf$$.file conf$$ 2>/dev/null; then
36301 as_ln_s=ln
36302 else
cristy14fefe52012-05-21 00:59:18 +000036303 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036304 fi
36305else
cristy14fefe52012-05-21 00:59:18 +000036306 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036307fi
36308rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
36309rmdir conf$$.dir 2>/dev/null
36310
cristy8b350f62009-11-15 23:12:43 +000036311
36312# as_fn_mkdir_p
36313# -------------
36314# Create "$as_dir" as a directory, including parents if necessary.
36315as_fn_mkdir_p ()
36316{
36317
36318 case $as_dir in #(
36319 -*) as_dir=./$as_dir;;
36320 esac
36321 test -d "$as_dir" || eval $as_mkdir_p || {
36322 as_dirs=
36323 while :; do
36324 case $as_dir in #(
36325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
36326 *) as_qdir=$as_dir;;
36327 esac
36328 as_dirs="'$as_qdir' $as_dirs"
36329 as_dir=`$as_dirname -- "$as_dir" ||
36330$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36331 X"$as_dir" : 'X\(//\)[^/]' \| \
36332 X"$as_dir" : 'X\(//\)$' \| \
36333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36334$as_echo X"$as_dir" |
36335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36336 s//\1/
36337 q
36338 }
36339 /^X\(\/\/\)[^/].*/{
36340 s//\1/
36341 q
36342 }
36343 /^X\(\/\/\)$/{
36344 s//\1/
36345 q
36346 }
36347 /^X\(\/\).*/{
36348 s//\1/
36349 q
36350 }
36351 s/.*/./; q'`
36352 test -d "$as_dir" && break
36353 done
36354 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +000036355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +000036356
36357
36358} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000036359if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000036360 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000036361else
36362 test -d ./-p && rmdir ./-p
36363 as_mkdir_p=false
36364fi
36365
cristy14fefe52012-05-21 00:59:18 +000036366
36367# as_fn_executable_p FILE
36368# -----------------------
36369# Test if FILE is an executable regular file.
36370as_fn_executable_p ()
36371{
36372 test -f "$1" && test -x "$1"
36373} # as_fn_executable_p
36374as_test_x='test -x'
36375as_executable_p=as_fn_executable_p
cristy3ed852e2009-09-05 21:47:34 +000036376
36377# Sed expression to map a string onto a valid CPP name.
36378as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
36379
36380# Sed expression to map a string onto a valid variable name.
36381as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
36382
36383
36384exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000036385## ----------------------------------- ##
36386## Main body of $CONFIG_STATUS script. ##
36387## ----------------------------------- ##
36388_ASEOF
36389test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000036390
cristy8b350f62009-11-15 23:12:43 +000036391cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36392# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000036393# report actual input values of CONFIG_FILES etc. instead of their
36394# values after options handling.
36395ac_log="
cristy29eb34e2011-10-16 00:46:08 +000036396This file was extended by ImageMagick $as_me 7.0.0-0, which was
cristy14fefe52012-05-21 00:59:18 +000036397generated by GNU Autoconf 2.69. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000036398
36399 CONFIG_FILES = $CONFIG_FILES
36400 CONFIG_HEADERS = $CONFIG_HEADERS
36401 CONFIG_LINKS = $CONFIG_LINKS
36402 CONFIG_COMMANDS = $CONFIG_COMMANDS
36403 $ $0 $@
36404
36405on `(hostname || uname -n) 2>/dev/null | sed 1q`
36406"
36407
36408_ACEOF
36409
36410case $ac_config_files in *"
36411"*) set x $ac_config_files; shift; ac_config_files=$*;;
36412esac
36413
36414case $ac_config_headers in *"
36415"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
36416esac
36417
36418
36419cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36420# Files that config.status was made for.
36421config_files="$ac_config_files"
36422config_headers="$ac_config_headers"
36423config_commands="$ac_config_commands"
36424
36425_ACEOF
36426
36427cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36428ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000036429\`$as_me' instantiates files and other configuration actions
36430from templates according to the current configuration. Unless the files
36431and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000036432
cristy8b350f62009-11-15 23:12:43 +000036433Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000036434
36435 -h, --help print this help, then exit
36436 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000036437 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000036438 -q, --quiet, --silent
36439 do not print progress messages
36440 -d, --debug don't remove temporary files
36441 --recheck update $as_me by reconfiguring in the same conditions
36442 --file=FILE[:TEMPLATE]
36443 instantiate the configuration file FILE
36444 --header=FILE[:TEMPLATE]
36445 instantiate the configuration header FILE
36446
36447Configuration files:
36448$config_files
36449
36450Configuration headers:
36451$config_headers
36452
36453Configuration commands:
36454$config_commands
36455
cristy8b350f62009-11-15 23:12:43 +000036456Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000036457
36458_ACEOF
36459cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000036460ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000036461ac_cs_version="\\
cristy29eb34e2011-10-16 00:46:08 +000036462ImageMagick config.status 7.0.0-0
cristy14fefe52012-05-21 00:59:18 +000036463configured by $0, generated by GNU Autoconf 2.69,
cristycd4c5312009-11-22 01:19:08 +000036464 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000036465
cristy14fefe52012-05-21 00:59:18 +000036466Copyright (C) 2012 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000036467This config.status script is free software; the Free Software Foundation
36468gives unlimited permission to copy, distribute and modify it."
36469
36470ac_pwd='$ac_pwd'
36471srcdir='$srcdir'
36472INSTALL='$INSTALL'
cristy73bd4a52010-10-05 11:24:23 +000036473MKDIR_P='$MKDIR_P'
36474AWK='$AWK'
cristy3ed852e2009-09-05 21:47:34 +000036475test -n "\$AWK" || AWK=awk
36476_ACEOF
36477
36478cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36479# The default lists apply if the user does not specify any file.
36480ac_need_defaults=:
36481while test $# != 0
36482do
36483 case $1 in
cristyda16f162011-02-19 23:52:17 +000036484 --*=?*)
cristy3ed852e2009-09-05 21:47:34 +000036485 ac_option=`expr "X$1" : 'X\([^=]*\)='`
36486 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
36487 ac_shift=:
36488 ;;
cristyda16f162011-02-19 23:52:17 +000036489 --*=)
36490 ac_option=`expr "X$1" : 'X\([^=]*\)='`
36491 ac_optarg=
36492 ac_shift=:
36493 ;;
cristy3ed852e2009-09-05 21:47:34 +000036494 *)
36495 ac_option=$1
36496 ac_optarg=$2
36497 ac_shift=shift
36498 ;;
36499 esac
36500
36501 case $ac_option in
36502 # Handling of the options.
36503 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
36504 ac_cs_recheck=: ;;
36505 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
36506 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000036507 --config | --confi | --conf | --con | --co | --c )
36508 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000036509 --debug | --debu | --deb | --de | --d | -d )
36510 debug=: ;;
36511 --file | --fil | --fi | --f )
36512 $ac_shift
36513 case $ac_optarg in
36514 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
cristyda16f162011-02-19 23:52:17 +000036515 '') as_fn_error $? "missing file argument" ;;
cristy3ed852e2009-09-05 21:47:34 +000036516 esac
cristy8b350f62009-11-15 23:12:43 +000036517 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000036518 ac_need_defaults=false;;
36519 --header | --heade | --head | --hea )
36520 $ac_shift
36521 case $ac_optarg in
36522 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
36523 esac
cristy8b350f62009-11-15 23:12:43 +000036524 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000036525 ac_need_defaults=false;;
36526 --he | --h)
36527 # Conflict between --help and --header
cristy98dddb52010-11-04 00:30:15 +000036528 as_fn_error $? "ambiguous option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000036529Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000036530 --help | --hel | -h )
36531 $as_echo "$ac_cs_usage"; exit ;;
36532 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
36533 | -silent | --silent | --silen | --sile | --sil | --si | --s)
36534 ac_cs_silent=: ;;
36535
36536 # This is an error.
cristy98dddb52010-11-04 00:30:15 +000036537 -*) as_fn_error $? "unrecognized option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000036538Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000036539
cristy8b350f62009-11-15 23:12:43 +000036540 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000036541 ac_need_defaults=false ;;
36542
36543 esac
36544 shift
36545done
36546
36547ac_configure_extra_args=
36548
36549if $ac_cs_silent; then
36550 exec 6>/dev/null
36551 ac_configure_extra_args="$ac_configure_extra_args --silent"
36552fi
36553
36554_ACEOF
36555cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36556if \$ac_cs_recheck; then
cristy14fefe52012-05-21 00:59:18 +000036557 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
cristy3ed852e2009-09-05 21:47:34 +000036558 shift
36559 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
36560 CONFIG_SHELL='$SHELL'
36561 export CONFIG_SHELL
36562 exec "\$@"
36563fi
36564
36565_ACEOF
36566cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36567exec 5>>config.log
36568{
36569 echo
36570 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
36571## Running $as_me. ##
36572_ASBOX
36573 $as_echo "$ac_log"
36574} >&5
36575
36576_ACEOF
36577cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristy73bd4a52010-10-05 11:24:23 +000036578#
36579# INIT-COMMANDS
36580#
36581PACKAGE="$PACKAGE"
36582AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
36583
36584
36585# The HP-UX ksh and POSIX shell print the target directory to stdout
36586# if CDPATH is set.
36587(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36588
36589sed_quote_subst='$sed_quote_subst'
36590double_quote_subst='$double_quote_subst'
36591delay_variable_subst='$delay_variable_subst'
cristy0c60a692010-11-04 01:09:47 +000036592SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
36593Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
36594GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
36595EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
36596FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
36597SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
36598ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
36599LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
36600macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
36601macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
36602AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
36603DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
36604OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
36605enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
36606enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
36607pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
36608enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
cristy99bd5232011-12-07 14:38:20 +000036609PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036610host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
36611host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
36612host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
36613build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
36614build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
36615build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
36616NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
36617LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
36618max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
36619ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
36620exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
36621lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
36622lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
36623lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036624lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
36625lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036626reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
36627reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
36628deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
36629file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036630file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
36631want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
36632sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036633AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
36634AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036635archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036636STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
36637RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
36638old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36639old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36640old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
36641lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
36642CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
36643CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
36644compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
36645GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
36646lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
36647lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
36648lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
36649lt_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 +000036650nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
36651lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036652objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
36653MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
36654lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036655lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036656lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036657lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
36658lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
36659need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036660MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036661DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
36662NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
36663LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
36664OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
36665OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
36666libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
36667shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
36668extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36669archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
36670enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
36671export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
36672whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
36673compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
36674old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
36675old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36676archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
36677archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36678module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
36679module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36680with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
36681allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
36682no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
36683hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036684hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
36685hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
36686hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
36687hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
36688hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
36689hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
36690inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
36691link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036692always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
36693export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
36694exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
36695include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
36696prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036697postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036698file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
36699variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
36700need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
36701need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
36702version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
36703runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
36704shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
36705shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
36706libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
36707library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
36708soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
36709install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
36710postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36711postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36712finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
36713finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
36714hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
36715sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
36716sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
36717hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
36718enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
36719enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
36720enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
36721old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
36722striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
36723compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
36724predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
36725postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
36726predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
36727postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
36728compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
36729LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
36730reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
36731reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36732old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36733compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
36734GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
36735lt_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 +000036736lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036737lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036738lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
36739lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
36740archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
36741enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
36742export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36743whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36744compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
36745old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36746old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36747archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36748archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36749module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36750module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36751with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
36752allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
36753no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
36754hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036755hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
36756hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
36757hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
36758hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
36759hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
36760hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
36761inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
36762link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036763always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
36764export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36765exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
36766include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
36767prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036768postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036769file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
36770hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
36771compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
36772predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
36773postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
36774predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
36775postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
36776compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
cristy73bd4a52010-10-05 11:24:23 +000036777
36778LTCC='$LTCC'
36779LTCFLAGS='$LTCFLAGS'
36780compiler='$compiler_DEFAULT'
36781
cristy0c60a692010-11-04 01:09:47 +000036782# A function that is used when there is no print builtin or printf.
36783func_fallback_echo ()
36784{
36785 eval 'cat <<_LTECHO_EOF
36786\$1
36787_LTECHO_EOF'
36788}
36789
cristy73bd4a52010-10-05 11:24:23 +000036790# Quote evaled strings.
36791for var in SED \
36792GREP \
36793EGREP \
36794FGREP \
cristy0c60a692010-11-04 01:09:47 +000036795SHELL \
36796ECHO \
cristy73bd4a52010-10-05 11:24:23 +000036797LD \
cristy0c60a692010-11-04 01:09:47 +000036798AS \
36799DLLTOOL \
36800OBJDUMP \
cristy99bd5232011-12-07 14:38:20 +000036801PATH_SEPARATOR \
cristy73bd4a52010-10-05 11:24:23 +000036802NM \
36803LN_S \
36804lt_SP2NL \
36805lt_NL2SP \
36806reload_flag \
36807deplibs_check_method \
36808file_magic_cmd \
cristyda16f162011-02-19 23:52:17 +000036809file_magic_glob \
36810want_nocaseglob \
36811sharedlib_from_linklib_cmd \
cristy73bd4a52010-10-05 11:24:23 +000036812AR \
36813AR_FLAGS \
cristyda16f162011-02-19 23:52:17 +000036814archiver_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000036815STRIP \
36816RANLIB \
36817CC \
36818CFLAGS \
36819compiler \
36820lt_cv_sys_global_symbol_pipe \
36821lt_cv_sys_global_symbol_to_cdecl \
36822lt_cv_sys_global_symbol_to_c_name_address \
36823lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cristyda16f162011-02-19 23:52:17 +000036824nm_file_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000036825lt_prog_compiler_no_builtin_flag \
cristy73bd4a52010-10-05 11:24:23 +000036826lt_prog_compiler_pic \
cristyda16f162011-02-19 23:52:17 +000036827lt_prog_compiler_wl \
cristy73bd4a52010-10-05 11:24:23 +000036828lt_prog_compiler_static \
36829lt_cv_prog_compiler_c_o \
36830need_locks \
cristyda16f162011-02-19 23:52:17 +000036831MANIFEST_TOOL \
cristy73bd4a52010-10-05 11:24:23 +000036832DSYMUTIL \
36833NMEDIT \
36834LIPO \
36835OTOOL \
36836OTOOL64 \
36837shrext_cmds \
36838export_dynamic_flag_spec \
36839whole_archive_flag_spec \
36840compiler_needs_object \
36841with_gnu_ld \
36842allow_undefined_flag \
36843no_undefined_flag \
36844hardcode_libdir_flag_spec \
cristy73bd4a52010-10-05 11:24:23 +000036845hardcode_libdir_separator \
cristy73bd4a52010-10-05 11:24:23 +000036846exclude_expsyms \
36847include_expsyms \
36848file_list_spec \
36849variables_saved_for_relink \
36850libname_spec \
36851library_names_spec \
36852soname_spec \
cristy0c60a692010-11-04 01:09:47 +000036853install_override_mode \
cristy73bd4a52010-10-05 11:24:23 +000036854finish_eval \
36855old_striplib \
36856striplib \
36857compiler_lib_search_dirs \
36858predep_objects \
36859postdep_objects \
36860predeps \
36861postdeps \
36862compiler_lib_search_path \
36863LD_CXX \
cristy0c60a692010-11-04 01:09:47 +000036864reload_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036865compiler_CXX \
36866lt_prog_compiler_no_builtin_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036867lt_prog_compiler_pic_CXX \
cristyda16f162011-02-19 23:52:17 +000036868lt_prog_compiler_wl_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036869lt_prog_compiler_static_CXX \
36870lt_cv_prog_compiler_c_o_CXX \
36871export_dynamic_flag_spec_CXX \
36872whole_archive_flag_spec_CXX \
36873compiler_needs_object_CXX \
36874with_gnu_ld_CXX \
36875allow_undefined_flag_CXX \
36876no_undefined_flag_CXX \
36877hardcode_libdir_flag_spec_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036878hardcode_libdir_separator_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036879exclude_expsyms_CXX \
36880include_expsyms_CXX \
36881file_list_spec_CXX \
36882compiler_lib_search_dirs_CXX \
36883predep_objects_CXX \
36884postdep_objects_CXX \
36885predeps_CXX \
36886postdeps_CXX \
36887compiler_lib_search_path_CXX; do
cristy0c60a692010-11-04 01:09:47 +000036888 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000036889 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000036890 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000036891 ;;
36892 *)
36893 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
36894 ;;
36895 esac
36896done
36897
36898# Double-quote double-evaled strings.
36899for var in reload_cmds \
36900old_postinstall_cmds \
36901old_postuninstall_cmds \
36902old_archive_cmds \
36903extract_expsyms_cmds \
36904old_archive_from_new_cmds \
36905old_archive_from_expsyms_cmds \
36906archive_cmds \
36907archive_expsym_cmds \
36908module_cmds \
36909module_expsym_cmds \
36910export_symbols_cmds \
36911prelink_cmds \
cristyda16f162011-02-19 23:52:17 +000036912postlink_cmds \
cristy73bd4a52010-10-05 11:24:23 +000036913postinstall_cmds \
36914postuninstall_cmds \
36915finish_cmds \
36916sys_lib_search_path_spec \
36917sys_lib_dlsearch_path_spec \
cristy0c60a692010-11-04 01:09:47 +000036918reload_cmds_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036919old_archive_cmds_CXX \
36920old_archive_from_new_cmds_CXX \
36921old_archive_from_expsyms_cmds_CXX \
36922archive_cmds_CXX \
36923archive_expsym_cmds_CXX \
36924module_cmds_CXX \
36925module_expsym_cmds_CXX \
36926export_symbols_cmds_CXX \
cristyda16f162011-02-19 23:52:17 +000036927prelink_cmds_CXX \
36928postlink_cmds_CXX; do
cristy0c60a692010-11-04 01:09:47 +000036929 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000036930 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000036931 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000036932 ;;
36933 *)
36934 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
36935 ;;
36936 esac
36937done
36938
cristy73bd4a52010-10-05 11:24:23 +000036939ac_aux_dir='$ac_aux_dir'
36940xsi_shell='$xsi_shell'
36941lt_shell_append='$lt_shell_append'
36942
36943# See if we are running on zsh, and set the options which allow our
36944# commands through without removal of \ escapes INIT.
36945if test -n "\${ZSH_VERSION+set}" ; then
36946 setopt NO_GLOB_SUBST
36947fi
36948
36949
36950 PACKAGE='$PACKAGE'
36951 VERSION='$VERSION'
36952 TIMESTAMP='$TIMESTAMP'
36953 RM='$RM'
36954 ofile='$ofile'
36955
36956
36957
36958
36959
36960
cristy3ed852e2009-09-05 21:47:34 +000036961_ACEOF
36962
36963cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36964
36965# Handling of arguments.
36966for ac_config_target in $ac_config_targets
36967do
36968 case $ac_config_target in
36969 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
cristy01ff9f32012-12-01 18:15:29 +000036970 "MagickCore/magick-baseconfig.h") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore/magick-baseconfig.h" ;;
cristy9af1cbf2014-12-28 22:03:09 +000036971 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
36972 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
36973 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
36974 "magick.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS magick.sh.in" ;;
36975 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
36976 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
36977 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
36978 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
cristy305c5dd2012-09-13 00:30:13 +000036979 "common.shi") CONFIG_FILES="$CONFIG_FILES common.shi" ;;
cristy3ed852e2009-09-05 21:47:34 +000036980 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
36981 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
36982 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
36983 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
36984 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
cristy2df32802012-09-17 01:15:28 +000036985 "config/Magick++.dox") CONFIG_FILES="$CONFIG_FILES config/Magick++.dox" ;;
cristy5a3dc992014-12-05 19:50:04 +000036986 "config/type-apple.xml") CONFIG_FILES="$CONFIG_FILES config/type-apple.xml" ;;
cristy430a7312010-01-21 20:44:04 +000036987 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
cristy3ed852e2009-09-05 21:47:34 +000036988 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
36989 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
36990 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
36991 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
36992 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
cristy4c08aed2011-07-01 19:47:50 +000036993 "MagickCore/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/ImageMagick.pc" ;;
cristy3ed852e2009-09-05 21:47:34 +000036994 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
cristy4c08aed2011-07-01 19:47:50 +000036995 "MagickCore/MagickCore-config") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore-config" ;;
36996 "MagickCore/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore.pc" ;;
36997 "MagickCore/version.h") CONFIG_FILES="$CONFIG_FILES MagickCore/version.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000036998 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
36999 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
cristy3ed852e2009-09-05 21:47:34 +000037000 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
cristy8d0ff762013-03-10 20:33:28 +000037001 "PerlMagick/default/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/default/Magick.pm" ;;
cristy3e049f82013-02-13 13:26:53 +000037002 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
cristy8d0ff762013-03-10 20:33:28 +000037003 "PerlMagick/default/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/default/Makefile.PL" ;;
cristycf0cbcc2013-02-13 23:32:58 +000037004 "PerlMagick/quantum/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/Makefile.PL" ;;
37005 "PerlMagick/quantum/quantum.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/quantum.pm" ;;
37006 "PerlMagick/quantum/quantum.xs") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/quantum.xs" ;;
37007 "PerlMagick/quantum/typemap") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/typemap" ;;
cristy3ed852e2009-09-05 21:47:34 +000037008 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
37009 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
37010 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
37011 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
37012 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
37013 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
37014 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
37015 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
37016 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
37017 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
37018 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
37019 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
cristy4c08aed2011-07-01 19:47:50 +000037020 "MagickWand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand-config" ;;
37021 "MagickWand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand.pc" ;;
cristy3ed852e2009-09-05 21:47:34 +000037022
cristy98dddb52010-11-04 00:30:15 +000037023 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037024 esac
37025done
37026
37027
37028# If the user did not use the arguments to specify the items to instantiate,
37029# then the envvar interface is used. Set only those that are not.
37030# We use the long form for the default assignment because of an extremely
37031# bizarre bug on SunOS 4.1.3.
37032if $ac_need_defaults; then
37033 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
37034 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
37035 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
37036fi
37037
37038# Have a temporary directory for convenience. Make it in the build tree
37039# simply because there is no reason against having it here, and in addition,
37040# creating and moving files from /tmp can sometimes cause problems.
37041# Hook for its removal unless debugging.
37042# Note that there is a small window in which the directory will not be cleaned:
37043# after its creation but before its name has been assigned to `$tmp'.
37044$debug ||
37045{
cristyda16f162011-02-19 23:52:17 +000037046 tmp= ac_tmp=
cristy3ed852e2009-09-05 21:47:34 +000037047 trap 'exit_status=$?
cristyda16f162011-02-19 23:52:17 +000037048 : "${ac_tmp:=$tmp}"
37049 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
cristy3ed852e2009-09-05 21:47:34 +000037050' 0
cristy8b350f62009-11-15 23:12:43 +000037051 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000037052}
37053# Create a (secure) tmp directory for tmp files.
37054
37055{
37056 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
cristyda16f162011-02-19 23:52:17 +000037057 test -d "$tmp"
cristy3ed852e2009-09-05 21:47:34 +000037058} ||
37059{
37060 tmp=./conf$$-$RANDOM
37061 (umask 077 && mkdir "$tmp")
cristy98dddb52010-11-04 00:30:15 +000037062} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000037063ac_tmp=$tmp
cristy3ed852e2009-09-05 21:47:34 +000037064
37065# Set up the scripts for CONFIG_FILES section.
37066# No need to generate them if there are no CONFIG_FILES.
37067# This happens for instance with `./config.status config.h'.
37068if test -n "$CONFIG_FILES"; then
37069
37070
cristy8b350f62009-11-15 23:12:43 +000037071ac_cr=`echo X | tr X '\015'`
37072# On cygwin, bash can eat \r inside `` if the user requested igncr.
37073# But we know of no other shell where ac_cr would be empty at this
37074# point, so we can use a bashism as a fallback.
37075if test "x$ac_cr" = x; then
37076 eval ac_cr=\$\'\\r\'
37077fi
cristy3ed852e2009-09-05 21:47:34 +000037078ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
37079if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristy98dddb52010-11-04 00:30:15 +000037080 ac_cs_awk_cr='\\r'
cristy3ed852e2009-09-05 21:47:34 +000037081else
37082 ac_cs_awk_cr=$ac_cr
37083fi
37084
cristyda16f162011-02-19 23:52:17 +000037085echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
cristy3ed852e2009-09-05 21:47:34 +000037086_ACEOF
37087
37088
37089{
37090 echo "cat >conf$$subs.awk <<_ACEOF" &&
37091 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
37092 echo "_ACEOF"
37093} >conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000037094 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
37095ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
cristy3ed852e2009-09-05 21:47:34 +000037096ac_delim='%!_!# '
37097for ac_last_try in false false false false false :; do
37098 . ./conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000037099 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037100
37101 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
37102 if test $ac_delim_n = $ac_delim_num; then
37103 break
37104 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000037105 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037106 else
37107 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
37108 fi
37109done
37110rm -f conf$$subs.sh
37111
37112cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristyda16f162011-02-19 23:52:17 +000037113cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000037114_ACEOF
37115sed -n '
37116h
37117s/^/S["/; s/!.*/"]=/
37118p
37119g
37120s/^[^!]*!//
37121:repl
37122t repl
37123s/'"$ac_delim"'$//
37124t delim
37125:nl
37126h
cristycd4c5312009-11-22 01:19:08 +000037127s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000037128t more1
37129s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
37130p
37131n
37132b repl
37133:more1
37134s/["\\]/\\&/g; s/^/"/; s/$/"\\/
37135p
37136g
37137s/.\{148\}//
37138t nl
37139:delim
37140h
cristycd4c5312009-11-22 01:19:08 +000037141s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000037142t more2
37143s/["\\]/\\&/g; s/^/"/; s/$/"/
37144p
37145b
37146:more2
37147s/["\\]/\\&/g; s/^/"/; s/$/"\\/
37148p
37149g
37150s/.\{148\}//
37151t delim
37152' <conf$$subs.awk | sed '
37153/^[^""]/{
37154 N
37155 s/\n//
37156}
37157' >>$CONFIG_STATUS || ac_write_fail=1
37158rm -f conf$$subs.awk
37159cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37160_ACAWK
cristyda16f162011-02-19 23:52:17 +000037161cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000037162 for (key in S) S_is_set[key] = 1
37163 FS = ""
37164
37165}
37166{
37167 line = $ 0
37168 nfields = split(line, field, "@")
37169 substed = 0
37170 len = length(field[1])
37171 for (i = 2; i < nfields; i++) {
37172 key = field[i]
37173 keylen = length(key)
37174 if (S_is_set[key]) {
37175 value = S[key]
37176 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
37177 len += length(value) + length(field[++i])
37178 substed = 1
37179 } else
37180 len += 1 + keylen
37181 }
37182
37183 print line
37184}
37185
37186_ACAWK
37187_ACEOF
37188cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37189if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
37190 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
37191else
37192 cat
cristyda16f162011-02-19 23:52:17 +000037193fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
cristy98dddb52010-11-04 00:30:15 +000037194 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037195_ACEOF
37196
cristy98dddb52010-11-04 00:30:15 +000037197# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
37198# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
cristy3ed852e2009-09-05 21:47:34 +000037199# trailing colons and then remove the whole line if VPATH becomes empty
37200# (actually we leave an empty line to preserve line numbers).
37201if test "x$srcdir" = x.; then
cristy98dddb52010-11-04 00:30:15 +000037202 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
37203h
37204s///
37205s/^/:/
37206s/[ ]*$/:/
37207s/:\$(srcdir):/:/g
37208s/:\${srcdir}:/:/g
37209s/:@srcdir@:/:/g
37210s/^:*//
cristy3ed852e2009-09-05 21:47:34 +000037211s/:*$//
cristy98dddb52010-11-04 00:30:15 +000037212x
37213s/\(=[ ]*\).*/\1/
37214G
37215s/\n//
cristy3ed852e2009-09-05 21:47:34 +000037216s/^[^=]*=[ ]*$//
37217}'
37218fi
37219
37220cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37221fi # test -n "$CONFIG_FILES"
37222
37223# Set up the scripts for CONFIG_HEADERS section.
37224# No need to generate them if there are no CONFIG_HEADERS.
37225# This happens for instance with `./config.status Makefile'.
37226if test -n "$CONFIG_HEADERS"; then
cristyda16f162011-02-19 23:52:17 +000037227cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
cristy3ed852e2009-09-05 21:47:34 +000037228BEGIN {
37229_ACEOF
37230
37231# Transform confdefs.h into an awk script `defines.awk', embedded as
37232# here-document in config.status, that substitutes the proper values into
37233# config.h.in to produce config.h.
37234
37235# Create a delimiter string that does not exist in confdefs.h, to ease
37236# handling of long lines.
37237ac_delim='%!_!# '
37238for ac_last_try in false false :; do
cristyda16f162011-02-19 23:52:17 +000037239 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
37240 if test -z "$ac_tt"; then
cristy3ed852e2009-09-05 21:47:34 +000037241 break
37242 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000037243 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037244 else
37245 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
37246 fi
37247done
37248
37249# For the awk script, D is an array of macro values keyed by name,
37250# likewise P contains macro parameters if any. Preserve backslash
37251# newline sequences.
37252
37253ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
37254sed -n '
37255s/.\{148\}/&'"$ac_delim"'/g
37256t rset
37257:rset
37258s/^[ ]*#[ ]*define[ ][ ]*/ /
37259t def
37260d
37261:def
37262s/\\$//
37263t bsnl
37264s/["\\]/\\&/g
37265s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
37266D["\1"]=" \3"/p
37267s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
37268d
37269:bsnl
37270s/["\\]/\\&/g
37271s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
37272D["\1"]=" \3\\\\\\n"\\/p
37273t cont
37274s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
37275t cont
37276d
37277:cont
37278n
37279s/.\{148\}/&'"$ac_delim"'/g
37280t clear
37281:clear
37282s/\\$//
37283t bsnlc
37284s/["\\]/\\&/g; s/^/"/; s/$/"/p
37285d
37286:bsnlc
37287s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
37288b cont
37289' <confdefs.h | sed '
37290s/'"$ac_delim"'/"\\\
37291"/g' >>$CONFIG_STATUS || ac_write_fail=1
37292
37293cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37294 for (key in D) D_is_set[key] = 1
37295 FS = ""
37296}
37297/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
37298 line = \$ 0
37299 split(line, arg, " ")
37300 if (arg[1] == "#") {
37301 defundef = arg[2]
37302 mac1 = arg[3]
37303 } else {
37304 defundef = substr(arg[1], 2)
37305 mac1 = arg[2]
37306 }
37307 split(mac1, mac2, "(") #)
37308 macro = mac2[1]
37309 prefix = substr(line, 1, index(line, defundef) - 1)
37310 if (D_is_set[macro]) {
37311 # Preserve the white space surrounding the "#".
37312 print prefix "define", macro P[macro] D[macro]
37313 next
37314 } else {
37315 # Replace #undef with comments. This is necessary, for example,
37316 # in the case of _POSIX_SOURCE, which is predefined and required
37317 # on some systems where configure will not decide to define it.
37318 if (defundef == "undef") {
37319 print "/*", prefix defundef, macro, "*/"
37320 next
37321 }
37322 }
37323}
37324{ print }
37325_ACAWK
37326_ACEOF
37327cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristy98dddb52010-11-04 00:30:15 +000037328 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037329fi # test -n "$CONFIG_HEADERS"
37330
37331
37332eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
37333shift
37334for ac_tag
37335do
37336 case $ac_tag in
37337 :[FHLC]) ac_mode=$ac_tag; continue;;
37338 esac
37339 case $ac_mode$ac_tag in
37340 :[FHL]*:*);;
cristy98dddb52010-11-04 00:30:15 +000037341 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037342 :[FH]-) ac_tag=-:-;;
37343 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
37344 esac
37345 ac_save_IFS=$IFS
37346 IFS=:
37347 set x $ac_tag
37348 IFS=$ac_save_IFS
37349 shift
37350 ac_file=$1
37351 shift
37352
37353 case $ac_mode in
37354 :L) ac_source=$1;;
37355 :[FH])
37356 ac_file_inputs=
37357 for ac_f
37358 do
37359 case $ac_f in
cristyda16f162011-02-19 23:52:17 +000037360 -) ac_f="$ac_tmp/stdin";;
cristy3ed852e2009-09-05 21:47:34 +000037361 *) # Look for the file first in the build tree, then in the source tree
37362 # (if the path is not absolute). The absolute path cannot be DOS-style,
37363 # because $ac_f cannot contain `:'.
37364 test -f "$ac_f" ||
37365 case $ac_f in
37366 [\\/$]*) false;;
37367 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
37368 esac ||
cristy98dddb52010-11-04 00:30:15 +000037369 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037370 esac
37371 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000037372 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000037373 done
37374
37375 # Let's still pretend it is `configure' which instantiates (i.e., don't
37376 # use $as_me), people would be surprised to read:
37377 # /* config.h. Generated by config.status. */
37378 configure_input='Generated from '`
37379 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
37380 `' by configure.'
37381 if test x"$ac_file" != x-; then
37382 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000037383 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000037384$as_echo "$as_me: creating $ac_file" >&6;}
37385 fi
37386 # Neutralize special characters interpreted by sed in replacement strings.
37387 case $configure_input in #(
37388 *\&* | *\|* | *\\* )
37389 ac_sed_conf_input=`$as_echo "$configure_input" |
37390 sed 's/[\\\\&|]/\\\\&/g'`;; #(
37391 *) ac_sed_conf_input=$configure_input;;
37392 esac
37393
37394 case $ac_tag in
cristyda16f162011-02-19 23:52:17 +000037395 *:-:* | *:-) cat >"$ac_tmp/stdin" \
cristy98dddb52010-11-04 00:30:15 +000037396 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000037397 esac
37398 ;;
37399 esac
37400
37401 ac_dir=`$as_dirname -- "$ac_file" ||
37402$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37403 X"$ac_file" : 'X\(//\)[^/]' \| \
37404 X"$ac_file" : 'X\(//\)$' \| \
37405 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
37406$as_echo X"$ac_file" |
37407 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37408 s//\1/
37409 q
37410 }
37411 /^X\(\/\/\)[^/].*/{
37412 s//\1/
37413 q
37414 }
37415 /^X\(\/\/\)$/{
37416 s//\1/
37417 q
37418 }
37419 /^X\(\/\).*/{
37420 s//\1/
37421 q
37422 }
37423 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000037424 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000037425 ac_builddir=.
37426
37427case "$ac_dir" in
37428.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
37429*)
37430 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
37431 # A ".." for each directory in $ac_dir_suffix.
37432 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
37433 case $ac_top_builddir_sub in
37434 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
37435 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
37436 esac ;;
37437esac
37438ac_abs_top_builddir=$ac_pwd
37439ac_abs_builddir=$ac_pwd$ac_dir_suffix
37440# for backward compatibility:
37441ac_top_builddir=$ac_top_build_prefix
37442
37443case $srcdir in
37444 .) # We are building in place.
37445 ac_srcdir=.
37446 ac_top_srcdir=$ac_top_builddir_sub
37447 ac_abs_top_srcdir=$ac_pwd ;;
37448 [\\/]* | ?:[\\/]* ) # Absolute name.
37449 ac_srcdir=$srcdir$ac_dir_suffix;
37450 ac_top_srcdir=$srcdir
37451 ac_abs_top_srcdir=$srcdir ;;
37452 *) # Relative name.
37453 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
37454 ac_top_srcdir=$ac_top_build_prefix$srcdir
37455 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
37456esac
37457ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
37458
37459
37460 case $ac_mode in
37461 :F)
37462 #
37463 # CONFIG_FILE
37464 #
37465
37466 case $INSTALL in
37467 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
37468 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
37469 esac
cristy73bd4a52010-10-05 11:24:23 +000037470 ac_MKDIR_P=$MKDIR_P
37471 case $MKDIR_P in
37472 [\\/$]* | ?:[\\/]* ) ;;
37473 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
37474 esac
cristy3ed852e2009-09-05 21:47:34 +000037475_ACEOF
37476
37477cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37478# If the template does not know about datarootdir, expand it.
37479# FIXME: This hack should be removed a few years after 2.60.
37480ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000037481ac_sed_dataroot='
37482/datarootdir/ {
37483 p
37484 q
37485}
37486/@datadir@/p
37487/@docdir@/p
37488/@infodir@/p
37489/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000037490/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000037491case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
37492*datarootdir*) ac_datarootdir_seen=yes;;
37493*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000037494 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000037495$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
37496_ACEOF
37497cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37498 ac_datarootdir_hack='
37499 s&@datadir@&$datadir&g
37500 s&@docdir@&$docdir&g
37501 s&@infodir@&$infodir&g
37502 s&@localedir@&$localedir&g
37503 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000037504 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000037505esac
37506_ACEOF
37507
37508# Neutralize VPATH when `$srcdir' = `.'.
37509# Shell code in configure.ac might set extrasub.
37510# FIXME: do we really want to maintain this feature?
37511cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37512ac_sed_extra="$ac_vpsub
37513$extrasub
37514_ACEOF
37515cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37516:t
37517/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
37518s|@configure_input@|$ac_sed_conf_input|;t t
37519s&@top_builddir@&$ac_top_builddir_sub&;t t
37520s&@top_build_prefix@&$ac_top_build_prefix&;t t
37521s&@srcdir@&$ac_srcdir&;t t
37522s&@abs_srcdir@&$ac_abs_srcdir&;t t
37523s&@top_srcdir@&$ac_top_srcdir&;t t
37524s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
37525s&@builddir@&$ac_builddir&;t t
37526s&@abs_builddir@&$ac_abs_builddir&;t t
37527s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
37528s&@INSTALL@&$ac_INSTALL&;t t
cristy73bd4a52010-10-05 11:24:23 +000037529s&@MKDIR_P@&$ac_MKDIR_P&;t t
cristy3ed852e2009-09-05 21:47:34 +000037530$ac_datarootdir_hack
37531"
cristyda16f162011-02-19 23:52:17 +000037532eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
37533 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037534
37535test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
cristyda16f162011-02-19 23:52:17 +000037536 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
37537 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
37538 "$ac_tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000037539 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000037540which seems to be undefined. Please make sure it is defined" >&5
cristy3ed852e2009-09-05 21:47:34 +000037541$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000037542which seems to be undefined. Please make sure it is defined" >&2;}
cristy3ed852e2009-09-05 21:47:34 +000037543
cristyda16f162011-02-19 23:52:17 +000037544 rm -f "$ac_tmp/stdin"
cristy3ed852e2009-09-05 21:47:34 +000037545 case $ac_file in
cristyda16f162011-02-19 23:52:17 +000037546 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
37547 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
cristy3ed852e2009-09-05 21:47:34 +000037548 esac \
cristy98dddb52010-11-04 00:30:15 +000037549 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037550 ;;
37551 :H)
37552 #
37553 # CONFIG_HEADER
37554 #
37555 if test x"$ac_file" != x-; then
37556 {
37557 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000037558 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
37559 } >"$ac_tmp/config.h" \
cristy98dddb52010-11-04 00:30:15 +000037560 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000037561 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000037562 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000037563$as_echo "$as_me: $ac_file is unchanged" >&6;}
37564 else
37565 rm -f "$ac_file"
cristyda16f162011-02-19 23:52:17 +000037566 mv "$ac_tmp/config.h" "$ac_file" \
cristy98dddb52010-11-04 00:30:15 +000037567 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037568 fi
37569 else
37570 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000037571 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
cristy98dddb52010-11-04 00:30:15 +000037572 || as_fn_error $? "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037573 fi
cristy73bd4a52010-10-05 11:24:23 +000037574# Compute "$ac_file"'s index in $config_headers.
37575_am_arg="$ac_file"
37576_am_stamp_count=1
37577for _am_header in $config_headers :; do
37578 case $_am_header in
37579 $_am_arg | $_am_arg:* )
37580 break ;;
37581 * )
37582 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
37583 esac
37584done
37585echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
37586$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37587 X"$_am_arg" : 'X\(//\)[^/]' \| \
37588 X"$_am_arg" : 'X\(//\)$' \| \
37589 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
37590$as_echo X"$_am_arg" |
37591 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37592 s//\1/
37593 q
37594 }
37595 /^X\(\/\/\)[^/].*/{
37596 s//\1/
37597 q
37598 }
37599 /^X\(\/\/\)$/{
37600 s//\1/
37601 q
37602 }
37603 /^X\(\/\).*/{
37604 s//\1/
37605 q
37606 }
37607 s/.*/./; q'`/stamp-h$_am_stamp_count
cristy3ed852e2009-09-05 21:47:34 +000037608 ;;
37609
cristy8b350f62009-11-15 23:12:43 +000037610 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000037611$as_echo "$as_me: executing $ac_file commands" >&6;}
37612 ;;
37613 esac
37614
37615
37616 case $ac_file$ac_mode in
cristy01ff9f32012-12-01 18:15:29 +000037617 "MagickCore/magick-baseconfig.h":C) ac_prefix_conf_OUT=`echo MagickCore/magick-baseconfig.h`
cristy73bd4a52010-10-05 11:24:23 +000037618ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
37619ac_prefix_conf_PKG=`echo MagickCore`
37620ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
37621ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
37622ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
37623if test ".$ac_prefix_conf_INP" = "."; then
37624 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
37625 case "$ac_file" in
37626 *.h) ac_prefix_conf_INP=$ac_file ;;
37627 *)
37628 esac
37629 test ".$ac_prefix_conf_INP" != "." && break
37630 done
37631fi
37632if test ".$ac_prefix_conf_INP" = "."; then
37633 case "$ac_prefix_conf_OUT" in
37634 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
37635 ;;
37636 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
37637 ;;
37638 *) ac_prefix_conf_INP=config.h
37639 ;;
37640 esac
37641fi
37642if test -z "$ac_prefix_conf_PKG" ; then
cristy98dddb52010-11-04 00:30:15 +000037643 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000037644else
37645 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
37646 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
37647 fi fi
37648 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
37649$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
37650 if test -f $ac_prefix_conf_INP ; then
cristy24fc1fe2010-10-23 21:13:01 +000037651 $as_echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
37652 $as_echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
37653 $as_echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
37654 $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
37655 $as_echo "#endif/" >> conftest.prefix
37656 $as_echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
37657 $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
37658 $as_echo "#endif/" >> conftest.prefix
cristy73bd4a52010-10-05 11:24:23 +000037659 # now executing _script on _DEF input to create _OUT output file
37660 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
37661 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
37662 echo ' ' >>$tmp/pconfig.h
37663 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
37664
37665 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
37666 echo ' ' >>$tmp/pconfig.h
37667 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
37668 echo "#endif" >>$tmp/pconfig.h
37669 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
37670 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
37671$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
37672 else
37673 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
37674$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37675 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
37676 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
37677 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
37678$as_echo X"$ac_prefix_conf_OUT" |
37679 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37680 s//\1/
37681 q
37682 }
37683 /^X\(\/\/\)[^/].*/{
37684 s//\1/
37685 q
37686 }
37687 /^X\(\/\/\)$/{
37688 s//\1/
37689 q
37690 }
37691 /^X\(\/\).*/{
37692 s//\1/
37693 q
37694 }
37695 s/.*/./; q'`
37696 as_dir="$ac_dir"; as_fn_mkdir_p
37697 rm -f "$ac_prefix_conf_OUT"
37698 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
37699 fi
cristy73bd4a52010-10-05 11:24:23 +000037700 else
cristy98dddb52010-11-04 00:30:15 +000037701 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 +000037702 fi
37703 rm -f conftest.*
37704fi
37705 ;;
37706 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
cristy58d34aa2013-01-24 15:11:54 +000037707 # Older Autoconf quotes --file arguments for eval, but not when files
cristy73bd4a52010-10-05 11:24:23 +000037708 # are listed without --file. Let's play safe and only enable the eval
37709 # if we detect the quoting.
37710 case $CONFIG_FILES in
37711 *\'*) eval set x "$CONFIG_FILES" ;;
37712 *) set x $CONFIG_FILES ;;
37713 esac
37714 shift
37715 for mf
37716 do
37717 # Strip MF so we end up with the name of the file.
37718 mf=`echo "$mf" | sed -e 's/:.*$//'`
37719 # Check whether this is an Automake generated Makefile or not.
cristyc0890a62012-07-19 00:18:20 +000037720 # We used to match only the files named 'Makefile.in', but
cristy73bd4a52010-10-05 11:24:23 +000037721 # some people rename them; so instead we look at the file content.
37722 # Grep'ing the first line is not enough: some people post-process
37723 # each Makefile.in and add a new line on top of each file to say so.
37724 # Grep'ing the whole file is not good either: AIX grep has a line
37725 # limit of 2048, but all sed's we know have understand at least 4000.
37726 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
37727 dirpart=`$as_dirname -- "$mf" ||
37728$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37729 X"$mf" : 'X\(//\)[^/]' \| \
37730 X"$mf" : 'X\(//\)$' \| \
37731 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
37732$as_echo X"$mf" |
37733 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37734 s//\1/
37735 q
37736 }
37737 /^X\(\/\/\)[^/].*/{
37738 s//\1/
37739 q
37740 }
37741 /^X\(\/\/\)$/{
37742 s//\1/
37743 q
37744 }
37745 /^X\(\/\).*/{
37746 s//\1/
37747 q
37748 }
37749 s/.*/./; q'`
37750 else
37751 continue
37752 fi
37753 # Extract the definition of DEPDIR, am__include, and am__quote
cristyc0890a62012-07-19 00:18:20 +000037754 # from the Makefile without running 'make'.
cristy73bd4a52010-10-05 11:24:23 +000037755 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
37756 test -z "$DEPDIR" && continue
37757 am__include=`sed -n 's/^am__include = //p' < "$mf"`
cristybced8142013-05-31 01:23:57 +000037758 test -z "$am__include" && continue
cristy73bd4a52010-10-05 11:24:23 +000037759 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
cristy73bd4a52010-10-05 11:24:23 +000037760 # Find all dependency output files, they are included files with
37761 # $(DEPDIR) in their names. We invoke sed twice because it is the
37762 # simplest approach to changing $(DEPDIR) to its actual value in the
37763 # expansion.
37764 for file in `sed -n "
37765 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
cristyc0890a62012-07-19 00:18:20 +000037766 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
cristy73bd4a52010-10-05 11:24:23 +000037767 # Make sure the directory exists.
37768 test -f "$dirpart/$file" && continue
37769 fdir=`$as_dirname -- "$file" ||
37770$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37771 X"$file" : 'X\(//\)[^/]' \| \
37772 X"$file" : 'X\(//\)$' \| \
37773 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
37774$as_echo X"$file" |
37775 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37776 s//\1/
37777 q
37778 }
37779 /^X\(\/\/\)[^/].*/{
37780 s//\1/
37781 q
37782 }
37783 /^X\(\/\/\)$/{
37784 s//\1/
37785 q
37786 }
37787 /^X\(\/\).*/{
37788 s//\1/
37789 q
37790 }
37791 s/.*/./; q'`
37792 as_dir=$dirpart/$fdir; as_fn_mkdir_p
37793 # echo "creating $dirpart/$file"
37794 echo '# dummy' > "$dirpart/$file"
37795 done
37796 done
37797}
37798 ;;
37799 "libtool":C)
37800
37801 # See if we are running on zsh, and set the options which allow our
37802 # commands through without removal of \ escapes.
37803 if test -n "${ZSH_VERSION+set}" ; then
37804 setopt NO_GLOB_SUBST
37805 fi
37806
37807 cfgfile="${ofile}T"
37808 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
37809 $RM "$cfgfile"
37810
37811 cat <<_LT_EOF >> "$cfgfile"
37812#! $SHELL
37813
37814# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
37815# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
37816# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
37817# NOTE: Changes made to this file will be lost: look at ltmain.sh.
37818#
37819# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cristy99bd5232011-12-07 14:38:20 +000037820# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
37821# Foundation, Inc.
cristy73bd4a52010-10-05 11:24:23 +000037822# Written by Gordon Matzigkeit, 1996
37823#
37824# This file is part of GNU Libtool.
37825#
37826# GNU Libtool is free software; you can redistribute it and/or
37827# modify it under the terms of the GNU General Public License as
37828# published by the Free Software Foundation; either version 2 of
37829# the License, or (at your option) any later version.
37830#
37831# As a special exception to the GNU General Public License,
37832# if you distribute this file as part of a program or library that
37833# is built using GNU Libtool, you may include this file under the
37834# same distribution terms that you use for the rest of that program.
37835#
37836# GNU Libtool is distributed in the hope that it will be useful,
37837# but WITHOUT ANY WARRANTY; without even the implied warranty of
37838# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
37839# GNU General Public License for more details.
37840#
37841# You should have received a copy of the GNU General Public License
37842# along with GNU Libtool; see the file COPYING. If not, a copy
37843# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
37844# obtained by writing to the Free Software Foundation, Inc.,
37845# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
37846
37847
37848# The names of the tagged configurations supported by this script.
37849available_tags="CXX "
37850
37851# ### BEGIN LIBTOOL CONFIG
37852
37853# A sed program that does not truncate output.
37854SED=$lt_SED
37855
37856# Sed that helps us avoid accidentally triggering echo(1) options like -n.
37857Xsed="\$SED -e 1s/^X//"
37858
37859# A grep program that handles long lines.
37860GREP=$lt_GREP
37861
37862# An ERE matcher.
37863EGREP=$lt_EGREP
37864
37865# A literal string matcher.
37866FGREP=$lt_FGREP
37867
cristy0c60a692010-11-04 01:09:47 +000037868# Shell to use when invoking shell scripts.
37869SHELL=$lt_SHELL
37870
37871# An echo program that protects backslashes.
37872ECHO=$lt_ECHO
37873
cristy73bd4a52010-10-05 11:24:23 +000037874# Which release of libtool.m4 was used?
37875macro_version=$macro_version
37876macro_revision=$macro_revision
37877
37878# Assembler program.
cristy0c60a692010-11-04 01:09:47 +000037879AS=$lt_AS
cristy73bd4a52010-10-05 11:24:23 +000037880
37881# DLL creation program.
cristy0c60a692010-11-04 01:09:47 +000037882DLLTOOL=$lt_DLLTOOL
cristy73bd4a52010-10-05 11:24:23 +000037883
37884# Object dumper program.
cristy0c60a692010-11-04 01:09:47 +000037885OBJDUMP=$lt_OBJDUMP
cristy73bd4a52010-10-05 11:24:23 +000037886
37887# Whether or not to build shared libraries.
37888build_libtool_libs=$enable_shared
37889
37890# Whether or not to build static libraries.
37891build_old_libs=$enable_static
37892
37893# What type of objects to build.
37894pic_mode=$pic_mode
37895
37896# Whether or not to optimize for fast installation.
37897fast_install=$enable_fast_install
37898
cristy99bd5232011-12-07 14:38:20 +000037899# The PATH separator for the build system.
37900PATH_SEPARATOR=$lt_PATH_SEPARATOR
37901
cristy73bd4a52010-10-05 11:24:23 +000037902# The host system.
37903host_alias=$host_alias
37904host=$host
37905host_os=$host_os
37906
37907# The build system.
37908build_alias=$build_alias
37909build=$build
37910build_os=$build_os
37911
37912# A BSD- or MS-compatible name lister.
37913NM=$lt_NM
37914
37915# Whether we need soft or hard links.
37916LN_S=$lt_LN_S
37917
37918# What is the maximum length of a command?
37919max_cmd_len=$max_cmd_len
37920
37921# Object file suffix (normally "o").
37922objext=$ac_objext
37923
37924# Executable file suffix (normally "").
37925exeext=$exeext
37926
37927# whether the shell understands "unset".
37928lt_unset=$lt_unset
37929
37930# turn spaces into newlines.
37931SP2NL=$lt_lt_SP2NL
37932
37933# turn newlines into spaces.
37934NL2SP=$lt_lt_NL2SP
37935
cristyda16f162011-02-19 23:52:17 +000037936# convert \$build file names to \$host format.
37937to_host_file_cmd=$lt_cv_to_host_file_cmd
37938
37939# convert \$build files to toolchain format.
37940to_tool_file_cmd=$lt_cv_to_tool_file_cmd
37941
cristy73bd4a52010-10-05 11:24:23 +000037942# Method to check whether dependent libraries are shared objects.
37943deplibs_check_method=$lt_deplibs_check_method
37944
cristyda16f162011-02-19 23:52:17 +000037945# Command to use when deplibs_check_method = "file_magic".
cristy73bd4a52010-10-05 11:24:23 +000037946file_magic_cmd=$lt_file_magic_cmd
37947
cristyda16f162011-02-19 23:52:17 +000037948# How to find potential files when deplibs_check_method = "file_magic".
37949file_magic_glob=$lt_file_magic_glob
37950
37951# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
37952want_nocaseglob=$lt_want_nocaseglob
37953
37954# Command to associate shared and link libraries.
37955sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
37956
cristy73bd4a52010-10-05 11:24:23 +000037957# The archiver.
37958AR=$lt_AR
cristyda16f162011-02-19 23:52:17 +000037959
37960# Flags to create an archive.
cristy73bd4a52010-10-05 11:24:23 +000037961AR_FLAGS=$lt_AR_FLAGS
37962
cristyda16f162011-02-19 23:52:17 +000037963# How to feed a file listing to the archiver.
37964archiver_list_spec=$lt_archiver_list_spec
37965
cristy73bd4a52010-10-05 11:24:23 +000037966# A symbol stripping program.
37967STRIP=$lt_STRIP
37968
37969# Commands used to install an old-style archive.
37970RANLIB=$lt_RANLIB
37971old_postinstall_cmds=$lt_old_postinstall_cmds
37972old_postuninstall_cmds=$lt_old_postuninstall_cmds
37973
cristy0c60a692010-11-04 01:09:47 +000037974# Whether to use a lock for old archive extraction.
37975lock_old_archive_extraction=$lock_old_archive_extraction
37976
cristy73bd4a52010-10-05 11:24:23 +000037977# A C compiler.
37978LTCC=$lt_CC
37979
37980# LTCC compiler flags.
37981LTCFLAGS=$lt_CFLAGS
37982
37983# Take the output of nm and produce a listing of raw symbols and C names.
37984global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
37985
37986# Transform the output of nm in a proper C declaration.
37987global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
37988
37989# Transform the output of nm in a C name address pair.
37990global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
37991
37992# Transform the output of nm in a C name address pair when lib prefix is needed.
37993global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
37994
cristyda16f162011-02-19 23:52:17 +000037995# Specify filename containing input files for \$NM.
37996nm_file_list_spec=$lt_nm_file_list_spec
37997
37998# The root where to search for dependent libraries,and in which our libraries should be installed.
37999lt_sysroot=$lt_sysroot
38000
cristy73bd4a52010-10-05 11:24:23 +000038001# The name of the directory that contains temporary libtool files.
38002objdir=$objdir
38003
cristy73bd4a52010-10-05 11:24:23 +000038004# Used to examine libraries when file_magic_cmd begins with "file".
38005MAGIC_CMD=$MAGIC_CMD
38006
38007# Must we lock files when doing compilation?
38008need_locks=$lt_need_locks
38009
cristyda16f162011-02-19 23:52:17 +000038010# Manifest tool.
38011MANIFEST_TOOL=$lt_MANIFEST_TOOL
38012
cristy73bd4a52010-10-05 11:24:23 +000038013# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
38014DSYMUTIL=$lt_DSYMUTIL
38015
38016# Tool to change global to local symbols on Mac OS X.
38017NMEDIT=$lt_NMEDIT
38018
38019# Tool to manipulate fat objects and archives on Mac OS X.
38020LIPO=$lt_LIPO
38021
38022# ldd/readelf like tool for Mach-O binaries on Mac OS X.
38023OTOOL=$lt_OTOOL
38024
38025# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
38026OTOOL64=$lt_OTOOL64
38027
38028# Old archive suffix (normally "a").
38029libext=$libext
38030
38031# Shared library suffix (normally ".so").
38032shrext_cmds=$lt_shrext_cmds
38033
38034# The commands to extract the exported symbol list from a shared archive.
38035extract_expsyms_cmds=$lt_extract_expsyms_cmds
38036
38037# Variables whose values should be saved in libtool wrapper scripts and
38038# restored at link time.
38039variables_saved_for_relink=$lt_variables_saved_for_relink
38040
38041# Do we need the "lib" prefix for modules?
38042need_lib_prefix=$need_lib_prefix
38043
38044# Do we need a version for libraries?
38045need_version=$need_version
38046
38047# Library versioning type.
38048version_type=$version_type
38049
38050# Shared library runtime path variable.
38051runpath_var=$runpath_var
38052
38053# Shared library path variable.
38054shlibpath_var=$shlibpath_var
38055
38056# Is shlibpath searched before the hard-coded library search path?
38057shlibpath_overrides_runpath=$shlibpath_overrides_runpath
38058
38059# Format of library name prefix.
38060libname_spec=$lt_libname_spec
38061
38062# List of archive names. First name is the real one, the rest are links.
38063# The last name is the one that the linker finds with -lNAME
38064library_names_spec=$lt_library_names_spec
38065
38066# The coded name of the library, if different from the real name.
38067soname_spec=$lt_soname_spec
38068
cristy0c60a692010-11-04 01:09:47 +000038069# Permission mode override for installation of shared libraries.
38070install_override_mode=$lt_install_override_mode
38071
cristy73bd4a52010-10-05 11:24:23 +000038072# Command to use after installation of a shared archive.
38073postinstall_cmds=$lt_postinstall_cmds
38074
38075# Command to use after uninstallation of a shared archive.
38076postuninstall_cmds=$lt_postuninstall_cmds
38077
38078# Commands used to finish a libtool library installation in a directory.
38079finish_cmds=$lt_finish_cmds
38080
38081# As "finish_cmds", except a single script fragment to be evaled but
38082# not shown.
38083finish_eval=$lt_finish_eval
38084
38085# Whether we should hardcode library paths into libraries.
38086hardcode_into_libs=$hardcode_into_libs
38087
38088# Compile-time system search path for libraries.
38089sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
38090
38091# Run-time system search path for libraries.
38092sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
38093
38094# Whether dlopen is supported.
38095dlopen_support=$enable_dlopen
38096
38097# Whether dlopen of programs is supported.
38098dlopen_self=$enable_dlopen_self
38099
38100# Whether dlopen of statically linked programs is supported.
38101dlopen_self_static=$enable_dlopen_self_static
38102
38103# Commands to strip libraries.
38104old_striplib=$lt_old_striplib
38105striplib=$lt_striplib
38106
38107
38108# The linker used to build libraries.
38109LD=$lt_LD
38110
cristy0c60a692010-11-04 01:09:47 +000038111# How to create reloadable object files.
38112reload_flag=$lt_reload_flag
38113reload_cmds=$lt_reload_cmds
38114
cristy73bd4a52010-10-05 11:24:23 +000038115# Commands used to build an old-style archive.
38116old_archive_cmds=$lt_old_archive_cmds
38117
38118# A language specific compiler.
38119CC=$lt_compiler
38120
38121# Is the compiler the GNU compiler?
38122with_gcc=$GCC
38123
38124# Compiler flag to turn off builtin functions.
38125no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
38126
cristy73bd4a52010-10-05 11:24:23 +000038127# Additional compiler flags for building library objects.
38128pic_flag=$lt_lt_prog_compiler_pic
38129
cristyda16f162011-02-19 23:52:17 +000038130# How to pass a linker flag through the compiler.
38131wl=$lt_lt_prog_compiler_wl
38132
cristy73bd4a52010-10-05 11:24:23 +000038133# Compiler flag to prevent dynamic linking.
38134link_static_flag=$lt_lt_prog_compiler_static
38135
38136# Does compiler simultaneously support -c and -o options?
38137compiler_c_o=$lt_lt_cv_prog_compiler_c_o
38138
38139# Whether or not to add -lc for building shared libraries.
38140build_libtool_need_lc=$archive_cmds_need_lc
38141
38142# Whether or not to disallow shared libs when runtime libs are static.
38143allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
38144
38145# Compiler flag to allow reflexive dlopens.
38146export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
38147
38148# Compiler flag to generate shared objects directly from archives.
38149whole_archive_flag_spec=$lt_whole_archive_flag_spec
38150
38151# Whether the compiler copes with passing no objects directly.
38152compiler_needs_object=$lt_compiler_needs_object
38153
38154# Create an old-style archive from a shared archive.
38155old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
38156
38157# Create a temporary old-style archive to link instead of a shared archive.
38158old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
38159
38160# Commands used to build a shared archive.
38161archive_cmds=$lt_archive_cmds
38162archive_expsym_cmds=$lt_archive_expsym_cmds
38163
38164# Commands used to build a loadable module if different from building
38165# a shared archive.
38166module_cmds=$lt_module_cmds
38167module_expsym_cmds=$lt_module_expsym_cmds
38168
38169# Whether we are building with GNU ld or not.
38170with_gnu_ld=$lt_with_gnu_ld
38171
38172# Flag that allows shared libraries with undefined symbols to be built.
38173allow_undefined_flag=$lt_allow_undefined_flag
38174
38175# Flag that enforces no undefined symbols.
38176no_undefined_flag=$lt_no_undefined_flag
38177
38178# Flag to hardcode \$libdir into a binary during linking.
38179# This must work even if \$libdir does not exist
38180hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
38181
cristy73bd4a52010-10-05 11:24:23 +000038182# Whether we need a single "-rpath" flag with a separated argument.
38183hardcode_libdir_separator=$lt_hardcode_libdir_separator
38184
38185# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38186# DIR into the resulting binary.
38187hardcode_direct=$hardcode_direct
38188
38189# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38190# DIR into the resulting binary and the resulting library dependency is
38191# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
38192# library is relocated.
38193hardcode_direct_absolute=$hardcode_direct_absolute
38194
38195# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
38196# into the resulting binary.
38197hardcode_minus_L=$hardcode_minus_L
38198
38199# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
38200# into the resulting binary.
38201hardcode_shlibpath_var=$hardcode_shlibpath_var
38202
38203# Set to "yes" if building a shared library automatically hardcodes DIR
38204# into the library and all subsequent libraries and executables linked
38205# against it.
38206hardcode_automatic=$hardcode_automatic
38207
38208# Set to yes if linker adds runtime paths of dependent libraries
38209# to runtime path list.
38210inherit_rpath=$inherit_rpath
38211
38212# Whether libtool must link a program against all its dependency libraries.
38213link_all_deplibs=$link_all_deplibs
38214
cristy73bd4a52010-10-05 11:24:23 +000038215# Set to "yes" if exported symbols are required.
38216always_export_symbols=$always_export_symbols
38217
38218# The commands to list exported symbols.
38219export_symbols_cmds=$lt_export_symbols_cmds
38220
38221# Symbols that should not be listed in the preloaded symbols.
38222exclude_expsyms=$lt_exclude_expsyms
38223
38224# Symbols that must always be exported.
38225include_expsyms=$lt_include_expsyms
38226
38227# Commands necessary for linking programs (against libraries) with templates.
38228prelink_cmds=$lt_prelink_cmds
38229
cristyda16f162011-02-19 23:52:17 +000038230# Commands necessary for finishing linking programs.
38231postlink_cmds=$lt_postlink_cmds
38232
cristy73bd4a52010-10-05 11:24:23 +000038233# Specify filename containing input files.
38234file_list_spec=$lt_file_list_spec
38235
38236# How to hardcode a shared library path into an executable.
38237hardcode_action=$hardcode_action
38238
38239# The directories searched by this compiler when creating a shared library.
38240compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
38241
38242# Dependencies to place before and after the objects being linked to
38243# create a shared library.
38244predep_objects=$lt_predep_objects
38245postdep_objects=$lt_postdep_objects
38246predeps=$lt_predeps
38247postdeps=$lt_postdeps
38248
38249# The library search path used internally by the compiler when linking
38250# a shared library.
38251compiler_lib_search_path=$lt_compiler_lib_search_path
38252
38253# ### END LIBTOOL CONFIG
38254
38255_LT_EOF
38256
38257 case $host_os in
38258 aix3*)
38259 cat <<\_LT_EOF >> "$cfgfile"
38260# AIX sometimes has problems with the GCC collect2 program. For some
38261# reason, if we set the COLLECT_NAMES environment variable, the problems
38262# vanish in a puff of smoke.
38263if test "X${COLLECT_NAMES+set}" != Xset; then
38264 COLLECT_NAMES=
38265 export COLLECT_NAMES
38266fi
38267_LT_EOF
38268 ;;
38269 esac
38270
38271
38272ltmain="$ac_aux_dir/ltmain.sh"
38273
38274
38275 # We use sed instead of cat because bash on DJGPP gets confused if
38276 # if finds mixed CR/LF and LF-only lines. Since sed operates in
38277 # text mode, it properly converts lines to CR/LF. This bash problem
38278 # is reportedly fixed, but why not run on old versions too?
cristyda16f162011-02-19 23:52:17 +000038279 sed '$q' "$ltmain" >> "$cfgfile" \
38280 || (rm -f "$cfgfile"; exit 1)
cristy73bd4a52010-10-05 11:24:23 +000038281
cristyda16f162011-02-19 23:52:17 +000038282 if test x"$xsi_shell" = xyes; then
38283 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
38284func_dirname ()\
38285{\
38286\ case ${1} in\
38287\ */*) func_dirname_result="${1%/*}${2}" ;;\
38288\ * ) func_dirname_result="${3}" ;;\
38289\ esac\
38290} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
38291 && mv -f "$cfgfile.tmp" "$cfgfile" \
38292 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38293test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038294
38295
cristyda16f162011-02-19 23:52:17 +000038296 sed -e '/^func_basename ()$/,/^} # func_basename /c\
38297func_basename ()\
38298{\
38299\ func_basename_result="${1##*/}"\
38300} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
38301 && mv -f "$cfgfile.tmp" "$cfgfile" \
38302 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38303test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038304
38305
cristyda16f162011-02-19 23:52:17 +000038306 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
38307func_dirname_and_basename ()\
38308{\
38309\ case ${1} in\
38310\ */*) func_dirname_result="${1%/*}${2}" ;;\
38311\ * ) func_dirname_result="${3}" ;;\
38312\ esac\
38313\ func_basename_result="${1##*/}"\
38314} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
38315 && mv -f "$cfgfile.tmp" "$cfgfile" \
38316 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38317test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038318
cristyda16f162011-02-19 23:52:17 +000038319
38320 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
38321func_stripname ()\
38322{\
38323\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
38324\ # positional parameters, so assign one to ordinary parameter first.\
38325\ func_stripname_result=${3}\
38326\ func_stripname_result=${func_stripname_result#"${1}"}\
38327\ func_stripname_result=${func_stripname_result%"${2}"}\
38328} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
38329 && mv -f "$cfgfile.tmp" "$cfgfile" \
38330 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38331test 0 -eq $? || _lt_function_replace_fail=:
38332
38333
38334 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
38335func_split_long_opt ()\
38336{\
38337\ func_split_long_opt_name=${1%%=*}\
38338\ func_split_long_opt_arg=${1#*=}\
38339} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
38340 && mv -f "$cfgfile.tmp" "$cfgfile" \
38341 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38342test 0 -eq $? || _lt_function_replace_fail=:
38343
38344
38345 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
38346func_split_short_opt ()\
38347{\
38348\ func_split_short_opt_arg=${1#??}\
38349\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
38350} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
38351 && mv -f "$cfgfile.tmp" "$cfgfile" \
38352 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38353test 0 -eq $? || _lt_function_replace_fail=:
38354
38355
38356 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
38357func_lo2o ()\
38358{\
38359\ case ${1} in\
38360\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
38361\ *) func_lo2o_result=${1} ;;\
38362\ esac\
38363} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
38364 && mv -f "$cfgfile.tmp" "$cfgfile" \
38365 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38366test 0 -eq $? || _lt_function_replace_fail=:
38367
38368
38369 sed -e '/^func_xform ()$/,/^} # func_xform /c\
38370func_xform ()\
38371{\
38372 func_xform_result=${1%.*}.lo\
38373} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
38374 && mv -f "$cfgfile.tmp" "$cfgfile" \
38375 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38376test 0 -eq $? || _lt_function_replace_fail=:
38377
38378
38379 sed -e '/^func_arith ()$/,/^} # func_arith /c\
38380func_arith ()\
38381{\
38382 func_arith_result=$(( $* ))\
38383} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
38384 && mv -f "$cfgfile.tmp" "$cfgfile" \
38385 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38386test 0 -eq $? || _lt_function_replace_fail=:
38387
38388
38389 sed -e '/^func_len ()$/,/^} # func_len /c\
38390func_len ()\
38391{\
38392 func_len_result=${#1}\
38393} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
38394 && mv -f "$cfgfile.tmp" "$cfgfile" \
38395 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38396test 0 -eq $? || _lt_function_replace_fail=:
38397
38398fi
38399
38400if test x"$lt_shell_append" = xyes; then
38401 sed -e '/^func_append ()$/,/^} # func_append /c\
38402func_append ()\
38403{\
38404 eval "${1}+=\\${2}"\
38405} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
38406 && mv -f "$cfgfile.tmp" "$cfgfile" \
38407 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38408test 0 -eq $? || _lt_function_replace_fail=:
38409
38410
38411 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
38412func_append_quoted ()\
38413{\
38414\ func_quote_for_eval "${2}"\
38415\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
38416} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
38417 && mv -f "$cfgfile.tmp" "$cfgfile" \
38418 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38419test 0 -eq $? || _lt_function_replace_fail=:
38420
38421
38422 # Save a `func_append' function call where possible by direct use of '+='
38423 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
38424 && mv -f "$cfgfile.tmp" "$cfgfile" \
38425 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38426 test 0 -eq $? || _lt_function_replace_fail=:
38427else
38428 # Save a `func_append' function call even when '+=' is not available
38429 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
38430 && mv -f "$cfgfile.tmp" "$cfgfile" \
38431 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38432 test 0 -eq $? || _lt_function_replace_fail=:
38433fi
38434
38435if test x"$_lt_function_replace_fail" = x":"; then
38436 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
38437$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
38438fi
38439
38440
38441 mv -f "$cfgfile" "$ofile" ||
cristy73bd4a52010-10-05 11:24:23 +000038442 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
38443 chmod +x "$ofile"
38444
38445
38446 cat <<_LT_EOF >> "$ofile"
38447
38448# ### BEGIN LIBTOOL TAG CONFIG: CXX
38449
38450# The linker used to build libraries.
38451LD=$lt_LD_CXX
38452
cristy0c60a692010-11-04 01:09:47 +000038453# How to create reloadable object files.
38454reload_flag=$lt_reload_flag_CXX
38455reload_cmds=$lt_reload_cmds_CXX
38456
cristy73bd4a52010-10-05 11:24:23 +000038457# Commands used to build an old-style archive.
38458old_archive_cmds=$lt_old_archive_cmds_CXX
38459
38460# A language specific compiler.
38461CC=$lt_compiler_CXX
38462
38463# Is the compiler the GNU compiler?
38464with_gcc=$GCC_CXX
38465
38466# Compiler flag to turn off builtin functions.
38467no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
38468
cristy73bd4a52010-10-05 11:24:23 +000038469# Additional compiler flags for building library objects.
38470pic_flag=$lt_lt_prog_compiler_pic_CXX
38471
cristyda16f162011-02-19 23:52:17 +000038472# How to pass a linker flag through the compiler.
38473wl=$lt_lt_prog_compiler_wl_CXX
38474
cristy73bd4a52010-10-05 11:24:23 +000038475# Compiler flag to prevent dynamic linking.
38476link_static_flag=$lt_lt_prog_compiler_static_CXX
38477
38478# Does compiler simultaneously support -c and -o options?
38479compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
38480
38481# Whether or not to add -lc for building shared libraries.
38482build_libtool_need_lc=$archive_cmds_need_lc_CXX
38483
38484# Whether or not to disallow shared libs when runtime libs are static.
38485allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
38486
38487# Compiler flag to allow reflexive dlopens.
38488export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
38489
38490# Compiler flag to generate shared objects directly from archives.
38491whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
38492
38493# Whether the compiler copes with passing no objects directly.
38494compiler_needs_object=$lt_compiler_needs_object_CXX
38495
38496# Create an old-style archive from a shared archive.
38497old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
38498
38499# Create a temporary old-style archive to link instead of a shared archive.
38500old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
38501
38502# Commands used to build a shared archive.
38503archive_cmds=$lt_archive_cmds_CXX
38504archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
38505
38506# Commands used to build a loadable module if different from building
38507# a shared archive.
38508module_cmds=$lt_module_cmds_CXX
38509module_expsym_cmds=$lt_module_expsym_cmds_CXX
38510
38511# Whether we are building with GNU ld or not.
38512with_gnu_ld=$lt_with_gnu_ld_CXX
38513
38514# Flag that allows shared libraries with undefined symbols to be built.
38515allow_undefined_flag=$lt_allow_undefined_flag_CXX
38516
38517# Flag that enforces no undefined symbols.
38518no_undefined_flag=$lt_no_undefined_flag_CXX
38519
38520# Flag to hardcode \$libdir into a binary during linking.
38521# This must work even if \$libdir does not exist
38522hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
38523
cristy73bd4a52010-10-05 11:24:23 +000038524# Whether we need a single "-rpath" flag with a separated argument.
38525hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
38526
38527# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38528# DIR into the resulting binary.
38529hardcode_direct=$hardcode_direct_CXX
38530
38531# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38532# DIR into the resulting binary and the resulting library dependency is
38533# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
38534# library is relocated.
38535hardcode_direct_absolute=$hardcode_direct_absolute_CXX
38536
38537# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
38538# into the resulting binary.
38539hardcode_minus_L=$hardcode_minus_L_CXX
38540
38541# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
38542# into the resulting binary.
38543hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
38544
38545# Set to "yes" if building a shared library automatically hardcodes DIR
38546# into the library and all subsequent libraries and executables linked
38547# against it.
38548hardcode_automatic=$hardcode_automatic_CXX
38549
38550# Set to yes if linker adds runtime paths of dependent libraries
38551# to runtime path list.
38552inherit_rpath=$inherit_rpath_CXX
38553
38554# Whether libtool must link a program against all its dependency libraries.
38555link_all_deplibs=$link_all_deplibs_CXX
38556
cristy73bd4a52010-10-05 11:24:23 +000038557# Set to "yes" if exported symbols are required.
38558always_export_symbols=$always_export_symbols_CXX
38559
38560# The commands to list exported symbols.
38561export_symbols_cmds=$lt_export_symbols_cmds_CXX
38562
38563# Symbols that should not be listed in the preloaded symbols.
38564exclude_expsyms=$lt_exclude_expsyms_CXX
38565
38566# Symbols that must always be exported.
38567include_expsyms=$lt_include_expsyms_CXX
38568
38569# Commands necessary for linking programs (against libraries) with templates.
38570prelink_cmds=$lt_prelink_cmds_CXX
38571
cristyda16f162011-02-19 23:52:17 +000038572# Commands necessary for finishing linking programs.
38573postlink_cmds=$lt_postlink_cmds_CXX
38574
cristy73bd4a52010-10-05 11:24:23 +000038575# Specify filename containing input files.
38576file_list_spec=$lt_file_list_spec_CXX
38577
38578# How to hardcode a shared library path into an executable.
38579hardcode_action=$hardcode_action_CXX
38580
38581# The directories searched by this compiler when creating a shared library.
38582compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
38583
38584# Dependencies to place before and after the objects being linked to
38585# create a shared library.
38586predep_objects=$lt_predep_objects_CXX
38587postdep_objects=$lt_postdep_objects_CXX
38588predeps=$lt_predeps_CXX
38589postdeps=$lt_postdeps_CXX
38590
38591# The library search path used internally by the compiler when linking
38592# a shared library.
38593compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
38594
38595# ### END LIBTOOL TAG CONFIG: CXX
38596_LT_EOF
38597
38598 ;;
cristy2bd4b6e2012-07-22 15:29:11 +000038599 "magick.sh.in":C) chmod +x magick.sh ;;
cristy4c08aed2011-07-01 19:47:50 +000038600 "MagickCore-config.in":C) chmod +x MagickCore/MagickCore-config ;;
cristy4c08aed2011-07-01 19:47:50 +000038601 "MagickWand-config.in":C) chmod +x MagickWand/MagickWand-config ;;
cristy3ed852e2009-09-05 21:47:34 +000038602 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
38603 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
38604
38605 esac
38606done # for ac_tag
38607
38608
cristy8b350f62009-11-15 23:12:43 +000038609as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000038610_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000038611ac_clean_files=$ac_clean_files_save
38612
38613test $ac_write_fail = 0 ||
cristy98dddb52010-11-04 00:30:15 +000038614 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038615
38616
38617# configure is writing to config.log, and then calls config.status.
38618# config.status does its own redirection, appending to config.log.
38619# Unfortunately, on DOS this fails, as config.log is still kept open
38620# by configure, so config.status won't be able to write to it; its
38621# output is simply discarded. So we exec the FD to /dev/null,
38622# effectively closing config.log, so it can be properly (re)opened and
38623# appended to by config.status. When coming back to configure, we
38624# need to make the FD available again.
38625if test "$no_create" != yes; then
38626 ac_cs_success=:
38627 ac_config_status_args=
38628 test "$silent" = yes &&
38629 ac_config_status_args="$ac_config_status_args --quiet"
38630 exec 5>/dev/null
38631 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
38632 exec 5>>config.log
38633 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
38634 # would make configure fail if this is the last instruction.
cristy98dddb52010-11-04 00:30:15 +000038635 $ac_cs_success || as_fn_exit 1
cristy3ed852e2009-09-05 21:47:34 +000038636fi
38637if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000038638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000038639$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
38640fi
38641
38642
cristy9af1cbf2014-12-28 22:03:09 +000038643# ==============================================================================
38644# ImageMagick Configuration
38645# ==============================================================================
38646{ $as_echo "$as_me:${as_lineno-$LINENO}:
38647==============================================================================
cristy3ed852e2009-09-05 21:47:34 +000038648ImageMagick is configured as follows. Please verify that this configuration
38649matches your expectations.
38650
cristy9af1cbf2014-12-28 22:03:09 +000038651 Host system type: $host
38652 Build system type: $build
cristy3ed852e2009-09-05 21:47:34 +000038653
38654 Option Value
cristy9af1cbf2014-12-28 22:03:09 +000038655 ------------------------------------------------------------------------------
38656 Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
38657 Static libraries --enable-static=$enable_static $libtool_build_static_libs
38658 Module support --with-modules=$build_modules $build_modules
38659 GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
38660 Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
38661 High Dynamic Range Imagery
38662 --enable-hdri=$enable_hdri $enable_hdri
cristy3ed852e2009-09-05 21:47:34 +000038663
cristy9af1cbf2014-12-28 22:03:09 +000038664 Install documentation: $wantdocs
cristy3ed852e2009-09-05 21:47:34 +000038665
cristy9af1cbf2014-12-28 22:03:09 +000038666 Delegate Library Configuration:
38667 BZLIB --with-bzlib=$with_bzlib $have_bzlib
38668 Autotrace --with-autotrace=$with_autotrace $have_autotrace
38669 DJVU --with-djvu=$with_djvu $have_djvu
38670 DPS --with-dps=$with_dps $have_dps
38671 FFTW --with-fftw=$with_fftw $have_fftw
38672 FlashPIX --with-fpx=$with_fpx $have_fpx
cristybc8ef1c2015-06-06 14:32:21 +000038673 FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
cristy9af1cbf2014-12-28 22:03:09 +000038674 FreeType --with-freetype=$with_freetype $have_freetype
38675 Ghostscript lib --with-gslib=$with_gslib $have_gslib
38676 Graphviz --with-gvc=$with_gvc $have_gvc
38677 JBIG --with-jbig=$with_jbig $have_jbig
38678 JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
cristyd6ac47f2015-06-06 13:46:55 +000038679 LCMS --with-lcms=$with_lcms $have_lcms
cristy86e31f32015-06-06 15:47:32 +000038680 LIBJPEG2 --with-openjp2=$with_openjp2 $have_openjp2
cristy9af1cbf2014-12-28 22:03:09 +000038681 LQR --with-lqr=$with_lqr $have_lqr
38682 LTDL --with-ltdl=$with_ltdl $have_ltdl
38683 LZMA --with-lzma=$with_lzma $have_lzma
38684 Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
38685 OpenEXR --with-openexr=$with_openexr $have_openexr
38686 PANGO --with-pango=$with_pango $have_pango
38687 PERL --with-perl=$with_perl $have_perl
38688 PNG --with-png=$with_png $have_png
38689 RSVG --with-rsvg=$with_rsvg $have_rsvg
38690 TIFF --with-tiff=$with_tiff $have_tiff
38691 WEBP --with-webp=$with_webp $have_webp
38692 WMF --with-wmf=$with_wmf $have_wmf
38693 X11 --with-x=$with_x $have_x
38694 XML --with-xml=$with_xml $have_xml
38695 ZLIB --with-zlib=$with_zlib $have_zlib
cristy5a3dc992014-12-05 19:50:04 +000038696
cristy9af1cbf2014-12-28 22:03:09 +000038697 Delegate Program Configuration:
38698 GhostPCL None $PCLDelegate ($PCLVersion)
38699 GhostXPS None $XPSDelegate ($XPSVersion)
38700 Ghostscript None $PSDelegate ($GSVersion)
cristy5a3dc992014-12-05 19:50:04 +000038701
cristy9af1cbf2014-12-28 22:03:09 +000038702 Font Configuration:
38703 Apple fonts --with-apple-font-dir=$with_apple_font_dir $result_apple_font_dir
38704 Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
38705 Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
38706 Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
cristy3ed852e2009-09-05 21:47:34 +000038707
cristy9af1cbf2014-12-28 22:03:09 +000038708 X11 Configuration:
38709 X_CFLAGS = $X_CFLAGS
38710 X_PRE_LIBS = $X_PRE_LIBS
38711 X_LIBS = $X_LIBS
38712 X_EXTRA_LIBS = $X_EXTRA_LIBS
38713
38714 Options used to compile and link:
38715 PREFIX = $PREFIX_DIR
38716 EXEC-PREFIX = $EXEC_PREFIX_DIR
38717 VERSION = $PACKAGE_VERSION
38718 CC = $CC
38719 CFLAGS = $CFLAGS
38720 CPPFLAGS = $CPPFLAGS
38721 PCFLAGS = $PCFLAGS
38722 DEFS = $DEFS
38723 LDFLAGS = $LDFLAGS
38724 LIBS = $LIBS
38725 CXX = $CXX
38726 CXXFLAGS = $CXXFLAGS
38727 FEATURES = $MAGICK_FEATURES
38728 DELEGATES = $MAGICK_DELEGATES
38729==============================================================================
cristy3ed852e2009-09-05 21:47:34 +000038730" >&5
cristy9af1cbf2014-12-28 22:03:09 +000038731$as_echo "$as_me:
38732==============================================================================
cristy3ed852e2009-09-05 21:47:34 +000038733ImageMagick is configured as follows. Please verify that this configuration
38734matches your expectations.
38735
cristy9af1cbf2014-12-28 22:03:09 +000038736 Host system type: $host
38737 Build system type: $build
cristy3ed852e2009-09-05 21:47:34 +000038738
38739 Option Value
cristy9af1cbf2014-12-28 22:03:09 +000038740 ------------------------------------------------------------------------------
38741 Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
38742 Static libraries --enable-static=$enable_static $libtool_build_static_libs
38743 Module support --with-modules=$build_modules $build_modules
38744 GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
38745 Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
38746 High Dynamic Range Imagery
38747 --enable-hdri=$enable_hdri $enable_hdri
cristy3ed852e2009-09-05 21:47:34 +000038748
cristy9af1cbf2014-12-28 22:03:09 +000038749 Install documentation: $wantdocs
cristy3ed852e2009-09-05 21:47:34 +000038750
cristy9af1cbf2014-12-28 22:03:09 +000038751 Delegate Library Configuration:
38752 BZLIB --with-bzlib=$with_bzlib $have_bzlib
38753 Autotrace --with-autotrace=$with_autotrace $have_autotrace
38754 DJVU --with-djvu=$with_djvu $have_djvu
38755 DPS --with-dps=$with_dps $have_dps
38756 FFTW --with-fftw=$with_fftw $have_fftw
38757 FlashPIX --with-fpx=$with_fpx $have_fpx
cristybc8ef1c2015-06-06 14:32:21 +000038758 FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
cristy9af1cbf2014-12-28 22:03:09 +000038759 FreeType --with-freetype=$with_freetype $have_freetype
38760 Ghostscript lib --with-gslib=$with_gslib $have_gslib
38761 Graphviz --with-gvc=$with_gvc $have_gvc
38762 JBIG --with-jbig=$with_jbig $have_jbig
38763 JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
cristyd6ac47f2015-06-06 13:46:55 +000038764 LCMS --with-lcms=$with_lcms $have_lcms
cristy86e31f32015-06-06 15:47:32 +000038765 LIBJPEG2 --with-openjp2=$with_openjp2 $have_openjp2
cristy9af1cbf2014-12-28 22:03:09 +000038766 LQR --with-lqr=$with_lqr $have_lqr
38767 LTDL --with-ltdl=$with_ltdl $have_ltdl
38768 LZMA --with-lzma=$with_lzma $have_lzma
38769 Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
38770 OpenEXR --with-openexr=$with_openexr $have_openexr
38771 PANGO --with-pango=$with_pango $have_pango
38772 PERL --with-perl=$with_perl $have_perl
38773 PNG --with-png=$with_png $have_png
38774 RSVG --with-rsvg=$with_rsvg $have_rsvg
38775 TIFF --with-tiff=$with_tiff $have_tiff
38776 WEBP --with-webp=$with_webp $have_webp
38777 WMF --with-wmf=$with_wmf $have_wmf
38778 X11 --with-x=$with_x $have_x
38779 XML --with-xml=$with_xml $have_xml
38780 ZLIB --with-zlib=$with_zlib $have_zlib
cristy5a3dc992014-12-05 19:50:04 +000038781
cristy9af1cbf2014-12-28 22:03:09 +000038782 Delegate Program Configuration:
38783 GhostPCL None $PCLDelegate ($PCLVersion)
38784 GhostXPS None $XPSDelegate ($XPSVersion)
38785 Ghostscript None $PSDelegate ($GSVersion)
cristy5a3dc992014-12-05 19:50:04 +000038786
cristy9af1cbf2014-12-28 22:03:09 +000038787 Font Configuration:
38788 Apple fonts --with-apple-font-dir=$with_apple_font_dir $result_apple_font_dir
38789 Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
38790 Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
38791 Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
cristy3ed852e2009-09-05 21:47:34 +000038792
cristy9af1cbf2014-12-28 22:03:09 +000038793 X11 Configuration:
38794 X_CFLAGS = $X_CFLAGS
38795 X_PRE_LIBS = $X_PRE_LIBS
38796 X_LIBS = $X_LIBS
38797 X_EXTRA_LIBS = $X_EXTRA_LIBS
38798
38799 Options used to compile and link:
38800 PREFIX = $PREFIX_DIR
38801 EXEC-PREFIX = $EXEC_PREFIX_DIR
38802 VERSION = $PACKAGE_VERSION
38803 CC = $CC
38804 CFLAGS = $CFLAGS
38805 CPPFLAGS = $CPPFLAGS
38806 PCFLAGS = $PCFLAGS
38807 DEFS = $DEFS
38808 LDFLAGS = $LDFLAGS
38809 LIBS = $LIBS
38810 CXX = $CXX
38811 CXXFLAGS = $CXXFLAGS
38812 FEATURES = $MAGICK_FEATURES
38813 DELEGATES = $MAGICK_DELEGATES
38814==============================================================================
38815" >&6;}