blob: 1b2fe7ea146eff773048f75131c0ebe76d9bfba0 [file] [log] [blame]
cristy3ed852e2009-09-05 21:47:34 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
cristy14fefe52012-05-21 00:59:18 +00003# Generated by GNU Autoconf 2.69 for ImageMagick 7.0.0-0.
cristy3ed852e2009-09-05 21:47:34 +00004#
5# Report bugs to <http://www.imagemagick.org>.
6#
cristycd4c5312009-11-22 01:19:08 +00007#
cristy14fefe52012-05-21 00:59:18 +00008# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
cristycd4c5312009-11-22 01:19:08 +00009#
cristy8b350f62009-11-15 23:12:43 +000010#
cristy3ed852e2009-09-05 21:47:34 +000011# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
cristy8b350f62009-11-15 23:12:43 +000013## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000016
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000019if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000020 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26else
cristy8b350f62009-11-15 23:12:43 +000027 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
cristy3ed852e2009-09-05 21:47:34 +000032esac
cristy3ed852e2009-09-05 21:47:34 +000033fi
34
35
cristy3ed852e2009-09-05 21:47:34 +000036as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000043# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000050 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000060 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000061 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81fi
82
cristy3ed852e2009-09-05 21:47:34 +000083
84# IFS
85# We need space, tab and new line, in precisely that order. Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
cristyda16f162011-02-19 23:52:17 +000092as_myself=
cristy8b350f62009-11-15 23:12:43 +000093case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000094 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +0000100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
cristy3ed852e2009-09-05 21:47:34 +0000102IFS=$as_save_IFS
103
104 ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109 as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +0000113 exit 1
cristy3ed852e2009-09-05 21:47:34 +0000114fi
115
cristy8b350f62009-11-15 23:12:43 +0000116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there. '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +0000123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
cristy8b350f62009-11-15 23:12:43 +0000134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
cristy14fefe52012-05-21 00:59:18 +0000137# Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
cristy8b350f62009-11-15 23:12:43 +0000162if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176esac
177fi
178"
179 as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193 exitcode=1; echo positional parameters were not saved.
194fi
cristy14fefe52012-05-21 00:59:18 +0000195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
cristy8b350f62009-11-15 23:12:43 +0000197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
cristy0c60a692010-11-04 01:09:47 +0000201test \$(( 1 + 1 )) = 2 || exit 1
202
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
cristy8b350f62009-11-15 23:12:43 +0000210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212else
213 as_have_required=no
214fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235fi
236fi
237 done;;
238 esac
239 as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
cristy14fefe52012-05-21 00:59:18 +0000249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
cristy8b350f62009-11-15 23:12:43 +0000268fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278$0: http://www.imagemagick.org about your system, including
279$0: any error possibly output before this message. Then
280$0: install a modern shell, or manually run the script
281$0: under such a shell if you do have one."
282 fi
283 exit 1
284fi
285fi
286fi
287SHELL=${CONFIG_SHELL-/bin/sh}
288export SHELL
289# Unset more variables known to interfere with behavior of common tools.
290CLICOLOR_FORCE= GREP_OPTIONS=
291unset CLICOLOR_FORCE GREP_OPTIONS
292
293## --------------------- ##
294## M4sh Shell Functions. ##
295## --------------------- ##
296# as_fn_unset VAR
297# ---------------
298# Portably unset VAR.
299as_fn_unset ()
300{
301 { eval $1=; unset $1;}
302}
303as_unset=as_fn_unset
304
305# as_fn_set_status STATUS
306# -----------------------
307# Set $? to STATUS, without forking.
308as_fn_set_status ()
309{
310 return $1
311} # as_fn_set_status
312
313# as_fn_exit STATUS
314# -----------------
315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316as_fn_exit ()
317{
318 set +e
319 as_fn_set_status $1
320 exit $1
321} # as_fn_exit
322
323# as_fn_mkdir_p
324# -------------
325# Create "$as_dir" as a directory, including parents if necessary.
326as_fn_mkdir_p ()
327{
328
329 case $as_dir in #(
330 -*) as_dir=./$as_dir;;
331 esac
332 test -d "$as_dir" || eval $as_mkdir_p || {
333 as_dirs=
334 while :; do
335 case $as_dir in #(
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337 *) as_qdir=$as_dir;;
338 esac
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345$as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\/\)[^/].*/{
351 s//\1/
352 q
353 }
354 /^X\(\/\/\)$/{
355 s//\1/
356 q
357 }
358 /^X\(\/\).*/{
359 s//\1/
360 q
361 }
362 s/.*/./; q'`
363 test -d "$as_dir" && break
364 done
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +0000366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +0000367
368
369} # as_fn_mkdir_p
cristy14fefe52012-05-21 00:59:18 +0000370
371# as_fn_executable_p FILE
372# -----------------------
373# Test if FILE is an executable regular file.
374as_fn_executable_p ()
375{
376 test -f "$1" && test -x "$1"
377} # as_fn_executable_p
cristy8b350f62009-11-15 23:12:43 +0000378# as_fn_append VAR VALUE
379# ----------------------
380# Append the text in VALUE to the end of the definition contained in VAR. Take
381# advantage of any shell optimizations that allow amortized linear growth over
382# repeated appends, instead of the typical quadratic growth present in naive
383# implementations.
384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
386 {
387 eval $1+=\$2
388 }'
389else
390 as_fn_append ()
391 {
392 eval $1=\$$1\$2
393 }
394fi # as_fn_append
395
396# as_fn_arith ARG...
397# ------------------
398# Perform arithmetic evaluation on the ARGs, and store the result in the
399# global $as_val. Take advantage of shells that can avoid forks. The arguments
400# must be portable across $(()) and expr.
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402 eval 'as_fn_arith ()
403 {
404 as_val=$(( $* ))
405 }'
406else
407 as_fn_arith ()
408 {
409 as_val=`expr "$@" || test $? -eq 1`
410 }
411fi # as_fn_arith
412
413
cristy98dddb52010-11-04 00:30:15 +0000414# as_fn_error STATUS ERROR [LINENO LOG_FD]
415# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +0000416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +0000418# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +0000419as_fn_error ()
420{
cristy98dddb52010-11-04 00:30:15 +0000421 as_status=$1; test $as_status -eq 0 && as_status=1
422 if test "$4"; then
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +0000425 fi
cristy98dddb52010-11-04 00:30:15 +0000426 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +0000427 as_fn_exit $as_status
428} # as_fn_error
429
cristy3ed852e2009-09-05 21:47:34 +0000430if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
432 as_expr=expr
433else
434 as_expr=false
435fi
436
437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438 as_basename=basename
439else
440 as_basename=false
441fi
442
cristy8b350f62009-11-15 23:12:43 +0000443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444 as_dirname=dirname
445else
446 as_dirname=false
447fi
cristy3ed852e2009-09-05 21:47:34 +0000448
cristy3ed852e2009-09-05 21:47:34 +0000449as_me=`$as_basename -- "$0" ||
450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453$as_echo X/"$0" |
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
455 s//\1/
456 q
457 }
458 /^X\/\(\/\/\)$/{
459 s//\1/
460 q
461 }
462 /^X\/\(\/\).*/{
463 s//\1/
464 q
465 }
466 s/.*/./; q'`
467
cristy8b350f62009-11-15 23:12:43 +0000468# Avoid depending upon Character Ranges.
469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472as_cr_digits='0123456789'
473as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +0000474
475
cristy8b350f62009-11-15 23:12:43 +0000476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
cristy3ed852e2009-09-05 21:47:34 +0000481 sed -n '
482 p
483 /[$]LINENO/=
484 ' <$as_myself |
485 sed '
486 s/[$]LINENO.*/&-/
487 t lineno
488 b
489 :lineno
490 N
491 :loop
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 t loop
494 s/-\n.*//
495 ' >$as_me.lineno &&
496 chmod +x "$as_me.lineno" ||
cristy8b350f62009-11-15 23:12:43 +0000497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
cristy3ed852e2009-09-05 21:47:34 +0000498
cristy14fefe52012-05-21 00:59:18 +0000499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
cristy3ed852e2009-09-05 21:47:34 +0000503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
506 . "./$as_me.lineno"
507 # Exit status is that of the last command.
508 exit
509}
510
cristy3ed852e2009-09-05 21:47:34 +0000511ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +0000512case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +0000513-n*)
cristy8b350f62009-11-15 23:12:43 +0000514 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +0000515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +0000516 xy) ECHO_C='\c';;
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
518 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +0000519 esac;;
520*)
521 ECHO_N='-n';;
522esac
cristy3ed852e2009-09-05 21:47:34 +0000523
524rm -f conf$$ conf$$.exe conf$$.file
525if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
527else
528 rm -f conf$$.dir
529 mkdir conf$$.dir 2>/dev/null
530fi
531if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s='ln -s'
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
cristy14fefe52012-05-21 00:59:18 +0000537 # In both cases, we have to default to `cp -pR'.
cristy3ed852e2009-09-05 21:47:34 +0000538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
cristy14fefe52012-05-21 00:59:18 +0000539 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +0000540 elif ln conf$$.file conf$$ 2>/dev/null; then
541 as_ln_s=ln
542 else
cristy14fefe52012-05-21 00:59:18 +0000543 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +0000544 fi
545else
cristy14fefe52012-05-21 00:59:18 +0000546 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +0000547fi
548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
550
551if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +0000552 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +0000553else
554 test -d ./-p && rmdir ./-p
555 as_mkdir_p=false
556fi
557
cristy14fefe52012-05-21 00:59:18 +0000558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
cristy3ed852e2009-09-05 21:47:34 +0000560
561# Sed expression to map a string onto a valid CPP name.
562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564# Sed expression to map a string onto a valid variable name.
565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
cristy73bd4a52010-10-05 11:24:23 +0000567SHELL=${CONFIG_SHELL-/bin/sh}
568
cristy0c60a692010-11-04 01:09:47 +0000569
cristycd4c5312009-11-22 01:19:08 +0000570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 6>&1
cristy3ed852e2009-09-05 21:47:34 +0000572
573# Name of the host.
cristy98dddb52010-11-04 00:30:15 +0000574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
cristy3ed852e2009-09-05 21:47:34 +0000575# so uname gets run too.
576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578#
579# Initializations.
580#
581ac_default_prefix=/usr/local
582ac_clean_files=
583ac_config_libobj_dir=.
584LIBOBJS=
585cross_compiling=no
586subdirs=
587MFLAGS=
588MAKEFLAGS=
cristy3ed852e2009-09-05 21:47:34 +0000589
590# Identity of this package.
591PACKAGE_NAME='ImageMagick'
cristy09b53e12011-10-14 12:47:22 +0000592PACKAGE_TARNAME='ImageMagick'
cristy29eb34e2011-10-16 00:46:08 +0000593PACKAGE_VERSION='7.0.0-0'
594PACKAGE_STRING='ImageMagick 7.0.0-0'
cristy3ed852e2009-09-05 21:47:34 +0000595PACKAGE_BUGREPORT='http://www.imagemagick.org'
cristy8b350f62009-11-15 23:12:43 +0000596PACKAGE_URL=''
cristy3ed852e2009-09-05 21:47:34 +0000597
cristy4c08aed2011-07-01 19:47:50 +0000598ac_unique_file="MagickCore/MagickCore.h"
cristy3ed852e2009-09-05 21:47:34 +0000599# Factoring default headers for most tests.
600ac_includes_default="\
601#include <stdio.h>
602#ifdef HAVE_SYS_TYPES_H
603# include <sys/types.h>
604#endif
605#ifdef HAVE_SYS_STAT_H
606# include <sys/stat.h>
607#endif
608#ifdef STDC_HEADERS
609# include <stdlib.h>
610# include <stddef.h>
611#else
612# ifdef HAVE_STDLIB_H
613# include <stdlib.h>
614# endif
615#endif
616#ifdef HAVE_STRING_H
617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618# include <memory.h>
619# endif
620# include <string.h>
621#endif
622#ifdef HAVE_STRINGS_H
623# include <strings.h>
624#endif
625#ifdef HAVE_INTTYPES_H
626# include <inttypes.h>
627#endif
628#ifdef HAVE_STDINT_H
629# include <stdint.h>
630#endif
631#ifdef HAVE_UNISTD_H
632# include <unistd.h>
633#endif"
634
cristycd4c5312009-11-22 01:19:08 +0000635ac_header_list=
cristy5eef09f2012-10-16 12:08:28 +0000636ac_subst_vars='am__EXEEXT_FALSE
cristy73bd4a52010-10-05 11:24:23 +0000637am__EXEEXT_TRUE
638LTLIBOBJS
cristy3ed852e2009-09-05 21:47:34 +0000639MAGICK_LIBS
640MAGICK_LDFLAGS
641MAGICK_PCFLAGS
642MAGICK_CPPFLAGS
643MAGICK_CXXFLAGS
644MAGICK_CFLAGS
645MAGICK_DEP_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000646OSX_GCOV_LDFLAG
cristyfa161182012-12-19 15:45:28 +0000647MAGICK_FEATURES
cristy422d5502012-12-22 22:20:57 +0000648MAGICK_DELEGATES
cristy3ed852e2009-09-05 21:47:34 +0000649MAGICKCORE_PATH
650PERL_SUPPORTS_DESTDIR
cristy73bd4a52010-10-05 11:24:23 +0000651WITH_PERL_DYNAMIC_FALSE
652WITH_PERL_DYNAMIC_TRUE
653WITH_PERL_STATIC_FALSE
654WITH_PERL_STATIC_TRUE
655WITH_PERL_FALSE
656WITH_PERL_TRUE
657PERL_VERSION
cristy3ed852e2009-09-05 21:47:34 +0000658GSVersion
659GSPSDevice
660GSPDFDevice
661GSMonoDevice
662GSEPSDevice
663GSColorDevice
664GSCMYKDevice
665GSAlphaDevice
666XPSVersion
667XPSCMYKDevice
668XPSColorDevice
669XPSMonoDevice
670PCLVersion
671PCLCMYKDevice
672PCLColorDevice
673PCLMonoDevice
cristy73bd4a52010-10-05 11:24:23 +0000674ZIP_DELEGATE_FALSE
675ZIP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000676ZIP
cristy73bd4a52010-10-05 11:24:23 +0000677P7ZIP_DELEGATE_FALSE
678P7ZIP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000679P7ZIP
cristy73bd4a52010-10-05 11:24:23 +0000680RPM_DELEGATE_FALSE
681RPM_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000682RPM
683PERL
684TAR
685ShowImageDelegate
686type_include_files
cristy3ed852e2009-09-05 21:47:34 +0000687windows_font_dir
cristy5a3dc992014-12-05 19:50:04 +0000688ghostscript_font_dir
cristy430a7312010-01-21 20:44:04 +0000689dejavu_font_dir
cristy5a3dc992014-12-05 19:50:04 +0000690apple_font_dir
cristy3ed852e2009-09-05 21:47:34 +0000691PrintDelegate
692ZipDelegate
693XPSDelegate
694WWWDecodeDelegate
695WMFDecodeDelegate
cristy86e86092013-08-04 17:43:57 +0000696WebPEncodeDelegate
697WebPDecodeDelegate
cristy5ac9ac82010-07-29 13:24:24 +0000698UniconvertorDelegate
cristy3ed852e2009-09-05 21:47:34 +0000699TXTDelegate
cristyec6934f2012-08-14 18:38:40 +0000700SVGDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000701SCANDecodeDelegate
cristy4689cf02010-02-17 21:15:45 +0000702RSVGDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000703RMDelegate
704RLEEncodeDelegate
705PSDelegate
706POVDelegate
707PGPDecodeDelegate
708PCLDelegate
709MVDelegate
cristy935c86e2010-06-05 23:50:07 +0000710MrSIDDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000711MPEGEncodeDelegate
712MPEGDecodeDelegate
cristy66f238e2014-05-16 12:21:48 +0000713MogrifyDelegate
cristy3ed852e2009-09-05 21:47:34 +0000714MANDelegate
715LaunchDelegate
cristy3ed852e2009-09-05 21:47:34 +0000716LPRDelegate
717LPDelegate
cristy71f53d52013-04-27 13:33:59 +0000718JXREncodeDelegate
719JXRDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000720ILBMEncodeDelegate
721ILBMDecodeDelegate
722HTMLDecodeDelegate
723HPGLDecodeDelegate
cristy66f238e2014-05-16 12:21:48 +0000724GVCDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000725GnuplotDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000726EditorDelegate
727EchoDelegate
cristy66f238e2014-05-16 12:21:48 +0000728DisplayDelegate
729ConvertDelegate
cristy3ed852e2009-09-05 21:47:34 +0000730DVIDecodeDelegate
cristy66f238e2014-05-16 12:21:48 +0000731DOCDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000732DNGDecodeDelegate
733CatDelegate
cristy3ed852e2009-09-05 21:47:34 +0000734BrowseDelegate
735BZIPDelegate
736BlenderDecodeDelegate
cristy16b412d2014-12-15 11:09:48 +0000737BGPEncodeDelegate
738BGPDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000739AutotraceDecodeDelegate
cristy670aa3c2011-11-03 00:54:00 +0000740SHAREARCH_PATH
cristy54378032012-12-04 15:52:20 +0000741SHAREARCH_RELATIVE_PATH
742SHAREARCH_DIRNAME
743SHAREARCH_BASEDIRNAME
cristy3ed852e2009-09-05 21:47:34 +0000744SHARE_PATH
cristy4f820712011-04-01 12:35:43 +0000745CONFIGURE_PATH
cristydd17feb2014-03-05 02:06:32 +0000746INSTALL_DOC_FALSE
747INSTALL_DOC_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000748DOCUMENTATION_PATH
749FILTER_PATH
cristy01ff9f32012-12-01 18:15:29 +0000750FILTER_DIRNAME
cristy3ed852e2009-09-05 21:47:34 +0000751CODER_PATH
cristy01ff9f32012-12-01 18:15:29 +0000752CODER_DIRNAME
753MODULES_PATH
754MODULES_RELATIVE_PATH
755MODULES_DIRNAME
756MODULES_BASEDIRNAME
cristy8d0ff762013-03-10 20:33:28 +0000757LIB_BIN_DIR_PATH
758LIB_BIN_DIR_RELATIVE_PATH
759LIB_BIN_DIR
760LIB_BIN_BASEDIRNAME
cristy3ed852e2009-09-05 21:47:34 +0000761LIBRARY_PATH
762EXECUTABLE_PATH
cristye52f12f2012-12-31 15:32:36 +0000763INCLUDEARCH_PATH
cristy2a11bef2011-10-28 18:33:11 +0000764INCLUDE_PATH
cristy3ed852e2009-09-05 21:47:34 +0000765PERLMAINCC
766XML_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000767XML_DELEGATE_FALSE
768XML_DELEGATE_TRUE
cristy81beccd2011-10-03 18:17:24 +0000769xml2_config
cristy03f7cf92011-12-15 01:40:41 +0000770WMF_LIBS_DEPS
cristy3ed852e2009-09-05 21:47:34 +0000771WMF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000772WMF_DELEGATE_FALSE
773WMF_DELEGATE_TRUE
cristyb1860752011-03-14 00:27:46 +0000774WEBP_LIBS
775WEBP_DELEGATE_FALSE
776WEBP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000777TIFF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000778TIFF_DELEGATE_FALSE
779TIFF_DELEGATE_TRUE
780CAIRO_DELEGATE_FALSE
781CAIRO_DELEGATE_TRUE
782RSVG_DELEGATE_FALSE
783RSVG_DELEGATE_TRUE
784CAIRO_SVG_LIBS
785CAIRO_SVG_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000786RSVG_LIBS
787RSVG_CFLAGS
cristy81beccd2011-10-03 18:17:24 +0000788PNG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000789PNG_DELEGATE_FALSE
790PNG_DELEGATE_TRUE
cristya054b762012-03-26 23:16:00 +0000791PANGOCAIRO_DELEGATE_FALSE
792PANGOCAIRO_DELEGATE_TRUE
cristy41cbe8a2011-10-27 01:35:18 +0000793PANGO_DELEGATE_FALSE
794PANGO_DELEGATE_TRUE
795PANGO_LIBS
796PANGO_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000797OPENEXR_DELEGATE_FALSE
798OPENEXR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000799OPENEXR_LIBS
800OPENEXR_CFLAGS
cristyfbb0ef02010-12-19 02:32:11 +0000801LZMA_DELEGATE_FALSE
802LZMA_DELEGATE_TRUE
cristyb94e5002011-11-14 13:20:10 +0000803LZMA_LIBS
804LZMA_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000805LQR_DELEGATE_FALSE
806LQR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000807LQR_LIBS
808LQR_CFLAGS
cristy99db3872014-01-01 15:11:34 +0000809LIBOPENJP2_DELEGATE_FALSE
810LIBOPENJP2_DELEGATE_TRUE
811LIBOPENJP2_LIBS
812LIBOPENJP2_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000813LCMS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000814LCMS_DELEGATE_FALSE
815LCMS_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000816JPEG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000817JPEG_DELEGATE_FALSE
818JPEG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000819JBIG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000820JBIG_DELEGATE_FALSE
821JBIG_DELEGATE_TRUE
822GVC_DELEGATE_FALSE
823GVC_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000824GVC_LIBS
825GVC_CFLAGS
826GS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000827GS_DELEGATE_FALSE
828GS_DELEGATE_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000829FREETYPE_DELEGATE_FALSE
830FREETYPE_DELEGATE_TRUE
cristy03f187e2013-01-24 00:22:19 +0000831FREETYPE_LIBS
832FREETYPE_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000833FONTCONFIG_DELEGATE_FALSE
834FONTCONFIG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000835FONTCONFIG_LIBS
836FONTCONFIG_CFLAGS
cristy853d9902014-08-21 18:50:43 +0000837DJVU_LIBS
838DJVU_DELEGATE_FALSE
839DJVU_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000840FPX_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000841FPX_DELEGATE_FALSE
842FPX_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000843FFTW_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000844FFTW_DELEGATE_FALSE
845FFTW_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000846DPS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000847DPS_DELEGATE_FALSE
848DPS_DELEGATE_TRUE
849AUTOTRACE_DELEGATE_FALSE
850AUTOTRACE_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000851AUTOTRACE_LIBS
852AUTOTRACE_CFLAGS
853LIB_DL
cristy5eef09f2012-10-16 12:08:28 +0000854WITH_LTDL_FALSE
855WITH_LTDL_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000856ZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000857ZLIB_DELEGATE_FALSE
858ZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000859XEXT_LIBS
860X11_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000861X11_DELEGATE_FALSE
862X11_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000863X_EXTRA_LIBS
864X_LIBS
865X_PRE_LIBS
866X_CFLAGS
cristyc7083c12009-10-14 03:16:55 +0000867XMKMF
cristy3ed852e2009-09-05 21:47:34 +0000868BZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000869BZLIB_DELEGATE_FALSE
870BZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000871CCMALLOCDelegate
872UMEM_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000873HasUMEM_FALSE
874HasUMEM_TRUE
cristy3b0097d2014-11-04 15:34:47 +0000875JEMALLOC_LIBS
876HasJEMALLOC_FALSE
877HasJEMALLOC_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000878GOMP_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000879WITH_MAGICK_PLUS_PLUS_FALSE
880WITH_MAGICK_PLUS_PLUS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000881OPENMP_CXXFLAGS
cristy161b9262010-03-20 19:34:32 +0000882MATH_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000883POW_LIB
884LIBOBJS
cristy6d5e20f2011-04-25 13:48:54 +0000885UINTPTR_F
cristy3ed852e2009-09-05 21:47:34 +0000886UINTPTR_T
cristy6d5e20f2011-04-25 13:48:54 +0000887UINTMAX_F
cristy3ed852e2009-09-05 21:47:34 +0000888UINTMAX_T
cristy6d5e20f2011-04-25 13:48:54 +0000889UINT64_F
cristy3ed852e2009-09-05 21:47:34 +0000890UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000891INT64_F
cristy3ed852e2009-09-05 21:47:34 +0000892INT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000893UINT32_F
cristy3ed852e2009-09-05 21:47:34 +0000894UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +0000895INT32_F
cristy3ed852e2009-09-05 21:47:34 +0000896INT32_T
897UINT16_T
898INT16_T
899UINT8_T
900INT8_T
901LIBRARY_EXTRA_CPPFLAGS
902MODULE_EXTRA_CPPFLAGS
903LIBSTDCLDFLAGS
904PERL_MAKE_OPTIONS
cristy3a75f062012-09-08 23:29:40 +0000905MAGICK_LT_RELEASE_OPTS
cristy7a26abd2012-12-03 00:18:59 +0000906MAGICK_ABI_SUFFIX
cristy3ed852e2009-09-05 21:47:34 +0000907QUANTUM_DEPTH
cristy71d8c202012-03-20 17:05:01 +0000908LEGACY_SUPPORT_FALSE
909LEGACY_SUPPORT_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000910MAINT
911MAINTAINER_MODE_FALSE
912MAINTAINER_MODE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000913MAGICK_HDRI
cristy73bd4a52010-10-05 11:24:23 +0000914WITH_MODULES_FALSE
915WITH_MODULES_TRUE
916WITH_SHARED_LIBS_FALSE
917WITH_SHARED_LIBS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000918LIBTOOL_DEPS
cristy73bd4a52010-10-05 11:24:23 +0000919CXXCPP
920OTOOL64
921OTOOL
922LIPO
923NMEDIT
924DSYMUTIL
cristyda16f162011-02-19 23:52:17 +0000925MANIFEST_TOOL
cristy73bd4a52010-10-05 11:24:23 +0000926RANLIB
cristy73bd4a52010-10-05 11:24:23 +0000927NM
928ac_ct_DUMPBIN
929DUMPBIN
930LIBTOOL
931OBJDUMP
932DLLTOOL
933AS
cristy3ed852e2009-09-05 21:47:34 +0000934LFS_CPPFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000935CL_LIBS
cristy736173a2009-09-20 21:18:22 +0000936CL_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000937OPENMP_CFLAGS
cristy1ae5c992013-07-30 14:55:07 +0000938THREAD_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000939PTHREAD_CFLAGS
940PTHREAD_LIBS
941PTHREAD_CC
942ax_pthread_config
cristy2ec87cc2013-02-18 17:46:50 +0000943pkgconfigdir
cristy670aa3c2011-11-03 00:54:00 +0000944SHAREARCH_DIR
945INCLUDEARCH_DIR
cristy3ed852e2009-09-05 21:47:34 +0000946WinPathScript
cristy73bd4a52010-10-05 11:24:23 +0000947USING_CL_FALSE
948USING_CL_TRUE
949CYGWIN_BUILD_FALSE
950CYGWIN_BUILD_TRUE
951WIN32_NATIVE_BUILD_FALSE
952WIN32_NATIVE_BUILD_TRUE
953WINGDI32_DELEGATE_FALSE
954WINGDI32_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000955GDI32_LIBS
cristy9b86f202012-11-28 21:55:35 +0000956HAVE_LD_VERSION_SCRIPT_FALSE
957HAVE_LD_VERSION_SCRIPT_TRUE
cristy146497a2015-05-17 22:46:16 +0000958PKG_CONFIG_LIBDIR
959PKG_CONFIG_PATH
cristy73bd4a52010-10-05 11:24:23 +0000960PKG_CONFIG
cristya0459972013-11-03 18:09:35 +0000961PRTDIAG
cristy3ed852e2009-09-05 21:47:34 +0000962LN_S
cristy3ed852e2009-09-05 21:47:34 +0000963LD
cristy73bd4a52010-10-05 11:24:23 +0000964FGREP
965SED
966am__fastdepCXX_FALSE
967am__fastdepCXX_TRUE
968CXXDEPMODE
cristy95646052009-11-28 23:05:30 +0000969ac_ct_CXX
970CXXFLAGS
971CXX
cristy9e007fe2015-01-03 16:05:07 +0000972ac_ct_AR
973AR
cristya0b81c32010-01-22 02:54:33 +0000974EGREP
975GREP
976CPP
cristy73bd4a52010-10-05 11:24:23 +0000977am__fastdepCC_FALSE
978am__fastdepCC_TRUE
979CCDEPMODE
cristy7247bba2012-02-05 16:37:27 +0000980am__nodep
cristy73bd4a52010-10-05 11:24:23 +0000981AMDEPBACKSLASH
982AMDEP_FALSE
983AMDEP_TRUE
984am__quote
985am__include
986DEPDIR
cristy3ed852e2009-09-05 21:47:34 +0000987OBJEXT
988EXEEXT
989ac_ct_CC
990CPPFLAGS
991LDFLAGS
992CFLAGS
993CC
994DIRSEP
995MAGICK_FILTER_MODULE_PATH
996MAGICK_CONFIGURE_BUILD_PATH
997MAGICK_CONFIGURE_SRC_PATH
998MAGICK_CODER_MODULE_PATH
999MAN_DIR
1000INFO_DIR
1001PERSISTINCLUDE_DIR
1002INCLUDE_DIR
1003LIB_DIR
1004LOCALSTATE_DIR
1005SHAREDSTATE_DIR
1006SYSCONF_DIR
cristyd55889c2011-03-27 00:50:24 +00001007DOC_DIR
cristy3ed852e2009-09-05 21:47:34 +00001008DATA_DIR
1009LIBEXEC_DIR
1010SBIN_DIR
1011BIN_DIR
1012EXEC_PREFIX_DIR
1013PREFIX_DIR
1014CONFIG_STATUS_DEPENDENCIES
cristy5ed9c6e2013-07-14 21:20:31 +00001015MAGICKPP_LIB_VERSION_TEXT
1016MAGICKPP_LIB_VERSION
cristy3ed852e2009-09-05 21:47:34 +00001017MAGICK_LIB_VERSION_NUMBER
1018MAGICK_LIB_VERSION_TEXT
1019MAGICK_LIB_VERSION
cristy9af1cbf2014-12-28 22:03:09 +00001020PACKAGE_VERSION_ADDENDUM
1021PACKAGE_RELEASE_DATE
1022PACKAGE_LIB_VERSION_NUMBER
1023PACKAGE_LIB_VERSION
1024PACKAGE_CHANGE_DATE
1025PACKAGE_RELEASE
1026PACKAGE_PERL_VERSION
1027MAGICKPP_LIBRARY_VERSION_INFO
1028MAGICKPP_LIBRARY_CURRENT_MIN
1029MAGICKPP_LIBRARY_AGE
1030MAGICKPP_LIBRARY_REVISION
1031MAGICKPP_LIBRARY_CURRENT
1032MAGICK_LIBRARY_VERSION_INFO
1033MAGICK_LIBRARY_CURRENT_MIN
1034MAGICK_LIBRARY_AGE
1035MAGICK_LIBRARY_REVISION
1036MAGICK_LIBRARY_CURRENT
1037MAGICK_SVN_REVISION
1038MAGICK_VERSION
1039MAGICK_PATCHLEVEL_VERSION
1040MAGICK_MICRO_VERSION
1041MAGICK_MINOR_VERSION
1042MAGICK_MAJOR_VERSION
1043MAGICK_TARGET_OS
1044MAGICK_TARGET_VENDOR
1045MAGICK_TARGET_CPU
1046CONFIGURE_ARGS
1047DISTCHECK_CONFIG_FLAGS
cristy73bd4a52010-10-05 11:24:23 +00001048AM_BACKSLASH
1049AM_DEFAULT_VERBOSITY
cristyc3fb77b2012-02-06 01:49:41 +00001050AM_DEFAULT_V
1051AM_V
cristy73bd4a52010-10-05 11:24:23 +00001052am__untar
1053am__tar
1054AMTAR
1055am__leading_dot
1056SET_MAKE
1057AWK
1058mkdir_p
1059MKDIR_P
1060INSTALL_STRIP_PROGRAM
1061STRIP
1062install_sh
1063MAKEINFO
1064AUTOHEADER
1065AUTOMAKE
1066AUTOCONF
1067ACLOCAL
1068VERSION
1069PACKAGE
1070CYGPATH_W
1071am__isrc
1072INSTALL_DATA
1073INSTALL_SCRIPT
1074INSTALL_PROGRAM
cristy3ed852e2009-09-05 21:47:34 +00001075target_os
1076target_vendor
1077target_cpu
1078target
1079host_os
1080host_vendor
1081host_cpu
1082host
1083build_os
1084build_vendor
1085build_cpu
1086build
cristy3ed852e2009-09-05 21:47:34 +00001087target_alias
1088host_alias
1089build_alias
1090LIBS
1091ECHO_T
1092ECHO_N
1093ECHO_C
1094DEFS
1095mandir
1096localedir
1097libdir
1098psdir
1099pdfdir
1100dvidir
1101htmldir
1102infodir
1103docdir
1104oldincludedir
1105includedir
1106localstatedir
1107sharedstatedir
1108sysconfdir
1109datadir
1110datarootdir
1111libexecdir
1112sbindir
1113bindir
1114program_transform_name
1115prefix
1116exec_prefix
cristy8b350f62009-11-15 23:12:43 +00001117PACKAGE_URL
cristy3ed852e2009-09-05 21:47:34 +00001118PACKAGE_BUGREPORT
1119PACKAGE_STRING
1120PACKAGE_VERSION
1121PACKAGE_TARNAME
1122PACKAGE_NAME
1123PATH_SEPARATOR
1124SHELL'
1125ac_subst_files=''
1126ac_user_opts='
1127enable_option_checking
cristy73bd4a52010-10-05 11:24:23 +00001128enable_silent_rules
cristy187791c2015-05-03 22:17:00 +00001129enable_reproducible_build
cristy73bd4a52010-10-05 11:24:23 +00001130enable_dependency_tracking
1131with_gnu_ld
1132with_dmalloc
cristya0459972013-11-03 18:09:35 +00001133with_gcc_arch
cristy9b86f202012-11-28 21:55:35 +00001134enable_ld_version_script
cristy3ed852e2009-09-05 21:47:34 +00001135enable_bounds_checking
1136enable_osx_universal_binary
cristy670aa3c2011-11-03 00:54:00 +00001137with_includearch_dir
1138with_sharearch_dir
cristy2ec87cc2013-02-18 17:46:50 +00001139with_pkgconfigdir
cristy3ed852e2009-09-05 21:47:34 +00001140with_threads
1141enable_openmp
cristy73bd4a52010-10-05 11:24:23 +00001142enable_opencl
cristy3ed852e2009-09-05 21:47:34 +00001143enable_largefile
cristy73bd4a52010-10-05 11:24:23 +00001144enable_shared
1145enable_static
1146with_pic
1147enable_fast_install
cristyda16f162011-02-19 23:52:17 +00001148with_sysroot
cristy73bd4a52010-10-05 11:24:23 +00001149enable_libtool_lock
cristy3ed852e2009-09-05 21:47:34 +00001150with_modules
1151enable_delegate_build
1152enable_deprecated
1153enable_installed
1154enable_cipher
cristy6e3607c2011-09-13 13:59:17 +00001155enable_zero_configuration
cristy3ed852e2009-09-05 21:47:34 +00001156enable_hdri
cristy3ed852e2009-09-05 21:47:34 +00001157enable_assert
cristy73bd4a52010-10-05 11:24:23 +00001158enable_maintainer_mode
cristy944e51f2013-04-16 18:45:02 +00001159enable_hugepages
cristy3ed852e2009-09-05 21:47:34 +00001160enable_ccmalloc
1161enable_efence
1162enable_prof
1163enable_gprof
1164enable_gcov
1165with_method_prefix
cristy71d8c202012-03-20 17:05:01 +00001166enable_legacy_support
cristy3ed852e2009-09-05 21:47:34 +00001167with_quantum_depth
1168with_cache
1169with_frozenpaths
1170with_magick_plus_plus
cristy3a75f062012-09-08 23:29:40 +00001171with_package_release_name
cristy3ed852e2009-09-05 21:47:34 +00001172with_perl
1173with_perl_options
cristy3b0097d2014-11-04 15:34:47 +00001174with_jemalloc
cristy3ed852e2009-09-05 21:47:34 +00001175with_umem
1176with_libstdc
1177with_bzlib
cristyc7083c12009-10-14 03:16:55 +00001178with_x
cristy3ed852e2009-09-05 21:47:34 +00001179with_zlib
cristy5a3dc992014-12-05 19:50:04 +00001180with_apple_font_dir
cristy3ed852e2009-09-05 21:47:34 +00001181with_autotrace
1182with_dps
cristy430a7312010-01-21 20:44:04 +00001183with_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +00001184with_fftw
1185with_fpx
cristy853d9902014-08-21 18:50:43 +00001186with_djvu
cristy3ed852e2009-09-05 21:47:34 +00001187with_fontconfig
1188with_freetype
1189with_gslib
1190with_fontpath
1191with_gs_font_dir
1192with_gvc
1193with_jbig
1194with_jpeg
cristy3ed852e2009-09-05 21:47:34 +00001195with_lcms
cristy71203402010-06-18 13:12:03 +00001196with_lcms2
cristy99db3872014-01-01 15:11:34 +00001197with_openjp2
cristy3ed852e2009-09-05 21:47:34 +00001198with_lqr
cristyfbb0ef02010-12-19 02:32:11 +00001199with_lzma
cristy3ed852e2009-09-05 21:47:34 +00001200with_openexr
cristy41cbe8a2011-10-27 01:35:18 +00001201with_pango
cristy3ed852e2009-09-05 21:47:34 +00001202with_png
1203with_rsvg
1204with_tiff
cristyb1860752011-03-14 00:27:46 +00001205with_webp
cristy3ed852e2009-09-05 21:47:34 +00001206with_windows_font_dir
1207with_wmf
1208with_xml
cristydd17feb2014-03-05 02:06:32 +00001209enable_docs
cristy3ed852e2009-09-05 21:47:34 +00001210'
1211 ac_precious_vars='build_alias
1212host_alias
1213target_alias
1214CC
1215CFLAGS
1216LDFLAGS
1217LIBS
1218CPPFLAGS
cristya0b81c32010-01-22 02:54:33 +00001219CPP
cristy3ed852e2009-09-05 21:47:34 +00001220CXX
1221CXXFLAGS
1222CCC
cristy73bd4a52010-10-05 11:24:23 +00001223PKG_CONFIG
cristy146497a2015-05-17 22:46:16 +00001224PKG_CONFIG_PATH
1225PKG_CONFIG_LIBDIR
cristy73bd4a52010-10-05 11:24:23 +00001226CXXCPP
cristyc7083c12009-10-14 03:16:55 +00001227XMKMF
cristy73bd4a52010-10-05 11:24:23 +00001228AUTOTRACE_CFLAGS
1229AUTOTRACE_LIBS
1230FONTCONFIG_CFLAGS
1231FONTCONFIG_LIBS
cristy03f187e2013-01-24 00:22:19 +00001232FREETYPE_CFLAGS
1233FREETYPE_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001234GVC_CFLAGS
1235GVC_LIBS
cristy99db3872014-01-01 15:11:34 +00001236LIBOPENJP2_CFLAGS
1237LIBOPENJP2_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001238LQR_CFLAGS
1239LQR_LIBS
cristyb94e5002011-11-14 13:20:10 +00001240LZMA_CFLAGS
1241LZMA_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001242OPENEXR_CFLAGS
1243OPENEXR_LIBS
cristy41cbe8a2011-10-27 01:35:18 +00001244PANGO_CFLAGS
1245PANGO_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001246RSVG_CFLAGS
1247RSVG_LIBS
1248CAIRO_SVG_CFLAGS
cristy81beccd2011-10-03 18:17:24 +00001249CAIRO_SVG_LIBS'
cristy3ed852e2009-09-05 21:47:34 +00001250
1251
1252# Initialize some variables set by options.
1253ac_init_help=
1254ac_init_version=false
1255ac_unrecognized_opts=
1256ac_unrecognized_sep=
1257# The variables have the same names as the options, with
1258# dashes changed to underlines.
1259cache_file=/dev/null
1260exec_prefix=NONE
1261no_create=
1262no_recursion=
1263prefix=NONE
1264program_prefix=NONE
1265program_suffix=NONE
1266program_transform_name=s,x,x,
1267silent=
1268site=
1269srcdir=
1270verbose=
1271x_includes=NONE
1272x_libraries=NONE
1273
1274# Installation directory options.
1275# These are left unexpanded so users can "make install exec_prefix=/foo"
1276# and all the variables that are supposed to be based on exec_prefix
1277# by default will actually change.
1278# Use braces instead of parens because sh, perl, etc. also accept them.
1279# (The list follows the same order as the GNU Coding Standards.)
1280bindir='${exec_prefix}/bin'
1281sbindir='${exec_prefix}/sbin'
1282libexecdir='${exec_prefix}/libexec'
1283datarootdir='${prefix}/share'
1284datadir='${datarootdir}'
1285sysconfdir='${prefix}/etc'
1286sharedstatedir='${prefix}/com'
1287localstatedir='${prefix}/var'
1288includedir='${prefix}/include'
1289oldincludedir='/usr/include'
1290docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1291infodir='${datarootdir}/info'
1292htmldir='${docdir}'
1293dvidir='${docdir}'
1294pdfdir='${docdir}'
1295psdir='${docdir}'
1296libdir='${exec_prefix}/lib'
1297localedir='${datarootdir}/locale'
1298mandir='${datarootdir}/man'
1299
1300ac_prev=
1301ac_dashdash=
1302for ac_option
1303do
1304 # If the previous option needs an argument, assign it.
1305 if test -n "$ac_prev"; then
1306 eval $ac_prev=\$ac_option
1307 ac_prev=
1308 continue
1309 fi
1310
1311 case $ac_option in
cristyda16f162011-02-19 23:52:17 +00001312 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1313 *=) ac_optarg= ;;
1314 *) ac_optarg=yes ;;
cristy3ed852e2009-09-05 21:47:34 +00001315 esac
1316
1317 # Accept the important Cygnus configure options, so we can diagnose typos.
1318
1319 case $ac_dashdash$ac_option in
1320 --)
1321 ac_dashdash=yes ;;
1322
1323 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1324 ac_prev=bindir ;;
1325 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1326 bindir=$ac_optarg ;;
1327
1328 -build | --build | --buil | --bui | --bu)
1329 ac_prev=build_alias ;;
1330 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1331 build_alias=$ac_optarg ;;
1332
1333 -cache-file | --cache-file | --cache-fil | --cache-fi \
1334 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1335 ac_prev=cache_file ;;
1336 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1337 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1338 cache_file=$ac_optarg ;;
1339
1340 --config-cache | -C)
1341 cache_file=config.cache ;;
1342
1343 -datadir | --datadir | --datadi | --datad)
1344 ac_prev=datadir ;;
1345 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1346 datadir=$ac_optarg ;;
1347
1348 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1349 | --dataroo | --dataro | --datar)
1350 ac_prev=datarootdir ;;
1351 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1352 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1353 datarootdir=$ac_optarg ;;
1354
1355 -disable-* | --disable-*)
1356 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1357 # Reject names that are not valid shell variable names.
1358 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001359 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001360 ac_useropt_orig=$ac_useropt
1361 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1362 case $ac_user_opts in
1363 *"
1364"enable_$ac_useropt"
1365"*) ;;
1366 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1367 ac_unrecognized_sep=', ';;
1368 esac
1369 eval enable_$ac_useropt=no ;;
1370
1371 -docdir | --docdir | --docdi | --doc | --do)
1372 ac_prev=docdir ;;
1373 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1374 docdir=$ac_optarg ;;
1375
1376 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1377 ac_prev=dvidir ;;
1378 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1379 dvidir=$ac_optarg ;;
1380
1381 -enable-* | --enable-*)
1382 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1383 # Reject names that are not valid shell variable names.
1384 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001385 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001386 ac_useropt_orig=$ac_useropt
1387 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1388 case $ac_user_opts in
1389 *"
1390"enable_$ac_useropt"
1391"*) ;;
1392 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1393 ac_unrecognized_sep=', ';;
1394 esac
1395 eval enable_$ac_useropt=\$ac_optarg ;;
1396
1397 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1398 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1399 | --exec | --exe | --ex)
1400 ac_prev=exec_prefix ;;
1401 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1402 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1403 | --exec=* | --exe=* | --ex=*)
1404 exec_prefix=$ac_optarg ;;
1405
1406 -gas | --gas | --ga | --g)
1407 # Obsolete; use --with-gas.
1408 with_gas=yes ;;
1409
1410 -help | --help | --hel | --he | -h)
1411 ac_init_help=long ;;
1412 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1413 ac_init_help=recursive ;;
1414 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1415 ac_init_help=short ;;
1416
1417 -host | --host | --hos | --ho)
1418 ac_prev=host_alias ;;
1419 -host=* | --host=* | --hos=* | --ho=*)
1420 host_alias=$ac_optarg ;;
1421
1422 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1423 ac_prev=htmldir ;;
1424 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1425 | --ht=*)
1426 htmldir=$ac_optarg ;;
1427
1428 -includedir | --includedir | --includedi | --included | --include \
1429 | --includ | --inclu | --incl | --inc)
1430 ac_prev=includedir ;;
1431 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1432 | --includ=* | --inclu=* | --incl=* | --inc=*)
1433 includedir=$ac_optarg ;;
1434
1435 -infodir | --infodir | --infodi | --infod | --info | --inf)
1436 ac_prev=infodir ;;
1437 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1438 infodir=$ac_optarg ;;
1439
1440 -libdir | --libdir | --libdi | --libd)
1441 ac_prev=libdir ;;
1442 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1443 libdir=$ac_optarg ;;
1444
1445 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1446 | --libexe | --libex | --libe)
1447 ac_prev=libexecdir ;;
1448 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1449 | --libexe=* | --libex=* | --libe=*)
1450 libexecdir=$ac_optarg ;;
1451
1452 -localedir | --localedir | --localedi | --localed | --locale)
1453 ac_prev=localedir ;;
1454 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1455 localedir=$ac_optarg ;;
1456
1457 -localstatedir | --localstatedir | --localstatedi | --localstated \
1458 | --localstate | --localstat | --localsta | --localst | --locals)
1459 ac_prev=localstatedir ;;
1460 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1461 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1462 localstatedir=$ac_optarg ;;
1463
1464 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1465 ac_prev=mandir ;;
1466 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1467 mandir=$ac_optarg ;;
1468
1469 -nfp | --nfp | --nf)
1470 # Obsolete; use --without-fp.
1471 with_fp=no ;;
1472
1473 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1474 | --no-cr | --no-c | -n)
1475 no_create=yes ;;
1476
1477 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1478 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1479 no_recursion=yes ;;
1480
1481 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1482 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1483 | --oldin | --oldi | --old | --ol | --o)
1484 ac_prev=oldincludedir ;;
1485 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1486 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1487 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1488 oldincludedir=$ac_optarg ;;
1489
1490 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1491 ac_prev=prefix ;;
1492 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1493 prefix=$ac_optarg ;;
1494
1495 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1496 | --program-pre | --program-pr | --program-p)
1497 ac_prev=program_prefix ;;
1498 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1499 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1500 program_prefix=$ac_optarg ;;
1501
1502 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1503 | --program-suf | --program-su | --program-s)
1504 ac_prev=program_suffix ;;
1505 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1506 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1507 program_suffix=$ac_optarg ;;
1508
1509 -program-transform-name | --program-transform-name \
1510 | --program-transform-nam | --program-transform-na \
1511 | --program-transform-n | --program-transform- \
1512 | --program-transform | --program-transfor \
1513 | --program-transfo | --program-transf \
1514 | --program-trans | --program-tran \
1515 | --progr-tra | --program-tr | --program-t)
1516 ac_prev=program_transform_name ;;
1517 -program-transform-name=* | --program-transform-name=* \
1518 | --program-transform-nam=* | --program-transform-na=* \
1519 | --program-transform-n=* | --program-transform-=* \
1520 | --program-transform=* | --program-transfor=* \
1521 | --program-transfo=* | --program-transf=* \
1522 | --program-trans=* | --program-tran=* \
1523 | --progr-tra=* | --program-tr=* | --program-t=*)
1524 program_transform_name=$ac_optarg ;;
1525
1526 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1527 ac_prev=pdfdir ;;
1528 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1529 pdfdir=$ac_optarg ;;
1530
1531 -psdir | --psdir | --psdi | --psd | --ps)
1532 ac_prev=psdir ;;
1533 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1534 psdir=$ac_optarg ;;
1535
1536 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1537 | -silent | --silent | --silen | --sile | --sil)
1538 silent=yes ;;
1539
1540 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1541 ac_prev=sbindir ;;
1542 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1543 | --sbi=* | --sb=*)
1544 sbindir=$ac_optarg ;;
1545
1546 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1547 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1548 | --sharedst | --shareds | --shared | --share | --shar \
1549 | --sha | --sh)
1550 ac_prev=sharedstatedir ;;
1551 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1552 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1553 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1554 | --sha=* | --sh=*)
1555 sharedstatedir=$ac_optarg ;;
1556
1557 -site | --site | --sit)
1558 ac_prev=site ;;
1559 -site=* | --site=* | --sit=*)
1560 site=$ac_optarg ;;
1561
1562 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1563 ac_prev=srcdir ;;
1564 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1565 srcdir=$ac_optarg ;;
1566
1567 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1568 | --syscon | --sysco | --sysc | --sys | --sy)
1569 ac_prev=sysconfdir ;;
1570 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1571 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1572 sysconfdir=$ac_optarg ;;
1573
1574 -target | --target | --targe | --targ | --tar | --ta | --t)
1575 ac_prev=target_alias ;;
1576 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1577 target_alias=$ac_optarg ;;
1578
1579 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1580 verbose=yes ;;
1581
1582 -version | --version | --versio | --versi | --vers | -V)
1583 ac_init_version=: ;;
1584
1585 -with-* | --with-*)
1586 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1587 # Reject names that are not valid shell variable names.
1588 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001589 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001590 ac_useropt_orig=$ac_useropt
1591 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1592 case $ac_user_opts in
1593 *"
1594"with_$ac_useropt"
1595"*) ;;
1596 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1597 ac_unrecognized_sep=', ';;
1598 esac
1599 eval with_$ac_useropt=\$ac_optarg ;;
1600
1601 -without-* | --without-*)
1602 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1603 # Reject names that are not valid shell variable names.
1604 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001605 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001606 ac_useropt_orig=$ac_useropt
1607 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1608 case $ac_user_opts in
1609 *"
1610"with_$ac_useropt"
1611"*) ;;
1612 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1613 ac_unrecognized_sep=', ';;
1614 esac
1615 eval with_$ac_useropt=no ;;
1616
1617 --x)
1618 # Obsolete; use --with-x.
1619 with_x=yes ;;
1620
1621 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1622 | --x-incl | --x-inc | --x-in | --x-i)
1623 ac_prev=x_includes ;;
1624 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1625 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1626 x_includes=$ac_optarg ;;
1627
1628 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1629 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1630 ac_prev=x_libraries ;;
1631 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1632 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1633 x_libraries=$ac_optarg ;;
1634
cristy98dddb52010-11-04 00:30:15 +00001635 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1636Try \`$0 --help' for more information"
cristy3ed852e2009-09-05 21:47:34 +00001637 ;;
1638
1639 *=*)
1640 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1641 # Reject names that are not valid shell variable names.
cristy8b350f62009-11-15 23:12:43 +00001642 case $ac_envvar in #(
1643 '' | [0-9]* | *[!_$as_cr_alnum]* )
cristy98dddb52010-11-04 00:30:15 +00001644 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
cristy8b350f62009-11-15 23:12:43 +00001645 esac
cristy3ed852e2009-09-05 21:47:34 +00001646 eval $ac_envvar=\$ac_optarg
1647 export $ac_envvar ;;
1648
1649 *)
1650 # FIXME: should be removed in autoconf 3.0.
1651 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1652 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1653 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
cristyda16f162011-02-19 23:52:17 +00001654 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
cristy3ed852e2009-09-05 21:47:34 +00001655 ;;
1656
1657 esac
1658done
1659
1660if test -n "$ac_prev"; then
1661 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cristy98dddb52010-11-04 00:30:15 +00001662 as_fn_error $? "missing argument to $ac_option"
cristy3ed852e2009-09-05 21:47:34 +00001663fi
1664
1665if test -n "$ac_unrecognized_opts"; then
1666 case $enable_option_checking in
1667 no) ;;
cristy98dddb52010-11-04 00:30:15 +00001668 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
cristy3ed852e2009-09-05 21:47:34 +00001669 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1670 esac
1671fi
1672
1673# Check all directory arguments for consistency.
1674for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1675 datadir sysconfdir sharedstatedir localstatedir includedir \
1676 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1677 libdir localedir mandir
1678do
1679 eval ac_val=\$$ac_var
1680 # Remove trailing slashes.
1681 case $ac_val in
1682 */ )
1683 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1684 eval $ac_var=\$ac_val;;
1685 esac
1686 # Be sure to have absolute directory names.
1687 case $ac_val in
1688 [\\/$]* | ?:[\\/]* ) continue;;
1689 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1690 esac
cristy98dddb52010-11-04 00:30:15 +00001691 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
cristy3ed852e2009-09-05 21:47:34 +00001692done
1693
1694# There might be people who depend on the old broken behavior: `$host'
1695# used to hold the argument of --host etc.
1696# FIXME: To remove some day.
1697build=$build_alias
1698host=$host_alias
1699target=$target_alias
1700
1701# FIXME: To remove some day.
1702if test "x$host_alias" != x; then
1703 if test "x$build_alias" = x; then
1704 cross_compiling=maybe
cristy3ed852e2009-09-05 21:47:34 +00001705 elif test "x$build_alias" != "x$host_alias"; then
1706 cross_compiling=yes
1707 fi
1708fi
1709
1710ac_tool_prefix=
1711test -n "$host_alias" && ac_tool_prefix=$host_alias-
1712
1713test "$silent" = yes && exec 6>/dev/null
1714
1715
1716ac_pwd=`pwd` && test -n "$ac_pwd" &&
1717ac_ls_di=`ls -di .` &&
1718ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cristy98dddb52010-11-04 00:30:15 +00001719 as_fn_error $? "working directory cannot be determined"
cristy3ed852e2009-09-05 21:47:34 +00001720test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cristy98dddb52010-11-04 00:30:15 +00001721 as_fn_error $? "pwd does not report name of working directory"
cristy3ed852e2009-09-05 21:47:34 +00001722
1723
1724# Find the source files, if location was not specified.
1725if test -z "$srcdir"; then
1726 ac_srcdir_defaulted=yes
1727 # Try the directory containing this script, then the parent directory.
1728 ac_confdir=`$as_dirname -- "$as_myself" ||
1729$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1730 X"$as_myself" : 'X\(//\)[^/]' \| \
1731 X"$as_myself" : 'X\(//\)$' \| \
1732 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1733$as_echo X"$as_myself" |
1734 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1735 s//\1/
1736 q
1737 }
1738 /^X\(\/\/\)[^/].*/{
1739 s//\1/
1740 q
1741 }
1742 /^X\(\/\/\)$/{
1743 s//\1/
1744 q
1745 }
1746 /^X\(\/\).*/{
1747 s//\1/
1748 q
1749 }
1750 s/.*/./; q'`
1751 srcdir=$ac_confdir
1752 if test ! -r "$srcdir/$ac_unique_file"; then
1753 srcdir=..
1754 fi
1755else
1756 ac_srcdir_defaulted=no
1757fi
1758if test ! -r "$srcdir/$ac_unique_file"; then
1759 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cristy98dddb52010-11-04 00:30:15 +00001760 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
cristy3ed852e2009-09-05 21:47:34 +00001761fi
1762ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1763ac_abs_confdir=`(
cristy98dddb52010-11-04 00:30:15 +00001764 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
cristy3ed852e2009-09-05 21:47:34 +00001765 pwd)`
1766# When building in place, set srcdir=.
1767if test "$ac_abs_confdir" = "$ac_pwd"; then
1768 srcdir=.
1769fi
1770# Remove unnecessary trailing slashes from srcdir.
1771# Double slashes in file names in object file debugging info
1772# mess up M-x gdb in Emacs.
1773case $srcdir in
1774*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1775esac
1776for ac_var in $ac_precious_vars; do
1777 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1778 eval ac_env_${ac_var}_value=\$${ac_var}
1779 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1780 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1781done
1782
1783#
1784# Report the --help message.
1785#
1786if test "$ac_init_help" = "long"; then
1787 # Omit some internal or obsolete options to make the list less imposing.
1788 # This message is too long to be a string in the A/UX 3.1 sh.
1789 cat <<_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00001790\`configure' configures ImageMagick 7.0.0-0 to adapt to many kinds of systems.
cristy3ed852e2009-09-05 21:47:34 +00001791
1792Usage: $0 [OPTION]... [VAR=VALUE]...
1793
1794To assign environment variables (e.g., CC, CFLAGS...), specify them as
1795VAR=VALUE. See below for descriptions of some of the useful variables.
1796
1797Defaults for the options are specified in brackets.
1798
1799Configuration:
1800 -h, --help display this help and exit
1801 --help=short display options specific to this package
1802 --help=recursive display the short help of all the included packages
1803 -V, --version display version information and exit
cristy98dddb52010-11-04 00:30:15 +00001804 -q, --quiet, --silent do not print \`checking ...' messages
cristy3ed852e2009-09-05 21:47:34 +00001805 --cache-file=FILE cache test results in FILE [disabled]
1806 -C, --config-cache alias for \`--cache-file=config.cache'
1807 -n, --no-create do not create output files
1808 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1809
1810Installation directories:
1811 --prefix=PREFIX install architecture-independent files in PREFIX
1812 [$ac_default_prefix]
1813 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1814 [PREFIX]
1815
1816By default, \`make install' will install all the files in
1817\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1818an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1819for instance \`--prefix=\$HOME'.
1820
1821For better control, use the options below.
1822
1823Fine tuning of the installation directories:
1824 --bindir=DIR user executables [EPREFIX/bin]
1825 --sbindir=DIR system admin executables [EPREFIX/sbin]
1826 --libexecdir=DIR program executables [EPREFIX/libexec]
1827 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1828 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1829 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1830 --libdir=DIR object code libraries [EPREFIX/lib]
1831 --includedir=DIR C header files [PREFIX/include]
1832 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1833 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1834 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1835 --infodir=DIR info documentation [DATAROOTDIR/info]
1836 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1837 --mandir=DIR man documentation [DATAROOTDIR/man]
cristy09b53e12011-10-14 12:47:22 +00001838 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick]
cristy3ed852e2009-09-05 21:47:34 +00001839 --htmldir=DIR html documentation [DOCDIR]
1840 --dvidir=DIR dvi documentation [DOCDIR]
1841 --pdfdir=DIR pdf documentation [DOCDIR]
1842 --psdir=DIR ps documentation [DOCDIR]
1843_ACEOF
1844
1845 cat <<\_ACEOF
1846
cristy73bd4a52010-10-05 11:24:23 +00001847Program names:
1848 --program-prefix=PREFIX prepend PREFIX to installed program names
1849 --program-suffix=SUFFIX append SUFFIX to installed program names
1850 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1851
cristy3ed852e2009-09-05 21:47:34 +00001852X features:
1853 --x-includes=DIR X include files are in DIR
1854 --x-libraries=DIR X library files are in DIR
1855
1856System types:
1857 --build=BUILD configure for building on BUILD [guessed]
1858 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1859 --target=TARGET configure for building compilers for TARGET [HOST]
1860_ACEOF
1861fi
1862
1863if test -n "$ac_init_help"; then
1864 case $ac_init_help in
cristy29eb34e2011-10-16 00:46:08 +00001865 short | recursive ) echo "Configuration of ImageMagick 7.0.0-0:";;
cristy3ed852e2009-09-05 21:47:34 +00001866 esac
1867 cat <<\_ACEOF
1868
1869Optional Features:
1870 --disable-option-checking ignore unrecognized --enable/--with options
1871 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1872 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
cristyc0890a62012-07-19 00:18:20 +00001873 --enable-silent-rules less verbose build output (undo: "make V=1")
1874 --disable-silent-rules verbose build output (undo: "make V=0")
cristy187791c2015-05-03 22:17:00 +00001875 --enable-reproducible-build
1876 enable reproducible build
cristyc0890a62012-07-19 00:18:20 +00001877 --enable-dependency-tracking
1878 do not reject slow dependency extractors
1879 --disable-dependency-tracking
1880 speeds up one-time build
cristy9b86f202012-11-28 21:55:35 +00001881 --enable-ld-version-script
1882 enable linker version script (default is enabled
1883 when possible)
cristya3824692012-03-30 17:22:07 +00001884 --enable-bounds-checking
1885 enable run-time bounds-checking
cristy3ed852e2009-09-05 21:47:34 +00001886 --enable-osx-universal-binary
cristycd4c5312009-11-22 01:19:08 +00001887 build universal binary on OS X [[default=no]]
cristy3ed852e2009-09-05 21:47:34 +00001888 --disable-openmp do not use OpenMP
cristy48794642012-09-02 15:19:08 +00001889 --enable-opencl enable OpenCL support
cristy3ed852e2009-09-05 21:47:34 +00001890 --disable-largefile omit support for large files
cristy73bd4a52010-10-05 11:24:23 +00001891 --enable-shared[=PKGS] build shared libraries [default=yes]
1892 --enable-static[=PKGS] build static libraries [default=yes]
1893 --enable-fast-install[=PKGS]
1894 optimize for fast installation [default=yes]
1895 --disable-libtool-lock avoid locking (might break parallel builds)
cristy3ed852e2009-09-05 21:47:34 +00001896 --enable-delegate-build look for delegate libraries in build directory
1897 --disable-deprecated exclude deprecated methods in MagickCore and
cristy3a75f062012-09-08 23:29:40 +00001898 MagickWand APIs
cristy3ed852e2009-09-05 21:47:34 +00001899 --disable-installed Formally install ImageMagick under PREFIX
1900 --disable-cipher disable enciphering and deciphering image pixels
cristy6e3607c2011-09-13 13:59:17 +00001901 --enable-zero-configuration
1902 enable self-contained, embeddable,
cristy3ed852e2009-09-05 21:47:34 +00001903 zero-configuration ImageMagick
cristyf314dbd2012-11-15 13:35:28 +00001904 --enable-hdri accurately represent the wide range of intensity
cristy3ed852e2009-09-05 21:47:34 +00001905 levels found in real scenes
cristy3ed852e2009-09-05 21:47:34 +00001906 --disable-assert disable assert() statements in build
cristyc0890a62012-07-19 00:18:20 +00001907 --enable-maintainer-mode
1908 enable make rules and dependencies not useful (and
1909 sometimes confusing) to the casual installer
cristy944e51f2013-04-16 18:45:02 +00001910 --enable-hugepages enable 'huge pages' support
cristy3ed852e2009-09-05 21:47:34 +00001911 --enable-ccmalloc enable 'ccmalloc' memory debug support
1912 --enable-efence enable 'efence' memory debug support
1913 --enable-prof enable 'prof' profiling support
1914 --enable-gprof enable 'gprof' profiling support
1915 --enable-gcov enable 'gcov' profiling support
cristy71d8c202012-03-20 17:05:01 +00001916 --enable-legacy-support install legacy command-line utilities (default disabled)
cristya0b81c32010-01-22 02:54:33 +00001917 --disable-assert turn off assertions
cristydd17feb2014-03-05 02:06:32 +00001918 --disable-docs disable building of documentation
cristy3ed852e2009-09-05 21:47:34 +00001919
1920Optional Packages:
1921 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1922 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
cristy73bd4a52010-10-05 11:24:23 +00001923 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
cristy7247bba2012-02-05 16:37:27 +00001924 --with-dmalloc use dmalloc, as in http://www.dmalloc.com
cristya0459972013-11-03 18:09:35 +00001925 --with-gcc-arch=<arch> use architecture <arch> for gcc -march/-mtune,
1926 instead of guessing
cristy670aa3c2011-11-03 00:54:00 +00001927 --includearch-dir=DIR ARCH specific include directory
1928 --sharearch-dir=DIR ARCH specific config directory
cristy2ec87cc2013-02-18 17:46:50 +00001929 --with-pkgconfigdir=DIR Path to the pkgconfig directory [LIBDIR/pkgconfig]
cristy3ed852e2009-09-05 21:47:34 +00001930 --without-threads disable threads support
cristy99bd5232011-12-07 14:38:20 +00001931 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
cristy73bd4a52010-10-05 11:24:23 +00001932 both]
cristyda16f162011-02-19 23:52:17 +00001933 --with-sysroot=DIR Search for dependent libraries within DIR
1934 (or the compiler's sysroot if not specified).
cristy3ed852e2009-09-05 21:47:34 +00001935 --with-modules enable building dynamically loadable modules
1936 --with-method-prefix=PREFIX
1937 prefix MagickCore API methods
1938 --with-quantum-depth=DEPTH
1939 number of bits in a pixel quantum (default 16)
1940 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1941 memory)
1942 --with-frozenpaths freeze delegate paths
1943 --without-magick-plus-plus
1944 disable build/install of Magick++
cristy3a75f062012-09-08 23:29:40 +00001945 --with-package-release-name=NAME
1946 encode this name into the shared library
cristy3ed852e2009-09-05 21:47:34 +00001947 --with-perl enable build/install of PerlMagick
1948 --with-perl-options=OPTIONS
1949 options to pass on command-line when generating
cristyfc3d0222012-02-07 15:05:57 +00001950 PerlMagick build file
cristy3b0097d2014-11-04 15:34:47 +00001951 --with-jemalloc enable jemalloc memory allocation library support
cristy3ed852e2009-09-05 21:47:34 +00001952 --with-umem enable umem memory allocation library support
1953 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1954 --without-bzlib disable BZLIB support
cristyc7083c12009-10-14 03:16:55 +00001955 --with-x use the X Window System
cristy3ed852e2009-09-05 21:47:34 +00001956 --without-zlib disable ZLIB support
cristy5a3dc992014-12-05 19:50:04 +00001957 --with-apple-font-dir=DIR
1958 Apple font directory
cristy3ed852e2009-09-05 21:47:34 +00001959 --with-autotrace enable autotrace support
1960 --without-dps disable Display Postscript support
cristy430a7312010-01-21 20:44:04 +00001961 --with-dejavu-font-dir=DIR
1962 DejaVu font directory
cristy3ed852e2009-09-05 21:47:34 +00001963 --without-fftw disable FFTW support
1964 --without-fpx disable FlashPIX support
cristy853d9902014-08-21 18:50:43 +00001965 --without-djvu disable DjVu support
cristy3ed852e2009-09-05 21:47:34 +00001966 --without-fontconfig disable fontconfig support
cristy81beccd2011-10-03 18:17:24 +00001967 --without-freetype disable Freetype support
cristybdabdd62013-03-04 17:43:36 +00001968 --with-gslib enable Ghostscript library support
cristy3ed852e2009-09-05 21:47:34 +00001969 --with-fontpath=DIR prepend to default font search path
1970 --with-gs-font-dir=DIR Ghostscript font directory
cristybdabdd62013-03-04 17:43:36 +00001971 --with-gvc enable GVC support
cristy3ed852e2009-09-05 21:47:34 +00001972 --without-jbig disable JBIG support
1973 --without-jpeg disable JPEG support
cristy71203402010-06-18 13:12:03 +00001974 --without-lcms disable lcms (v1.1X) support
1975 --without-lcms2 disable lcms (v2.X) support
cristy99db3872014-01-01 15:11:34 +00001976 --without-openjp2 disable OpenJP2 support
cristyf0c78232010-03-15 12:53:40 +00001977 --without-lqr disable Liquid Rescale support
cristyfbb0ef02010-12-19 02:32:11 +00001978 --without-lzma disable LZMA support
cristy3ed852e2009-09-05 21:47:34 +00001979 --without-openexr disable OpenEXR support
cristy41cbe8a2011-10-27 01:35:18 +00001980 --without-pango disable PANGO support
cristy3ed852e2009-09-05 21:47:34 +00001981 --without-png disable PNG support
cristy51633f52013-04-23 14:03:19 +00001982 --with-rsvg enable RSVG support
cristy3ed852e2009-09-05 21:47:34 +00001983 --without-tiff disable TIFF support
cristyb1860752011-03-14 00:27:46 +00001984 --without-webp disable WEBP support
cristy3ed852e2009-09-05 21:47:34 +00001985 --with-windows-font-dir=DIR
cristy5a3dc992014-12-05 19:50:04 +00001986 Windows font directory
cristyde3fc5d2012-02-12 15:40:47 +00001987 --with-wmf enable WMF support
cristy3ed852e2009-09-05 21:47:34 +00001988 --without-xml disable XML support
1989
1990Some influential environment variables:
1991 CC C compiler command
1992 CFLAGS C compiler flags
1993 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1994 nonstandard directory <lib dir>
1995 LIBS libraries to pass to the linker, e.g. -l<library>
cristycd4c5312009-11-22 01:19:08 +00001996 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cristy3ed852e2009-09-05 21:47:34 +00001997 you have headers in a nonstandard directory <include dir>
cristya0b81c32010-01-22 02:54:33 +00001998 CPP C preprocessor
cristy3ed852e2009-09-05 21:47:34 +00001999 CXX C++ compiler command
2000 CXXFLAGS C++ compiler flags
cristy73bd4a52010-10-05 11:24:23 +00002001 PKG_CONFIG path to pkg-config utility
cristy146497a2015-05-17 22:46:16 +00002002 PKG_CONFIG_PATH
2003 directories to add to pkg-config's search path
2004 PKG_CONFIG_LIBDIR
2005 path overriding pkg-config's built-in search path
nicolas6237c462010-10-05 06:11:49 +00002006 CXXCPP C++ preprocessor
cristy73bd4a52010-10-05 11:24:23 +00002007 XMKMF Path to xmkmf, Makefile generator for X Window System
2008 AUTOTRACE_CFLAGS
2009 C compiler flags for AUTOTRACE, overriding pkg-config
2010 AUTOTRACE_LIBS
2011 linker flags for AUTOTRACE, overriding pkg-config
2012 FONTCONFIG_CFLAGS
2013 C compiler flags for FONTCONFIG, overriding pkg-config
2014 FONTCONFIG_LIBS
2015 linker flags for FONTCONFIG, overriding pkg-config
cristy03f187e2013-01-24 00:22:19 +00002016 FREETYPE_CFLAGS
2017 C compiler flags for FREETYPE, overriding pkg-config
2018 FREETYPE_LIBS
2019 linker flags for FREETYPE, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00002020 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
2021 GVC_LIBS linker flags for GVC, overriding pkg-config
cristy99db3872014-01-01 15:11:34 +00002022 LIBOPENJP2_CFLAGS
2023 C compiler flags for LIBOPENJP2, overriding pkg-config
2024 LIBOPENJP2_LIBS
2025 linker flags for LIBOPENJP2, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00002026 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
2027 LQR_LIBS linker flags for LQR, overriding pkg-config
cristyb94e5002011-11-14 13:20:10 +00002028 LZMA_CFLAGS C compiler flags for LZMA, overriding pkg-config
2029 LZMA_LIBS linker flags for LZMA, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00002030 OPENEXR_CFLAGS
2031 C compiler flags for OPENEXR, overriding pkg-config
2032 OPENEXR_LIBS
2033 linker flags for OPENEXR, overriding pkg-config
cristy41cbe8a2011-10-27 01:35:18 +00002034 PANGO_CFLAGS
2035 C compiler flags for PANGO, overriding pkg-config
2036 PANGO_LIBS linker flags for PANGO, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00002037 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
2038 RSVG_LIBS linker flags for RSVG, overriding pkg-config
2039 CAIRO_SVG_CFLAGS
2040 C compiler flags for CAIRO_SVG, overriding pkg-config
2041 CAIRO_SVG_LIBS
2042 linker flags for CAIRO_SVG, overriding pkg-config
cristy3ed852e2009-09-05 21:47:34 +00002043
2044Use these variables to override the choices made by `configure' or to help
2045it to find libraries and programs with nonstandard names/locations.
2046
2047Report bugs to <http://www.imagemagick.org>.
2048_ACEOF
2049ac_status=$?
2050fi
2051
2052if test "$ac_init_help" = "recursive"; then
2053 # If there are subdirs, report their specific --help.
2054 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2055 test -d "$ac_dir" ||
2056 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2057 continue
2058 ac_builddir=.
2059
2060case "$ac_dir" in
2061.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2062*)
2063 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2064 # A ".." for each directory in $ac_dir_suffix.
2065 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2066 case $ac_top_builddir_sub in
2067 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2068 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2069 esac ;;
2070esac
2071ac_abs_top_builddir=$ac_pwd
2072ac_abs_builddir=$ac_pwd$ac_dir_suffix
2073# for backward compatibility:
2074ac_top_builddir=$ac_top_build_prefix
2075
2076case $srcdir in
2077 .) # We are building in place.
2078 ac_srcdir=.
2079 ac_top_srcdir=$ac_top_builddir_sub
2080 ac_abs_top_srcdir=$ac_pwd ;;
2081 [\\/]* | ?:[\\/]* ) # Absolute name.
2082 ac_srcdir=$srcdir$ac_dir_suffix;
2083 ac_top_srcdir=$srcdir
2084 ac_abs_top_srcdir=$srcdir ;;
2085 *) # Relative name.
2086 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2087 ac_top_srcdir=$ac_top_build_prefix$srcdir
2088 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2089esac
2090ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2091
2092 cd "$ac_dir" || { ac_status=$?; continue; }
2093 # Check for guested configure.
2094 if test -f "$ac_srcdir/configure.gnu"; then
2095 echo &&
2096 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2097 elif test -f "$ac_srcdir/configure"; then
2098 echo &&
2099 $SHELL "$ac_srcdir/configure" --help=recursive
2100 else
2101 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2102 fi || ac_status=$?
2103 cd "$ac_pwd" || { ac_status=$?; break; }
2104 done
2105fi
2106
2107test -n "$ac_init_help" && exit $ac_status
2108if $ac_init_version; then
2109 cat <<\_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00002110ImageMagick configure 7.0.0-0
cristy14fefe52012-05-21 00:59:18 +00002111generated by GNU Autoconf 2.69
cristy3ed852e2009-09-05 21:47:34 +00002112
cristy14fefe52012-05-21 00:59:18 +00002113Copyright (C) 2012 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +00002114This configure script is free software; the Free Software Foundation
2115gives unlimited permission to copy, distribute and modify it.
2116_ACEOF
2117 exit
2118fi
cristy8b350f62009-11-15 23:12:43 +00002119
2120## ------------------------ ##
2121## Autoconf initialization. ##
2122## ------------------------ ##
2123
2124# ac_fn_c_try_compile LINENO
2125# --------------------------
2126# Try to compile conftest.$ac_ext, and return whether this succeeded.
2127ac_fn_c_try_compile ()
2128{
2129 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2130 rm -f conftest.$ac_objext
2131 if { { ac_try="$ac_compile"
2132case "(($ac_try" in
2133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2134 *) ac_try_echo=$ac_try;;
2135esac
2136eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2137$as_echo "$ac_try_echo"; } >&5
2138 (eval "$ac_compile") 2>conftest.err
2139 ac_status=$?
2140 if test -s conftest.err; then
2141 grep -v '^ *+' conftest.err >conftest.er1
2142 cat conftest.er1 >&5
2143 mv -f conftest.er1 conftest.err
2144 fi
2145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2146 test $ac_status = 0; } && {
2147 test -z "$ac_c_werror_flag" ||
2148 test ! -s conftest.err
2149 } && test -s conftest.$ac_objext; then :
2150 ac_retval=0
2151else
2152 $as_echo "$as_me: failed program was:" >&5
2153sed 's/^/| /' conftest.$ac_ext >&5
2154
2155 ac_retval=1
2156fi
cristyda16f162011-02-19 23:52:17 +00002157 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002158 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002159
2160} # ac_fn_c_try_compile
2161
cristy95646052009-11-28 23:05:30 +00002162# ac_fn_c_try_cpp LINENO
2163# ----------------------
2164# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2165ac_fn_c_try_cpp ()
2166{
2167 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2168 if { { ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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
cristyda16f162011-02-19 23:52:17 +00002183 test $ac_status = 0; } > conftest.i && {
cristy95646052009-11-28 23:05:30 +00002184 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2185 test ! -s conftest.err
2186 }; 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
cristy95646052009-11-28 23:05:30 +00002195 as_fn_set_status $ac_retval
2196
2197} # ac_fn_c_try_cpp
2198
cristy8b350f62009-11-15 23:12:43 +00002199# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2200# -------------------------------------------------------
2201# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2202# the include files in INCLUDES and setting the cache variable VAR
2203# accordingly.
2204ac_fn_c_check_header_mongrel ()
2205{
2206 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00002207 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2209$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002210if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002211 $as_echo_n "(cached) " >&6
2212fi
2213eval ac_res=\$$3
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2215$as_echo "$ac_res" >&6; }
2216else
2217 # Is the header compilable?
2218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2219$as_echo_n "checking $2 usability... " >&6; }
2220cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2221/* end confdefs.h. */
2222$4
2223#include <$2>
2224_ACEOF
2225if ac_fn_c_try_compile "$LINENO"; then :
2226 ac_header_compiler=yes
2227else
2228 ac_header_compiler=no
2229fi
2230rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2232$as_echo "$ac_header_compiler" >&6; }
2233
2234# Is the header present?
2235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2236$as_echo_n "checking $2 presence... " >&6; }
2237cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2238/* end confdefs.h. */
2239#include <$2>
2240_ACEOF
2241if ac_fn_c_try_cpp "$LINENO"; then :
2242 ac_header_preproc=yes
2243else
2244 ac_header_preproc=no
2245fi
cristyda16f162011-02-19 23:52:17 +00002246rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00002247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2248$as_echo "$ac_header_preproc" >&6; }
2249
2250# So? What about this header?
2251case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2252 yes:no: )
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2254$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2255 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2256$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2257 ;;
2258 no:yes:* )
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2260$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2261 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2262$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2264$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2265 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2266$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2268$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00002269( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00002270## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00002271## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00002272 ) | sed "s/^/$as_me: WARNING: /" >&2
2273 ;;
2274esac
2275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2276$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002277if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002278 $as_echo_n "(cached) " >&6
2279else
2280 eval "$3=\$ac_header_compiler"
2281fi
2282eval ac_res=\$$3
2283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2284$as_echo "$ac_res" >&6; }
2285fi
cristyda16f162011-02-19 23:52:17 +00002286 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002287
2288} # ac_fn_c_check_header_mongrel
2289
2290# ac_fn_c_try_run LINENO
2291# ----------------------
2292# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2293# that executables *can* be run.
2294ac_fn_c_try_run ()
2295{
2296 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2297 if { { ac_try="$ac_link"
2298case "(($ac_try" in
2299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2300 *) ac_try_echo=$ac_try;;
2301esac
2302eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2303$as_echo "$ac_try_echo"; } >&5
2304 (eval "$ac_link") 2>&5
2305 ac_status=$?
2306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2307 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2308 { { case "(($ac_try" in
2309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2310 *) ac_try_echo=$ac_try;;
2311esac
2312eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2313$as_echo "$ac_try_echo"; } >&5
2314 (eval "$ac_try") 2>&5
2315 ac_status=$?
2316 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2317 test $ac_status = 0; }; }; then :
2318 ac_retval=0
2319else
2320 $as_echo "$as_me: program exited with status $ac_status" >&5
2321 $as_echo "$as_me: failed program was:" >&5
2322sed 's/^/| /' conftest.$ac_ext >&5
2323
2324 ac_retval=$ac_status
2325fi
2326 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002327 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002328 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002329
2330} # ac_fn_c_try_run
2331
2332# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2333# -------------------------------------------------------
2334# Tests whether HEADER exists and can be compiled using the include files in
2335# INCLUDES, setting the cache variable VAR accordingly.
2336ac_fn_c_check_header_compile ()
2337{
2338 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2340$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002341if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002342 $as_echo_n "(cached) " >&6
2343else
2344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2345/* end confdefs.h. */
2346$4
2347#include <$2>
2348_ACEOF
2349if ac_fn_c_try_compile "$LINENO"; then :
2350 eval "$3=yes"
2351else
2352 eval "$3=no"
2353fi
2354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2355fi
2356eval ac_res=\$$3
2357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2358$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002359 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002360
2361} # ac_fn_c_check_header_compile
2362
cristya0b81c32010-01-22 02:54:33 +00002363# ac_fn_cxx_try_compile LINENO
2364# ----------------------------
2365# Try to compile conftest.$ac_ext, and return whether this succeeded.
2366ac_fn_cxx_try_compile ()
2367{
2368 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2369 rm -f conftest.$ac_objext
2370 if { { ac_try="$ac_compile"
2371case "(($ac_try" in
2372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2373 *) ac_try_echo=$ac_try;;
2374esac
2375eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2376$as_echo "$ac_try_echo"; } >&5
2377 (eval "$ac_compile") 2>conftest.err
2378 ac_status=$?
2379 if test -s conftest.err; then
2380 grep -v '^ *+' conftest.err >conftest.er1
2381 cat conftest.er1 >&5
2382 mv -f conftest.er1 conftest.err
2383 fi
2384 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2385 test $ac_status = 0; } && {
2386 test -z "$ac_cxx_werror_flag" ||
2387 test ! -s conftest.err
2388 } && test -s conftest.$ac_objext; then :
2389 ac_retval=0
2390else
2391 $as_echo "$as_me: failed program was:" >&5
2392sed 's/^/| /' conftest.$ac_ext >&5
2393
2394 ac_retval=1
2395fi
cristyda16f162011-02-19 23:52:17 +00002396 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristya0b81c32010-01-22 02:54:33 +00002397 as_fn_set_status $ac_retval
2398
2399} # ac_fn_cxx_try_compile
2400
cristyd95b7a52013-10-23 13:12:53 +00002401# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2402# --------------------------------------------
2403# Tries to find the compile-time value of EXPR in a program that includes
2404# INCLUDES, setting VAR accordingly. Returns whether the value could be
2405# computed
2406ac_fn_c_compute_int ()
2407{
2408 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2409 if test "$cross_compiling" = yes; then
2410 # Depending upon the size, compute the lo and hi bounds.
2411cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2412/* end confdefs.h. */
2413$4
2414int
2415main ()
2416{
2417static int test_array [1 - 2 * !(($2) >= 0)];
2418test_array [0] = 0;
2419return test_array [0];
2420
2421 ;
2422 return 0;
2423}
2424_ACEOF
2425if ac_fn_c_try_compile "$LINENO"; then :
2426 ac_lo=0 ac_mid=0
2427 while :; do
2428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2429/* end confdefs.h. */
2430$4
2431int
2432main ()
2433{
2434static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2435test_array [0] = 0;
2436return test_array [0];
2437
2438 ;
2439 return 0;
2440}
2441_ACEOF
2442if ac_fn_c_try_compile "$LINENO"; then :
2443 ac_hi=$ac_mid; break
2444else
2445 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2446 if test $ac_lo -le $ac_mid; then
2447 ac_lo= ac_hi=
2448 break
2449 fi
2450 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2451fi
2452rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2453 done
2454else
2455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2456/* end confdefs.h. */
2457$4
2458int
2459main ()
2460{
2461static int test_array [1 - 2 * !(($2) < 0)];
2462test_array [0] = 0;
2463return test_array [0];
2464
2465 ;
2466 return 0;
2467}
2468_ACEOF
2469if ac_fn_c_try_compile "$LINENO"; then :
2470 ac_hi=-1 ac_mid=-1
2471 while :; do
2472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2473/* end confdefs.h. */
2474$4
2475int
2476main ()
2477{
2478static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2479test_array [0] = 0;
2480return test_array [0];
2481
2482 ;
2483 return 0;
2484}
2485_ACEOF
2486if ac_fn_c_try_compile "$LINENO"; then :
2487 ac_lo=$ac_mid; break
2488else
2489 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2490 if test $ac_mid -le $ac_hi; then
2491 ac_lo= ac_hi=
2492 break
2493 fi
2494 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2495fi
2496rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2497 done
2498else
2499 ac_lo= ac_hi=
2500fi
2501rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2502fi
2503rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2504# Binary search between lo and hi bounds.
2505while test "x$ac_lo" != "x$ac_hi"; do
2506 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2508/* end confdefs.h. */
2509$4
2510int
2511main ()
2512{
2513static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2514test_array [0] = 0;
2515return test_array [0];
2516
2517 ;
2518 return 0;
2519}
2520_ACEOF
2521if ac_fn_c_try_compile "$LINENO"; then :
2522 ac_hi=$ac_mid
2523else
2524 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2525fi
2526rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2527done
2528case $ac_lo in #((
2529?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2530'') ac_retval=1 ;;
2531esac
2532 else
2533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2534/* end confdefs.h. */
2535$4
2536static long int longval () { return $2; }
2537static unsigned long int ulongval () { return $2; }
2538#include <stdio.h>
2539#include <stdlib.h>
2540int
2541main ()
2542{
2543
2544 FILE *f = fopen ("conftest.val", "w");
2545 if (! f)
2546 return 1;
2547 if (($2) < 0)
2548 {
2549 long int i = longval ();
2550 if (i != ($2))
2551 return 1;
2552 fprintf (f, "%ld", i);
2553 }
2554 else
2555 {
2556 unsigned long int i = ulongval ();
2557 if (i != ($2))
2558 return 1;
2559 fprintf (f, "%lu", i);
2560 }
2561 /* Do not output a trailing newline, as this causes \r\n confusion
2562 on some platforms. */
2563 return ferror (f) || fclose (f) != 0;
2564
2565 ;
2566 return 0;
2567}
2568_ACEOF
2569if ac_fn_c_try_run "$LINENO"; then :
2570 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2571else
2572 ac_retval=1
2573fi
2574rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2575 conftest.$ac_objext conftest.beam conftest.$ac_ext
2576rm -f conftest.val
2577
2578 fi
2579 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2580 as_fn_set_status $ac_retval
2581
2582} # ac_fn_c_compute_int
2583
cristy8b350f62009-11-15 23:12:43 +00002584# ac_fn_c_try_link LINENO
2585# -----------------------
2586# Try to link conftest.$ac_ext, and return whether this succeeded.
2587ac_fn_c_try_link ()
2588{
2589 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2590 rm -f conftest.$ac_objext conftest$ac_exeext
2591 if { { ac_try="$ac_link"
2592case "(($ac_try" in
2593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2594 *) ac_try_echo=$ac_try;;
2595esac
2596eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2597$as_echo "$ac_try_echo"; } >&5
2598 (eval "$ac_link") 2>conftest.err
2599 ac_status=$?
2600 if test -s conftest.err; then
2601 grep -v '^ *+' conftest.err >conftest.er1
2602 cat conftest.er1 >&5
2603 mv -f conftest.er1 conftest.err
2604 fi
2605 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2606 test $ac_status = 0; } && {
2607 test -z "$ac_c_werror_flag" ||
2608 test ! -s conftest.err
2609 } && test -s conftest$ac_exeext && {
2610 test "$cross_compiling" = yes ||
cristy14fefe52012-05-21 00:59:18 +00002611 test -x conftest$ac_exeext
cristy8b350f62009-11-15 23:12:43 +00002612 }; then :
2613 ac_retval=0
2614else
2615 $as_echo "$as_me: failed program was:" >&5
2616sed 's/^/| /' conftest.$ac_ext >&5
2617
2618 ac_retval=1
2619fi
2620 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2621 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2622 # interfere with the next link command; also delete a directory that is
2623 # left behind by Apple's compiler. We do this before executing the actions.
2624 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002625 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002626 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002627
2628} # ac_fn_c_try_link
2629
cristy73bd4a52010-10-05 11:24:23 +00002630# ac_fn_c_check_func LINENO FUNC VAR
2631# ----------------------------------
2632# Tests whether FUNC exists, setting the cache variable VAR accordingly
2633ac_fn_c_check_func ()
2634{
2635 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2637$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002638if eval \${$3+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00002639 $as_echo_n "(cached) " >&6
2640else
2641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2642/* end confdefs.h. */
2643/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2644 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2645#define $2 innocuous_$2
2646
2647/* System header to define __stub macros and hopefully few prototypes,
2648 which can conflict with char $2 (); below.
2649 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2650 <limits.h> exists even on freestanding compilers. */
2651
2652#ifdef __STDC__
2653# include <limits.h>
2654#else
2655# include <assert.h>
2656#endif
2657
2658#undef $2
2659
2660/* Override any GCC internal prototype to avoid an error.
2661 Use char because int might match the return type of a GCC
2662 builtin and then its argument prototype would still apply. */
2663#ifdef __cplusplus
2664extern "C"
2665#endif
2666char $2 ();
2667/* The GNU C library defines this for functions which it implements
2668 to always fail with ENOSYS. Some functions are actually named
2669 something starting with __ and the normal name is an alias. */
2670#if defined __stub_$2 || defined __stub___$2
2671choke me
2672#endif
2673
2674int
2675main ()
2676{
2677return $2 ();
2678 ;
2679 return 0;
2680}
2681_ACEOF
2682if ac_fn_c_try_link "$LINENO"; then :
2683 eval "$3=yes"
2684else
2685 eval "$3=no"
2686fi
2687rm -f core conftest.err conftest.$ac_objext \
2688 conftest$ac_exeext conftest.$ac_ext
2689fi
2690eval ac_res=\$$3
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2692$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002693 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002694
2695} # ac_fn_c_check_func
2696
2697# ac_fn_cxx_try_cpp LINENO
2698# ------------------------
2699# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2700ac_fn_cxx_try_cpp ()
2701{
2702 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2703 if { { ac_try="$ac_cpp conftest.$ac_ext"
2704case "(($ac_try" in
2705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2706 *) ac_try_echo=$ac_try;;
2707esac
2708eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2709$as_echo "$ac_try_echo"; } >&5
2710 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2711 ac_status=$?
2712 if test -s conftest.err; then
2713 grep -v '^ *+' conftest.err >conftest.er1
2714 cat conftest.er1 >&5
2715 mv -f conftest.er1 conftest.err
2716 fi
2717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002718 test $ac_status = 0; } > conftest.i && {
cristy73bd4a52010-10-05 11:24:23 +00002719 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2720 test ! -s conftest.err
2721 }; then :
2722 ac_retval=0
2723else
2724 $as_echo "$as_me: failed program was:" >&5
2725sed 's/^/| /' conftest.$ac_ext >&5
2726
2727 ac_retval=1
2728fi
cristyda16f162011-02-19 23:52:17 +00002729 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002730 as_fn_set_status $ac_retval
2731
2732} # ac_fn_cxx_try_cpp
2733
2734# ac_fn_cxx_try_link LINENO
2735# -------------------------
2736# Try to link conftest.$ac_ext, and return whether this succeeded.
2737ac_fn_cxx_try_link ()
2738{
2739 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2740 rm -f conftest.$ac_objext conftest$ac_exeext
2741 if { { ac_try="$ac_link"
2742case "(($ac_try" in
2743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2744 *) ac_try_echo=$ac_try;;
2745esac
2746eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2747$as_echo "$ac_try_echo"; } >&5
2748 (eval "$ac_link") 2>conftest.err
2749 ac_status=$?
2750 if test -s conftest.err; then
2751 grep -v '^ *+' conftest.err >conftest.er1
2752 cat conftest.er1 >&5
2753 mv -f conftest.er1 conftest.err
2754 fi
2755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2756 test $ac_status = 0; } && {
2757 test -z "$ac_cxx_werror_flag" ||
2758 test ! -s conftest.err
2759 } && test -s conftest$ac_exeext && {
2760 test "$cross_compiling" = yes ||
cristy14fefe52012-05-21 00:59:18 +00002761 test -x conftest$ac_exeext
cristy73bd4a52010-10-05 11:24:23 +00002762 }; then :
2763 ac_retval=0
2764else
2765 $as_echo "$as_me: failed program was:" >&5
2766sed 's/^/| /' conftest.$ac_ext >&5
2767
2768 ac_retval=1
2769fi
2770 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2771 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2772 # interfere with the next link command; also delete a directory that is
2773 # left behind by Apple's compiler. We do this before executing the actions.
2774 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002775 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002776 as_fn_set_status $ac_retval
2777
2778} # ac_fn_cxx_try_link
2779
cristy8b350f62009-11-15 23:12:43 +00002780# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2781# -------------------------------------------
2782# Tests whether TYPE exists after having included INCLUDES, setting cache
2783# variable VAR accordingly.
2784ac_fn_c_check_type ()
2785{
2786 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2788$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002789if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002790 $as_echo_n "(cached) " >&6
2791else
2792 eval "$3=no"
2793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2794/* end confdefs.h. */
2795$4
2796int
2797main ()
2798{
2799if (sizeof ($2))
2800 return 0;
2801 ;
2802 return 0;
2803}
2804_ACEOF
2805if ac_fn_c_try_compile "$LINENO"; then :
2806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2807/* end confdefs.h. */
2808$4
2809int
2810main ()
2811{
2812if (sizeof (($2)))
2813 return 0;
2814 ;
2815 return 0;
2816}
2817_ACEOF
2818if ac_fn_c_try_compile "$LINENO"; then :
2819
2820else
2821 eval "$3=yes"
2822fi
2823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2824fi
2825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2826fi
2827eval ac_res=\$$3
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2829$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002830 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002831
2832} # ac_fn_c_check_type
2833
cristy92703d82010-04-26 00:18:18 +00002834# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2835# ----------------------------------------------------
2836# Tries to find if the field MEMBER exists in type AGGR, after including
2837# INCLUDES, setting cache variable VAR accordingly.
2838ac_fn_c_check_member ()
2839{
2840 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2842$as_echo_n "checking for $2.$3... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002843if eval \${$4+:} false; then :
cristy92703d82010-04-26 00:18:18 +00002844 $as_echo_n "(cached) " >&6
2845else
2846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2847/* end confdefs.h. */
2848$5
2849int
2850main ()
2851{
2852static $2 ac_aggr;
2853if (ac_aggr.$3)
2854return 0;
2855 ;
2856 return 0;
2857}
2858_ACEOF
2859if ac_fn_c_try_compile "$LINENO"; then :
2860 eval "$4=yes"
2861else
2862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2863/* end confdefs.h. */
2864$5
2865int
2866main ()
2867{
2868static $2 ac_aggr;
2869if (sizeof ac_aggr.$3)
2870return 0;
2871 ;
2872 return 0;
2873}
2874_ACEOF
2875if ac_fn_c_try_compile "$LINENO"; then :
2876 eval "$4=yes"
2877else
2878 eval "$4=no"
2879fi
2880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2881fi
2882rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2883fi
2884eval ac_res=\$$4
2885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2886$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002887 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy92703d82010-04-26 00:18:18 +00002888
2889} # ac_fn_c_check_member
2890
cristy5eef09f2012-10-16 12:08:28 +00002891# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2892# ---------------------------------------------
2893# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2894# accordingly.
2895ac_fn_c_check_decl ()
2896{
2897 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2898 as_decl_name=`echo $2|sed 's/ *(.*//'`
2899 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2901$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2902if eval \${$3+:} false; then :
2903 $as_echo_n "(cached) " >&6
2904else
2905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2906/* end confdefs.h. */
2907$4
2908int
2909main ()
2910{
2911#ifndef $as_decl_name
2912#ifdef __cplusplus
2913 (void) $as_decl_use;
2914#else
2915 (void) $as_decl_name;
2916#endif
2917#endif
2918
2919 ;
2920 return 0;
2921}
2922_ACEOF
2923if ac_fn_c_try_compile "$LINENO"; then :
2924 eval "$3=yes"
2925else
2926 eval "$3=no"
2927fi
2928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2929fi
2930eval ac_res=\$$3
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2932$as_echo "$ac_res" >&6; }
2933 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2934
2935} # ac_fn_c_check_decl
2936
cristy501c8042011-05-26 17:46:28 +00002937# ac_fn_c_find_intX_t LINENO BITS VAR
2938# -----------------------------------
2939# Finds a signed integer type with width BITS, setting cache variable VAR
2940# accordingly.
2941ac_fn_c_find_intX_t ()
2942{
2943 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2945$as_echo_n "checking for int$2_t... " >&6; }
2946if eval \${$3+:} false; then :
2947 $as_echo_n "(cached) " >&6
2948else
2949 eval "$3=no"
2950 # Order is important - never check a type that is potentially smaller
2951 # than half of the expected target width.
2952 for ac_type in int$2_t 'int' 'long int' \
2953 'long long int' 'short int' 'signed char'; do
2954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2955/* end confdefs.h. */
2956$ac_includes_default
2957 enum { N = $2 / 2 - 1 };
2958int
2959main ()
2960{
2961static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
cristy14fefe52012-05-21 00:59:18 +00002962test_array [0] = 0;
2963return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002964
2965 ;
2966 return 0;
2967}
2968_ACEOF
2969if ac_fn_c_try_compile "$LINENO"; then :
2970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2971/* end confdefs.h. */
2972$ac_includes_default
2973 enum { N = $2 / 2 - 1 };
2974int
2975main ()
2976{
2977static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2978 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
cristy14fefe52012-05-21 00:59:18 +00002979test_array [0] = 0;
2980return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002981
2982 ;
2983 return 0;
2984}
2985_ACEOF
2986if ac_fn_c_try_compile "$LINENO"; then :
2987
2988else
2989 case $ac_type in #(
2990 int$2_t) :
2991 eval "$3=yes" ;; #(
2992 *) :
2993 eval "$3=\$ac_type" ;;
2994esac
2995fi
2996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2997fi
2998rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2999 if eval test \"x\$"$3"\" = x"no"; then :
3000
3001else
3002 break
3003fi
3004 done
3005fi
3006eval ac_res=\$$3
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3008$as_echo "$ac_res" >&6; }
3009 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3010
3011} # ac_fn_c_find_intX_t
3012
3013# ac_fn_c_find_uintX_t LINENO BITS VAR
3014# ------------------------------------
3015# Finds an unsigned integer type with width BITS, setting cache variable VAR
3016# accordingly.
3017ac_fn_c_find_uintX_t ()
3018{
3019 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
3021$as_echo_n "checking for uint$2_t... " >&6; }
3022if eval \${$3+:} false; then :
3023 $as_echo_n "(cached) " >&6
3024else
3025 eval "$3=no"
3026 # Order is important - never check a type that is potentially smaller
3027 # than half of the expected target width.
3028 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
3029 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
3030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3031/* end confdefs.h. */
3032$ac_includes_default
3033int
3034main ()
3035{
3036static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
cristy14fefe52012-05-21 00:59:18 +00003037test_array [0] = 0;
3038return test_array [0];
cristy501c8042011-05-26 17:46:28 +00003039
3040 ;
3041 return 0;
3042}
3043_ACEOF
3044if ac_fn_c_try_compile "$LINENO"; then :
3045 case $ac_type in #(
3046 uint$2_t) :
3047 eval "$3=yes" ;; #(
3048 *) :
3049 eval "$3=\$ac_type" ;;
3050esac
3051fi
3052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3053 if eval test \"x\$"$3"\" = x"no"; then :
3054
3055else
3056 break
3057fi
3058 done
3059fi
3060eval ac_res=\$$3
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3062$as_echo "$ac_res" >&6; }
3063 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3064
3065} # ac_fn_c_find_uintX_t
3066
cristy8b350f62009-11-15 23:12:43 +00003067# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
3068# ---------------------------------------------------------
3069# Tests whether HEADER exists, giving a warning if it cannot be compiled using
3070# the include files in INCLUDES and setting the cache variable VAR
3071# accordingly.
3072ac_fn_cxx_check_header_mongrel ()
3073{
3074 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00003075 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3077$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003078if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003079 $as_echo_n "(cached) " >&6
3080fi
3081eval ac_res=\$$3
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3083$as_echo "$ac_res" >&6; }
3084else
3085 # Is the header compilable?
3086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
3087$as_echo_n "checking $2 usability... " >&6; }
3088cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3089/* end confdefs.h. */
3090$4
3091#include <$2>
3092_ACEOF
3093if ac_fn_cxx_try_compile "$LINENO"; then :
3094 ac_header_compiler=yes
3095else
3096 ac_header_compiler=no
3097fi
3098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
3100$as_echo "$ac_header_compiler" >&6; }
3101
3102# Is the header present?
3103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
3104$as_echo_n "checking $2 presence... " >&6; }
3105cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3106/* end confdefs.h. */
3107#include <$2>
3108_ACEOF
3109if ac_fn_cxx_try_cpp "$LINENO"; then :
3110 ac_header_preproc=yes
3111else
3112 ac_header_preproc=no
3113fi
cristyda16f162011-02-19 23:52:17 +00003114rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00003115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
3116$as_echo "$ac_header_preproc" >&6; }
3117
3118# So? What about this header?
3119case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
3120 yes:no: )
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
3122$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3124$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3125 ;;
3126 no:yes:* )
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
3128$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
3130$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
3132$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
3134$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3136$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003137( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00003138## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00003139## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00003140 ) | sed "s/^/$as_me: WARNING: /" >&2
3141 ;;
3142esac
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3144$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003145if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003146 $as_echo_n "(cached) " >&6
3147else
3148 eval "$3=\$ac_header_compiler"
3149fi
3150eval ac_res=\$$3
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3152$as_echo "$ac_res" >&6; }
3153fi
cristyda16f162011-02-19 23:52:17 +00003154 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00003155
3156} # ac_fn_cxx_check_header_mongrel
cristy3ed852e2009-09-05 21:47:34 +00003157cat >config.log <<_ACEOF
3158This file contains any messages produced by compilers while
3159running configure, to aid debugging if configure makes a mistake.
3160
cristy29eb34e2011-10-16 00:46:08 +00003161It was created by ImageMagick $as_me 7.0.0-0, which was
cristy14fefe52012-05-21 00:59:18 +00003162generated by GNU Autoconf 2.69. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +00003163
3164 $ $0 $@
3165
3166_ACEOF
3167exec 5>>config.log
3168{
3169cat <<_ASUNAME
3170## --------- ##
3171## Platform. ##
3172## --------- ##
3173
3174hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3175uname -m = `(uname -m) 2>/dev/null || echo unknown`
3176uname -r = `(uname -r) 2>/dev/null || echo unknown`
3177uname -s = `(uname -s) 2>/dev/null || echo unknown`
3178uname -v = `(uname -v) 2>/dev/null || echo unknown`
3179
3180/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3181/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3182
3183/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3184/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3185/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3186/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3187/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3188/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3189/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3190
3191_ASUNAME
3192
3193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3194for as_dir in $PATH
3195do
3196 IFS=$as_save_IFS
3197 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003198 $as_echo "PATH: $as_dir"
3199 done
cristy3ed852e2009-09-05 21:47:34 +00003200IFS=$as_save_IFS
3201
3202} >&5
3203
3204cat >&5 <<_ACEOF
3205
3206
3207## ----------- ##
3208## Core tests. ##
3209## ----------- ##
3210
3211_ACEOF
3212
3213
3214# Keep a trace of the command line.
3215# Strip out --no-create and --no-recursion so they do not pile up.
3216# Strip out --silent because we don't want to record it for future runs.
3217# Also quote any args containing shell meta-characters.
3218# Make two passes to allow for proper duplicate-argument suppression.
3219ac_configure_args=
3220ac_configure_args0=
3221ac_configure_args1=
3222ac_must_keep_next=false
3223for ac_pass in 1 2
3224do
3225 for ac_arg
3226 do
3227 case $ac_arg in
3228 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3229 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3230 | -silent | --silent | --silen | --sile | --sil)
3231 continue ;;
3232 *\'*)
3233 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3234 esac
3235 case $ac_pass in
cristy8b350f62009-11-15 23:12:43 +00003236 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003237 2)
cristy8b350f62009-11-15 23:12:43 +00003238 as_fn_append ac_configure_args1 " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003239 if test $ac_must_keep_next = true; then
3240 ac_must_keep_next=false # Got value, back to normal.
3241 else
3242 case $ac_arg in
3243 *=* | --config-cache | -C | -disable-* | --disable-* \
3244 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3245 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3246 | -with-* | --with-* | -without-* | --without-* | --x)
3247 case "$ac_configure_args0 " in
3248 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3249 esac
3250 ;;
3251 -* ) ac_must_keep_next=true ;;
3252 esac
3253 fi
cristy8b350f62009-11-15 23:12:43 +00003254 as_fn_append ac_configure_args " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003255 ;;
3256 esac
3257 done
3258done
cristy8b350f62009-11-15 23:12:43 +00003259{ ac_configure_args0=; unset ac_configure_args0;}
3260{ ac_configure_args1=; unset ac_configure_args1;}
cristy3ed852e2009-09-05 21:47:34 +00003261
3262# When interrupted or exit'd, cleanup temporary files, and complete
3263# config.log. We remove comments because anyway the quotes in there
3264# would cause problems or look ugly.
3265# WARNING: Use '\'' to represent an apostrophe within the trap.
3266# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3267trap 'exit_status=$?
3268 # Save into config.log some information that might help in debugging.
3269 {
3270 echo
3271
cristy98dddb52010-11-04 00:30:15 +00003272 $as_echo "## ---------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003273## Cache variables. ##
cristy98dddb52010-11-04 00:30:15 +00003274## ---------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003275 echo
3276 # The following way of writing the cache mishandles newlines in values,
3277(
3278 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3279 eval ac_val=\$$ac_var
3280 case $ac_val in #(
3281 *${as_nl}*)
3282 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +00003283 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +00003284$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3285 esac
3286 case $ac_var in #(
3287 _ | IFS | as_nl) ;; #(
3288 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +00003289 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +00003290 esac ;;
3291 esac
3292 done
3293 (set) 2>&1 |
3294 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3295 *${as_nl}ac_space=\ *)
3296 sed -n \
3297 "s/'\''/'\''\\\\'\'''\''/g;
3298 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3299 ;; #(
3300 *)
3301 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3302 ;;
3303 esac |
3304 sort
3305)
3306 echo
3307
cristy98dddb52010-11-04 00:30:15 +00003308 $as_echo "## ----------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003309## Output variables. ##
cristy98dddb52010-11-04 00:30:15 +00003310## ----------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003311 echo
3312 for ac_var in $ac_subst_vars
3313 do
3314 eval ac_val=\$$ac_var
3315 case $ac_val in
3316 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3317 esac
3318 $as_echo "$ac_var='\''$ac_val'\''"
3319 done | sort
3320 echo
3321
3322 if test -n "$ac_subst_files"; then
cristy98dddb52010-11-04 00:30:15 +00003323 $as_echo "## ------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003324## File substitutions. ##
cristy98dddb52010-11-04 00:30:15 +00003325## ------------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003326 echo
3327 for ac_var in $ac_subst_files
3328 do
3329 eval ac_val=\$$ac_var
3330 case $ac_val in
3331 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3332 esac
3333 $as_echo "$ac_var='\''$ac_val'\''"
3334 done | sort
3335 echo
3336 fi
3337
3338 if test -s confdefs.h; then
cristy98dddb52010-11-04 00:30:15 +00003339 $as_echo "## ----------- ##
cristy3ed852e2009-09-05 21:47:34 +00003340## confdefs.h. ##
cristy98dddb52010-11-04 00:30:15 +00003341## ----------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003342 echo
3343 cat confdefs.h
3344 echo
3345 fi
3346 test "$ac_signal" != 0 &&
3347 $as_echo "$as_me: caught signal $ac_signal"
3348 $as_echo "$as_me: exit $exit_status"
3349 } >&5
3350 rm -f core *.core core.conftest.* &&
3351 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3352 exit $exit_status
3353' 0
3354for ac_signal in 1 2 13 15; do
cristy8b350f62009-11-15 23:12:43 +00003355 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cristy3ed852e2009-09-05 21:47:34 +00003356done
3357ac_signal=0
3358
3359# confdefs.h avoids OS command line length limits that DEFS can exceed.
3360rm -f -r conftest* confdefs.h
3361
cristy8b350f62009-11-15 23:12:43 +00003362$as_echo "/* confdefs.h */" > confdefs.h
3363
cristy3ed852e2009-09-05 21:47:34 +00003364# Predefined preprocessor variables.
3365
3366cat >>confdefs.h <<_ACEOF
3367#define PACKAGE_NAME "$PACKAGE_NAME"
3368_ACEOF
3369
cristy3ed852e2009-09-05 21:47:34 +00003370cat >>confdefs.h <<_ACEOF
3371#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3372_ACEOF
3373
cristy3ed852e2009-09-05 21:47:34 +00003374cat >>confdefs.h <<_ACEOF
3375#define PACKAGE_VERSION "$PACKAGE_VERSION"
3376_ACEOF
3377
cristy3ed852e2009-09-05 21:47:34 +00003378cat >>confdefs.h <<_ACEOF
3379#define PACKAGE_STRING "$PACKAGE_STRING"
3380_ACEOF
3381
cristy3ed852e2009-09-05 21:47:34 +00003382cat >>confdefs.h <<_ACEOF
3383#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3384_ACEOF
3385
cristy8b350f62009-11-15 23:12:43 +00003386cat >>confdefs.h <<_ACEOF
3387#define PACKAGE_URL "$PACKAGE_URL"
3388_ACEOF
3389
cristy3ed852e2009-09-05 21:47:34 +00003390
3391# Let the site file select an alternate cache file if it wants to.
3392# Prefer an explicitly selected file to automatically selected ones.
3393ac_site_file1=NONE
3394ac_site_file2=NONE
3395if test -n "$CONFIG_SITE"; then
cristy98dddb52010-11-04 00:30:15 +00003396 # We do not want a PATH search for config.site.
3397 case $CONFIG_SITE in #((
3398 -*) ac_site_file1=./$CONFIG_SITE;;
3399 */*) ac_site_file1=$CONFIG_SITE;;
3400 *) ac_site_file1=./$CONFIG_SITE;;
3401 esac
cristy3ed852e2009-09-05 21:47:34 +00003402elif test "x$prefix" != xNONE; then
3403 ac_site_file1=$prefix/share/config.site
3404 ac_site_file2=$prefix/etc/config.site
3405else
3406 ac_site_file1=$ac_default_prefix/share/config.site
3407 ac_site_file2=$ac_default_prefix/etc/config.site
3408fi
3409for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3410do
3411 test "x$ac_site_file" = xNONE && continue
cristycd4c5312009-11-22 01:19:08 +00003412 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cristy8b350f62009-11-15 23:12:43 +00003413 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003414$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3415 sed 's/^/| /' "$ac_site_file" >&5
cristy98dddb52010-11-04 00:30:15 +00003416 . "$ac_site_file" \
3417 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3418$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3419as_fn_error $? "failed to load site script $ac_site_file
3420See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00003421 fi
3422done
3423
3424if test -r "$cache_file"; then
cristycd4c5312009-11-22 01:19:08 +00003425 # Some versions of bash will fail to source /dev/null (special files
3426 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3427 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cristy8b350f62009-11-15 23:12:43 +00003428 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003429$as_echo "$as_me: loading cache $cache_file" >&6;}
3430 case $cache_file in
3431 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3432 *) . "./$cache_file";;
3433 esac
3434 fi
3435else
cristy8b350f62009-11-15 23:12:43 +00003436 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003437$as_echo "$as_me: creating cache $cache_file" >&6;}
3438 >$cache_file
3439fi
3440
cristycd4c5312009-11-22 01:19:08 +00003441as_fn_append ac_header_list " stdlib.h"
3442as_fn_append ac_header_list " unistd.h"
3443as_fn_append ac_header_list " sys/param.h"
cristy3ed852e2009-09-05 21:47:34 +00003444# Check that the precious variables saved in the cache have kept the same
3445# value.
3446ac_cache_corrupted=false
3447for ac_var in $ac_precious_vars; do
3448 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3449 eval ac_new_set=\$ac_env_${ac_var}_set
3450 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3451 eval ac_new_val=\$ac_env_${ac_var}_value
3452 case $ac_old_set,$ac_new_set in
3453 set,)
cristy8b350f62009-11-15 23:12:43 +00003454 { $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 +00003455$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3456 ac_cache_corrupted=: ;;
3457 ,set)
cristy8b350f62009-11-15 23:12:43 +00003458 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003459$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3460 ac_cache_corrupted=: ;;
3461 ,);;
3462 *)
3463 if test "x$ac_old_val" != "x$ac_new_val"; then
3464 # differences in whitespace do not lead to failure.
3465 ac_old_val_w=`echo x $ac_old_val`
3466 ac_new_val_w=`echo x $ac_new_val`
3467 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cristy8b350f62009-11-15 23:12:43 +00003468 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003469$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3470 ac_cache_corrupted=:
3471 else
cristy8b350f62009-11-15 23:12:43 +00003472 { $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 +00003473$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3474 eval $ac_var=\$ac_old_val
3475 fi
cristy8b350f62009-11-15 23:12:43 +00003476 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003477$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003478 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003479$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3480 fi;;
3481 esac
3482 # Pass precious variables to config.status.
3483 if test "$ac_new_set" = set; then
3484 case $ac_new_val in
3485 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3486 *) ac_arg=$ac_var=$ac_new_val ;;
3487 esac
3488 case " $ac_configure_args " in
3489 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cristy8b350f62009-11-15 23:12:43 +00003490 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003491 esac
3492 fi
3493done
3494if $ac_cache_corrupted; then
cristy8b350f62009-11-15 23:12:43 +00003495 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00003496$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003497 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003498$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003499 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003500fi
cristy8b350f62009-11-15 23:12:43 +00003501## -------------------- ##
3502## Main body of script. ##
3503## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003504
3505ac_ext=c
3506ac_cpp='$CPP $CPPFLAGS'
3507ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3508ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3509ac_compiler_gnu=$ac_cv_c_compiler_gnu
3510
3511
3512
3513ac_aux_dir=
3514for ac_dir in config "$srcdir"/config; do
cristy98dddb52010-11-04 00:30:15 +00003515 if test -f "$ac_dir/install-sh"; then
3516 ac_aux_dir=$ac_dir
3517 ac_install_sh="$ac_aux_dir/install-sh -c"
3518 break
3519 elif test -f "$ac_dir/install.sh"; then
3520 ac_aux_dir=$ac_dir
3521 ac_install_sh="$ac_aux_dir/install.sh -c"
3522 break
3523 elif test -f "$ac_dir/shtool"; then
3524 ac_aux_dir=$ac_dir
3525 ac_install_sh="$ac_aux_dir/shtool install -c"
3526 break
3527 fi
cristy3ed852e2009-09-05 21:47:34 +00003528done
3529if test -z "$ac_aux_dir"; then
cristy98dddb52010-11-04 00:30:15 +00003530 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003531fi
3532
3533# These three variables are undocumented and unsupported,
3534# and are intended to be withdrawn in a future Autoconf release.
3535# They can cause serious problems if a builder's source tree is in a directory
3536# whose full name contains unusual characters.
3537ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3538ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3539ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3540
3541
3542
3543
3544ac_config_headers="$ac_config_headers config/config.h"
3545
cristy24fc1fe2010-10-23 21:13:01 +00003546
cristy01ff9f32012-12-01 18:15:29 +00003547ac_config_commands="$ac_config_commands MagickCore/magick-baseconfig.h"
cristy73bd4a52010-10-05 11:24:23 +00003548
cristy3ed852e2009-09-05 21:47:34 +00003549# Make sure we can run config.sub.
3550$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cristy98dddb52010-11-04 00:30:15 +00003551 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003552
cristy8b350f62009-11-15 23:12:43 +00003553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003554$as_echo_n "checking build system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003555if ${ac_cv_build+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003556 $as_echo_n "(cached) " >&6
3557else
3558 ac_build_alias=$build_alias
3559test "x$ac_build_alias" = x &&
3560 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3561test "x$ac_build_alias" = x &&
cristy98dddb52010-11-04 00:30:15 +00003562 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003563ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003564 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003565
3566fi
cristy8b350f62009-11-15 23:12:43 +00003567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003568$as_echo "$ac_cv_build" >&6; }
3569case $ac_cv_build in
3570*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003571*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003572esac
3573build=$ac_cv_build
3574ac_save_IFS=$IFS; IFS='-'
3575set x $ac_cv_build
3576shift
3577build_cpu=$1
3578build_vendor=$2
3579shift; shift
3580# Remember, the first character of IFS is used to create $*,
3581# except with old shells:
3582build_os=$*
3583IFS=$ac_save_IFS
3584case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3585
3586
cristy8b350f62009-11-15 23:12:43 +00003587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003588$as_echo_n "checking host system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003589if ${ac_cv_host+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003590 $as_echo_n "(cached) " >&6
3591else
3592 if test "x$host_alias" = x; then
3593 ac_cv_host=$ac_cv_build
3594else
3595 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003596 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003597fi
3598
3599fi
cristy8b350f62009-11-15 23:12:43 +00003600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
cristy3ed852e2009-09-05 21:47:34 +00003601$as_echo "$ac_cv_host" >&6; }
3602case $ac_cv_host in
3603*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003604*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003605esac
3606host=$ac_cv_host
3607ac_save_IFS=$IFS; IFS='-'
3608set x $ac_cv_host
3609shift
3610host_cpu=$1
3611host_vendor=$2
3612shift; shift
3613# Remember, the first character of IFS is used to create $*,
3614# except with old shells:
3615host_os=$*
3616IFS=$ac_save_IFS
3617case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3618
3619
cristy8b350f62009-11-15 23:12:43 +00003620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003621$as_echo_n "checking target system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003622if ${ac_cv_target+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003623 $as_echo_n "(cached) " >&6
3624else
3625 if test "x$target_alias" = x; then
3626 ac_cv_target=$ac_cv_host
3627else
3628 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003629 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003630fi
3631
3632fi
cristy8b350f62009-11-15 23:12:43 +00003633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
cristy3ed852e2009-09-05 21:47:34 +00003634$as_echo "$ac_cv_target" >&6; }
3635case $ac_cv_target in
3636*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003637*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003638esac
3639target=$ac_cv_target
3640ac_save_IFS=$IFS; IFS='-'
3641set x $ac_cv_target
3642shift
3643target_cpu=$1
3644target_vendor=$2
3645shift; shift
3646# Remember, the first character of IFS is used to create $*,
3647# except with old shells:
3648target_os=$*
3649IFS=$ac_save_IFS
3650case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3651
3652
3653# The aliases save the names the user supplied, while $host etc.
3654# will get canonicalized.
3655test -n "$target_alias" &&
3656 test "$program_prefix$program_suffix$program_transform_name" = \
3657 NONENONEs,x,x, &&
3658 program_prefix=${target_alias}-
3659
cristy837d6dc2010-02-27 01:16:57 +00003660
cristya5bda012013-11-03 18:05:38 +00003661am__api_version='1.14'
cristy73bd4a52010-10-05 11:24:23 +00003662
3663# Find a good install program. We prefer a C program (faster),
3664# so one script is as good as another. But avoid the broken or
3665# incompatible versions:
3666# SysV /etc/install, /usr/sbin/install
3667# SunOS /usr/etc/install
3668# IRIX /sbin/install
3669# AIX /bin/install
3670# AmigaOS /C/install, which installs bootblocks on floppy discs
3671# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3672# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3673# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3674# OS/2's system install, which has a completely different semantic
3675# ./install, which can be erroneously created by make from ./install.sh.
3676# Reject install programs that cannot install multiple files.
3677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3678$as_echo_n "checking for a BSD-compatible install... " >&6; }
3679if test -z "$INSTALL"; then
cristyda16f162011-02-19 23:52:17 +00003680if ${ac_cv_path_install+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003681 $as_echo_n "(cached) " >&6
3682else
3683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3684for as_dir in $PATH
3685do
3686 IFS=$as_save_IFS
3687 test -z "$as_dir" && as_dir=.
3688 # Account for people who put trailing slashes in PATH elements.
3689case $as_dir/ in #((
3690 ./ | .// | /[cC]/* | \
3691 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3692 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3693 /usr/ucb/* ) ;;
3694 *)
3695 # OSF1 and SCO ODT 3.0 have their own names for install.
3696 # Don't use installbsd from OSF since it installs stuff as root
3697 # by default.
3698 for ac_prog in ginstall scoinst install; do
3699 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003700 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003701 if test $ac_prog = install &&
3702 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3703 # AIX install. It has an incompatible calling convention.
3704 :
3705 elif test $ac_prog = install &&
3706 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3707 # program-specific install script used by HP pwplus--don't use.
3708 :
3709 else
3710 rm -rf conftest.one conftest.two conftest.dir
3711 echo one > conftest.one
3712 echo two > conftest.two
3713 mkdir conftest.dir
3714 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3715 test -s conftest.one && test -s conftest.two &&
3716 test -s conftest.dir/conftest.one &&
3717 test -s conftest.dir/conftest.two
3718 then
3719 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3720 break 3
3721 fi
3722 fi
3723 fi
3724 done
3725 done
3726 ;;
3727esac
3728
3729 done
3730IFS=$as_save_IFS
3731
3732rm -rf conftest.one conftest.two conftest.dir
3733
3734fi
3735 if test "${ac_cv_path_install+set}" = set; then
3736 INSTALL=$ac_cv_path_install
3737 else
3738 # As a last resort, use the slow shell script. Don't cache a
3739 # value for INSTALL within a source directory, because that will
3740 # break other packages using the cache if that directory is
3741 # removed, or if the value is a relative name.
3742 INSTALL=$ac_install_sh
3743 fi
3744fi
3745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3746$as_echo "$INSTALL" >&6; }
3747
3748# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3749# It thinks the first close brace ends the variable substitution.
3750test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3751
3752test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3753
3754test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3755
cristy9af1cbf2014-12-28 22:03:09 +00003756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3757$as_echo_n "checking whether build environment is sane... " >&6; }
3758# Reject unsafe characters in $srcdir or the absolute working directory
3759# name. Accept space and tab only in the latter.
3760am_lf='
3761'
3762case `pwd` in
3763 *[\\\"\#\$\&\'\`$am_lf]*)
3764 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3765esac
3766case $srcdir in
3767 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3768 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3769esac
3770
3771# Do 'set' in a subshell so we don't clobber the current shell's
3772# arguments. Must try -L first in case configure is actually a
3773# symlink; some systems play weird games with the mod time of symlinks
3774# (eg FreeBSD returns the mod time of the symlink's containing
3775# directory).
3776if (
3777 am_has_slept=no
3778 for am_try in 1 2; do
3779 echo "timestamp, slept: $am_has_slept" > conftest.file
3780 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3781 if test "$*" = "X"; then
3782 # -L didn't work.
3783 set X `ls -t "$srcdir/configure" conftest.file`
3784 fi
3785 if test "$*" != "X $srcdir/configure conftest.file" \
3786 && test "$*" != "X conftest.file $srcdir/configure"; then
3787
3788 # If neither matched, then we have a broken ls. This can happen
3789 # if, for instance, CONFIG_SHELL is bash and it inherits a
3790 # broken ls alias from the environment. This has actually
3791 # happened. Such a system could not be considered "sane".
3792 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3793 alias in your environment" "$LINENO" 5
3794 fi
3795 if test "$2" = conftest.file || test $am_try -eq 2; then
3796 break
3797 fi
3798 # Just in case.
3799 sleep 1
3800 am_has_slept=yes
3801 done
3802 test "$2" = conftest.file
3803 )
3804then
3805 # Ok.
3806 :
3807else
3808 as_fn_error $? "newly created file is older than distributed files!
3809Check your system clock" "$LINENO" 5
3810fi
3811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3812$as_echo "yes" >&6; }
3813# If we didn't sleep, we still need to ensure time stamps of config.status and
3814# generated files are strictly newer.
3815am_sleep_pid=
3816if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3817 ( sleep 1 ) &
3818 am_sleep_pid=$!
3819fi
3820
3821rm -f conftest.file
3822
cristy73bd4a52010-10-05 11:24:23 +00003823test "$program_prefix" != NONE &&
3824 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3825# Use a double $ so make ignores it.
3826test "$program_suffix" != NONE &&
3827 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3828# Double any \ or $.
3829# By default was `s,x,x', remove it if useless.
3830ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3831program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3832
3833# expand $ac_aux_dir to an absolute path
3834am_aux_dir=`cd $ac_aux_dir && pwd`
3835
3836if test x"${MISSING+set}" != xset; then
3837 case $am_aux_dir in
3838 *\ * | *\ *)
3839 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3840 *)
3841 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3842 esac
3843fi
3844# Use eval to expand $SHELL
cristy58d34aa2013-01-24 15:11:54 +00003845if eval "$MISSING --is-lightweight"; then
3846 am_missing_run="$MISSING "
cristy73bd4a52010-10-05 11:24:23 +00003847else
3848 am_missing_run=
cristyc0890a62012-07-19 00:18:20 +00003849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3850$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
cristy73bd4a52010-10-05 11:24:23 +00003851fi
3852
3853if test x"${install_sh}" != xset; then
3854 case $am_aux_dir in
3855 *\ * | *\ *)
3856 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3857 *)
3858 install_sh="\${SHELL} $am_aux_dir/install-sh"
3859 esac
3860fi
3861
cristyc0890a62012-07-19 00:18:20 +00003862# Installed binaries are usually stripped using 'strip' when the user
3863# run "make install-strip". However 'strip' might not be the right
cristy73bd4a52010-10-05 11:24:23 +00003864# tool to use in cross-compilation environments, therefore Automake
cristyc0890a62012-07-19 00:18:20 +00003865# will honor the 'STRIP' environment variable to overrule this program.
cristy73bd4a52010-10-05 11:24:23 +00003866if test "$cross_compiling" != no; then
3867 if test -n "$ac_tool_prefix"; then
3868 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3869set dummy ${ac_tool_prefix}strip; ac_word=$2
3870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3871$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003872if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003873 $as_echo_n "(cached) " >&6
3874else
3875 if test -n "$STRIP"; then
3876 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3877else
3878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3879for as_dir in $PATH
3880do
3881 IFS=$as_save_IFS
3882 test -z "$as_dir" && as_dir=.
3883 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003884 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003885 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3887 break 2
3888 fi
3889done
3890 done
3891IFS=$as_save_IFS
3892
3893fi
3894fi
3895STRIP=$ac_cv_prog_STRIP
3896if test -n "$STRIP"; then
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3898$as_echo "$STRIP" >&6; }
3899else
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3901$as_echo "no" >&6; }
3902fi
3903
3904
3905fi
3906if test -z "$ac_cv_prog_STRIP"; then
3907 ac_ct_STRIP=$STRIP
3908 # Extract the first word of "strip", so it can be a program name with args.
3909set dummy strip; ac_word=$2
3910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3911$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003912if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003913 $as_echo_n "(cached) " >&6
3914else
3915 if test -n "$ac_ct_STRIP"; then
3916 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3917else
3918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3919for as_dir in $PATH
3920do
3921 IFS=$as_save_IFS
3922 test -z "$as_dir" && as_dir=.
3923 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003924 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003925 ac_cv_prog_ac_ct_STRIP="strip"
3926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3927 break 2
3928 fi
3929done
3930 done
3931IFS=$as_save_IFS
3932
3933fi
3934fi
3935ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3936if test -n "$ac_ct_STRIP"; then
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3938$as_echo "$ac_ct_STRIP" >&6; }
3939else
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3941$as_echo "no" >&6; }
3942fi
3943
3944 if test "x$ac_ct_STRIP" = x; then
3945 STRIP=":"
3946 else
3947 case $cross_compiling:$ac_tool_warned in
3948yes:)
3949{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3950$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3951ac_tool_warned=yes ;;
3952esac
3953 STRIP=$ac_ct_STRIP
3954 fi
3955else
3956 STRIP="$ac_cv_prog_STRIP"
3957fi
3958
3959fi
3960INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3961
3962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3963$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3964if test -z "$MKDIR_P"; then
cristyda16f162011-02-19 23:52:17 +00003965 if ${ac_cv_path_mkdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003966 $as_echo_n "(cached) " >&6
3967else
3968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3969for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3970do
3971 IFS=$as_save_IFS
3972 test -z "$as_dir" && as_dir=.
3973 for ac_prog in mkdir gmkdir; do
3974 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003975 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
cristy73bd4a52010-10-05 11:24:23 +00003976 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3977 'mkdir (GNU coreutils) '* | \
3978 'mkdir (coreutils) '* | \
3979 'mkdir (fileutils) '4.1*)
3980 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3981 break 3;;
3982 esac
3983 done
3984 done
3985 done
3986IFS=$as_save_IFS
3987
3988fi
3989
3990 test -d ./--version && rmdir ./--version
3991 if test "${ac_cv_path_mkdir+set}" = set; then
3992 MKDIR_P="$ac_cv_path_mkdir -p"
3993 else
3994 # As a last resort, use the slow shell script. Don't cache a
3995 # value for MKDIR_P within a source directory, because that will
3996 # break other packages using the cache if that directory is
3997 # removed, or if the value is a relative name.
3998 MKDIR_P="$ac_install_sh -d"
3999 fi
4000fi
4001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4002$as_echo "$MKDIR_P" >&6; }
4003
cristy73bd4a52010-10-05 11:24:23 +00004004for ac_prog in gawk mawk nawk awk
4005do
4006 # Extract the first word of "$ac_prog", so it can be a program name with args.
4007set dummy $ac_prog; ac_word=$2
4008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4009$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004010if ${ac_cv_prog_AWK+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004011 $as_echo_n "(cached) " >&6
4012else
4013 if test -n "$AWK"; then
4014 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4015else
4016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4017for as_dir in $PATH
4018do
4019 IFS=$as_save_IFS
4020 test -z "$as_dir" && as_dir=.
4021 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004022 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00004023 ac_cv_prog_AWK="$ac_prog"
4024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4025 break 2
4026 fi
4027done
4028 done
4029IFS=$as_save_IFS
4030
4031fi
4032fi
4033AWK=$ac_cv_prog_AWK
4034if test -n "$AWK"; then
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4036$as_echo "$AWK" >&6; }
4037else
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4039$as_echo "no" >&6; }
4040fi
4041
4042
4043 test -n "$AWK" && break
4044done
4045
4046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4047$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4048set x ${MAKE-make}
4049ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00004050if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004051 $as_echo_n "(cached) " >&6
4052else
4053 cat >conftest.make <<\_ACEOF
4054SHELL = /bin/sh
4055all:
4056 @echo '@@@%%%=$(MAKE)=@@@%%%'
4057_ACEOF
cristy98dddb52010-11-04 00:30:15 +00004058# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristy73bd4a52010-10-05 11:24:23 +00004059case `${MAKE-make} -f conftest.make 2>/dev/null` in
4060 *@@@%%%=?*=@@@%%%*)
4061 eval ac_cv_prog_make_${ac_make}_set=yes;;
4062 *)
4063 eval ac_cv_prog_make_${ac_make}_set=no;;
4064esac
4065rm -f conftest.make
4066fi
4067if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4069$as_echo "yes" >&6; }
4070 SET_MAKE=
4071else
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4073$as_echo "no" >&6; }
4074 SET_MAKE="MAKE=${MAKE-make}"
4075fi
4076
4077rm -rf .tst 2>/dev/null
4078mkdir .tst 2>/dev/null
4079if test -d .tst; then
4080 am__leading_dot=.
4081else
4082 am__leading_dot=_
4083fi
4084rmdir .tst 2>/dev/null
4085
cristya448bd22011-10-14 12:38:13 +00004086# Check whether --enable-silent-rules was given.
4087if test "${enable_silent_rules+set}" = set; then :
4088 enableval=$enable_silent_rules;
4089fi
4090
cristyc0890a62012-07-19 00:18:20 +00004091case $enable_silent_rules in # (((
4092 yes) AM_DEFAULT_VERBOSITY=0;;
4093 no) AM_DEFAULT_VERBOSITY=1;;
4094 *) AM_DEFAULT_VERBOSITY=1;;
cristya448bd22011-10-14 12:38:13 +00004095esac
cristyc3fb77b2012-02-06 01:49:41 +00004096am_make=${MAKE-make}
4097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4098$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4099if ${am_cv_make_support_nested_variables+:} false; then :
4100 $as_echo_n "(cached) " >&6
4101else
4102 if $as_echo 'TRUE=$(BAR$(V))
4103BAR0=false
4104BAR1=true
4105V=1
4106am__doit:
4107 @$(TRUE)
4108.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4109 am_cv_make_support_nested_variables=yes
4110else
4111 am_cv_make_support_nested_variables=no
4112fi
4113fi
4114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4115$as_echo "$am_cv_make_support_nested_variables" >&6; }
4116if test $am_cv_make_support_nested_variables = yes; then
4117 AM_V='$(V)'
4118 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4119else
4120 AM_V=$AM_DEFAULT_VERBOSITY
4121 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4122fi
cristya448bd22011-10-14 12:38:13 +00004123AM_BACKSLASH='\'
4124
cristy73bd4a52010-10-05 11:24:23 +00004125if test "`cd $srcdir && pwd`" != "`pwd`"; then
4126 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4127 # is not polluted with repeated "-I."
4128 am__isrc=' -I$(srcdir)'
4129 # test to see if srcdir already configured
4130 if test -f $srcdir/config.status; then
cristy98dddb52010-11-04 00:30:15 +00004131 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00004132 fi
4133fi
4134
4135# test whether we have cygpath
4136if test -z "$CYGPATH_W"; then
4137 if (cygpath --version) >/dev/null 2>/dev/null; then
4138 CYGPATH_W='cygpath -w'
4139 else
4140 CYGPATH_W=echo
4141 fi
4142fi
4143
4144
4145# Define the identity of the package.
cristy09b53e12011-10-14 12:47:22 +00004146 PACKAGE='ImageMagick'
cristy29eb34e2011-10-16 00:46:08 +00004147 VERSION='7.0.0-0'
cristy73bd4a52010-10-05 11:24:23 +00004148
4149
cristya448bd22011-10-14 12:38:13 +00004150cat >>confdefs.h <<_ACEOF
4151#define PACKAGE "$PACKAGE"
4152_ACEOF
4153
4154
4155cat >>confdefs.h <<_ACEOF
4156#define VERSION "$VERSION"
4157_ACEOF
4158
cristy73bd4a52010-10-05 11:24:23 +00004159# Some tools Automake needs.
4160
4161ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4162
4163
4164AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4165
4166
4167AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4168
4169
4170AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4171
4172
4173MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4174
cristyc0890a62012-07-19 00:18:20 +00004175# For better backward compatibility. To be removed once Automake 1.9.x
4176# dies out for good. For more background, see:
4177# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4178# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4179mkdir_p='$(MKDIR_P)'
4180
cristy73bd4a52010-10-05 11:24:23 +00004181# We need awk for the "check" target. The system "awk" is bad on
4182# some platforms.
cristyc3fb77b2012-02-06 01:49:41 +00004183# Always define AMTAR for backward compatibility. Yes, it's still used
4184# in the wild :-( We should find a proper way to deprecate it ...
4185AMTAR='$${TAR-tar}'
cristy73bd4a52010-10-05 11:24:23 +00004186
cristye69bdbe2013-05-03 21:40:44 +00004187
4188# We'll loop over all known methods to create a tar archive until one works.
4189_am_tools='gnutar pax cpio none'
4190
cristyc3fb77b2012-02-06 01:49:41 +00004191am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
cristy73bd4a52010-10-05 11:24:23 +00004192
4193
4194
4195
4196
cristy3ed852e2009-09-05 21:47:34 +00004197
cristya5bda012013-11-03 18:05:38 +00004198# POSIX will say in a future version that running "rm -f" with no argument
4199# is OK; and we want to be able to make that assumption in our Makefile
4200# recipes. So use an aggressive probe to check that the usage we want is
4201# actually supported "in the wild" to an acceptable degree.
4202# See automake bug#10828.
4203# To make any issue more visible, cause the running configure to be aborted
4204# by default if the 'rm' program in use doesn't match our expectations; the
4205# user can still override this though.
4206if rm -f && rm -fr && rm -rf; then : OK; else
4207 cat >&2 <<'END'
4208Oops!
4209
4210Your 'rm' program seems unable to run without file operands specified
4211on the command line, even when the '-f' option is present. This is contrary
4212to the behaviour of most rm programs out there, and not conforming with
4213the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4214
4215Please tell bug-automake@gnu.org about your system, including the value
4216of your $PATH and any error possibly output before this message. This
4217can help us improve future automake versions.
4218
4219END
4220 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4221 echo 'Configuration will proceed anyway, since you have set the' >&2
4222 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4223 echo >&2
4224 else
4225 cat >&2 <<'END'
4226Aborting the configuration process, to ensure you take notice of the issue.
4227
4228You can download and install GNU coreutils to get an 'rm' implementation
4229that behaves properly: <http://www.gnu.org/software/coreutils/>.
4230
4231If you want to complete the configuration process using your problematic
4232'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4233to "yes", and re-run configure.
4234
4235END
4236 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4237 fi
4238fi
cristy73bd4a52010-10-05 11:24:23 +00004239# Check whether --enable-silent-rules was given.
4240if test "${enable_silent_rules+set}" = set; then :
4241 enableval=$enable_silent_rules;
4242fi
4243
cristyc0890a62012-07-19 00:18:20 +00004244case $enable_silent_rules in # (((
4245 yes) AM_DEFAULT_VERBOSITY=0;;
4246 no) AM_DEFAULT_VERBOSITY=1;;
4247 *) AM_DEFAULT_VERBOSITY=0;;
cristy73bd4a52010-10-05 11:24:23 +00004248esac
cristyc3fb77b2012-02-06 01:49:41 +00004249am_make=${MAKE-make}
4250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4251$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4252if ${am_cv_make_support_nested_variables+:} false; then :
4253 $as_echo_n "(cached) " >&6
4254else
4255 if $as_echo 'TRUE=$(BAR$(V))
4256BAR0=false
4257BAR1=true
4258V=1
4259am__doit:
4260 @$(TRUE)
4261.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4262 am_cv_make_support_nested_variables=yes
4263else
4264 am_cv_make_support_nested_variables=no
4265fi
4266fi
4267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4268$as_echo "$am_cv_make_support_nested_variables" >&6; }
4269if test $am_cv_make_support_nested_variables = yes; then
4270 AM_V='$(V)'
4271 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4272else
4273 AM_V=$AM_DEFAULT_VERBOSITY
4274 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4275fi
cristy73bd4a52010-10-05 11:24:23 +00004276AM_BACKSLASH='\'
4277
cristy3ed852e2009-09-05 21:47:34 +00004278
cristy9af1cbf2014-12-28 22:03:09 +00004279#
4280# Save initial user-tunable values
4281#
4282USER_LIBS=$LIBS
4283for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
4284 eval isset=\${$var+set}
4285 if test "$isset" = 'set'; then
4286 eval val=$`echo $var`
4287 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
4288 fi
4289done
4290
4291
4292CONFIGURE_ARGS="$0 ${ac_configure_args}"
4293
4294
cristy187791c2015-05-03 22:17:00 +00004295# Check whether --enable-reproducible-build was given.
4296if test "${enable_reproducible_build+set}" = set; then :
4297 enableval=$enable_reproducible_build; enable_reproducible_build=$enableval
4298else
4299 enable_reproducible_build='no'
4300fi
4301
4302
cristy9af1cbf2014-12-28 22:03:09 +00004303# Source file containing package/library versioning information.
4304. ${srcdir}/version.sh
4305
4306echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
4307
4308MAGICK_TARGET_CPU=$host_cpu
4309
4310
4311cat >>confdefs.h <<_ACEOF
4312#define MAGICK_TARGET_CPU $MAGICK_TARGET_CPU
4313_ACEOF
4314
4315
4316MAGICK_TARGET_VENDOR=$host_vendor
4317
4318
4319cat >>confdefs.h <<_ACEOF
4320#define MAGICK_TARGET_VENDOR $MAGICK_TARGET_VENDOR
4321_ACEOF
4322
4323
4324MAGICK_TARGET_OS=$host_os
4325
4326
4327cat >>confdefs.h <<_ACEOF
4328#define MAGICK_TARGET_OS $MAGICK_TARGET_OS
4329_ACEOF
4330
4331
4332
4333# Substitute versioning
4334MAGICK_MAJOR_VERSION=7
4335
4336MAGICK_MINOR_VERSION=0
4337
4338MAGICK_MICRO_VERSION=0
4339
4340MAGICK_PATCHLEVEL_VERSION=0
4341
4342MAGICK_VERSION=7.0.0-0
4343
cristya29f2b82015-05-30 14:10:30 +00004344MAGICK_SVN_REVISION=18670:18677M
cristy9af1cbf2014-12-28 22:03:09 +00004345
4346
4347# Substitute library versioning
4348MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
4349
4350MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
4351
4352
4353MAGICKPP_LIBRARY_CURRENT_MIN=`expr $MAGICKPP_LIBRARY_CURRENT - $MAGICKPP_LIBRARY_AGE`
4354
4355MAGICKPP_LIBRARY_VERSION_INFO=$MAGICKPP_LIBRARY_CURRENT:$MAGICKPP_LIBRARY_REVISION:$MAGICKPP_LIBRARY_AGE
4356
4357
cristy187791c2015-05-03 22:17:00 +00004358if test X$enable_reproducible_build = Xyes; then :
4359 PACKAGE_RELEASE_DATE=$PACKAGE_RELEASE_DATE_REPRODUCIBLE
4360elif PACKAGE_RELEASE_DATE=$PACKAGE_RELEASE_DATE_RAW; then :
4361
4362fi
4363
cristy9af1cbf2014-12-28 22:03:09 +00004364
4365# Ensure that make can run correctly
4366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4367$as_echo_n "checking whether build environment is sane... " >&6; }
4368# Reject unsafe characters in $srcdir or the absolute working directory
4369# name. Accept space and tab only in the latter.
4370am_lf='
4371'
4372case `pwd` in
4373 *[\\\"\#\$\&\'\`$am_lf]*)
4374 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4375esac
4376case $srcdir in
4377 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4378 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4379esac
4380
4381# Do 'set' in a subshell so we don't clobber the current shell's
4382# arguments. Must try -L first in case configure is actually a
4383# symlink; some systems play weird games with the mod time of symlinks
4384# (eg FreeBSD returns the mod time of the symlink's containing
4385# directory).
4386if (
4387 am_has_slept=no
4388 for am_try in 1 2; do
4389 echo "timestamp, slept: $am_has_slept" > conftest.file
4390 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4391 if test "$*" = "X"; then
4392 # -L didn't work.
4393 set X `ls -t "$srcdir/configure" conftest.file`
4394 fi
4395 if test "$*" != "X $srcdir/configure conftest.file" \
4396 && test "$*" != "X conftest.file $srcdir/configure"; then
4397
4398 # If neither matched, then we have a broken ls. This can happen
4399 # if, for instance, CONFIG_SHELL is bash and it inherits a
4400 # broken ls alias from the environment. This has actually
4401 # happened. Such a system could not be considered "sane".
4402 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4403 alias in your environment" "$LINENO" 5
4404 fi
4405 if test "$2" = conftest.file || test $am_try -eq 2; then
4406 break
4407 fi
4408 # Just in case.
4409 sleep 1
4410 am_has_slept=yes
4411 done
4412 test "$2" = conftest.file
4413 )
4414then
4415 # Ok.
4416 :
4417else
4418 as_fn_error $? "newly created file is older than distributed files!
4419Check your system clock" "$LINENO" 5
4420fi
4421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4422$as_echo "yes" >&6; }
4423# If we didn't sleep, we still need to ensure time stamps of config.status and
4424# generated files are strictly newer.
4425am_sleep_pid=
4426if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4427 ( sleep 1 ) &
4428 am_sleep_pid=$!
4429fi
4430
4431rm -f conftest.file
4432
4433
cristyf279b692014-08-13 12:01:27 +00004434# versioning of library
cristy3ed852e2009-09-05 21:47:34 +00004435MAGICK_LIB_VERSION="0x"
4436if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
4437 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4438fi
4439MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
4440if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
4441 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4442fi
4443MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
4444if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
4445 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4446fi
4447MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
4448
4449
4450# Definition used to define MagickLibVersionText in version.h
4451MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4452
4453
4454# Definition used to define MagickLibVersionNumber in version.h
4455MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4456
4457
cristy5ed9c6e2013-07-14 21:20:31 +00004458MAGICKPP_LIB_VERSION="0x"
4459if test ${MAGICKPP_LIBRARY_CURRENT} -lt 10 ; then
4460 MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0
4461fi
4462MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_CURRENT}
4463if test ${MAGICKPP_LIBRARY_AGE} -lt 10 ; then
4464 MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0
4465fi
4466MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_AGE}
4467if test ${MAGICKPP_LIBRARY_REVISION} -lt 10 ; then
4468 MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0
4469fi
4470MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_REVISION}
4471
4472
4473# Definition used to define MagickLibVersionText in version.h
4474MAGICKPP_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4475
4476
4477# Definition used to define MagickLibVersionNumber in version.h
4478MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4479
4480
4481
4482
cristy3ed852e2009-09-05 21:47:34 +00004483# Regenerate config.status if ChangeLog or version.sh is updated.
4484CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
4485
4486
4487PERLMAINCC=$CC
4488
4489MAGICK_CFLAGS=''
4490MAGICK_CPPFLAGS=$CPPFLAGS_USER
4491MAGICK_PCFLAGS=$CPPFLAGS_USER
4492MAGICK_LDFLAGS=''
4493MAGICK_LIBS=''
cristyfd9dcd42010-08-08 18:07:02 +00004494MAGICK_FEATURES=''
cristy3ed852e2009-09-05 21:47:34 +00004495
4496#
4497# Evaluate shell variable equivalents to Makefile directory variables
4498#
4499if test "x$prefix" = xNONE; then
4500 prefix=$ac_default_prefix
4501fi
4502# Let make expand exec_prefix.
4503if test "x$exec_prefix" = xNONE; then
4504 exec_prefix='${prefix}'
4505fi
4506
4507#
4508eval "eval PREFIX_DIR=${prefix}"
4509
4510eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4511
4512eval "eval BIN_DIR=$bindir"
4513
4514eval "eval SBIN_DIR=$sbindir"
4515
4516eval "eval LIBEXEC_DIR=$libexecdir"
4517
4518eval "eval DATA_DIR=$datadir"
4519
cristy4e65ec22012-04-08 01:33:27 +00004520eval "eval DOC_DIR=$datadir/doc"
cristyd55889c2011-03-27 00:50:24 +00004521
cristy3ed852e2009-09-05 21:47:34 +00004522eval "eval SYSCONF_DIR=$sysconfdir"
4523
4524eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4525
4526eval "eval LOCALSTATE_DIR=$localstatedir"
4527
4528eval "eval LIB_DIR=$libdir"
4529
4530eval "eval INCLUDE_DIR=$includedir"
4531
4532eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4533
4534eval "eval INFO_DIR=$infodir"
4535
4536eval "eval MAN_DIR=$mandir"
4537
4538
4539# Get full paths to source and build directories
4540srcdirfull="`cd $srcdir && pwd`"
4541builddir="`pwd`"
4542
4543#
4544# Compute variables useful for running uninstalled software.
4545#
4546MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4547MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4548MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4549MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4550DIRSEP=':'
4551case "${build_os}" in
4552 mingw* )
4553 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4554 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4555 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4556 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4557 DIRSEP=';'
4558 ;;
4559esac
4560case "${host_os}" in
4561 mingw* )
4562 DIRSEP=';'
4563 ;;
4564esac
4565
4566
4567
4568
4569
4570
cristya0b81c32010-01-22 02:54:33 +00004571
4572#
4573# Enable OS features.
4574#
cristy73bd4a52010-10-05 11:24:23 +00004575DEPDIR="${am__leading_dot}deps"
4576
4577ac_config_commands="$ac_config_commands depfiles"
4578
4579
4580am_make=${MAKE-make}
4581cat > confinc << 'END'
4582am__doit:
4583 @echo this is the am__doit target
4584.PHONY: am__doit
4585END
4586# If we don't find an include directive, just comment out the code.
4587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4588$as_echo_n "checking for style of include used by $am_make... " >&6; }
4589am__include="#"
4590am__quote=
4591_am_result=none
4592# First try GNU make style include.
4593echo "include confinc" > confmf
cristyc0890a62012-07-19 00:18:20 +00004594# Ignore all kinds of additional output from 'make'.
cristy73bd4a52010-10-05 11:24:23 +00004595case `$am_make -s -f confmf 2> /dev/null` in #(
4596*the\ am__doit\ target*)
4597 am__include=include
4598 am__quote=
4599 _am_result=GNU
4600 ;;
4601esac
4602# Now try BSD make style include.
4603if test "$am__include" = "#"; then
4604 echo '.include "confinc"' > confmf
4605 case `$am_make -s -f confmf 2> /dev/null` in #(
4606 *the\ am__doit\ target*)
4607 am__include=.include
4608 am__quote="\""
4609 _am_result=BSD
4610 ;;
4611 esac
4612fi
4613
4614
4615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4616$as_echo "$_am_result" >&6; }
4617rm -f confinc confmf
4618
4619# Check whether --enable-dependency-tracking was given.
4620if test "${enable_dependency_tracking+set}" = set; then :
4621 enableval=$enable_dependency_tracking;
4622fi
4623
4624if test "x$enable_dependency_tracking" != xno; then
4625 am_depcomp="$ac_aux_dir/depcomp"
4626 AMDEPBACKSLASH='\'
cristy7247bba2012-02-05 16:37:27 +00004627 am__nodep='_no'
cristy73bd4a52010-10-05 11:24:23 +00004628fi
4629 if test "x$enable_dependency_tracking" != xno; then
4630 AMDEP_TRUE=
4631 AMDEP_FALSE='#'
4632else
4633 AMDEP_TRUE='#'
4634 AMDEP_FALSE=
4635fi
4636
4637
cristy3ed852e2009-09-05 21:47:34 +00004638ac_ext=c
4639ac_cpp='$CPP $CPPFLAGS'
4640ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4641ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4642ac_compiler_gnu=$ac_cv_c_compiler_gnu
4643if test -n "$ac_tool_prefix"; then
4644 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4645set dummy ${ac_tool_prefix}gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004647$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004648if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004649 $as_echo_n "(cached) " >&6
4650else
4651 if test -n "$CC"; then
4652 ac_cv_prog_CC="$CC" # Let the user override the test.
4653else
4654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4655for as_dir in $PATH
4656do
4657 IFS=$as_save_IFS
4658 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004659 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004660 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004661 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cristy8b350f62009-11-15 23:12:43 +00004662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004663 break 2
4664 fi
4665done
cristy8b350f62009-11-15 23:12:43 +00004666 done
cristy3ed852e2009-09-05 21:47:34 +00004667IFS=$as_save_IFS
4668
4669fi
4670fi
4671CC=$ac_cv_prog_CC
4672if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004674$as_echo "$CC" >&6; }
4675else
cristy8b350f62009-11-15 23:12:43 +00004676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004677$as_echo "no" >&6; }
4678fi
4679
4680
4681fi
4682if test -z "$ac_cv_prog_CC"; then
4683 ac_ct_CC=$CC
4684 # Extract the first word of "gcc", so it can be a program name with args.
4685set dummy gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004687$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004688if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004689 $as_echo_n "(cached) " >&6
4690else
4691 if test -n "$ac_ct_CC"; then
4692 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4693else
4694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4695for as_dir in $PATH
4696do
4697 IFS=$as_save_IFS
4698 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004699 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004700 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004701 ac_cv_prog_ac_ct_CC="gcc"
cristy8b350f62009-11-15 23:12:43 +00004702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004703 break 2
4704 fi
4705done
cristy8b350f62009-11-15 23:12:43 +00004706 done
cristy3ed852e2009-09-05 21:47:34 +00004707IFS=$as_save_IFS
4708
4709fi
4710fi
4711ac_ct_CC=$ac_cv_prog_ac_ct_CC
4712if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004714$as_echo "$ac_ct_CC" >&6; }
4715else
cristy8b350f62009-11-15 23:12:43 +00004716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004717$as_echo "no" >&6; }
4718fi
4719
4720 if test "x$ac_ct_CC" = x; then
4721 CC=""
4722 else
4723 case $cross_compiling:$ac_tool_warned in
4724yes:)
cristy8b350f62009-11-15 23:12:43 +00004725{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004726$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4727ac_tool_warned=yes ;;
4728esac
4729 CC=$ac_ct_CC
4730 fi
4731else
4732 CC="$ac_cv_prog_CC"
4733fi
4734
4735if test -z "$CC"; then
4736 if test -n "$ac_tool_prefix"; then
4737 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4738set dummy ${ac_tool_prefix}cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004740$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004741if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004742 $as_echo_n "(cached) " >&6
4743else
4744 if test -n "$CC"; then
4745 ac_cv_prog_CC="$CC" # Let the user override the test.
4746else
4747as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4748for as_dir in $PATH
4749do
4750 IFS=$as_save_IFS
4751 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004752 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004753 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004754 ac_cv_prog_CC="${ac_tool_prefix}cc"
cristy8b350f62009-11-15 23:12:43 +00004755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004756 break 2
4757 fi
4758done
cristy8b350f62009-11-15 23:12:43 +00004759 done
cristy3ed852e2009-09-05 21:47:34 +00004760IFS=$as_save_IFS
4761
4762fi
4763fi
4764CC=$ac_cv_prog_CC
4765if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004767$as_echo "$CC" >&6; }
4768else
cristy8b350f62009-11-15 23:12:43 +00004769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004770$as_echo "no" >&6; }
4771fi
4772
4773
4774 fi
4775fi
4776if test -z "$CC"; then
4777 # Extract the first word of "cc", so it can be a program name with args.
4778set dummy cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004780$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004781if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004782 $as_echo_n "(cached) " >&6
4783else
4784 if test -n "$CC"; then
4785 ac_cv_prog_CC="$CC" # Let the user override the test.
4786else
4787 ac_prog_rejected=no
4788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4789for as_dir in $PATH
4790do
4791 IFS=$as_save_IFS
4792 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004793 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004795 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4796 ac_prog_rejected=yes
4797 continue
4798 fi
4799 ac_cv_prog_CC="cc"
cristy8b350f62009-11-15 23:12:43 +00004800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004801 break 2
4802 fi
4803done
cristy8b350f62009-11-15 23:12:43 +00004804 done
cristy3ed852e2009-09-05 21:47:34 +00004805IFS=$as_save_IFS
4806
4807if test $ac_prog_rejected = yes; then
4808 # We found a bogon in the path, so make sure we never use it.
4809 set dummy $ac_cv_prog_CC
4810 shift
4811 if test $# != 0; then
4812 # We chose a different compiler from the bogus one.
4813 # However, it has the same basename, so the bogon will be chosen
4814 # first if we set CC to just the basename; use the full file name.
4815 shift
4816 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4817 fi
4818fi
4819fi
4820fi
4821CC=$ac_cv_prog_CC
4822if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004824$as_echo "$CC" >&6; }
4825else
cristy8b350f62009-11-15 23:12:43 +00004826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004827$as_echo "no" >&6; }
4828fi
4829
4830
4831fi
4832if test -z "$CC"; then
4833 if test -n "$ac_tool_prefix"; then
4834 for ac_prog in cl.exe
4835 do
4836 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4837set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004839$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004840if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004841 $as_echo_n "(cached) " >&6
4842else
4843 if test -n "$CC"; then
4844 ac_cv_prog_CC="$CC" # Let the user override the test.
4845else
4846as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4847for as_dir in $PATH
4848do
4849 IFS=$as_save_IFS
4850 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004851 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004852 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004853 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004855 break 2
4856 fi
4857done
cristy8b350f62009-11-15 23:12:43 +00004858 done
cristy3ed852e2009-09-05 21:47:34 +00004859IFS=$as_save_IFS
4860
4861fi
4862fi
4863CC=$ac_cv_prog_CC
4864if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004866$as_echo "$CC" >&6; }
4867else
cristy8b350f62009-11-15 23:12:43 +00004868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004869$as_echo "no" >&6; }
4870fi
4871
4872
4873 test -n "$CC" && break
4874 done
4875fi
4876if test -z "$CC"; then
4877 ac_ct_CC=$CC
4878 for ac_prog in cl.exe
4879do
4880 # Extract the first word of "$ac_prog", so it can be a program name with args.
4881set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004883$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004884if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004885 $as_echo_n "(cached) " >&6
4886else
4887 if test -n "$ac_ct_CC"; then
4888 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4889else
4890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4891for as_dir in $PATH
4892do
4893 IFS=$as_save_IFS
4894 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004895 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004896 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004897 ac_cv_prog_ac_ct_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004899 break 2
4900 fi
4901done
cristy8b350f62009-11-15 23:12:43 +00004902 done
cristy3ed852e2009-09-05 21:47:34 +00004903IFS=$as_save_IFS
4904
4905fi
4906fi
4907ac_ct_CC=$ac_cv_prog_ac_ct_CC
4908if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004910$as_echo "$ac_ct_CC" >&6; }
4911else
cristy8b350f62009-11-15 23:12:43 +00004912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004913$as_echo "no" >&6; }
4914fi
4915
4916
4917 test -n "$ac_ct_CC" && break
4918done
4919
4920 if test "x$ac_ct_CC" = x; then
4921 CC=""
4922 else
4923 case $cross_compiling:$ac_tool_warned in
4924yes:)
cristy8b350f62009-11-15 23:12:43 +00004925{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004926$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4927ac_tool_warned=yes ;;
4928esac
4929 CC=$ac_ct_CC
4930 fi
4931fi
4932
4933fi
4934
4935
cristy8b350f62009-11-15 23:12:43 +00004936test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004937$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004938as_fn_error $? "no acceptable C compiler found in \$PATH
4939See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004940
4941# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00004942$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00004943set X $ac_compile
4944ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00004945for ac_option in --version -v -V -qversion; do
4946 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00004947case "(($ac_try" in
4948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4949 *) ac_try_echo=$ac_try;;
4950esac
cristy8b350f62009-11-15 23:12:43 +00004951eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4952$as_echo "$ac_try_echo"; } >&5
4953 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00004954 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004955 if test -s conftest.err; then
4956 sed '10a\
4957... rest of stderr output deleted ...
4958 10q' conftest.err >conftest.er1
4959 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +00004960 fi
cristycd4c5312009-11-22 01:19:08 +00004961 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +00004962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4963 test $ac_status = 0; }
4964done
cristy3ed852e2009-09-05 21:47:34 +00004965
cristy8b350f62009-11-15 23:12:43 +00004966cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004967/* end confdefs.h. */
cristycd4c5312009-11-22 01:19:08 +00004968
cristy3ed852e2009-09-05 21:47:34 +00004969int
4970main ()
4971{
4972
4973 ;
4974 return 0;
4975}
4976_ACEOF
4977ac_clean_files_save=$ac_clean_files
cristycd4c5312009-11-22 01:19:08 +00004978ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cristy3ed852e2009-09-05 21:47:34 +00004979# Try to create an executable without -o first, disregard a.out.
4980# It will help us diagnose broken compilers, and finding out an intuition
4981# of exeext.
cristycd4c5312009-11-22 01:19:08 +00004982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4983$as_echo_n "checking whether the C compiler works... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004984ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4985
4986# The possible output files:
4987ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4988
4989ac_rmfiles=
4990for ac_file in $ac_files
4991do
4992 case $ac_file in
4993 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4994 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4995 esac
4996done
4997rm -f $ac_rmfiles
4998
cristy8b350f62009-11-15 23:12:43 +00004999if { { ac_try="$ac_link_default"
cristy3ed852e2009-09-05 21:47:34 +00005000case "(($ac_try" in
5001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5002 *) ac_try_echo=$ac_try;;
5003esac
cristy8b350f62009-11-15 23:12:43 +00005004eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5005$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00005006 (eval "$ac_link_default") 2>&5
5007 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00005008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5009 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00005010 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5011# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5012# in a Makefile. We should not override ac_cv_exeext if it was cached,
5013# so that the user can short-circuit this test for compilers unknown to
5014# Autoconf.
5015for ac_file in $ac_files ''
5016do
5017 test -f "$ac_file" || continue
5018 case $ac_file in
5019 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5020 ;;
5021 [ab].out )
5022 # We found the default executable, but exeext='' is most
5023 # certainly right.
5024 break;;
5025 *.* )
cristy8b350f62009-11-15 23:12:43 +00005026 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cristy3ed852e2009-09-05 21:47:34 +00005027 then :; else
5028 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5029 fi
5030 # We set ac_cv_exeext here because the later test for it is not
5031 # safe: cross compilers may not add the suffix if given an `-o'
5032 # argument, so we may need to know it at that point already.
5033 # Even if this section looks crufty: it has the advantage of
5034 # actually working.
5035 break;;
5036 * )
5037 break;;
5038 esac
5039done
5040test "$ac_cv_exeext" = no && ac_cv_exeext=
5041
5042else
5043 ac_file=''
5044fi
cristy8b350f62009-11-15 23:12:43 +00005045if test -z "$ac_file"; then :
cristycd4c5312009-11-22 01:19:08 +00005046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5047$as_echo "no" >&6; }
5048$as_echo "$as_me: failed program was:" >&5
cristy3ed852e2009-09-05 21:47:34 +00005049sed 's/^/| /' conftest.$ac_ext >&5
5050
cristy8b350f62009-11-15 23:12:43 +00005051{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00005052$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005053as_fn_error 77 "C compiler cannot create executables
5054See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00005055else
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5057$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00005058fi
cristycd4c5312009-11-22 01:19:08 +00005059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5060$as_echo_n "checking for C compiler default output file name... " >&6; }
5061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5062$as_echo "$ac_file" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00005063ac_exeext=$ac_cv_exeext
5064
cristycd4c5312009-11-22 01:19:08 +00005065rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cristy3ed852e2009-09-05 21:47:34 +00005066ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00005067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cristy3ed852e2009-09-05 21:47:34 +00005068$as_echo_n "checking for suffix of executables... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00005069if { { ac_try="$ac_link"
cristy3ed852e2009-09-05 21:47:34 +00005070case "(($ac_try" in
5071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5072 *) ac_try_echo=$ac_try;;
5073esac
cristy8b350f62009-11-15 23:12:43 +00005074eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5075$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00005076 (eval "$ac_link") 2>&5
5077 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00005078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5079 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00005080 # If both `conftest.exe' and `conftest' are `present' (well, observable)
5081# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
5082# work properly (i.e., refer to `conftest.exe'), while it won't with
5083# `rm'.
5084for ac_file in conftest.exe conftest conftest.*; do
5085 test -f "$ac_file" || continue
5086 case $ac_file in
5087 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5088 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5089 break;;
5090 * ) break;;
5091 esac
5092done
5093else
cristy8b350f62009-11-15 23:12:43 +00005094 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00005095$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005096as_fn_error $? "cannot compute suffix of executables: cannot compile and link
5097See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00005098fi
cristycd4c5312009-11-22 01:19:08 +00005099rm -f conftest conftest$ac_cv_exeext
cristy8b350f62009-11-15 23:12:43 +00005100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cristy3ed852e2009-09-05 21:47:34 +00005101$as_echo "$ac_cv_exeext" >&6; }
5102
5103rm -f conftest.$ac_ext
5104EXEEXT=$ac_cv_exeext
5105ac_exeext=$EXEEXT
cristycd4c5312009-11-22 01:19:08 +00005106cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5107/* end confdefs.h. */
5108#include <stdio.h>
5109int
5110main ()
5111{
5112FILE *f = fopen ("conftest.out", "w");
5113 return ferror (f) || fclose (f) != 0;
5114
5115 ;
5116 return 0;
5117}
5118_ACEOF
5119ac_clean_files="$ac_clean_files conftest.out"
5120# Check that the compiler produces executables we can run. If not, either
5121# the compiler is broken, or we cross compile.
5122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5123$as_echo_n "checking whether we are cross compiling... " >&6; }
5124if test "$cross_compiling" != yes; then
5125 { { ac_try="$ac_link"
5126case "(($ac_try" in
5127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5128 *) ac_try_echo=$ac_try;;
5129esac
5130eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5131$as_echo "$ac_try_echo"; } >&5
5132 (eval "$ac_link") 2>&5
5133 ac_status=$?
5134 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5135 test $ac_status = 0; }
5136 if { ac_try='./conftest$ac_cv_exeext'
5137 { { case "(($ac_try" in
5138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5139 *) ac_try_echo=$ac_try;;
5140esac
5141eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5142$as_echo "$ac_try_echo"; } >&5
5143 (eval "$ac_try") 2>&5
5144 ac_status=$?
5145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5146 test $ac_status = 0; }; }; then
5147 cross_compiling=no
5148 else
5149 if test "$cross_compiling" = maybe; then
5150 cross_compiling=yes
5151 else
5152 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5153$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005154as_fn_error $? "cannot run C compiled programs.
cristycd4c5312009-11-22 01:19:08 +00005155If you meant to cross compile, use \`--host'.
cristy98dddb52010-11-04 00:30:15 +00005156See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00005157 fi
5158 fi
5159fi
5160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5161$as_echo "$cross_compiling" >&6; }
5162
5163rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5164ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00005165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00005166$as_echo_n "checking for suffix of object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005167if ${ac_cv_objext+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005168 $as_echo_n "(cached) " >&6
5169else
cristy8b350f62009-11-15 23:12:43 +00005170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005171/* end confdefs.h. */
5172
5173int
5174main ()
5175{
5176
5177 ;
5178 return 0;
5179}
5180_ACEOF
5181rm -f conftest.o conftest.obj
cristy8b350f62009-11-15 23:12:43 +00005182if { { ac_try="$ac_compile"
cristy3ed852e2009-09-05 21:47:34 +00005183case "(($ac_try" in
5184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5185 *) ac_try_echo=$ac_try;;
5186esac
cristy8b350f62009-11-15 23:12:43 +00005187eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5188$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00005189 (eval "$ac_compile") 2>&5
5190 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00005191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5192 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00005193 for ac_file in conftest.o conftest.obj conftest.*; do
5194 test -f "$ac_file" || continue;
5195 case $ac_file in
5196 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5197 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5198 break;;
5199 esac
5200done
5201else
5202 $as_echo "$as_me: failed program was:" >&5
5203sed 's/^/| /' conftest.$ac_ext >&5
5204
cristy8b350f62009-11-15 23:12:43 +00005205{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00005206$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005207as_fn_error $? "cannot compute suffix of object files: cannot compile
5208See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00005209fi
cristy3ed852e2009-09-05 21:47:34 +00005210rm -f conftest.$ac_cv_objext conftest.$ac_ext
5211fi
cristy8b350f62009-11-15 23:12:43 +00005212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +00005213$as_echo "$ac_cv_objext" >&6; }
5214OBJEXT=$ac_cv_objext
5215ac_objext=$OBJEXT
cristy8b350f62009-11-15 23:12:43 +00005216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00005217$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005218if ${ac_cv_c_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005219 $as_echo_n "(cached) " >&6
5220else
cristy8b350f62009-11-15 23:12:43 +00005221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005222/* end confdefs.h. */
5223
5224int
5225main ()
5226{
5227#ifndef __GNUC__
5228 choke me
5229#endif
5230
5231 ;
5232 return 0;
5233}
5234_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005235if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005236 ac_compiler_gnu=yes
5237else
cristy8b350f62009-11-15 23:12:43 +00005238 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00005239fi
cristy3ed852e2009-09-05 21:47:34 +00005240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5241ac_cv_c_compiler_gnu=$ac_compiler_gnu
5242
5243fi
cristy8b350f62009-11-15 23:12:43 +00005244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00005245$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5246if test $ac_compiler_gnu = yes; then
5247 GCC=yes
5248else
5249 GCC=
5250fi
5251ac_test_CFLAGS=${CFLAGS+set}
5252ac_save_CFLAGS=$CFLAGS
cristy8b350f62009-11-15 23:12:43 +00005253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00005254$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005255if ${ac_cv_prog_cc_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005256 $as_echo_n "(cached) " >&6
5257else
5258 ac_save_c_werror_flag=$ac_c_werror_flag
5259 ac_c_werror_flag=yes
5260 ac_cv_prog_cc_g=no
5261 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00005262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005263/* end confdefs.h. */
5264
5265int
5266main ()
5267{
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_cv_prog_cc_g=yes
5275else
cristy8b350f62009-11-15 23:12:43 +00005276 CFLAGS=""
5277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005278/* end confdefs.h. */
5279
5280int
5281main ()
5282{
5283
5284 ;
5285 return 0;
5286}
5287_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005288if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005289
cristy8b350f62009-11-15 23:12:43 +00005290else
5291 ac_c_werror_flag=$ac_save_c_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00005292 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00005293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005294/* end confdefs.h. */
5295
5296int
5297main ()
5298{
5299
5300 ;
5301 return 0;
5302}
5303_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005304if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005305 ac_cv_prog_cc_g=yes
cristy3ed852e2009-09-05 21:47:34 +00005306fi
cristy3ed852e2009-09-05 21:47:34 +00005307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5308fi
cristy3ed852e2009-09-05 21:47:34 +00005309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5310fi
cristy3ed852e2009-09-05 21:47:34 +00005311rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5312 ac_c_werror_flag=$ac_save_c_werror_flag
5313fi
cristy8b350f62009-11-15 23:12:43 +00005314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00005315$as_echo "$ac_cv_prog_cc_g" >&6; }
5316if test "$ac_test_CFLAGS" = set; then
5317 CFLAGS=$ac_save_CFLAGS
5318elif test $ac_cv_prog_cc_g = yes; then
5319 if test "$GCC" = yes; then
5320 CFLAGS="-g -O2"
5321 else
5322 CFLAGS="-g"
5323 fi
5324else
5325 if test "$GCC" = yes; then
5326 CFLAGS="-O2"
5327 else
5328 CFLAGS=
5329 fi
5330fi
cristy8b350f62009-11-15 23:12:43 +00005331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005332$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005333if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005334 $as_echo_n "(cached) " >&6
5335else
5336 ac_cv_prog_cc_c89=no
5337ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00005338cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005339/* end confdefs.h. */
5340#include <stdarg.h>
5341#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00005342struct stat;
cristy3ed852e2009-09-05 21:47:34 +00005343/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5344struct buf { int x; };
5345FILE * (*rcsopen) (struct buf *, struct stat *, int);
5346static char *e (p, i)
5347 char **p;
5348 int i;
5349{
5350 return p[i];
5351}
5352static char *f (char * (*g) (char **, int), char **p, ...)
5353{
5354 char *s;
5355 va_list v;
5356 va_start (v,p);
5357 s = g (p, va_arg (v,int));
5358 va_end (v);
5359 return s;
5360}
5361
5362/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5363 function prototypes and stuff, but not '\xHH' hex character constants.
5364 These don't provoke an error unfortunately, instead are silently treated
5365 as 'x'. The following induces an error, until -std is added to get
5366 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5367 array size at least. It's necessary to write '\x00'==0 to get something
5368 that's true only with -std. */
5369int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5370
5371/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5372 inside strings and character constants. */
5373#define FOO(x) 'x'
5374int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5375
5376int test (int i, double x);
5377struct s1 {int (*f) (int a);};
5378struct s2 {int (*f) (double a);};
5379int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5380int argc;
5381char **argv;
5382int
5383main ()
5384{
5385return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5386 ;
5387 return 0;
5388}
5389_ACEOF
5390for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5391 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5392do
5393 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00005394 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005395 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00005396fi
cristy3ed852e2009-09-05 21:47:34 +00005397rm -f core conftest.err conftest.$ac_objext
5398 test "x$ac_cv_prog_cc_c89" != "xno" && break
5399done
5400rm -f conftest.$ac_ext
5401CC=$ac_save_CC
5402
5403fi
5404# AC_CACHE_VAL
5405case "x$ac_cv_prog_cc_c89" in
5406 x)
cristy8b350f62009-11-15 23:12:43 +00005407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00005408$as_echo "none needed" >&6; } ;;
5409 xno)
cristy8b350f62009-11-15 23:12:43 +00005410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00005411$as_echo "unsupported" >&6; } ;;
5412 *)
5413 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00005414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005415$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5416esac
cristy8b350f62009-11-15 23:12:43 +00005417if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00005418
cristy8b350f62009-11-15 23:12:43 +00005419fi
cristy3ed852e2009-09-05 21:47:34 +00005420
5421ac_ext=c
5422ac_cpp='$CPP $CPPFLAGS'
5423ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5424ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5425ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00005426
cristya5bda012013-11-03 18:05:38 +00005427ac_ext=c
5428ac_cpp='$CPP $CPPFLAGS'
5429ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5430ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5431ac_compiler_gnu=$ac_cv_c_compiler_gnu
5432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5433$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5434if ${am_cv_prog_cc_c_o+:} false; then :
5435 $as_echo_n "(cached) " >&6
5436else
5437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5438/* end confdefs.h. */
5439
5440int
5441main ()
5442{
5443
5444 ;
5445 return 0;
5446}
5447_ACEOF
5448 # Make sure it works both with $CC and with simple cc.
5449 # Following AC_PROG_CC_C_O, we do the test twice because some
5450 # compilers refuse to overwrite an existing .o file with -o,
5451 # though they will create one.
5452 am_cv_prog_cc_c_o=yes
5453 for am_i in 1 2; do
5454 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5455 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5456 ac_status=$?
5457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5458 (exit $ac_status); } \
5459 && test -f conftest2.$ac_objext; then
5460 : OK
5461 else
5462 am_cv_prog_cc_c_o=no
5463 break
5464 fi
5465 done
5466 rm -f core conftest*
5467 unset am_i
5468fi
5469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5470$as_echo "$am_cv_prog_cc_c_o" >&6; }
5471if test "$am_cv_prog_cc_c_o" != yes; then
5472 # Losing compiler, so override with the script.
5473 # FIXME: It is wrong to rewrite CC.
5474 # But if we don't then we get into trouble of one sort or another.
5475 # A longer-term fix would be to have automake use am__CC in this case,
5476 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5477 CC="$am_aux_dir/compile $CC"
5478fi
5479ac_ext=c
5480ac_cpp='$CPP $CPPFLAGS'
5481ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5482ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5483ac_compiler_gnu=$ac_cv_c_compiler_gnu
5484
5485
cristy73bd4a52010-10-05 11:24:23 +00005486depcc="$CC" am_compiler_list=
5487
5488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5489$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005490if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00005491 $as_echo_n "(cached) " >&6
5492else
5493 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5494 # We make a subdir and do the tests there. Otherwise we can end up
5495 # making bogus files that we don't know about and never remove. For
5496 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00005497 # making a dummy file named 'D' -- because '-MD' means "put the output
5498 # in D".
cristy7247bba2012-02-05 16:37:27 +00005499 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00005500 mkdir conftest.dir
5501 # Copy depcomp to subdir because otherwise we won't find it if we're
5502 # using a relative directory.
5503 cp "$am_depcomp" conftest.dir
5504 cd conftest.dir
5505 # We will build objects and dependencies in a subdirectory because
5506 # it helps to detect inapplicable dependency modes. For instance
5507 # both Tru64's cc and ICC support -MD to output dependencies as a
5508 # side effect of compilation, but ICC will put the dependencies in
5509 # the current directory while Tru64 will put them in the object
5510 # directory.
5511 mkdir sub
5512
5513 am_cv_CC_dependencies_compiler_type=none
5514 if test "$am_compiler_list" = ""; then
5515 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5516 fi
5517 am__universal=false
5518 case " $depcc " in #(
5519 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5520 esac
5521
5522 for depmode in $am_compiler_list; do
5523 # Setup a source with many dependencies, because some compilers
5524 # like to wrap large dependency lists on column 80 (with \), and
5525 # we should not choose a depcomp mode which is confused by this.
5526 #
5527 # We need to recreate these files for each test, as the compiler may
5528 # overwrite some of them when testing with obscure command lines.
5529 # This happens at least with the AIX C compiler.
5530 : > sub/conftest.c
5531 for i in 1 2 3 4 5 6; do
5532 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00005533 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5534 # Solaris 10 /bin/sh.
5535 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00005536 done
5537 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5538
cristyc0890a62012-07-19 00:18:20 +00005539 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00005540 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00005541 # handle '-M -o', and we need to detect this. Also, some Intel
5542 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00005543 am__obj=sub/conftest.${OBJEXT-o}
5544 am__minus_obj="-o $am__obj"
5545 case $depmode in
5546 gcc)
5547 # This depmode causes a compiler race in universal mode.
5548 test "$am__universal" = false || continue
5549 ;;
5550 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00005551 # After this tag, mechanisms are not by side-effect, so they'll
5552 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00005553 if test "x$enable_dependency_tracking" = xyes; then
5554 continue
5555 else
5556 break
5557 fi
5558 ;;
cristy7247bba2012-02-05 16:37:27 +00005559 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00005560 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00005561 # not run yet. These depmodes are late enough in the game, and
5562 # so weak that their functioning should not be impacted.
5563 am__obj=conftest.${OBJEXT-o}
5564 am__minus_obj=
5565 ;;
5566 none) break ;;
5567 esac
5568 if depmode=$depmode \
5569 source=sub/conftest.c object=$am__obj \
5570 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5571 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5572 >/dev/null 2>conftest.err &&
5573 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5574 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5575 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5576 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5577 # icc doesn't choke on unknown options, it will just issue warnings
5578 # or remarks (even with -Werror). So we grep stderr for any message
5579 # that says an option was ignored or not supported.
5580 # When given -MP, icc 7.0 and 7.1 complain thusly:
5581 # icc: Command line warning: ignoring option '-M'; no argument required
5582 # The diagnosis changed in icc 8.0:
5583 # icc: Command line remark: option '-MP' not supported
5584 if (grep 'ignoring option' conftest.err ||
5585 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5586 am_cv_CC_dependencies_compiler_type=$depmode
5587 break
5588 fi
5589 fi
5590 done
5591
5592 cd ..
5593 rm -rf conftest.dir
5594else
5595 am_cv_CC_dependencies_compiler_type=none
5596fi
5597
5598fi
5599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5600$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5601CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5602
5603 if
5604 test "x$enable_dependency_tracking" != xno \
5605 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5606 am__fastdepCC_TRUE=
5607 am__fastdepCC_FALSE='#'
5608else
5609 am__fastdepCC_TRUE='#'
5610 am__fastdepCC_FALSE=
5611fi
5612
5613
cristy3ed852e2009-09-05 21:47:34 +00005614
cristya0b81c32010-01-22 02:54:33 +00005615ac_ext=c
5616ac_cpp='$CPP $CPPFLAGS'
5617ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5618ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5619ac_compiler_gnu=$ac_cv_c_compiler_gnu
5620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5621$as_echo_n "checking how to run the C preprocessor... " >&6; }
5622# On Suns, sometimes $CPP names a directory.
5623if test -n "$CPP" && test -d "$CPP"; then
5624 CPP=
5625fi
5626if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00005627 if ${ac_cv_prog_CPP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005628 $as_echo_n "(cached) " >&6
5629else
5630 # Double quotes because CPP needs to be expanded
5631 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5632 do
5633 ac_preproc_ok=false
5634for ac_c_preproc_warn_flag in '' yes
5635do
5636 # Use a header file that comes with gcc, so configuring glibc
5637 # with a fresh cross-compiler works.
5638 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5639 # <limits.h> exists even on freestanding compilers.
5640 # On the NeXT, cc -E runs the code through the compiler's parser,
5641 # not just through cpp. "Syntax error" is here to catch this case.
5642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5643/* end confdefs.h. */
5644#ifdef __STDC__
5645# include <limits.h>
5646#else
5647# include <assert.h>
5648#endif
5649 Syntax error
5650_ACEOF
5651if ac_fn_c_try_cpp "$LINENO"; then :
5652
5653else
5654 # Broken: fails on valid input.
5655continue
5656fi
cristyda16f162011-02-19 23:52:17 +00005657rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005658
5659 # OK, works on sane cases. Now check whether nonexistent headers
5660 # can be detected and how.
5661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5662/* end confdefs.h. */
5663#include <ac_nonexistent.h>
5664_ACEOF
5665if ac_fn_c_try_cpp "$LINENO"; then :
5666 # Broken: success on invalid input.
5667continue
5668else
5669 # Passes both tests.
5670ac_preproc_ok=:
5671break
5672fi
cristyda16f162011-02-19 23:52:17 +00005673rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005674
5675done
5676# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005677rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005678if $ac_preproc_ok; then :
5679 break
5680fi
5681
5682 done
5683 ac_cv_prog_CPP=$CPP
5684
5685fi
5686 CPP=$ac_cv_prog_CPP
5687else
5688 ac_cv_prog_CPP=$CPP
5689fi
5690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5691$as_echo "$CPP" >&6; }
5692ac_preproc_ok=false
5693for ac_c_preproc_warn_flag in '' yes
5694do
5695 # Use a header file that comes with gcc, so configuring glibc
5696 # with a fresh cross-compiler works.
5697 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5698 # <limits.h> exists even on freestanding compilers.
5699 # On the NeXT, cc -E runs the code through the compiler's parser,
5700 # not just through cpp. "Syntax error" is here to catch this case.
5701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5702/* end confdefs.h. */
5703#ifdef __STDC__
5704# include <limits.h>
5705#else
5706# include <assert.h>
5707#endif
5708 Syntax error
5709_ACEOF
5710if ac_fn_c_try_cpp "$LINENO"; then :
5711
5712else
5713 # Broken: fails on valid input.
5714continue
5715fi
cristyda16f162011-02-19 23:52:17 +00005716rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005717
5718 # OK, works on sane cases. Now check whether nonexistent headers
5719 # can be detected and how.
5720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5721/* end confdefs.h. */
5722#include <ac_nonexistent.h>
5723_ACEOF
5724if ac_fn_c_try_cpp "$LINENO"; then :
5725 # Broken: success on invalid input.
5726continue
5727else
5728 # Passes both tests.
5729ac_preproc_ok=:
5730break
5731fi
cristyda16f162011-02-19 23:52:17 +00005732rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005733
5734done
5735# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005736rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005737if $ac_preproc_ok; then :
5738
5739else
5740 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5741$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005742as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5743See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005744fi
5745
5746ac_ext=c
5747ac_cpp='$CPP $CPPFLAGS'
5748ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5749ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5750ac_compiler_gnu=$ac_cv_c_compiler_gnu
5751
5752
5753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5754$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005755if ${ac_cv_path_GREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005756 $as_echo_n "(cached) " >&6
5757else
5758 if test -z "$GREP"; then
5759 ac_path_GREP_found=false
5760 # Loop through the user's path and test for each of PROGNAME-LIST
5761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5762for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5763do
5764 IFS=$as_save_IFS
5765 test -z "$as_dir" && as_dir=.
5766 for ac_prog in grep ggrep; do
5767 for ac_exec_ext in '' $ac_executable_extensions; do
5768 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00005769 as_fn_executable_p "$ac_path_GREP" || continue
cristya0b81c32010-01-22 02:54:33 +00005770# Check for GNU ac_path_GREP and select it if it is found.
5771 # Check for GNU $ac_path_GREP
5772case `"$ac_path_GREP" --version 2>&1` in
5773*GNU*)
5774 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5775*)
5776 ac_count=0
5777 $as_echo_n 0123456789 >"conftest.in"
5778 while :
5779 do
5780 cat "conftest.in" "conftest.in" >"conftest.tmp"
5781 mv "conftest.tmp" "conftest.in"
5782 cp "conftest.in" "conftest.nl"
5783 $as_echo 'GREP' >> "conftest.nl"
5784 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5785 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5786 as_fn_arith $ac_count + 1 && ac_count=$as_val
5787 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5788 # Best one so far, save it but keep looking for a better one
5789 ac_cv_path_GREP="$ac_path_GREP"
5790 ac_path_GREP_max=$ac_count
5791 fi
5792 # 10*(2^10) chars as input seems more than enough
5793 test $ac_count -gt 10 && break
5794 done
5795 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5796esac
5797
5798 $ac_path_GREP_found && break 3
5799 done
5800 done
5801 done
5802IFS=$as_save_IFS
5803 if test -z "$ac_cv_path_GREP"; then
cristy98dddb52010-11-04 00:30:15 +00005804 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005805 fi
5806else
5807 ac_cv_path_GREP=$GREP
5808fi
5809
5810fi
5811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5812$as_echo "$ac_cv_path_GREP" >&6; }
5813 GREP="$ac_cv_path_GREP"
5814
5815
5816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5817$as_echo_n "checking for egrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005818if ${ac_cv_path_EGREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005819 $as_echo_n "(cached) " >&6
5820else
5821 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5822 then ac_cv_path_EGREP="$GREP -E"
5823 else
5824 if test -z "$EGREP"; then
5825 ac_path_EGREP_found=false
5826 # Loop through the user's path and test for each of PROGNAME-LIST
5827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5828for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5829do
5830 IFS=$as_save_IFS
5831 test -z "$as_dir" && as_dir=.
5832 for ac_prog in egrep; do
5833 for ac_exec_ext in '' $ac_executable_extensions; do
5834 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00005835 as_fn_executable_p "$ac_path_EGREP" || continue
cristya0b81c32010-01-22 02:54:33 +00005836# Check for GNU ac_path_EGREP and select it if it is found.
5837 # Check for GNU $ac_path_EGREP
5838case `"$ac_path_EGREP" --version 2>&1` in
5839*GNU*)
5840 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5841*)
5842 ac_count=0
5843 $as_echo_n 0123456789 >"conftest.in"
5844 while :
5845 do
5846 cat "conftest.in" "conftest.in" >"conftest.tmp"
5847 mv "conftest.tmp" "conftest.in"
5848 cp "conftest.in" "conftest.nl"
5849 $as_echo 'EGREP' >> "conftest.nl"
5850 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5851 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5852 as_fn_arith $ac_count + 1 && ac_count=$as_val
5853 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5854 # Best one so far, save it but keep looking for a better one
5855 ac_cv_path_EGREP="$ac_path_EGREP"
5856 ac_path_EGREP_max=$ac_count
5857 fi
5858 # 10*(2^10) chars as input seems more than enough
5859 test $ac_count -gt 10 && break
5860 done
5861 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5862esac
5863
5864 $ac_path_EGREP_found && break 3
5865 done
5866 done
5867 done
5868IFS=$as_save_IFS
5869 if test -z "$ac_cv_path_EGREP"; then
cristy98dddb52010-11-04 00:30:15 +00005870 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005871 fi
5872else
5873 ac_cv_path_EGREP=$EGREP
5874fi
5875
5876 fi
5877fi
5878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5879$as_echo "$ac_cv_path_EGREP" >&6; }
5880 EGREP="$ac_cv_path_EGREP"
5881
5882
5883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5884$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005885if ${ac_cv_header_stdc+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005886 $as_echo_n "(cached) " >&6
5887else
5888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5889/* end confdefs.h. */
5890#include <stdlib.h>
5891#include <stdarg.h>
5892#include <string.h>
5893#include <float.h>
5894
5895int
5896main ()
5897{
5898
5899 ;
5900 return 0;
5901}
5902_ACEOF
5903if ac_fn_c_try_compile "$LINENO"; then :
5904 ac_cv_header_stdc=yes
5905else
5906 ac_cv_header_stdc=no
5907fi
5908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5909
5910if test $ac_cv_header_stdc = yes; then
5911 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5913/* end confdefs.h. */
5914#include <string.h>
5915
5916_ACEOF
5917if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5918 $EGREP "memchr" >/dev/null 2>&1; then :
5919
5920else
5921 ac_cv_header_stdc=no
5922fi
5923rm -f conftest*
5924
5925fi
5926
5927if test $ac_cv_header_stdc = yes; then
5928 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5930/* end confdefs.h. */
5931#include <stdlib.h>
5932
5933_ACEOF
5934if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5935 $EGREP "free" >/dev/null 2>&1; then :
5936
5937else
5938 ac_cv_header_stdc=no
5939fi
5940rm -f conftest*
5941
5942fi
5943
5944if test $ac_cv_header_stdc = yes; then
5945 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5946 if test "$cross_compiling" = yes; then :
5947 :
5948else
5949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5950/* end confdefs.h. */
5951#include <ctype.h>
5952#include <stdlib.h>
5953#if ((' ' & 0x0FF) == 0x020)
5954# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5955# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5956#else
5957# define ISLOWER(c) \
5958 (('a' <= (c) && (c) <= 'i') \
5959 || ('j' <= (c) && (c) <= 'r') \
5960 || ('s' <= (c) && (c) <= 'z'))
5961# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5962#endif
5963
5964#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5965int
5966main ()
5967{
5968 int i;
5969 for (i = 0; i < 256; i++)
5970 if (XOR (islower (i), ISLOWER (i))
5971 || toupper (i) != TOUPPER (i))
5972 return 2;
5973 return 0;
5974}
5975_ACEOF
5976if ac_fn_c_try_run "$LINENO"; then :
5977
5978else
5979 ac_cv_header_stdc=no
5980fi
5981rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5982 conftest.$ac_objext conftest.beam conftest.$ac_ext
5983fi
5984
5985fi
5986fi
5987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5988$as_echo "$ac_cv_header_stdc" >&6; }
5989if test $ac_cv_header_stdc = yes; then
5990
5991$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5992
5993fi
5994
5995# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5996for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5997 inttypes.h stdint.h unistd.h
5998do :
5999 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6000ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6001"
cristy98dddb52010-11-04 00:30:15 +00006002if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristya0b81c32010-01-22 02:54:33 +00006003 cat >>confdefs.h <<_ACEOF
6004#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6005_ACEOF
6006
6007fi
6008
6009done
6010
6011
6012
6013 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 +00006014if test "x$ac_cv_header_minix_config_h" = xyes; then :
cristya0b81c32010-01-22 02:54:33 +00006015 MINIX=yes
6016else
6017 MINIX=
6018fi
6019
6020
6021 if test "$MINIX" = yes; then
6022
6023$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6024
6025
6026$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6027
6028
6029$as_echo "#define _MINIX 1" >>confdefs.h
6030
6031 fi
6032
6033
6034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6035$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006036if ${ac_cv_safe_to_define___extensions__+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006037 $as_echo_n "(cached) " >&6
6038else
6039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6040/* end confdefs.h. */
6041
cristy14fefe52012-05-21 00:59:18 +00006042# define __EXTENSIONS__ 1
6043 $ac_includes_default
cristya0b81c32010-01-22 02:54:33 +00006044int
6045main ()
6046{
6047
6048 ;
6049 return 0;
6050}
6051_ACEOF
6052if ac_fn_c_try_compile "$LINENO"; then :
6053 ac_cv_safe_to_define___extensions__=yes
6054else
6055 ac_cv_safe_to_define___extensions__=no
6056fi
6057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6058fi
6059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6060$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6061 test $ac_cv_safe_to_define___extensions__ = yes &&
6062 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6063
6064 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6065
6066 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6067
6068 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6069
6070 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6071
6072
6073
cristy9af1cbf2014-12-28 22:03:09 +00006074# ==============================================================================
6075# Find required base packages
6076# ==============================================================================
cristy9e007fe2015-01-03 16:05:07 +00006077if test -n "$ac_tool_prefix"; then
6078 for ac_prog in ar lib "link -lib"
6079 do
6080 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6081set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6083$as_echo_n "checking for $ac_word... " >&6; }
6084if ${ac_cv_prog_AR+:} false; then :
6085 $as_echo_n "(cached) " >&6
6086else
6087 if test -n "$AR"; then
6088 ac_cv_prog_AR="$AR" # Let the user override the test.
6089else
6090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6091for as_dir in $PATH
6092do
6093 IFS=$as_save_IFS
6094 test -z "$as_dir" && as_dir=.
6095 for ac_exec_ext in '' $ac_executable_extensions; do
6096 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6097 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6099 break 2
6100 fi
6101done
6102 done
6103IFS=$as_save_IFS
6104
6105fi
6106fi
6107AR=$ac_cv_prog_AR
6108if test -n "$AR"; then
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6110$as_echo "$AR" >&6; }
6111else
6112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6113$as_echo "no" >&6; }
6114fi
6115
6116
6117 test -n "$AR" && break
6118 done
6119fi
6120if test -z "$AR"; then
6121 ac_ct_AR=$AR
6122 for ac_prog in ar lib "link -lib"
6123do
6124 # Extract the first word of "$ac_prog", so it can be a program name with args.
6125set dummy $ac_prog; ac_word=$2
6126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6127$as_echo_n "checking for $ac_word... " >&6; }
6128if ${ac_cv_prog_ac_ct_AR+:} false; then :
6129 $as_echo_n "(cached) " >&6
6130else
6131 if test -n "$ac_ct_AR"; then
6132 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6133else
6134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6135for as_dir in $PATH
6136do
6137 IFS=$as_save_IFS
6138 test -z "$as_dir" && as_dir=.
6139 for ac_exec_ext in '' $ac_executable_extensions; do
6140 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6141 ac_cv_prog_ac_ct_AR="$ac_prog"
6142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6143 break 2
6144 fi
6145done
6146 done
6147IFS=$as_save_IFS
6148
6149fi
6150fi
6151ac_ct_AR=$ac_cv_prog_ac_ct_AR
6152if test -n "$ac_ct_AR"; then
6153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6154$as_echo "$ac_ct_AR" >&6; }
6155else
6156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6157$as_echo "no" >&6; }
6158fi
6159
6160
6161 test -n "$ac_ct_AR" && break
6162done
6163
6164 if test "x$ac_ct_AR" = x; then
6165 AR="false"
6166 else
6167 case $cross_compiling:$ac_tool_warned in
6168yes:)
6169{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6170$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6171ac_tool_warned=yes ;;
6172esac
6173 AR=$ac_ct_AR
6174 fi
6175fi
6176
6177: ${AR=ar}
6178
6179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
6180$as_echo_n "checking the archiver ($AR) interface... " >&6; }
6181if ${am_cv_ar_interface+:} false; then :
6182 $as_echo_n "(cached) " >&6
6183else
6184 ac_ext=c
6185ac_cpp='$CPP $CPPFLAGS'
6186ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6187ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6188ac_compiler_gnu=$ac_cv_c_compiler_gnu
6189
6190 am_cv_ar_interface=ar
6191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6192/* end confdefs.h. */
6193int some_variable = 0;
6194_ACEOF
6195if ac_fn_c_try_compile "$LINENO"; then :
6196 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
6197 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
6198 (eval $am_ar_try) 2>&5
6199 ac_status=$?
6200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6201 test $ac_status = 0; }
6202 if test "$ac_status" -eq 0; then
6203 am_cv_ar_interface=ar
6204 else
6205 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
6206 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
6207 (eval $am_ar_try) 2>&5
6208 ac_status=$?
6209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6210 test $ac_status = 0; }
6211 if test "$ac_status" -eq 0; then
6212 am_cv_ar_interface=lib
6213 else
6214 am_cv_ar_interface=unknown
6215 fi
6216 fi
6217 rm -f conftest.lib libconftest.a
6218
6219fi
6220rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6221 ac_ext=c
6222ac_cpp='$CPP $CPPFLAGS'
6223ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6224ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6225ac_compiler_gnu=$ac_cv_c_compiler_gnu
6226
6227fi
6228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
6229$as_echo "$am_cv_ar_interface" >&6; }
6230
6231case $am_cv_ar_interface in
6232ar)
6233 ;;
6234lib)
6235 # Microsoft lib, so override with the ar-lib wrapper script.
6236 # FIXME: It is wrong to rewrite AR.
6237 # But if we don't then we get into trouble of one sort or another.
6238 # A longer-term fix would be to have automake use am__AR in this case,
6239 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
6240 # similar.
6241 AR="$am_aux_dir/ar-lib $AR"
6242 ;;
6243unknown)
6244 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
6245 ;;
6246esac
cristy9af1cbf2014-12-28 22:03:09 +00006247
cristya0b81c32010-01-22 02:54:33 +00006248ac_ext=c
6249ac_cpp='$CPP $CPPFLAGS'
6250ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6251ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6252ac_compiler_gnu=$ac_cv_c_compiler_gnu
6253if test -n "$ac_tool_prefix"; then
6254 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
6255set dummy ${ac_tool_prefix}gcc; ac_word=$2
6256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6257$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006258if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006259 $as_echo_n "(cached) " >&6
6260else
6261 if test -n "$CC"; then
6262 ac_cv_prog_CC="$CC" # Let the user override the test.
6263else
6264as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6265for as_dir in $PATH
6266do
6267 IFS=$as_save_IFS
6268 test -z "$as_dir" && as_dir=.
6269 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006270 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006271 ac_cv_prog_CC="${ac_tool_prefix}gcc"
6272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6273 break 2
6274 fi
6275done
6276 done
6277IFS=$as_save_IFS
6278
6279fi
6280fi
6281CC=$ac_cv_prog_CC
6282if test -n "$CC"; then
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6284$as_echo "$CC" >&6; }
6285else
6286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6287$as_echo "no" >&6; }
6288fi
6289
6290
6291fi
6292if test -z "$ac_cv_prog_CC"; then
6293 ac_ct_CC=$CC
6294 # Extract the first word of "gcc", so it can be a program name with args.
6295set dummy gcc; ac_word=$2
6296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6297$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006298if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006299 $as_echo_n "(cached) " >&6
6300else
6301 if test -n "$ac_ct_CC"; then
6302 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6303else
6304as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6305for as_dir in $PATH
6306do
6307 IFS=$as_save_IFS
6308 test -z "$as_dir" && as_dir=.
6309 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006310 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006311 ac_cv_prog_ac_ct_CC="gcc"
6312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6313 break 2
6314 fi
6315done
6316 done
6317IFS=$as_save_IFS
6318
6319fi
6320fi
6321ac_ct_CC=$ac_cv_prog_ac_ct_CC
6322if test -n "$ac_ct_CC"; then
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6324$as_echo "$ac_ct_CC" >&6; }
6325else
6326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6327$as_echo "no" >&6; }
6328fi
6329
6330 if test "x$ac_ct_CC" = x; then
6331 CC=""
6332 else
6333 case $cross_compiling:$ac_tool_warned in
6334yes:)
6335{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6336$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6337ac_tool_warned=yes ;;
6338esac
6339 CC=$ac_ct_CC
6340 fi
6341else
6342 CC="$ac_cv_prog_CC"
6343fi
6344
6345if test -z "$CC"; then
6346 if test -n "$ac_tool_prefix"; then
6347 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6348set dummy ${ac_tool_prefix}cc; ac_word=$2
6349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6350$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006351if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006352 $as_echo_n "(cached) " >&6
6353else
6354 if test -n "$CC"; then
6355 ac_cv_prog_CC="$CC" # Let the user override the test.
6356else
6357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6358for as_dir in $PATH
6359do
6360 IFS=$as_save_IFS
6361 test -z "$as_dir" && as_dir=.
6362 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006363 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006364 ac_cv_prog_CC="${ac_tool_prefix}cc"
6365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6366 break 2
6367 fi
6368done
6369 done
6370IFS=$as_save_IFS
6371
6372fi
6373fi
6374CC=$ac_cv_prog_CC
6375if test -n "$CC"; then
6376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6377$as_echo "$CC" >&6; }
6378else
6379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6380$as_echo "no" >&6; }
6381fi
6382
6383
6384 fi
6385fi
6386if test -z "$CC"; then
6387 # Extract the first word of "cc", so it can be a program name with args.
6388set dummy cc; ac_word=$2
6389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6390$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006391if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006392 $as_echo_n "(cached) " >&6
6393else
6394 if test -n "$CC"; then
6395 ac_cv_prog_CC="$CC" # Let the user override the test.
6396else
6397 ac_prog_rejected=no
6398as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6399for as_dir in $PATH
6400do
6401 IFS=$as_save_IFS
6402 test -z "$as_dir" && as_dir=.
6403 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006404 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006405 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6406 ac_prog_rejected=yes
6407 continue
6408 fi
6409 ac_cv_prog_CC="cc"
6410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6411 break 2
6412 fi
6413done
6414 done
6415IFS=$as_save_IFS
6416
6417if test $ac_prog_rejected = yes; then
6418 # We found a bogon in the path, so make sure we never use it.
6419 set dummy $ac_cv_prog_CC
6420 shift
6421 if test $# != 0; then
6422 # We chose a different compiler from the bogus one.
6423 # However, it has the same basename, so the bogon will be chosen
6424 # first if we set CC to just the basename; use the full file name.
6425 shift
6426 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6427 fi
6428fi
6429fi
6430fi
6431CC=$ac_cv_prog_CC
6432if test -n "$CC"; then
6433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6434$as_echo "$CC" >&6; }
6435else
6436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6437$as_echo "no" >&6; }
6438fi
6439
6440
6441fi
6442if test -z "$CC"; then
6443 if test -n "$ac_tool_prefix"; then
6444 for ac_prog in cl.exe
6445 do
6446 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6447set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6449$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006450if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006451 $as_echo_n "(cached) " >&6
6452else
6453 if test -n "$CC"; then
6454 ac_cv_prog_CC="$CC" # Let the user override the test.
6455else
6456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6457for as_dir in $PATH
6458do
6459 IFS=$as_save_IFS
6460 test -z "$as_dir" && as_dir=.
6461 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006462 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006463 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6465 break 2
6466 fi
6467done
6468 done
6469IFS=$as_save_IFS
6470
6471fi
6472fi
6473CC=$ac_cv_prog_CC
6474if test -n "$CC"; then
6475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6476$as_echo "$CC" >&6; }
6477else
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6479$as_echo "no" >&6; }
6480fi
6481
6482
6483 test -n "$CC" && break
6484 done
6485fi
6486if test -z "$CC"; then
6487 ac_ct_CC=$CC
6488 for ac_prog in cl.exe
6489do
6490 # Extract the first word of "$ac_prog", so it can be a program name with args.
6491set dummy $ac_prog; ac_word=$2
6492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6493$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006494if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006495 $as_echo_n "(cached) " >&6
6496else
6497 if test -n "$ac_ct_CC"; then
6498 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6499else
6500as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6501for as_dir in $PATH
6502do
6503 IFS=$as_save_IFS
6504 test -z "$as_dir" && as_dir=.
6505 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006506 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006507 ac_cv_prog_ac_ct_CC="$ac_prog"
6508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6509 break 2
6510 fi
6511done
6512 done
6513IFS=$as_save_IFS
6514
6515fi
6516fi
6517ac_ct_CC=$ac_cv_prog_ac_ct_CC
6518if test -n "$ac_ct_CC"; then
6519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6520$as_echo "$ac_ct_CC" >&6; }
6521else
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6523$as_echo "no" >&6; }
6524fi
6525
6526
6527 test -n "$ac_ct_CC" && break
6528done
6529
6530 if test "x$ac_ct_CC" = x; then
6531 CC=""
6532 else
6533 case $cross_compiling:$ac_tool_warned in
6534yes:)
6535{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6536$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6537ac_tool_warned=yes ;;
6538esac
6539 CC=$ac_ct_CC
6540 fi
6541fi
6542
6543fi
6544
6545
6546test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6547$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00006548as_fn_error $? "no acceptable C compiler found in \$PATH
6549See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00006550
6551# Provide some information about the compiler.
6552$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6553set X $ac_compile
6554ac_compiler=$2
6555for ac_option in --version -v -V -qversion; do
6556 { { ac_try="$ac_compiler $ac_option >&5"
6557case "(($ac_try" in
6558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6559 *) ac_try_echo=$ac_try;;
6560esac
6561eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6562$as_echo "$ac_try_echo"; } >&5
6563 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6564 ac_status=$?
6565 if test -s conftest.err; then
6566 sed '10a\
6567... rest of stderr output deleted ...
6568 10q' conftest.err >conftest.er1
6569 cat conftest.er1 >&5
6570 fi
6571 rm -f conftest.er1 conftest.err
6572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6573 test $ac_status = 0; }
6574done
6575
6576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6577$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006578if ${ac_cv_c_compiler_gnu+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006579 $as_echo_n "(cached) " >&6
6580else
6581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6582/* end confdefs.h. */
6583
6584int
6585main ()
6586{
6587#ifndef __GNUC__
6588 choke me
6589#endif
6590
6591 ;
6592 return 0;
6593}
6594_ACEOF
6595if ac_fn_c_try_compile "$LINENO"; then :
6596 ac_compiler_gnu=yes
6597else
6598 ac_compiler_gnu=no
6599fi
6600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6601ac_cv_c_compiler_gnu=$ac_compiler_gnu
6602
6603fi
6604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6605$as_echo "$ac_cv_c_compiler_gnu" >&6; }
6606if test $ac_compiler_gnu = yes; then
6607 GCC=yes
6608else
6609 GCC=
6610fi
6611ac_test_CFLAGS=${CFLAGS+set}
6612ac_save_CFLAGS=$CFLAGS
6613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6614$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006615if ${ac_cv_prog_cc_g+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006616 $as_echo_n "(cached) " >&6
6617else
6618 ac_save_c_werror_flag=$ac_c_werror_flag
6619 ac_c_werror_flag=yes
6620 ac_cv_prog_cc_g=no
6621 CFLAGS="-g"
6622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6623/* end confdefs.h. */
6624
6625int
6626main ()
6627{
6628
6629 ;
6630 return 0;
6631}
6632_ACEOF
6633if ac_fn_c_try_compile "$LINENO"; then :
6634 ac_cv_prog_cc_g=yes
6635else
6636 CFLAGS=""
6637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6638/* end confdefs.h. */
6639
6640int
6641main ()
6642{
6643
6644 ;
6645 return 0;
6646}
6647_ACEOF
6648if ac_fn_c_try_compile "$LINENO"; then :
6649
6650else
6651 ac_c_werror_flag=$ac_save_c_werror_flag
6652 CFLAGS="-g"
6653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6654/* end confdefs.h. */
6655
6656int
6657main ()
6658{
6659
6660 ;
6661 return 0;
6662}
6663_ACEOF
6664if ac_fn_c_try_compile "$LINENO"; then :
6665 ac_cv_prog_cc_g=yes
6666fi
6667rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6668fi
6669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6670fi
6671rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6672 ac_c_werror_flag=$ac_save_c_werror_flag
6673fi
6674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6675$as_echo "$ac_cv_prog_cc_g" >&6; }
6676if test "$ac_test_CFLAGS" = set; then
6677 CFLAGS=$ac_save_CFLAGS
6678elif test $ac_cv_prog_cc_g = yes; then
6679 if test "$GCC" = yes; then
6680 CFLAGS="-g -O2"
6681 else
6682 CFLAGS="-g"
6683 fi
6684else
6685 if test "$GCC" = yes; then
6686 CFLAGS="-O2"
6687 else
6688 CFLAGS=
6689 fi
6690fi
6691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6692$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006693if ${ac_cv_prog_cc_c89+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006694 $as_echo_n "(cached) " >&6
6695else
6696 ac_cv_prog_cc_c89=no
6697ac_save_CC=$CC
6698cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6699/* end confdefs.h. */
6700#include <stdarg.h>
6701#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00006702struct stat;
cristya0b81c32010-01-22 02:54:33 +00006703/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6704struct buf { int x; };
6705FILE * (*rcsopen) (struct buf *, struct stat *, int);
6706static char *e (p, i)
6707 char **p;
6708 int i;
6709{
6710 return p[i];
6711}
6712static char *f (char * (*g) (char **, int), char **p, ...)
6713{
6714 char *s;
6715 va_list v;
6716 va_start (v,p);
6717 s = g (p, va_arg (v,int));
6718 va_end (v);
6719 return s;
6720}
6721
6722/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6723 function prototypes and stuff, but not '\xHH' hex character constants.
6724 These don't provoke an error unfortunately, instead are silently treated
6725 as 'x'. The following induces an error, until -std is added to get
6726 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6727 array size at least. It's necessary to write '\x00'==0 to get something
6728 that's true only with -std. */
6729int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6730
6731/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6732 inside strings and character constants. */
6733#define FOO(x) 'x'
6734int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6735
6736int test (int i, double x);
6737struct s1 {int (*f) (int a);};
6738struct s2 {int (*f) (double a);};
6739int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6740int argc;
6741char **argv;
6742int
6743main ()
6744{
6745return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6746 ;
6747 return 0;
6748}
6749_ACEOF
6750for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6751 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6752do
6753 CC="$ac_save_CC $ac_arg"
6754 if ac_fn_c_try_compile "$LINENO"; then :
6755 ac_cv_prog_cc_c89=$ac_arg
6756fi
6757rm -f core conftest.err conftest.$ac_objext
6758 test "x$ac_cv_prog_cc_c89" != "xno" && break
6759done
6760rm -f conftest.$ac_ext
6761CC=$ac_save_CC
6762
6763fi
6764# AC_CACHE_VAL
6765case "x$ac_cv_prog_cc_c89" in
6766 x)
6767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6768$as_echo "none needed" >&6; } ;;
6769 xno)
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6771$as_echo "unsupported" >&6; } ;;
6772 *)
6773 CC="$CC $ac_cv_prog_cc_c89"
6774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6775$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6776esac
6777if test "x$ac_cv_prog_cc_c89" != xno; then :
6778
6779fi
6780
6781ac_ext=c
6782ac_cpp='$CPP $CPPFLAGS'
6783ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6784ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6785ac_compiler_gnu=$ac_cv_c_compiler_gnu
6786
cristya5bda012013-11-03 18:05:38 +00006787ac_ext=c
6788ac_cpp='$CPP $CPPFLAGS'
6789ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6790ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6791ac_compiler_gnu=$ac_cv_c_compiler_gnu
6792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6793$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
6794if ${am_cv_prog_cc_c_o+:} false; then :
6795 $as_echo_n "(cached) " >&6
6796else
6797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6798/* end confdefs.h. */
6799
6800int
6801main ()
6802{
6803
6804 ;
6805 return 0;
6806}
6807_ACEOF
6808 # Make sure it works both with $CC and with simple cc.
6809 # Following AC_PROG_CC_C_O, we do the test twice because some
6810 # compilers refuse to overwrite an existing .o file with -o,
6811 # though they will create one.
6812 am_cv_prog_cc_c_o=yes
6813 for am_i in 1 2; do
6814 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6815 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6816 ac_status=$?
6817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6818 (exit $ac_status); } \
6819 && test -f conftest2.$ac_objext; then
6820 : OK
6821 else
6822 am_cv_prog_cc_c_o=no
6823 break
6824 fi
6825 done
6826 rm -f core conftest*
6827 unset am_i
6828fi
6829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6830$as_echo "$am_cv_prog_cc_c_o" >&6; }
6831if test "$am_cv_prog_cc_c_o" != yes; then
6832 # Losing compiler, so override with the script.
6833 # FIXME: It is wrong to rewrite CC.
6834 # But if we don't then we get into trouble of one sort or another.
6835 # A longer-term fix would be to have automake use am__CC in this case,
6836 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6837 CC="$am_aux_dir/compile $CC"
6838fi
6839ac_ext=c
6840ac_cpp='$CPP $CPPFLAGS'
6841ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6842ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6843ac_compiler_gnu=$ac_cv_c_compiler_gnu
6844
6845
cristy73bd4a52010-10-05 11:24:23 +00006846depcc="$CC" am_compiler_list=
6847
6848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6849$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006850if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006851 $as_echo_n "(cached) " >&6
6852else
6853 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6854 # We make a subdir and do the tests there. Otherwise we can end up
6855 # making bogus files that we don't know about and never remove. For
6856 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00006857 # making a dummy file named 'D' -- because '-MD' means "put the output
6858 # in D".
cristy7247bba2012-02-05 16:37:27 +00006859 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00006860 mkdir conftest.dir
6861 # Copy depcomp to subdir because otherwise we won't find it if we're
6862 # using a relative directory.
6863 cp "$am_depcomp" conftest.dir
6864 cd conftest.dir
6865 # We will build objects and dependencies in a subdirectory because
6866 # it helps to detect inapplicable dependency modes. For instance
6867 # both Tru64's cc and ICC support -MD to output dependencies as a
6868 # side effect of compilation, but ICC will put the dependencies in
6869 # the current directory while Tru64 will put them in the object
6870 # directory.
6871 mkdir sub
6872
6873 am_cv_CC_dependencies_compiler_type=none
6874 if test "$am_compiler_list" = ""; then
6875 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6876 fi
6877 am__universal=false
6878 case " $depcc " in #(
6879 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6880 esac
6881
6882 for depmode in $am_compiler_list; do
6883 # Setup a source with many dependencies, because some compilers
6884 # like to wrap large dependency lists on column 80 (with \), and
6885 # we should not choose a depcomp mode which is confused by this.
6886 #
6887 # We need to recreate these files for each test, as the compiler may
6888 # overwrite some of them when testing with obscure command lines.
6889 # This happens at least with the AIX C compiler.
6890 : > sub/conftest.c
6891 for i in 1 2 3 4 5 6; do
6892 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00006893 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6894 # Solaris 10 /bin/sh.
6895 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00006896 done
6897 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6898
cristyc0890a62012-07-19 00:18:20 +00006899 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00006900 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00006901 # handle '-M -o', and we need to detect this. Also, some Intel
6902 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00006903 am__obj=sub/conftest.${OBJEXT-o}
6904 am__minus_obj="-o $am__obj"
6905 case $depmode in
6906 gcc)
6907 # This depmode causes a compiler race in universal mode.
6908 test "$am__universal" = false || continue
6909 ;;
6910 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00006911 # After this tag, mechanisms are not by side-effect, so they'll
6912 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00006913 if test "x$enable_dependency_tracking" = xyes; then
6914 continue
6915 else
6916 break
6917 fi
6918 ;;
cristy7247bba2012-02-05 16:37:27 +00006919 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00006920 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00006921 # not run yet. These depmodes are late enough in the game, and
6922 # so weak that their functioning should not be impacted.
6923 am__obj=conftest.${OBJEXT-o}
6924 am__minus_obj=
6925 ;;
6926 none) break ;;
6927 esac
6928 if depmode=$depmode \
6929 source=sub/conftest.c object=$am__obj \
6930 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6931 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6932 >/dev/null 2>conftest.err &&
6933 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6934 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6935 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6936 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6937 # icc doesn't choke on unknown options, it will just issue warnings
6938 # or remarks (even with -Werror). So we grep stderr for any message
6939 # that says an option was ignored or not supported.
6940 # When given -MP, icc 7.0 and 7.1 complain thusly:
6941 # icc: Command line warning: ignoring option '-M'; no argument required
6942 # The diagnosis changed in icc 8.0:
6943 # icc: Command line remark: option '-MP' not supported
6944 if (grep 'ignoring option' conftest.err ||
6945 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6946 am_cv_CC_dependencies_compiler_type=$depmode
6947 break
6948 fi
6949 fi
6950 done
6951
6952 cd ..
6953 rm -rf conftest.dir
6954else
6955 am_cv_CC_dependencies_compiler_type=none
6956fi
6957
6958fi
6959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6960$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6961CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6962
6963 if
6964 test "x$enable_dependency_tracking" != xno \
6965 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6966 am__fastdepCC_TRUE=
6967 am__fastdepCC_FALSE='#'
6968else
6969 am__fastdepCC_TRUE='#'
6970 am__fastdepCC_FALSE=
6971fi
6972
6973
cristy95646052009-11-28 23:05:30 +00006974ac_ext=cpp
6975ac_cpp='$CXXCPP $CPPFLAGS'
6976ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6977ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6978ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6979if test -z "$CXX"; then
6980 if test -n "$CCC"; then
6981 CXX=$CCC
6982 else
6983 if test -n "$ac_tool_prefix"; then
6984 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6985 do
6986 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6987set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6989$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006990if ${ac_cv_prog_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006991 $as_echo_n "(cached) " >&6
6992else
6993 if test -n "$CXX"; then
6994 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6995else
6996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6997for as_dir in $PATH
6998do
6999 IFS=$as_save_IFS
7000 test -z "$as_dir" && as_dir=.
7001 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00007002 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy95646052009-11-28 23:05:30 +00007003 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7005 break 2
7006 fi
7007done
7008 done
7009IFS=$as_save_IFS
7010
7011fi
7012fi
7013CXX=$ac_cv_prog_CXX
7014if test -n "$CXX"; then
7015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
7016$as_echo "$CXX" >&6; }
7017else
7018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7019$as_echo "no" >&6; }
7020fi
7021
7022
7023 test -n "$CXX" && break
7024 done
7025fi
7026if test -z "$CXX"; then
7027 ac_ct_CXX=$CXX
7028 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7029do
7030 # Extract the first word of "$ac_prog", so it can be a program name with args.
7031set dummy $ac_prog; ac_word=$2
7032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7033$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007034if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00007035 $as_echo_n "(cached) " >&6
7036else
7037 if test -n "$ac_ct_CXX"; then
7038 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7039else
7040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7041for as_dir in $PATH
7042do
7043 IFS=$as_save_IFS
7044 test -z "$as_dir" && as_dir=.
7045 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00007046 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy95646052009-11-28 23:05:30 +00007047 ac_cv_prog_ac_ct_CXX="$ac_prog"
7048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7049 break 2
7050 fi
7051done
7052 done
7053IFS=$as_save_IFS
7054
7055fi
7056fi
7057ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7058if test -n "$ac_ct_CXX"; then
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
7060$as_echo "$ac_ct_CXX" >&6; }
7061else
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7063$as_echo "no" >&6; }
7064fi
7065
7066
7067 test -n "$ac_ct_CXX" && break
7068done
7069
7070 if test "x$ac_ct_CXX" = x; then
7071 CXX="g++"
7072 else
7073 case $cross_compiling:$ac_tool_warned in
7074yes:)
7075{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7076$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7077ac_tool_warned=yes ;;
7078esac
7079 CXX=$ac_ct_CXX
7080 fi
7081fi
7082
7083 fi
7084fi
7085# Provide some information about the compiler.
7086$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
7087set X $ac_compile
7088ac_compiler=$2
7089for ac_option in --version -v -V -qversion; do
7090 { { ac_try="$ac_compiler $ac_option >&5"
7091case "(($ac_try" in
7092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7093 *) ac_try_echo=$ac_try;;
7094esac
7095eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7096$as_echo "$ac_try_echo"; } >&5
7097 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7098 ac_status=$?
7099 if test -s conftest.err; then
7100 sed '10a\
7101... rest of stderr output deleted ...
7102 10q' conftest.err >conftest.er1
7103 cat conftest.er1 >&5
7104 fi
7105 rm -f conftest.er1 conftest.err
7106 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7107 test $ac_status = 0; }
7108done
7109
7110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
7111$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007112if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy95646052009-11-28 23:05:30 +00007113 $as_echo_n "(cached) " >&6
7114else
7115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7116/* end confdefs.h. */
7117
7118int
7119main ()
7120{
7121#ifndef __GNUC__
7122 choke me
7123#endif
7124
7125 ;
7126 return 0;
7127}
7128_ACEOF
7129if ac_fn_cxx_try_compile "$LINENO"; then :
7130 ac_compiler_gnu=yes
7131else
7132 ac_compiler_gnu=no
7133fi
7134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7135ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7136
7137fi
7138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
7139$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
7140if test $ac_compiler_gnu = yes; then
7141 GXX=yes
7142else
7143 GXX=
7144fi
7145ac_test_CXXFLAGS=${CXXFLAGS+set}
7146ac_save_CXXFLAGS=$CXXFLAGS
7147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
7148$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007149if ${ac_cv_prog_cxx_g+:} false; then :
cristy95646052009-11-28 23:05:30 +00007150 $as_echo_n "(cached) " >&6
7151else
7152 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
7153 ac_cxx_werror_flag=yes
7154 ac_cv_prog_cxx_g=no
7155 CXXFLAGS="-g"
7156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7157/* end confdefs.h. */
7158
7159int
7160main ()
7161{
7162
7163 ;
7164 return 0;
7165}
7166_ACEOF
7167if ac_fn_cxx_try_compile "$LINENO"; then :
7168 ac_cv_prog_cxx_g=yes
7169else
7170 CXXFLAGS=""
7171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7172/* end confdefs.h. */
7173
7174int
7175main ()
7176{
7177
7178 ;
7179 return 0;
7180}
7181_ACEOF
7182if ac_fn_cxx_try_compile "$LINENO"; then :
7183
7184else
7185 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7186 CXXFLAGS="-g"
7187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7188/* end confdefs.h. */
7189
7190int
7191main ()
7192{
7193
7194 ;
7195 return 0;
7196}
7197_ACEOF
7198if ac_fn_cxx_try_compile "$LINENO"; then :
7199 ac_cv_prog_cxx_g=yes
7200fi
7201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7202fi
7203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7204fi
7205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7206 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7207fi
7208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
7209$as_echo "$ac_cv_prog_cxx_g" >&6; }
7210if test "$ac_test_CXXFLAGS" = set; then
7211 CXXFLAGS=$ac_save_CXXFLAGS
7212elif test $ac_cv_prog_cxx_g = yes; then
7213 if test "$GXX" = yes; then
7214 CXXFLAGS="-g -O2"
7215 else
7216 CXXFLAGS="-g"
7217 fi
7218else
7219 if test "$GXX" = yes; then
7220 CXXFLAGS="-O2"
7221 else
7222 CXXFLAGS=
7223 fi
7224fi
7225ac_ext=c
7226ac_cpp='$CPP $CPPFLAGS'
7227ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7228ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7229ac_compiler_gnu=$ac_cv_c_compiler_gnu
7230
cristy73bd4a52010-10-05 11:24:23 +00007231depcc="$CXX" am_compiler_list=
7232
7233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7234$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007235if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007236 $as_echo_n "(cached) " >&6
7237else
7238 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7239 # We make a subdir and do the tests there. Otherwise we can end up
7240 # making bogus files that we don't know about and never remove. For
7241 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00007242 # making a dummy file named 'D' -- because '-MD' means "put the output
7243 # in D".
cristy7247bba2012-02-05 16:37:27 +00007244 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00007245 mkdir conftest.dir
7246 # Copy depcomp to subdir because otherwise we won't find it if we're
7247 # using a relative directory.
7248 cp "$am_depcomp" conftest.dir
7249 cd conftest.dir
7250 # We will build objects and dependencies in a subdirectory because
7251 # it helps to detect inapplicable dependency modes. For instance
7252 # both Tru64's cc and ICC support -MD to output dependencies as a
7253 # side effect of compilation, but ICC will put the dependencies in
7254 # the current directory while Tru64 will put them in the object
7255 # directory.
7256 mkdir sub
7257
7258 am_cv_CXX_dependencies_compiler_type=none
7259 if test "$am_compiler_list" = ""; then
7260 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7261 fi
7262 am__universal=false
7263 case " $depcc " in #(
7264 *\ -arch\ *\ -arch\ *) am__universal=true ;;
7265 esac
7266
7267 for depmode in $am_compiler_list; do
7268 # Setup a source with many dependencies, because some compilers
7269 # like to wrap large dependency lists on column 80 (with \), and
7270 # we should not choose a depcomp mode which is confused by this.
7271 #
7272 # We need to recreate these files for each test, as the compiler may
7273 # overwrite some of them when testing with obscure command lines.
7274 # This happens at least with the AIX C compiler.
7275 : > sub/conftest.c
7276 for i in 1 2 3 4 5 6; do
7277 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00007278 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
7279 # Solaris 10 /bin/sh.
7280 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00007281 done
7282 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7283
cristyc0890a62012-07-19 00:18:20 +00007284 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00007285 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00007286 # handle '-M -o', and we need to detect this. Also, some Intel
7287 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00007288 am__obj=sub/conftest.${OBJEXT-o}
7289 am__minus_obj="-o $am__obj"
7290 case $depmode in
7291 gcc)
7292 # This depmode causes a compiler race in universal mode.
7293 test "$am__universal" = false || continue
7294 ;;
7295 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00007296 # After this tag, mechanisms are not by side-effect, so they'll
7297 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00007298 if test "x$enable_dependency_tracking" = xyes; then
7299 continue
7300 else
7301 break
7302 fi
7303 ;;
cristy7247bba2012-02-05 16:37:27 +00007304 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00007305 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00007306 # not run yet. These depmodes are late enough in the game, and
7307 # so weak that their functioning should not be impacted.
7308 am__obj=conftest.${OBJEXT-o}
7309 am__minus_obj=
7310 ;;
7311 none) break ;;
7312 esac
7313 if depmode=$depmode \
7314 source=sub/conftest.c object=$am__obj \
7315 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7316 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7317 >/dev/null 2>conftest.err &&
7318 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7319 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7320 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7321 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7322 # icc doesn't choke on unknown options, it will just issue warnings
7323 # or remarks (even with -Werror). So we grep stderr for any message
7324 # that says an option was ignored or not supported.
7325 # When given -MP, icc 7.0 and 7.1 complain thusly:
7326 # icc: Command line warning: ignoring option '-M'; no argument required
7327 # The diagnosis changed in icc 8.0:
7328 # icc: Command line remark: option '-MP' not supported
7329 if (grep 'ignoring option' conftest.err ||
7330 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7331 am_cv_CXX_dependencies_compiler_type=$depmode
7332 break
7333 fi
7334 fi
7335 done
7336
7337 cd ..
7338 rm -rf conftest.dir
7339else
7340 am_cv_CXX_dependencies_compiler_type=none
7341fi
7342
7343fi
7344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
7345$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
7346CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7347
7348 if
7349 test "x$enable_dependency_tracking" != xno \
7350 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7351 am__fastdepCXX_TRUE=
7352 am__fastdepCXX_FALSE='#'
7353else
7354 am__fastdepCXX_TRUE='#'
7355 am__fastdepCXX_FALSE=
7356fi
7357
7358
cristy8b350f62009-11-15 23:12:43 +00007359 case $ac_cv_prog_cc_stdc in #(
7360 no) :
7361 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
7362 *) :
7363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cristy3ed852e2009-09-05 21:47:34 +00007364$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007365if ${ac_cv_prog_cc_c99+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007366 $as_echo_n "(cached) " >&6
7367else
7368 ac_cv_prog_cc_c99=no
7369ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00007370cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007371/* end confdefs.h. */
7372#include <stdarg.h>
7373#include <stdbool.h>
7374#include <stdlib.h>
7375#include <wchar.h>
7376#include <stdio.h>
7377
7378// Check varargs macros. These examples are taken from C99 6.10.3.5.
7379#define debug(...) fprintf (stderr, __VA_ARGS__)
7380#define showlist(...) puts (#__VA_ARGS__)
7381#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7382static void
7383test_varargs_macros (void)
7384{
7385 int x = 1234;
7386 int y = 5678;
7387 debug ("Flag");
7388 debug ("X = %d\n", x);
7389 showlist (The first, second, and third items.);
7390 report (x>y, "x is %d but y is %d", x, y);
7391}
7392
7393// Check long long types.
7394#define BIG64 18446744073709551615ull
7395#define BIG32 4294967295ul
7396#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7397#if !BIG_OK
7398 your preprocessor is broken;
7399#endif
7400#if BIG_OK
7401#else
7402 your preprocessor is broken;
7403#endif
7404static long long int bignum = -9223372036854775807LL;
7405static unsigned long long int ubignum = BIG64;
7406
7407struct incomplete_array
7408{
7409 int datasize;
7410 double data[];
7411};
7412
7413struct named_init {
7414 int number;
7415 const wchar_t *name;
7416 double average;
7417};
7418
7419typedef const char *ccp;
7420
7421static inline int
7422test_restrict (ccp restrict text)
7423{
7424 // See if C++-style comments work.
7425 // Iterate through items via the restricted pointer.
7426 // Also check for declarations in for loops.
7427 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7428 continue;
7429 return 0;
7430}
7431
7432// Check varargs and va_copy.
7433static void
7434test_varargs (const char *format, ...)
7435{
7436 va_list args;
7437 va_start (args, format);
7438 va_list args_copy;
7439 va_copy (args_copy, args);
7440
7441 const char *str;
7442 int number;
7443 float fnumber;
7444
7445 while (*format)
7446 {
7447 switch (*format++)
7448 {
7449 case 's': // string
7450 str = va_arg (args_copy, const char *);
7451 break;
7452 case 'd': // int
7453 number = va_arg (args_copy, int);
7454 break;
7455 case 'f': // float
7456 fnumber = va_arg (args_copy, double);
7457 break;
7458 default:
7459 break;
7460 }
7461 }
7462 va_end (args_copy);
7463 va_end (args);
7464}
7465
7466int
7467main ()
7468{
7469
7470 // Check bool.
7471 _Bool success = false;
7472
7473 // Check restrict.
7474 if (test_restrict ("String literal") == 0)
7475 success = true;
7476 char *restrict newvar = "Another string";
7477
7478 // Check varargs.
7479 test_varargs ("s, d' f .", "string", 65, 34.234);
7480 test_varargs_macros ();
7481
7482 // Check flexible array members.
7483 struct incomplete_array *ia =
7484 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7485 ia->datasize = 10;
7486 for (int i = 0; i < ia->datasize; ++i)
7487 ia->data[i] = i * 1.234;
7488
7489 // Check named initializers.
7490 struct named_init ni = {
7491 .number = 34,
7492 .name = L"Test wide string",
7493 .average = 543.34343,
7494 };
7495
7496 ni.number = 58;
7497
7498 int dynamic_array[ni.number];
7499 dynamic_array[ni.number - 1] = 543;
7500
7501 // work around unused variable warnings
7502 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7503 || dynamic_array[ni.number - 1] != 543);
7504
7505 ;
7506 return 0;
7507}
7508_ACEOF
cristy14fefe52012-05-21 00:59:18 +00007509for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
cristy3ed852e2009-09-05 21:47:34 +00007510do
7511 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00007512 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007513 ac_cv_prog_cc_c99=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00007514fi
cristy3ed852e2009-09-05 21:47:34 +00007515rm -f core conftest.err conftest.$ac_objext
7516 test "x$ac_cv_prog_cc_c99" != "xno" && break
7517done
7518rm -f conftest.$ac_ext
7519CC=$ac_save_CC
7520
7521fi
7522# AC_CACHE_VAL
7523case "x$ac_cv_prog_cc_c99" in
7524 x)
cristy8b350f62009-11-15 23:12:43 +00007525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00007526$as_echo "none needed" >&6; } ;;
7527 xno)
cristy8b350f62009-11-15 23:12:43 +00007528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00007529$as_echo "unsupported" >&6; } ;;
7530 *)
7531 CC="$CC $ac_cv_prog_cc_c99"
cristy8b350f62009-11-15 23:12:43 +00007532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cristy3ed852e2009-09-05 21:47:34 +00007533$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7534esac
cristy8b350f62009-11-15 23:12:43 +00007535if test "x$ac_cv_prog_cc_c99" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00007536 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
7537else
cristy8b350f62009-11-15 23:12:43 +00007538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00007539$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007540if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007541 $as_echo_n "(cached) " >&6
7542else
7543 ac_cv_prog_cc_c89=no
7544ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00007545cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007546/* end confdefs.h. */
7547#include <stdarg.h>
7548#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00007549struct stat;
cristy3ed852e2009-09-05 21:47:34 +00007550/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7551struct buf { int x; };
7552FILE * (*rcsopen) (struct buf *, struct stat *, int);
7553static char *e (p, i)
7554 char **p;
7555 int i;
7556{
7557 return p[i];
7558}
7559static char *f (char * (*g) (char **, int), char **p, ...)
7560{
7561 char *s;
7562 va_list v;
7563 va_start (v,p);
7564 s = g (p, va_arg (v,int));
7565 va_end (v);
7566 return s;
7567}
7568
7569/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7570 function prototypes and stuff, but not '\xHH' hex character constants.
7571 These don't provoke an error unfortunately, instead are silently treated
7572 as 'x'. The following induces an error, until -std is added to get
7573 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7574 array size at least. It's necessary to write '\x00'==0 to get something
7575 that's true only with -std. */
7576int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7577
7578/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7579 inside strings and character constants. */
7580#define FOO(x) 'x'
7581int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7582
7583int test (int i, double x);
7584struct s1 {int (*f) (int a);};
7585struct s2 {int (*f) (double a);};
7586int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7587int argc;
7588char **argv;
7589int
7590main ()
7591{
7592return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7593 ;
7594 return 0;
7595}
7596_ACEOF
7597for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7598 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7599do
7600 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00007601 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007602 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00007603fi
cristy3ed852e2009-09-05 21:47:34 +00007604rm -f core conftest.err conftest.$ac_objext
7605 test "x$ac_cv_prog_cc_c89" != "xno" && break
7606done
7607rm -f conftest.$ac_ext
7608CC=$ac_save_CC
7609
7610fi
7611# AC_CACHE_VAL
7612case "x$ac_cv_prog_cc_c89" in
7613 x)
cristy8b350f62009-11-15 23:12:43 +00007614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00007615$as_echo "none needed" >&6; } ;;
7616 xno)
cristy8b350f62009-11-15 23:12:43 +00007617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00007618$as_echo "unsupported" >&6; } ;;
7619 *)
7620 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00007621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00007622$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7623esac
cristy8b350f62009-11-15 23:12:43 +00007624if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00007625 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
7626else
7627 ac_cv_prog_cc_stdc=no
7628fi
7629
cristy3ed852e2009-09-05 21:47:34 +00007630fi
cristy3ed852e2009-09-05 21:47:34 +00007631 ;;
7632esac
cristy8b350f62009-11-15 23:12:43 +00007633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
cristy3ed852e2009-09-05 21:47:34 +00007634$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007635 if ${ac_cv_prog_cc_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007636 $as_echo_n "(cached) " >&6
7637fi
7638
cristy8b350f62009-11-15 23:12:43 +00007639 case $ac_cv_prog_cc_stdc in #(
7640 no) :
7641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7642$as_echo "unsupported" >&6; } ;; #(
7643 '') :
7644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7645$as_echo "none needed" >&6; } ;; #(
7646 *) :
7647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00007648$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
7649esac
7650
cristy3ed852e2009-09-05 21:47:34 +00007651ac_ext=c
7652ac_cpp='$CPP $CPPFLAGS'
7653ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7654ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7655ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy8b350f62009-11-15 23:12:43 +00007656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cristy3ed852e2009-09-05 21:47:34 +00007657$as_echo_n "checking how to run the C preprocessor... " >&6; }
7658# On Suns, sometimes $CPP names a directory.
7659if test -n "$CPP" && test -d "$CPP"; then
7660 CPP=
7661fi
7662if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00007663 if ${ac_cv_prog_CPP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007664 $as_echo_n "(cached) " >&6
7665else
7666 # Double quotes because CPP needs to be expanded
7667 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7668 do
7669 ac_preproc_ok=false
7670for ac_c_preproc_warn_flag in '' yes
7671do
7672 # Use a header file that comes with gcc, so configuring glibc
7673 # with a fresh cross-compiler works.
7674 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7675 # <limits.h> exists even on freestanding compilers.
7676 # On the NeXT, cc -E runs the code through the compiler's parser,
7677 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007679/* end confdefs.h. */
7680#ifdef __STDC__
7681# include <limits.h>
7682#else
7683# include <assert.h>
7684#endif
7685 Syntax error
7686_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007687if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007688
cristy8b350f62009-11-15 23:12:43 +00007689else
cristy3ed852e2009-09-05 21:47:34 +00007690 # Broken: fails on valid input.
7691continue
7692fi
cristyda16f162011-02-19 23:52:17 +00007693rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007694
7695 # OK, works on sane cases. Now check whether nonexistent headers
7696 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007698/* end confdefs.h. */
7699#include <ac_nonexistent.h>
7700_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007701if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007702 # Broken: success on invalid input.
7703continue
7704else
cristy3ed852e2009-09-05 21:47:34 +00007705 # Passes both tests.
7706ac_preproc_ok=:
7707break
7708fi
cristyda16f162011-02-19 23:52:17 +00007709rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007710
7711done
7712# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007713rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007714if $ac_preproc_ok; then :
cristy3ed852e2009-09-05 21:47:34 +00007715 break
7716fi
7717
7718 done
7719 ac_cv_prog_CPP=$CPP
7720
7721fi
7722 CPP=$ac_cv_prog_CPP
7723else
7724 ac_cv_prog_CPP=$CPP
7725fi
cristy8b350f62009-11-15 23:12:43 +00007726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cristy3ed852e2009-09-05 21:47:34 +00007727$as_echo "$CPP" >&6; }
7728ac_preproc_ok=false
7729for ac_c_preproc_warn_flag in '' yes
7730do
7731 # Use a header file that comes with gcc, so configuring glibc
7732 # with a fresh cross-compiler works.
7733 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7734 # <limits.h> exists even on freestanding compilers.
7735 # On the NeXT, cc -E runs the code through the compiler's parser,
7736 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007738/* end confdefs.h. */
7739#ifdef __STDC__
7740# include <limits.h>
7741#else
7742# include <assert.h>
7743#endif
7744 Syntax error
7745_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007746if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007747
cristy8b350f62009-11-15 23:12:43 +00007748else
cristy3ed852e2009-09-05 21:47:34 +00007749 # Broken: fails on valid input.
7750continue
7751fi
cristyda16f162011-02-19 23:52:17 +00007752rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007753
7754 # OK, works on sane cases. Now check whether nonexistent headers
7755 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007757/* end confdefs.h. */
7758#include <ac_nonexistent.h>
7759_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007760if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007761 # Broken: success on invalid input.
7762continue
7763else
cristy3ed852e2009-09-05 21:47:34 +00007764 # Passes both tests.
7765ac_preproc_ok=:
7766break
7767fi
cristyda16f162011-02-19 23:52:17 +00007768rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007769
7770done
7771# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007772rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007773if $ac_preproc_ok; then :
7774
cristy3ed852e2009-09-05 21:47:34 +00007775else
cristy8b350f62009-11-15 23:12:43 +00007776 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00007777$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00007778as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7779See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00007780fi
7781
7782ac_ext=c
7783ac_cpp='$CPP $CPPFLAGS'
7784ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7785ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7786ac_compiler_gnu=$ac_cv_c_compiler_gnu
7787
cristy73bd4a52010-10-05 11:24:23 +00007788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7789$as_echo_n "checking for a sed that does not truncate output... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007790if ${ac_cv_path_SED+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007791 $as_echo_n "(cached) " >&6
7792else
7793 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7794 for ac_i in 1 2 3 4 5 6 7; do
7795 ac_script="$ac_script$as_nl$ac_script"
7796 done
7797 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7798 { ac_script=; unset ac_script;}
7799 if test -z "$SED"; then
7800 ac_path_SED_found=false
7801 # Loop through the user's path and test for each of PROGNAME-LIST
7802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7803for as_dir in $PATH
7804do
7805 IFS=$as_save_IFS
7806 test -z "$as_dir" && as_dir=.
7807 for ac_prog in sed gsed; do
7808 for ac_exec_ext in '' $ac_executable_extensions; do
7809 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00007810 as_fn_executable_p "$ac_path_SED" || continue
cristy73bd4a52010-10-05 11:24:23 +00007811# Check for GNU ac_path_SED and select it if it is found.
7812 # Check for GNU $ac_path_SED
7813case `"$ac_path_SED" --version 2>&1` in
7814*GNU*)
7815 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7816*)
7817 ac_count=0
7818 $as_echo_n 0123456789 >"conftest.in"
7819 while :
7820 do
7821 cat "conftest.in" "conftest.in" >"conftest.tmp"
7822 mv "conftest.tmp" "conftest.in"
7823 cp "conftest.in" "conftest.nl"
7824 $as_echo '' >> "conftest.nl"
7825 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7826 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7827 as_fn_arith $ac_count + 1 && ac_count=$as_val
7828 if test $ac_count -gt ${ac_path_SED_max-0}; then
7829 # Best one so far, save it but keep looking for a better one
7830 ac_cv_path_SED="$ac_path_SED"
7831 ac_path_SED_max=$ac_count
7832 fi
7833 # 10*(2^10) chars as input seems more than enough
7834 test $ac_count -gt 10 && break
7835 done
7836 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7837esac
7838
7839 $ac_path_SED_found && break 3
7840 done
7841 done
7842 done
7843IFS=$as_save_IFS
7844 if test -z "$ac_cv_path_SED"; then
cristy98dddb52010-11-04 00:30:15 +00007845 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007846 fi
7847else
7848 ac_cv_path_SED=$SED
7849fi
7850
7851fi
7852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7853$as_echo "$ac_cv_path_SED" >&6; }
7854 SED="$ac_cv_path_SED"
7855 rm -f conftest.sed
7856
7857test -z "$SED" && SED=sed
7858Xsed="$SED -e 1s/^X//"
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7871$as_echo_n "checking for fgrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007872if ${ac_cv_path_FGREP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007873 $as_echo_n "(cached) " >&6
7874else
7875 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7876 then ac_cv_path_FGREP="$GREP -F"
7877 else
7878 if test -z "$FGREP"; then
7879 ac_path_FGREP_found=false
7880 # Loop through the user's path and test for each of PROGNAME-LIST
7881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7882for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7883do
7884 IFS=$as_save_IFS
7885 test -z "$as_dir" && as_dir=.
7886 for ac_prog in fgrep; do
7887 for ac_exec_ext in '' $ac_executable_extensions; do
7888 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00007889 as_fn_executable_p "$ac_path_FGREP" || continue
cristy73bd4a52010-10-05 11:24:23 +00007890# Check for GNU ac_path_FGREP and select it if it is found.
7891 # Check for GNU $ac_path_FGREP
7892case `"$ac_path_FGREP" --version 2>&1` in
7893*GNU*)
7894 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7895*)
7896 ac_count=0
7897 $as_echo_n 0123456789 >"conftest.in"
7898 while :
7899 do
7900 cat "conftest.in" "conftest.in" >"conftest.tmp"
7901 mv "conftest.tmp" "conftest.in"
7902 cp "conftest.in" "conftest.nl"
7903 $as_echo 'FGREP' >> "conftest.nl"
7904 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7905 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7906 as_fn_arith $ac_count + 1 && ac_count=$as_val
7907 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7908 # Best one so far, save it but keep looking for a better one
7909 ac_cv_path_FGREP="$ac_path_FGREP"
7910 ac_path_FGREP_max=$ac_count
7911 fi
7912 # 10*(2^10) chars as input seems more than enough
7913 test $ac_count -gt 10 && break
7914 done
7915 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7916esac
7917
7918 $ac_path_FGREP_found && break 3
7919 done
7920 done
7921 done
7922IFS=$as_save_IFS
7923 if test -z "$ac_cv_path_FGREP"; then
cristy98dddb52010-11-04 00:30:15 +00007924 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007925 fi
7926else
7927 ac_cv_path_FGREP=$FGREP
7928fi
7929
7930 fi
7931fi
7932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7933$as_echo "$ac_cv_path_FGREP" >&6; }
7934 FGREP="$ac_cv_path_FGREP"
7935
7936
7937test -z "$GREP" && GREP=grep
7938
7939
7940
7941
7942
7943
7944
7945
7946
7947
7948
7949
7950
7951
7952
7953
7954
cristy0c60a692010-11-04 01:09:47 +00007955ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7956ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7957ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7958
7959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7960$as_echo_n "checking how to print strings... " >&6; }
7961# Test print first, because it will be a builtin if present.
cristyda16f162011-02-19 23:52:17 +00007962if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
cristy0c60a692010-11-04 01:09:47 +00007963 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7964 ECHO='print -r --'
7965elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7966 ECHO='printf %s\n'
7967else
7968 # Use this function as a fallback that always works.
7969 func_fallback_echo ()
7970 {
7971 eval 'cat <<_LTECHO_EOF
7972$1
7973_LTECHO_EOF'
7974 }
7975 ECHO='func_fallback_echo'
7976fi
7977
7978# func_echo_all arg...
7979# Invoke $ECHO with all args, space-separated.
7980func_echo_all ()
7981{
7982 $ECHO ""
7983}
7984
7985case "$ECHO" in
7986 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7987$as_echo "printf" >&6; } ;;
7988 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7989$as_echo "print -r" >&6; } ;;
7990 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7991$as_echo "cat" >&6; } ;;
7992esac
7993
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
cristy73bd4a52010-10-05 11:24:23 +00008007
8008
8009# Check whether --with-gnu-ld was given.
8010if test "${with_gnu_ld+set}" = set; then :
8011 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8012else
8013 with_gnu_ld=no
8014fi
8015
8016ac_prog=ld
8017if test "$GCC" = yes; then
8018 # Check if gcc -print-prog-name=ld gives a path.
8019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
8020$as_echo_n "checking for ld used by $CC... " >&6; }
8021 case $host in
8022 *-*-mingw*)
8023 # gcc leaves a trailing carriage return which upsets mingw
8024 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8025 *)
8026 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8027 esac
8028 case $ac_prog in
8029 # Accept absolute paths.
8030 [\\/]* | ?:[\\/]*)
8031 re_direlt='/[^/][^/]*/\.\./'
8032 # Canonicalize the pathname of ld
8033 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
8034 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
8035 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
8036 done
8037 test -z "$LD" && LD="$ac_prog"
8038 ;;
8039 "")
8040 # If it fails, then pretend we aren't using GCC.
8041 ac_prog=ld
8042 ;;
8043 *)
8044 # If it is relative, then search for the first ld in PATH.
8045 with_gnu_ld=unknown
8046 ;;
8047 esac
8048elif test "$with_gnu_ld" = yes; then
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8050$as_echo_n "checking for GNU ld... " >&6; }
8051else
8052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8053$as_echo_n "checking for non-GNU ld... " >&6; }
8054fi
cristyda16f162011-02-19 23:52:17 +00008055if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008056 $as_echo_n "(cached) " >&6
8057else
8058 if test -z "$LD"; then
8059 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8060 for ac_dir in $PATH; do
8061 IFS="$lt_save_ifs"
8062 test -z "$ac_dir" && ac_dir=.
8063 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8064 lt_cv_path_LD="$ac_dir/$ac_prog"
8065 # Check to see if the program is GNU ld. I'd rather use --version,
8066 # but apparently some variants of GNU ld only accept -v.
8067 # Break only if it was the GNU/non-GNU ld that we prefer.
8068 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
8069 *GNU* | *'with BFD'*)
8070 test "$with_gnu_ld" != no && break
8071 ;;
8072 *)
8073 test "$with_gnu_ld" != yes && break
8074 ;;
8075 esac
8076 fi
8077 done
8078 IFS="$lt_save_ifs"
8079else
8080 lt_cv_path_LD="$LD" # Let the user override the test with a path.
8081fi
8082fi
8083
8084LD="$lt_cv_path_LD"
8085if test -n "$LD"; then
8086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8087$as_echo "$LD" >&6; }
8088else
8089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8090$as_echo "no" >&6; }
8091fi
cristy98dddb52010-11-04 00:30:15 +00008092test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00008093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8094$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008095if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008096 $as_echo_n "(cached) " >&6
8097else
8098 # I'd rather use --version here, but apparently some GNU lds only accept -v.
8099case `$LD -v 2>&1 </dev/null` in
8100*GNU* | *'with BFD'*)
8101 lt_cv_prog_gnu_ld=yes
8102 ;;
8103*)
8104 lt_cv_prog_gnu_ld=no
8105 ;;
8106esac
8107fi
8108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
8109$as_echo "$lt_cv_prog_gnu_ld" >&6; }
8110with_gnu_ld=$lt_cv_prog_gnu_ld
8111
8112
8113
8114
8115
8116
8117
8118
8119
cristy3ed852e2009-09-05 21:47:34 +00008120
cristy837d6dc2010-02-27 01:16:57 +00008121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
8122$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008123if ${ac_cv_prog_cc_c99+:} false; then :
cristy837d6dc2010-02-27 01:16:57 +00008124 $as_echo_n "(cached) " >&6
8125else
8126 ac_cv_prog_cc_c99=no
8127ac_save_CC=$CC
8128cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8129/* end confdefs.h. */
8130#include <stdarg.h>
8131#include <stdbool.h>
8132#include <stdlib.h>
8133#include <wchar.h>
8134#include <stdio.h>
8135
8136// Check varargs macros. These examples are taken from C99 6.10.3.5.
8137#define debug(...) fprintf (stderr, __VA_ARGS__)
8138#define showlist(...) puts (#__VA_ARGS__)
8139#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
8140static void
8141test_varargs_macros (void)
8142{
8143 int x = 1234;
8144 int y = 5678;
8145 debug ("Flag");
8146 debug ("X = %d\n", x);
8147 showlist (The first, second, and third items.);
8148 report (x>y, "x is %d but y is %d", x, y);
8149}
8150
8151// Check long long types.
8152#define BIG64 18446744073709551615ull
8153#define BIG32 4294967295ul
8154#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
8155#if !BIG_OK
8156 your preprocessor is broken;
8157#endif
8158#if BIG_OK
8159#else
8160 your preprocessor is broken;
8161#endif
8162static long long int bignum = -9223372036854775807LL;
8163static unsigned long long int ubignum = BIG64;
8164
8165struct incomplete_array
8166{
8167 int datasize;
8168 double data[];
8169};
8170
8171struct named_init {
8172 int number;
8173 const wchar_t *name;
8174 double average;
8175};
8176
8177typedef const char *ccp;
8178
8179static inline int
8180test_restrict (ccp restrict text)
8181{
8182 // See if C++-style comments work.
8183 // Iterate through items via the restricted pointer.
8184 // Also check for declarations in for loops.
8185 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
8186 continue;
8187 return 0;
8188}
8189
8190// Check varargs and va_copy.
8191static void
8192test_varargs (const char *format, ...)
8193{
8194 va_list args;
8195 va_start (args, format);
8196 va_list args_copy;
8197 va_copy (args_copy, args);
8198
8199 const char *str;
8200 int number;
8201 float fnumber;
8202
8203 while (*format)
8204 {
8205 switch (*format++)
8206 {
8207 case 's': // string
8208 str = va_arg (args_copy, const char *);
8209 break;
8210 case 'd': // int
8211 number = va_arg (args_copy, int);
8212 break;
8213 case 'f': // float
8214 fnumber = va_arg (args_copy, double);
8215 break;
8216 default:
8217 break;
8218 }
8219 }
8220 va_end (args_copy);
8221 va_end (args);
8222}
8223
8224int
8225main ()
8226{
8227
8228 // Check bool.
8229 _Bool success = false;
8230
8231 // Check restrict.
8232 if (test_restrict ("String literal") == 0)
8233 success = true;
8234 char *restrict newvar = "Another string";
8235
8236 // Check varargs.
8237 test_varargs ("s, d' f .", "string", 65, 34.234);
8238 test_varargs_macros ();
8239
8240 // Check flexible array members.
8241 struct incomplete_array *ia =
8242 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
8243 ia->datasize = 10;
8244 for (int i = 0; i < ia->datasize; ++i)
8245 ia->data[i] = i * 1.234;
8246
8247 // Check named initializers.
8248 struct named_init ni = {
8249 .number = 34,
8250 .name = L"Test wide string",
8251 .average = 543.34343,
8252 };
8253
8254 ni.number = 58;
8255
8256 int dynamic_array[ni.number];
8257 dynamic_array[ni.number - 1] = 543;
8258
8259 // work around unused variable warnings
8260 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
8261 || dynamic_array[ni.number - 1] != 543);
8262
8263 ;
8264 return 0;
8265}
8266_ACEOF
cristy14fefe52012-05-21 00:59:18 +00008267for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
cristy837d6dc2010-02-27 01:16:57 +00008268do
8269 CC="$ac_save_CC $ac_arg"
8270 if ac_fn_c_try_compile "$LINENO"; then :
8271 ac_cv_prog_cc_c99=$ac_arg
8272fi
8273rm -f core conftest.err conftest.$ac_objext
8274 test "x$ac_cv_prog_cc_c99" != "xno" && break
8275done
8276rm -f conftest.$ac_ext
8277CC=$ac_save_CC
8278
8279fi
8280# AC_CACHE_VAL
8281case "x$ac_cv_prog_cc_c99" in
8282 x)
8283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
8284$as_echo "none needed" >&6; } ;;
8285 xno)
8286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
8287$as_echo "unsupported" >&6; } ;;
8288 *)
8289 CC="$CC $ac_cv_prog_cc_c99"
8290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
8291$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
8292esac
8293if test "x$ac_cv_prog_cc_c99" != xno; then :
8294
8295fi
8296
8297
cristy73bd4a52010-10-05 11:24:23 +00008298
cristy17491be2014-06-24 01:10:53 +00008299ac_ext=c
8300ac_cpp='$CPP $CPPFLAGS'
8301ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8302ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8303ac_compiler_gnu=$ac_cv_c_compiler_gnu
8304
cristy73bd4a52010-10-05 11:24:23 +00008305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
8306$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008307if ${ac_cv_cflags_warn_all+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008308 $as_echo_n "(cached) " >&6
8309else
8310 ac_cv_cflags_warn_all="no, unknown"
cristy17491be2014-06-24 01:10:53 +00008311ac_save_CFLAGS="$CFLAGS"
8312for 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 +00008313do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
8314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8315/* end confdefs.h. */
8316
8317int
8318main ()
8319{
cristy24fc1fe2010-10-23 21:13:01 +00008320
cristy73bd4a52010-10-05 11:24:23 +00008321 ;
8322 return 0;
8323}
8324_ACEOF
8325if ac_fn_c_try_compile "$LINENO"; then :
8326 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
8327fi
8328rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8329done
cristy17491be2014-06-24 01:10:53 +00008330CFLAGS="$ac_save_CFLAGS"
8331
8332fi
8333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
8334$as_echo "$ac_cv_cflags_warn_all" >&6; }
8335
8336
8337case ".$ac_cv_cflags_warn_all" in
8338 .ok|.ok,*) ;;
8339 .|.no|.no,*) ;;
cristy146497a2015-05-17 22:46:16 +00008340 *)
8341if ${CFLAGS+:} false; then :
8342
8343 case " $CFLAGS " in #(
8344 *" $ac_cv_cflags_warn_all "*) :
8345 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$ac_cv_cflags_warn_all"; } >&5
cristy17491be2014-06-24 01:10:53 +00008346 (: CFLAGS already contains $ac_cv_cflags_warn_all) 2>&5
8347 ac_status=$?
8348 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristy146497a2015-05-17 22:46:16 +00008349 test $ac_status = 0; } ;; #(
8350 *) :
8351
8352 as_fn_append CFLAGS " $ac_cv_cflags_warn_all"
8353 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
8354 (: CFLAGS="$CFLAGS") 2>&5
cristy17491be2014-06-24 01:10:53 +00008355 ac_status=$?
8356 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8357 test $ac_status = 0; }
cristy146497a2015-05-17 22:46:16 +00008358 ;;
8359esac
8360
cristy17491be2014-06-24 01:10:53 +00008361else
cristy146497a2015-05-17 22:46:16 +00008362
8363 CFLAGS=$ac_cv_cflags_warn_all
8364 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
8365 (: CFLAGS="$CFLAGS") 2>&5
8366 ac_status=$?
8367 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8368 test $ac_status = 0; }
8369
cristy17491be2014-06-24 01:10:53 +00008370fi
8371 ;;
8372esac
8373
8374ac_ext=c
cristy73bd4a52010-10-05 11:24:23 +00008375ac_cpp='$CPP $CPPFLAGS'
8376ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8377ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8378ac_compiler_gnu=$ac_cv_c_compiler_gnu
8379
8380
cristya0b81c32010-01-22 02:54:33 +00008381
8382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8383$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8384set x ${MAKE-make}
8385ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00008386if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00008387 $as_echo_n "(cached) " >&6
8388else
8389 cat >conftest.make <<\_ACEOF
8390SHELL = /bin/sh
8391all:
8392 @echo '@@@%%%=$(MAKE)=@@@%%%'
8393_ACEOF
cristy98dddb52010-11-04 00:30:15 +00008394# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristya0b81c32010-01-22 02:54:33 +00008395case `${MAKE-make} -f conftest.make 2>/dev/null` in
8396 *@@@%%%=?*=@@@%%%*)
8397 eval ac_cv_prog_make_${ac_make}_set=yes;;
8398 *)
8399 eval ac_cv_prog_make_${ac_make}_set=no;;
8400esac
8401rm -f conftest.make
8402fi
8403if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8405$as_echo "yes" >&6; }
8406 SET_MAKE=
8407else
8408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8409$as_echo "no" >&6; }
8410 SET_MAKE="MAKE=${MAKE-make}"
8411fi
8412
cristy8b350f62009-11-15 23:12:43 +00008413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00008414$as_echo_n "checking whether ln -s works... " >&6; }
8415LN_S=$as_ln_s
8416if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00008417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00008418$as_echo "yes" >&6; }
8419else
cristy8b350f62009-11-15 23:12:43 +00008420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00008421$as_echo "no, using $LN_S" >&6; }
8422fi
8423
cristy8d0ff762013-03-10 20:33:28 +00008424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8425$as_echo_n "checking for a sed that does not truncate output... " >&6; }
8426if ${ac_cv_path_SED+:} false; then :
8427 $as_echo_n "(cached) " >&6
8428else
8429 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
8430 for ac_i in 1 2 3 4 5 6 7; do
8431 ac_script="$ac_script$as_nl$ac_script"
8432 done
8433 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
8434 { ac_script=; unset ac_script;}
8435 if test -z "$SED"; then
8436 ac_path_SED_found=false
8437 # Loop through the user's path and test for each of PROGNAME-LIST
8438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8439for as_dir in $PATH
8440do
8441 IFS=$as_save_IFS
8442 test -z "$as_dir" && as_dir=.
8443 for ac_prog in sed gsed; do
8444 for ac_exec_ext in '' $ac_executable_extensions; do
8445 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
8446 as_fn_executable_p "$ac_path_SED" || continue
8447# Check for GNU ac_path_SED and select it if it is found.
8448 # Check for GNU $ac_path_SED
8449case `"$ac_path_SED" --version 2>&1` in
8450*GNU*)
8451 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
8452*)
8453 ac_count=0
8454 $as_echo_n 0123456789 >"conftest.in"
8455 while :
8456 do
8457 cat "conftest.in" "conftest.in" >"conftest.tmp"
8458 mv "conftest.tmp" "conftest.in"
8459 cp "conftest.in" "conftest.nl"
8460 $as_echo '' >> "conftest.nl"
8461 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
8462 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8463 as_fn_arith $ac_count + 1 && ac_count=$as_val
8464 if test $ac_count -gt ${ac_path_SED_max-0}; then
8465 # Best one so far, save it but keep looking for a better one
8466 ac_cv_path_SED="$ac_path_SED"
8467 ac_path_SED_max=$ac_count
8468 fi
8469 # 10*(2^10) chars as input seems more than enough
8470 test $ac_count -gt 10 && break
8471 done
8472 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8473esac
8474
8475 $ac_path_SED_found && break 3
8476 done
8477 done
8478 done
8479IFS=$as_save_IFS
8480 if test -z "$ac_cv_path_SED"; then
8481 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
8482 fi
8483else
8484 ac_cv_path_SED=$SED
8485fi
8486
8487fi
8488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8489$as_echo "$ac_cv_path_SED" >&6; }
8490 SED="$ac_cv_path_SED"
8491 rm -f conftest.sed
8492
cristybc556452012-08-17 19:44:03 +00008493for ac_prog in gawk mawk nawk awk
8494do
8495 # Extract the first word of "$ac_prog", so it can be a program name with args.
8496set dummy $ac_prog; ac_word=$2
8497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8498$as_echo_n "checking for $ac_word... " >&6; }
8499if ${ac_cv_prog_AWK+:} false; then :
8500 $as_echo_n "(cached) " >&6
8501else
8502 if test -n "$AWK"; then
8503 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8504else
8505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8506for as_dir in $PATH
8507do
8508 IFS=$as_save_IFS
8509 test -z "$as_dir" && as_dir=.
8510 for ac_exec_ext in '' $ac_executable_extensions; do
8511 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8512 ac_cv_prog_AWK="$ac_prog"
8513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8514 break 2
8515 fi
8516done
8517 done
8518IFS=$as_save_IFS
8519
8520fi
8521fi
8522AWK=$ac_cv_prog_AWK
8523if test -n "$AWK"; then
8524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8525$as_echo "$AWK" >&6; }
8526else
8527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8528$as_echo "no" >&6; }
8529fi
8530
8531
8532 test -n "$AWK" && break
8533done
8534
cristy73bd4a52010-10-05 11:24:23 +00008535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
8536$as_echo_n "checking if malloc debugging is wanted... " >&6; }
8537
8538# Check whether --with-dmalloc was given.
8539if test "${with_dmalloc+set}" = set; then :
8540 withval=$with_dmalloc; if test "$withval" = yes; then
8541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8542$as_echo "yes" >&6; }
8543
8544$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
8545
8546 LIBS="$LIBS -ldmalloc"
8547 LDFLAGS="$LDFLAGS -g"
8548else
8549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8550$as_echo "no" >&6; }
8551fi
8552else
8553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8554$as_echo "no" >&6; }
8555fi
8556
8557
8558
8559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
8560$as_echo_n "checking for __attribute__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008561if ${ax_cv___attribute__+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008562 $as_echo_n "(cached) " >&6
8563else
8564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8565/* end confdefs.h. */
8566#include <stdlib.h>
cristy146497a2015-05-17 22:46:16 +00008567 static void foo(void) __attribute__ ((unused));
cristy73bd4a52010-10-05 11:24:23 +00008568 static void
8569 foo(void) {
8570 exit(1);
8571 }
8572
8573int
8574main ()
8575{
8576
8577 ;
8578 return 0;
8579}
8580_ACEOF
8581if ac_fn_c_try_compile "$LINENO"; then :
8582 ax_cv___attribute__=yes
8583else
8584 ax_cv___attribute__=no
8585
8586fi
8587rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8588
8589fi
8590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
8591$as_echo "$ax_cv___attribute__" >&6; }
8592 if test "$ax_cv___attribute__" = "yes"; then
8593
8594$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
8595
8596 fi
8597
cristy146497a2015-05-17 22:46:16 +00008598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
8599$as_echo_n "checking for C compiler vendor... " >&6; }
8600if ${ax_cv_c_compiler_vendor+:} false; then :
8601 $as_echo_n "(cached) " >&6
8602else
8603 # note: don't check for gcc first since some other compilers define __GNUC__
8604 vendors="intel: __ICC,__ECC,__INTEL_COMPILER
8605 ibm: __xlc__,__xlC__,__IBMC__,__IBMCPP__
8606 pathscale: __PATHCC__,__PATHSCALE__
8607 clang: __clang__
8608 cray: _CRAYC
8609 fujitsu: __FUJITSU
8610 gnu: __GNUC__
8611 sun: __SUNPRO_C,__SUNPRO_CC
8612 hp: __HP_cc,__HP_aCC
8613 dec: __DECC,__DECCXX,__DECC_VER,__DECCXX_VER
8614 borland: __BORLANDC__,__CODEGEARC__,__TURBOC__
8615 comeau: __COMO__
8616 kai: __KCC
8617 lcc: __LCC__
8618 sgi: __sgi,sgi
8619 microsoft: _MSC_VER
8620 metrowerks: __MWERKS__
8621 watcom: __WATCOMC__
8622 portland: __PGI
8623 tcc: __TINYC__
8624 unknown: UNKNOWN"
8625 for ventest in $vendors; do
8626 case $ventest in
8627 *:) vendor=$ventest; continue ;;
8628 *) vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" ;;
8629 esac
8630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8631/* end confdefs.h. */
8632
8633int
8634main ()
8635{
8636
8637 #if !($vencpp)
8638 thisisanerror;
8639 #endif
8640
8641 ;
8642 return 0;
8643}
8644_ACEOF
8645if ac_fn_c_try_compile "$LINENO"; then :
8646 break
8647fi
8648rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8649 done
8650 ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1`
8651
8652fi
8653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5
8654$as_echo "$ax_cv_c_compiler_vendor" >&6; }
8655
8656
cristy73bd4a52010-10-05 11:24:23 +00008657
8658
cristya0459972013-11-03 18:09:35 +00008659
8660
cristy17491be2014-06-24 01:10:53 +00008661
cristya0459972013-11-03 18:09:35 +00008662# Check whether --with-gcc-arch was given.
8663if test "${with_gcc_arch+set}" = set; then :
8664 withval=$with_gcc_arch; ax_gcc_arch=$withval
8665else
cristy17491be2014-06-24 01:10:53 +00008666 ax_gcc_arch=yes
cristya0459972013-11-03 18:09:35 +00008667fi
8668
8669
8670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8671$as_echo_n "checking for gcc architecture flag... " >&6; }
8672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
8673$as_echo "" >&6; }
8674if ${ax_cv_gcc_archflag+:} false; then :
8675 $as_echo_n "(cached) " >&6
8676else
8677
8678ax_cv_gcc_archflag="unknown"
8679
8680if test "$GCC" = yes; then
8681
8682if test "x$ax_gcc_arch" = xyes; then
8683ax_gcc_arch=""
8684if test "$cross_compiling" = no; then
8685case $host_cpu in
cristy17491be2014-06-24 01:10:53 +00008686 i[3456]86*|x86_64*|amd64*) # use cpuid codes
cristya0459972013-11-03 18:09:35 +00008687
8688ac_ext=c
8689ac_cpp='$CPP $CPPFLAGS'
8690ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8691ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8692ac_compiler_gnu=$ac_cv_c_compiler_gnu
8693
8694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5
8695$as_echo_n "checking for x86 cpuid 0 output... " >&6; }
8696if ${ax_cv_gcc_x86_cpuid_0+:} false; then :
8697 $as_echo_n "(cached) " >&6
8698else
8699 if test "$cross_compiling" = yes; then :
8700 ax_cv_gcc_x86_cpuid_0=unknown
8701else
8702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8703/* end confdefs.h. */
8704#include <stdio.h>
8705int
8706main ()
8707{
8708
8709 int op = 0, eax, ebx, ecx, edx;
8710 FILE *f;
8711 __asm__("cpuid"
8712 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8713 : "a" (op));
8714 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8715 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8716 fclose(f);
8717 return 0;
8718
8719 ;
8720 return 0;
8721}
8722_ACEOF
8723if ac_fn_c_try_run "$LINENO"; then :
8724 ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid
8725else
8726 ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid
8727fi
8728rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8729 conftest.$ac_objext conftest.beam conftest.$ac_ext
8730fi
8731
8732fi
8733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5
8734$as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; }
8735ac_ext=c
8736ac_cpp='$CPP $CPPFLAGS'
8737ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8738ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8739ac_compiler_gnu=$ac_cv_c_compiler_gnu
8740
8741
8742
8743ac_ext=c
8744ac_cpp='$CPP $CPPFLAGS'
8745ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8746ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8747ac_compiler_gnu=$ac_cv_c_compiler_gnu
8748
8749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5
8750$as_echo_n "checking for x86 cpuid 1 output... " >&6; }
8751if ${ax_cv_gcc_x86_cpuid_1+:} false; then :
8752 $as_echo_n "(cached) " >&6
8753else
8754 if test "$cross_compiling" = yes; then :
8755 ax_cv_gcc_x86_cpuid_1=unknown
8756else
8757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8758/* end confdefs.h. */
8759#include <stdio.h>
8760int
8761main ()
8762{
8763
8764 int op = 1, eax, ebx, ecx, edx;
8765 FILE *f;
8766 __asm__("cpuid"
8767 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8768 : "a" (op));
8769 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8770 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8771 fclose(f);
8772 return 0;
8773
8774 ;
8775 return 0;
8776}
8777_ACEOF
8778if ac_fn_c_try_run "$LINENO"; then :
8779 ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid
8780else
8781 ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid
8782fi
8783rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8784 conftest.$ac_objext conftest.beam conftest.$ac_ext
8785fi
8786
8787fi
8788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5
8789$as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; }
8790ac_ext=c
8791ac_cpp='$CPP $CPPFLAGS'
8792ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8793ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8794ac_compiler_gnu=$ac_cv_c_compiler_gnu
8795
8796
8797 case $ax_cv_gcc_x86_cpuid_0 in
cristy146497a2015-05-17 22:46:16 +00008798 *:756e6547:6c65746e:49656e69) # Intel
cristya0459972013-11-03 18:09:35 +00008799 case $ax_cv_gcc_x86_cpuid_1 in
cristy146497a2015-05-17 22:46:16 +00008800 *5[4578]?:*:*:*) ax_gcc_arch="pentium-mmx pentium" ;;
8801 *5[123]?:*:*:*) ax_gcc_arch=pentium ;;
8802 *0?61?:*:*:*|?61?:*:*:*|61?:*:*:*) ax_gcc_arch=pentiumpro ;;
8803 *0?6[356]?:*:*:*|?6[356]?:*:*:*|6[356]?:*:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8804 *0?6[78ab]?:*:*:*|?6[78ab]?:*:*:*|6[78ab]?:*:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8805 *0?6[9d]?:*:*:*|?6[9d]?:*:*:*|6[9d]?:*:*:*|*1?65?:*:*:*) ax_gcc_arch="pentium-m pentium3 pentiumpro" ;;
8806 *0?6e?:*:*:*|?6e?:*:*:*|6e?:*:*:*) ax_gcc_arch="yonah pentium-m pentium3 pentiumpro" ;;
8807 *0?6f?:*:*:*|?6f?:*:*:*|6f?:*:*:*|*1?66?:*:*:*) ax_gcc_arch="core2 pentium-m pentium3 pentiumpro" ;;
cristya0459972013-11-03 18:09:35 +00008808 *1?6[7d]?:*:*:*) ax_gcc_arch="penryn core2 pentium-m pentium3 pentiumpro" ;;
cristy146497a2015-05-17 22:46:16 +00008809 *1?6[aef]?:*:*:*|*2?6e?:*:*:*) ax_gcc_arch="nehalem corei7 core2 pentium-m pentium3 pentiumpro" ;;
8810 *2?6[5cf]?:*:*:*) ax_gcc_arch="westmere corei7 core2 pentium-m pentium3 pentiumpro" ;;
8811 *2?6[ad]?:*:*:*) ax_gcc_arch="sandybridge corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
8812 *3?6[ae]?:*:*:*) ax_gcc_arch="ivybridge core-avx-i corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
8813 *3?6[cf]?:*:*:*|*4?6[56]?:*:*:*) ax_gcc_arch="haswell core-avx2 core-avx-i corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
8814 *3?6d?:*:*:*) ax_gcc_arch="broadwell core-avx2 core-avx-i corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
8815 *1?6c?:*:*:*|*2?6[67]?:*:*:*|*3?6[56]?:*:*:*) ax_gcc_arch="bonnell atom core2 pentium-m pentium3 pentiumpro" ;;
8816 *3?67?:*:*:*|*[45]?6[ad]?:*:*:*) ax_gcc_arch="silvermont atom core2 pentium-m pentium3 pentiumpro" ;;
8817 *000?f[012]?:*:*:*|?f[012]?:*:*:*|f[012]?:*:*:*) ax_gcc_arch="pentium4 pentiumpro" ;;
8818 *000?f[346]?:*:*:*|?f[346]?:*:*:*|f[346]?:*:*:*) ax_gcc_arch="nocona prescott pentium4 pentiumpro" ;;
8819 # fallback
8820 *5??:*:*:*) ax_gcc_arch=pentium ;;
8821 *??6??:*:*:*) ax_gcc_arch="core2 pentiumpro" ;;
cristy17491be2014-06-24 01:10:53 +00008822 *6??:*:*:*) ax_gcc_arch=pentiumpro ;;
cristy146497a2015-05-17 22:46:16 +00008823 *00??f??:*:*:*|??f??:*:*:*|?f??:*:*:*|f??:*:*:*) ax_gcc_arch="pentium4 pentiumpro" ;;
cristya0459972013-11-03 18:09:35 +00008824 esac ;;
cristy146497a2015-05-17 22:46:16 +00008825 *:68747541:444d4163:69746e65) # AMD
cristya0459972013-11-03 18:09:35 +00008826 case $ax_cv_gcc_x86_cpuid_1 in
8827 *5[67]?:*:*:*) ax_gcc_arch=k6 ;;
cristy146497a2015-05-17 22:46:16 +00008828 *5[8]?:*:*:*) ax_gcc_arch="k6-2 k6" ;;
8829 *5[9d]?:*:*:*) ax_gcc_arch="k6-3 k6" ;;
cristya0459972013-11-03 18:09:35 +00008830 *6[12]?:*:*:*) ax_gcc_arch="athlon k7" ;;
8831 *6[34]?:*:*:*) ax_gcc_arch="athlon-tbird k7" ;;
cristy146497a2015-05-17 22:46:16 +00008832 *6[678a]?:*:*:*) ax_gcc_arch="athlon-xp athlon-4 athlon k7" ;;
8833 *000?f[4578bcef]?:*:*:*|?f[4578bcef]?:*:*:*|f[4578bcef]?:*:*:*|*001?f[4578bcf]?:*:*:*|1?f[4578bcf]?:*:*:*) ax_gcc_arch="athlon64 k8" ;;
8834 *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" ;;
8835 *010?f[245689a]?:*:*:*|10?f[245689a]?:*:*:*|*030?f1?:*:*:*|30?f1?:*:*:*) ax_gcc_arch="barcelona amdfam10 k8" ;;
8836 *050?f[12]?:*:*:*|50?f[12]?:*:*:*) ax_gcc_arch="btver1 amdfam10 k8" ;;
8837 *060?f1?:*:*:*|60?f1?:*:*:*) ax_gcc_arch="bdver1 amdfam10 k8" ;;
8838 *060?f2?:*:*:*|60?f2?:*:*:*|*061?f[03]?:*:*:*|61?f[03]?:*:*:*) ax_gcc_arch="bdver2 bdver1 amdfam10 k8" ;;
8839 *063?f0?:*:*:*|63?f0?:*:*:*) ax_gcc_arch="bdver3 bdver2 bdver1 amdfam10 k8" ;;
8840 *07[03]?f0?:*:*:*|7[03]?f0?:*:*:*) ax_gcc_arch="btver2 btver1 amdfam10 k8" ;;
8841 # fallback
8842 *0[13]??f??:*:*:*|[13]??f??:*:*:*) ax_gcc_arch="barcelona amdfam10 k8" ;;
8843 *020?f??:*:*:*|20?f??:*:*:*) ax_gcc_arch="athlon64-sse3 k8-sse3 athlon64 k8" ;;
8844 *05??f??:*:*:*|5??f??:*:*:*) ax_gcc_arch="btver1 amdfam10 k8" ;;
8845 *060?f??:*:*:*|60?f??:*:*:*) ax_gcc_arch="bdver1 amdfam10 k8" ;;
8846 *061?f??:*:*:*|61?f??:*:*:*) ax_gcc_arch="bdver2 bdver1 amdfam10 k8" ;;
8847 *06??f??:*:*:*|6??f??:*:*:*) ax_gcc_arch="bdver3 bdver2 bdver1 amdfam10 k8" ;;
8848 *070?f??:*:*:*|70?f??:*:*:*) ax_gcc_arch="btver2 btver1 amdfam10 k8" ;;
8849 *???f??:*:*:*) ax_gcc_arch="amdfam10 k8" ;;
cristya0459972013-11-03 18:09:35 +00008850 esac ;;
cristy146497a2015-05-17 22:46:16 +00008851 *:746e6543:736c7561:48727561) # IDT / VIA (Centaur)
cristya0459972013-11-03 18:09:35 +00008852 case $ax_cv_gcc_x86_cpuid_1 in
8853 *54?:*:*:*) ax_gcc_arch=winchip-c6 ;;
cristy146497a2015-05-17 22:46:16 +00008854 *5[89]?:*:*:*) ax_gcc_arch=winchip2 ;;
8855 *66?:*:*:*) ax_gcc_arch=winchip2 ;;
cristya0459972013-11-03 18:09:35 +00008856 *6[78]?:*:*:*) ax_gcc_arch=c3 ;;
cristy146497a2015-05-17 22:46:16 +00008857 *6[9adf]?:*:*:*) ax_gcc_arch="c3-2 c3" ;;
cristya0459972013-11-03 18:09:35 +00008858 esac ;;
8859 esac
8860 if test x"$ax_gcc_arch" = x; then # fallback
8861 case $host_cpu in
8862 i586*) ax_gcc_arch=pentium ;;
8863 i686*) ax_gcc_arch=pentiumpro ;;
8864 esac
8865 fi
8866 ;;
8867
8868 sparc*)
8869 # Extract the first word of "prtdiag", so it can be a program name with args.
8870set dummy prtdiag; ac_word=$2
8871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8872$as_echo_n "checking for $ac_word... " >&6; }
8873if ${ac_cv_path_PRTDIAG+:} false; then :
8874 $as_echo_n "(cached) " >&6
8875else
8876 case $PRTDIAG in
8877 [\\/]* | ?:[\\/]*)
8878 ac_cv_path_PRTDIAG="$PRTDIAG" # Let the user override the test with a path.
8879 ;;
8880 *)
8881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8882as_dummy="$PATH:/usr/platform/`uname -i`/sbin/:/usr/platform/`uname -m`/sbin/"
8883for as_dir in $as_dummy
8884do
8885 IFS=$as_save_IFS
8886 test -z "$as_dir" && as_dir=.
8887 for ac_exec_ext in '' $ac_executable_extensions; do
8888 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8889 ac_cv_path_PRTDIAG="$as_dir/$ac_word$ac_exec_ext"
8890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8891 break 2
8892 fi
8893done
8894 done
8895IFS=$as_save_IFS
8896
8897 test -z "$ac_cv_path_PRTDIAG" && ac_cv_path_PRTDIAG="prtdiag"
8898 ;;
8899esac
8900fi
8901PRTDIAG=$ac_cv_path_PRTDIAG
8902if test -n "$PRTDIAG"; then
8903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRTDIAG" >&5
8904$as_echo "$PRTDIAG" >&6; }
8905else
8906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8907$as_echo "no" >&6; }
8908fi
8909
8910
8911 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 +00008912 cputype=`echo "$cputype" | tr -d ' -' | $SED 's/SPARCIIi/SPARCII/' |tr $as_cr_LETTERS $as_cr_letters`
cristya0459972013-11-03 18:09:35 +00008913 case $cputype in
8914 *ultrasparciv*) ax_gcc_arch="ultrasparc4 ultrasparc3 ultrasparc v9" ;;
8915 *ultrasparciii*) ax_gcc_arch="ultrasparc3 ultrasparc v9" ;;
8916 *ultrasparc*) ax_gcc_arch="ultrasparc v9" ;;
8917 *supersparc*|*tms390z5[05]*) ax_gcc_arch="supersparc v8" ;;
8918 *hypersparc*|*rt62[056]*) ax_gcc_arch="hypersparc v8" ;;
8919 *cypress*) ax_gcc_arch=cypress ;;
8920 esac ;;
8921
8922 alphaev5) ax_gcc_arch=ev5 ;;
8923 alphaev56) ax_gcc_arch=ev56 ;;
8924 alphapca56) ax_gcc_arch="pca56 ev56" ;;
8925 alphapca57) ax_gcc_arch="pca57 pca56 ev56" ;;
8926 alphaev6) ax_gcc_arch=ev6 ;;
8927 alphaev67) ax_gcc_arch=ev67 ;;
8928 alphaev68) ax_gcc_arch="ev68 ev67" ;;
8929 alphaev69) ax_gcc_arch="ev69 ev68 ev67" ;;
8930 alphaev7) ax_gcc_arch="ev7 ev69 ev68 ev67" ;;
8931 alphaev79) ax_gcc_arch="ev79 ev7 ev69 ev68 ev67" ;;
8932
8933 powerpc*)
cristy17491be2014-06-24 01:10:53 +00008934 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`
8935 cputype=`echo $cputype | $SED -e 's/ppc//g;s/ *//g'`
cristya0459972013-11-03 18:09:35 +00008936 case $cputype in
8937 *750*) ax_gcc_arch="750 G3" ;;
8938 *740[0-9]*) ax_gcc_arch="$cputype 7400 G4" ;;
8939 *74[4-5][0-9]*) ax_gcc_arch="$cputype 7450 G4" ;;
8940 *74[0-9][0-9]*) ax_gcc_arch="$cputype G4" ;;
8941 *970*) ax_gcc_arch="970 G5 power4";;
8942 *POWER4*|*power4*|*gq*) ax_gcc_arch="power4 970";;
8943 *POWER5*|*power5*|*gr*|*gs*) ax_gcc_arch="power5 power4 970";;
8944 603ev|8240) ax_gcc_arch="$cputype 603e 603";;
8945 *) ax_gcc_arch=$cputype ;;
8946 esac
8947 ax_gcc_arch="$ax_gcc_arch powerpc"
8948 ;;
8949esac
8950fi # not cross-compiling
8951fi # guess arch
8952
8953if test "x$ax_gcc_arch" != x -a "x$ax_gcc_arch" != xno; then
cristy146497a2015-05-17 22:46:16 +00008954if test "xyes" = xyes; then # if we require portable code
8955 flag_prefixes="-mtune="
8956 if test "x$ax_cv_c_compiler_vendor" = xclang; then flag_prefixes="-march="; fi
8957 # -mcpu=$arch and m$arch generate nonportable code on every arch except
8958 # x86. And some other arches (e.g. Alpha) don't accept -mtune. Grrr.
8959 case $host_cpu in i*86|x86_64*|amd64*) flag_prefixes="$flag_prefixes -mcpu= -m";; esac
8960else
8961 flag_prefixes="-march= -mcpu= -m"
8962fi
8963for flag_prefix in $flag_prefixes; do
8964 for arch in $ax_gcc_arch; do
8965 flag="$flag_prefix$arch"
cristya0459972013-11-03 18:09:35 +00008966 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
8967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
8968$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
8969if eval \${$as_CACHEVAR+:} false; then :
8970 $as_echo_n "(cached) " >&6
8971else
8972
8973 ax_check_save_flags=$CFLAGS
8974 CFLAGS="$CFLAGS $flag"
8975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8976/* end confdefs.h. */
8977
8978int
8979main ()
8980{
8981
8982 ;
8983 return 0;
8984}
8985_ACEOF
8986if ac_fn_c_try_compile "$LINENO"; then :
8987 eval "$as_CACHEVAR=yes"
8988else
8989 eval "$as_CACHEVAR=no"
8990fi
8991rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8992 CFLAGS=$ax_check_save_flags
8993fi
8994eval ac_res=\$$as_CACHEVAR
8995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8996$as_echo "$ac_res" >&6; }
cristy146497a2015-05-17 22:46:16 +00008997if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
8998 if test "x$ax_cv_c_compiler_vendor" = xclang; then
8999 if test "xyes" = xyes; then
9000 if test "x$flag" = "x-march=$arch"; then flag=-mtune=$arch; fi
9001 fi
9002 fi; ax_cv_gcc_archflag=$flag; break
cristya0459972013-11-03 18:09:35 +00009003else
9004 :
9005fi
9006
9007 done
9008 test "x$ax_cv_gcc_archflag" = xunknown || break
9009done
9010fi
9011
9012fi # $GCC=yes
9013
9014fi
9015
9016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
9017$as_echo_n "checking for gcc architecture flag... " >&6; }
9018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_archflag" >&5
9019$as_echo "$ax_cv_gcc_archflag" >&6; }
9020if test "x$ax_cv_gcc_archflag" = xunknown; then
9021 :
9022else
9023 CFLAGS="$CFLAGS $ax_cv_gcc_archflag"
9024fi
9025
9026
9027
cristy146497a2015-05-17 22:46:16 +00009028
9029
9030
9031
9032
cristy73bd4a52010-10-05 11:24:23 +00009033if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
9034 if test -n "$ac_tool_prefix"; then
9035 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
9036set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
9037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9038$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009039if ${ac_cv_path_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009040 $as_echo_n "(cached) " >&6
9041else
9042 case $PKG_CONFIG in
9043 [\\/]* | ?:[\\/]*)
9044 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9045 ;;
9046 *)
9047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9048for as_dir in $PATH
9049do
9050 IFS=$as_save_IFS
9051 test -z "$as_dir" && as_dir=.
9052 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009053 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009054 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9056 break 2
9057 fi
9058done
9059 done
9060IFS=$as_save_IFS
9061
9062 ;;
9063esac
9064fi
9065PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9066if test -n "$PKG_CONFIG"; then
9067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9068$as_echo "$PKG_CONFIG" >&6; }
9069else
9070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9071$as_echo "no" >&6; }
9072fi
9073
9074
9075fi
9076if test -z "$ac_cv_path_PKG_CONFIG"; then
9077 ac_pt_PKG_CONFIG=$PKG_CONFIG
9078 # Extract the first word of "pkg-config", so it can be a program name with args.
9079set dummy pkg-config; ac_word=$2
9080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9081$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009082if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009083 $as_echo_n "(cached) " >&6
9084else
9085 case $ac_pt_PKG_CONFIG in
9086 [\\/]* | ?:[\\/]*)
9087 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
9088 ;;
9089 *)
9090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9091for as_dir in $PATH
9092do
9093 IFS=$as_save_IFS
9094 test -z "$as_dir" && as_dir=.
9095 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009096 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009097 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9099 break 2
9100 fi
9101done
9102 done
9103IFS=$as_save_IFS
9104
9105 ;;
9106esac
9107fi
9108ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
9109if test -n "$ac_pt_PKG_CONFIG"; then
9110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
9111$as_echo "$ac_pt_PKG_CONFIG" >&6; }
9112else
9113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9114$as_echo "no" >&6; }
9115fi
9116
9117 if test "x$ac_pt_PKG_CONFIG" = x; then
9118 PKG_CONFIG=""
9119 else
9120 case $cross_compiling:$ac_tool_warned in
9121yes:)
9122{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9123$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9124ac_tool_warned=yes ;;
9125esac
9126 PKG_CONFIG=$ac_pt_PKG_CONFIG
9127 fi
9128else
9129 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
9130fi
9131
9132fi
9133if test -n "$PKG_CONFIG"; then
9134 _pkg_min_version=0.9.0
9135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
9136$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
9137 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
9138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9139$as_echo "yes" >&6; }
9140 else
9141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9142$as_echo "no" >&6; }
9143 PKG_CONFIG=""
9144 fi
cristy73bd4a52010-10-05 11:24:23 +00009145fi
cristy3ed852e2009-09-05 21:47:34 +00009146
cristy9af1cbf2014-12-28 22:03:09 +00009147
9148
cristyd95b7a52013-10-23 13:12:53 +00009149# Test for 64-bit build.
9150# The cast to long int works around a bug in the HP C Compiler
9151# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9152# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9153# This bug is HP SR number 8606223364.
9154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
9155$as_echo_n "checking size of size_t... " >&6; }
9156if ${ac_cv_sizeof_size_t+:} false; then :
9157 $as_echo_n "(cached) " >&6
9158else
9159 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
9160
9161else
9162 if test "$ac_cv_type_size_t" = yes; then
9163 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9164$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9165as_fn_error 77 "cannot compute sizeof (size_t)
9166See \`config.log' for more details" "$LINENO" 5; }
9167 else
9168 ac_cv_sizeof_size_t=0
9169 fi
9170fi
9171
9172fi
9173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
9174$as_echo "$ac_cv_sizeof_size_t" >&6; }
9175
9176
9177
9178cat >>confdefs.h <<_ACEOF
9179#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
9180_ACEOF
9181
9182
9183
9184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
9185$as_echo_n "checking for C compiler vendor... " >&6; }
9186if ${ax_cv_c_compiler_vendor+:} false; then :
9187 $as_echo_n "(cached) " >&6
9188else
cristy146497a2015-05-17 22:46:16 +00009189 # note: don't check for gcc first since some other compilers define __GNUC__
cristyd95b7a52013-10-23 13:12:53 +00009190 vendors="intel: __ICC,__ECC,__INTEL_COMPILER
9191 ibm: __xlc__,__xlC__,__IBMC__,__IBMCPP__
9192 pathscale: __PATHCC__,__PATHSCALE__
9193 clang: __clang__
cristy146497a2015-05-17 22:46:16 +00009194 cray: _CRAYC
cristy17491be2014-06-24 01:10:53 +00009195 fujitsu: __FUJITSU
cristyd95b7a52013-10-23 13:12:53 +00009196 gnu: __GNUC__
9197 sun: __SUNPRO_C,__SUNPRO_CC
9198 hp: __HP_cc,__HP_aCC
9199 dec: __DECC,__DECCXX,__DECC_VER,__DECCXX_VER
cristy146497a2015-05-17 22:46:16 +00009200 borland: __BORLANDC__,__CODEGEARC__,__TURBOC__
cristyd95b7a52013-10-23 13:12:53 +00009201 comeau: __COMO__
cristyd95b7a52013-10-23 13:12:53 +00009202 kai: __KCC
9203 lcc: __LCC__
9204 sgi: __sgi,sgi
9205 microsoft: _MSC_VER
9206 metrowerks: __MWERKS__
9207 watcom: __WATCOMC__
9208 portland: __PGI
cristy146497a2015-05-17 22:46:16 +00009209 tcc: __TINYC__
cristyd95b7a52013-10-23 13:12:53 +00009210 unknown: UNKNOWN"
9211 for ventest in $vendors; do
9212 case $ventest in
9213 *:) vendor=$ventest; continue ;;
9214 *) vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" ;;
9215 esac
9216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9217/* end confdefs.h. */
9218
9219int
9220main ()
9221{
9222
9223 #if !($vencpp)
9224 thisisanerror;
9225 #endif
9226
9227 ;
9228 return 0;
9229}
9230_ACEOF
9231if ac_fn_c_try_compile "$LINENO"; then :
9232 break
9233fi
9234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9235 done
9236 ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1`
9237
9238fi
9239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5
9240$as_echo "$ax_cv_c_compiler_vendor" >&6; }
9241
cristyd95b7a52013-10-23 13:12:53 +00009242# The AX_CFLAGS_WARN_ALL macro doesn't currently work for sunpro
9243# compiler.
9244if test "$ax_cv_c_compiler_vendor" != "sun"; then
cristy17491be2014-06-24 01:10:53 +00009245 ac_ext=c
cristyd95b7a52013-10-23 13:12:53 +00009246ac_cpp='$CPP $CPPFLAGS'
9247ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9248ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9249ac_compiler_gnu=$ac_cv_c_compiler_gnu
9250
cristy17491be2014-06-24 01:10:53 +00009251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
9252$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
9253if ${ac_cv_cflags_warn_all+:} false; then :
9254 $as_echo_n "(cached) " >&6
9255else
9256 ac_cv_cflags_warn_all="no, unknown"
9257ac_save_CFLAGS="$CFLAGS"
9258for 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 +00009259do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
9260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9261/* end confdefs.h. */
9262
9263int
9264main ()
9265{
9266
9267 ;
9268 return 0;
9269}
9270_ACEOF
9271if ac_fn_c_try_compile "$LINENO"; then :
9272 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
9273fi
9274rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9275done
cristy17491be2014-06-24 01:10:53 +00009276CFLAGS="$ac_save_CFLAGS"
9277
9278fi
9279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
9280$as_echo "$ac_cv_cflags_warn_all" >&6; }
9281
9282
9283case ".$ac_cv_cflags_warn_all" in
9284 .ok|.ok,*) ;;
9285 .|.no|.no,*) ;;
cristy146497a2015-05-17 22:46:16 +00009286 *)
9287if ${CFLAGS+:} false; then :
9288
9289 case " $CFLAGS " in #(
9290 *" $ac_cv_cflags_warn_all "*) :
9291 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$ac_cv_cflags_warn_all"; } >&5
cristy17491be2014-06-24 01:10:53 +00009292 (: CFLAGS already contains $ac_cv_cflags_warn_all) 2>&5
9293 ac_status=$?
9294 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristy146497a2015-05-17 22:46:16 +00009295 test $ac_status = 0; } ;; #(
9296 *) :
9297
9298 as_fn_append CFLAGS " $ac_cv_cflags_warn_all"
9299 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
9300 (: CFLAGS="$CFLAGS") 2>&5
cristy17491be2014-06-24 01:10:53 +00009301 ac_status=$?
9302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9303 test $ac_status = 0; }
cristy146497a2015-05-17 22:46:16 +00009304 ;;
9305esac
9306
cristy17491be2014-06-24 01:10:53 +00009307else
cristy146497a2015-05-17 22:46:16 +00009308
9309 CFLAGS=$ac_cv_cflags_warn_all
9310 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
9311 (: CFLAGS="$CFLAGS") 2>&5
9312 ac_status=$?
9313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9314 test $ac_status = 0; }
9315
cristy17491be2014-06-24 01:10:53 +00009316fi
9317 ;;
9318esac
9319
9320ac_ext=c
cristyd95b7a52013-10-23 13:12:53 +00009321ac_cpp='$CPP $CPPFLAGS'
9322ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9323ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9324ac_compiler_gnu=$ac_cv_c_compiler_gnu
9325
9326
9327fi
cristyd95b7a52013-10-23 13:12:53 +00009328
9329if test "x$GCC" = "xyes"; then
9330 CFLAGS="$CFLAGS -fexceptions"
9331 touch local.exp
9332else
9333 cat > local.exp <<EOF
9334set CC_FOR_TARGET "$CC"
9335EOF
9336fi
9337
cristy9b86f202012-11-28 21:55:35 +00009338# Check for linker script support
9339
9340 # Check whether --enable-ld-version-script was given.
9341if test "${enable_ld_version_script+set}" = set; then :
9342 enableval=$enable_ld_version_script; have_ld_version_script=$enableval
9343fi
9344
9345 if test -z "$have_ld_version_script"; then
9346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5
9347$as_echo_n "checking if LD -Wl,--version-script works... " >&6; }
9348 save_LDFLAGS="$LDFLAGS"
9349 LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
9350 cat > conftest.map <<EOF
9351foo
9352EOF
9353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9354/* end confdefs.h. */
9355
9356int
9357main ()
9358{
9359
9360 ;
9361 return 0;
9362}
9363_ACEOF
9364if ac_fn_c_try_link "$LINENO"; then :
9365 accepts_syntax_errors=yes
9366else
9367 accepts_syntax_errors=no
9368fi
9369rm -f core conftest.err conftest.$ac_objext \
9370 conftest$ac_exeext conftest.$ac_ext
9371 if test "$accepts_syntax_errors" = no; then
9372 cat > conftest.map <<EOF
9373VERS_1 {
9374 global: sym;
9375};
9376
9377VERS_2 {
9378 global: sym;
9379} VERS_1;
9380EOF
9381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9382/* end confdefs.h. */
9383
9384int
9385main ()
9386{
9387
9388 ;
9389 return 0;
9390}
9391_ACEOF
9392if ac_fn_c_try_link "$LINENO"; then :
9393 have_ld_version_script=yes
9394else
9395 have_ld_version_script=no
9396fi
9397rm -f core conftest.err conftest.$ac_objext \
9398 conftest$ac_exeext conftest.$ac_ext
9399 else
9400 have_ld_version_script=no
9401 fi
9402 rm -f conftest.map
9403 LDFLAGS="$save_LDFLAGS"
9404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ld_version_script" >&5
9405$as_echo "$have_ld_version_script" >&6; }
9406 fi
9407 if test "$have_ld_version_script" = "yes"; then
9408 HAVE_LD_VERSION_SCRIPT_TRUE=
9409 HAVE_LD_VERSION_SCRIPT_FALSE='#'
9410else
9411 HAVE_LD_VERSION_SCRIPT_TRUE='#'
9412 HAVE_LD_VERSION_SCRIPT_FALSE=
9413fi
9414
9415
9416
cristy3ed852e2009-09-05 21:47:34 +00009417#
cristy3ed852e2009-09-05 21:47:34 +00009418# Enable run-time checking.
9419#
9420# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00009421if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009422 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
9423else
9424 enable_bounds_checking='no'
9425fi
9426
9427
9428if test "$enable_bounds_checking" = yes; then
9429
cristy8b350f62009-11-15 23:12:43 +00009430$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009431
9432fi
9433
9434#
9435# Tests for Windows
9436#
9437
9438
9439
9440GDI32_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00009441native_win32_build='no'
9442cygwin_build='no'
9443case "${host_os}" in
9444 cygwin* )
cristy3ed852e2009-09-05 21:47:34 +00009445 cygwin_build='yes'
9446 GDI32_LIBS='-lgdi32'
9447 ;;
9448 mingw* )
cristy3ed852e2009-09-05 21:47:34 +00009449 native_win32_build='yes'
9450 GDI32_LIBS='-lgdi32'
9451 ;;
9452esac
9453if test "${GDI32_LIBS}x" != 'x'; then
9454
cristy8b350f62009-11-15 23:12:43 +00009455$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009456
9457fi
9458
cristy73bd4a52010-10-05 11:24:23 +00009459 if test "${GDI32_LIBS}x" != 'x' ; then
9460 WINGDI32_DELEGATE_TRUE=
9461 WINGDI32_DELEGATE_FALSE='#'
9462else
9463 WINGDI32_DELEGATE_TRUE='#'
9464 WINGDI32_DELEGATE_FALSE=
9465fi
9466
9467 if test "${native_win32_build}" = 'yes' ; then
9468 WIN32_NATIVE_BUILD_TRUE=
9469 WIN32_NATIVE_BUILD_FALSE='#'
9470else
9471 WIN32_NATIVE_BUILD_TRUE='#'
9472 WIN32_NATIVE_BUILD_FALSE=
9473fi
9474
9475 if test "${cygwin_build}" = 'yes' ; then
9476 CYGWIN_BUILD_TRUE=
9477 CYGWIN_BUILD_FALSE='#'
9478else
9479 CYGWIN_BUILD_TRUE='#'
9480 CYGWIN_BUILD_FALSE=
9481fi
9482
9483 if test "x${CC}" = 'xcl.exe' ; then
9484 USING_CL_TRUE=
9485 USING_CL_FALSE='#'
9486else
9487 USING_CL_TRUE='#'
9488 USING_CL_FALSE=
9489fi
9490
cristy3ed852e2009-09-05 21:47:34 +00009491
9492WinPathScript="${srcdirfull}/winpath.sh"
9493
9494
9495#
9496# Compiler flags tweaks
9497#
9498if test "${GCC}" != "yes"; then
9499 case "${host}" in
9500 *-*-hpux* )
9501 # aCC: HP ANSI C++ B3910B A.03.34
9502 CFLAGS="${CFLAGS} -Wp,-H30000"
9503 if test -n "${CXXFLAGS}"; then
9504 CXXFLAGS='-AA'
9505 else
9506 CXXFLAGS="${CXXFLAGS} -AA"
9507 fi
9508 ;;
9509 *-dec-osf5.* )
9510 # Compaq alphaev68-dec-osf5.1 compiler
9511 if test -n "${CXXFLAGS}"; then
9512 CXXFLAGS='-std strict_ansi -noimplicit_include'
9513 else
9514 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
9515 fi
9516 esac
9517fi
9518
9519# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00009520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00009521$as_echo_n "checking for linker lazyload option... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009522if ${im_cv_ld_lazyload+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009523 $as_echo_n "(cached) " >&6
9524else
9525
9526im_cv_ld_lazyload='none'
9527case "${host}" in
9528 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
9529 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
9530 im_cv_ld_lazyload='-Wl,-zlazyload'
9531 fi
9532 ;;
9533esac
9534
9535fi
cristy8b350f62009-11-15 23:12:43 +00009536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00009537$as_echo "$im_cv_ld_lazyload" >&6; }
9538if test "${im_cv_ld_lazyload}" != 'none' ; then
9539 if test -z "${LDFLAGS}" ; then
9540 LDFLAGS="${im_cv_ld_lazyload}"
9541 else
9542 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
9543 fi
9544fi
9545
9546case "$host" in
cristyc37574e2013-02-16 01:04:55 +00009547 *darwin* | *-macos10*)
cristyb3b90d32013-02-16 15:44:08 +00009548 CFLAGS="${CFLAGS} -D_FORTIFY_SOURCE=0"
cristyc37574e2013-02-16 01:04:55 +00009549 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00009550if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009551 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
9552else
9553 build_osxuniversal=no
9554fi
9555
9556
cristyc37574e2013-02-16 01:04:55 +00009557 if test "${build_osxuniversal}" != no ; then
9558 if test "$enable_dependency_tracking" != no ; then
9559 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00009560Please re-run configure with these options:
9561 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00009562 " "$LINENO" 5
cristyc37574e2013-02-16 01:04:55 +00009563 fi
9564 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
9565 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
9566 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
cristy3ed852e2009-09-05 21:47:34 +00009567 fi
9568 ;;
9569esac
9570
cristy0151ae12011-10-28 16:32:29 +00009571#
9572# ARCH specific include directory
9573#
9574
cristy670aa3c2011-11-03 00:54:00 +00009575# Check whether --with-includearch-dir was given.
9576if test "${with_includearch_dir+set}" = set; then :
9577 withval=$with_includearch_dir; includearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00009578else
cristy670aa3c2011-11-03 00:54:00 +00009579 includearch_dir=$INCLUDE_DIR
cristy0151ae12011-10-28 16:32:29 +00009580fi
9581
9582
cristyd286fd72013-02-24 19:25:33 +00009583eval "eval INCLUDEARCH_DIR=$includearch_dir"
cristyac9041a2011-10-28 16:52:32 +00009584
cristy0151ae12011-10-28 16:32:29 +00009585
9586#
9587# ARCH specific configuration directory
9588#
9589
cristy670aa3c2011-11-03 00:54:00 +00009590# Check whether --with-sharearch-dir was given.
9591if test "${with_sharearch_dir+set}" = set; then :
9592 withval=$with_sharearch_dir; sharearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00009593else
cristy408ebcd2011-11-14 01:36:57 +00009594 sharearch_dir="${LIB_DIR}"
cristy0151ae12011-10-28 16:32:29 +00009595fi
9596
9597
cristy670aa3c2011-11-03 00:54:00 +00009598eval "eval SHAREARCH_DIR=$sharearch_dir"
cristyac9041a2011-10-28 16:52:32 +00009599
cristy0151ae12011-10-28 16:32:29 +00009600
cristy2ec87cc2013-02-18 17:46:50 +00009601# Path to the pkgconfig folder
9602
9603# Check whether --with-pkgconfigdir was given.
9604if test "${with_pkgconfigdir+set}" = set; then :
9605 withval=$with_pkgconfigdir; pkgconfigdir="$withval"
9606else
9607 pkgconfigdir='${libdir}/pkgconfig'
9608fi
9609
9610
9611
cristy0151ae12011-10-28 16:32:29 +00009612#
cristy3ed852e2009-09-05 21:47:34 +00009613# Enable support for threads
cristy1ae5c992013-07-30 14:55:07 +00009614#
9615# Find Posix threads library
9616#
cristy3ed852e2009-09-05 21:47:34 +00009617
9618# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00009619if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009620 withval=$with_threads; with_threads=$withval
9621else
9622 with_threads='yes'
9623fi
9624
9625
cristy1ae5c992013-07-30 14:55:07 +00009626THREAD_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00009627have_threads=no
9628if test "$with_threads" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +00009629
9630
cristy73bd4a52010-10-05 11:24:23 +00009631ac_ext=c
9632ac_cpp='$CPP $CPPFLAGS'
9633ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9634ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9635ac_compiler_gnu=$ac_cv_c_compiler_gnu
9636
9637ax_pthread_ok=no
9638
9639# We used to check for pthread.h first, but this fails if pthread.h
9640# requires special compiler flags (e.g. on True64 or Sequent).
9641# It gets checked for in the link test anyway.
9642
9643# First of all, check if the user has set any of the PTHREAD_LIBS,
9644# etcetera environment variables, and if threads linking works using
9645# them:
9646if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
9647 save_CFLAGS="$CFLAGS"
9648 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9649 save_LIBS="$LIBS"
9650 LIBS="$PTHREAD_LIBS $LIBS"
9651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
9652$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
9653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9654/* end confdefs.h. */
9655
9656/* Override any GCC internal prototype to avoid an error.
9657 Use char because int might match the return type of a GCC
9658 builtin and then its argument prototype would still apply. */
9659#ifdef __cplusplus
9660extern "C"
9661#endif
9662char pthread_join ();
9663int
9664main ()
9665{
9666return pthread_join ();
9667 ;
9668 return 0;
9669}
9670_ACEOF
9671if ac_fn_c_try_link "$LINENO"; then :
9672 ax_pthread_ok=yes
9673fi
9674rm -f core conftest.err conftest.$ac_objext \
9675 conftest$ac_exeext conftest.$ac_ext
9676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9677$as_echo "$ax_pthread_ok" >&6; }
9678 if test x"$ax_pthread_ok" = xno; then
9679 PTHREAD_LIBS=""
9680 PTHREAD_CFLAGS=""
9681 fi
9682 LIBS="$save_LIBS"
9683 CFLAGS="$save_CFLAGS"
9684fi
9685
9686# We must check for the threads library under a number of different
9687# names; the ordering is very important because some systems
9688# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
9689# libraries is broken (non-POSIX).
9690
9691# Create a list of thread flags to try. Items starting with a "-" are
9692# C compiler flags, and other items are library names, except for "none"
9693# which indicates that we try without any flags at all, and "pthread-config"
9694# which is a program returning the flags for the Pth emulation library.
9695
cristy2ec87cc2013-02-18 17:46:50 +00009696ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
cristy73bd4a52010-10-05 11:24:23 +00009697
9698# The ordering *is* (sometimes) important. Some notes on the
9699# individual items follow:
9700
9701# pthreads: AIX (must check this before -lpthread)
9702# none: in case threads are in libc; should be tried before -Kthread and
9703# other compiler flags to prevent continual compiler warnings
9704# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
9705# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
9706# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
9707# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
9708# -pthreads: Solaris/gcc
9709# -mthreads: Mingw32/gcc, Lynx/gcc
9710# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
9711# doesn't hurt to check since this sometimes defines pthreads too;
9712# also defines -D_REENTRANT)
9713# ... -mt is also the pthreads flag for HP/aCC
9714# pthread: Linux, etcetera
9715# --thread-safe: KAI C++
9716# pthread-config: use pthread-config program (for GNU Pth library)
9717
cristy2ec87cc2013-02-18 17:46:50 +00009718case ${host_os} in
9719 solaris*)
cristy73bd4a52010-10-05 11:24:23 +00009720
9721 # On Solaris (at least, for some versions), libc contains stubbed
9722 # (non-functional) versions of the pthreads routines, so link-based
9723 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
9724 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
9725 # a function called by this macro, so we could check for that, but
9726 # who knows whether they'll stub that too in a future libc.) So,
9727 # we'll just look for -pthreads and -lpthread first:
9728
9729 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
9730 ;;
9731
cristy2ec87cc2013-02-18 17:46:50 +00009732 darwin*)
cristya316db12011-10-24 00:49:45 +00009733 ax_pthread_flags="-pthread $ax_pthread_flags"
9734 ;;
cristy73bd4a52010-10-05 11:24:23 +00009735esac
9736
cristy17491be2014-06-24 01:10:53 +00009737# Clang doesn't consider unrecognized options an error unless we specify
9738# -Werror. We throw in some extra Clang-specific options to ensure that
9739# this doesn't happen for GCC, which also accepts -Werror.
9740
9741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5
9742$as_echo_n "checking if compiler needs -Werror to reject unknown flags... " >&6; }
9743save_CFLAGS="$CFLAGS"
9744ax_pthread_extra_flags="-Werror"
9745CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument"
9746cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9747/* end confdefs.h. */
9748int foo(void);
9749int
9750main ()
9751{
9752foo()
9753 ;
9754 return 0;
9755}
9756_ACEOF
9757if ac_fn_c_try_compile "$LINENO"; then :
9758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9759$as_echo "yes" >&6; }
9760else
9761 ax_pthread_extra_flags=
9762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9763$as_echo "no" >&6; }
9764fi
9765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9766CFLAGS="$save_CFLAGS"
9767
cristy73bd4a52010-10-05 11:24:23 +00009768if test x"$ax_pthread_ok" = xno; then
9769for flag in $ax_pthread_flags; do
9770
9771 case $flag in
9772 none)
9773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9774$as_echo_n "checking whether pthreads work without any flags... " >&6; }
9775 ;;
9776
9777 -*)
9778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
9779$as_echo_n "checking whether pthreads work with $flag... " >&6; }
9780 PTHREAD_CFLAGS="$flag"
9781 ;;
9782
cristya316db12011-10-24 00:49:45 +00009783 pthread-config)
9784 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00009785set dummy pthread-config; ac_word=$2
9786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9787$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009788if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009789 $as_echo_n "(cached) " >&6
9790else
9791 if test -n "$ax_pthread_config"; then
9792 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
9793else
9794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9795for as_dir in $PATH
9796do
9797 IFS=$as_save_IFS
9798 test -z "$as_dir" && as_dir=.
9799 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009800 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009801 ac_cv_prog_ax_pthread_config="yes"
9802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9803 break 2
9804 fi
9805done
9806 done
9807IFS=$as_save_IFS
9808
9809 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9810fi
9811fi
9812ax_pthread_config=$ac_cv_prog_ax_pthread_config
9813if test -n "$ax_pthread_config"; then
9814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9815$as_echo "$ax_pthread_config" >&6; }
9816else
9817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9818$as_echo "no" >&6; }
9819fi
9820
9821
cristya316db12011-10-24 00:49:45 +00009822 if test x"$ax_pthread_config" = xno; then continue; fi
9823 PTHREAD_CFLAGS="`pthread-config --cflags`"
9824 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9825 ;;
cristy73bd4a52010-10-05 11:24:23 +00009826
9827 *)
9828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
9829$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
9830 PTHREAD_LIBS="-l$flag"
9831 ;;
9832 esac
9833
9834 save_LIBS="$LIBS"
9835 save_CFLAGS="$CFLAGS"
9836 LIBS="$PTHREAD_LIBS $LIBS"
cristy17491be2014-06-24 01:10:53 +00009837 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags"
cristy73bd4a52010-10-05 11:24:23 +00009838
9839 # Check for various functions. We must include pthread.h,
9840 # since some functions may be macros. (On the Sequent, we
9841 # need a special flag -Kthread to make this header compile.)
9842 # We check for pthread_join because it is in -lpthread on IRIX
9843 # while pthread_create is in libc. We check for pthread_attr_init
9844 # due to DEC craziness with -lpthreads. We check for
9845 # pthread_cleanup_push because it is one of the few pthread
9846 # functions on Solaris that doesn't have a non-functional libc stub.
9847 # We try pthread_create on general principles.
9848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9849/* end confdefs.h. */
9850#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00009851 static void routine(void *a) { a = 0; }
9852 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00009853int
9854main ()
9855{
9856pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00009857 pthread_create(&th, 0, start_routine, 0);
9858 pthread_join(th, 0);
9859 pthread_attr_init(&attr);
9860 pthread_cleanup_push(routine, 0);
9861 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009862 ;
9863 return 0;
9864}
9865_ACEOF
9866if ac_fn_c_try_link "$LINENO"; then :
9867 ax_pthread_ok=yes
9868fi
9869rm -f core conftest.err conftest.$ac_objext \
9870 conftest$ac_exeext conftest.$ac_ext
9871
9872 LIBS="$save_LIBS"
9873 CFLAGS="$save_CFLAGS"
9874
9875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9876$as_echo "$ax_pthread_ok" >&6; }
9877 if test "x$ax_pthread_ok" = xyes; then
9878 break;
9879 fi
9880
9881 PTHREAD_LIBS=""
9882 PTHREAD_CFLAGS=""
9883done
9884fi
9885
9886# Various other checks:
9887if test "x$ax_pthread_ok" = xyes; then
9888 save_LIBS="$LIBS"
9889 LIBS="$PTHREAD_LIBS $LIBS"
9890 save_CFLAGS="$CFLAGS"
9891 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9892
9893 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00009894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00009895$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00009896 attr_name=unknown
9897 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00009899/* end confdefs.h. */
9900#include <pthread.h>
9901int
9902main ()
9903{
cristya316db12011-10-24 00:49:45 +00009904int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009905 ;
9906 return 0;
9907}
9908_ACEOF
9909if ac_fn_c_try_link "$LINENO"; then :
9910 attr_name=$attr; break
9911fi
9912rm -f core conftest.err conftest.$ac_objext \
9913 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00009914 done
cristy73bd4a52010-10-05 11:24:23 +00009915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
9916$as_echo "$attr_name" >&6; }
9917 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
9918
9919cat >>confdefs.h <<_ACEOF
9920#define PTHREAD_CREATE_JOINABLE $attr_name
9921_ACEOF
9922
9923 fi
9924
9925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
9926$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
9927 flag=no
cristy2ec87cc2013-02-18 17:46:50 +00009928 case ${host_os} in
9929 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
9930 osf* | hpux*) flag="-D_REENTRANT";;
9931 solaris*)
9932 if test "$GCC" = "yes"; then
9933 flag="-D_REENTRANT"
9934 else
cristy17491be2014-06-24 01:10:53 +00009935 # TODO: What about Clang on Solaris?
cristy2ec87cc2013-02-18 17:46:50 +00009936 flag="-mt -D_REENTRANT"
9937 fi
9938 ;;
cristy73bd4a52010-10-05 11:24:23 +00009939 esac
cristy17491be2014-06-24 01:10:53 +00009940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag" >&5
9941$as_echo "$flag" >&6; }
cristy73bd4a52010-10-05 11:24:23 +00009942 if test "x$flag" != xno; then
9943 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
9944 fi
9945
cristya316db12011-10-24 00:49:45 +00009946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9947$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9948if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9949 $as_echo_n "(cached) " >&6
9950else
9951
9952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9953/* end confdefs.h. */
cristy17491be2014-06-24 01:10:53 +00009954#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00009955int
9956main ()
9957{
9958int i = PTHREAD_PRIO_INHERIT;
9959 ;
9960 return 0;
9961}
9962_ACEOF
9963if ac_fn_c_try_link "$LINENO"; then :
9964 ax_cv_PTHREAD_PRIO_INHERIT=yes
9965else
9966 ax_cv_PTHREAD_PRIO_INHERIT=no
9967fi
9968rm -f core conftest.err conftest.$ac_objext \
9969 conftest$ac_exeext conftest.$ac_ext
9970
9971fi
9972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9973$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9974 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
9975
9976$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9977
9978fi
9979
cristy73bd4a52010-10-05 11:24:23 +00009980 LIBS="$save_LIBS"
9981 CFLAGS="$save_CFLAGS"
9982
cristy23493c42013-04-11 16:04:59 +00009983 # More AIX lossage: compile with *_r variant
9984 if test "x$GCC" != xyes; then
9985 case $host_os in
9986 aix*)
9987 case "x/$CC" in #(
9988 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
9989 #handle absolute path differently from PATH based program lookup
9990 case "x$CC" in #(
9991 x/*) :
9992 if as_fn_executable_p ${CC}_r; then :
9993 PTHREAD_CC="${CC}_r"
9994fi ;; #(
9995 *) :
9996 for ac_prog in ${CC}_r
cristy73bd4a52010-10-05 11:24:23 +00009997do
9998 # Extract the first word of "$ac_prog", so it can be a program name with args.
9999set dummy $ac_prog; ac_word=$2
10000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10001$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010002if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010003 $as_echo_n "(cached) " >&6
10004else
10005 if test -n "$PTHREAD_CC"; then
10006 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
10007else
10008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10009for as_dir in $PATH
10010do
10011 IFS=$as_save_IFS
10012 test -z "$as_dir" && as_dir=.
10013 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010014 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010015 ac_cv_prog_PTHREAD_CC="$ac_prog"
10016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10017 break 2
10018 fi
10019done
10020 done
10021IFS=$as_save_IFS
10022
10023fi
10024fi
10025PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
10026if test -n "$PTHREAD_CC"; then
10027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
10028$as_echo "$PTHREAD_CC" >&6; }
10029else
10030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10031$as_echo "no" >&6; }
10032fi
10033
10034
10035 test -n "$PTHREAD_CC" && break
10036done
cristy23493c42013-04-11 16:04:59 +000010037test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
10038 ;;
10039esac ;; #(
10040 *) :
10041 ;;
10042esac
10043 ;;
10044 esac
cristya316db12011-10-24 00:49:45 +000010045 fi
cristy73bd4a52010-10-05 11:24:23 +000010046fi
10047
cristy23493c42013-04-11 16:04:59 +000010048test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
10049
cristy73bd4a52010-10-05 11:24:23 +000010050
10051
10052
10053
10054# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
10055if test x"$ax_pthread_ok" = xyes; then
10056
10057$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
10058
10059 :
10060else
10061 ax_pthread_ok=no
10062
10063fi
10064ac_ext=c
10065ac_cpp='$CPP $CPPFLAGS'
10066ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10067ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10068ac_compiler_gnu=$ac_cv_c_compiler_gnu
10069
10070
cristy7acf8fb2010-09-23 19:58:53 +000010071 if test "$ax_pthread_ok" = yes; then
cristy3ed852e2009-09-05 21:47:34 +000010072 have_threads=yes
10073 DEF_THREAD="$PTHREAD_CFLAGS"
10074 CFLAGS="$CFLAGS $DEF_THREAD"
10075 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
cristy1ae5c992013-07-30 14:55:07 +000010076 THREAD_LIBS="$PTHREAD_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000010077 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +000010078 { $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 +000010079$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
10080 CC="$PTHREAD_CC"
10081 fi
cristy55bf91c2010-09-24 00:29:41 +000010082
10083$as_echo "#define THREAD_SUPPORT 1" >>confdefs.h
10084
cristy3ed852e2009-09-05 21:47:34 +000010085 fi
10086fi
cristy1ae5c992013-07-30 14:55:07 +000010087LIBS="$LIBS $THREAD_LIBS"
10088
cristy3ed852e2009-09-05 21:47:34 +000010089
10090# Enable support for OpenMP
10091if test "$have_threads" != 'yes'; then
10092 ac_cv_prog_c_openmp=unsupported
10093fi
10094
10095 OPENMP_CFLAGS=
10096 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000010097if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010098 enableval=$enable_openmp;
10099fi
10100
10101 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +000010102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +000010103$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010104if ${ac_cv_prog_c_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010105 $as_echo_n "(cached) " >&6
10106else
cristy8b350f62009-11-15 23:12:43 +000010107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10108/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000010109
10110#ifndef _OPENMP
10111 choke me
10112#endif
10113#include <omp.h>
10114int main () { return omp_get_num_threads (); }
10115
10116_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010117if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010118 ac_cv_prog_c_openmp='none needed'
10119else
cristy8b350f62009-11-15 23:12:43 +000010120 ac_cv_prog_c_openmp='unsupported'
cristy14fefe52012-05-21 00:59:18 +000010121 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
10122 -Popenmp --openmp; do
cristy3ed852e2009-09-05 21:47:34 +000010123 ac_save_CFLAGS=$CFLAGS
10124 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000010125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10126/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000010127
10128#ifndef _OPENMP
10129 choke me
10130#endif
10131#include <omp.h>
10132int main () { return omp_get_num_threads (); }
10133
10134_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010135if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010136 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000010137fi
cristy8b350f62009-11-15 23:12:43 +000010138rm -f core conftest.err conftest.$ac_objext \
10139 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010140 CFLAGS=$ac_save_CFLAGS
10141 if test "$ac_cv_prog_c_openmp" != unsupported; then
10142 break
10143 fi
10144 done
10145fi
cristy8b350f62009-11-15 23:12:43 +000010146rm -f core conftest.err conftest.$ac_objext \
10147 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010148fi
cristy8b350f62009-11-15 23:12:43 +000010149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000010150$as_echo "$ac_cv_prog_c_openmp" >&6; }
10151 case $ac_cv_prog_c_openmp in #(
10152 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000010153 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000010154 *)
cristy8b350f62009-11-15 23:12:43 +000010155 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000010156 esac
10157 fi
10158
10159
10160CFLAGS="$OPENMP_CFLAGS $CFLAGS"
10161MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
10162
cristy391f1ce2010-09-09 17:23:28 +000010163if test "$enable_openmp" != no; then
10164 if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
10165 MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
10166 fi
10167fi
cristy3ed852e2009-09-05 21:47:34 +000010168
cristy736173a2009-09-20 21:18:22 +000010169# Enable support for OpenCL
cristy73bd4a52010-10-05 11:24:23 +000010170
10171
cristy73bd4a52010-10-05 11:24:23 +000010172ac_ext=c
10173ac_cpp='$CPP $CPPFLAGS'
10174ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10175ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10176ac_compiler_gnu=$ac_cv_c_compiler_gnu
10177
10178ax_pthread_ok=no
10179
10180# We used to check for pthread.h first, but this fails if pthread.h
10181# requires special compiler flags (e.g. on True64 or Sequent).
10182# It gets checked for in the link test anyway.
10183
10184# First of all, check if the user has set any of the PTHREAD_LIBS,
10185# etcetera environment variables, and if threads linking works using
10186# them:
10187if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
10188 save_CFLAGS="$CFLAGS"
10189 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
10190 save_LIBS="$LIBS"
10191 LIBS="$PTHREAD_LIBS $LIBS"
10192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
10193$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
10194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10195/* end confdefs.h. */
10196
10197/* Override any GCC internal prototype to avoid an error.
10198 Use char because int might match the return type of a GCC
10199 builtin and then its argument prototype would still apply. */
10200#ifdef __cplusplus
10201extern "C"
10202#endif
10203char pthread_join ();
10204int
10205main ()
10206{
10207return pthread_join ();
10208 ;
10209 return 0;
10210}
10211_ACEOF
10212if ac_fn_c_try_link "$LINENO"; then :
10213 ax_pthread_ok=yes
10214fi
10215rm -f core conftest.err conftest.$ac_objext \
10216 conftest$ac_exeext conftest.$ac_ext
10217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
10218$as_echo "$ax_pthread_ok" >&6; }
10219 if test x"$ax_pthread_ok" = xno; then
10220 PTHREAD_LIBS=""
10221 PTHREAD_CFLAGS=""
10222 fi
10223 LIBS="$save_LIBS"
10224 CFLAGS="$save_CFLAGS"
10225fi
10226
10227# We must check for the threads library under a number of different
10228# names; the ordering is very important because some systems
10229# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
10230# libraries is broken (non-POSIX).
10231
10232# Create a list of thread flags to try. Items starting with a "-" are
10233# C compiler flags, and other items are library names, except for "none"
10234# which indicates that we try without any flags at all, and "pthread-config"
10235# which is a program returning the flags for the Pth emulation library.
10236
cristy2ec87cc2013-02-18 17:46:50 +000010237ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
cristy73bd4a52010-10-05 11:24:23 +000010238
10239# The ordering *is* (sometimes) important. Some notes on the
10240# individual items follow:
10241
10242# pthreads: AIX (must check this before -lpthread)
10243# none: in case threads are in libc; should be tried before -Kthread and
10244# other compiler flags to prevent continual compiler warnings
10245# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
10246# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
10247# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
10248# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
10249# -pthreads: Solaris/gcc
10250# -mthreads: Mingw32/gcc, Lynx/gcc
10251# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
10252# doesn't hurt to check since this sometimes defines pthreads too;
10253# also defines -D_REENTRANT)
10254# ... -mt is also the pthreads flag for HP/aCC
10255# pthread: Linux, etcetera
10256# --thread-safe: KAI C++
10257# pthread-config: use pthread-config program (for GNU Pth library)
10258
cristy2ec87cc2013-02-18 17:46:50 +000010259case ${host_os} in
10260 solaris*)
cristy73bd4a52010-10-05 11:24:23 +000010261
10262 # On Solaris (at least, for some versions), libc contains stubbed
10263 # (non-functional) versions of the pthreads routines, so link-based
10264 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
10265 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
10266 # a function called by this macro, so we could check for that, but
10267 # who knows whether they'll stub that too in a future libc.) So,
10268 # we'll just look for -pthreads and -lpthread first:
10269
10270 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
10271 ;;
10272
cristy2ec87cc2013-02-18 17:46:50 +000010273 darwin*)
cristya316db12011-10-24 00:49:45 +000010274 ax_pthread_flags="-pthread $ax_pthread_flags"
10275 ;;
cristy73bd4a52010-10-05 11:24:23 +000010276esac
10277
cristy17491be2014-06-24 01:10:53 +000010278# Clang doesn't consider unrecognized options an error unless we specify
10279# -Werror. We throw in some extra Clang-specific options to ensure that
10280# this doesn't happen for GCC, which also accepts -Werror.
10281
10282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5
10283$as_echo_n "checking if compiler needs -Werror to reject unknown flags... " >&6; }
10284save_CFLAGS="$CFLAGS"
10285ax_pthread_extra_flags="-Werror"
10286CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument"
10287cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10288/* end confdefs.h. */
10289int foo(void);
10290int
10291main ()
10292{
10293foo()
10294 ;
10295 return 0;
10296}
10297_ACEOF
10298if ac_fn_c_try_compile "$LINENO"; then :
10299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10300$as_echo "yes" >&6; }
10301else
10302 ax_pthread_extra_flags=
10303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10304$as_echo "no" >&6; }
10305fi
10306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10307CFLAGS="$save_CFLAGS"
10308
cristy73bd4a52010-10-05 11:24:23 +000010309if test x"$ax_pthread_ok" = xno; then
10310for flag in $ax_pthread_flags; do
10311
10312 case $flag in
10313 none)
10314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
10315$as_echo_n "checking whether pthreads work without any flags... " >&6; }
10316 ;;
10317
10318 -*)
10319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
10320$as_echo_n "checking whether pthreads work with $flag... " >&6; }
10321 PTHREAD_CFLAGS="$flag"
10322 ;;
10323
cristya316db12011-10-24 00:49:45 +000010324 pthread-config)
10325 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +000010326set dummy pthread-config; ac_word=$2
10327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10328$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010329if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010330 $as_echo_n "(cached) " >&6
10331else
10332 if test -n "$ax_pthread_config"; then
10333 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
10334else
10335as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10336for as_dir in $PATH
10337do
10338 IFS=$as_save_IFS
10339 test -z "$as_dir" && as_dir=.
10340 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010341 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010342 ac_cv_prog_ax_pthread_config="yes"
10343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10344 break 2
10345 fi
10346done
10347 done
10348IFS=$as_save_IFS
10349
10350 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
10351fi
10352fi
10353ax_pthread_config=$ac_cv_prog_ax_pthread_config
10354if test -n "$ax_pthread_config"; then
10355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
10356$as_echo "$ax_pthread_config" >&6; }
10357else
10358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10359$as_echo "no" >&6; }
10360fi
10361
10362
cristya316db12011-10-24 00:49:45 +000010363 if test x"$ax_pthread_config" = xno; then continue; fi
10364 PTHREAD_CFLAGS="`pthread-config --cflags`"
10365 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
10366 ;;
cristy73bd4a52010-10-05 11:24:23 +000010367
10368 *)
10369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
10370$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
10371 PTHREAD_LIBS="-l$flag"
10372 ;;
10373 esac
10374
10375 save_LIBS="$LIBS"
10376 save_CFLAGS="$CFLAGS"
10377 LIBS="$PTHREAD_LIBS $LIBS"
cristy17491be2014-06-24 01:10:53 +000010378 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags"
cristy73bd4a52010-10-05 11:24:23 +000010379
10380 # Check for various functions. We must include pthread.h,
10381 # since some functions may be macros. (On the Sequent, we
10382 # need a special flag -Kthread to make this header compile.)
10383 # We check for pthread_join because it is in -lpthread on IRIX
10384 # while pthread_create is in libc. We check for pthread_attr_init
10385 # due to DEC craziness with -lpthreads. We check for
10386 # pthread_cleanup_push because it is one of the few pthread
10387 # functions on Solaris that doesn't have a non-functional libc stub.
10388 # We try pthread_create on general principles.
10389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10390/* end confdefs.h. */
10391#include <pthread.h>
cristya316db12011-10-24 00:49:45 +000010392 static void routine(void *a) { a = 0; }
10393 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +000010394int
10395main ()
10396{
10397pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +000010398 pthread_create(&th, 0, start_routine, 0);
10399 pthread_join(th, 0);
10400 pthread_attr_init(&attr);
10401 pthread_cleanup_push(routine, 0);
10402 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +000010403 ;
10404 return 0;
10405}
10406_ACEOF
10407if ac_fn_c_try_link "$LINENO"; then :
10408 ax_pthread_ok=yes
10409fi
10410rm -f core conftest.err conftest.$ac_objext \
10411 conftest$ac_exeext conftest.$ac_ext
10412
10413 LIBS="$save_LIBS"
10414 CFLAGS="$save_CFLAGS"
10415
10416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
10417$as_echo "$ax_pthread_ok" >&6; }
10418 if test "x$ax_pthread_ok" = xyes; then
10419 break;
10420 fi
10421
10422 PTHREAD_LIBS=""
10423 PTHREAD_CFLAGS=""
10424done
10425fi
10426
10427# Various other checks:
10428if test "x$ax_pthread_ok" = xyes; then
10429 save_LIBS="$LIBS"
10430 LIBS="$PTHREAD_LIBS $LIBS"
10431 save_CFLAGS="$CFLAGS"
10432 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
10433
10434 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +000010435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +000010436$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +000010437 attr_name=unknown
10438 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
10439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000010440/* end confdefs.h. */
10441#include <pthread.h>
10442int
10443main ()
10444{
cristya316db12011-10-24 00:49:45 +000010445int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +000010446 ;
10447 return 0;
10448}
10449_ACEOF
10450if ac_fn_c_try_link "$LINENO"; then :
10451 attr_name=$attr; break
10452fi
10453rm -f core conftest.err conftest.$ac_objext \
10454 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +000010455 done
cristy73bd4a52010-10-05 11:24:23 +000010456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
10457$as_echo "$attr_name" >&6; }
10458 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
10459
10460cat >>confdefs.h <<_ACEOF
10461#define PTHREAD_CREATE_JOINABLE $attr_name
10462_ACEOF
10463
10464 fi
10465
10466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
10467$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
10468 flag=no
cristy2ec87cc2013-02-18 17:46:50 +000010469 case ${host_os} in
10470 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
10471 osf* | hpux*) flag="-D_REENTRANT";;
10472 solaris*)
10473 if test "$GCC" = "yes"; then
10474 flag="-D_REENTRANT"
10475 else
cristy17491be2014-06-24 01:10:53 +000010476 # TODO: What about Clang on Solaris?
cristy2ec87cc2013-02-18 17:46:50 +000010477 flag="-mt -D_REENTRANT"
10478 fi
10479 ;;
cristy73bd4a52010-10-05 11:24:23 +000010480 esac
cristy17491be2014-06-24 01:10:53 +000010481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag" >&5
10482$as_echo "$flag" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000010483 if test "x$flag" != xno; then
10484 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
10485 fi
10486
cristya316db12011-10-24 00:49:45 +000010487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
10488$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
10489if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
10490 $as_echo_n "(cached) " >&6
10491else
10492
10493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10494/* end confdefs.h. */
cristy17491be2014-06-24 01:10:53 +000010495#include <pthread.h>
cristya316db12011-10-24 00:49:45 +000010496int
10497main ()
10498{
10499int i = PTHREAD_PRIO_INHERIT;
10500 ;
10501 return 0;
10502}
10503_ACEOF
10504if ac_fn_c_try_link "$LINENO"; then :
10505 ax_cv_PTHREAD_PRIO_INHERIT=yes
10506else
10507 ax_cv_PTHREAD_PRIO_INHERIT=no
10508fi
10509rm -f core conftest.err conftest.$ac_objext \
10510 conftest$ac_exeext conftest.$ac_ext
10511
10512fi
10513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
10514$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
10515 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
10516
10517$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
10518
10519fi
10520
cristy73bd4a52010-10-05 11:24:23 +000010521 LIBS="$save_LIBS"
10522 CFLAGS="$save_CFLAGS"
10523
cristy23493c42013-04-11 16:04:59 +000010524 # More AIX lossage: compile with *_r variant
10525 if test "x$GCC" != xyes; then
10526 case $host_os in
10527 aix*)
10528 case "x/$CC" in #(
10529 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
10530 #handle absolute path differently from PATH based program lookup
10531 case "x$CC" in #(
10532 x/*) :
10533 if as_fn_executable_p ${CC}_r; then :
10534 PTHREAD_CC="${CC}_r"
10535fi ;; #(
10536 *) :
10537 for ac_prog in ${CC}_r
cristy73bd4a52010-10-05 11:24:23 +000010538do
10539 # Extract the first word of "$ac_prog", so it can be a program name with args.
10540set dummy $ac_prog; ac_word=$2
10541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10542$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010543if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010544 $as_echo_n "(cached) " >&6
10545else
10546 if test -n "$PTHREAD_CC"; then
10547 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
10548else
10549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10550for as_dir in $PATH
10551do
10552 IFS=$as_save_IFS
10553 test -z "$as_dir" && as_dir=.
10554 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010555 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010556 ac_cv_prog_PTHREAD_CC="$ac_prog"
10557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10558 break 2
10559 fi
10560done
10561 done
10562IFS=$as_save_IFS
10563
10564fi
10565fi
10566PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
10567if test -n "$PTHREAD_CC"; then
10568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
10569$as_echo "$PTHREAD_CC" >&6; }
10570else
10571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10572$as_echo "no" >&6; }
10573fi
10574
10575
10576 test -n "$PTHREAD_CC" && break
10577done
cristy23493c42013-04-11 16:04:59 +000010578test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
10579 ;;
10580esac ;; #(
10581 *) :
10582 ;;
10583esac
10584 ;;
10585 esac
cristya316db12011-10-24 00:49:45 +000010586 fi
cristy73bd4a52010-10-05 11:24:23 +000010587fi
10588
cristy23493c42013-04-11 16:04:59 +000010589test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
10590
cristy73bd4a52010-10-05 11:24:23 +000010591
10592
10593
10594
10595# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
10596if test x"$ax_pthread_ok" = xyes; then
10597
10598$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
10599
10600 :
10601else
10602 ax_pthread_ok=no
10603
10604fi
10605ac_ext=c
10606ac_cpp='$CPP $CPPFLAGS'
10607ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10608ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10609ac_compiler_gnu=$ac_cv_c_compiler_gnu
10610
10611
10612
10613# Check whether --enable-opencl was given.
10614if test "${enable_opencl+set}" = set; then :
cristy48794642012-09-02 15:19:08 +000010615 enableval=$enable_opencl; enable_opencl=$enableval
cristy73bd4a52010-10-05 11:24:23 +000010616else
cristy48794642012-09-02 15:19:08 +000010617 enable_opencl='no'
cristy73bd4a52010-10-05 11:24:23 +000010618fi
10619
10620
cristy48794642012-09-02 15:19:08 +000010621if test "$enable_opencl" = 'yes'; then
cristy73bd4a52010-10-05 11:24:23 +000010622 ac_ext=c
10623ac_cpp='$CPP $CPPFLAGS'
10624ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10625ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10626ac_compiler_gnu=$ac_cv_c_compiler_gnu
10627
cristy75314cc2012-09-15 23:08:29 +000010628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
10629$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
10630if ${ax_cv_c_compiler_ms+:} false; then :
10631 $as_echo_n "(cached) " >&6
10632else
10633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10634/* end confdefs.h. */
10635
10636int
10637main ()
10638{
10639#ifndef _MSC_VER
10640 choke me
10641#endif
10642
10643 ;
10644 return 0;
10645}
10646_ACEOF
10647if ac_fn_c_try_compile "$LINENO"; then :
10648 ax_compiler_ms=yes
10649else
10650 ax_compiler_ms=no
10651fi
10652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10653ax_cv_c_compiler_ms=$ax_compiler_ms
10654
10655fi
10656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
10657$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000010658 if test X$ax_compiler_ms = Xno; then :
10659 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
10660fi
10661
10662 ax_save_CPPFLAGS=$CPPFLAGS
cristyfdc7d122013-08-17 20:46:45 +000010663 ax_save_CL_CFLAGS=$CL_CFLAGS
10664
10665 found_opencl_header='no'
cristy73bd4a52010-10-05 11:24:23 +000010666 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
10667 for ac_header in CL/cl.h OpenCL/cl.h
10668do :
10669 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10670ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000010671if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000010672 cat >>confdefs.h <<_ACEOF
10673#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10674_ACEOF
cristyfdc7d122013-08-17 20:46:45 +000010675 found_opencl_header='yes'
10676 break;
10677else
10678 found_opencl_header='no'
cristy73bd4a52010-10-05 11:24:23 +000010679fi
10680
10681done
10682
cristyfdc7d122013-08-17 20:46:45 +000010683
10684 if test X$found_opencl_header = Xno; then :
10685 { ac_cv_header_CL_cl_h=; unset ac_cv_header_CL_cl_h;}
10686 { ac_cv_header_OpenCL_cl_h=; unset ac_cv_header_OpenCL_cl_h;}
10687 CL_CFLAGS="-I$AMDAPPSDKROOT/include"
10688 CPPFLAGS="$ax_save_CPPFLAGS $CL_CFLAGS"
10689 for ac_header in CL/cl.h OpenCL/cl.h
10690do :
10691 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10692ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10693if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10694 cat >>confdefs.h <<_ACEOF
10695#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10696_ACEOF
10697 found_opencl_header='yes'
10698 break;
10699else
10700 found_opencl_header='no'
10701fi
10702
10703done
10704
10705
10706fi
10707
10708 CPPFLAGS="$ax_save_CPPFLAGS"
cristy73bd4a52010-10-05 11:24:23 +000010709
10710 for ac_header in windows.h
10711do :
10712 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000010713if test "x$ac_cv_header_windows_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000010714 cat >>confdefs.h <<_ACEOF
10715#define HAVE_WINDOWS_H 1
10716_ACEOF
10717
10718fi
10719
10720done
10721
10722
10723
10724
10725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
10726$as_echo_n "checking for OpenCL library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010727if ${ax_cv_check_cl_libcl+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010728 $as_echo_n "(cached) " >&6
10729else
10730 ax_cv_check_cl_libcl=no
10731 case $host_cpu in
cristyfdc7d122013-08-17 20:46:45 +000010732 x86_64) ax_check_cl_libdir=lib64
10733 ax_check_cl_amd_libdir=x86_64
10734 ;;
10735 *) ax_check_cl_libdir=lib
10736 ax_check_cl_amd_libdir=x86
10737 ;;
cristy73bd4a52010-10-05 11:24:23 +000010738 esac
10739 ax_save_CPPFLAGS=$CPPFLAGS
10740 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
10741 ax_save_LIBS=$LIBS
10742 LIBS=""
10743 ax_check_libs="-lOpenCL -lCL -lclparser"
10744 for ax_lib in $ax_check_libs; do
10745 if test X$ax_compiler_ms = Xyes; then :
10746 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
10747else
10748 ax_try_lib=$ax_lib
10749fi
10750 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
10751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10752/* end confdefs.h. */
10753
10754 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10755 # include <windows.h>
10756 # endif
10757 # ifdef HAVE_CL_CL_H
10758 # include <CL/cl.h>
10759 # elif defined(HAVE_OPENCL_CL_H)
10760 # include <OpenCL/cl.h>
10761 # else
10762 # error no CL.h
10763 # endif
10764int
10765main ()
10766{
10767clCreateContextFromType(0,0,0,0,0)
10768 ;
10769 return 0;
10770}
10771_ACEOF
10772if ac_fn_c_try_link "$LINENO"; then :
10773 ax_cv_check_cl_libcl=$ax_try_lib; break
10774else
10775 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"
10776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10777/* end confdefs.h. */
10778
10779 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10780 # include <windows.h>
10781 # endif
10782 # ifdef HAVE_CL_CL_H
10783 # include <CL/cl.h>
10784 # elif defined(HAVE_OPENCL_CL_H)
10785 # include <OpenCL/cl.h>
10786 # else
10787 # error no CL.h
10788 # endif
10789int
10790main ()
10791{
10792clCreateContextFromType(0,0,0,0,0)
10793 ;
10794 return 0;
10795}
10796_ACEOF
10797if ac_fn_c_try_link "$LINENO"; then :
10798 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
10799else
cristy78c5a0c2010-12-04 20:00:59 +000010800 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 +000010801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10802/* end confdefs.h. */
10803
10804 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10805 # include <windows.h>
10806 # endif
10807 # ifdef HAVE_CL_CL_H
10808 # include <CL/cl.h>
10809 # elif defined(HAVE_OPENCL_CL_H)
10810 # include <OpenCL/cl.h>
10811 # else
10812 # error no CL.h
10813 # endif
10814int
10815main ()
10816{
10817clCreateContextFromType(0,0,0,0,0)
10818 ;
10819 return 0;
10820}
10821_ACEOF
10822if ac_fn_c_try_link "$LINENO"; then :
10823 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
cristyfdc7d122013-08-17 20:46:45 +000010824else
10825 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"
10826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10827/* end confdefs.h. */
10828
10829 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10830 # include <windows.h>
10831 # endif
10832 # ifdef HAVE_CL_CL_H
10833 # include <CL/cl.h>
10834 # elif defined(HAVE_OPENCL_CL_H)
10835 # include <OpenCL/cl.h>
10836 # else
10837 # error no CL.h
10838 # endif
10839int
10840main ()
10841{
10842clCreateContextFromType(0,0,0,0,0)
10843 ;
10844 return 0;
10845}
10846_ACEOF
10847if ac_fn_c_try_link "$LINENO"; then :
10848 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_amd_flags"; break
10849
10850fi
10851rm -f core conftest.err conftest.$ac_objext \
10852 conftest$ac_exeext conftest.$ac_ext
10853
10854
cristy73bd4a52010-10-05 11:24:23 +000010855fi
10856rm -f core conftest.err conftest.$ac_objext \
10857 conftest$ac_exeext conftest.$ac_ext
10858fi
10859rm -f core conftest.err conftest.$ac_objext \
10860 conftest$ac_exeext conftest.$ac_ext
10861fi
10862rm -f core conftest.err conftest.$ac_objext \
10863 conftest$ac_exeext conftest.$ac_ext
10864 done
10865
cristyc3f8b8e2011-12-22 14:55:16 +000010866 if test "X$ax_cv_check_cl_libcl" = Xno; then :
cristy78c5a0c2010-12-04 20:00:59 +000010867 LIBS='-Wl,-framework,OpenCL'
cristy73bd4a52010-10-05 11:24:23 +000010868 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=$LIBS
10891fi
10892rm -f core conftest.err conftest.$ac_objext \
10893 conftest$ac_exeext conftest.$ac_ext
10894fi
10895
10896 LIBS=$ax_save_LIBS
10897 CPPFLAGS=$ax_save_CPPFLAGS
10898fi
10899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
10900$as_echo "$ax_cv_check_cl_libcl" >&6; }
10901
10902 if test "X$ax_cv_check_cl_libcl" = Xno; then :
10903 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
10904else
10905 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
10906$as_echo "#define _OPENCL 1" >>confdefs.h
10907
10908fi
10909 ac_ext=c
10910ac_cpp='$CPP $CPPFLAGS'
10911ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10912ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10913ac_compiler_gnu=$ac_cv_c_compiler_gnu
10914
10915fi
10916
10917
10918
cristy0c832c62014-03-07 22:21:04 +000010919#remove static link on Linux
10920CL_LIBS=`echo $CL_LIBS | $SED -e 's/-lOpenCL //'`
10921
cristy73bd4a52010-10-05 11:24:23 +000010922
cristyc7083c12009-10-14 03:16:55 +000010923CFLAGS="$CL_CFLAGS $CFLAGS"
cristyfdc7d122013-08-17 20:46:45 +000010924CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
cristyc7083c12009-10-14 03:16:55 +000010925LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +000010926
cristy391f1ce2010-09-09 17:23:28 +000010927if test "$enable_opencl" != no; then
cristy6e3607c2011-09-13 13:59:17 +000010928 if test "X$ax_cv_check_cl_libcl" != Xno; then :
cristy391f1ce2010-09-09 17:23:28 +000010929 MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
10930 fi
cristyfd9dcd42010-08-08 18:07:02 +000010931fi
cristy2e8b51d2009-10-17 18:26:15 +000010932
cristy3ed852e2009-09-05 21:47:34 +000010933########
10934#
10935# Check for large file support
10936#
10937########
10938# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +000010939if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010940 enableval=$enable_largefile;
10941fi
10942
10943if test "$enable_largefile" != no; then
10944
cristy8b350f62009-11-15 23:12:43 +000010945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010946$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010947if ${ac_cv_sys_largefile_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010948 $as_echo_n "(cached) " >&6
10949else
10950 ac_cv_sys_largefile_CC=no
10951 if test "$GCC" != yes; then
10952 ac_save_CC=$CC
10953 while :; do
10954 # IRIX 6.2 and later do not support large files by default,
10955 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +000010956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010957/* end confdefs.h. */
10958#include <sys/types.h>
10959 /* Check that off_t can represent 2**63 - 1 correctly.
10960 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10961 since some C++ compilers masquerading as C compilers
10962 incorrectly reject 9223372036854775807. */
10963#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10964 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10965 && LARGE_OFF_T % 2147483647 == 1)
10966 ? 1 : -1];
10967int
10968main ()
10969{
10970
10971 ;
10972 return 0;
10973}
10974_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010975 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010976 break
cristy3ed852e2009-09-05 21:47:34 +000010977fi
cristy3ed852e2009-09-05 21:47:34 +000010978rm -f core conftest.err conftest.$ac_objext
10979 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +000010980 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010981 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +000010982fi
cristy3ed852e2009-09-05 21:47:34 +000010983rm -f core conftest.err conftest.$ac_objext
10984 break
10985 done
10986 CC=$ac_save_CC
10987 rm -f conftest.$ac_ext
10988 fi
10989fi
cristy8b350f62009-11-15 23:12:43 +000010990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +000010991$as_echo "$ac_cv_sys_largefile_CC" >&6; }
10992 if test "$ac_cv_sys_largefile_CC" != no; then
10993 CC=$CC$ac_cv_sys_largefile_CC
10994 fi
10995
cristy8b350f62009-11-15 23:12:43 +000010996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010997$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010998if ${ac_cv_sys_file_offset_bits+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010999 $as_echo_n "(cached) " >&6
11000else
11001 while :; do
cristy8b350f62009-11-15 23:12:43 +000011002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011003/* end confdefs.h. */
11004#include <sys/types.h>
11005 /* Check that off_t can represent 2**63 - 1 correctly.
11006 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11007 since some C++ compilers masquerading as C compilers
11008 incorrectly reject 9223372036854775807. */
11009#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11010 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11011 && LARGE_OFF_T % 2147483647 == 1)
11012 ? 1 : -1];
11013int
11014main ()
11015{
11016
11017 ;
11018 return 0;
11019}
11020_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011021if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011022 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +000011023fi
cristy3ed852e2009-09-05 21:47:34 +000011024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000011025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011026/* end confdefs.h. */
11027#define _FILE_OFFSET_BITS 64
11028#include <sys/types.h>
11029 /* Check that off_t can represent 2**63 - 1 correctly.
11030 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11031 since some C++ compilers masquerading as C compilers
11032 incorrectly reject 9223372036854775807. */
11033#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11034 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11035 && LARGE_OFF_T % 2147483647 == 1)
11036 ? 1 : -1];
11037int
11038main ()
11039{
11040
11041 ;
11042 return 0;
11043}
11044_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011045if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011046 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +000011047fi
cristy3ed852e2009-09-05 21:47:34 +000011048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11049 ac_cv_sys_file_offset_bits=unknown
11050 break
11051done
11052fi
cristy8b350f62009-11-15 23:12:43 +000011053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +000011054$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
11055case $ac_cv_sys_file_offset_bits in #(
11056 no | unknown) ;;
11057 *)
11058cat >>confdefs.h <<_ACEOF
11059#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
11060_ACEOF
11061;;
11062esac
11063rm -rf conftest*
11064 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +000011065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000011066$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011067if ${ac_cv_sys_large_files+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000011068 $as_echo_n "(cached) " >&6
11069else
11070 while :; do
cristy8b350f62009-11-15 23:12:43 +000011071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011072/* end confdefs.h. */
11073#include <sys/types.h>
11074 /* Check that off_t can represent 2**63 - 1 correctly.
11075 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11076 since some C++ compilers masquerading as C compilers
11077 incorrectly reject 9223372036854775807. */
11078#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11079 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11080 && LARGE_OFF_T % 2147483647 == 1)
11081 ? 1 : -1];
11082int
11083main ()
11084{
11085
11086 ;
11087 return 0;
11088}
11089_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011090if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011091 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +000011092fi
cristy3ed852e2009-09-05 21:47:34 +000011093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000011094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011095/* end confdefs.h. */
11096#define _LARGE_FILES 1
11097#include <sys/types.h>
11098 /* Check that off_t can represent 2**63 - 1 correctly.
11099 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11100 since some C++ compilers masquerading as C compilers
11101 incorrectly reject 9223372036854775807. */
11102#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11103 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11104 && LARGE_OFF_T % 2147483647 == 1)
11105 ? 1 : -1];
11106int
11107main ()
11108{
11109
11110 ;
11111 return 0;
11112}
11113_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011114if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011115 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +000011116fi
cristy3ed852e2009-09-05 21:47:34 +000011117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11118 ac_cv_sys_large_files=unknown
11119 break
11120done
11121fi
cristy8b350f62009-11-15 23:12:43 +000011122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +000011123$as_echo "$ac_cv_sys_large_files" >&6; }
11124case $ac_cv_sys_large_files in #(
11125 no | unknown) ;;
11126 *)
11127cat >>confdefs.h <<_ACEOF
11128#define _LARGE_FILES $ac_cv_sys_large_files
11129_ACEOF
11130;;
11131esac
11132rm -rf conftest*
11133 fi
cristy14fefe52012-05-21 00:59:18 +000011134
11135
cristy3ed852e2009-09-05 21:47:34 +000011136fi
11137
cristy8b350f62009-11-15 23:12:43 +000011138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000011139$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011140if ${ac_cv_sys_largefile_source+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000011141 $as_echo_n "(cached) " >&6
11142else
11143 while :; do
cristy8b350f62009-11-15 23:12:43 +000011144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011145/* end confdefs.h. */
11146#include <sys/types.h> /* for off_t */
11147 #include <stdio.h>
11148int
11149main ()
11150{
11151int (*fp) (FILE *, off_t, int) = fseeko;
11152 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
11153 ;
11154 return 0;
11155}
11156_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011157if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011158 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +000011159fi
cristy8b350f62009-11-15 23:12:43 +000011160rm -f core conftest.err conftest.$ac_objext \
11161 conftest$ac_exeext conftest.$ac_ext
11162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011163/* end confdefs.h. */
11164#define _LARGEFILE_SOURCE 1
11165#include <sys/types.h> /* for off_t */
11166 #include <stdio.h>
11167int
11168main ()
11169{
11170int (*fp) (FILE *, off_t, int) = fseeko;
11171 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
11172 ;
11173 return 0;
11174}
11175_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011176if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011177 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +000011178fi
cristy8b350f62009-11-15 23:12:43 +000011179rm -f core conftest.err conftest.$ac_objext \
11180 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011181 ac_cv_sys_largefile_source=unknown
11182 break
11183done
11184fi
cristy8b350f62009-11-15 23:12:43 +000011185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +000011186$as_echo "$ac_cv_sys_largefile_source" >&6; }
11187case $ac_cv_sys_largefile_source in #(
11188 no | unknown) ;;
11189 *)
11190cat >>confdefs.h <<_ACEOF
11191#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
11192_ACEOF
11193;;
11194esac
11195rm -rf conftest*
11196
11197# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
11198# in glibc 2.1.3, but that breaks too many other things.
11199# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
11200if test $ac_cv_sys_largefile_source != unknown; then
11201
cristy8b350f62009-11-15 23:12:43 +000011202$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000011203
11204fi
11205
11206LFS_CPPFLAGS=''
11207if test "$enable_largefile" != no; then
cristyc1e0cc12011-09-21 16:41:16 +000011208 case $ac_cv_sys_file_offset_bits in
11209 no)
11210 # nothing to do here as the host supports LFS fine
11211 ;;
11212 unknown)
cristy8b350f62009-11-15 23:12:43 +000011213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +000011214$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011215 if test "$cross_compiling" = yes; then :
11216 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000011217$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000011218as_fn_error $? "cannot run test program while cross compiling
11219See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000011220else
cristy8b350f62009-11-15 23:12:43 +000011221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11222/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000011223#include <unistd.h>
11224 main () {
11225 exit(!(sizeof(off_t) == 8));
11226 }
cristyda16f162011-02-19 23:52:17 +000011227int
11228main ()
11229{
11230
11231 ;
11232 return 0;
11233}
cristy3ed852e2009-09-05 21:47:34 +000011234_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011235if ac_fn_c_try_run "$LINENO"; then :
11236 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000011237
cristyad38abe2012-12-23 23:03:21 +000011238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11239$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000011240else
cristyad38abe2012-12-23 23:03:21 +000011241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11242$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000011243fi
cristy8b350f62009-11-15 23:12:43 +000011244rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11245 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011246fi
11247
cristyc1e0cc12011-09-21 16:41:16 +000011248 ;;
11249 *)
11250 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
11251 ;;
11252 esac
cristy3ed852e2009-09-05 21:47:34 +000011253 if test "$ac_cv_sys_large_files" != 'no'; then
11254 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
11255 fi
11256 if test "$ac_cv_sys_largefile_source" != 'no'; then
11257 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
11258 fi
11259fi
11260
11261
cristy3ed852e2009-09-05 21:47:34 +000011262# Configure libtool
cristy73bd4a52010-10-05 11:24:23 +000011263enable_dlopen=yes
11264
11265
11266
11267case `pwd` in
11268 *\ * | *\ *)
11269 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11270$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11271esac
11272
11273
11274
cristy99bd5232011-12-07 14:38:20 +000011275macro_version='2.4.2'
11276macro_revision='1.3337'
cristy73bd4a52010-10-05 11:24:23 +000011277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290ltmain="$ac_aux_dir/ltmain.sh"
11291
cristy0c60a692010-11-04 01:09:47 +000011292# Backslashify metacharacters that are still active within
11293# double-quoted strings.
11294sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11295
11296# Same as above, but do not quote variable references.
11297double_quote_subst='s/\(["`\\]\)/\\\1/g'
11298
11299# Sed substitution to delay expansion of an escaped shell variable in a
11300# double_quote_subst'ed string.
11301delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11302
11303# Sed substitution to delay expansion of an escaped single quote.
11304delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11305
11306# Sed substitution to avoid accidental globbing in evaled expressions
11307no_glob_subst='s/\*/\\\*/g'
11308
cristy73bd4a52010-10-05 11:24:23 +000011309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11310$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011311if ${lt_cv_path_NM+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011312 $as_echo_n "(cached) " >&6
11313else
11314 if test -n "$NM"; then
11315 # Let the user override the test.
11316 lt_cv_path_NM="$NM"
11317else
11318 lt_nm_to_check="${ac_tool_prefix}nm"
11319 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11320 lt_nm_to_check="$lt_nm_to_check nm"
11321 fi
11322 for lt_tmp_nm in $lt_nm_to_check; do
11323 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11324 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11325 IFS="$lt_save_ifs"
11326 test -z "$ac_dir" && ac_dir=.
11327 tmp_nm="$ac_dir/$lt_tmp_nm"
11328 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
11329 # Check to see if the nm accepts a BSD-compat flag.
11330 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
11331 # nm: unknown option "B" ignored
11332 # Tru64's nm complains that /dev/null is an invalid object file
11333 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
11334 */dev/null* | *'Invalid file or object type'*)
11335 lt_cv_path_NM="$tmp_nm -B"
11336 break
11337 ;;
11338 *)
11339 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11340 */dev/null*)
11341 lt_cv_path_NM="$tmp_nm -p"
11342 break
11343 ;;
11344 *)
11345 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11346 continue # so that we can try to find one that supports BSD flags
11347 ;;
11348 esac
11349 ;;
11350 esac
11351 fi
11352 done
11353 IFS="$lt_save_ifs"
11354 done
11355 : ${lt_cv_path_NM=no}
11356fi
11357fi
11358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11359$as_echo "$lt_cv_path_NM" >&6; }
11360if test "$lt_cv_path_NM" != "no"; then
11361 NM="$lt_cv_path_NM"
11362else
11363 # Didn't find any BSD compatible name lister, look for dumpbin.
cristy0c60a692010-11-04 01:09:47 +000011364 if test -n "$DUMPBIN"; then :
11365 # Let the user override the test.
11366 else
11367 if test -n "$ac_tool_prefix"; then
11368 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000011369 do
11370 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11371set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11373$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011374if ${ac_cv_prog_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011375 $as_echo_n "(cached) " >&6
11376else
11377 if test -n "$DUMPBIN"; then
11378 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11379else
11380as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11381for as_dir in $PATH
11382do
11383 IFS=$as_save_IFS
11384 test -z "$as_dir" && as_dir=.
11385 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011386 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011387 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11389 break 2
11390 fi
11391done
11392 done
11393IFS=$as_save_IFS
11394
11395fi
11396fi
11397DUMPBIN=$ac_cv_prog_DUMPBIN
11398if test -n "$DUMPBIN"; then
11399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11400$as_echo "$DUMPBIN" >&6; }
11401else
11402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11403$as_echo "no" >&6; }
11404fi
11405
11406
11407 test -n "$DUMPBIN" && break
11408 done
11409fi
11410if test -z "$DUMPBIN"; then
11411 ac_ct_DUMPBIN=$DUMPBIN
cristy0c60a692010-11-04 01:09:47 +000011412 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000011413do
11414 # Extract the first word of "$ac_prog", so it can be a program name with args.
11415set dummy $ac_prog; ac_word=$2
11416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11417$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011418if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011419 $as_echo_n "(cached) " >&6
11420else
11421 if test -n "$ac_ct_DUMPBIN"; then
11422 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11423else
11424as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11425for as_dir in $PATH
11426do
11427 IFS=$as_save_IFS
11428 test -z "$as_dir" && as_dir=.
11429 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011430 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011431 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11433 break 2
11434 fi
11435done
11436 done
11437IFS=$as_save_IFS
11438
11439fi
11440fi
11441ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11442if test -n "$ac_ct_DUMPBIN"; then
11443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11444$as_echo "$ac_ct_DUMPBIN" >&6; }
11445else
11446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11447$as_echo "no" >&6; }
11448fi
11449
11450
11451 test -n "$ac_ct_DUMPBIN" && break
11452done
11453
11454 if test "x$ac_ct_DUMPBIN" = x; then
11455 DUMPBIN=":"
11456 else
11457 case $cross_compiling:$ac_tool_warned in
11458yes:)
11459{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11460$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11461ac_tool_warned=yes ;;
11462esac
11463 DUMPBIN=$ac_ct_DUMPBIN
11464 fi
11465fi
11466
cristy0c60a692010-11-04 01:09:47 +000011467 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
11468 *COFF*)
11469 DUMPBIN="$DUMPBIN -symbols"
11470 ;;
11471 *)
11472 DUMPBIN=:
11473 ;;
11474 esac
11475 fi
cristy73bd4a52010-10-05 11:24:23 +000011476
11477 if test "$DUMPBIN" != ":"; then
11478 NM="$DUMPBIN"
11479 fi
11480fi
11481test -z "$NM" && NM=nm
11482
11483
11484
11485
11486
11487
11488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11489$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011490if ${lt_cv_nm_interface+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011491 $as_echo_n "(cached) " >&6
11492else
11493 lt_cv_nm_interface="BSD nm"
11494 echo "int some_variable = 0;" > conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000011495 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000011496 (eval "$ac_compile" 2>conftest.err)
11497 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000011498 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000011499 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11500 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000011501 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000011502 cat conftest.out >&5
11503 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11504 lt_cv_nm_interface="MS dumpbin"
11505 fi
11506 rm -f conftest*
11507fi
11508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11509$as_echo "$lt_cv_nm_interface" >&6; }
11510
11511# find the maximum length of command line arguments
11512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11513$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011514if ${lt_cv_sys_max_cmd_len+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011515 $as_echo_n "(cached) " >&6
11516else
11517 i=0
11518 teststring="ABCD"
11519
11520 case $build_os in
11521 msdosdjgpp*)
11522 # On DJGPP, this test can blow up pretty badly due to problems in libc
11523 # (any single argument exceeding 2000 bytes causes a buffer overrun
11524 # during glob expansion). Even if it were fixed, the result of this
11525 # check would be larger than it should be.
11526 lt_cv_sys_max_cmd_len=12288; # 12K is about right
11527 ;;
11528
11529 gnu*)
11530 # Under GNU Hurd, this test is not required because there is
11531 # no limit to the length of command line arguments.
11532 # Libtool will interpret -1 as no limit whatsoever
11533 lt_cv_sys_max_cmd_len=-1;
11534 ;;
11535
11536 cygwin* | mingw* | cegcc*)
11537 # On Win9x/ME, this test blows up -- it succeeds, but takes
11538 # about 5 minutes as the teststring grows exponentially.
11539 # Worse, since 9x/ME are not pre-emptively multitasking,
11540 # you end up with a "frozen" computer, even though with patience
11541 # the test eventually succeeds (with a max line length of 256k).
11542 # Instead, let's just punt: use the minimum linelength reported by
11543 # all of the supported platforms: 8192 (on NT/2K/XP).
11544 lt_cv_sys_max_cmd_len=8192;
11545 ;;
11546
cristy0c60a692010-11-04 01:09:47 +000011547 mint*)
11548 # On MiNT this can take a long time and run out of memory.
11549 lt_cv_sys_max_cmd_len=8192;
11550 ;;
11551
cristy73bd4a52010-10-05 11:24:23 +000011552 amigaos*)
11553 # On AmigaOS with pdksh, this test takes hours, literally.
11554 # So we just punt and use a minimum line length of 8192.
11555 lt_cv_sys_max_cmd_len=8192;
11556 ;;
11557
11558 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
11559 # This has been around since 386BSD, at least. Likely further.
11560 if test -x /sbin/sysctl; then
11561 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11562 elif test -x /usr/sbin/sysctl; then
11563 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11564 else
11565 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
11566 fi
11567 # And add a safety zone
11568 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11569 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11570 ;;
11571
11572 interix*)
11573 # We know the value 262144 and hardcode it with a safety zone (like BSD)
11574 lt_cv_sys_max_cmd_len=196608
11575 ;;
11576
cristy99bd5232011-12-07 14:38:20 +000011577 os2*)
11578 # The test takes a long time on OS/2.
11579 lt_cv_sys_max_cmd_len=8192
11580 ;;
11581
cristy73bd4a52010-10-05 11:24:23 +000011582 osf*)
11583 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11584 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11585 # nice to cause kernel panics so lets avoid the loop below.
11586 # First set a reasonable default.
11587 lt_cv_sys_max_cmd_len=16384
11588 #
11589 if test -x /sbin/sysconfig; then
11590 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11591 *1*) lt_cv_sys_max_cmd_len=-1 ;;
11592 esac
11593 fi
11594 ;;
11595 sco3.2v5*)
11596 lt_cv_sys_max_cmd_len=102400
11597 ;;
11598 sysv5* | sco5v6* | sysv4.2uw2*)
11599 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11600 if test -n "$kargmax"; then
11601 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
11602 else
11603 lt_cv_sys_max_cmd_len=32768
11604 fi
11605 ;;
11606 *)
11607 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11608 if test -n "$lt_cv_sys_max_cmd_len"; then
11609 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11610 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11611 else
11612 # Make teststring a little bigger before we do anything with it.
11613 # a 1K string should be a reasonable start.
11614 for i in 1 2 3 4 5 6 7 8 ; do
11615 teststring=$teststring$teststring
11616 done
11617 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11618 # If test is not a shell built-in, we'll probably end up computing a
11619 # maximum length that is only half of the actual maximum length, but
11620 # we can't tell.
cristy99bd5232011-12-07 14:38:20 +000011621 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
cristy0c60a692010-11-04 01:09:47 +000011622 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
cristy73bd4a52010-10-05 11:24:23 +000011623 test $i != 17 # 1/2 MB should be enough
11624 do
11625 i=`expr $i + 1`
11626 teststring=$teststring$teststring
11627 done
11628 # Only check the string length outside the loop.
11629 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11630 teststring=
11631 # Add a significant safety factor because C++ compilers can tack on
11632 # massive amounts of additional arguments before passing them to the
11633 # linker. It appears as though 1/2 is a usable value.
11634 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11635 fi
11636 ;;
11637 esac
11638
11639fi
11640
11641if test -n $lt_cv_sys_max_cmd_len ; then
11642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11643$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11644else
11645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11646$as_echo "none" >&6; }
11647fi
11648max_cmd_len=$lt_cv_sys_max_cmd_len
11649
11650
11651
11652
11653
11654
11655: ${CP="cp -f"}
11656: ${MV="mv -f"}
11657: ${RM="rm -f"}
11658
11659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
11660$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
11661# Try some XSI features
11662xsi_shell=no
11663( _lt_dummy="a/b/c"
cristyda16f162011-02-19 23:52:17 +000011664 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
11665 = c,a/b,b/c, \
cristy73bd4a52010-10-05 11:24:23 +000011666 && eval 'test $(( 1 + 1 )) -eq 2 \
11667 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
11668 && xsi_shell=yes
11669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
11670$as_echo "$xsi_shell" >&6; }
11671
11672
11673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
11674$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
11675lt_shell_append=no
11676( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
11677 >/dev/null 2>&1 \
11678 && lt_shell_append=yes
11679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
11680$as_echo "$lt_shell_append" >&6; }
11681
11682
11683if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11684 lt_unset=unset
11685else
11686 lt_unset=false
11687fi
11688
11689
11690
11691
11692
11693# test EBCDIC or ASCII
11694case `echo X|tr X '\101'` in
11695 A) # ASCII based system
11696 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11697 lt_SP2NL='tr \040 \012'
11698 lt_NL2SP='tr \015\012 \040\040'
11699 ;;
11700 *) # EBCDIC based system
11701 lt_SP2NL='tr \100 \n'
11702 lt_NL2SP='tr \r\n \100\100'
11703 ;;
11704esac
11705
11706
11707
11708
11709
11710
11711
11712
11713
cristyda16f162011-02-19 23:52:17 +000011714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
11715$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
11716if ${lt_cv_to_host_file_cmd+:} false; then :
11717 $as_echo_n "(cached) " >&6
11718else
11719 case $host in
11720 *-*-mingw* )
11721 case $build in
11722 *-*-mingw* ) # actually msys
11723 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
11724 ;;
11725 *-*-cygwin* )
11726 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
11727 ;;
11728 * ) # otherwise, assume *nix
11729 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
11730 ;;
11731 esac
11732 ;;
11733 *-*-cygwin* )
11734 case $build in
11735 *-*-mingw* ) # actually msys
11736 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
11737 ;;
11738 *-*-cygwin* )
11739 lt_cv_to_host_file_cmd=func_convert_file_noop
11740 ;;
11741 * ) # otherwise, assume *nix
11742 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
11743 ;;
11744 esac
11745 ;;
11746 * ) # unhandled hosts (and "normal" native builds)
11747 lt_cv_to_host_file_cmd=func_convert_file_noop
11748 ;;
11749esac
11750
11751fi
11752
11753to_host_file_cmd=$lt_cv_to_host_file_cmd
11754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
11755$as_echo "$lt_cv_to_host_file_cmd" >&6; }
11756
11757
11758
11759
11760
11761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
11762$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
11763if ${lt_cv_to_tool_file_cmd+:} false; then :
11764 $as_echo_n "(cached) " >&6
11765else
11766 #assume ordinary cross tools, or native build.
11767lt_cv_to_tool_file_cmd=func_convert_file_noop
11768case $host in
11769 *-*-mingw* )
11770 case $build in
11771 *-*-mingw* ) # actually msys
11772 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
11773 ;;
11774 esac
11775 ;;
11776esac
11777
11778fi
11779
11780to_tool_file_cmd=$lt_cv_to_tool_file_cmd
11781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
11782$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
11783
11784
11785
11786
11787
cristy73bd4a52010-10-05 11:24:23 +000011788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11789$as_echo_n "checking for $LD option to reload object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011790if ${lt_cv_ld_reload_flag+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011791 $as_echo_n "(cached) " >&6
11792else
11793 lt_cv_ld_reload_flag='-r'
11794fi
11795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11796$as_echo "$lt_cv_ld_reload_flag" >&6; }
11797reload_flag=$lt_cv_ld_reload_flag
11798case $reload_flag in
11799"" | " "*) ;;
11800*) reload_flag=" $reload_flag" ;;
11801esac
11802reload_cmds='$LD$reload_flag -o $output$reload_objs'
11803case $host_os in
cristyda16f162011-02-19 23:52:17 +000011804 cygwin* | mingw* | pw32* | cegcc*)
11805 if test "$GCC" != yes; then
11806 reload_cmds=false
11807 fi
11808 ;;
cristy73bd4a52010-10-05 11:24:23 +000011809 darwin*)
11810 if test "$GCC" = yes; then
11811 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
11812 else
11813 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11814 fi
11815 ;;
11816esac
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826if test -n "$ac_tool_prefix"; then
11827 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11828set dummy ${ac_tool_prefix}objdump; ac_word=$2
11829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11830$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011831if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011832 $as_echo_n "(cached) " >&6
11833else
11834 if test -n "$OBJDUMP"; then
11835 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11836else
11837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11838for as_dir in $PATH
11839do
11840 IFS=$as_save_IFS
11841 test -z "$as_dir" && as_dir=.
11842 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011843 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011844 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11846 break 2
11847 fi
11848done
11849 done
11850IFS=$as_save_IFS
11851
11852fi
11853fi
11854OBJDUMP=$ac_cv_prog_OBJDUMP
11855if test -n "$OBJDUMP"; then
11856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11857$as_echo "$OBJDUMP" >&6; }
11858else
11859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11860$as_echo "no" >&6; }
11861fi
11862
11863
11864fi
11865if test -z "$ac_cv_prog_OBJDUMP"; then
11866 ac_ct_OBJDUMP=$OBJDUMP
11867 # Extract the first word of "objdump", so it can be a program name with args.
11868set dummy objdump; ac_word=$2
11869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11870$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011871if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011872 $as_echo_n "(cached) " >&6
11873else
11874 if test -n "$ac_ct_OBJDUMP"; then
11875 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11876else
11877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11878for as_dir in $PATH
11879do
11880 IFS=$as_save_IFS
11881 test -z "$as_dir" && as_dir=.
11882 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011883 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011884 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11886 break 2
11887 fi
11888done
11889 done
11890IFS=$as_save_IFS
11891
11892fi
11893fi
11894ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11895if test -n "$ac_ct_OBJDUMP"; then
11896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11897$as_echo "$ac_ct_OBJDUMP" >&6; }
11898else
11899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11900$as_echo "no" >&6; }
11901fi
11902
11903 if test "x$ac_ct_OBJDUMP" = x; then
11904 OBJDUMP="false"
11905 else
11906 case $cross_compiling:$ac_tool_warned in
11907yes:)
11908{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11909$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11910ac_tool_warned=yes ;;
11911esac
11912 OBJDUMP=$ac_ct_OBJDUMP
11913 fi
11914else
11915 OBJDUMP="$ac_cv_prog_OBJDUMP"
11916fi
11917
11918test -z "$OBJDUMP" && OBJDUMP=objdump
11919
11920
11921
11922
11923
11924
11925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11926$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011927if ${lt_cv_deplibs_check_method+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011928 $as_echo_n "(cached) " >&6
11929else
11930 lt_cv_file_magic_cmd='$MAGIC_CMD'
11931lt_cv_file_magic_test_file=
11932lt_cv_deplibs_check_method='unknown'
11933# Need to set the preceding variable on all platforms that support
11934# interlibrary dependencies.
11935# 'none' -- dependencies not supported.
11936# `unknown' -- same as none, but documents that we really don't know.
11937# 'pass_all' -- all dependencies passed with no checks.
11938# 'test_compile' -- check by making test program.
11939# 'file_magic [[regex]]' -- check by looking for files in library path
11940# which responds to the $file_magic_cmd with a given extended regex.
11941# If you have `file' or equivalent on your system and you're not sure
11942# whether `pass_all' will *always* work, you probably want this one.
11943
11944case $host_os in
11945aix[4-9]*)
11946 lt_cv_deplibs_check_method=pass_all
11947 ;;
11948
11949beos*)
11950 lt_cv_deplibs_check_method=pass_all
11951 ;;
11952
11953bsdi[45]*)
11954 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11955 lt_cv_file_magic_cmd='/usr/bin/file -L'
11956 lt_cv_file_magic_test_file=/shlib/libc.so
11957 ;;
11958
11959cygwin*)
11960 # func_win32_libid is a shell function defined in ltmain.sh
11961 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11962 lt_cv_file_magic_cmd='func_win32_libid'
11963 ;;
11964
11965mingw* | pw32*)
11966 # Base MSYS/MinGW do not provide the 'file' command needed by
11967 # func_win32_libid shell function, so use a weaker test based on 'objdump',
11968 # unless we find 'file', for example because we are cross-compiling.
cristy0c60a692010-11-04 01:09:47 +000011969 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
11970 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
cristy73bd4a52010-10-05 11:24:23 +000011971 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11972 lt_cv_file_magic_cmd='func_win32_libid'
11973 else
cristy0c60a692010-11-04 01:09:47 +000011974 # Keep this pattern in sync with the one in func_win32_libid.
11975 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 +000011976 lt_cv_file_magic_cmd='$OBJDUMP -f'
11977 fi
11978 ;;
11979
cristy0c60a692010-11-04 01:09:47 +000011980cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000011981 # use the weaker test based on 'objdump'. See mingw*.
11982 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11983 lt_cv_file_magic_cmd='$OBJDUMP -f'
11984 ;;
11985
11986darwin* | rhapsody*)
11987 lt_cv_deplibs_check_method=pass_all
11988 ;;
11989
11990freebsd* | dragonfly*)
11991 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11992 case $host_cpu in
11993 i*86 )
11994 # Not sure whether the presence of OpenBSD here was a mistake.
11995 # Let's accept both of them until this is cleared up.
11996 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11997 lt_cv_file_magic_cmd=/usr/bin/file
11998 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11999 ;;
12000 esac
12001 else
12002 lt_cv_deplibs_check_method=pass_all
12003 fi
12004 ;;
12005
12006gnu*)
12007 lt_cv_deplibs_check_method=pass_all
12008 ;;
12009
cristy0c60a692010-11-04 01:09:47 +000012010haiku*)
12011 lt_cv_deplibs_check_method=pass_all
12012 ;;
12013
cristy73bd4a52010-10-05 11:24:23 +000012014hpux10.20* | hpux11*)
12015 lt_cv_file_magic_cmd=/usr/bin/file
12016 case $host_cpu in
12017 ia64*)
12018 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12019 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12020 ;;
12021 hppa*64*)
cristy0c60a692010-11-04 01:09:47 +000012022 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 +000012023 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12024 ;;
12025 *)
cristy0c60a692010-11-04 01:09:47 +000012026 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 +000012027 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12028 ;;
12029 esac
12030 ;;
12031
12032interix[3-9]*)
12033 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12034 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12035 ;;
12036
12037irix5* | irix6* | nonstopux*)
12038 case $LD in
12039 *-32|*"-32 ") libmagic=32-bit;;
12040 *-n32|*"-n32 ") libmagic=N32;;
12041 *-64|*"-64 ") libmagic=64-bit;;
12042 *) libmagic=never-match;;
12043 esac
12044 lt_cv_deplibs_check_method=pass_all
12045 ;;
12046
cristy99bd5232011-12-07 14:38:20 +000012047# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000012048linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000012049 lt_cv_deplibs_check_method=pass_all
12050 ;;
12051
12052netbsd*)
12053 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12054 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12055 else
12056 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12057 fi
12058 ;;
12059
12060newos6*)
12061 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12062 lt_cv_file_magic_cmd=/usr/bin/file
12063 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12064 ;;
12065
12066*nto* | *qnx*)
12067 lt_cv_deplibs_check_method=pass_all
12068 ;;
12069
12070openbsd*)
12071 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12072 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12073 else
12074 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12075 fi
12076 ;;
12077
12078osf3* | osf4* | osf5*)
12079 lt_cv_deplibs_check_method=pass_all
12080 ;;
12081
12082rdos*)
12083 lt_cv_deplibs_check_method=pass_all
12084 ;;
12085
12086solaris*)
12087 lt_cv_deplibs_check_method=pass_all
12088 ;;
12089
12090sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12091 lt_cv_deplibs_check_method=pass_all
12092 ;;
12093
12094sysv4 | sysv4.3*)
12095 case $host_vendor in
12096 motorola)
12097 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]'
12098 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12099 ;;
12100 ncr)
12101 lt_cv_deplibs_check_method=pass_all
12102 ;;
12103 sequent)
12104 lt_cv_file_magic_cmd='/bin/file'
12105 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12106 ;;
12107 sni)
12108 lt_cv_file_magic_cmd='/bin/file'
12109 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12110 lt_cv_file_magic_test_file=/lib/libc.so
12111 ;;
12112 siemens)
12113 lt_cv_deplibs_check_method=pass_all
12114 ;;
12115 pc)
12116 lt_cv_deplibs_check_method=pass_all
12117 ;;
12118 esac
12119 ;;
12120
12121tpf*)
12122 lt_cv_deplibs_check_method=pass_all
12123 ;;
12124esac
12125
12126fi
12127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12128$as_echo "$lt_cv_deplibs_check_method" >&6; }
cristyda16f162011-02-19 23:52:17 +000012129
12130file_magic_glob=
12131want_nocaseglob=no
12132if test "$build" = "$host"; then
12133 case $host_os in
12134 mingw* | pw32*)
12135 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
12136 want_nocaseglob=yes
12137 else
12138 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
12139 fi
12140 ;;
12141 esac
12142fi
12143
cristy73bd4a52010-10-05 11:24:23 +000012144file_magic_cmd=$lt_cv_file_magic_cmd
12145deplibs_check_method=$lt_cv_deplibs_check_method
12146test -z "$deplibs_check_method" && deplibs_check_method=unknown
12147
12148
12149
12150
12151
12152
12153
12154
12155
12156
12157
12158
cristyda16f162011-02-19 23:52:17 +000012159
12160
12161
12162
12163
12164
12165
12166
12167
12168
cristy73bd4a52010-10-05 11:24:23 +000012169if test -n "$ac_tool_prefix"; then
cristyda16f162011-02-19 23:52:17 +000012170 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12171set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000012172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12173$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012174if ${ac_cv_prog_DLLTOOL+:} false; then :
12175 $as_echo_n "(cached) " >&6
12176else
12177 if test -n "$DLLTOOL"; then
12178 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12179else
12180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12181for as_dir in $PATH
12182do
12183 IFS=$as_save_IFS
12184 test -z "$as_dir" && as_dir=.
12185 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012187 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12189 break 2
12190 fi
12191done
12192 done
12193IFS=$as_save_IFS
12194
12195fi
12196fi
12197DLLTOOL=$ac_cv_prog_DLLTOOL
12198if test -n "$DLLTOOL"; then
12199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12200$as_echo "$DLLTOOL" >&6; }
12201else
12202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12203$as_echo "no" >&6; }
12204fi
12205
12206
12207fi
12208if test -z "$ac_cv_prog_DLLTOOL"; then
12209 ac_ct_DLLTOOL=$DLLTOOL
12210 # Extract the first word of "dlltool", so it can be a program name with args.
12211set dummy dlltool; ac_word=$2
12212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12213$as_echo_n "checking for $ac_word... " >&6; }
12214if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
12215 $as_echo_n "(cached) " >&6
12216else
12217 if test -n "$ac_ct_DLLTOOL"; then
12218 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12219else
12220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12221for as_dir in $PATH
12222do
12223 IFS=$as_save_IFS
12224 test -z "$as_dir" && as_dir=.
12225 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012226 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012227 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12229 break 2
12230 fi
12231done
12232 done
12233IFS=$as_save_IFS
12234
12235fi
12236fi
12237ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12238if test -n "$ac_ct_DLLTOOL"; then
12239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12240$as_echo "$ac_ct_DLLTOOL" >&6; }
12241else
12242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12243$as_echo "no" >&6; }
12244fi
12245
12246 if test "x$ac_ct_DLLTOOL" = x; then
12247 DLLTOOL="false"
12248 else
12249 case $cross_compiling:$ac_tool_warned in
12250yes:)
12251{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12252$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12253ac_tool_warned=yes ;;
12254esac
12255 DLLTOOL=$ac_ct_DLLTOOL
12256 fi
12257else
12258 DLLTOOL="$ac_cv_prog_DLLTOOL"
12259fi
12260
12261test -z "$DLLTOOL" && DLLTOOL=dlltool
12262
12263
12264
12265
12266
12267
12268
12269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
12270$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
12271if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
12272 $as_echo_n "(cached) " >&6
12273else
12274 lt_cv_sharedlib_from_linklib_cmd='unknown'
12275
12276case $host_os in
12277cygwin* | mingw* | pw32* | cegcc*)
12278 # two different shell functions defined in ltmain.sh
12279 # decide which to use based on capabilities of $DLLTOOL
12280 case `$DLLTOOL --help 2>&1` in
12281 *--identify-strict*)
12282 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
12283 ;;
12284 *)
12285 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
12286 ;;
12287 esac
12288 ;;
12289*)
12290 # fallback: assume linklib IS sharedlib
12291 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
12292 ;;
12293esac
12294
12295fi
12296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
12297$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
12298sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
12299test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
12300
12301
12302
12303
12304
12305
12306
12307if test -n "$ac_tool_prefix"; then
12308 for ac_prog in ar
12309 do
12310 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12311set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12313$as_echo_n "checking for $ac_word... " >&6; }
12314if ${ac_cv_prog_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012315 $as_echo_n "(cached) " >&6
12316else
12317 if test -n "$AR"; then
12318 ac_cv_prog_AR="$AR" # Let the user override the test.
12319else
12320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12321for as_dir in $PATH
12322do
12323 IFS=$as_save_IFS
12324 test -z "$as_dir" && as_dir=.
12325 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012326 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012327 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000012328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12329 break 2
12330 fi
12331done
12332 done
12333IFS=$as_save_IFS
12334
12335fi
12336fi
12337AR=$ac_cv_prog_AR
12338if test -n "$AR"; then
12339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12340$as_echo "$AR" >&6; }
12341else
12342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12343$as_echo "no" >&6; }
12344fi
12345
12346
cristyda16f162011-02-19 23:52:17 +000012347 test -n "$AR" && break
12348 done
cristy73bd4a52010-10-05 11:24:23 +000012349fi
cristyda16f162011-02-19 23:52:17 +000012350if test -z "$AR"; then
cristy73bd4a52010-10-05 11:24:23 +000012351 ac_ct_AR=$AR
cristyda16f162011-02-19 23:52:17 +000012352 for ac_prog in ar
12353do
12354 # Extract the first word of "$ac_prog", so it can be a program name with args.
12355set dummy $ac_prog; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000012356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12357$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012358if ${ac_cv_prog_ac_ct_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012359 $as_echo_n "(cached) " >&6
12360else
12361 if test -n "$ac_ct_AR"; then
12362 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12363else
12364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12365for as_dir in $PATH
12366do
12367 IFS=$as_save_IFS
12368 test -z "$as_dir" && as_dir=.
12369 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012370 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012371 ac_cv_prog_ac_ct_AR="$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000012372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12373 break 2
12374 fi
12375done
12376 done
12377IFS=$as_save_IFS
12378
12379fi
12380fi
12381ac_ct_AR=$ac_cv_prog_ac_ct_AR
12382if test -n "$ac_ct_AR"; then
12383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12384$as_echo "$ac_ct_AR" >&6; }
12385else
12386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12387$as_echo "no" >&6; }
12388fi
12389
cristyda16f162011-02-19 23:52:17 +000012390
12391 test -n "$ac_ct_AR" && break
12392done
12393
cristy73bd4a52010-10-05 11:24:23 +000012394 if test "x$ac_ct_AR" = x; then
12395 AR="false"
12396 else
12397 case $cross_compiling:$ac_tool_warned in
12398yes:)
12399{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12400$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12401ac_tool_warned=yes ;;
12402esac
12403 AR=$ac_ct_AR
12404 fi
cristy73bd4a52010-10-05 11:24:23 +000012405fi
12406
cristyda16f162011-02-19 23:52:17 +000012407: ${AR=ar}
12408: ${AR_FLAGS=cru}
cristy73bd4a52010-10-05 11:24:23 +000012409
12410
12411
12412
12413
12414
12415
12416
12417
12418
12419
cristyda16f162011-02-19 23:52:17 +000012420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
12421$as_echo_n "checking for archiver @FILE support... " >&6; }
12422if ${lt_cv_ar_at_file+:} false; then :
12423 $as_echo_n "(cached) " >&6
12424else
12425 lt_cv_ar_at_file=no
12426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12427/* end confdefs.h. */
12428
12429int
12430main ()
12431{
12432
12433 ;
12434 return 0;
12435}
12436_ACEOF
12437if ac_fn_c_try_compile "$LINENO"; then :
12438 echo conftest.$ac_objext > conftest.lst
12439 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
12440 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12441 (eval $lt_ar_try) 2>&5
12442 ac_status=$?
12443 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12444 test $ac_status = 0; }
12445 if test "$ac_status" -eq 0; then
12446 # Ensure the archiver fails upon bogus file names.
12447 rm -f conftest.$ac_objext libconftest.a
12448 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12449 (eval $lt_ar_try) 2>&5
12450 ac_status=$?
12451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12452 test $ac_status = 0; }
12453 if test "$ac_status" -ne 0; then
12454 lt_cv_ar_at_file=@
12455 fi
12456 fi
12457 rm -f conftest.* libconftest.a
12458
12459fi
12460rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12461
12462fi
12463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
12464$as_echo "$lt_cv_ar_at_file" >&6; }
12465
12466if test "x$lt_cv_ar_at_file" = xno; then
12467 archiver_list_spec=
12468else
12469 archiver_list_spec=$lt_cv_ar_at_file
12470fi
12471
12472
12473
12474
12475
12476
12477
cristy73bd4a52010-10-05 11:24:23 +000012478if test -n "$ac_tool_prefix"; then
12479 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12480set dummy ${ac_tool_prefix}strip; ac_word=$2
12481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12482$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012483if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012484 $as_echo_n "(cached) " >&6
12485else
12486 if test -n "$STRIP"; then
12487 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12488else
12489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12490for as_dir in $PATH
12491do
12492 IFS=$as_save_IFS
12493 test -z "$as_dir" && as_dir=.
12494 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012495 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012496 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12498 break 2
12499 fi
12500done
12501 done
12502IFS=$as_save_IFS
12503
12504fi
12505fi
12506STRIP=$ac_cv_prog_STRIP
12507if test -n "$STRIP"; then
12508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12509$as_echo "$STRIP" >&6; }
12510else
12511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12512$as_echo "no" >&6; }
12513fi
12514
12515
12516fi
12517if test -z "$ac_cv_prog_STRIP"; then
12518 ac_ct_STRIP=$STRIP
12519 # Extract the first word of "strip", so it can be a program name with args.
12520set dummy strip; ac_word=$2
12521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12522$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012523if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012524 $as_echo_n "(cached) " >&6
12525else
12526 if test -n "$ac_ct_STRIP"; then
12527 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12528else
12529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12530for as_dir in $PATH
12531do
12532 IFS=$as_save_IFS
12533 test -z "$as_dir" && as_dir=.
12534 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012535 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012536 ac_cv_prog_ac_ct_STRIP="strip"
12537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12538 break 2
12539 fi
12540done
12541 done
12542IFS=$as_save_IFS
12543
12544fi
12545fi
12546ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12547if test -n "$ac_ct_STRIP"; then
12548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12549$as_echo "$ac_ct_STRIP" >&6; }
12550else
12551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12552$as_echo "no" >&6; }
12553fi
12554
12555 if test "x$ac_ct_STRIP" = x; then
12556 STRIP=":"
12557 else
12558 case $cross_compiling:$ac_tool_warned in
12559yes:)
12560{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12561$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12562ac_tool_warned=yes ;;
12563esac
12564 STRIP=$ac_ct_STRIP
12565 fi
12566else
12567 STRIP="$ac_cv_prog_STRIP"
12568fi
12569
12570test -z "$STRIP" && STRIP=:
12571
12572
12573
12574
12575
12576
12577if test -n "$ac_tool_prefix"; then
12578 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12579set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12581$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012582if ${ac_cv_prog_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012583 $as_echo_n "(cached) " >&6
12584else
12585 if test -n "$RANLIB"; then
12586 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12587else
12588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12589for as_dir in $PATH
12590do
12591 IFS=$as_save_IFS
12592 test -z "$as_dir" && as_dir=.
12593 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012595 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12597 break 2
12598 fi
12599done
12600 done
12601IFS=$as_save_IFS
12602
12603fi
12604fi
12605RANLIB=$ac_cv_prog_RANLIB
12606if test -n "$RANLIB"; then
12607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12608$as_echo "$RANLIB" >&6; }
12609else
12610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12611$as_echo "no" >&6; }
12612fi
12613
12614
12615fi
12616if test -z "$ac_cv_prog_RANLIB"; then
12617 ac_ct_RANLIB=$RANLIB
12618 # Extract the first word of "ranlib", so it can be a program name with args.
12619set dummy ranlib; ac_word=$2
12620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12621$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012622if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012623 $as_echo_n "(cached) " >&6
12624else
12625 if test -n "$ac_ct_RANLIB"; then
12626 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12627else
12628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12629for as_dir in $PATH
12630do
12631 IFS=$as_save_IFS
12632 test -z "$as_dir" && as_dir=.
12633 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012635 ac_cv_prog_ac_ct_RANLIB="ranlib"
12636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12637 break 2
12638 fi
12639done
12640 done
12641IFS=$as_save_IFS
12642
12643fi
12644fi
12645ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12646if test -n "$ac_ct_RANLIB"; then
12647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12648$as_echo "$ac_ct_RANLIB" >&6; }
12649else
12650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12651$as_echo "no" >&6; }
12652fi
12653
12654 if test "x$ac_ct_RANLIB" = x; then
12655 RANLIB=":"
12656 else
12657 case $cross_compiling:$ac_tool_warned in
12658yes:)
12659{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12660$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12661ac_tool_warned=yes ;;
12662esac
12663 RANLIB=$ac_ct_RANLIB
12664 fi
12665else
12666 RANLIB="$ac_cv_prog_RANLIB"
12667fi
12668
12669test -z "$RANLIB" && RANLIB=:
12670
12671
12672
12673
12674
12675
12676# Determine commands to create old-style static archives.
12677old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12678old_postinstall_cmds='chmod 644 $oldlib'
12679old_postuninstall_cmds=
12680
12681if test -n "$RANLIB"; then
12682 case $host_os in
12683 openbsd*)
cristy99bd5232011-12-07 14:38:20 +000012684 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000012685 ;;
12686 *)
cristy99bd5232011-12-07 14:38:20 +000012687 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000012688 ;;
12689 esac
cristy99bd5232011-12-07 14:38:20 +000012690 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000012691fi
12692
cristy0c60a692010-11-04 01:09:47 +000012693case $host_os in
12694 darwin*)
12695 lock_old_archive_extraction=yes ;;
12696 *)
12697 lock_old_archive_extraction=no ;;
12698esac
12699
12700
12701
12702
12703
12704
cristy73bd4a52010-10-05 11:24:23 +000012705
12706
12707
12708
12709
12710
12711
12712
12713
12714
12715
12716
12717
12718
12719
12720
12721
12722
12723
12724
12725
12726
12727
12728
12729
12730
12731
12732
12733
12734
12735
12736
12737
12738# If no C compiler was specified, use CC.
12739LTCC=${LTCC-"$CC"}
12740
12741# If no C compiler flags were specified, use CFLAGS.
12742LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12743
12744# Allow CC to be a program name with arguments.
12745compiler=$CC
12746
12747
12748# Check for command to grab the raw symbol name followed by C symbol from nm.
12749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12750$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012751if ${lt_cv_sys_global_symbol_pipe+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012752 $as_echo_n "(cached) " >&6
12753else
12754
12755# These are sane defaults that work on at least a few old systems.
12756# [They come from Ultrix. What could be older than Ultrix?!! ;)]
12757
12758# Character class describing NM global symbol codes.
12759symcode='[BCDEGRST]'
12760
12761# Regexp to match symbols that can be accessed directly from C.
12762sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12763
12764# Define system-specific variables.
12765case $host_os in
12766aix*)
12767 symcode='[BCDT]'
12768 ;;
12769cygwin* | mingw* | pw32* | cegcc*)
12770 symcode='[ABCDGISTW]'
12771 ;;
12772hpux*)
12773 if test "$host_cpu" = ia64; then
12774 symcode='[ABCDEGRST]'
12775 fi
12776 ;;
12777irix* | nonstopux*)
12778 symcode='[BCDEGRST]'
12779 ;;
12780osf*)
12781 symcode='[BCDEGQRST]'
12782 ;;
12783solaris*)
12784 symcode='[BDRT]'
12785 ;;
12786sco3.2v5*)
12787 symcode='[DT]'
12788 ;;
12789sysv4.2uw2*)
12790 symcode='[DT]'
12791 ;;
12792sysv5* | sco5v6* | unixware* | OpenUNIX*)
12793 symcode='[ABDT]'
12794 ;;
12795sysv4)
12796 symcode='[DFNSTU]'
12797 ;;
12798esac
12799
12800# If we're using GNU nm, then use its standard symbol codes.
12801case `$NM -V 2>&1` in
12802*GNU* | *'with BFD'*)
12803 symcode='[ABCDGIRSTW]' ;;
12804esac
12805
12806# Transform an extracted symbol line into a proper C declaration.
12807# Some systems (esp. on ia64) link data and code symbols differently,
12808# so use this general approach.
12809lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12810
12811# Transform an extracted symbol line into symbol name and symbol address
cristyda16f162011-02-19 23:52:17 +000012812lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
12813lt_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 +000012814
12815# Handle CRLF in mingw tool chain
12816opt_cr=
12817case $build_os in
12818mingw*)
12819 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12820 ;;
12821esac
12822
12823# Try without a prefix underscore, then with it.
12824for ac_symprfx in "" "_"; do
12825
12826 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12827 symxfrm="\\1 $ac_symprfx\\2 \\2"
12828
12829 # Write the raw and C identifiers.
12830 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12831 # Fake it for dumpbin and say T for any non-static function
12832 # and D for any global variable.
12833 # Also find C++ and __fastcall symbols from MSVC++,
12834 # which start with @ or ?.
12835 lt_cv_sys_global_symbol_pipe="$AWK '"\
12836" {last_section=section; section=\$ 3};"\
cristy99bd5232011-12-07 14:38:20 +000012837" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
cristy73bd4a52010-10-05 11:24:23 +000012838" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12839" \$ 0!~/External *\|/{next};"\
12840" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12841" {if(hide[section]) next};"\
12842" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12843" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12844" s[1]~/^[@?]/{print s[1], s[1]; next};"\
12845" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12846" ' prfx=^$ac_symprfx"
12847 else
12848 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12849 fi
cristyda16f162011-02-19 23:52:17 +000012850 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
cristy73bd4a52010-10-05 11:24:23 +000012851
12852 # Check to see that the pipe works correctly.
12853 pipe_works=no
12854
12855 rm -f conftest*
12856 cat > conftest.$ac_ext <<_LT_EOF
12857#ifdef __cplusplus
12858extern "C" {
12859#endif
12860char nm_test_var;
12861void nm_test_func(void);
12862void nm_test_func(void){}
12863#ifdef __cplusplus
12864}
12865#endif
12866int main(){nm_test_var='a';nm_test_func();return(0);}
12867_LT_EOF
12868
12869 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12870 (eval $ac_compile) 2>&5
12871 ac_status=$?
12872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12873 test $ac_status = 0; }; then
12874 # Now try to grab the symbols.
12875 nlist=conftest.nm
cristy0c60a692010-11-04 01:09:47 +000012876 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12877 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
cristy73bd4a52010-10-05 11:24:23 +000012878 ac_status=$?
12879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12880 test $ac_status = 0; } && test -s "$nlist"; then
12881 # Try sorting and uniquifying the output.
12882 if sort "$nlist" | uniq > "$nlist"T; then
12883 mv -f "$nlist"T "$nlist"
12884 else
12885 rm -f "$nlist"T
12886 fi
12887
12888 # Make sure that we snagged all the symbols we need.
12889 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12890 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12891 cat <<_LT_EOF > conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000012892/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
12893#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
12894/* DATA imports from DLLs on WIN32 con't be const, because runtime
12895 relocations are performed -- see ld's documentation on pseudo-relocs. */
12896# define LT_DLSYM_CONST
12897#elif defined(__osf__)
12898/* This system does not cope well with relocations in const data. */
12899# define LT_DLSYM_CONST
12900#else
12901# define LT_DLSYM_CONST const
12902#endif
12903
cristy73bd4a52010-10-05 11:24:23 +000012904#ifdef __cplusplus
12905extern "C" {
12906#endif
12907
12908_LT_EOF
12909 # Now generate the symbol file.
12910 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12911
12912 cat <<_LT_EOF >> conftest.$ac_ext
12913
12914/* The mapping between symbol names and symbols. */
cristyda16f162011-02-19 23:52:17 +000012915LT_DLSYM_CONST struct {
cristy73bd4a52010-10-05 11:24:23 +000012916 const char *name;
12917 void *address;
12918}
12919lt__PROGRAM__LTX_preloaded_symbols[] =
12920{
12921 { "@PROGRAM@", (void *) 0 },
12922_LT_EOF
12923 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12924 cat <<\_LT_EOF >> conftest.$ac_ext
12925 {0, (void *) 0}
12926};
12927
12928/* This works around a problem in FreeBSD linker */
12929#ifdef FREEBSD_WORKAROUND
12930static const void *lt_preloaded_setup() {
12931 return lt__PROGRAM__LTX_preloaded_symbols;
12932}
12933#endif
12934
12935#ifdef __cplusplus
12936}
12937#endif
12938_LT_EOF
12939 # Now try linking the two files.
12940 mv conftest.$ac_objext conftstm.$ac_objext
cristyda16f162011-02-19 23:52:17 +000012941 lt_globsym_save_LIBS=$LIBS
12942 lt_globsym_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000012943 LIBS="conftstm.$ac_objext"
12944 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12945 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12946 (eval $ac_link) 2>&5
12947 ac_status=$?
12948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12949 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12950 pipe_works=yes
12951 fi
cristyda16f162011-02-19 23:52:17 +000012952 LIBS=$lt_globsym_save_LIBS
12953 CFLAGS=$lt_globsym_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000012954 else
12955 echo "cannot find nm_test_func in $nlist" >&5
12956 fi
12957 else
12958 echo "cannot find nm_test_var in $nlist" >&5
12959 fi
12960 else
12961 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12962 fi
12963 else
12964 echo "$progname: failed program was:" >&5
12965 cat conftest.$ac_ext >&5
12966 fi
12967 rm -rf conftest* conftst*
12968
12969 # Do not use the global_symbol_pipe unless it works.
12970 if test "$pipe_works" = yes; then
12971 break
12972 else
12973 lt_cv_sys_global_symbol_pipe=
12974 fi
12975done
12976
12977fi
12978
12979if test -z "$lt_cv_sys_global_symbol_pipe"; then
12980 lt_cv_sys_global_symbol_to_cdecl=
12981fi
12982if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12984$as_echo "failed" >&6; }
12985else
12986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12987$as_echo "ok" >&6; }
12988fi
12989
cristyda16f162011-02-19 23:52:17 +000012990# Response file support.
12991if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12992 nm_file_list_spec='@'
12993elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12994 nm_file_list_spec='@'
12995fi
cristy73bd4a52010-10-05 11:24:23 +000012996
12997
12998
12999
13000
13001
13002
13003
13004
13005
13006
13007
13008
13009
13010
13011
13012
13013
13014
13015
13016
cristyda16f162011-02-19 23:52:17 +000013017
13018
13019
13020
13021
13022
13023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
13024$as_echo_n "checking for sysroot... " >&6; }
13025
13026# Check whether --with-sysroot was given.
13027if test "${with_sysroot+set}" = set; then :
13028 withval=$with_sysroot;
13029else
13030 with_sysroot=no
13031fi
13032
13033
13034lt_sysroot=
13035case ${with_sysroot} in #(
13036 yes)
13037 if test "$GCC" = yes; then
13038 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
13039 fi
13040 ;; #(
13041 /*)
13042 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
13043 ;; #(
13044 no|'')
13045 ;; #(
13046 *)
13047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
13048$as_echo "${with_sysroot}" >&6; }
13049 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
13050 ;;
13051esac
13052
13053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
13054$as_echo "${lt_sysroot:-no}" >&6; }
13055
13056
13057
13058
13059
cristy73bd4a52010-10-05 11:24:23 +000013060# Check whether --enable-libtool-lock was given.
13061if test "${enable_libtool_lock+set}" = set; then :
13062 enableval=$enable_libtool_lock;
13063fi
13064
13065test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13066
13067# Some flags need to be propagated to the compiler or linker for good
13068# libtool support.
13069case $host in
13070ia64-*-hpux*)
13071 # Find out which ABI we are using.
13072 echo 'int i;' > conftest.$ac_ext
13073 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13074 (eval $ac_compile) 2>&5
13075 ac_status=$?
13076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13077 test $ac_status = 0; }; then
13078 case `/usr/bin/file conftest.$ac_objext` in
13079 *ELF-32*)
13080 HPUX_IA64_MODE="32"
13081 ;;
13082 *ELF-64*)
13083 HPUX_IA64_MODE="64"
13084 ;;
13085 esac
13086 fi
13087 rm -rf conftest*
13088 ;;
13089*-*-irix6*)
13090 # Find out which ABI we are using.
cristy0c60a692010-11-04 01:09:47 +000013091 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000013092 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13093 (eval $ac_compile) 2>&5
13094 ac_status=$?
13095 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13096 test $ac_status = 0; }; then
13097 if test "$lt_cv_prog_gnu_ld" = yes; then
13098 case `/usr/bin/file conftest.$ac_objext` in
13099 *32-bit*)
13100 LD="${LD-ld} -melf32bsmip"
13101 ;;
13102 *N32*)
13103 LD="${LD-ld} -melf32bmipn32"
13104 ;;
13105 *64-bit*)
13106 LD="${LD-ld} -melf64bmip"
13107 ;;
13108 esac
13109 else
13110 case `/usr/bin/file conftest.$ac_objext` in
13111 *32-bit*)
13112 LD="${LD-ld} -32"
13113 ;;
13114 *N32*)
13115 LD="${LD-ld} -n32"
13116 ;;
13117 *64-bit*)
13118 LD="${LD-ld} -64"
13119 ;;
13120 esac
13121 fi
13122 fi
13123 rm -rf conftest*
13124 ;;
13125
cristyd95b7a52013-10-23 13:12:53 +000013126x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
cristy73bd4a52010-10-05 11:24:23 +000013127s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13128 # Find out which ABI we are using.
13129 echo 'int i;' > conftest.$ac_ext
13130 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13131 (eval $ac_compile) 2>&5
13132 ac_status=$?
13133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13134 test $ac_status = 0; }; then
13135 case `/usr/bin/file conftest.o` in
13136 *32-bit*)
13137 case $host in
13138 x86_64-*kfreebsd*-gnu)
13139 LD="${LD-ld} -m elf_i386_fbsd"
13140 ;;
13141 x86_64-*linux*)
13142 LD="${LD-ld} -m elf_i386"
13143 ;;
cristya5bda012013-11-03 18:05:38 +000013144 powerpc64le-*linux*)
cristyd95b7a52013-10-23 13:12:53 +000013145 LD="${LD-ld} -m elf32lppclinux"
13146 ;;
cristya5bda012013-11-03 18:05:38 +000013147 powerpc64-*linux*)
cristy73bd4a52010-10-05 11:24:23 +000013148 LD="${LD-ld} -m elf32ppclinux"
13149 ;;
13150 s390x-*linux*)
13151 LD="${LD-ld} -m elf_s390"
13152 ;;
13153 sparc64-*linux*)
13154 LD="${LD-ld} -m elf32_sparc"
13155 ;;
13156 esac
13157 ;;
13158 *64-bit*)
13159 case $host in
13160 x86_64-*kfreebsd*-gnu)
13161 LD="${LD-ld} -m elf_x86_64_fbsd"
13162 ;;
13163 x86_64-*linux*)
13164 LD="${LD-ld} -m elf_x86_64"
13165 ;;
cristyd95b7a52013-10-23 13:12:53 +000013166 powerpcle-*linux*)
13167 LD="${LD-ld} -m elf64lppc"
13168 ;;
13169 powerpc-*linux*)
cristy73bd4a52010-10-05 11:24:23 +000013170 LD="${LD-ld} -m elf64ppc"
13171 ;;
13172 s390*-*linux*|s390*-*tpf*)
13173 LD="${LD-ld} -m elf64_s390"
13174 ;;
13175 sparc*-*linux*)
13176 LD="${LD-ld} -m elf64_sparc"
13177 ;;
13178 esac
13179 ;;
13180 esac
13181 fi
13182 rm -rf conftest*
13183 ;;
13184
13185*-*-sco3.2v5*)
13186 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13187 SAVE_CFLAGS="$CFLAGS"
13188 CFLAGS="$CFLAGS -belf"
13189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13190$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013191if ${lt_cv_cc_needs_belf+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013192 $as_echo_n "(cached) " >&6
13193else
13194 ac_ext=c
13195ac_cpp='$CPP $CPPFLAGS'
13196ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13197ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13198ac_compiler_gnu=$ac_cv_c_compiler_gnu
13199
13200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13201/* end confdefs.h. */
13202
13203int
13204main ()
13205{
13206
13207 ;
13208 return 0;
13209}
13210_ACEOF
13211if ac_fn_c_try_link "$LINENO"; then :
13212 lt_cv_cc_needs_belf=yes
13213else
13214 lt_cv_cc_needs_belf=no
13215fi
13216rm -f core conftest.err conftest.$ac_objext \
13217 conftest$ac_exeext conftest.$ac_ext
13218 ac_ext=c
13219ac_cpp='$CPP $CPPFLAGS'
13220ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13221ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13222ac_compiler_gnu=$ac_cv_c_compiler_gnu
13223
13224fi
13225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13226$as_echo "$lt_cv_cc_needs_belf" >&6; }
13227 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13228 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13229 CFLAGS="$SAVE_CFLAGS"
13230 fi
13231 ;;
cristy99bd5232011-12-07 14:38:20 +000013232*-*solaris*)
cristy73bd4a52010-10-05 11:24:23 +000013233 # Find out which ABI we are using.
13234 echo 'int i;' > conftest.$ac_ext
13235 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13236 (eval $ac_compile) 2>&5
13237 ac_status=$?
13238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13239 test $ac_status = 0; }; then
13240 case `/usr/bin/file conftest.o` in
13241 *64-bit*)
13242 case $lt_cv_prog_gnu_ld in
cristy99bd5232011-12-07 14:38:20 +000013243 yes*)
13244 case $host in
13245 i?86-*-solaris*)
13246 LD="${LD-ld} -m elf_x86_64"
13247 ;;
13248 sparc*-*-solaris*)
13249 LD="${LD-ld} -m elf64_sparc"
13250 ;;
13251 esac
13252 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
13253 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
13254 LD="${LD-ld}_sol2"
13255 fi
13256 ;;
cristy73bd4a52010-10-05 11:24:23 +000013257 *)
13258 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13259 LD="${LD-ld} -64"
13260 fi
13261 ;;
13262 esac
13263 ;;
13264 esac
13265 fi
13266 rm -rf conftest*
13267 ;;
13268esac
13269
13270need_locks="$enable_libtool_lock"
13271
cristyda16f162011-02-19 23:52:17 +000013272if test -n "$ac_tool_prefix"; then
13273 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
13274set dummy ${ac_tool_prefix}mt; ac_word=$2
13275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13276$as_echo_n "checking for $ac_word... " >&6; }
13277if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
13278 $as_echo_n "(cached) " >&6
13279else
13280 if test -n "$MANIFEST_TOOL"; then
13281 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
13282else
13283as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13284for as_dir in $PATH
13285do
13286 IFS=$as_save_IFS
13287 test -z "$as_dir" && as_dir=.
13288 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013289 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000013290 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
13291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13292 break 2
13293 fi
13294done
13295 done
13296IFS=$as_save_IFS
13297
13298fi
13299fi
13300MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
13301if test -n "$MANIFEST_TOOL"; then
13302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
13303$as_echo "$MANIFEST_TOOL" >&6; }
13304else
13305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13306$as_echo "no" >&6; }
13307fi
13308
13309
13310fi
13311if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
13312 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
13313 # Extract the first word of "mt", so it can be a program name with args.
13314set dummy mt; ac_word=$2
13315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13316$as_echo_n "checking for $ac_word... " >&6; }
13317if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
13318 $as_echo_n "(cached) " >&6
13319else
13320 if test -n "$ac_ct_MANIFEST_TOOL"; then
13321 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
13322else
13323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13324for as_dir in $PATH
13325do
13326 IFS=$as_save_IFS
13327 test -z "$as_dir" && as_dir=.
13328 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013329 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000013330 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
13331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13332 break 2
13333 fi
13334done
13335 done
13336IFS=$as_save_IFS
13337
13338fi
13339fi
13340ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
13341if test -n "$ac_ct_MANIFEST_TOOL"; then
13342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
13343$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
13344else
13345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13346$as_echo "no" >&6; }
13347fi
13348
13349 if test "x$ac_ct_MANIFEST_TOOL" = x; then
13350 MANIFEST_TOOL=":"
13351 else
13352 case $cross_compiling:$ac_tool_warned in
13353yes:)
13354{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13355$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13356ac_tool_warned=yes ;;
13357esac
13358 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
13359 fi
13360else
13361 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
13362fi
13363
13364test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
13365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
13366$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
13367if ${lt_cv_path_mainfest_tool+:} false; then :
13368 $as_echo_n "(cached) " >&6
13369else
13370 lt_cv_path_mainfest_tool=no
13371 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
13372 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
13373 cat conftest.err >&5
13374 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
13375 lt_cv_path_mainfest_tool=yes
13376 fi
13377 rm -f conftest*
13378fi
13379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
13380$as_echo "$lt_cv_path_mainfest_tool" >&6; }
13381if test "x$lt_cv_path_mainfest_tool" != xyes; then
13382 MANIFEST_TOOL=:
13383fi
13384
13385
13386
13387
13388
cristy73bd4a52010-10-05 11:24:23 +000013389
13390 case $host_os in
13391 rhapsody* | darwin*)
13392 if test -n "$ac_tool_prefix"; then
13393 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13394set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13396$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013397if ${ac_cv_prog_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013398 $as_echo_n "(cached) " >&6
13399else
13400 if test -n "$DSYMUTIL"; then
13401 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13402else
13403as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13404for as_dir in $PATH
13405do
13406 IFS=$as_save_IFS
13407 test -z "$as_dir" && as_dir=.
13408 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013409 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013410 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13412 break 2
13413 fi
13414done
13415 done
13416IFS=$as_save_IFS
13417
13418fi
13419fi
13420DSYMUTIL=$ac_cv_prog_DSYMUTIL
13421if test -n "$DSYMUTIL"; then
13422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13423$as_echo "$DSYMUTIL" >&6; }
13424else
13425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13426$as_echo "no" >&6; }
13427fi
13428
13429
13430fi
13431if test -z "$ac_cv_prog_DSYMUTIL"; then
13432 ac_ct_DSYMUTIL=$DSYMUTIL
13433 # Extract the first word of "dsymutil", so it can be a program name with args.
13434set dummy dsymutil; ac_word=$2
13435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13436$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013437if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013438 $as_echo_n "(cached) " >&6
13439else
13440 if test -n "$ac_ct_DSYMUTIL"; then
13441 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13442else
13443as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13444for as_dir in $PATH
13445do
13446 IFS=$as_save_IFS
13447 test -z "$as_dir" && as_dir=.
13448 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013449 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013450 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13452 break 2
13453 fi
13454done
13455 done
13456IFS=$as_save_IFS
13457
13458fi
13459fi
13460ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13461if test -n "$ac_ct_DSYMUTIL"; then
13462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13463$as_echo "$ac_ct_DSYMUTIL" >&6; }
13464else
13465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13466$as_echo "no" >&6; }
13467fi
13468
13469 if test "x$ac_ct_DSYMUTIL" = x; then
13470 DSYMUTIL=":"
13471 else
13472 case $cross_compiling:$ac_tool_warned in
13473yes:)
13474{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13475$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13476ac_tool_warned=yes ;;
13477esac
13478 DSYMUTIL=$ac_ct_DSYMUTIL
13479 fi
13480else
13481 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13482fi
13483
13484 if test -n "$ac_tool_prefix"; then
13485 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13486set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13488$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013489if ${ac_cv_prog_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013490 $as_echo_n "(cached) " >&6
13491else
13492 if test -n "$NMEDIT"; then
13493 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13494else
13495as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13496for as_dir in $PATH
13497do
13498 IFS=$as_save_IFS
13499 test -z "$as_dir" && as_dir=.
13500 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013501 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013502 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13504 break 2
13505 fi
13506done
13507 done
13508IFS=$as_save_IFS
13509
13510fi
13511fi
13512NMEDIT=$ac_cv_prog_NMEDIT
13513if test -n "$NMEDIT"; then
13514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13515$as_echo "$NMEDIT" >&6; }
13516else
13517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13518$as_echo "no" >&6; }
13519fi
13520
13521
13522fi
13523if test -z "$ac_cv_prog_NMEDIT"; then
13524 ac_ct_NMEDIT=$NMEDIT
13525 # Extract the first word of "nmedit", so it can be a program name with args.
13526set dummy nmedit; ac_word=$2
13527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13528$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013529if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013530 $as_echo_n "(cached) " >&6
13531else
13532 if test -n "$ac_ct_NMEDIT"; then
13533 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13534else
13535as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13536for as_dir in $PATH
13537do
13538 IFS=$as_save_IFS
13539 test -z "$as_dir" && as_dir=.
13540 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013541 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013542 ac_cv_prog_ac_ct_NMEDIT="nmedit"
13543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13544 break 2
13545 fi
13546done
13547 done
13548IFS=$as_save_IFS
13549
13550fi
13551fi
13552ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13553if test -n "$ac_ct_NMEDIT"; then
13554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13555$as_echo "$ac_ct_NMEDIT" >&6; }
13556else
13557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13558$as_echo "no" >&6; }
13559fi
13560
13561 if test "x$ac_ct_NMEDIT" = x; then
13562 NMEDIT=":"
13563 else
13564 case $cross_compiling:$ac_tool_warned in
13565yes:)
13566{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13567$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13568ac_tool_warned=yes ;;
13569esac
13570 NMEDIT=$ac_ct_NMEDIT
13571 fi
13572else
13573 NMEDIT="$ac_cv_prog_NMEDIT"
13574fi
13575
13576 if test -n "$ac_tool_prefix"; then
13577 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13578set dummy ${ac_tool_prefix}lipo; ac_word=$2
13579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13580$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013581if ${ac_cv_prog_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013582 $as_echo_n "(cached) " >&6
13583else
13584 if test -n "$LIPO"; then
13585 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13586else
13587as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13588for as_dir in $PATH
13589do
13590 IFS=$as_save_IFS
13591 test -z "$as_dir" && as_dir=.
13592 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013593 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013594 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13596 break 2
13597 fi
13598done
13599 done
13600IFS=$as_save_IFS
13601
13602fi
13603fi
13604LIPO=$ac_cv_prog_LIPO
13605if test -n "$LIPO"; then
13606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13607$as_echo "$LIPO" >&6; }
13608else
13609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13610$as_echo "no" >&6; }
13611fi
13612
13613
13614fi
13615if test -z "$ac_cv_prog_LIPO"; then
13616 ac_ct_LIPO=$LIPO
13617 # Extract the first word of "lipo", so it can be a program name with args.
13618set dummy lipo; ac_word=$2
13619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13620$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013621if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013622 $as_echo_n "(cached) " >&6
13623else
13624 if test -n "$ac_ct_LIPO"; then
13625 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13626else
13627as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13628for as_dir in $PATH
13629do
13630 IFS=$as_save_IFS
13631 test -z "$as_dir" && as_dir=.
13632 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013633 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013634 ac_cv_prog_ac_ct_LIPO="lipo"
13635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13636 break 2
13637 fi
13638done
13639 done
13640IFS=$as_save_IFS
13641
13642fi
13643fi
13644ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13645if test -n "$ac_ct_LIPO"; then
13646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13647$as_echo "$ac_ct_LIPO" >&6; }
13648else
13649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13650$as_echo "no" >&6; }
13651fi
13652
13653 if test "x$ac_ct_LIPO" = x; then
13654 LIPO=":"
13655 else
13656 case $cross_compiling:$ac_tool_warned in
13657yes:)
13658{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13659$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13660ac_tool_warned=yes ;;
13661esac
13662 LIPO=$ac_ct_LIPO
13663 fi
13664else
13665 LIPO="$ac_cv_prog_LIPO"
13666fi
13667
13668 if test -n "$ac_tool_prefix"; then
13669 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13670set dummy ${ac_tool_prefix}otool; ac_word=$2
13671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13672$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013673if ${ac_cv_prog_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013674 $as_echo_n "(cached) " >&6
13675else
13676 if test -n "$OTOOL"; then
13677 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13678else
13679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13680for as_dir in $PATH
13681do
13682 IFS=$as_save_IFS
13683 test -z "$as_dir" && as_dir=.
13684 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013685 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013686 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13688 break 2
13689 fi
13690done
13691 done
13692IFS=$as_save_IFS
13693
13694fi
13695fi
13696OTOOL=$ac_cv_prog_OTOOL
13697if test -n "$OTOOL"; then
13698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13699$as_echo "$OTOOL" >&6; }
13700else
13701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13702$as_echo "no" >&6; }
13703fi
13704
13705
13706fi
13707if test -z "$ac_cv_prog_OTOOL"; then
13708 ac_ct_OTOOL=$OTOOL
13709 # Extract the first word of "otool", so it can be a program name with args.
13710set dummy otool; ac_word=$2
13711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13712$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013713if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013714 $as_echo_n "(cached) " >&6
13715else
13716 if test -n "$ac_ct_OTOOL"; then
13717 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13718else
13719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13720for as_dir in $PATH
13721do
13722 IFS=$as_save_IFS
13723 test -z "$as_dir" && as_dir=.
13724 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013725 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013726 ac_cv_prog_ac_ct_OTOOL="otool"
13727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13728 break 2
13729 fi
13730done
13731 done
13732IFS=$as_save_IFS
13733
13734fi
13735fi
13736ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13737if test -n "$ac_ct_OTOOL"; then
13738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13739$as_echo "$ac_ct_OTOOL" >&6; }
13740else
13741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13742$as_echo "no" >&6; }
13743fi
13744
13745 if test "x$ac_ct_OTOOL" = x; then
13746 OTOOL=":"
13747 else
13748 case $cross_compiling:$ac_tool_warned in
13749yes:)
13750{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13751$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13752ac_tool_warned=yes ;;
13753esac
13754 OTOOL=$ac_ct_OTOOL
13755 fi
13756else
13757 OTOOL="$ac_cv_prog_OTOOL"
13758fi
13759
13760 if test -n "$ac_tool_prefix"; then
13761 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13762set dummy ${ac_tool_prefix}otool64; ac_word=$2
13763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13764$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013765if ${ac_cv_prog_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013766 $as_echo_n "(cached) " >&6
13767else
13768 if test -n "$OTOOL64"; then
13769 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13770else
13771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13772for as_dir in $PATH
13773do
13774 IFS=$as_save_IFS
13775 test -z "$as_dir" && as_dir=.
13776 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013778 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13780 break 2
13781 fi
13782done
13783 done
13784IFS=$as_save_IFS
13785
13786fi
13787fi
13788OTOOL64=$ac_cv_prog_OTOOL64
13789if test -n "$OTOOL64"; then
13790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13791$as_echo "$OTOOL64" >&6; }
13792else
13793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13794$as_echo "no" >&6; }
13795fi
13796
13797
13798fi
13799if test -z "$ac_cv_prog_OTOOL64"; then
13800 ac_ct_OTOOL64=$OTOOL64
13801 # Extract the first word of "otool64", so it can be a program name with args.
13802set dummy otool64; ac_word=$2
13803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13804$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013805if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013806 $as_echo_n "(cached) " >&6
13807else
13808 if test -n "$ac_ct_OTOOL64"; then
13809 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13810else
13811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13812for as_dir in $PATH
13813do
13814 IFS=$as_save_IFS
13815 test -z "$as_dir" && as_dir=.
13816 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013817 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013818 ac_cv_prog_ac_ct_OTOOL64="otool64"
13819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13820 break 2
13821 fi
13822done
13823 done
13824IFS=$as_save_IFS
13825
13826fi
13827fi
13828ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13829if test -n "$ac_ct_OTOOL64"; then
13830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13831$as_echo "$ac_ct_OTOOL64" >&6; }
13832else
13833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13834$as_echo "no" >&6; }
13835fi
13836
13837 if test "x$ac_ct_OTOOL64" = x; then
13838 OTOOL64=":"
13839 else
13840 case $cross_compiling:$ac_tool_warned in
13841yes:)
13842{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13843$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13844ac_tool_warned=yes ;;
13845esac
13846 OTOOL64=$ac_ct_OTOOL64
13847 fi
13848else
13849 OTOOL64="$ac_cv_prog_OTOOL64"
13850fi
13851
13852
13853
13854
13855
13856
13857
13858
13859
13860
13861
13862
13863
13864
13865
13866
13867
13868
13869
13870
13871
13872
13873
13874
13875
13876
13877
13878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13879$as_echo_n "checking for -single_module linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013880if ${lt_cv_apple_cc_single_mod+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013881 $as_echo_n "(cached) " >&6
13882else
13883 lt_cv_apple_cc_single_mod=no
13884 if test -z "${LT_MULTI_MODULE}"; then
13885 # By default we will add the -single_module flag. You can override
13886 # by either setting the environment variable LT_MULTI_MODULE
13887 # non-empty at configure time, or by adding -multi_module to the
13888 # link flags.
13889 rm -rf libconftest.dylib*
13890 echo "int foo(void){return 1;}" > conftest.c
13891 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13892-dynamiclib -Wl,-single_module conftest.c" >&5
13893 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13894 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13895 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000013896 # If there is a non-empty error log, and "single_module"
13897 # appears in it, assume the flag caused a linker warning
13898 if test -s conftest.err && $GREP single_module conftest.err; then
13899 cat conftest.err >&5
13900 # Otherwise, if the output was created with a 0 exit code from
13901 # the compiler, it worked.
13902 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
cristy73bd4a52010-10-05 11:24:23 +000013903 lt_cv_apple_cc_single_mod=yes
13904 else
13905 cat conftest.err >&5
13906 fi
13907 rm -rf libconftest.dylib*
13908 rm -f conftest.*
13909 fi
13910fi
13911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13912$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
cristy99bd5232011-12-07 14:38:20 +000013913
cristy73bd4a52010-10-05 11:24:23 +000013914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13915$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013916if ${lt_cv_ld_exported_symbols_list+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013917 $as_echo_n "(cached) " >&6
13918else
13919 lt_cv_ld_exported_symbols_list=no
13920 save_LDFLAGS=$LDFLAGS
13921 echo "_main" > conftest.sym
13922 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13924/* end confdefs.h. */
13925
13926int
13927main ()
13928{
13929
13930 ;
13931 return 0;
13932}
13933_ACEOF
13934if ac_fn_c_try_link "$LINENO"; then :
13935 lt_cv_ld_exported_symbols_list=yes
13936else
13937 lt_cv_ld_exported_symbols_list=no
13938fi
13939rm -f core conftest.err conftest.$ac_objext \
13940 conftest$ac_exeext conftest.$ac_ext
13941 LDFLAGS="$save_LDFLAGS"
13942
13943fi
13944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13945$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
cristy99bd5232011-12-07 14:38:20 +000013946
cristy0c60a692010-11-04 01:09:47 +000013947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13948$as_echo_n "checking for -force_load linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013949if ${lt_cv_ld_force_load+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000013950 $as_echo_n "(cached) " >&6
13951else
13952 lt_cv_ld_force_load=no
13953 cat > conftest.c << _LT_EOF
13954int forced_loaded() { return 2;}
13955_LT_EOF
13956 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13957 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13958 echo "$AR cru libconftest.a conftest.o" >&5
13959 $AR cru libconftest.a conftest.o 2>&5
13960 echo "$RANLIB libconftest.a" >&5
13961 $RANLIB libconftest.a 2>&5
13962 cat > conftest.c << _LT_EOF
13963int main() { return 0;}
13964_LT_EOF
13965 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13966 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13967 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000013968 if test -s conftest.err && $GREP force_load conftest.err; then
13969 cat conftest.err >&5
13970 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
cristy0c60a692010-11-04 01:09:47 +000013971 lt_cv_ld_force_load=yes
13972 else
13973 cat conftest.err >&5
13974 fi
13975 rm -f conftest.err libconftest.a conftest conftest.c
13976 rm -rf conftest.dSYM
13977
13978fi
13979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13980$as_echo "$lt_cv_ld_force_load" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000013981 case $host_os in
13982 rhapsody* | darwin1.[012])
13983 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13984 darwin1.*)
13985 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13986 darwin*) # darwin 5.x on
13987 # if running on 10.5 or later, the deployment target defaults
13988 # to the OS version, if on x86, and 10.4, the deployment
13989 # target defaults to 10.4. Don't you love it?
13990 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13991 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13992 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13993 10.[012]*)
13994 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13995 10.*)
13996 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13997 esac
13998 ;;
13999 esac
14000 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14001 _lt_dar_single_mod='$single_module'
14002 fi
14003 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14004 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14005 else
14006 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14007 fi
cristy0c60a692010-11-04 01:09:47 +000014008 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
cristy73bd4a52010-10-05 11:24:23 +000014009 _lt_dsymutil='~$DSYMUTIL $lib || :'
14010 else
14011 _lt_dsymutil=
14012 fi
14013 ;;
14014 esac
14015
14016for ac_header in dlfcn.h
14017do :
14018 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
14019"
cristyda16f162011-02-19 23:52:17 +000014020if test "x$ac_cv_header_dlfcn_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000014021 cat >>confdefs.h <<_ACEOF
14022#define HAVE_DLFCN_H 1
14023_ACEOF
14024
14025fi
14026
14027done
14028
14029
14030
cristy73bd4a52010-10-05 11:24:23 +000014031
cristyda16f162011-02-19 23:52:17 +000014032func_stripname_cnf ()
14033{
14034 case ${2} in
14035 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
14036 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
14037 esac
14038} # func_stripname_cnf
14039
14040
14041
cristy73bd4a52010-10-05 11:24:23 +000014042
14043
14044# Set options
14045enable_win32_dll=yes
14046
14047case $host in
cristy0c60a692010-11-04 01:09:47 +000014048*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000014049 if test -n "$ac_tool_prefix"; then
14050 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
14051set dummy ${ac_tool_prefix}as; ac_word=$2
14052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14053$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014054if ${ac_cv_prog_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014055 $as_echo_n "(cached) " >&6
14056else
14057 if test -n "$AS"; then
14058 ac_cv_prog_AS="$AS" # Let the user override the test.
14059else
14060as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14061for as_dir in $PATH
14062do
14063 IFS=$as_save_IFS
14064 test -z "$as_dir" && as_dir=.
14065 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000014066 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000014067 ac_cv_prog_AS="${ac_tool_prefix}as"
14068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14069 break 2
14070 fi
14071done
14072 done
14073IFS=$as_save_IFS
14074
14075fi
14076fi
14077AS=$ac_cv_prog_AS
14078if test -n "$AS"; then
14079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
14080$as_echo "$AS" >&6; }
14081else
14082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14083$as_echo "no" >&6; }
14084fi
14085
14086
14087fi
14088if test -z "$ac_cv_prog_AS"; then
14089 ac_ct_AS=$AS
14090 # Extract the first word of "as", so it can be a program name with args.
14091set dummy as; ac_word=$2
14092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14093$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014094if ${ac_cv_prog_ac_ct_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014095 $as_echo_n "(cached) " >&6
14096else
14097 if test -n "$ac_ct_AS"; then
14098 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
14099else
14100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14101for as_dir in $PATH
14102do
14103 IFS=$as_save_IFS
14104 test -z "$as_dir" && as_dir=.
14105 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000014106 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000014107 ac_cv_prog_ac_ct_AS="as"
14108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14109 break 2
14110 fi
14111done
14112 done
14113IFS=$as_save_IFS
14114
14115fi
14116fi
14117ac_ct_AS=$ac_cv_prog_ac_ct_AS
14118if test -n "$ac_ct_AS"; then
14119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
14120$as_echo "$ac_ct_AS" >&6; }
14121else
14122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14123$as_echo "no" >&6; }
14124fi
14125
14126 if test "x$ac_ct_AS" = x; then
14127 AS="false"
14128 else
14129 case $cross_compiling:$ac_tool_warned in
14130yes:)
14131{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14132$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14133ac_tool_warned=yes ;;
14134esac
14135 AS=$ac_ct_AS
14136 fi
14137else
14138 AS="$ac_cv_prog_AS"
14139fi
14140
14141 if test -n "$ac_tool_prefix"; then
14142 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
14143set dummy ${ac_tool_prefix}dlltool; ac_word=$2
14144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14145$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014146if ${ac_cv_prog_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014147 $as_echo_n "(cached) " >&6
14148else
14149 if test -n "$DLLTOOL"; then
14150 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
14151else
14152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14153for as_dir in $PATH
14154do
14155 IFS=$as_save_IFS
14156 test -z "$as_dir" && as_dir=.
14157 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000014158 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000014159 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
14160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14161 break 2
14162 fi
14163done
14164 done
14165IFS=$as_save_IFS
14166
14167fi
14168fi
14169DLLTOOL=$ac_cv_prog_DLLTOOL
14170if test -n "$DLLTOOL"; then
14171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
14172$as_echo "$DLLTOOL" >&6; }
14173else
14174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14175$as_echo "no" >&6; }
14176fi
14177
14178
14179fi
14180if test -z "$ac_cv_prog_DLLTOOL"; then
14181 ac_ct_DLLTOOL=$DLLTOOL
14182 # Extract the first word of "dlltool", so it can be a program name with args.
14183set dummy dlltool; ac_word=$2
14184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14185$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014186if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014187 $as_echo_n "(cached) " >&6
14188else
14189 if test -n "$ac_ct_DLLTOOL"; then
14190 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
14191else
14192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14193for as_dir in $PATH
14194do
14195 IFS=$as_save_IFS
14196 test -z "$as_dir" && as_dir=.
14197 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000014198 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000014199 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
14200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14201 break 2
14202 fi
14203done
14204 done
14205IFS=$as_save_IFS
14206
14207fi
14208fi
14209ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
14210if test -n "$ac_ct_DLLTOOL"; then
14211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
14212$as_echo "$ac_ct_DLLTOOL" >&6; }
14213else
14214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14215$as_echo "no" >&6; }
14216fi
14217
14218 if test "x$ac_ct_DLLTOOL" = x; then
14219 DLLTOOL="false"
14220 else
14221 case $cross_compiling:$ac_tool_warned in
14222yes:)
14223{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14224$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14225ac_tool_warned=yes ;;
14226esac
14227 DLLTOOL=$ac_ct_DLLTOOL
14228 fi
14229else
14230 DLLTOOL="$ac_cv_prog_DLLTOOL"
14231fi
14232
14233 if test -n "$ac_tool_prefix"; then
14234 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
14235set dummy ${ac_tool_prefix}objdump; ac_word=$2
14236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14237$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014238if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014239 $as_echo_n "(cached) " >&6
14240else
14241 if test -n "$OBJDUMP"; then
14242 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
14243else
14244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14245for as_dir in $PATH
14246do
14247 IFS=$as_save_IFS
14248 test -z "$as_dir" && as_dir=.
14249 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000014250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000014251 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
14252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14253 break 2
14254 fi
14255done
14256 done
14257IFS=$as_save_IFS
14258
14259fi
14260fi
14261OBJDUMP=$ac_cv_prog_OBJDUMP
14262if test -n "$OBJDUMP"; then
14263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
14264$as_echo "$OBJDUMP" >&6; }
14265else
14266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14267$as_echo "no" >&6; }
14268fi
14269
14270
14271fi
14272if test -z "$ac_cv_prog_OBJDUMP"; then
14273 ac_ct_OBJDUMP=$OBJDUMP
14274 # Extract the first word of "objdump", so it can be a program name with args.
14275set dummy objdump; ac_word=$2
14276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14277$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014278if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014279 $as_echo_n "(cached) " >&6
14280else
14281 if test -n "$ac_ct_OBJDUMP"; then
14282 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
14283else
14284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14285for as_dir in $PATH
14286do
14287 IFS=$as_save_IFS
14288 test -z "$as_dir" && as_dir=.
14289 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000014290 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000014291 ac_cv_prog_ac_ct_OBJDUMP="objdump"
14292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14293 break 2
14294 fi
14295done
14296 done
14297IFS=$as_save_IFS
14298
14299fi
14300fi
14301ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
14302if test -n "$ac_ct_OBJDUMP"; then
14303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
14304$as_echo "$ac_ct_OBJDUMP" >&6; }
14305else
14306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14307$as_echo "no" >&6; }
14308fi
14309
14310 if test "x$ac_ct_OBJDUMP" = x; then
14311 OBJDUMP="false"
14312 else
14313 case $cross_compiling:$ac_tool_warned in
14314yes:)
14315{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14316$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14317ac_tool_warned=yes ;;
14318esac
14319 OBJDUMP=$ac_ct_OBJDUMP
14320 fi
14321else
14322 OBJDUMP="$ac_cv_prog_OBJDUMP"
14323fi
14324
14325 ;;
14326esac
14327
14328test -z "$AS" && AS=as
14329
14330
14331
14332
14333
14334test -z "$DLLTOOL" && DLLTOOL=dlltool
14335
14336
14337
14338
14339
14340test -z "$OBJDUMP" && OBJDUMP=objdump
14341
14342
14343
14344
14345
14346
14347
14348
14349
14350 # Check whether --enable-shared was given.
14351if test "${enable_shared+set}" = set; then :
14352 enableval=$enable_shared; p=${PACKAGE-default}
14353 case $enableval in
14354 yes) enable_shared=yes ;;
14355 no) enable_shared=no ;;
14356 *)
14357 enable_shared=no
14358 # Look at the argument we got. We use all the common list separators.
14359 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14360 for pkg in $enableval; do
14361 IFS="$lt_save_ifs"
14362 if test "X$pkg" = "X$p"; then
14363 enable_shared=yes
14364 fi
14365 done
14366 IFS="$lt_save_ifs"
14367 ;;
14368 esac
14369else
14370 enable_shared=yes
14371fi
14372
14373
14374
14375
14376
14377
14378
14379
14380
14381 # Check whether --enable-static was given.
14382if test "${enable_static+set}" = set; then :
14383 enableval=$enable_static; p=${PACKAGE-default}
14384 case $enableval in
14385 yes) enable_static=yes ;;
14386 no) enable_static=no ;;
14387 *)
14388 enable_static=no
14389 # Look at the argument we got. We use all the common list separators.
14390 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14391 for pkg in $enableval; do
14392 IFS="$lt_save_ifs"
14393 if test "X$pkg" = "X$p"; then
14394 enable_static=yes
14395 fi
14396 done
14397 IFS="$lt_save_ifs"
14398 ;;
14399 esac
14400else
14401 enable_static=yes
14402fi
14403
14404
14405
14406
14407
14408
14409
14410
14411
14412
14413# Check whether --with-pic was given.
14414if test "${with_pic+set}" = set; then :
cristy99bd5232011-12-07 14:38:20 +000014415 withval=$with_pic; lt_p=${PACKAGE-default}
14416 case $withval in
14417 yes|no) pic_mode=$withval ;;
14418 *)
14419 pic_mode=default
14420 # Look at the argument we got. We use all the common list separators.
14421 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14422 for lt_pkg in $withval; do
14423 IFS="$lt_save_ifs"
14424 if test "X$lt_pkg" = "X$lt_p"; then
14425 pic_mode=yes
14426 fi
14427 done
14428 IFS="$lt_save_ifs"
14429 ;;
14430 esac
cristy73bd4a52010-10-05 11:24:23 +000014431else
14432 pic_mode=default
14433fi
14434
14435
14436test -z "$pic_mode" && pic_mode=default
14437
14438
14439
14440
14441
14442
14443
14444 # Check whether --enable-fast-install was given.
14445if test "${enable_fast_install+set}" = set; then :
14446 enableval=$enable_fast_install; p=${PACKAGE-default}
14447 case $enableval in
14448 yes) enable_fast_install=yes ;;
14449 no) enable_fast_install=no ;;
14450 *)
14451 enable_fast_install=no
14452 # Look at the argument we got. We use all the common list separators.
14453 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14454 for pkg in $enableval; do
14455 IFS="$lt_save_ifs"
14456 if test "X$pkg" = "X$p"; then
14457 enable_fast_install=yes
14458 fi
14459 done
14460 IFS="$lt_save_ifs"
14461 ;;
14462 esac
14463else
14464 enable_fast_install=yes
14465fi
14466
14467
14468
14469
14470
14471
14472
14473
14474
14475
14476
14477# This can be used to rebuild libtool when needed
14478LIBTOOL_DEPS="$ltmain"
14479
14480# Always use our own libtool.
14481LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14482
14483
14484
14485
14486
14487
14488
14489
14490
14491
14492
14493
14494
14495
14496
14497
14498
14499
14500
14501
14502
14503
14504
14505
14506
cristy0c60a692010-11-04 01:09:47 +000014507
cristy99bd5232011-12-07 14:38:20 +000014508
14509
14510
14511
cristy73bd4a52010-10-05 11:24:23 +000014512test -z "$LN_S" && LN_S="ln -s"
14513
14514
14515
14516
14517
14518
14519
14520
14521
14522
14523
14524
14525
14526
14527if test -n "${ZSH_VERSION+set}" ; then
14528 setopt NO_GLOB_SUBST
14529fi
14530
14531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14532$as_echo_n "checking for objdir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014533if ${lt_cv_objdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014534 $as_echo_n "(cached) " >&6
14535else
14536 rm -f .libs 2>/dev/null
14537mkdir .libs 2>/dev/null
14538if test -d .libs; then
14539 lt_cv_objdir=.libs
14540else
14541 # MS-DOS does not allow filenames that begin with a dot.
14542 lt_cv_objdir=_libs
14543fi
14544rmdir .libs 2>/dev/null
14545fi
14546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14547$as_echo "$lt_cv_objdir" >&6; }
14548objdir=$lt_cv_objdir
14549
14550
14551
14552
14553
14554cat >>confdefs.h <<_ACEOF
14555#define LT_OBJDIR "$lt_cv_objdir/"
14556_ACEOF
14557
14558
14559
14560
cristy73bd4a52010-10-05 11:24:23 +000014561case $host_os in
14562aix3*)
14563 # AIX sometimes has problems with the GCC collect2 program. For some
14564 # reason, if we set the COLLECT_NAMES environment variable, the problems
14565 # vanish in a puff of smoke.
14566 if test "X${COLLECT_NAMES+set}" != Xset; then
14567 COLLECT_NAMES=
14568 export COLLECT_NAMES
14569 fi
14570 ;;
14571esac
14572
cristy73bd4a52010-10-05 11:24:23 +000014573# Global variables:
14574ofile=libtool
14575can_build_shared=yes
14576
14577# All known linkers require a `.a' archive for static linking (except MSVC,
14578# which needs '.lib').
14579libext=a
14580
14581with_gnu_ld="$lt_cv_prog_gnu_ld"
14582
14583old_CC="$CC"
14584old_CFLAGS="$CFLAGS"
14585
14586# Set sane defaults for various variables
14587test -z "$CC" && CC=cc
14588test -z "$LTCC" && LTCC=$CC
14589test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14590test -z "$LD" && LD=ld
14591test -z "$ac_objext" && ac_objext=o
14592
14593for cc_temp in $compiler""; do
14594 case $cc_temp in
14595 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14596 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14597 \-*) ;;
14598 *) break;;
14599 esac
14600done
cristy0c60a692010-11-04 01:09:47 +000014601cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000014602
14603
14604# Only perform the check for file, if the check method requires it
14605test -z "$MAGIC_CMD" && MAGIC_CMD=file
14606case $deplibs_check_method in
14607file_magic*)
14608 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14610$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014611if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014612 $as_echo_n "(cached) " >&6
14613else
14614 case $MAGIC_CMD in
14615[\\/*] | ?:[\\/]*)
14616 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14617 ;;
14618*)
14619 lt_save_MAGIC_CMD="$MAGIC_CMD"
14620 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14621 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14622 for ac_dir in $ac_dummy; do
14623 IFS="$lt_save_ifs"
14624 test -z "$ac_dir" && ac_dir=.
14625 if test -f $ac_dir/${ac_tool_prefix}file; then
14626 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14627 if test -n "$file_magic_test_file"; then
14628 case $deplibs_check_method in
14629 "file_magic "*)
14630 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14631 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14632 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14633 $EGREP "$file_magic_regex" > /dev/null; then
14634 :
14635 else
14636 cat <<_LT_EOF 1>&2
14637
14638*** Warning: the command libtool uses to detect shared libraries,
14639*** $file_magic_cmd, produces output that libtool cannot recognize.
14640*** The result is that libtool may fail to recognize shared libraries
14641*** as such. This will affect the creation of libtool libraries that
14642*** depend on shared libraries, but programs linked with such libtool
14643*** libraries will work regardless of this problem. Nevertheless, you
14644*** may want to report the problem to your system manager and/or to
14645*** bug-libtool@gnu.org
14646
14647_LT_EOF
14648 fi ;;
14649 esac
14650 fi
14651 break
14652 fi
14653 done
14654 IFS="$lt_save_ifs"
14655 MAGIC_CMD="$lt_save_MAGIC_CMD"
14656 ;;
14657esac
14658fi
14659
14660MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14661if test -n "$MAGIC_CMD"; then
14662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14663$as_echo "$MAGIC_CMD" >&6; }
14664else
14665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14666$as_echo "no" >&6; }
14667fi
14668
14669
14670
14671
14672
14673if test -z "$lt_cv_path_MAGIC_CMD"; then
14674 if test -n "$ac_tool_prefix"; then
14675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14676$as_echo_n "checking for file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014677if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014678 $as_echo_n "(cached) " >&6
14679else
14680 case $MAGIC_CMD in
14681[\\/*] | ?:[\\/]*)
14682 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14683 ;;
14684*)
14685 lt_save_MAGIC_CMD="$MAGIC_CMD"
14686 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14687 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14688 for ac_dir in $ac_dummy; do
14689 IFS="$lt_save_ifs"
14690 test -z "$ac_dir" && ac_dir=.
14691 if test -f $ac_dir/file; then
14692 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14693 if test -n "$file_magic_test_file"; then
14694 case $deplibs_check_method in
14695 "file_magic "*)
14696 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14697 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14698 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14699 $EGREP "$file_magic_regex" > /dev/null; then
14700 :
14701 else
14702 cat <<_LT_EOF 1>&2
14703
14704*** Warning: the command libtool uses to detect shared libraries,
14705*** $file_magic_cmd, produces output that libtool cannot recognize.
14706*** The result is that libtool may fail to recognize shared libraries
14707*** as such. This will affect the creation of libtool libraries that
14708*** depend on shared libraries, but programs linked with such libtool
14709*** libraries will work regardless of this problem. Nevertheless, you
14710*** may want to report the problem to your system manager and/or to
14711*** bug-libtool@gnu.org
14712
14713_LT_EOF
14714 fi ;;
14715 esac
14716 fi
14717 break
14718 fi
14719 done
14720 IFS="$lt_save_ifs"
14721 MAGIC_CMD="$lt_save_MAGIC_CMD"
14722 ;;
14723esac
14724fi
14725
14726MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14727if test -n "$MAGIC_CMD"; then
14728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14729$as_echo "$MAGIC_CMD" >&6; }
14730else
14731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14732$as_echo "no" >&6; }
14733fi
14734
14735
14736 else
14737 MAGIC_CMD=:
14738 fi
14739fi
14740
14741 fi
14742 ;;
14743esac
14744
14745# Use C for the default configuration in the libtool script
14746
14747lt_save_CC="$CC"
14748ac_ext=c
14749ac_cpp='$CPP $CPPFLAGS'
14750ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14751ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14752ac_compiler_gnu=$ac_cv_c_compiler_gnu
14753
14754
14755# Source file extension for C test sources.
14756ac_ext=c
14757
14758# Object file extension for compiled C test sources.
14759objext=o
14760objext=$objext
14761
14762# Code to be used in simple compile tests
14763lt_simple_compile_test_code="int some_variable = 0;"
14764
14765# Code to be used in simple link tests
14766lt_simple_link_test_code='int main(){return(0);}'
14767
14768
14769
14770
14771
14772
14773
14774# If no C compiler was specified, use CC.
14775LTCC=${LTCC-"$CC"}
14776
14777# If no C compiler flags were specified, use CFLAGS.
14778LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14779
14780# Allow CC to be a program name with arguments.
14781compiler=$CC
14782
14783# Save the default compiler, since it gets overwritten when the other
14784# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14785compiler_DEFAULT=$CC
14786
14787# save warnings/boilerplate of simple test code
14788ac_outfile=conftest.$ac_objext
14789echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14790eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14791_lt_compiler_boilerplate=`cat conftest.err`
14792$RM conftest*
14793
14794ac_outfile=conftest.$ac_objext
14795echo "$lt_simple_link_test_code" >conftest.$ac_ext
14796eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14797_lt_linker_boilerplate=`cat conftest.err`
14798$RM -r conftest*
14799
14800
14801## CAVEAT EMPTOR:
14802## There is no encapsulation within the following macros, do not change
14803## the running order or otherwise move them around unless you know exactly
14804## what you are doing...
14805if test -n "$compiler"; then
14806
14807lt_prog_compiler_no_builtin_flag=
14808
14809if test "$GCC" = yes; then
cristy0c60a692010-11-04 01:09:47 +000014810 case $cc_basename in
14811 nvcc*)
14812 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14813 *)
14814 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14815 esac
cristy73bd4a52010-10-05 11:24:23 +000014816
14817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14818$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014819if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014820 $as_echo_n "(cached) " >&6
14821else
14822 lt_cv_prog_compiler_rtti_exceptions=no
14823 ac_outfile=conftest.$ac_objext
14824 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14825 lt_compiler_flag="-fno-rtti -fno-exceptions"
14826 # Insert the option either (1) after the last *FLAGS variable, or
14827 # (2) before a word containing "conftest.", or (3) at the end.
14828 # Note that $ac_compile itself does not contain backslashes and begins
14829 # with a dollar sign (not a hyphen), so the echo should work correctly.
14830 # The option is referenced via a variable to avoid confusing sed.
14831 lt_compile=`echo "$ac_compile" | $SED \
14832 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14833 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14834 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014835 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014836 (eval "$lt_compile" 2>conftest.err)
14837 ac_status=$?
14838 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014840 if (exit $ac_status) && test -s "$ac_outfile"; then
14841 # The compiler can only warn and ignore the option if not recognized
14842 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000014843 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014844 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14845 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14846 lt_cv_prog_compiler_rtti_exceptions=yes
14847 fi
14848 fi
14849 $RM conftest*
14850
14851fi
14852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14853$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14854
14855if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14856 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14857else
14858 :
14859fi
14860
14861fi
14862
14863
14864
14865
14866
14867
14868 lt_prog_compiler_wl=
14869lt_prog_compiler_pic=
14870lt_prog_compiler_static=
14871
cristy73bd4a52010-10-05 11:24:23 +000014872
14873 if test "$GCC" = yes; then
14874 lt_prog_compiler_wl='-Wl,'
14875 lt_prog_compiler_static='-static'
14876
14877 case $host_os in
14878 aix*)
14879 # All AIX code is PIC.
14880 if test "$host_cpu" = ia64; then
14881 # AIX 5 now supports IA64 processor
14882 lt_prog_compiler_static='-Bstatic'
14883 fi
14884 ;;
14885
14886 amigaos*)
14887 case $host_cpu in
14888 powerpc)
14889 # see comment about AmigaOS4 .so support
14890 lt_prog_compiler_pic='-fPIC'
14891 ;;
14892 m68k)
14893 # FIXME: we need at least 68020 code to build shared libraries, but
14894 # adding the `-m68020' flag to GCC prevents building anything better,
14895 # like `-m68040'.
14896 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14897 ;;
14898 esac
14899 ;;
14900
14901 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14902 # PIC is the default for these OSes.
14903 ;;
14904
14905 mingw* | cygwin* | pw32* | os2* | cegcc*)
14906 # This hack is so that the source file can tell whether it is being
14907 # built for inclusion in a dll (and should export symbols for example).
14908 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14909 # (--disable-auto-import) libraries
14910 lt_prog_compiler_pic='-DDLL_EXPORT'
14911 ;;
14912
14913 darwin* | rhapsody*)
14914 # PIC is the default on this platform
14915 # Common symbols not allowed in MH_DYLIB files
14916 lt_prog_compiler_pic='-fno-common'
14917 ;;
14918
cristy0c60a692010-11-04 01:09:47 +000014919 haiku*)
14920 # PIC is the default for Haiku.
14921 # The "-static" flag exists, but is broken.
14922 lt_prog_compiler_static=
14923 ;;
14924
cristy73bd4a52010-10-05 11:24:23 +000014925 hpux*)
14926 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14927 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14928 # sets the default TLS model and affects inlining.
14929 case $host_cpu in
14930 hppa*64*)
14931 # +Z the default
14932 ;;
14933 *)
14934 lt_prog_compiler_pic='-fPIC'
14935 ;;
14936 esac
14937 ;;
14938
14939 interix[3-9]*)
14940 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14941 # Instead, we relocate shared libraries at runtime.
14942 ;;
14943
14944 msdosdjgpp*)
14945 # Just because we use GCC doesn't mean we suddenly get shared libraries
14946 # on systems that don't support them.
14947 lt_prog_compiler_can_build_shared=no
14948 enable_shared=no
14949 ;;
14950
14951 *nto* | *qnx*)
14952 # QNX uses GNU C++, but need to define -shared option too, otherwise
14953 # it will coredump.
14954 lt_prog_compiler_pic='-fPIC -shared'
14955 ;;
14956
14957 sysv4*MP*)
14958 if test -d /usr/nec; then
14959 lt_prog_compiler_pic=-Kconform_pic
14960 fi
14961 ;;
14962
14963 *)
14964 lt_prog_compiler_pic='-fPIC'
14965 ;;
14966 esac
cristy0c60a692010-11-04 01:09:47 +000014967
14968 case $cc_basename in
14969 nvcc*) # Cuda Compiler Driver 2.2
14970 lt_prog_compiler_wl='-Xlinker '
cristy99bd5232011-12-07 14:38:20 +000014971 if test -n "$lt_prog_compiler_pic"; then
14972 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14973 fi
cristy0c60a692010-11-04 01:09:47 +000014974 ;;
14975 esac
cristy73bd4a52010-10-05 11:24:23 +000014976 else
14977 # PORTME Check for flag to pass linker flags through the system compiler.
14978 case $host_os in
14979 aix*)
14980 lt_prog_compiler_wl='-Wl,'
14981 if test "$host_cpu" = ia64; then
14982 # AIX 5 now supports IA64 processor
14983 lt_prog_compiler_static='-Bstatic'
14984 else
14985 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14986 fi
14987 ;;
14988
14989 mingw* | cygwin* | pw32* | os2* | cegcc*)
14990 # This hack is so that the source file can tell whether it is being
14991 # built for inclusion in a dll (and should export symbols for example).
14992 lt_prog_compiler_pic='-DDLL_EXPORT'
14993 ;;
14994
14995 hpux9* | hpux10* | hpux11*)
14996 lt_prog_compiler_wl='-Wl,'
14997 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14998 # not for PA HP-UX.
14999 case $host_cpu in
15000 hppa*64*|ia64*)
15001 # +Z the default
15002 ;;
15003 *)
15004 lt_prog_compiler_pic='+Z'
15005 ;;
15006 esac
15007 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15008 lt_prog_compiler_static='${wl}-a ${wl}archive'
15009 ;;
15010
15011 irix5* | irix6* | nonstopux*)
15012 lt_prog_compiler_wl='-Wl,'
15013 # PIC (with -KPIC) is the default.
15014 lt_prog_compiler_static='-non_shared'
15015 ;;
15016
cristy0c60a692010-11-04 01:09:47 +000015017 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000015018 case $cc_basename in
15019 # old Intel for x86_64 which still supported -KPIC.
15020 ecc*)
15021 lt_prog_compiler_wl='-Wl,'
15022 lt_prog_compiler_pic='-KPIC'
15023 lt_prog_compiler_static='-static'
15024 ;;
15025 # icc used to be incompatible with GCC.
15026 # ICC 10 doesn't accept -KPIC any more.
15027 icc* | ifort*)
15028 lt_prog_compiler_wl='-Wl,'
15029 lt_prog_compiler_pic='-fPIC'
15030 lt_prog_compiler_static='-static'
15031 ;;
15032 # Lahey Fortran 8.1.
15033 lf95*)
15034 lt_prog_compiler_wl='-Wl,'
15035 lt_prog_compiler_pic='--shared'
15036 lt_prog_compiler_static='--static'
15037 ;;
cristyda16f162011-02-19 23:52:17 +000015038 nagfor*)
15039 # NAG Fortran compiler
15040 lt_prog_compiler_wl='-Wl,-Wl,,'
15041 lt_prog_compiler_pic='-PIC'
15042 lt_prog_compiler_static='-Bstatic'
15043 ;;
cristy0c60a692010-11-04 01:09:47 +000015044 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
cristy73bd4a52010-10-05 11:24:23 +000015045 # Portland Group compilers (*not* the Pentium gcc compiler,
15046 # which looks to be a dead project)
15047 lt_prog_compiler_wl='-Wl,'
15048 lt_prog_compiler_pic='-fpic'
15049 lt_prog_compiler_static='-Bstatic'
15050 ;;
15051 ccc*)
15052 lt_prog_compiler_wl='-Wl,'
15053 # All Alpha code is PIC.
15054 lt_prog_compiler_static='-non_shared'
15055 ;;
cristy0c60a692010-11-04 01:09:47 +000015056 xl* | bgxl* | bgf* | mpixl*)
15057 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000015058 lt_prog_compiler_wl='-Wl,'
15059 lt_prog_compiler_pic='-qpic'
15060 lt_prog_compiler_static='-qstaticlink'
15061 ;;
15062 *)
15063 case `$CC -V 2>&1 | sed 5q` in
cristy99bd5232011-12-07 14:38:20 +000015064 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
cristy0c60a692010-11-04 01:09:47 +000015065 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15066 lt_prog_compiler_pic='-KPIC'
15067 lt_prog_compiler_static='-Bstatic'
15068 lt_prog_compiler_wl=''
15069 ;;
cristy99bd5232011-12-07 14:38:20 +000015070 *Sun\ F* | *Sun*Fortran*)
15071 lt_prog_compiler_pic='-KPIC'
15072 lt_prog_compiler_static='-Bstatic'
15073 lt_prog_compiler_wl='-Qoption ld '
15074 ;;
cristy73bd4a52010-10-05 11:24:23 +000015075 *Sun\ C*)
15076 # Sun C 5.9
15077 lt_prog_compiler_pic='-KPIC'
15078 lt_prog_compiler_static='-Bstatic'
15079 lt_prog_compiler_wl='-Wl,'
15080 ;;
cristy99bd5232011-12-07 14:38:20 +000015081 *Intel*\ [CF]*Compiler*)
15082 lt_prog_compiler_wl='-Wl,'
15083 lt_prog_compiler_pic='-fPIC'
15084 lt_prog_compiler_static='-static'
15085 ;;
15086 *Portland\ Group*)
15087 lt_prog_compiler_wl='-Wl,'
15088 lt_prog_compiler_pic='-fpic'
15089 lt_prog_compiler_static='-Bstatic'
15090 ;;
cristy73bd4a52010-10-05 11:24:23 +000015091 esac
15092 ;;
15093 esac
15094 ;;
15095
15096 newsos6)
15097 lt_prog_compiler_pic='-KPIC'
15098 lt_prog_compiler_static='-Bstatic'
15099 ;;
15100
15101 *nto* | *qnx*)
15102 # QNX uses GNU C++, but need to define -shared option too, otherwise
15103 # it will coredump.
15104 lt_prog_compiler_pic='-fPIC -shared'
15105 ;;
15106
15107 osf3* | osf4* | osf5*)
15108 lt_prog_compiler_wl='-Wl,'
15109 # All OSF/1 code is PIC.
15110 lt_prog_compiler_static='-non_shared'
15111 ;;
15112
15113 rdos*)
15114 lt_prog_compiler_static='-non_shared'
15115 ;;
15116
15117 solaris*)
15118 lt_prog_compiler_pic='-KPIC'
15119 lt_prog_compiler_static='-Bstatic'
15120 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000015121 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
cristy73bd4a52010-10-05 11:24:23 +000015122 lt_prog_compiler_wl='-Qoption ld ';;
15123 *)
15124 lt_prog_compiler_wl='-Wl,';;
15125 esac
15126 ;;
15127
15128 sunos4*)
15129 lt_prog_compiler_wl='-Qoption ld '
15130 lt_prog_compiler_pic='-PIC'
15131 lt_prog_compiler_static='-Bstatic'
15132 ;;
15133
15134 sysv4 | sysv4.2uw2* | sysv4.3*)
15135 lt_prog_compiler_wl='-Wl,'
15136 lt_prog_compiler_pic='-KPIC'
15137 lt_prog_compiler_static='-Bstatic'
15138 ;;
15139
15140 sysv4*MP*)
15141 if test -d /usr/nec ;then
15142 lt_prog_compiler_pic='-Kconform_pic'
15143 lt_prog_compiler_static='-Bstatic'
15144 fi
15145 ;;
15146
15147 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15148 lt_prog_compiler_wl='-Wl,'
15149 lt_prog_compiler_pic='-KPIC'
15150 lt_prog_compiler_static='-Bstatic'
15151 ;;
15152
15153 unicos*)
15154 lt_prog_compiler_wl='-Wl,'
15155 lt_prog_compiler_can_build_shared=no
15156 ;;
15157
15158 uts4*)
15159 lt_prog_compiler_pic='-pic'
15160 lt_prog_compiler_static='-Bstatic'
15161 ;;
15162
15163 *)
15164 lt_prog_compiler_can_build_shared=no
15165 ;;
15166 esac
15167 fi
15168
15169case $host_os in
15170 # For platforms which do not support PIC, -DPIC is meaningless:
15171 *djgpp*)
15172 lt_prog_compiler_pic=
15173 ;;
15174 *)
15175 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15176 ;;
15177esac
cristy73bd4a52010-10-05 11:24:23 +000015178
cristyda16f162011-02-19 23:52:17 +000015179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15180$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15181if ${lt_cv_prog_compiler_pic+:} false; then :
15182 $as_echo_n "(cached) " >&6
15183else
15184 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
15185fi
15186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
15187$as_echo "$lt_cv_prog_compiler_pic" >&6; }
15188lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
cristy73bd4a52010-10-05 11:24:23 +000015189
15190#
15191# Check to make sure the PIC flag actually works.
15192#
15193if test -n "$lt_prog_compiler_pic"; then
15194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15195$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015196if ${lt_cv_prog_compiler_pic_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000015197 $as_echo_n "(cached) " >&6
15198else
15199 lt_cv_prog_compiler_pic_works=no
15200 ac_outfile=conftest.$ac_objext
15201 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15202 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15203 # Insert the option either (1) after the last *FLAGS variable, or
15204 # (2) before a word containing "conftest.", or (3) at the end.
15205 # Note that $ac_compile itself does not contain backslashes and begins
15206 # with a dollar sign (not a hyphen), so the echo should work correctly.
15207 # The option is referenced via a variable to avoid confusing sed.
15208 lt_compile=`echo "$ac_compile" | $SED \
15209 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15210 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15211 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000015212 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000015213 (eval "$lt_compile" 2>conftest.err)
15214 ac_status=$?
15215 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000015216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000015217 if (exit $ac_status) && test -s "$ac_outfile"; then
15218 # The compiler can only warn and ignore the option if not recognized
15219 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000015220 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000015221 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15222 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15223 lt_cv_prog_compiler_pic_works=yes
15224 fi
15225 fi
15226 $RM conftest*
15227
15228fi
15229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15230$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15231
15232if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15233 case $lt_prog_compiler_pic in
15234 "" | " "*) ;;
15235 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15236 esac
15237else
15238 lt_prog_compiler_pic=
15239 lt_prog_compiler_can_build_shared=no
15240fi
15241
15242fi
15243
15244
15245
15246
15247
15248
cristyda16f162011-02-19 23:52:17 +000015249
15250
15251
15252
15253
cristy73bd4a52010-10-05 11:24:23 +000015254#
15255# Check to make sure the static flag actually works.
15256#
15257wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15259$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015260if ${lt_cv_prog_compiler_static_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000015261 $as_echo_n "(cached) " >&6
15262else
15263 lt_cv_prog_compiler_static_works=no
15264 save_LDFLAGS="$LDFLAGS"
15265 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15266 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15267 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15268 # The linker can only warn and ignore the option if not recognized
15269 # So say no if there are warnings
15270 if test -s conftest.err; then
15271 # Append any errors to the config.log.
15272 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000015273 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000015274 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15275 if diff conftest.exp conftest.er2 >/dev/null; then
15276 lt_cv_prog_compiler_static_works=yes
15277 fi
15278 else
15279 lt_cv_prog_compiler_static_works=yes
15280 fi
15281 fi
15282 $RM -r conftest*
15283 LDFLAGS="$save_LDFLAGS"
15284
15285fi
15286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15287$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15288
15289if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15290 :
15291else
15292 lt_prog_compiler_static=
15293fi
15294
15295
15296
15297
15298
15299
15300
15301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15302$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015303if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000015304 $as_echo_n "(cached) " >&6
15305else
15306 lt_cv_prog_compiler_c_o=no
15307 $RM -r conftest 2>/dev/null
15308 mkdir conftest
15309 cd conftest
15310 mkdir out
15311 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15312
15313 lt_compiler_flag="-o out/conftest2.$ac_objext"
15314 # Insert the option either (1) after the last *FLAGS variable, or
15315 # (2) before a word containing "conftest.", or (3) at the end.
15316 # Note that $ac_compile itself does not contain backslashes and begins
15317 # with a dollar sign (not a hyphen), so the echo should work correctly.
15318 lt_compile=`echo "$ac_compile" | $SED \
15319 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15320 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15321 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000015322 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000015323 (eval "$lt_compile" 2>out/conftest.err)
15324 ac_status=$?
15325 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000015326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000015327 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15328 then
15329 # The compiler can only warn and ignore the option if not recognized
15330 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000015331 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000015332 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15333 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15334 lt_cv_prog_compiler_c_o=yes
15335 fi
15336 fi
15337 chmod u+w . 2>&5
15338 $RM conftest*
15339 # SGI C++ compiler will create directory out/ii_files/ for
15340 # template instantiation
15341 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15342 $RM out/* && rmdir out
15343 cd ..
15344 $RM -r conftest
15345 $RM conftest*
15346
15347fi
15348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15349$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15350
15351
15352
15353
15354
15355
15356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15357$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015358if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000015359 $as_echo_n "(cached) " >&6
15360else
15361 lt_cv_prog_compiler_c_o=no
15362 $RM -r conftest 2>/dev/null
15363 mkdir conftest
15364 cd conftest
15365 mkdir out
15366 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15367
15368 lt_compiler_flag="-o out/conftest2.$ac_objext"
15369 # Insert the option either (1) after the last *FLAGS variable, or
15370 # (2) before a word containing "conftest.", or (3) at the end.
15371 # Note that $ac_compile itself does not contain backslashes and begins
15372 # with a dollar sign (not a hyphen), so the echo should work correctly.
15373 lt_compile=`echo "$ac_compile" | $SED \
15374 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15375 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15376 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000015377 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000015378 (eval "$lt_compile" 2>out/conftest.err)
15379 ac_status=$?
15380 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000015381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000015382 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15383 then
15384 # The compiler can only warn and ignore the option if not recognized
15385 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000015386 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000015387 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15388 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15389 lt_cv_prog_compiler_c_o=yes
15390 fi
15391 fi
15392 chmod u+w . 2>&5
15393 $RM conftest*
15394 # SGI C++ compiler will create directory out/ii_files/ for
15395 # template instantiation
15396 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15397 $RM out/* && rmdir out
15398 cd ..
15399 $RM -r conftest
15400 $RM conftest*
15401
15402fi
15403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15404$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15405
15406
15407
15408
15409hard_links="nottested"
15410if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15411 # do not overwrite the value of need_locks provided by the user
15412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15413$as_echo_n "checking if we can lock with hard links... " >&6; }
15414 hard_links=yes
15415 $RM conftest*
15416 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15417 touch conftest.a
15418 ln conftest.a conftest.b 2>&5 || hard_links=no
15419 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15421$as_echo "$hard_links" >&6; }
15422 if test "$hard_links" = no; then
15423 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15424$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15425 need_locks=warn
15426 fi
15427else
15428 need_locks=no
15429fi
15430
15431
15432
15433
15434
15435
15436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15437$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15438
15439 runpath_var=
15440 allow_undefined_flag=
15441 always_export_symbols=no
15442 archive_cmds=
15443 archive_expsym_cmds=
15444 compiler_needs_object=no
15445 enable_shared_with_static_runtimes=no
15446 export_dynamic_flag_spec=
15447 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15448 hardcode_automatic=no
15449 hardcode_direct=no
15450 hardcode_direct_absolute=no
15451 hardcode_libdir_flag_spec=
cristy73bd4a52010-10-05 11:24:23 +000015452 hardcode_libdir_separator=
15453 hardcode_minus_L=no
15454 hardcode_shlibpath_var=unsupported
15455 inherit_rpath=no
15456 link_all_deplibs=unknown
15457 module_cmds=
15458 module_expsym_cmds=
15459 old_archive_from_new_cmds=
15460 old_archive_from_expsyms_cmds=
15461 thread_safe_flag_spec=
15462 whole_archive_flag_spec=
15463 # include_expsyms should be a list of space-separated symbols to be *always*
15464 # included in the symbol list
15465 include_expsyms=
15466 # exclude_expsyms can be an extended regexp of symbols to exclude
15467 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15468 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15469 # as well as any symbol that contains `d'.
15470 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15471 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15472 # platforms (ab)use it in PIC code, but their linkers get confused if
15473 # the symbol is explicitly referenced. Since portable code cannot
15474 # rely on this symbol name, it's probably fine to never include it in
15475 # preloaded symbol tables.
15476 # Exclude shared library initialization/finalization symbols.
15477 extract_expsyms_cmds=
15478
15479 case $host_os in
15480 cygwin* | mingw* | pw32* | cegcc*)
15481 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15482 # When not using gcc, we currently assume that we are using
15483 # Microsoft Visual C++.
15484 if test "$GCC" != yes; then
15485 with_gnu_ld=no
15486 fi
15487 ;;
15488 interix*)
15489 # we just hope/assume this is gcc and not c89 (= MSVC++)
15490 with_gnu_ld=yes
15491 ;;
15492 openbsd*)
15493 with_gnu_ld=no
15494 ;;
15495 esac
15496
15497 ld_shlibs=yes
cristy0c60a692010-11-04 01:09:47 +000015498
15499 # On some targets, GNU ld is compatible enough with the native linker
15500 # that we're better off using the native interface for both.
15501 lt_use_gnu_ld_interface=no
cristy73bd4a52010-10-05 11:24:23 +000015502 if test "$with_gnu_ld" = yes; then
cristy0c60a692010-11-04 01:09:47 +000015503 case $host_os in
15504 aix*)
15505 # The AIX port of GNU ld has always aspired to compatibility
15506 # with the native linker. However, as the warning in the GNU ld
15507 # block says, versions before 2.19.5* couldn't really create working
15508 # shared libraries, regardless of the interface used.
15509 case `$LD -v 2>&1` in
15510 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15511 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15512 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15513 *)
15514 lt_use_gnu_ld_interface=yes
15515 ;;
15516 esac
15517 ;;
15518 *)
15519 lt_use_gnu_ld_interface=yes
15520 ;;
15521 esac
15522 fi
15523
15524 if test "$lt_use_gnu_ld_interface" = yes; then
cristy73bd4a52010-10-05 11:24:23 +000015525 # If archive_cmds runs LD, not CC, wlarc should be empty
15526 wlarc='${wl}'
15527
15528 # Set some defaults for GNU ld with shared library support. These
15529 # are reset later if shared libraries are not supported. Putting them
15530 # here allows them to be overridden if necessary.
15531 runpath_var=LD_RUN_PATH
15532 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15533 export_dynamic_flag_spec='${wl}--export-dynamic'
15534 # ancient GNU ld didn't support --whole-archive et. al.
15535 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15536 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15537 else
15538 whole_archive_flag_spec=
15539 fi
15540 supports_anon_versioning=no
15541 case `$LD -v 2>&1` in
cristy0c60a692010-11-04 01:09:47 +000015542 *GNU\ gold*) supports_anon_versioning=yes ;;
cristy73bd4a52010-10-05 11:24:23 +000015543 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15544 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15545 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15546 *\ 2.11.*) ;; # other 2.11 versions
15547 *) supports_anon_versioning=yes ;;
15548 esac
15549
15550 # See if GNU ld supports shared libraries.
15551 case $host_os in
15552 aix[3-9]*)
15553 # On AIX/PPC, the GNU linker is very broken
15554 if test "$host_cpu" != ia64; then
15555 ld_shlibs=no
15556 cat <<_LT_EOF 1>&2
15557
cristy0c60a692010-11-04 01:09:47 +000015558*** Warning: the GNU linker, at least up to release 2.19, is reported
cristy73bd4a52010-10-05 11:24:23 +000015559*** to be unable to reliably create shared libraries on AIX.
15560*** Therefore, libtool is disabling shared libraries support. If you
cristy0c60a692010-11-04 01:09:47 +000015561*** really care for shared libraries, you may want to install binutils
15562*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15563*** You will then need to restart the configuration process.
cristy73bd4a52010-10-05 11:24:23 +000015564
15565_LT_EOF
15566 fi
15567 ;;
15568
15569 amigaos*)
15570 case $host_cpu in
15571 powerpc)
15572 # see comment about AmigaOS4 .so support
15573 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15574 archive_expsym_cmds=''
15575 ;;
15576 m68k)
15577 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)'
15578 hardcode_libdir_flag_spec='-L$libdir'
15579 hardcode_minus_L=yes
15580 ;;
15581 esac
15582 ;;
15583
15584 beos*)
15585 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15586 allow_undefined_flag=unsupported
15587 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15588 # support --undefined. This deserves some investigation. FIXME
15589 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15590 else
15591 ld_shlibs=no
15592 fi
15593 ;;
15594
15595 cygwin* | mingw* | pw32* | cegcc*)
15596 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15597 # as there is no search path for DLLs.
15598 hardcode_libdir_flag_spec='-L$libdir'
cristy0c60a692010-11-04 01:09:47 +000015599 export_dynamic_flag_spec='${wl}--export-all-symbols'
cristy73bd4a52010-10-05 11:24:23 +000015600 allow_undefined_flag=unsupported
15601 always_export_symbols=no
15602 enable_shared_with_static_runtimes=yes
cristyda16f162011-02-19 23:52:17 +000015603 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'
15604 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 +000015605
15606 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15607 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15608 # If the export-symbols file already is a .def file (1st line
15609 # is EXPORTS), use it as is; otherwise, prepend...
15610 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15611 cp $export_symbols $output_objdir/$soname.def;
15612 else
15613 echo EXPORTS > $output_objdir/$soname.def;
15614 cat $export_symbols >> $output_objdir/$soname.def;
15615 fi~
15616 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15617 else
15618 ld_shlibs=no
15619 fi
15620 ;;
15621
cristy0c60a692010-11-04 01:09:47 +000015622 haiku*)
15623 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15624 link_all_deplibs=yes
15625 ;;
15626
cristy73bd4a52010-10-05 11:24:23 +000015627 interix[3-9]*)
15628 hardcode_direct=no
15629 hardcode_shlibpath_var=no
15630 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15631 export_dynamic_flag_spec='${wl}-E'
15632 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15633 # Instead, shared libraries are loaded at an image base (0x10000000 by
15634 # default) and relocated if they conflict, which is a slow very memory
15635 # consuming and fragmenting process. To avoid this, we pick a random,
15636 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15637 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15638 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15639 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'
15640 ;;
15641
cristy0c60a692010-11-04 01:09:47 +000015642 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000015643 tmp_diet=no
15644 if test "$host_os" = linux-dietlibc; then
15645 case $cc_basename in
15646 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15647 esac
15648 fi
15649 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15650 && test "$tmp_diet" = no
15651 then
cristyda16f162011-02-19 23:52:17 +000015652 tmp_addflag=' $pic_flag'
cristy73bd4a52010-10-05 11:24:23 +000015653 tmp_sharedflag='-shared'
15654 case $cc_basename,$host_cpu in
15655 pgcc*) # Portland Group C compiler
cristy0c60a692010-11-04 01:09:47 +000015656 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 +000015657 tmp_addflag=' $pic_flag'
15658 ;;
cristy0c60a692010-11-04 01:09:47 +000015659 pgf77* | pgf90* | pgf95* | pgfortran*)
15660 # Portland Group f77 and f90 compilers
15661 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 +000015662 tmp_addflag=' $pic_flag -Mnomain' ;;
15663 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15664 tmp_addflag=' -i_dynamic' ;;
15665 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15666 tmp_addflag=' -i_dynamic -nofor_main' ;;
15667 ifc* | ifort*) # Intel Fortran compiler
15668 tmp_addflag=' -nofor_main' ;;
15669 lf95*) # Lahey Fortran 8.1
15670 whole_archive_flag_spec=
15671 tmp_sharedflag='--shared' ;;
cristy0c60a692010-11-04 01:09:47 +000015672 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cristy73bd4a52010-10-05 11:24:23 +000015673 tmp_sharedflag='-qmkshrobj'
15674 tmp_addflag= ;;
cristy0c60a692010-11-04 01:09:47 +000015675 nvcc*) # Cuda Compiler Driver 2.2
15676 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'
15677 compiler_needs_object=yes
15678 ;;
cristy73bd4a52010-10-05 11:24:23 +000015679 esac
15680 case `$CC -V 2>&1 | sed 5q` in
15681 *Sun\ C*) # Sun C 5.9
cristy0c60a692010-11-04 01:09:47 +000015682 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 +000015683 compiler_needs_object=yes
15684 tmp_sharedflag='-G' ;;
15685 *Sun\ F*) # Sun Fortran 8.3
15686 tmp_sharedflag='-G' ;;
15687 esac
15688 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15689
15690 if test "x$supports_anon_versioning" = xyes; then
15691 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15692 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15693 echo "local: *; };" >> $output_objdir/$libname.ver~
15694 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15695 fi
15696
15697 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000015698 xlf* | bgf* | bgxlf* | mpixlf*)
cristy73bd4a52010-10-05 11:24:23 +000015699 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15700 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
cristy99bd5232011-12-07 14:38:20 +000015701 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
cristy0c60a692010-11-04 01:09:47 +000015702 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000015703 if test "x$supports_anon_versioning" = xyes; then
15704 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15705 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15706 echo "local: *; };" >> $output_objdir/$libname.ver~
cristy0c60a692010-11-04 01:09:47 +000015707 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000015708 fi
15709 ;;
15710 esac
15711 else
15712 ld_shlibs=no
15713 fi
15714 ;;
15715
15716 netbsd*)
15717 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15718 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15719 wlarc=
15720 else
cristyda16f162011-02-19 23:52:17 +000015721 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15722 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 +000015723 fi
15724 ;;
15725
15726 solaris*)
15727 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15728 ld_shlibs=no
15729 cat <<_LT_EOF 1>&2
15730
15731*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15732*** create shared libraries on Solaris systems. Therefore, libtool
15733*** is disabling shared libraries support. We urge you to upgrade GNU
15734*** binutils to release 2.9.1 or newer. Another option is to modify
15735*** your PATH or compiler configuration so that the native linker is
15736*** used, and then restart.
15737
15738_LT_EOF
15739 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000015740 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15741 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 +000015742 else
15743 ld_shlibs=no
15744 fi
15745 ;;
15746
15747 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15748 case `$LD -v 2>&1` in
15749 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15750 ld_shlibs=no
15751 cat <<_LT_EOF 1>&2
15752
15753*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15754*** reliably create shared libraries on SCO systems. Therefore, libtool
15755*** is disabling shared libraries support. We urge you to upgrade GNU
15756*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15757*** your PATH or compiler configuration so that the native linker is
15758*** used, and then restart.
15759
15760_LT_EOF
15761 ;;
15762 *)
15763 # For security reasons, it is highly recommended that you always
15764 # use absolute paths for naming shared libraries, and exclude the
15765 # DT_RUNPATH tag from executables and libraries. But doing so
15766 # requires that you compile everything twice, which is a pain.
15767 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15768 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15769 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15770 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15771 else
15772 ld_shlibs=no
15773 fi
15774 ;;
15775 esac
15776 ;;
15777
15778 sunos4*)
15779 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15780 wlarc=
15781 hardcode_direct=yes
15782 hardcode_shlibpath_var=no
15783 ;;
15784
15785 *)
15786 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000015787 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15788 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 +000015789 else
15790 ld_shlibs=no
15791 fi
15792 ;;
15793 esac
15794
15795 if test "$ld_shlibs" = no; then
15796 runpath_var=
15797 hardcode_libdir_flag_spec=
15798 export_dynamic_flag_spec=
15799 whole_archive_flag_spec=
15800 fi
15801 else
15802 # PORTME fill in a description of your system's linker (not GNU ld)
15803 case $host_os in
15804 aix3*)
15805 allow_undefined_flag=unsupported
15806 always_export_symbols=yes
15807 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'
15808 # Note: this linker hardcodes the directories in LIBPATH if there
15809 # are no directories specified by -L.
15810 hardcode_minus_L=yes
15811 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15812 # Neither direct hardcoding nor static linking is supported with a
15813 # broken collect2.
15814 hardcode_direct=unsupported
15815 fi
15816 ;;
15817
15818 aix[4-9]*)
15819 if test "$host_cpu" = ia64; then
15820 # On IA64, the linker does run time linking by default, so we don't
15821 # have to do anything special.
15822 aix_use_runtimelinking=no
15823 exp_sym_flag='-Bexport'
15824 no_entry_flag=""
15825 else
15826 # If we're using GNU nm, then we don't want the "-C" option.
15827 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000015828 # Also, AIX nm treats weak defined symbols like other global
15829 # defined symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000015830 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000015831 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 +000015832 else
15833 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'
15834 fi
15835 aix_use_runtimelinking=no
15836
15837 # Test if we are trying to use run time linking or normal
15838 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15839 # need to do runtime linking.
15840 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15841 for ld_flag in $LDFLAGS; do
15842 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15843 aix_use_runtimelinking=yes
15844 break
15845 fi
15846 done
15847 ;;
15848 esac
15849
15850 exp_sym_flag='-bexport'
15851 no_entry_flag='-bnoentry'
15852 fi
15853
15854 # When large executables or shared objects are built, AIX ld can
15855 # have problems creating the table of contents. If linking a library
15856 # or program results in "error TOC overflow" add -mminimal-toc to
15857 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15858 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15859
15860 archive_cmds=''
15861 hardcode_direct=yes
15862 hardcode_direct_absolute=yes
15863 hardcode_libdir_separator=':'
15864 link_all_deplibs=yes
15865 file_list_spec='${wl}-f,'
15866
15867 if test "$GCC" = yes; then
15868 case $host_os in aix4.[012]|aix4.[012].*)
15869 # We only want to do this on AIX 4.2 and lower, the check
15870 # below for broken collect2 doesn't work under 4.3+
15871 collect2name=`${CC} -print-prog-name=collect2`
15872 if test -f "$collect2name" &&
15873 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15874 then
15875 # We have reworked collect2
15876 :
15877 else
15878 # We have old collect2
15879 hardcode_direct=unsupported
15880 # It fails to find uninstalled libraries when the uninstalled
15881 # path is not listed in the libpath. Setting hardcode_minus_L
15882 # to unsupported forces relinking
15883 hardcode_minus_L=yes
15884 hardcode_libdir_flag_spec='-L$libdir'
15885 hardcode_libdir_separator=
15886 fi
15887 ;;
15888 esac
15889 shared_flag='-shared'
15890 if test "$aix_use_runtimelinking" = yes; then
15891 shared_flag="$shared_flag "'${wl}-G'
15892 fi
15893 else
15894 # not using gcc
15895 if test "$host_cpu" = ia64; then
15896 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15897 # chokes on -Wl,-G. The following line is correct:
15898 shared_flag='-G'
15899 else
15900 if test "$aix_use_runtimelinking" = yes; then
15901 shared_flag='${wl}-G'
15902 else
15903 shared_flag='${wl}-bM:SRE'
15904 fi
15905 fi
15906 fi
15907
15908 export_dynamic_flag_spec='${wl}-bexpall'
15909 # It seems that -bexpall does not export symbols beginning with
15910 # underscore (_), so it is better to generate a list of symbols to export.
15911 always_export_symbols=yes
15912 if test "$aix_use_runtimelinking" = yes; then
15913 # Warning - without using the other runtime loading flags (-brtl),
15914 # -berok will link without error, but may produce a broken library.
15915 allow_undefined_flag='-berok'
15916 # Determine the default libpath from the value encoded in an
15917 # empty executable.
cristyda16f162011-02-19 23:52:17 +000015918 if test "${lt_cv_aix_libpath+set}" = set; then
15919 aix_libpath=$lt_cv_aix_libpath
15920else
15921 if ${lt_cv_aix_libpath_+:} false; then :
15922 $as_echo_n "(cached) " >&6
15923else
15924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015925/* end confdefs.h. */
15926
15927int
15928main ()
15929{
15930
15931 ;
15932 return 0;
15933}
15934_ACEOF
15935if ac_fn_c_try_link "$LINENO"; then :
15936
cristyda16f162011-02-19 23:52:17 +000015937 lt_aix_libpath_sed='
15938 /Import File Strings/,/^$/ {
15939 /^0/ {
15940 s/^0 *\([^ ]*\) *$/\1/
15941 p
15942 }
15943 }'
15944 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15945 # Check for a 64-bit object if we didn't find anything.
15946 if test -z "$lt_cv_aix_libpath_"; then
15947 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15948 fi
cristy73bd4a52010-10-05 11:24:23 +000015949fi
15950rm -f core conftest.err conftest.$ac_objext \
15951 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015952 if test -z "$lt_cv_aix_libpath_"; then
15953 lt_cv_aix_libpath_="/usr/lib:/lib"
15954 fi
15955
15956fi
15957
15958 aix_libpath=$lt_cv_aix_libpath_
15959fi
cristy73bd4a52010-10-05 11:24:23 +000015960
15961 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cristy0c60a692010-11-04 01:09:47 +000015962 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 +000015963 else
15964 if test "$host_cpu" = ia64; then
15965 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15966 allow_undefined_flag="-z nodefs"
15967 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"
15968 else
15969 # Determine the default libpath from the value encoded in an
15970 # empty executable.
cristyda16f162011-02-19 23:52:17 +000015971 if test "${lt_cv_aix_libpath+set}" = set; then
15972 aix_libpath=$lt_cv_aix_libpath
15973else
15974 if ${lt_cv_aix_libpath_+:} false; then :
15975 $as_echo_n "(cached) " >&6
15976else
15977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015978/* end confdefs.h. */
15979
15980int
15981main ()
15982{
15983
15984 ;
15985 return 0;
15986}
15987_ACEOF
15988if ac_fn_c_try_link "$LINENO"; then :
15989
cristyda16f162011-02-19 23:52:17 +000015990 lt_aix_libpath_sed='
15991 /Import File Strings/,/^$/ {
15992 /^0/ {
15993 s/^0 *\([^ ]*\) *$/\1/
15994 p
15995 }
15996 }'
15997 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15998 # Check for a 64-bit object if we didn't find anything.
15999 if test -z "$lt_cv_aix_libpath_"; then
16000 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16001 fi
cristy73bd4a52010-10-05 11:24:23 +000016002fi
16003rm -f core conftest.err conftest.$ac_objext \
16004 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000016005 if test -z "$lt_cv_aix_libpath_"; then
16006 lt_cv_aix_libpath_="/usr/lib:/lib"
16007 fi
16008
16009fi
16010
16011 aix_libpath=$lt_cv_aix_libpath_
16012fi
cristy73bd4a52010-10-05 11:24:23 +000016013
16014 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16015 # Warning - without using the other run time loading flags,
16016 # -berok will link without error, but may produce a broken library.
16017 no_undefined_flag=' ${wl}-bernotok'
16018 allow_undefined_flag=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000016019 if test "$with_gnu_ld" = yes; then
16020 # We only use this code for GNU lds that support --whole-archive.
16021 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16022 else
16023 # Exported symbols can be pulled into shared objects from archives
16024 whole_archive_flag_spec='$convenience'
16025 fi
cristy73bd4a52010-10-05 11:24:23 +000016026 archive_cmds_need_lc=yes
16027 # This is similar to how AIX traditionally builds its shared libraries.
16028 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'
16029 fi
16030 fi
16031 ;;
16032
16033 amigaos*)
16034 case $host_cpu in
16035 powerpc)
16036 # see comment about AmigaOS4 .so support
16037 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16038 archive_expsym_cmds=''
16039 ;;
16040 m68k)
16041 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)'
16042 hardcode_libdir_flag_spec='-L$libdir'
16043 hardcode_minus_L=yes
16044 ;;
16045 esac
16046 ;;
16047
16048 bsdi[45]*)
16049 export_dynamic_flag_spec=-rdynamic
16050 ;;
16051
16052 cygwin* | mingw* | pw32* | cegcc*)
16053 # When not using gcc, we currently assume that we are using
16054 # Microsoft Visual C++.
16055 # hardcode_libdir_flag_spec is actually meaningless, as there is
16056 # no search path for DLLs.
cristyda16f162011-02-19 23:52:17 +000016057 case $cc_basename in
16058 cl*)
16059 # Native MSVC
16060 hardcode_libdir_flag_spec=' '
16061 allow_undefined_flag=unsupported
16062 always_export_symbols=yes
16063 file_list_spec='@'
16064 # Tell ltmain to make .lib files, not .a files.
16065 libext=lib
16066 # Tell ltmain to make .dll files, not .so files.
16067 shrext_cmds=".dll"
16068 # FIXME: Setting linknames here is a bad hack.
16069 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
16070 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16071 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
16072 else
16073 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
16074 fi~
16075 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
16076 linknames='
16077 # The linker will not automatically build a static lib if we build a DLL.
16078 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
16079 enable_shared_with_static_runtimes=yes
cristy99bd5232011-12-07 14:38:20 +000016080 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
cristyda16f162011-02-19 23:52:17 +000016081 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16082 # Don't use ranlib
16083 old_postinstall_cmds='chmod 644 $oldlib'
16084 postlink_cmds='lt_outputfile="@OUTPUT@"~
16085 lt_tool_outputfile="@TOOL_OUTPUT@"~
16086 case $lt_outputfile in
16087 *.exe|*.EXE) ;;
16088 *)
16089 lt_outputfile="$lt_outputfile.exe"
16090 lt_tool_outputfile="$lt_tool_outputfile.exe"
16091 ;;
16092 esac~
16093 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
16094 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
16095 $RM "$lt_outputfile.manifest";
16096 fi'
16097 ;;
16098 *)
16099 # Assume MSVC wrapper
16100 hardcode_libdir_flag_spec=' '
16101 allow_undefined_flag=unsupported
16102 # Tell ltmain to make .lib files, not .a files.
16103 libext=lib
16104 # Tell ltmain to make .dll files, not .so files.
16105 shrext_cmds=".dll"
16106 # FIXME: Setting linknames here is a bad hack.
16107 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16108 # The linker will automatically build a .lib file if we build a DLL.
16109 old_archive_from_new_cmds='true'
16110 # FIXME: Should let the user specify the lib program.
16111 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16112 enable_shared_with_static_runtimes=yes
16113 ;;
16114 esac
cristy73bd4a52010-10-05 11:24:23 +000016115 ;;
16116
16117 darwin* | rhapsody*)
16118
16119
16120 archive_cmds_need_lc=no
16121 hardcode_direct=no
16122 hardcode_automatic=yes
16123 hardcode_shlibpath_var=unsupported
cristy0c60a692010-11-04 01:09:47 +000016124 if test "$lt_cv_ld_force_load" = "yes"; then
16125 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 +000016126
cristy0c60a692010-11-04 01:09:47 +000016127 else
16128 whole_archive_flag_spec=''
16129 fi
cristy73bd4a52010-10-05 11:24:23 +000016130 link_all_deplibs=yes
16131 allow_undefined_flag="$_lt_dar_allow_undefined"
16132 case $cc_basename in
16133 ifort*) _lt_dar_can_shared=yes ;;
16134 *) _lt_dar_can_shared=$GCC ;;
16135 esac
16136 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000016137 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000016138 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16139 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16140 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}"
16141 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}"
16142
16143 else
16144 ld_shlibs=no
16145 fi
16146
16147 ;;
16148
16149 dgux*)
16150 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16151 hardcode_libdir_flag_spec='-L$libdir'
16152 hardcode_shlibpath_var=no
16153 ;;
16154
cristy73bd4a52010-10-05 11:24:23 +000016155 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16156 # support. Future versions do this automatically, but an explicit c++rt0.o
16157 # does not break anything, and helps significantly (at the cost of a little
16158 # extra space).
16159 freebsd2.2*)
16160 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16161 hardcode_libdir_flag_spec='-R$libdir'
16162 hardcode_direct=yes
16163 hardcode_shlibpath_var=no
16164 ;;
16165
16166 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
cristy99bd5232011-12-07 14:38:20 +000016167 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000016168 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16169 hardcode_direct=yes
16170 hardcode_minus_L=yes
16171 hardcode_shlibpath_var=no
16172 ;;
16173
16174 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16175 freebsd* | dragonfly*)
cristyda16f162011-02-19 23:52:17 +000016176 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000016177 hardcode_libdir_flag_spec='-R$libdir'
16178 hardcode_direct=yes
16179 hardcode_shlibpath_var=no
16180 ;;
16181
16182 hpux9*)
16183 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000016184 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 +000016185 else
16186 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'
16187 fi
16188 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16189 hardcode_libdir_separator=:
16190 hardcode_direct=yes
16191
16192 # hardcode_minus_L: Not really in the search PATH,
16193 # but as the default location of the library.
16194 hardcode_minus_L=yes
16195 export_dynamic_flag_spec='${wl}-E'
16196 ;;
16197
16198 hpux10*)
cristy0c60a692010-11-04 01:09:47 +000016199 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000016200 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 +000016201 else
16202 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16203 fi
16204 if test "$with_gnu_ld" = no; then
16205 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
cristy73bd4a52010-10-05 11:24:23 +000016206 hardcode_libdir_separator=:
16207 hardcode_direct=yes
16208 hardcode_direct_absolute=yes
16209 export_dynamic_flag_spec='${wl}-E'
16210 # hardcode_minus_L: Not really in the search PATH,
16211 # but as the default location of the library.
16212 hardcode_minus_L=yes
16213 fi
16214 ;;
16215
16216 hpux11*)
cristy0c60a692010-11-04 01:09:47 +000016217 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristy73bd4a52010-10-05 11:24:23 +000016218 case $host_cpu in
16219 hppa*64*)
16220 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16221 ;;
16222 ia64*)
cristyda16f162011-02-19 23:52:17 +000016223 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000016224 ;;
16225 *)
cristyda16f162011-02-19 23:52:17 +000016226 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 +000016227 ;;
16228 esac
16229 else
16230 case $host_cpu in
16231 hppa*64*)
16232 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16233 ;;
16234 ia64*)
16235 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16236 ;;
16237 *)
cristy0c60a692010-11-04 01:09:47 +000016238
16239 # Older versions of the 11.00 compiler do not understand -b yet
16240 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16242$as_echo_n "checking if $CC understands -b... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016243if ${lt_cv_prog_compiler__b+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000016244 $as_echo_n "(cached) " >&6
16245else
16246 lt_cv_prog_compiler__b=no
16247 save_LDFLAGS="$LDFLAGS"
16248 LDFLAGS="$LDFLAGS -b"
16249 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16250 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16251 # The linker can only warn and ignore the option if not recognized
16252 # So say no if there are warnings
16253 if test -s conftest.err; then
16254 # Append any errors to the config.log.
16255 cat conftest.err 1>&5
16256 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16257 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16258 if diff conftest.exp conftest.er2 >/dev/null; then
16259 lt_cv_prog_compiler__b=yes
16260 fi
16261 else
16262 lt_cv_prog_compiler__b=yes
16263 fi
16264 fi
16265 $RM -r conftest*
16266 LDFLAGS="$save_LDFLAGS"
16267
16268fi
16269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16270$as_echo "$lt_cv_prog_compiler__b" >&6; }
16271
16272if test x"$lt_cv_prog_compiler__b" = xyes; then
16273 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16274else
16275 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16276fi
16277
cristy73bd4a52010-10-05 11:24:23 +000016278 ;;
16279 esac
16280 fi
16281 if test "$with_gnu_ld" = no; then
16282 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16283 hardcode_libdir_separator=:
16284
16285 case $host_cpu in
16286 hppa*64*|ia64*)
16287 hardcode_direct=no
16288 hardcode_shlibpath_var=no
16289 ;;
16290 *)
16291 hardcode_direct=yes
16292 hardcode_direct_absolute=yes
16293 export_dynamic_flag_spec='${wl}-E'
16294
16295 # hardcode_minus_L: Not really in the search PATH,
16296 # but as the default location of the library.
16297 hardcode_minus_L=yes
16298 ;;
16299 esac
16300 fi
16301 ;;
16302
16303 irix5* | irix6* | nonstopux*)
16304 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000016305 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 +000016306 # Try to use the -exported_symbol ld option, if it does not
16307 # work, assume that -exports_file does not work either and
16308 # implicitly export all symbols.
cristyda16f162011-02-19 23:52:17 +000016309 # This should be the same for all languages, so no per-tag cache variable.
16310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
16311$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
16312if ${lt_cv_irix_exported_symbol+:} false; then :
16313 $as_echo_n "(cached) " >&6
16314else
16315 save_LDFLAGS="$LDFLAGS"
16316 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000016318/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000016319int foo (void) { return 0; }
cristy73bd4a52010-10-05 11:24:23 +000016320_ACEOF
16321if ac_fn_c_try_link "$LINENO"; then :
cristyda16f162011-02-19 23:52:17 +000016322 lt_cv_irix_exported_symbol=yes
16323else
16324 lt_cv_irix_exported_symbol=no
cristy73bd4a52010-10-05 11:24:23 +000016325fi
16326rm -f core conftest.err conftest.$ac_objext \
16327 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000016328 LDFLAGS="$save_LDFLAGS"
16329fi
16330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
16331$as_echo "$lt_cv_irix_exported_symbol" >&6; }
16332 if test "$lt_cv_irix_exported_symbol" = yes; then
16333 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'
16334 fi
cristy73bd4a52010-10-05 11:24:23 +000016335 else
cristy0c60a692010-11-04 01:09:47 +000016336 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'
16337 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 +000016338 fi
16339 archive_cmds_need_lc='no'
16340 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16341 hardcode_libdir_separator=:
16342 inherit_rpath=yes
16343 link_all_deplibs=yes
16344 ;;
16345
16346 netbsd*)
16347 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16348 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16349 else
16350 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16351 fi
16352 hardcode_libdir_flag_spec='-R$libdir'
16353 hardcode_direct=yes
16354 hardcode_shlibpath_var=no
16355 ;;
16356
16357 newsos6)
16358 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16359 hardcode_direct=yes
16360 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16361 hardcode_libdir_separator=:
16362 hardcode_shlibpath_var=no
16363 ;;
16364
16365 *nto* | *qnx*)
16366 ;;
16367
16368 openbsd*)
16369 if test -f /usr/libexec/ld.so; then
16370 hardcode_direct=yes
16371 hardcode_shlibpath_var=no
16372 hardcode_direct_absolute=yes
16373 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16374 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16375 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16376 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16377 export_dynamic_flag_spec='${wl}-E'
16378 else
16379 case $host_os in
16380 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16381 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16382 hardcode_libdir_flag_spec='-R$libdir'
16383 ;;
16384 *)
16385 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16386 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16387 ;;
16388 esac
16389 fi
16390 else
16391 ld_shlibs=no
16392 fi
16393 ;;
16394
16395 os2*)
16396 hardcode_libdir_flag_spec='-L$libdir'
16397 hardcode_minus_L=yes
16398 allow_undefined_flag=unsupported
cristy0c60a692010-11-04 01:09:47 +000016399 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 +000016400 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16401 ;;
16402
16403 osf3*)
16404 if test "$GCC" = yes; then
16405 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000016406 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 +000016407 else
16408 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000016409 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 +000016410 fi
16411 archive_cmds_need_lc='no'
16412 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16413 hardcode_libdir_separator=:
16414 ;;
16415
16416 osf4* | osf5*) # as osf3* with the addition of -msym flag
16417 if test "$GCC" = yes; then
16418 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristyda16f162011-02-19 23:52:17 +000016419 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 +000016420 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16421 else
16422 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000016423 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 +000016424 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 +000016425 $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 +000016426
16427 # Both c and cxx compiler support -rpath directly
16428 hardcode_libdir_flag_spec='-rpath $libdir'
16429 fi
16430 archive_cmds_need_lc='no'
16431 hardcode_libdir_separator=:
16432 ;;
16433
16434 solaris*)
16435 no_undefined_flag=' -z defs'
16436 if test "$GCC" = yes; then
16437 wlarc='${wl}'
cristyda16f162011-02-19 23:52:17 +000016438 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 +000016439 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 +000016440 $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 +000016441 else
16442 case `$CC -V 2>&1` in
16443 *"Compilers 5.0"*)
16444 wlarc=''
16445 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16446 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16447 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16448 ;;
16449 *)
16450 wlarc='${wl}'
16451 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16452 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16453 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16454 ;;
16455 esac
16456 fi
16457 hardcode_libdir_flag_spec='-R$libdir'
16458 hardcode_shlibpath_var=no
16459 case $host_os in
16460 solaris2.[0-5] | solaris2.[0-5].*) ;;
16461 *)
16462 # The compiler driver will combine and reorder linker options,
16463 # but understands `-z linker_flag'. GCC discards it without `$wl',
16464 # but is careful enough not to reorder.
16465 # Supported since Solaris 2.6 (maybe 2.5.1?)
16466 if test "$GCC" = yes; then
16467 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16468 else
16469 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16470 fi
16471 ;;
16472 esac
16473 link_all_deplibs=yes
16474 ;;
16475
16476 sunos4*)
16477 if test "x$host_vendor" = xsequent; then
16478 # Use $CC to link under sequent, because it throws in some extra .o
16479 # files that make .init and .fini sections work.
16480 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16481 else
16482 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16483 fi
16484 hardcode_libdir_flag_spec='-L$libdir'
16485 hardcode_direct=yes
16486 hardcode_minus_L=yes
16487 hardcode_shlibpath_var=no
16488 ;;
16489
16490 sysv4)
16491 case $host_vendor in
16492 sni)
16493 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16494 hardcode_direct=yes # is this really true???
16495 ;;
16496 siemens)
16497 ## LD is ld it makes a PLAMLIB
16498 ## CC just makes a GrossModule.
16499 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16500 reload_cmds='$CC -r -o $output$reload_objs'
16501 hardcode_direct=no
16502 ;;
16503 motorola)
16504 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16505 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16506 ;;
16507 esac
16508 runpath_var='LD_RUN_PATH'
16509 hardcode_shlibpath_var=no
16510 ;;
16511
16512 sysv4.3*)
16513 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16514 hardcode_shlibpath_var=no
16515 export_dynamic_flag_spec='-Bexport'
16516 ;;
16517
16518 sysv4*MP*)
16519 if test -d /usr/nec; then
16520 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16521 hardcode_shlibpath_var=no
16522 runpath_var=LD_RUN_PATH
16523 hardcode_runpath_var=yes
16524 ld_shlibs=yes
16525 fi
16526 ;;
16527
16528 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16529 no_undefined_flag='${wl}-z,text'
16530 archive_cmds_need_lc=no
16531 hardcode_shlibpath_var=no
16532 runpath_var='LD_RUN_PATH'
16533
16534 if test "$GCC" = yes; then
16535 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16536 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16537 else
16538 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16539 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16540 fi
16541 ;;
16542
16543 sysv5* | sco3.2v5* | sco5v6*)
16544 # Note: We can NOT use -z defs as we might desire, because we do not
16545 # link with -lc, and that would cause any symbols used from libc to
16546 # always be unresolved, which means just about no library would
16547 # ever link correctly. If we're not using GNU ld we use -z text
16548 # though, which does catch some bad symbols but isn't as heavy-handed
16549 # as -z defs.
16550 no_undefined_flag='${wl}-z,text'
16551 allow_undefined_flag='${wl}-z,nodefs'
16552 archive_cmds_need_lc=no
16553 hardcode_shlibpath_var=no
16554 hardcode_libdir_flag_spec='${wl}-R,$libdir'
16555 hardcode_libdir_separator=':'
16556 link_all_deplibs=yes
16557 export_dynamic_flag_spec='${wl}-Bexport'
16558 runpath_var='LD_RUN_PATH'
16559
16560 if test "$GCC" = yes; then
16561 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16562 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16563 else
16564 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16565 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16566 fi
16567 ;;
16568
16569 uts4*)
16570 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16571 hardcode_libdir_flag_spec='-L$libdir'
16572 hardcode_shlibpath_var=no
16573 ;;
16574
16575 *)
16576 ld_shlibs=no
16577 ;;
16578 esac
16579
16580 if test x$host_vendor = xsni; then
16581 case $host in
16582 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16583 export_dynamic_flag_spec='${wl}-Blargedynsym'
16584 ;;
16585 esac
16586 fi
16587 fi
16588
16589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16590$as_echo "$ld_shlibs" >&6; }
16591test "$ld_shlibs" = no && can_build_shared=no
16592
16593with_gnu_ld=$with_gnu_ld
16594
16595
16596
16597
16598
16599
16600
16601
16602
16603
16604
16605
16606
16607
16608
16609#
16610# Do we need to explicitly link libc?
16611#
16612case "x$archive_cmds_need_lc" in
16613x|xyes)
16614 # Assume -lc should be added
16615 archive_cmds_need_lc=yes
16616
16617 if test "$enable_shared" = yes && test "$GCC" = yes; then
16618 case $archive_cmds in
16619 *'~'*)
16620 # FIXME: we may have to deal with multi-command sequences.
16621 ;;
16622 '$CC '*)
16623 # Test whether the compiler implicitly links with -lc since on some
16624 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16625 # to ld, don't add -lc before -lgcc.
16626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16627$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016628if ${lt_cv_archive_cmds_need_lc+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000016629 $as_echo_n "(cached) " >&6
16630else
16631 $RM conftest*
16632 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000016633
cristy0c60a692010-11-04 01:09:47 +000016634 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000016635 (eval $ac_compile) 2>&5
16636 ac_status=$?
16637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16638 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000016639 soname=conftest
16640 lib=conftest
16641 libobjs=conftest.$ac_objext
16642 deplibs=
16643 wl=$lt_prog_compiler_wl
16644 pic_flag=$lt_prog_compiler_pic
16645 compiler_flags=-v
16646 linker_flags=-v
16647 verstring=
16648 output_objdir=.
16649 libname=conftest
16650 lt_save_allow_undefined_flag=$allow_undefined_flag
16651 allow_undefined_flag=
16652 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 +000016653 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16654 ac_status=$?
16655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16656 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000016657 then
16658 lt_cv_archive_cmds_need_lc=no
16659 else
16660 lt_cv_archive_cmds_need_lc=yes
16661 fi
16662 allow_undefined_flag=$lt_save_allow_undefined_flag
16663 else
16664 cat conftest.err 1>&5
16665 fi
16666 $RM conftest*
16667
16668fi
16669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16670$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16671 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
cristy73bd4a52010-10-05 11:24:23 +000016672 ;;
16673 esac
16674 fi
16675 ;;
16676esac
16677
16678
16679
16680
16681
16682
16683
16684
16685
16686
16687
16688
16689
16690
16691
16692
16693
16694
16695
16696
16697
16698
16699
16700
16701
16702
16703
16704
16705
16706
16707
16708
16709
16710
16711
16712
16713
16714
16715
16716
16717
16718
16719
16720
16721
16722
16723
16724
16725
16726
16727
16728
16729
16730
16731
16732
16733
16734
16735
16736
16737
16738
16739
16740
16741
16742
16743
16744
16745
16746
16747
16748
16749
16750
16751
16752
16753
16754
16755
16756
16757
16758
16759
16760
16761
16762
16763
16764
16765
16766
16767
16768
16769
16770
16771
16772
16773
16774
16775
16776
16777
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
cristy73bd4a52010-10-05 11:24:23 +000016829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16830$as_echo_n "checking dynamic linker characteristics... " >&6; }
16831
16832if test "$GCC" = yes; then
16833 case $host_os in
16834 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16835 *) lt_awk_arg="/^libraries:/" ;;
16836 esac
cristy0c60a692010-11-04 01:09:47 +000016837 case $host_os in
16838 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16839 *) lt_sed_strip_eq="s,=/,/,g" ;;
16840 esac
16841 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16842 case $lt_search_path_spec in
16843 *\;*)
cristy73bd4a52010-10-05 11:24:23 +000016844 # if the path contains ";" then we assume it to be the separator
16845 # otherwise default to the standard path separator (i.e. ":") - it is
16846 # assumed that no part of a normal pathname contains ";" but that should
16847 # okay in the real world where ";" in dirpaths is itself problematic.
cristy0c60a692010-11-04 01:09:47 +000016848 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16849 ;;
16850 *)
16851 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16852 ;;
16853 esac
cristy73bd4a52010-10-05 11:24:23 +000016854 # Ok, now we have the path, separated by spaces, we can step through it
16855 # and add multilib dir if necessary.
16856 lt_tmp_lt_search_path_spec=
16857 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16858 for lt_sys_path in $lt_search_path_spec; do
16859 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16860 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16861 else
16862 test -d "$lt_sys_path" && \
16863 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16864 fi
16865 done
cristy0c60a692010-11-04 01:09:47 +000016866 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
cristy73bd4a52010-10-05 11:24:23 +000016867BEGIN {RS=" "; FS="/|\n";} {
16868 lt_foo="";
16869 lt_count=0;
16870 for (lt_i = NF; lt_i > 0; lt_i--) {
16871 if ($lt_i != "" && $lt_i != ".") {
16872 if ($lt_i == "..") {
16873 lt_count++;
16874 } else {
16875 if (lt_count == 0) {
16876 lt_foo="/" $lt_i lt_foo;
16877 } else {
16878 lt_count--;
16879 }
16880 }
16881 }
16882 }
16883 if (lt_foo != "") { lt_freq[lt_foo]++; }
16884 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16885}'`
cristy0c60a692010-11-04 01:09:47 +000016886 # AWK program above erroneously prepends '/' to C:/dos/paths
16887 # for these hosts.
16888 case $host_os in
16889 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16890 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16891 esac
16892 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
cristy73bd4a52010-10-05 11:24:23 +000016893else
16894 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16895fi
16896library_names_spec=
16897libname_spec='lib$name'
16898soname_spec=
16899shrext_cmds=".so"
16900postinstall_cmds=
16901postuninstall_cmds=
16902finish_cmds=
16903finish_eval=
16904shlibpath_var=
16905shlibpath_overrides_runpath=unknown
16906version_type=none
16907dynamic_linker="$host_os ld.so"
16908sys_lib_dlsearch_path_spec="/lib /usr/lib"
16909need_lib_prefix=unknown
16910hardcode_into_libs=no
16911
16912# when you set need_version to no, make sure it does not cause -set_version
16913# flags to be left without arguments
16914need_version=unknown
16915
16916case $host_os in
16917aix3*)
cristy99bd5232011-12-07 14:38:20 +000016918 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016919 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16920 shlibpath_var=LIBPATH
16921
16922 # AIX 3 has no versioning support, so we append a major version to the name.
16923 soname_spec='${libname}${release}${shared_ext}$major'
16924 ;;
16925
16926aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000016927 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016928 need_lib_prefix=no
16929 need_version=no
16930 hardcode_into_libs=yes
16931 if test "$host_cpu" = ia64; then
16932 # AIX 5 supports IA64
16933 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16934 shlibpath_var=LD_LIBRARY_PATH
16935 else
16936 # With GCC up to 2.95.x, collect2 would create an import file
16937 # for dependence libraries. The import file would start with
16938 # the line `#! .'. This would cause the generated library to
16939 # depend on `.', always an invalid library. This was fixed in
16940 # development snapshots of GCC prior to 3.0.
16941 case $host_os in
16942 aix4 | aix4.[01] | aix4.[01].*)
16943 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16944 echo ' yes '
16945 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16946 :
16947 else
16948 can_build_shared=no
16949 fi
16950 ;;
16951 esac
16952 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16953 # soname into executable. Probably we can add versioning support to
16954 # collect2, so additional links can be useful in future.
16955 if test "$aix_use_runtimelinking" = yes; then
16956 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16957 # instead of lib<name>.a to let people know that these are not
16958 # typical AIX shared libraries.
16959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16960 else
16961 # We preserve .a as extension for shared libraries through AIX4.2
16962 # and later when we are not doing run time linking.
16963 library_names_spec='${libname}${release}.a $libname.a'
16964 soname_spec='${libname}${release}${shared_ext}$major'
16965 fi
16966 shlibpath_var=LIBPATH
16967 fi
16968 ;;
16969
16970amigaos*)
16971 case $host_cpu in
16972 powerpc)
16973 # Since July 2007 AmigaOS4 officially supports .so libraries.
16974 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16976 ;;
16977 m68k)
16978 library_names_spec='$libname.ixlibrary $libname.a'
16979 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000016980 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 +000016981 ;;
16982 esac
16983 ;;
16984
16985beos*)
16986 library_names_spec='${libname}${shared_ext}'
16987 dynamic_linker="$host_os ld.so"
16988 shlibpath_var=LIBRARY_PATH
16989 ;;
16990
16991bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000016992 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016993 need_version=no
16994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16995 soname_spec='${libname}${release}${shared_ext}$major'
16996 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16997 shlibpath_var=LD_LIBRARY_PATH
16998 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16999 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17000 # the default ld.so.conf also contains /usr/contrib/lib and
17001 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17002 # libtool to hard-code these into programs
17003 ;;
17004
17005cygwin* | mingw* | pw32* | cegcc*)
17006 version_type=windows
17007 shrext_cmds=".dll"
17008 need_version=no
17009 need_lib_prefix=no
17010
cristyda16f162011-02-19 23:52:17 +000017011 case $GCC,$cc_basename in
17012 yes,*)
17013 # gcc
cristy73bd4a52010-10-05 11:24:23 +000017014 library_names_spec='$libname.dll.a'
17015 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17016 postinstall_cmds='base_file=`basename \${file}`~
17017 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17018 dldir=$destdir/`dirname \$dlpath`~
17019 test -d \$dldir || mkdir -p \$dldir~
17020 $install_prog $dir/$dlname \$dldir/$dlname~
17021 chmod a+x \$dldir/$dlname~
17022 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17023 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17024 fi'
17025 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17026 dlpath=$dir/\$dldll~
17027 $RM \$dlpath'
17028 shlibpath_overrides_runpath=yes
17029
17030 case $host_os in
17031 cygwin*)
17032 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17033 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000017034
17035 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
cristy73bd4a52010-10-05 11:24:23 +000017036 ;;
17037 mingw* | cegcc*)
17038 # MinGW DLLs use traditional 'lib' prefix
17039 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000017040 ;;
17041 pw32*)
17042 # pw32 DLLs use 'pw' prefix rather than 'lib'
17043 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17044 ;;
17045 esac
cristyda16f162011-02-19 23:52:17 +000017046 dynamic_linker='Win32 ld.exe'
17047 ;;
17048
17049 *,cl*)
17050 # Native MSVC
17051 libname_spec='$name'
17052 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17053 library_names_spec='${libname}.dll.lib'
17054
17055 case $build_os in
17056 mingw*)
17057 sys_lib_search_path_spec=
17058 lt_save_ifs=$IFS
17059 IFS=';'
17060 for lt_path in $LIB
17061 do
17062 IFS=$lt_save_ifs
17063 # Let DOS variable expansion print the short 8.3 style file name.
17064 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17065 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17066 done
17067 IFS=$lt_save_ifs
17068 # Convert to MSYS style.
17069 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17070 ;;
17071 cygwin*)
17072 # Convert to unix form, then to dos form, then back to unix form
17073 # but this time dos style (no spaces!) so that the unix form looks
17074 # like /cygdrive/c/PROGRA~1:/cygdr...
17075 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17076 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17077 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17078 ;;
17079 *)
17080 sys_lib_search_path_spec="$LIB"
17081 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17082 # It is most probably a Windows format PATH.
17083 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17084 else
17085 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17086 fi
17087 # FIXME: find the short name or the path components, as spaces are
17088 # common. (e.g. "Program Files" -> "PROGRA~1")
17089 ;;
17090 esac
17091
17092 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17093 postinstall_cmds='base_file=`basename \${file}`~
17094 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17095 dldir=$destdir/`dirname \$dlpath`~
17096 test -d \$dldir || mkdir -p \$dldir~
17097 $install_prog $dir/$dlname \$dldir/$dlname'
17098 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17099 dlpath=$dir/\$dldll~
17100 $RM \$dlpath'
17101 shlibpath_overrides_runpath=yes
17102 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000017103 ;;
17104
17105 *)
cristyda16f162011-02-19 23:52:17 +000017106 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000017107 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000017108 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000017109 ;;
17110 esac
cristy73bd4a52010-10-05 11:24:23 +000017111 # FIXME: first we should search . and the directory the executable is in
17112 shlibpath_var=PATH
17113 ;;
17114
17115darwin* | rhapsody*)
17116 dynamic_linker="$host_os dyld"
17117 version_type=darwin
17118 need_lib_prefix=no
17119 need_version=no
17120 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17121 soname_spec='${libname}${release}${major}$shared_ext'
17122 shlibpath_overrides_runpath=yes
17123 shlibpath_var=DYLD_LIBRARY_PATH
17124 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17125
17126 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17127 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17128 ;;
17129
17130dgux*)
cristy99bd5232011-12-07 14:38:20 +000017131 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017132 need_lib_prefix=no
17133 need_version=no
17134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17135 soname_spec='${libname}${release}${shared_ext}$major'
17136 shlibpath_var=LD_LIBRARY_PATH
17137 ;;
17138
cristy73bd4a52010-10-05 11:24:23 +000017139freebsd* | dragonfly*)
17140 # DragonFly does not have aout. When/if they implement a new
17141 # versioning mechanism, adjust this.
17142 if test -x /usr/bin/objformat; then
17143 objformat=`/usr/bin/objformat`
17144 else
17145 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000017146 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000017147 *) objformat=elf ;;
17148 esac
17149 fi
17150 version_type=freebsd-$objformat
17151 case $version_type in
17152 freebsd-elf*)
17153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17154 need_version=no
17155 need_lib_prefix=no
17156 ;;
17157 freebsd-*)
17158 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17159 need_version=yes
17160 ;;
17161 esac
17162 shlibpath_var=LD_LIBRARY_PATH
17163 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000017164 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000017165 shlibpath_overrides_runpath=yes
17166 ;;
17167 freebsd3.[01]* | freebsdelf3.[01]*)
17168 shlibpath_overrides_runpath=yes
17169 hardcode_into_libs=yes
17170 ;;
17171 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17172 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17173 shlibpath_overrides_runpath=no
17174 hardcode_into_libs=yes
17175 ;;
17176 *) # from 4.6 on, and DragonFly
17177 shlibpath_overrides_runpath=yes
17178 hardcode_into_libs=yes
17179 ;;
17180 esac
17181 ;;
17182
17183gnu*)
cristy99bd5232011-12-07 14:38:20 +000017184 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017185 need_lib_prefix=no
17186 need_version=no
17187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17188 soname_spec='${libname}${release}${shared_ext}$major'
17189 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000017190 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000017191 hardcode_into_libs=yes
17192 ;;
17193
cristy0c60a692010-11-04 01:09:47 +000017194haiku*)
cristy99bd5232011-12-07 14:38:20 +000017195 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000017196 need_lib_prefix=no
17197 need_version=no
17198 dynamic_linker="$host_os runtime_loader"
17199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17200 soname_spec='${libname}${release}${shared_ext}$major'
17201 shlibpath_var=LIBRARY_PATH
17202 shlibpath_overrides_runpath=yes
17203 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
17204 hardcode_into_libs=yes
17205 ;;
17206
cristy73bd4a52010-10-05 11:24:23 +000017207hpux9* | hpux10* | hpux11*)
17208 # Give a soname corresponding to the major version so that dld.sl refuses to
17209 # link against other versions.
17210 version_type=sunos
17211 need_lib_prefix=no
17212 need_version=no
17213 case $host_cpu in
17214 ia64*)
17215 shrext_cmds='.so'
17216 hardcode_into_libs=yes
17217 dynamic_linker="$host_os dld.so"
17218 shlibpath_var=LD_LIBRARY_PATH
17219 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17221 soname_spec='${libname}${release}${shared_ext}$major'
17222 if test "X$HPUX_IA64_MODE" = X32; then
17223 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17224 else
17225 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17226 fi
17227 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17228 ;;
17229 hppa*64*)
17230 shrext_cmds='.sl'
17231 hardcode_into_libs=yes
17232 dynamic_linker="$host_os dld.sl"
17233 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17234 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17236 soname_spec='${libname}${release}${shared_ext}$major'
17237 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17238 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17239 ;;
17240 *)
17241 shrext_cmds='.sl'
17242 dynamic_linker="$host_os dld.sl"
17243 shlibpath_var=SHLIB_PATH
17244 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17246 soname_spec='${libname}${release}${shared_ext}$major'
17247 ;;
17248 esac
cristy0c60a692010-11-04 01:09:47 +000017249 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000017250 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000017251 # or fails outright, so override atomically:
17252 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000017253 ;;
17254
17255interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000017256 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017257 need_lib_prefix=no
17258 need_version=no
17259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17260 soname_spec='${libname}${release}${shared_ext}$major'
17261 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17262 shlibpath_var=LD_LIBRARY_PATH
17263 shlibpath_overrides_runpath=no
17264 hardcode_into_libs=yes
17265 ;;
17266
17267irix5* | irix6* | nonstopux*)
17268 case $host_os in
17269 nonstopux*) version_type=nonstopux ;;
17270 *)
17271 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000017272 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017273 else
17274 version_type=irix
17275 fi ;;
17276 esac
17277 need_lib_prefix=no
17278 need_version=no
17279 soname_spec='${libname}${release}${shared_ext}$major'
17280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17281 case $host_os in
17282 irix5* | nonstopux*)
17283 libsuff= shlibsuff=
17284 ;;
17285 *)
17286 case $LD in # libtool.m4 will add one of these switches to LD
17287 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17288 libsuff= shlibsuff= libmagic=32-bit;;
17289 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17290 libsuff=32 shlibsuff=N32 libmagic=N32;;
17291 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17292 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17293 *) libsuff= shlibsuff= libmagic=never-match;;
17294 esac
17295 ;;
17296 esac
17297 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17298 shlibpath_overrides_runpath=no
17299 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17300 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17301 hardcode_into_libs=yes
17302 ;;
17303
17304# No shared lib support for Linux oldld, aout, or coff.
17305linux*oldld* | linux*aout* | linux*coff*)
17306 dynamic_linker=no
17307 ;;
17308
cristy99bd5232011-12-07 14:38:20 +000017309# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000017310linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000017311 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017312 need_lib_prefix=no
17313 need_version=no
17314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17315 soname_spec='${libname}${release}${shared_ext}$major'
17316 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17317 shlibpath_var=LD_LIBRARY_PATH
17318 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000017319
cristy73bd4a52010-10-05 11:24:23 +000017320 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000017321 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000017322 $as_echo_n "(cached) " >&6
17323else
17324 lt_cv_shlibpath_overrides_runpath=no
17325 save_LDFLAGS=$LDFLAGS
17326 save_libdir=$libdir
17327 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17328 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000017330/* end confdefs.h. */
17331
17332int
17333main ()
17334{
17335
17336 ;
17337 return 0;
17338}
17339_ACEOF
17340if ac_fn_c_try_link "$LINENO"; then :
17341 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000017342 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000017343fi
17344fi
17345rm -f core conftest.err conftest.$ac_objext \
17346 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017347 LDFLAGS=$save_LDFLAGS
17348 libdir=$save_libdir
17349
17350fi
17351
17352 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000017353
17354 # This implies no fast_install, which is unacceptable.
17355 # Some rework will be needed to allow for fast_install
17356 # before this can be enabled.
17357 hardcode_into_libs=yes
17358
17359 # Add ABI-specific directories to the system library path.
17360 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
17361
17362 # Append ld.so.conf contents to the search path
17363 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000017364 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 +000017365 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000017366
cristy73bd4a52010-10-05 11:24:23 +000017367 fi
17368
17369 # We used to test for /lib/ld.so.1 and disable shared libraries on
17370 # powerpc, because MkLinux only supported shared libraries with the
17371 # GNU dynamic linker. Since this was broken with cross compilers,
17372 # most powerpc-linux boxes support dynamic linking these days and
17373 # people can always --disable-shared, the test was removed, and we
17374 # assume the GNU/Linux dynamic linker is in use.
17375 dynamic_linker='GNU/Linux ld.so'
17376 ;;
17377
17378netbsd*)
17379 version_type=sunos
17380 need_lib_prefix=no
17381 need_version=no
17382 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17384 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17385 dynamic_linker='NetBSD (a.out) ld.so'
17386 else
17387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17388 soname_spec='${libname}${release}${shared_ext}$major'
17389 dynamic_linker='NetBSD ld.elf_so'
17390 fi
17391 shlibpath_var=LD_LIBRARY_PATH
17392 shlibpath_overrides_runpath=yes
17393 hardcode_into_libs=yes
17394 ;;
17395
17396newsos6)
cristy99bd5232011-12-07 14:38:20 +000017397 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17399 shlibpath_var=LD_LIBRARY_PATH
17400 shlibpath_overrides_runpath=yes
17401 ;;
17402
17403*nto* | *qnx*)
17404 version_type=qnx
17405 need_lib_prefix=no
17406 need_version=no
17407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17408 soname_spec='${libname}${release}${shared_ext}$major'
17409 shlibpath_var=LD_LIBRARY_PATH
17410 shlibpath_overrides_runpath=no
17411 hardcode_into_libs=yes
17412 dynamic_linker='ldqnx.so'
17413 ;;
17414
17415openbsd*)
17416 version_type=sunos
17417 sys_lib_dlsearch_path_spec="/usr/lib"
17418 need_lib_prefix=no
17419 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17420 case $host_os in
17421 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17422 *) need_version=no ;;
17423 esac
17424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17425 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17426 shlibpath_var=LD_LIBRARY_PATH
17427 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17428 case $host_os in
17429 openbsd2.[89] | openbsd2.[89].*)
17430 shlibpath_overrides_runpath=no
17431 ;;
17432 *)
17433 shlibpath_overrides_runpath=yes
17434 ;;
17435 esac
17436 else
17437 shlibpath_overrides_runpath=yes
17438 fi
17439 ;;
17440
17441os2*)
17442 libname_spec='$name'
17443 shrext_cmds=".dll"
17444 need_lib_prefix=no
17445 library_names_spec='$libname${shared_ext} $libname.a'
17446 dynamic_linker='OS/2 ld.exe'
17447 shlibpath_var=LIBPATH
17448 ;;
17449
17450osf3* | osf4* | osf5*)
17451 version_type=osf
17452 need_lib_prefix=no
17453 need_version=no
17454 soname_spec='${libname}${release}${shared_ext}$major'
17455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17456 shlibpath_var=LD_LIBRARY_PATH
17457 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17458 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17459 ;;
17460
17461rdos*)
17462 dynamic_linker=no
17463 ;;
17464
17465solaris*)
cristy99bd5232011-12-07 14:38:20 +000017466 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017467 need_lib_prefix=no
17468 need_version=no
17469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17470 soname_spec='${libname}${release}${shared_ext}$major'
17471 shlibpath_var=LD_LIBRARY_PATH
17472 shlibpath_overrides_runpath=yes
17473 hardcode_into_libs=yes
17474 # ldd complains unless libraries are executable
17475 postinstall_cmds='chmod +x $lib'
17476 ;;
17477
17478sunos4*)
17479 version_type=sunos
17480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17481 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17482 shlibpath_var=LD_LIBRARY_PATH
17483 shlibpath_overrides_runpath=yes
17484 if test "$with_gnu_ld" = yes; then
17485 need_lib_prefix=no
17486 fi
17487 need_version=yes
17488 ;;
17489
17490sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000017491 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17493 soname_spec='${libname}${release}${shared_ext}$major'
17494 shlibpath_var=LD_LIBRARY_PATH
17495 case $host_vendor in
17496 sni)
17497 shlibpath_overrides_runpath=no
17498 need_lib_prefix=no
17499 runpath_var=LD_RUN_PATH
17500 ;;
17501 siemens)
17502 need_lib_prefix=no
17503 ;;
17504 motorola)
17505 need_lib_prefix=no
17506 need_version=no
17507 shlibpath_overrides_runpath=no
17508 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17509 ;;
17510 esac
17511 ;;
17512
17513sysv4*MP*)
17514 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000017515 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017516 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17517 soname_spec='$libname${shared_ext}.$major'
17518 shlibpath_var=LD_LIBRARY_PATH
17519 fi
17520 ;;
17521
17522sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17523 version_type=freebsd-elf
17524 need_lib_prefix=no
17525 need_version=no
17526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17527 soname_spec='${libname}${release}${shared_ext}$major'
17528 shlibpath_var=LD_LIBRARY_PATH
17529 shlibpath_overrides_runpath=yes
17530 hardcode_into_libs=yes
17531 if test "$with_gnu_ld" = yes; then
17532 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17533 else
17534 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17535 case $host_os in
17536 sco3.2v5*)
17537 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17538 ;;
17539 esac
17540 fi
17541 sys_lib_dlsearch_path_spec='/usr/lib'
17542 ;;
17543
17544tpf*)
17545 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000017546 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017547 need_lib_prefix=no
17548 need_version=no
17549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17550 shlibpath_var=LD_LIBRARY_PATH
17551 shlibpath_overrides_runpath=no
17552 hardcode_into_libs=yes
17553 ;;
17554
17555uts4*)
cristy99bd5232011-12-07 14:38:20 +000017556 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17558 soname_spec='${libname}${release}${shared_ext}$major'
17559 shlibpath_var=LD_LIBRARY_PATH
17560 ;;
17561
17562*)
17563 dynamic_linker=no
17564 ;;
17565esac
17566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17567$as_echo "$dynamic_linker" >&6; }
17568test "$dynamic_linker" = no && can_build_shared=no
17569
17570variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17571if test "$GCC" = yes; then
17572 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17573fi
17574
17575if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17576 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17577fi
17578if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17579 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17580fi
17581
17582
17583
17584
17585
17586
17587
17588
17589
17590
17591
17592
17593
17594
17595
17596
17597
17598
17599
17600
17601
17602
17603
17604
17605
17606
17607
17608
17609
17610
17611
17612
17613
17614
17615
17616
17617
17618
17619
17620
17621
17622
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
cristy0c60a692010-11-04 01:09:47 +000017668
17669
17670
17671
17672
cristy73bd4a52010-10-05 11:24:23 +000017673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17674$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17675hardcode_action=
17676if test -n "$hardcode_libdir_flag_spec" ||
17677 test -n "$runpath_var" ||
17678 test "X$hardcode_automatic" = "Xyes" ; then
17679
17680 # We can hardcode non-existent directories.
17681 if test "$hardcode_direct" != no &&
17682 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17683 # have to relink, otherwise we might link with an installed library
17684 # when we should be linking with a yet-to-be-installed one
17685 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17686 test "$hardcode_minus_L" != no; then
17687 # Linking always hardcodes the temporary library directory.
17688 hardcode_action=relink
17689 else
17690 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17691 hardcode_action=immediate
17692 fi
17693else
17694 # We cannot hardcode anything, or else we can only hardcode existing
17695 # directories.
17696 hardcode_action=unsupported
17697fi
17698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17699$as_echo "$hardcode_action" >&6; }
17700
17701if test "$hardcode_action" = relink ||
17702 test "$inherit_rpath" = yes; then
17703 # Fast installation is not supported
17704 enable_fast_install=no
17705elif test "$shlibpath_overrides_runpath" = yes ||
17706 test "$enable_shared" = no; then
17707 # Fast installation is not necessary
17708 enable_fast_install=needless
17709fi
17710
17711
17712
17713
17714
17715
17716 if test "x$enable_dlopen" != xyes; then
17717 enable_dlopen=unknown
17718 enable_dlopen_self=unknown
17719 enable_dlopen_self_static=unknown
17720else
17721 lt_cv_dlopen=no
17722 lt_cv_dlopen_libs=
17723
17724 case $host_os in
17725 beos*)
17726 lt_cv_dlopen="load_add_on"
17727 lt_cv_dlopen_libs=
17728 lt_cv_dlopen_self=yes
17729 ;;
17730
17731 mingw* | pw32* | cegcc*)
17732 lt_cv_dlopen="LoadLibrary"
17733 lt_cv_dlopen_libs=
17734 ;;
17735
17736 cygwin*)
17737 lt_cv_dlopen="dlopen"
17738 lt_cv_dlopen_libs=
17739 ;;
17740
17741 darwin*)
17742 # if libdl is installed we need to link against it
17743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17744$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017745if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017746 $as_echo_n "(cached) " >&6
17747else
17748 ac_check_lib_save_LIBS=$LIBS
17749LIBS="-ldl $LIBS"
17750cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17751/* end confdefs.h. */
17752
17753/* Override any GCC internal prototype to avoid an error.
17754 Use char because int might match the return type of a GCC
17755 builtin and then its argument prototype would still apply. */
17756#ifdef __cplusplus
17757extern "C"
17758#endif
17759char dlopen ();
17760int
17761main ()
17762{
17763return dlopen ();
17764 ;
17765 return 0;
17766}
17767_ACEOF
17768if ac_fn_c_try_link "$LINENO"; then :
17769 ac_cv_lib_dl_dlopen=yes
17770else
17771 ac_cv_lib_dl_dlopen=no
17772fi
17773rm -f core conftest.err conftest.$ac_objext \
17774 conftest$ac_exeext conftest.$ac_ext
17775LIBS=$ac_check_lib_save_LIBS
17776fi
17777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17778$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000017779if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017780 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17781else
17782
17783 lt_cv_dlopen="dyld"
17784 lt_cv_dlopen_libs=
17785 lt_cv_dlopen_self=yes
17786
17787fi
17788
17789 ;;
17790
17791 *)
17792 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000017793if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017794 lt_cv_dlopen="shl_load"
17795else
17796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17797$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017798if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017799 $as_echo_n "(cached) " >&6
17800else
17801 ac_check_lib_save_LIBS=$LIBS
17802LIBS="-ldld $LIBS"
17803cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17804/* end confdefs.h. */
17805
17806/* Override any GCC internal prototype to avoid an error.
17807 Use char because int might match the return type of a GCC
17808 builtin and then its argument prototype would still apply. */
17809#ifdef __cplusplus
17810extern "C"
17811#endif
17812char shl_load ();
17813int
17814main ()
17815{
17816return shl_load ();
17817 ;
17818 return 0;
17819}
17820_ACEOF
17821if ac_fn_c_try_link "$LINENO"; then :
17822 ac_cv_lib_dld_shl_load=yes
17823else
17824 ac_cv_lib_dld_shl_load=no
17825fi
17826rm -f core conftest.err conftest.$ac_objext \
17827 conftest$ac_exeext conftest.$ac_ext
17828LIBS=$ac_check_lib_save_LIBS
17829fi
17830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17831$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000017832if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017833 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17834else
17835 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
cristyda16f162011-02-19 23:52:17 +000017836if test "x$ac_cv_func_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017837 lt_cv_dlopen="dlopen"
17838else
17839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17840$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017841if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017842 $as_echo_n "(cached) " >&6
17843else
17844 ac_check_lib_save_LIBS=$LIBS
17845LIBS="-ldl $LIBS"
17846cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17847/* end confdefs.h. */
17848
17849/* Override any GCC internal prototype to avoid an error.
17850 Use char because int might match the return type of a GCC
17851 builtin and then its argument prototype would still apply. */
17852#ifdef __cplusplus
17853extern "C"
17854#endif
17855char dlopen ();
17856int
17857main ()
17858{
17859return dlopen ();
17860 ;
17861 return 0;
17862}
17863_ACEOF
17864if ac_fn_c_try_link "$LINENO"; then :
17865 ac_cv_lib_dl_dlopen=yes
17866else
17867 ac_cv_lib_dl_dlopen=no
17868fi
17869rm -f core conftest.err conftest.$ac_objext \
17870 conftest$ac_exeext conftest.$ac_ext
17871LIBS=$ac_check_lib_save_LIBS
17872fi
17873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17874$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000017875if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017876 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17877else
17878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17879$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017880if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017881 $as_echo_n "(cached) " >&6
17882else
17883 ac_check_lib_save_LIBS=$LIBS
17884LIBS="-lsvld $LIBS"
17885cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17886/* end confdefs.h. */
17887
17888/* Override any GCC internal prototype to avoid an error.
17889 Use char because int might match the return type of a GCC
17890 builtin and then its argument prototype would still apply. */
17891#ifdef __cplusplus
17892extern "C"
17893#endif
17894char dlopen ();
17895int
17896main ()
17897{
17898return dlopen ();
17899 ;
17900 return 0;
17901}
17902_ACEOF
17903if ac_fn_c_try_link "$LINENO"; then :
17904 ac_cv_lib_svld_dlopen=yes
17905else
17906 ac_cv_lib_svld_dlopen=no
17907fi
17908rm -f core conftest.err conftest.$ac_objext \
17909 conftest$ac_exeext conftest.$ac_ext
17910LIBS=$ac_check_lib_save_LIBS
17911fi
17912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17913$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000017914if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017915 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17916else
17917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17918$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017919if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017920 $as_echo_n "(cached) " >&6
17921else
17922 ac_check_lib_save_LIBS=$LIBS
17923LIBS="-ldld $LIBS"
17924cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17925/* end confdefs.h. */
17926
17927/* Override any GCC internal prototype to avoid an error.
17928 Use char because int might match the return type of a GCC
17929 builtin and then its argument prototype would still apply. */
17930#ifdef __cplusplus
17931extern "C"
17932#endif
17933char dld_link ();
17934int
17935main ()
17936{
17937return dld_link ();
17938 ;
17939 return 0;
17940}
17941_ACEOF
17942if ac_fn_c_try_link "$LINENO"; then :
17943 ac_cv_lib_dld_dld_link=yes
17944else
17945 ac_cv_lib_dld_dld_link=no
17946fi
17947rm -f core conftest.err conftest.$ac_objext \
17948 conftest$ac_exeext conftest.$ac_ext
17949LIBS=$ac_check_lib_save_LIBS
17950fi
17951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17952$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000017953if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017954 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17955fi
17956
17957
17958fi
17959
17960
17961fi
17962
17963
17964fi
17965
17966
17967fi
17968
17969
17970fi
17971
17972 ;;
17973 esac
17974
17975 if test "x$lt_cv_dlopen" != xno; then
17976 enable_dlopen=yes
17977 else
17978 enable_dlopen=no
17979 fi
17980
17981 case $lt_cv_dlopen in
17982 dlopen)
17983 save_CPPFLAGS="$CPPFLAGS"
17984 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17985
17986 save_LDFLAGS="$LDFLAGS"
17987 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17988
17989 save_LIBS="$LIBS"
17990 LIBS="$lt_cv_dlopen_libs $LIBS"
17991
17992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17993$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017994if ${lt_cv_dlopen_self+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017995 $as_echo_n "(cached) " >&6
17996else
17997 if test "$cross_compiling" = yes; then :
17998 lt_cv_dlopen_self=cross
17999else
18000 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18001 lt_status=$lt_dlunknown
18002 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000018003#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000018004#include "confdefs.h"
18005
18006#if HAVE_DLFCN_H
18007#include <dlfcn.h>
18008#endif
18009
18010#include <stdio.h>
18011
18012#ifdef RTLD_GLOBAL
18013# define LT_DLGLOBAL RTLD_GLOBAL
18014#else
18015# ifdef DL_GLOBAL
18016# define LT_DLGLOBAL DL_GLOBAL
18017# else
18018# define LT_DLGLOBAL 0
18019# endif
18020#endif
18021
18022/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18023 find out it does not work in some platform. */
18024#ifndef LT_DLLAZY_OR_NOW
18025# ifdef RTLD_LAZY
18026# define LT_DLLAZY_OR_NOW RTLD_LAZY
18027# else
18028# ifdef DL_LAZY
18029# define LT_DLLAZY_OR_NOW DL_LAZY
18030# else
18031# ifdef RTLD_NOW
18032# define LT_DLLAZY_OR_NOW RTLD_NOW
18033# else
18034# ifdef DL_NOW
18035# define LT_DLLAZY_OR_NOW DL_NOW
18036# else
18037# define LT_DLLAZY_OR_NOW 0
18038# endif
18039# endif
18040# endif
18041# endif
18042#endif
18043
cristy0c60a692010-11-04 01:09:47 +000018044/* When -fvisbility=hidden is used, assume the code has been annotated
18045 correspondingly for the symbols needed. */
18046#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000018047int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000018048#endif
18049
cristyda16f162011-02-19 23:52:17 +000018050int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000018051int main ()
18052{
18053 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18054 int status = $lt_dlunknown;
18055
18056 if (self)
18057 {
18058 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000018059 else
18060 {
18061 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18062 else puts (dlerror ());
18063 }
cristy73bd4a52010-10-05 11:24:23 +000018064 /* dlclose (self); */
18065 }
18066 else
18067 puts (dlerror ());
18068
18069 return status;
18070}
18071_LT_EOF
18072 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18073 (eval $ac_link) 2>&5
18074 ac_status=$?
18075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18076 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18077 (./conftest; exit; ) >&5 2>/dev/null
18078 lt_status=$?
18079 case x$lt_status in
18080 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18081 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18082 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18083 esac
18084 else :
18085 # compilation failed
18086 lt_cv_dlopen_self=no
18087 fi
18088fi
18089rm -fr conftest*
18090
18091
18092fi
18093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18094$as_echo "$lt_cv_dlopen_self" >&6; }
18095
18096 if test "x$lt_cv_dlopen_self" = xyes; then
18097 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18099$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018100if ${lt_cv_dlopen_self_static+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018101 $as_echo_n "(cached) " >&6
18102else
18103 if test "$cross_compiling" = yes; then :
18104 lt_cv_dlopen_self_static=cross
18105else
18106 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18107 lt_status=$lt_dlunknown
18108 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000018109#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000018110#include "confdefs.h"
18111
18112#if HAVE_DLFCN_H
18113#include <dlfcn.h>
18114#endif
18115
18116#include <stdio.h>
18117
18118#ifdef RTLD_GLOBAL
18119# define LT_DLGLOBAL RTLD_GLOBAL
18120#else
18121# ifdef DL_GLOBAL
18122# define LT_DLGLOBAL DL_GLOBAL
18123# else
18124# define LT_DLGLOBAL 0
18125# endif
18126#endif
18127
18128/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18129 find out it does not work in some platform. */
18130#ifndef LT_DLLAZY_OR_NOW
18131# ifdef RTLD_LAZY
18132# define LT_DLLAZY_OR_NOW RTLD_LAZY
18133# else
18134# ifdef DL_LAZY
18135# define LT_DLLAZY_OR_NOW DL_LAZY
18136# else
18137# ifdef RTLD_NOW
18138# define LT_DLLAZY_OR_NOW RTLD_NOW
18139# else
18140# ifdef DL_NOW
18141# define LT_DLLAZY_OR_NOW DL_NOW
18142# else
18143# define LT_DLLAZY_OR_NOW 0
18144# endif
18145# endif
18146# endif
18147# endif
18148#endif
18149
cristy0c60a692010-11-04 01:09:47 +000018150/* When -fvisbility=hidden is used, assume the code has been annotated
18151 correspondingly for the symbols needed. */
18152#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000018153int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000018154#endif
18155
cristyda16f162011-02-19 23:52:17 +000018156int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000018157int main ()
18158{
18159 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18160 int status = $lt_dlunknown;
18161
18162 if (self)
18163 {
18164 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000018165 else
18166 {
18167 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18168 else puts (dlerror ());
18169 }
cristy73bd4a52010-10-05 11:24:23 +000018170 /* dlclose (self); */
18171 }
18172 else
18173 puts (dlerror ());
18174
18175 return status;
18176}
18177_LT_EOF
18178 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18179 (eval $ac_link) 2>&5
18180 ac_status=$?
18181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18182 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18183 (./conftest; exit; ) >&5 2>/dev/null
18184 lt_status=$?
18185 case x$lt_status in
18186 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18187 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18188 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18189 esac
18190 else :
18191 # compilation failed
18192 lt_cv_dlopen_self_static=no
18193 fi
18194fi
18195rm -fr conftest*
18196
18197
18198fi
18199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18200$as_echo "$lt_cv_dlopen_self_static" >&6; }
18201 fi
18202
18203 CPPFLAGS="$save_CPPFLAGS"
18204 LDFLAGS="$save_LDFLAGS"
18205 LIBS="$save_LIBS"
18206 ;;
18207 esac
18208
18209 case $lt_cv_dlopen_self in
18210 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18211 *) enable_dlopen_self=unknown ;;
18212 esac
18213
18214 case $lt_cv_dlopen_self_static in
18215 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18216 *) enable_dlopen_self_static=unknown ;;
18217 esac
18218fi
18219
18220
18221
18222
18223
18224
18225
18226
18227
18228
18229
18230
18231
18232
18233
18234
18235
18236striplib=
18237old_striplib=
18238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18239$as_echo_n "checking whether stripping libraries is possible... " >&6; }
18240if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18241 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18242 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18244$as_echo "yes" >&6; }
18245else
18246# FIXME - insert some real tests, host_os isn't really good enough
18247 case $host_os in
18248 darwin*)
18249 if test -n "$STRIP" ; then
18250 striplib="$STRIP -x"
18251 old_striplib="$STRIP -S"
18252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18253$as_echo "yes" >&6; }
18254 else
18255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18256$as_echo "no" >&6; }
18257 fi
18258 ;;
18259 *)
18260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18261$as_echo "no" >&6; }
18262 ;;
18263 esac
18264fi
18265
18266
18267
18268
18269
18270
18271
18272
18273
18274
18275
18276
18277 # Report which library types will actually be built
18278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18279$as_echo_n "checking if libtool supports shared libraries... " >&6; }
18280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18281$as_echo "$can_build_shared" >&6; }
18282
18283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18284$as_echo_n "checking whether to build shared libraries... " >&6; }
18285 test "$can_build_shared" = "no" && enable_shared=no
18286
18287 # On AIX, shared libraries and static libraries use the same namespace, and
18288 # are all built from PIC.
18289 case $host_os in
18290 aix3*)
18291 test "$enable_shared" = yes && enable_static=no
18292 if test -n "$RANLIB"; then
18293 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18294 postinstall_cmds='$RANLIB $lib'
18295 fi
18296 ;;
18297
18298 aix[4-9]*)
18299 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18300 test "$enable_shared" = yes && enable_static=no
18301 fi
18302 ;;
18303 esac
18304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18305$as_echo "$enable_shared" >&6; }
18306
18307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18308$as_echo_n "checking whether to build static libraries... " >&6; }
18309 # Make sure either enable_shared or enable_static is yes.
18310 test "$enable_shared" = yes || enable_static=yes
18311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18312$as_echo "$enable_static" >&6; }
18313
18314
18315
18316
18317fi
18318ac_ext=c
18319ac_cpp='$CPP $CPPFLAGS'
18320ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18321ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18322ac_compiler_gnu=$ac_cv_c_compiler_gnu
18323
18324CC="$lt_save_CC"
18325
cristy0c60a692010-11-04 01:09:47 +000018326 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18327 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18328 (test "X$CXX" != "Xg++"))) ; then
18329 ac_ext=cpp
18330ac_cpp='$CXXCPP $CPPFLAGS'
18331ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18332ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18333ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18335$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18336if test -z "$CXXCPP"; then
cristyda16f162011-02-19 23:52:17 +000018337 if ${ac_cv_prog_CXXCPP+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000018338 $as_echo_n "(cached) " >&6
18339else
18340 # Double quotes because CXXCPP needs to be expanded
18341 for CXXCPP in "$CXX -E" "/lib/cpp"
18342 do
18343 ac_preproc_ok=false
18344for ac_cxx_preproc_warn_flag in '' yes
18345do
18346 # Use a header file that comes with gcc, so configuring glibc
18347 # with a fresh cross-compiler works.
18348 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18349 # <limits.h> exists even on freestanding compilers.
18350 # On the NeXT, cc -E runs the code through the compiler's parser,
18351 # not just through cpp. "Syntax error" is here to catch this case.
18352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18353/* end confdefs.h. */
18354#ifdef __STDC__
18355# include <limits.h>
18356#else
18357# include <assert.h>
18358#endif
18359 Syntax error
18360_ACEOF
18361if ac_fn_cxx_try_cpp "$LINENO"; then :
18362
18363else
18364 # Broken: fails on valid input.
18365continue
18366fi
cristyda16f162011-02-19 23:52:17 +000018367rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018368
18369 # OK, works on sane cases. Now check whether nonexistent headers
18370 # can be detected and how.
18371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18372/* end confdefs.h. */
18373#include <ac_nonexistent.h>
18374_ACEOF
18375if ac_fn_cxx_try_cpp "$LINENO"; then :
18376 # Broken: success on invalid input.
18377continue
18378else
18379 # Passes both tests.
18380ac_preproc_ok=:
18381break
18382fi
cristyda16f162011-02-19 23:52:17 +000018383rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018384
18385done
18386# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000018387rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018388if $ac_preproc_ok; then :
18389 break
18390fi
18391
18392 done
18393 ac_cv_prog_CXXCPP=$CXXCPP
18394
18395fi
18396 CXXCPP=$ac_cv_prog_CXXCPP
18397else
18398 ac_cv_prog_CXXCPP=$CXXCPP
18399fi
18400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18401$as_echo "$CXXCPP" >&6; }
18402ac_preproc_ok=false
18403for ac_cxx_preproc_warn_flag in '' yes
18404do
18405 # Use a header file that comes with gcc, so configuring glibc
18406 # with a fresh cross-compiler works.
18407 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18408 # <limits.h> exists even on freestanding compilers.
18409 # On the NeXT, cc -E runs the code through the compiler's parser,
18410 # not just through cpp. "Syntax error" is here to catch this case.
18411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18412/* end confdefs.h. */
18413#ifdef __STDC__
18414# include <limits.h>
18415#else
18416# include <assert.h>
18417#endif
18418 Syntax error
18419_ACEOF
18420if ac_fn_cxx_try_cpp "$LINENO"; then :
18421
18422else
18423 # Broken: fails on valid input.
18424continue
18425fi
cristyda16f162011-02-19 23:52:17 +000018426rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018427
18428 # OK, works on sane cases. Now check whether nonexistent headers
18429 # can be detected and how.
18430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18431/* end confdefs.h. */
18432#include <ac_nonexistent.h>
18433_ACEOF
18434if ac_fn_cxx_try_cpp "$LINENO"; then :
18435 # Broken: success on invalid input.
18436continue
18437else
18438 # Passes both tests.
18439ac_preproc_ok=:
18440break
18441fi
cristyda16f162011-02-19 23:52:17 +000018442rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018443
18444done
18445# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000018446rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018447if $ac_preproc_ok; then :
18448
18449else
18450 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18451$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18452as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
18453See \`config.log' for more details" "$LINENO" 5; }
18454fi
18455
18456ac_ext=c
18457ac_cpp='$CPP $CPPFLAGS'
18458ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18459ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18460ac_compiler_gnu=$ac_cv_c_compiler_gnu
18461
18462else
18463 _lt_caught_CXX_error=yes
18464fi
cristy73bd4a52010-10-05 11:24:23 +000018465
18466ac_ext=cpp
18467ac_cpp='$CXXCPP $CPPFLAGS'
18468ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18469ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18470ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18471
18472archive_cmds_need_lc_CXX=no
18473allow_undefined_flag_CXX=
18474always_export_symbols_CXX=no
18475archive_expsym_cmds_CXX=
18476compiler_needs_object_CXX=no
18477export_dynamic_flag_spec_CXX=
18478hardcode_direct_CXX=no
18479hardcode_direct_absolute_CXX=no
18480hardcode_libdir_flag_spec_CXX=
cristy73bd4a52010-10-05 11:24:23 +000018481hardcode_libdir_separator_CXX=
18482hardcode_minus_L_CXX=no
18483hardcode_shlibpath_var_CXX=unsupported
18484hardcode_automatic_CXX=no
18485inherit_rpath_CXX=no
18486module_cmds_CXX=
18487module_expsym_cmds_CXX=
18488link_all_deplibs_CXX=unknown
18489old_archive_cmds_CXX=$old_archive_cmds
cristy0c60a692010-11-04 01:09:47 +000018490reload_flag_CXX=$reload_flag
18491reload_cmds_CXX=$reload_cmds
cristy73bd4a52010-10-05 11:24:23 +000018492no_undefined_flag_CXX=
18493whole_archive_flag_spec_CXX=
18494enable_shared_with_static_runtimes_CXX=no
18495
18496# Source file extension for C++ test sources.
18497ac_ext=cpp
18498
18499# Object file extension for compiled C++ test sources.
18500objext=o
18501objext_CXX=$objext
18502
18503# No sense in running all these tests if we already determined that
18504# the CXX compiler isn't working. Some variables (like enable_shared)
18505# are currently assumed to apply to all compilers on this platform,
18506# and will be corrupted by setting them based on a non-working compiler.
18507if test "$_lt_caught_CXX_error" != yes; then
18508 # Code to be used in simple compile tests
18509 lt_simple_compile_test_code="int some_variable = 0;"
18510
18511 # Code to be used in simple link tests
18512 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18513
18514 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18515
18516
18517
18518
18519
18520
18521# If no C compiler was specified, use CC.
18522LTCC=${LTCC-"$CC"}
18523
18524# If no C compiler flags were specified, use CFLAGS.
18525LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18526
18527# Allow CC to be a program name with arguments.
18528compiler=$CC
18529
18530
18531 # save warnings/boilerplate of simple test code
18532 ac_outfile=conftest.$ac_objext
18533echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18534eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18535_lt_compiler_boilerplate=`cat conftest.err`
18536$RM conftest*
18537
18538 ac_outfile=conftest.$ac_objext
18539echo "$lt_simple_link_test_code" >conftest.$ac_ext
18540eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18541_lt_linker_boilerplate=`cat conftest.err`
18542$RM -r conftest*
18543
18544
18545 # Allow CC to be a program name with arguments.
18546 lt_save_CC=$CC
cristyda16f162011-02-19 23:52:17 +000018547 lt_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000018548 lt_save_LD=$LD
18549 lt_save_GCC=$GCC
18550 GCC=$GXX
18551 lt_save_with_gnu_ld=$with_gnu_ld
18552 lt_save_path_LD=$lt_cv_path_LD
18553 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18554 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18555 else
18556 $as_unset lt_cv_prog_gnu_ld
18557 fi
18558 if test -n "${lt_cv_path_LDCXX+set}"; then
18559 lt_cv_path_LD=$lt_cv_path_LDCXX
18560 else
18561 $as_unset lt_cv_path_LD
18562 fi
18563 test -z "${LDCXX+set}" || LD=$LDCXX
18564 CC=${CXX-"c++"}
cristyda16f162011-02-19 23:52:17 +000018565 CFLAGS=$CXXFLAGS
cristy73bd4a52010-10-05 11:24:23 +000018566 compiler=$CC
18567 compiler_CXX=$CC
18568 for cc_temp in $compiler""; do
18569 case $cc_temp in
18570 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18571 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18572 \-*) ;;
18573 *) break;;
18574 esac
18575done
cristy0c60a692010-11-04 01:09:47 +000018576cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000018577
18578
18579 if test -n "$compiler"; then
18580 # We don't want -fno-exception when compiling C++ code, so set the
18581 # no_builtin_flag separately
18582 if test "$GXX" = yes; then
18583 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18584 else
18585 lt_prog_compiler_no_builtin_flag_CXX=
18586 fi
18587
18588 if test "$GXX" = yes; then
18589 # Set up default GNU C++ configuration
18590
18591
18592
18593# Check whether --with-gnu-ld was given.
18594if test "${with_gnu_ld+set}" = set; then :
18595 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18596else
18597 with_gnu_ld=no
18598fi
18599
18600ac_prog=ld
18601if test "$GCC" = yes; then
18602 # Check if gcc -print-prog-name=ld gives a path.
18603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18604$as_echo_n "checking for ld used by $CC... " >&6; }
18605 case $host in
18606 *-*-mingw*)
18607 # gcc leaves a trailing carriage return which upsets mingw
18608 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18609 *)
18610 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18611 esac
18612 case $ac_prog in
18613 # Accept absolute paths.
18614 [\\/]* | ?:[\\/]*)
18615 re_direlt='/[^/][^/]*/\.\./'
18616 # Canonicalize the pathname of ld
18617 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18618 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18619 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18620 done
18621 test -z "$LD" && LD="$ac_prog"
18622 ;;
18623 "")
18624 # If it fails, then pretend we aren't using GCC.
18625 ac_prog=ld
18626 ;;
18627 *)
18628 # If it is relative, then search for the first ld in PATH.
18629 with_gnu_ld=unknown
18630 ;;
18631 esac
18632elif test "$with_gnu_ld" = yes; then
18633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18634$as_echo_n "checking for GNU ld... " >&6; }
18635else
18636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18637$as_echo_n "checking for non-GNU ld... " >&6; }
18638fi
cristyda16f162011-02-19 23:52:17 +000018639if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018640 $as_echo_n "(cached) " >&6
18641else
18642 if test -z "$LD"; then
18643 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18644 for ac_dir in $PATH; do
18645 IFS="$lt_save_ifs"
18646 test -z "$ac_dir" && ac_dir=.
18647 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18648 lt_cv_path_LD="$ac_dir/$ac_prog"
18649 # Check to see if the program is GNU ld. I'd rather use --version,
18650 # but apparently some variants of GNU ld only accept -v.
18651 # Break only if it was the GNU/non-GNU ld that we prefer.
18652 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18653 *GNU* | *'with BFD'*)
18654 test "$with_gnu_ld" != no && break
18655 ;;
18656 *)
18657 test "$with_gnu_ld" != yes && break
18658 ;;
18659 esac
18660 fi
18661 done
18662 IFS="$lt_save_ifs"
18663else
18664 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18665fi
18666fi
18667
18668LD="$lt_cv_path_LD"
18669if test -n "$LD"; then
18670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18671$as_echo "$LD" >&6; }
18672else
18673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18674$as_echo "no" >&6; }
18675fi
cristy98dddb52010-11-04 00:30:15 +000018676test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000018677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18678$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018679if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018680 $as_echo_n "(cached) " >&6
18681else
18682 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18683case `$LD -v 2>&1 </dev/null` in
18684*GNU* | *'with BFD'*)
18685 lt_cv_prog_gnu_ld=yes
18686 ;;
18687*)
18688 lt_cv_prog_gnu_ld=no
18689 ;;
18690esac
18691fi
18692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18693$as_echo "$lt_cv_prog_gnu_ld" >&6; }
18694with_gnu_ld=$lt_cv_prog_gnu_ld
18695
18696
18697
18698
18699
18700
18701
18702 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18703 # archiving commands below assume that GNU ld is being used.
18704 if test "$with_gnu_ld" = yes; then
cristyda16f162011-02-19 23:52:17 +000018705 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18706 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 +000018707
18708 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18709 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18710
18711 # If archive_cmds runs LD, not CC, wlarc should be empty
18712 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18713 # investigate it a little bit more. (MM)
18714 wlarc='${wl}'
18715
18716 # ancient GNU ld didn't support --whole-archive et. al.
18717 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18718 $GREP 'no-whole-archive' > /dev/null; then
18719 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18720 else
18721 whole_archive_flag_spec_CXX=
18722 fi
18723 else
18724 with_gnu_ld=no
18725 wlarc=
18726
18727 # A generic and very simple default shared library creation
18728 # command for GNU C++ for the case where it uses the native
18729 # linker, instead of GNU ld. If possible, this setting should
18730 # overridden to take advantage of the native linker features on
18731 # the platform it is being used on.
18732 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18733 fi
18734
18735 # Commands to make compiler produce verbose output that lists
18736 # what "hidden" libraries, object files and flags are used when
18737 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018738 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018739
18740 else
18741 GXX=no
18742 with_gnu_ld=no
18743 wlarc=
18744 fi
18745
18746 # PORTME: fill in a description of your system's C++ link characteristics
18747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18748$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18749 ld_shlibs_CXX=yes
18750 case $host_os in
18751 aix3*)
18752 # FIXME: insert proper C++ library support
18753 ld_shlibs_CXX=no
18754 ;;
18755 aix[4-9]*)
18756 if test "$host_cpu" = ia64; then
18757 # On IA64, the linker does run time linking by default, so we don't
18758 # have to do anything special.
18759 aix_use_runtimelinking=no
18760 exp_sym_flag='-Bexport'
18761 no_entry_flag=""
18762 else
18763 aix_use_runtimelinking=no
18764
18765 # Test if we are trying to use run time linking or normal
18766 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18767 # need to do runtime linking.
18768 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18769 for ld_flag in $LDFLAGS; do
18770 case $ld_flag in
18771 *-brtl*)
18772 aix_use_runtimelinking=yes
18773 break
18774 ;;
18775 esac
18776 done
18777 ;;
18778 esac
18779
18780 exp_sym_flag='-bexport'
18781 no_entry_flag='-bnoentry'
18782 fi
18783
18784 # When large executables or shared objects are built, AIX ld can
18785 # have problems creating the table of contents. If linking a library
18786 # or program results in "error TOC overflow" add -mminimal-toc to
18787 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18788 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18789
18790 archive_cmds_CXX=''
18791 hardcode_direct_CXX=yes
18792 hardcode_direct_absolute_CXX=yes
18793 hardcode_libdir_separator_CXX=':'
18794 link_all_deplibs_CXX=yes
18795 file_list_spec_CXX='${wl}-f,'
18796
18797 if test "$GXX" = yes; then
18798 case $host_os in aix4.[012]|aix4.[012].*)
18799 # We only want to do this on AIX 4.2 and lower, the check
18800 # below for broken collect2 doesn't work under 4.3+
18801 collect2name=`${CC} -print-prog-name=collect2`
18802 if test -f "$collect2name" &&
18803 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18804 then
18805 # We have reworked collect2
18806 :
18807 else
18808 # We have old collect2
18809 hardcode_direct_CXX=unsupported
18810 # It fails to find uninstalled libraries when the uninstalled
18811 # path is not listed in the libpath. Setting hardcode_minus_L
18812 # to unsupported forces relinking
18813 hardcode_minus_L_CXX=yes
18814 hardcode_libdir_flag_spec_CXX='-L$libdir'
18815 hardcode_libdir_separator_CXX=
18816 fi
18817 esac
18818 shared_flag='-shared'
18819 if test "$aix_use_runtimelinking" = yes; then
18820 shared_flag="$shared_flag "'${wl}-G'
18821 fi
18822 else
18823 # not using gcc
18824 if test "$host_cpu" = ia64; then
18825 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18826 # chokes on -Wl,-G. The following line is correct:
18827 shared_flag='-G'
18828 else
18829 if test "$aix_use_runtimelinking" = yes; then
18830 shared_flag='${wl}-G'
18831 else
18832 shared_flag='${wl}-bM:SRE'
18833 fi
18834 fi
18835 fi
18836
18837 export_dynamic_flag_spec_CXX='${wl}-bexpall'
18838 # It seems that -bexpall does not export symbols beginning with
18839 # underscore (_), so it is better to generate a list of symbols to
18840 # export.
18841 always_export_symbols_CXX=yes
18842 if test "$aix_use_runtimelinking" = yes; then
18843 # Warning - without using the other runtime loading flags (-brtl),
18844 # -berok will link without error, but may produce a broken library.
18845 allow_undefined_flag_CXX='-berok'
18846 # Determine the default libpath from the value encoded in an empty
18847 # executable.
cristyda16f162011-02-19 23:52:17 +000018848 if test "${lt_cv_aix_libpath+set}" = set; then
18849 aix_libpath=$lt_cv_aix_libpath
18850else
18851 if ${lt_cv_aix_libpath__CXX+:} false; then :
18852 $as_echo_n "(cached) " >&6
18853else
18854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000018855/* end confdefs.h. */
18856
18857int
18858main ()
18859{
18860
18861 ;
18862 return 0;
18863}
18864_ACEOF
18865if ac_fn_cxx_try_link "$LINENO"; then :
18866
cristyda16f162011-02-19 23:52:17 +000018867 lt_aix_libpath_sed='
18868 /Import File Strings/,/^$/ {
18869 /^0/ {
18870 s/^0 *\([^ ]*\) *$/\1/
18871 p
18872 }
18873 }'
18874 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18875 # Check for a 64-bit object if we didn't find anything.
18876 if test -z "$lt_cv_aix_libpath__CXX"; then
18877 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18878 fi
cristy73bd4a52010-10-05 11:24:23 +000018879fi
18880rm -f core conftest.err conftest.$ac_objext \
18881 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000018882 if test -z "$lt_cv_aix_libpath__CXX"; then
18883 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
18884 fi
18885
18886fi
18887
18888 aix_libpath=$lt_cv_aix_libpath__CXX
18889fi
cristy73bd4a52010-10-05 11:24:23 +000018890
18891 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18892
cristy0c60a692010-11-04 01:09:47 +000018893 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 +000018894 else
18895 if test "$host_cpu" = ia64; then
18896 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18897 allow_undefined_flag_CXX="-z nodefs"
18898 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"
18899 else
18900 # Determine the default libpath from the value encoded in an
18901 # empty executable.
cristyda16f162011-02-19 23:52:17 +000018902 if test "${lt_cv_aix_libpath+set}" = set; then
18903 aix_libpath=$lt_cv_aix_libpath
18904else
18905 if ${lt_cv_aix_libpath__CXX+:} false; then :
18906 $as_echo_n "(cached) " >&6
18907else
18908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000018909/* end confdefs.h. */
18910
18911int
18912main ()
18913{
18914
18915 ;
18916 return 0;
18917}
18918_ACEOF
18919if ac_fn_cxx_try_link "$LINENO"; then :
18920
cristyda16f162011-02-19 23:52:17 +000018921 lt_aix_libpath_sed='
18922 /Import File Strings/,/^$/ {
18923 /^0/ {
18924 s/^0 *\([^ ]*\) *$/\1/
18925 p
18926 }
18927 }'
18928 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18929 # Check for a 64-bit object if we didn't find anything.
18930 if test -z "$lt_cv_aix_libpath__CXX"; then
18931 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18932 fi
cristy73bd4a52010-10-05 11:24:23 +000018933fi
18934rm -f core conftest.err conftest.$ac_objext \
18935 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000018936 if test -z "$lt_cv_aix_libpath__CXX"; then
18937 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
18938 fi
18939
18940fi
18941
18942 aix_libpath=$lt_cv_aix_libpath__CXX
18943fi
cristy73bd4a52010-10-05 11:24:23 +000018944
18945 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18946 # Warning - without using the other run time loading flags,
18947 # -berok will link without error, but may produce a broken library.
18948 no_undefined_flag_CXX=' ${wl}-bernotok'
18949 allow_undefined_flag_CXX=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000018950 if test "$with_gnu_ld" = yes; then
18951 # We only use this code for GNU lds that support --whole-archive.
18952 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18953 else
18954 # Exported symbols can be pulled into shared objects from archives
18955 whole_archive_flag_spec_CXX='$convenience'
18956 fi
cristy73bd4a52010-10-05 11:24:23 +000018957 archive_cmds_need_lc_CXX=yes
18958 # This is similar to how AIX traditionally builds its shared
18959 # libraries.
18960 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'
18961 fi
18962 fi
18963 ;;
18964
18965 beos*)
18966 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18967 allow_undefined_flag_CXX=unsupported
18968 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18969 # support --undefined. This deserves some investigation. FIXME
18970 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18971 else
18972 ld_shlibs_CXX=no
18973 fi
18974 ;;
18975
18976 chorus*)
18977 case $cc_basename in
18978 *)
18979 # FIXME: insert proper C++ library support
18980 ld_shlibs_CXX=no
18981 ;;
18982 esac
18983 ;;
18984
18985 cygwin* | mingw* | pw32* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000018986 case $GXX,$cc_basename in
18987 ,cl* | no,cl*)
18988 # Native MSVC
18989 # hardcode_libdir_flag_spec is actually meaningless, as there is
18990 # no search path for DLLs.
18991 hardcode_libdir_flag_spec_CXX=' '
18992 allow_undefined_flag_CXX=unsupported
18993 always_export_symbols_CXX=yes
18994 file_list_spec_CXX='@'
18995 # Tell ltmain to make .lib files, not .a files.
18996 libext=lib
18997 # Tell ltmain to make .dll files, not .so files.
18998 shrext_cmds=".dll"
18999 # FIXME: Setting linknames here is a bad hack.
19000 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
19001 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19002 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
19003 else
19004 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
19005 fi~
19006 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
19007 linknames='
19008 # The linker will not automatically build a static lib if we build a DLL.
19009 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
19010 enable_shared_with_static_runtimes_CXX=yes
19011 # Don't use ranlib
19012 old_postinstall_cmds_CXX='chmod 644 $oldlib'
19013 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
19014 lt_tool_outputfile="@TOOL_OUTPUT@"~
19015 case $lt_outputfile in
19016 *.exe|*.EXE) ;;
19017 *)
19018 lt_outputfile="$lt_outputfile.exe"
19019 lt_tool_outputfile="$lt_tool_outputfile.exe"
19020 ;;
19021 esac~
19022 func_to_tool_file "$lt_outputfile"~
19023 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
19024 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
19025 $RM "$lt_outputfile.manifest";
19026 fi'
19027 ;;
19028 *)
19029 # g++
19030 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19031 # as there is no search path for DLLs.
19032 hardcode_libdir_flag_spec_CXX='-L$libdir'
19033 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
19034 allow_undefined_flag_CXX=unsupported
19035 always_export_symbols_CXX=no
19036 enable_shared_with_static_runtimes_CXX=yes
cristy73bd4a52010-10-05 11:24:23 +000019037
cristyda16f162011-02-19 23:52:17 +000019038 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19039 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'
19040 # If the export-symbols file already is a .def file (1st line
19041 # is EXPORTS), use it as is; otherwise, prepend...
19042 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19043 cp $export_symbols $output_objdir/$soname.def;
19044 else
19045 echo EXPORTS > $output_objdir/$soname.def;
19046 cat $export_symbols >> $output_objdir/$soname.def;
19047 fi~
19048 $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'
19049 else
19050 ld_shlibs_CXX=no
19051 fi
19052 ;;
19053 esac
19054 ;;
cristy73bd4a52010-10-05 11:24:23 +000019055 darwin* | rhapsody*)
19056
19057
19058 archive_cmds_need_lc_CXX=no
19059 hardcode_direct_CXX=no
19060 hardcode_automatic_CXX=yes
19061 hardcode_shlibpath_var_CXX=unsupported
cristy0c60a692010-11-04 01:09:47 +000019062 if test "$lt_cv_ld_force_load" = "yes"; then
19063 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 +000019064
cristy0c60a692010-11-04 01:09:47 +000019065 else
19066 whole_archive_flag_spec_CXX=''
19067 fi
cristy73bd4a52010-10-05 11:24:23 +000019068 link_all_deplibs_CXX=yes
19069 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
19070 case $cc_basename in
19071 ifort*) _lt_dar_can_shared=yes ;;
19072 *) _lt_dar_can_shared=$GCC ;;
19073 esac
19074 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000019075 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000019076 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}"
19077 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19078 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}"
19079 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}"
19080 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19081 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}"
19082 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}"
19083 fi
19084
19085 else
19086 ld_shlibs_CXX=no
19087 fi
19088
19089 ;;
19090
19091 dgux*)
19092 case $cc_basename in
19093 ec++*)
19094 # FIXME: insert proper C++ library support
19095 ld_shlibs_CXX=no
19096 ;;
19097 ghcx*)
19098 # Green Hills C++ Compiler
19099 # FIXME: insert proper C++ library support
19100 ld_shlibs_CXX=no
19101 ;;
19102 *)
19103 # FIXME: insert proper C++ library support
19104 ld_shlibs_CXX=no
19105 ;;
19106 esac
19107 ;;
19108
cristy99bd5232011-12-07 14:38:20 +000019109 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000019110 # C++ shared libraries reported to be fairly broken before
19111 # switch to ELF
19112 ld_shlibs_CXX=no
19113 ;;
19114
19115 freebsd-elf*)
19116 archive_cmds_need_lc_CXX=no
19117 ;;
19118
19119 freebsd* | dragonfly*)
19120 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19121 # conventions
19122 ld_shlibs_CXX=yes
19123 ;;
19124
19125 gnu*)
19126 ;;
19127
cristy0c60a692010-11-04 01:09:47 +000019128 haiku*)
19129 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19130 link_all_deplibs_CXX=yes
19131 ;;
19132
cristy73bd4a52010-10-05 11:24:23 +000019133 hpux9*)
19134 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19135 hardcode_libdir_separator_CXX=:
19136 export_dynamic_flag_spec_CXX='${wl}-E'
19137 hardcode_direct_CXX=yes
19138 hardcode_minus_L_CXX=yes # Not in the search PATH,
19139 # but as the default
19140 # location of the library.
19141
19142 case $cc_basename in
19143 CC*)
19144 # FIXME: insert proper C++ library support
19145 ld_shlibs_CXX=no
19146 ;;
19147 aCC*)
19148 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'
19149 # Commands to make compiler produce verbose output that lists
19150 # what "hidden" libraries, object files and flags are used when
19151 # linking a shared library.
19152 #
19153 # There doesn't appear to be a way to prevent this compiler from
19154 # explicitly linking system object files so we need to strip them
19155 # from the output so that they don't get included in the library
19156 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000019157 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 +000019158 ;;
19159 *)
19160 if test "$GXX" = yes; then
cristyda16f162011-02-19 23:52:17 +000019161 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 +000019162 else
19163 # FIXME: insert proper C++ library support
19164 ld_shlibs_CXX=no
19165 fi
19166 ;;
19167 esac
19168 ;;
19169
19170 hpux10*|hpux11*)
19171 if test $with_gnu_ld = no; then
19172 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19173 hardcode_libdir_separator_CXX=:
19174
19175 case $host_cpu in
19176 hppa*64*|ia64*)
19177 ;;
19178 *)
19179 export_dynamic_flag_spec_CXX='${wl}-E'
19180 ;;
19181 esac
19182 fi
19183 case $host_cpu in
19184 hppa*64*|ia64*)
19185 hardcode_direct_CXX=no
19186 hardcode_shlibpath_var_CXX=no
19187 ;;
19188 *)
19189 hardcode_direct_CXX=yes
19190 hardcode_direct_absolute_CXX=yes
19191 hardcode_minus_L_CXX=yes # Not in the search PATH,
19192 # but as the default
19193 # location of the library.
19194 ;;
19195 esac
19196
19197 case $cc_basename in
19198 CC*)
19199 # FIXME: insert proper C++ library support
19200 ld_shlibs_CXX=no
19201 ;;
19202 aCC*)
19203 case $host_cpu in
19204 hppa*64*)
19205 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19206 ;;
19207 ia64*)
19208 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19209 ;;
19210 *)
19211 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19212 ;;
19213 esac
19214 # Commands to make compiler produce verbose output that lists
19215 # what "hidden" libraries, object files and flags are used when
19216 # linking a shared library.
19217 #
19218 # There doesn't appear to be a way to prevent this compiler from
19219 # explicitly linking system object files so we need to strip them
19220 # from the output so that they don't get included in the library
19221 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000019222 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 +000019223 ;;
19224 *)
19225 if test "$GXX" = yes; then
19226 if test $with_gnu_ld = no; then
19227 case $host_cpu in
19228 hppa*64*)
19229 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19230 ;;
19231 ia64*)
cristyda16f162011-02-19 23:52:17 +000019232 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 +000019233 ;;
19234 *)
cristyda16f162011-02-19 23:52:17 +000019235 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 +000019236 ;;
19237 esac
19238 fi
19239 else
19240 # FIXME: insert proper C++ library support
19241 ld_shlibs_CXX=no
19242 fi
19243 ;;
19244 esac
19245 ;;
19246
19247 interix[3-9]*)
19248 hardcode_direct_CXX=no
19249 hardcode_shlibpath_var_CXX=no
19250 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19251 export_dynamic_flag_spec_CXX='${wl}-E'
19252 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19253 # Instead, shared libraries are loaded at an image base (0x10000000 by
19254 # default) and relocated if they conflict, which is a slow very memory
19255 # consuming and fragmenting process. To avoid this, we pick a random,
19256 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19257 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19258 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'
19259 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'
19260 ;;
19261 irix5* | irix6*)
19262 case $cc_basename in
19263 CC*)
19264 # SGI C++
cristy0c60a692010-11-04 01:09:47 +000019265 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 +000019266
19267 # Archives containing C++ object files must be created using
19268 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19269 # necessary to make sure instantiated templates are included
19270 # in the archive.
19271 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19272 ;;
19273 *)
19274 if test "$GXX" = yes; then
19275 if test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000019276 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 +000019277 else
cristyda16f162011-02-19 23:52:17 +000019278 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 +000019279 fi
19280 fi
19281 link_all_deplibs_CXX=yes
19282 ;;
19283 esac
19284 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19285 hardcode_libdir_separator_CXX=:
19286 inherit_rpath_CXX=yes
19287 ;;
19288
cristy0c60a692010-11-04 01:09:47 +000019289 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000019290 case $cc_basename in
19291 KCC*)
19292 # Kuck and Associates, Inc. (KAI) C++ Compiler
19293
19294 # KCC will only create a shared library if the output file
19295 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19296 # to its proper name (with version) after linking.
19297 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'
19298 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'
19299 # Commands to make compiler produce verbose output that lists
19300 # what "hidden" libraries, object files and flags are used when
19301 # linking a shared library.
19302 #
19303 # There doesn't appear to be a way to prevent this compiler from
19304 # explicitly linking system object files so we need to strip them
19305 # from the output so that they don't get included in the library
19306 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000019307 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 +000019308
19309 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19310 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19311
19312 # Archives containing C++ object files must be created using
19313 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19314 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19315 ;;
19316 icpc* | ecpc* )
19317 # Intel C++
19318 with_gnu_ld=yes
19319 # version 8.0 and above of icpc choke on multiply defined symbols
19320 # if we add $predep_objects and $postdep_objects, however 7.1 and
19321 # earlier do not add the objects themselves.
19322 case `$CC -V 2>&1` in
19323 *"Version 7."*)
19324 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19325 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19326 ;;
19327 *) # Version 8.0 or newer
19328 tmp_idyn=
19329 case $host_cpu in
19330 ia64*) tmp_idyn=' -i_dynamic';;
19331 esac
19332 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19333 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'
19334 ;;
19335 esac
19336 archive_cmds_need_lc_CXX=no
19337 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19338 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19339 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19340 ;;
19341 pgCC* | pgcpp*)
19342 # Portland Group C++ compiler
19343 case `$CC -V` in
cristy0c60a692010-11-04 01:09:47 +000019344 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
cristy73bd4a52010-10-05 11:24:23 +000019345 prelink_cmds_CXX='tpldir=Template.dir~
19346 rm -rf $tpldir~
19347 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
cristy0c60a692010-11-04 01:09:47 +000019348 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
cristy73bd4a52010-10-05 11:24:23 +000019349 old_archive_cmds_CXX='tpldir=Template.dir~
19350 rm -rf $tpldir~
19351 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
cristy0c60a692010-11-04 01:09:47 +000019352 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
cristy73bd4a52010-10-05 11:24:23 +000019353 $RANLIB $oldlib'
19354 archive_cmds_CXX='tpldir=Template.dir~
19355 rm -rf $tpldir~
19356 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000019357 $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 +000019358 archive_expsym_cmds_CXX='tpldir=Template.dir~
19359 rm -rf $tpldir~
19360 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000019361 $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 +000019362 ;;
cristy0c60a692010-11-04 01:09:47 +000019363 *) # Version 6 and above use weak symbols
cristy73bd4a52010-10-05 11:24:23 +000019364 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19365 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'
19366 ;;
19367 esac
19368
19369 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19370 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cristy0c60a692010-11-04 01:09:47 +000019371 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 +000019372 ;;
19373 cxx*)
19374 # Compaq C++
19375 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19376 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'
19377
19378 runpath_var=LD_RUN_PATH
19379 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19380 hardcode_libdir_separator_CXX=:
19381
19382 # Commands to make compiler produce verbose output that lists
19383 # what "hidden" libraries, object files and flags are used when
19384 # linking a shared library.
19385 #
19386 # There doesn't appear to be a way to prevent this compiler from
19387 # explicitly linking system object files so we need to strip them
19388 # from the output so that they don't get included in the library
19389 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000019390 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 +000019391 ;;
cristy0c60a692010-11-04 01:09:47 +000019392 xl* | mpixl* | bgxl*)
cristy73bd4a52010-10-05 11:24:23 +000019393 # IBM XL 8.0 on PPC, with GNU ld
19394 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19395 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19396 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19397 if test "x$supports_anon_versioning" = xyes; then
19398 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19399 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19400 echo "local: *; };" >> $output_objdir/$libname.ver~
19401 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19402 fi
19403 ;;
19404 *)
19405 case `$CC -V 2>&1 | sed 5q` in
19406 *Sun\ C*)
19407 # Sun C++ 5.9
19408 no_undefined_flag_CXX=' -zdefs'
19409 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19410 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'
19411 hardcode_libdir_flag_spec_CXX='-R$libdir'
cristy0c60a692010-11-04 01:09:47 +000019412 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 +000019413 compiler_needs_object_CXX=yes
19414
19415 # Not sure whether something based on
19416 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19417 # would be better.
cristy0c60a692010-11-04 01:09:47 +000019418 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000019419
19420 # Archives containing C++ object files must be created using
19421 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19422 # necessary to make sure instantiated templates are included
19423 # in the archive.
19424 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19425 ;;
19426 esac
19427 ;;
19428 esac
19429 ;;
19430
19431 lynxos*)
19432 # FIXME: insert proper C++ library support
19433 ld_shlibs_CXX=no
19434 ;;
19435
19436 m88k*)
19437 # FIXME: insert proper C++ library support
19438 ld_shlibs_CXX=no
19439 ;;
19440
19441 mvs*)
19442 case $cc_basename in
19443 cxx*)
19444 # FIXME: insert proper C++ library support
19445 ld_shlibs_CXX=no
19446 ;;
19447 *)
19448 # FIXME: insert proper C++ library support
19449 ld_shlibs_CXX=no
19450 ;;
19451 esac
19452 ;;
19453
19454 netbsd*)
19455 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19456 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19457 wlarc=
19458 hardcode_libdir_flag_spec_CXX='-R$libdir'
19459 hardcode_direct_CXX=yes
19460 hardcode_shlibpath_var_CXX=no
19461 fi
19462 # Workaround some broken pre-1.5 toolchains
19463 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19464 ;;
19465
19466 *nto* | *qnx*)
19467 ld_shlibs_CXX=yes
19468 ;;
19469
19470 openbsd2*)
19471 # C++ shared libraries are fairly broken
19472 ld_shlibs_CXX=no
19473 ;;
19474
19475 openbsd*)
19476 if test -f /usr/libexec/ld.so; then
19477 hardcode_direct_CXX=yes
19478 hardcode_shlibpath_var_CXX=no
19479 hardcode_direct_absolute_CXX=yes
19480 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19481 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19482 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19483 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19484 export_dynamic_flag_spec_CXX='${wl}-E'
19485 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19486 fi
cristy0c60a692010-11-04 01:09:47 +000019487 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000019488 else
19489 ld_shlibs_CXX=no
19490 fi
19491 ;;
19492
19493 osf3* | osf4* | osf5*)
19494 case $cc_basename in
19495 KCC*)
19496 # Kuck and Associates, Inc. (KAI) C++ Compiler
19497
19498 # KCC will only create a shared library if the output file
19499 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19500 # to its proper name (with version) after linking.
19501 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'
19502
19503 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19504 hardcode_libdir_separator_CXX=:
19505
19506 # Archives containing C++ object files must be created using
19507 # the KAI C++ compiler.
19508 case $host in
19509 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19510 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19511 esac
19512 ;;
19513 RCC*)
19514 # Rational C++ 2.4.1
19515 # FIXME: insert proper C++ library support
19516 ld_shlibs_CXX=no
19517 ;;
19518 cxx*)
19519 case $host in
19520 osf3*)
19521 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000019522 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 +000019523 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19524 ;;
19525 *)
19526 allow_undefined_flag_CXX=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000019527 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 +000019528 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19529 echo "-hidden">> $lib.exp~
cristy0c60a692010-11-04 01:09:47 +000019530 $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 +000019531 $RM $lib.exp'
19532 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19533 ;;
19534 esac
19535
19536 hardcode_libdir_separator_CXX=:
19537
19538 # Commands to make compiler produce verbose output that lists
19539 # what "hidden" libraries, object files and flags are used when
19540 # linking a shared library.
19541 #
19542 # There doesn't appear to be a way to prevent this compiler from
19543 # explicitly linking system object files so we need to strip them
19544 # from the output so that they don't get included in the library
19545 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000019546 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 +000019547 ;;
19548 *)
19549 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19550 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19551 case $host in
19552 osf3*)
cristy0c60a692010-11-04 01:09:47 +000019553 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 +000019554 ;;
19555 *)
cristyda16f162011-02-19 23:52:17 +000019556 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 +000019557 ;;
19558 esac
19559
19560 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19561 hardcode_libdir_separator_CXX=:
19562
19563 # Commands to make compiler produce verbose output that lists
19564 # what "hidden" libraries, object files and flags are used when
19565 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000019566 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000019567
19568 else
19569 # FIXME: insert proper C++ library support
19570 ld_shlibs_CXX=no
19571 fi
19572 ;;
19573 esac
19574 ;;
19575
19576 psos*)
19577 # FIXME: insert proper C++ library support
19578 ld_shlibs_CXX=no
19579 ;;
19580
19581 sunos4*)
19582 case $cc_basename in
19583 CC*)
19584 # Sun C++ 4.x
19585 # FIXME: insert proper C++ library support
19586 ld_shlibs_CXX=no
19587 ;;
19588 lcc*)
19589 # Lucid
19590 # FIXME: insert proper C++ library support
19591 ld_shlibs_CXX=no
19592 ;;
19593 *)
19594 # FIXME: insert proper C++ library support
19595 ld_shlibs_CXX=no
19596 ;;
19597 esac
19598 ;;
19599
19600 solaris*)
19601 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000019602 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000019603 # Sun C++ 4.2, 5.x and Centerline C++
19604 archive_cmds_need_lc_CXX=yes
19605 no_undefined_flag_CXX=' -zdefs'
19606 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19607 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19608 $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'
19609
19610 hardcode_libdir_flag_spec_CXX='-R$libdir'
19611 hardcode_shlibpath_var_CXX=no
19612 case $host_os in
19613 solaris2.[0-5] | solaris2.[0-5].*) ;;
19614 *)
19615 # The compiler driver will combine and reorder linker options,
19616 # but understands `-z linker_flag'.
19617 # Supported since Solaris 2.6 (maybe 2.5.1?)
19618 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19619 ;;
19620 esac
19621 link_all_deplibs_CXX=yes
19622
cristy0c60a692010-11-04 01:09:47 +000019623 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000019624
19625 # Archives containing C++ object files must be created using
19626 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19627 # necessary to make sure instantiated templates are included
19628 # in the archive.
19629 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19630 ;;
19631 gcx*)
19632 # Green Hills C++ Compiler
19633 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19634
19635 # The C++ compiler must be used to create the archive.
19636 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19637 ;;
19638 *)
19639 # GNU C++ compiler with Solaris linker
19640 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19641 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19642 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000019643 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 +000019644 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 +000019645 $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 +000019646
19647 # Commands to make compiler produce verbose output that lists
19648 # what "hidden" libraries, object files and flags are used when
19649 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000019650 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000019651 else
19652 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19653 # platform.
19654 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19655 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19656 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19657
19658 # Commands to make compiler produce verbose output that lists
19659 # what "hidden" libraries, object files and flags are used when
19660 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000019661 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000019662 fi
19663
19664 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19665 case $host_os in
19666 solaris2.[0-5] | solaris2.[0-5].*) ;;
19667 *)
19668 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19669 ;;
19670 esac
19671 fi
19672 ;;
19673 esac
19674 ;;
19675
19676 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19677 no_undefined_flag_CXX='${wl}-z,text'
19678 archive_cmds_need_lc_CXX=no
19679 hardcode_shlibpath_var_CXX=no
19680 runpath_var='LD_RUN_PATH'
19681
19682 case $cc_basename in
19683 CC*)
19684 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19685 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19686 ;;
19687 *)
19688 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19689 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19690 ;;
19691 esac
19692 ;;
19693
19694 sysv5* | sco3.2v5* | sco5v6*)
19695 # Note: We can NOT use -z defs as we might desire, because we do not
19696 # link with -lc, and that would cause any symbols used from libc to
19697 # always be unresolved, which means just about no library would
19698 # ever link correctly. If we're not using GNU ld we use -z text
19699 # though, which does catch some bad symbols but isn't as heavy-handed
19700 # as -z defs.
19701 no_undefined_flag_CXX='${wl}-z,text'
19702 allow_undefined_flag_CXX='${wl}-z,nodefs'
19703 archive_cmds_need_lc_CXX=no
19704 hardcode_shlibpath_var_CXX=no
19705 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19706 hardcode_libdir_separator_CXX=':'
19707 link_all_deplibs_CXX=yes
19708 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19709 runpath_var='LD_RUN_PATH'
19710
19711 case $cc_basename in
19712 CC*)
19713 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19714 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 +000019715 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19716 '"$old_archive_cmds_CXX"
19717 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19718 '"$reload_cmds_CXX"
cristy73bd4a52010-10-05 11:24:23 +000019719 ;;
19720 *)
19721 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19722 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19723 ;;
19724 esac
19725 ;;
19726
19727 tandem*)
19728 case $cc_basename in
19729 NCC*)
19730 # NonStop-UX NCC 3.20
19731 # FIXME: insert proper C++ library support
19732 ld_shlibs_CXX=no
19733 ;;
19734 *)
19735 # FIXME: insert proper C++ library support
19736 ld_shlibs_CXX=no
19737 ;;
19738 esac
19739 ;;
19740
19741 vxworks*)
19742 # FIXME: insert proper C++ library support
19743 ld_shlibs_CXX=no
19744 ;;
19745
19746 *)
19747 # FIXME: insert proper C++ library support
19748 ld_shlibs_CXX=no
19749 ;;
19750 esac
19751
19752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19753$as_echo "$ld_shlibs_CXX" >&6; }
19754 test "$ld_shlibs_CXX" = no && can_build_shared=no
19755
19756 GCC_CXX="$GXX"
19757 LD_CXX="$LD"
19758
19759 ## CAVEAT EMPTOR:
19760 ## There is no encapsulation within the following macros, do not change
19761 ## the running order or otherwise move them around unless you know exactly
19762 ## what you are doing...
19763 # Dependencies to place before and after the object being linked:
19764predep_objects_CXX=
19765postdep_objects_CXX=
19766predeps_CXX=
19767postdeps_CXX=
19768compiler_lib_search_path_CXX=
19769
19770cat > conftest.$ac_ext <<_LT_EOF
19771class Foo
19772{
19773public:
19774 Foo (void) { a = 0; }
19775private:
19776 int a;
19777};
19778_LT_EOF
19779
cristyda16f162011-02-19 23:52:17 +000019780
19781_lt_libdeps_save_CFLAGS=$CFLAGS
19782case "$CC $CFLAGS " in #(
19783*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
19784*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
cristy99bd5232011-12-07 14:38:20 +000019785*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
cristyda16f162011-02-19 23:52:17 +000019786esac
19787
cristy73bd4a52010-10-05 11:24:23 +000019788if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19789 (eval $ac_compile) 2>&5
19790 ac_status=$?
19791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19792 test $ac_status = 0; }; then
19793 # Parse the compiler output and extract the necessary
19794 # objects, libraries and library flags.
19795
19796 # Sentinel used to keep track of whether or not we are before
19797 # the conftest object file.
19798 pre_test_object_deps_done=no
19799
19800 for p in `eval "$output_verbose_link_cmd"`; do
cristyda16f162011-02-19 23:52:17 +000019801 case ${prev}${p} in
cristy73bd4a52010-10-05 11:24:23 +000019802
19803 -L* | -R* | -l*)
19804 # Some compilers place space between "-{L,R}" and the path.
19805 # Remove the space.
19806 if test $p = "-L" ||
19807 test $p = "-R"; then
19808 prev=$p
19809 continue
cristy73bd4a52010-10-05 11:24:23 +000019810 fi
19811
cristyda16f162011-02-19 23:52:17 +000019812 # Expand the sysroot to ease extracting the directories later.
19813 if test -z "$prev"; then
19814 case $p in
19815 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
19816 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
19817 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
19818 esac
19819 fi
19820 case $p in
19821 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
19822 esac
cristy73bd4a52010-10-05 11:24:23 +000019823 if test "$pre_test_object_deps_done" = no; then
cristyda16f162011-02-19 23:52:17 +000019824 case ${prev} in
19825 -L | -R)
cristy73bd4a52010-10-05 11:24:23 +000019826 # Internal compiler library paths should come after those
19827 # provided the user. The postdeps already come after the
19828 # user supplied libs so there is no need to process them.
19829 if test -z "$compiler_lib_search_path_CXX"; then
19830 compiler_lib_search_path_CXX="${prev}${p}"
19831 else
19832 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19833 fi
19834 ;;
19835 # The "-l" case would never come before the object being
19836 # linked, so don't bother handling this case.
19837 esac
19838 else
19839 if test -z "$postdeps_CXX"; then
19840 postdeps_CXX="${prev}${p}"
19841 else
19842 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19843 fi
19844 fi
cristyda16f162011-02-19 23:52:17 +000019845 prev=
cristy73bd4a52010-10-05 11:24:23 +000019846 ;;
19847
cristyda16f162011-02-19 23:52:17 +000019848 *.lto.$objext) ;; # Ignore GCC LTO objects
cristy73bd4a52010-10-05 11:24:23 +000019849 *.$objext)
19850 # This assumes that the test object file only shows up
19851 # once in the compiler output.
19852 if test "$p" = "conftest.$objext"; then
19853 pre_test_object_deps_done=yes
19854 continue
19855 fi
19856
19857 if test "$pre_test_object_deps_done" = no; then
19858 if test -z "$predep_objects_CXX"; then
19859 predep_objects_CXX="$p"
19860 else
19861 predep_objects_CXX="$predep_objects_CXX $p"
19862 fi
19863 else
19864 if test -z "$postdep_objects_CXX"; then
19865 postdep_objects_CXX="$p"
19866 else
19867 postdep_objects_CXX="$postdep_objects_CXX $p"
19868 fi
19869 fi
19870 ;;
19871
19872 *) ;; # Ignore the rest.
19873
19874 esac
19875 done
19876
19877 # Clean up.
19878 rm -f a.out a.exe
19879else
19880 echo "libtool.m4: error: problem compiling CXX test program"
19881fi
19882
19883$RM -f confest.$objext
cristyda16f162011-02-19 23:52:17 +000019884CFLAGS=$_lt_libdeps_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000019885
19886# PORTME: override above test on systems where it is broken
19887case $host_os in
19888interix[3-9]*)
19889 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19890 # hack all around it, let's just trust "g++" to DTRT.
19891 predep_objects_CXX=
19892 postdep_objects_CXX=
19893 postdeps_CXX=
19894 ;;
19895
19896linux*)
19897 case `$CC -V 2>&1 | sed 5q` in
19898 *Sun\ C*)
19899 # Sun C++ 5.9
19900
19901 # The more standards-conforming stlport4 library is
19902 # incompatible with the Cstd library. Avoid specifying
19903 # it if it's in CXXFLAGS. Ignore libCrun as
19904 # -library=stlport4 depends on it.
19905 case " $CXX $CXXFLAGS " in
19906 *" -library=stlport4 "*)
19907 solaris_use_stlport4=yes
19908 ;;
19909 esac
19910
19911 if test "$solaris_use_stlport4" != yes; then
19912 postdeps_CXX='-library=Cstd -library=Crun'
19913 fi
19914 ;;
19915 esac
19916 ;;
19917
19918solaris*)
19919 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000019920 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000019921 # The more standards-conforming stlport4 library is
19922 # incompatible with the Cstd library. Avoid specifying
19923 # it if it's in CXXFLAGS. Ignore libCrun as
19924 # -library=stlport4 depends on it.
19925 case " $CXX $CXXFLAGS " in
19926 *" -library=stlport4 "*)
19927 solaris_use_stlport4=yes
19928 ;;
19929 esac
19930
19931 # Adding this requires a known-good setup of shared libraries for
19932 # Sun compiler versions before 5.6, else PIC objects from an old
19933 # archive will be linked into the output, leading to subtle bugs.
19934 if test "$solaris_use_stlport4" != yes; then
19935 postdeps_CXX='-library=Cstd -library=Crun'
19936 fi
19937 ;;
19938 esac
19939 ;;
19940esac
19941
19942
19943case " $postdeps_CXX " in
19944*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19945esac
19946 compiler_lib_search_dirs_CXX=
19947if test -n "${compiler_lib_search_path_CXX}"; then
19948 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19949fi
19950
19951
19952
19953
19954
19955
19956
19957
19958
19959
19960
19961
19962
19963
19964
19965
19966
19967
19968
19969
19970
19971
19972
19973
19974
19975
19976
19977
19978
19979
19980
19981 lt_prog_compiler_wl_CXX=
19982lt_prog_compiler_pic_CXX=
19983lt_prog_compiler_static_CXX=
19984
cristy73bd4a52010-10-05 11:24:23 +000019985
19986 # C++ specific cases for pic, static, wl, etc.
19987 if test "$GXX" = yes; then
19988 lt_prog_compiler_wl_CXX='-Wl,'
19989 lt_prog_compiler_static_CXX='-static'
19990
19991 case $host_os in
19992 aix*)
19993 # All AIX code is PIC.
19994 if test "$host_cpu" = ia64; then
19995 # AIX 5 now supports IA64 processor
19996 lt_prog_compiler_static_CXX='-Bstatic'
19997 fi
19998 ;;
19999
20000 amigaos*)
20001 case $host_cpu in
20002 powerpc)
20003 # see comment about AmigaOS4 .so support
20004 lt_prog_compiler_pic_CXX='-fPIC'
20005 ;;
20006 m68k)
20007 # FIXME: we need at least 68020 code to build shared libraries, but
20008 # adding the `-m68020' flag to GCC prevents building anything better,
20009 # like `-m68040'.
20010 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
20011 ;;
20012 esac
20013 ;;
20014
20015 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20016 # PIC is the default for these OSes.
20017 ;;
20018 mingw* | cygwin* | os2* | pw32* | cegcc*)
20019 # This hack is so that the source file can tell whether it is being
20020 # built for inclusion in a dll (and should export symbols for example).
20021 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20022 # (--disable-auto-import) libraries
20023 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20024 ;;
20025 darwin* | rhapsody*)
20026 # PIC is the default on this platform
20027 # Common symbols not allowed in MH_DYLIB files
20028 lt_prog_compiler_pic_CXX='-fno-common'
20029 ;;
20030 *djgpp*)
20031 # DJGPP does not support shared libraries at all
20032 lt_prog_compiler_pic_CXX=
20033 ;;
cristy0c60a692010-11-04 01:09:47 +000020034 haiku*)
20035 # PIC is the default for Haiku.
20036 # The "-static" flag exists, but is broken.
20037 lt_prog_compiler_static_CXX=
20038 ;;
cristy73bd4a52010-10-05 11:24:23 +000020039 interix[3-9]*)
20040 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20041 # Instead, we relocate shared libraries at runtime.
20042 ;;
20043 sysv4*MP*)
20044 if test -d /usr/nec; then
20045 lt_prog_compiler_pic_CXX=-Kconform_pic
20046 fi
20047 ;;
20048 hpux*)
20049 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20050 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20051 # sets the default TLS model and affects inlining.
20052 case $host_cpu in
20053 hppa*64*)
20054 ;;
20055 *)
20056 lt_prog_compiler_pic_CXX='-fPIC'
20057 ;;
20058 esac
20059 ;;
20060 *qnx* | *nto*)
20061 # QNX uses GNU C++, but need to define -shared option too, otherwise
20062 # it will coredump.
20063 lt_prog_compiler_pic_CXX='-fPIC -shared'
20064 ;;
20065 *)
20066 lt_prog_compiler_pic_CXX='-fPIC'
20067 ;;
20068 esac
20069 else
20070 case $host_os in
20071 aix[4-9]*)
20072 # All AIX code is PIC.
20073 if test "$host_cpu" = ia64; then
20074 # AIX 5 now supports IA64 processor
20075 lt_prog_compiler_static_CXX='-Bstatic'
20076 else
20077 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
20078 fi
20079 ;;
20080 chorus*)
20081 case $cc_basename in
20082 cxch68*)
20083 # Green Hills C++ Compiler
20084 # _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"
20085 ;;
20086 esac
20087 ;;
cristyda16f162011-02-19 23:52:17 +000020088 mingw* | cygwin* | os2* | pw32* | cegcc*)
20089 # This hack is so that the source file can tell whether it is being
20090 # built for inclusion in a dll (and should export symbols for example).
20091 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20092 ;;
cristy73bd4a52010-10-05 11:24:23 +000020093 dgux*)
20094 case $cc_basename in
20095 ec++*)
20096 lt_prog_compiler_pic_CXX='-KPIC'
20097 ;;
20098 ghcx*)
20099 # Green Hills C++ Compiler
20100 lt_prog_compiler_pic_CXX='-pic'
20101 ;;
20102 *)
20103 ;;
20104 esac
20105 ;;
20106 freebsd* | dragonfly*)
20107 # FreeBSD uses GNU C++
20108 ;;
20109 hpux9* | hpux10* | hpux11*)
20110 case $cc_basename in
20111 CC*)
20112 lt_prog_compiler_wl_CXX='-Wl,'
20113 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20114 if test "$host_cpu" != ia64; then
20115 lt_prog_compiler_pic_CXX='+Z'
20116 fi
20117 ;;
20118 aCC*)
20119 lt_prog_compiler_wl_CXX='-Wl,'
20120 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20121 case $host_cpu in
20122 hppa*64*|ia64*)
20123 # +Z the default
20124 ;;
20125 *)
20126 lt_prog_compiler_pic_CXX='+Z'
20127 ;;
20128 esac
20129 ;;
20130 *)
20131 ;;
20132 esac
20133 ;;
20134 interix*)
20135 # This is c89, which is MS Visual C++ (no shared libs)
20136 # Anyone wants to do a port?
20137 ;;
20138 irix5* | irix6* | nonstopux*)
20139 case $cc_basename in
20140 CC*)
20141 lt_prog_compiler_wl_CXX='-Wl,'
20142 lt_prog_compiler_static_CXX='-non_shared'
20143 # CC pic flag -KPIC is the default.
20144 ;;
20145 *)
20146 ;;
20147 esac
20148 ;;
cristy0c60a692010-11-04 01:09:47 +000020149 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000020150 case $cc_basename in
20151 KCC*)
20152 # KAI C++ Compiler
20153 lt_prog_compiler_wl_CXX='--backend -Wl,'
20154 lt_prog_compiler_pic_CXX='-fPIC'
20155 ;;
20156 ecpc* )
20157 # old Intel C++ for x86_64 which still supported -KPIC.
20158 lt_prog_compiler_wl_CXX='-Wl,'
20159 lt_prog_compiler_pic_CXX='-KPIC'
20160 lt_prog_compiler_static_CXX='-static'
20161 ;;
20162 icpc* )
20163 # Intel C++, used to be incompatible with GCC.
20164 # ICC 10 doesn't accept -KPIC any more.
20165 lt_prog_compiler_wl_CXX='-Wl,'
20166 lt_prog_compiler_pic_CXX='-fPIC'
20167 lt_prog_compiler_static_CXX='-static'
20168 ;;
20169 pgCC* | pgcpp*)
20170 # Portland Group C++ compiler
20171 lt_prog_compiler_wl_CXX='-Wl,'
20172 lt_prog_compiler_pic_CXX='-fpic'
20173 lt_prog_compiler_static_CXX='-Bstatic'
20174 ;;
20175 cxx*)
20176 # Compaq C++
20177 # Make sure the PIC flag is empty. It appears that all Alpha
20178 # Linux and Compaq Tru64 Unix objects are PIC.
20179 lt_prog_compiler_pic_CXX=
20180 lt_prog_compiler_static_CXX='-non_shared'
20181 ;;
cristy0c60a692010-11-04 01:09:47 +000020182 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
20183 # IBM XL 8.0, 9.0 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000020184 lt_prog_compiler_wl_CXX='-Wl,'
20185 lt_prog_compiler_pic_CXX='-qpic'
20186 lt_prog_compiler_static_CXX='-qstaticlink'
20187 ;;
20188 *)
20189 case `$CC -V 2>&1 | sed 5q` in
20190 *Sun\ C*)
20191 # Sun C++ 5.9
20192 lt_prog_compiler_pic_CXX='-KPIC'
20193 lt_prog_compiler_static_CXX='-Bstatic'
20194 lt_prog_compiler_wl_CXX='-Qoption ld '
20195 ;;
20196 esac
20197 ;;
20198 esac
20199 ;;
20200 lynxos*)
20201 ;;
20202 m88k*)
20203 ;;
20204 mvs*)
20205 case $cc_basename in
20206 cxx*)
20207 lt_prog_compiler_pic_CXX='-W c,exportall'
20208 ;;
20209 *)
20210 ;;
20211 esac
20212 ;;
20213 netbsd*)
20214 ;;
20215 *qnx* | *nto*)
20216 # QNX uses GNU C++, but need to define -shared option too, otherwise
20217 # it will coredump.
20218 lt_prog_compiler_pic_CXX='-fPIC -shared'
20219 ;;
20220 osf3* | osf4* | osf5*)
20221 case $cc_basename in
20222 KCC*)
20223 lt_prog_compiler_wl_CXX='--backend -Wl,'
20224 ;;
20225 RCC*)
20226 # Rational C++ 2.4.1
20227 lt_prog_compiler_pic_CXX='-pic'
20228 ;;
20229 cxx*)
20230 # Digital/Compaq C++
20231 lt_prog_compiler_wl_CXX='-Wl,'
20232 # Make sure the PIC flag is empty. It appears that all Alpha
20233 # Linux and Compaq Tru64 Unix objects are PIC.
20234 lt_prog_compiler_pic_CXX=
20235 lt_prog_compiler_static_CXX='-non_shared'
20236 ;;
20237 *)
20238 ;;
20239 esac
20240 ;;
20241 psos*)
20242 ;;
20243 solaris*)
20244 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000020245 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000020246 # Sun C++ 4.2, 5.x and Centerline C++
20247 lt_prog_compiler_pic_CXX='-KPIC'
20248 lt_prog_compiler_static_CXX='-Bstatic'
20249 lt_prog_compiler_wl_CXX='-Qoption ld '
20250 ;;
20251 gcx*)
20252 # Green Hills C++ Compiler
20253 lt_prog_compiler_pic_CXX='-PIC'
20254 ;;
20255 *)
20256 ;;
20257 esac
20258 ;;
20259 sunos4*)
20260 case $cc_basename in
20261 CC*)
20262 # Sun C++ 4.x
20263 lt_prog_compiler_pic_CXX='-pic'
20264 lt_prog_compiler_static_CXX='-Bstatic'
20265 ;;
20266 lcc*)
20267 # Lucid
20268 lt_prog_compiler_pic_CXX='-pic'
20269 ;;
20270 *)
20271 ;;
20272 esac
20273 ;;
20274 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20275 case $cc_basename in
20276 CC*)
20277 lt_prog_compiler_wl_CXX='-Wl,'
20278 lt_prog_compiler_pic_CXX='-KPIC'
20279 lt_prog_compiler_static_CXX='-Bstatic'
20280 ;;
20281 esac
20282 ;;
20283 tandem*)
20284 case $cc_basename in
20285 NCC*)
20286 # NonStop-UX NCC 3.20
20287 lt_prog_compiler_pic_CXX='-KPIC'
20288 ;;
20289 *)
20290 ;;
20291 esac
20292 ;;
20293 vxworks*)
20294 ;;
20295 *)
20296 lt_prog_compiler_can_build_shared_CXX=no
20297 ;;
20298 esac
20299 fi
20300
20301case $host_os in
20302 # For platforms which do not support PIC, -DPIC is meaningless:
20303 *djgpp*)
20304 lt_prog_compiler_pic_CXX=
20305 ;;
20306 *)
20307 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20308 ;;
20309esac
cristy73bd4a52010-10-05 11:24:23 +000020310
cristyda16f162011-02-19 23:52:17 +000020311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20312$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20313if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
20314 $as_echo_n "(cached) " >&6
20315else
20316 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
20317fi
20318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
20319$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
20320lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
cristy73bd4a52010-10-05 11:24:23 +000020321
20322#
20323# Check to make sure the PIC flag actually works.
20324#
20325if test -n "$lt_prog_compiler_pic_CXX"; then
20326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20327$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020328if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020329 $as_echo_n "(cached) " >&6
20330else
20331 lt_cv_prog_compiler_pic_works_CXX=no
20332 ac_outfile=conftest.$ac_objext
20333 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20334 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20335 # Insert the option either (1) after the last *FLAGS variable, or
20336 # (2) before a word containing "conftest.", or (3) at the end.
20337 # Note that $ac_compile itself does not contain backslashes and begins
20338 # with a dollar sign (not a hyphen), so the echo should work correctly.
20339 # The option is referenced via a variable to avoid confusing sed.
20340 lt_compile=`echo "$ac_compile" | $SED \
20341 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20342 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20343 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000020344 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000020345 (eval "$lt_compile" 2>conftest.err)
20346 ac_status=$?
20347 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000020348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000020349 if (exit $ac_status) && test -s "$ac_outfile"; then
20350 # The compiler can only warn and ignore the option if not recognized
20351 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000020352 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000020353 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20354 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20355 lt_cv_prog_compiler_pic_works_CXX=yes
20356 fi
20357 fi
20358 $RM conftest*
20359
20360fi
20361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20362$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20363
20364if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20365 case $lt_prog_compiler_pic_CXX in
20366 "" | " "*) ;;
20367 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20368 esac
20369else
20370 lt_prog_compiler_pic_CXX=
20371 lt_prog_compiler_can_build_shared_CXX=no
20372fi
20373
20374fi
20375
20376
20377
cristyda16f162011-02-19 23:52:17 +000020378
20379
cristy73bd4a52010-10-05 11:24:23 +000020380#
20381# Check to make sure the static flag actually works.
20382#
20383wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20385$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020386if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020387 $as_echo_n "(cached) " >&6
20388else
20389 lt_cv_prog_compiler_static_works_CXX=no
20390 save_LDFLAGS="$LDFLAGS"
20391 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20392 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20393 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20394 # The linker can only warn and ignore the option if not recognized
20395 # So say no if there are warnings
20396 if test -s conftest.err; then
20397 # Append any errors to the config.log.
20398 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000020399 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000020400 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20401 if diff conftest.exp conftest.er2 >/dev/null; then
20402 lt_cv_prog_compiler_static_works_CXX=yes
20403 fi
20404 else
20405 lt_cv_prog_compiler_static_works_CXX=yes
20406 fi
20407 fi
20408 $RM -r conftest*
20409 LDFLAGS="$save_LDFLAGS"
20410
20411fi
20412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20413$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20414
20415if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20416 :
20417else
20418 lt_prog_compiler_static_CXX=
20419fi
20420
20421
20422
20423
20424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20425$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020426if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020427 $as_echo_n "(cached) " >&6
20428else
20429 lt_cv_prog_compiler_c_o_CXX=no
20430 $RM -r conftest 2>/dev/null
20431 mkdir conftest
20432 cd conftest
20433 mkdir out
20434 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20435
20436 lt_compiler_flag="-o out/conftest2.$ac_objext"
20437 # Insert the option either (1) after the last *FLAGS variable, or
20438 # (2) before a word containing "conftest.", or (3) at the end.
20439 # Note that $ac_compile itself does not contain backslashes and begins
20440 # with a dollar sign (not a hyphen), so the echo should work correctly.
20441 lt_compile=`echo "$ac_compile" | $SED \
20442 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20443 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20444 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000020445 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000020446 (eval "$lt_compile" 2>out/conftest.err)
20447 ac_status=$?
20448 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000020449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000020450 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20451 then
20452 # The compiler can only warn and ignore the option if not recognized
20453 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000020454 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000020455 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20456 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20457 lt_cv_prog_compiler_c_o_CXX=yes
20458 fi
20459 fi
20460 chmod u+w . 2>&5
20461 $RM conftest*
20462 # SGI C++ compiler will create directory out/ii_files/ for
20463 # template instantiation
20464 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20465 $RM out/* && rmdir out
20466 cd ..
20467 $RM -r conftest
20468 $RM conftest*
20469
20470fi
20471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20472$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20473
20474
20475
20476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20477$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020478if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020479 $as_echo_n "(cached) " >&6
20480else
20481 lt_cv_prog_compiler_c_o_CXX=no
20482 $RM -r conftest 2>/dev/null
20483 mkdir conftest
20484 cd conftest
20485 mkdir out
20486 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20487
20488 lt_compiler_flag="-o out/conftest2.$ac_objext"
20489 # Insert the option either (1) after the last *FLAGS variable, or
20490 # (2) before a word containing "conftest.", or (3) at the end.
20491 # Note that $ac_compile itself does not contain backslashes and begins
20492 # with a dollar sign (not a hyphen), so the echo should work correctly.
20493 lt_compile=`echo "$ac_compile" | $SED \
20494 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20495 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20496 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000020497 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000020498 (eval "$lt_compile" 2>out/conftest.err)
20499 ac_status=$?
20500 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000020501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000020502 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20503 then
20504 # The compiler can only warn and ignore the option if not recognized
20505 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000020506 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000020507 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20508 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20509 lt_cv_prog_compiler_c_o_CXX=yes
20510 fi
20511 fi
20512 chmod u+w . 2>&5
20513 $RM conftest*
20514 # SGI C++ compiler will create directory out/ii_files/ for
20515 # template instantiation
20516 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20517 $RM out/* && rmdir out
20518 cd ..
20519 $RM -r conftest
20520 $RM conftest*
20521
20522fi
20523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20524$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20525
20526
20527
20528
20529hard_links="nottested"
20530if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20531 # do not overwrite the value of need_locks provided by the user
20532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20533$as_echo_n "checking if we can lock with hard links... " >&6; }
20534 hard_links=yes
20535 $RM conftest*
20536 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20537 touch conftest.a
20538 ln conftest.a conftest.b 2>&5 || hard_links=no
20539 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20541$as_echo "$hard_links" >&6; }
20542 if test "$hard_links" = no; then
20543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20544$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20545 need_locks=warn
20546 fi
20547else
20548 need_locks=no
20549fi
20550
20551
20552
20553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20554$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20555
20556 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000020557 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
cristy73bd4a52010-10-05 11:24:23 +000020558 case $host_os in
20559 aix[4-9]*)
20560 # If we're using GNU nm, then we don't want the "-C" option.
20561 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000020562 # Also, AIX nm treats weak defined symbols like other global defined
20563 # symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000020564 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000020565 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 +000020566 else
20567 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'
20568 fi
20569 ;;
20570 pw32*)
20571 export_symbols_cmds_CXX="$ltdll_cmds"
cristyda16f162011-02-19 23:52:17 +000020572 ;;
cristy73bd4a52010-10-05 11:24:23 +000020573 cygwin* | mingw* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000020574 case $cc_basename in
cristy99bd5232011-12-07 14:38:20 +000020575 cl*)
20576 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
20577 ;;
cristyda16f162011-02-19 23:52:17 +000020578 *)
20579 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'
20580 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
20581 ;;
20582 esac
20583 ;;
cristy73bd4a52010-10-05 11:24:23 +000020584 *)
20585 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000020586 ;;
cristy73bd4a52010-10-05 11:24:23 +000020587 esac
cristy73bd4a52010-10-05 11:24:23 +000020588
20589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20590$as_echo "$ld_shlibs_CXX" >&6; }
20591test "$ld_shlibs_CXX" = no && can_build_shared=no
20592
20593with_gnu_ld_CXX=$with_gnu_ld
20594
20595
20596
20597
20598
20599
20600#
20601# Do we need to explicitly link libc?
20602#
20603case "x$archive_cmds_need_lc_CXX" in
20604x|xyes)
20605 # Assume -lc should be added
20606 archive_cmds_need_lc_CXX=yes
20607
20608 if test "$enable_shared" = yes && test "$GCC" = yes; then
20609 case $archive_cmds_CXX in
20610 *'~'*)
20611 # FIXME: we may have to deal with multi-command sequences.
20612 ;;
20613 '$CC '*)
20614 # Test whether the compiler implicitly links with -lc since on some
20615 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20616 # to ld, don't add -lc before -lgcc.
20617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20618$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020619if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000020620 $as_echo_n "(cached) " >&6
20621else
20622 $RM conftest*
20623 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000020624
cristy0c60a692010-11-04 01:09:47 +000020625 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000020626 (eval $ac_compile) 2>&5
20627 ac_status=$?
20628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20629 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000020630 soname=conftest
20631 lib=conftest
20632 libobjs=conftest.$ac_objext
20633 deplibs=
20634 wl=$lt_prog_compiler_wl_CXX
20635 pic_flag=$lt_prog_compiler_pic_CXX
20636 compiler_flags=-v
20637 linker_flags=-v
20638 verstring=
20639 output_objdir=.
20640 libname=conftest
20641 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20642 allow_undefined_flag_CXX=
20643 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 +000020644 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20645 ac_status=$?
20646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20647 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000020648 then
20649 lt_cv_archive_cmds_need_lc_CXX=no
20650 else
20651 lt_cv_archive_cmds_need_lc_CXX=yes
20652 fi
20653 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20654 else
20655 cat conftest.err 1>&5
20656 fi
20657 $RM conftest*
20658
20659fi
20660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20661$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20662 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
cristy73bd4a52010-10-05 11:24:23 +000020663 ;;
20664 esac
20665 fi
20666 ;;
20667esac
20668
20669
20670
20671
20672
20673
20674
20675
20676
20677
20678
20679
20680
20681
20682
20683
20684
20685
20686
20687
20688
20689
20690
20691
20692
20693
20694
20695
20696
20697
20698
20699
20700
20701
20702
20703
20704
20705
20706
20707
20708
20709
20710
20711
20712
20713
20714
20715
20716
20717
20718
20719
20720
20721
20722
20723
20724
20725
20726
20727
20728
20729
cristy73bd4a52010-10-05 11:24:23 +000020730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20731$as_echo_n "checking dynamic linker characteristics... " >&6; }
20732
20733library_names_spec=
20734libname_spec='lib$name'
20735soname_spec=
20736shrext_cmds=".so"
20737postinstall_cmds=
20738postuninstall_cmds=
20739finish_cmds=
20740finish_eval=
20741shlibpath_var=
20742shlibpath_overrides_runpath=unknown
20743version_type=none
20744dynamic_linker="$host_os ld.so"
20745sys_lib_dlsearch_path_spec="/lib /usr/lib"
20746need_lib_prefix=unknown
20747hardcode_into_libs=no
20748
20749# when you set need_version to no, make sure it does not cause -set_version
20750# flags to be left without arguments
20751need_version=unknown
20752
20753case $host_os in
20754aix3*)
cristy99bd5232011-12-07 14:38:20 +000020755 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020756 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20757 shlibpath_var=LIBPATH
20758
20759 # AIX 3 has no versioning support, so we append a major version to the name.
20760 soname_spec='${libname}${release}${shared_ext}$major'
20761 ;;
20762
20763aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000020764 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020765 need_lib_prefix=no
20766 need_version=no
20767 hardcode_into_libs=yes
20768 if test "$host_cpu" = ia64; then
20769 # AIX 5 supports IA64
20770 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20771 shlibpath_var=LD_LIBRARY_PATH
20772 else
20773 # With GCC up to 2.95.x, collect2 would create an import file
20774 # for dependence libraries. The import file would start with
20775 # the line `#! .'. This would cause the generated library to
20776 # depend on `.', always an invalid library. This was fixed in
20777 # development snapshots of GCC prior to 3.0.
20778 case $host_os in
20779 aix4 | aix4.[01] | aix4.[01].*)
20780 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20781 echo ' yes '
20782 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20783 :
20784 else
20785 can_build_shared=no
20786 fi
20787 ;;
20788 esac
20789 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20790 # soname into executable. Probably we can add versioning support to
20791 # collect2, so additional links can be useful in future.
20792 if test "$aix_use_runtimelinking" = yes; then
20793 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20794 # instead of lib<name>.a to let people know that these are not
20795 # typical AIX shared libraries.
20796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20797 else
20798 # We preserve .a as extension for shared libraries through AIX4.2
20799 # and later when we are not doing run time linking.
20800 library_names_spec='${libname}${release}.a $libname.a'
20801 soname_spec='${libname}${release}${shared_ext}$major'
20802 fi
20803 shlibpath_var=LIBPATH
20804 fi
20805 ;;
20806
20807amigaos*)
20808 case $host_cpu in
20809 powerpc)
20810 # Since July 2007 AmigaOS4 officially supports .so libraries.
20811 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20813 ;;
20814 m68k)
20815 library_names_spec='$libname.ixlibrary $libname.a'
20816 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000020817 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 +000020818 ;;
20819 esac
20820 ;;
20821
20822beos*)
20823 library_names_spec='${libname}${shared_ext}'
20824 dynamic_linker="$host_os ld.so"
20825 shlibpath_var=LIBRARY_PATH
20826 ;;
20827
20828bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000020829 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020830 need_version=no
20831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20832 soname_spec='${libname}${release}${shared_ext}$major'
20833 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20834 shlibpath_var=LD_LIBRARY_PATH
20835 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20836 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20837 # the default ld.so.conf also contains /usr/contrib/lib and
20838 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20839 # libtool to hard-code these into programs
20840 ;;
20841
20842cygwin* | mingw* | pw32* | cegcc*)
20843 version_type=windows
20844 shrext_cmds=".dll"
20845 need_version=no
20846 need_lib_prefix=no
20847
cristyda16f162011-02-19 23:52:17 +000020848 case $GCC,$cc_basename in
20849 yes,*)
20850 # gcc
cristy73bd4a52010-10-05 11:24:23 +000020851 library_names_spec='$libname.dll.a'
20852 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20853 postinstall_cmds='base_file=`basename \${file}`~
20854 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20855 dldir=$destdir/`dirname \$dlpath`~
20856 test -d \$dldir || mkdir -p \$dldir~
20857 $install_prog $dir/$dlname \$dldir/$dlname~
20858 chmod a+x \$dldir/$dlname~
20859 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20860 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20861 fi'
20862 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20863 dlpath=$dir/\$dldll~
20864 $RM \$dlpath'
20865 shlibpath_overrides_runpath=yes
20866
20867 case $host_os in
20868 cygwin*)
20869 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20870 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000020871
cristy73bd4a52010-10-05 11:24:23 +000020872 ;;
20873 mingw* | cegcc*)
20874 # MinGW DLLs use traditional 'lib' prefix
20875 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000020876 ;;
20877 pw32*)
20878 # pw32 DLLs use 'pw' prefix rather than 'lib'
20879 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20880 ;;
20881 esac
cristyda16f162011-02-19 23:52:17 +000020882 dynamic_linker='Win32 ld.exe'
20883 ;;
20884
20885 *,cl*)
20886 # Native MSVC
20887 libname_spec='$name'
20888 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20889 library_names_spec='${libname}.dll.lib'
20890
20891 case $build_os in
20892 mingw*)
20893 sys_lib_search_path_spec=
20894 lt_save_ifs=$IFS
20895 IFS=';'
20896 for lt_path in $LIB
20897 do
20898 IFS=$lt_save_ifs
20899 # Let DOS variable expansion print the short 8.3 style file name.
20900 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
20901 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
20902 done
20903 IFS=$lt_save_ifs
20904 # Convert to MSYS style.
20905 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
20906 ;;
20907 cygwin*)
20908 # Convert to unix form, then to dos form, then back to unix form
20909 # but this time dos style (no spaces!) so that the unix form looks
20910 # like /cygdrive/c/PROGRA~1:/cygdr...
20911 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
20912 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
20913 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20914 ;;
20915 *)
20916 sys_lib_search_path_spec="$LIB"
20917 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
20918 # It is most probably a Windows format PATH.
20919 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20920 else
20921 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20922 fi
20923 # FIXME: find the short name or the path components, as spaces are
20924 # common. (e.g. "Program Files" -> "PROGRA~1")
20925 ;;
20926 esac
20927
20928 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20929 postinstall_cmds='base_file=`basename \${file}`~
20930 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20931 dldir=$destdir/`dirname \$dlpath`~
20932 test -d \$dldir || mkdir -p \$dldir~
20933 $install_prog $dir/$dlname \$dldir/$dlname'
20934 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20935 dlpath=$dir/\$dldll~
20936 $RM \$dlpath'
20937 shlibpath_overrides_runpath=yes
20938 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000020939 ;;
20940
20941 *)
cristyda16f162011-02-19 23:52:17 +000020942 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000020943 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000020944 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000020945 ;;
20946 esac
cristy73bd4a52010-10-05 11:24:23 +000020947 # FIXME: first we should search . and the directory the executable is in
20948 shlibpath_var=PATH
20949 ;;
20950
20951darwin* | rhapsody*)
20952 dynamic_linker="$host_os dyld"
20953 version_type=darwin
20954 need_lib_prefix=no
20955 need_version=no
20956 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20957 soname_spec='${libname}${release}${major}$shared_ext'
20958 shlibpath_overrides_runpath=yes
20959 shlibpath_var=DYLD_LIBRARY_PATH
20960 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20961
20962 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20963 ;;
20964
20965dgux*)
cristy99bd5232011-12-07 14:38:20 +000020966 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020967 need_lib_prefix=no
20968 need_version=no
20969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20970 soname_spec='${libname}${release}${shared_ext}$major'
20971 shlibpath_var=LD_LIBRARY_PATH
20972 ;;
20973
cristy73bd4a52010-10-05 11:24:23 +000020974freebsd* | dragonfly*)
20975 # DragonFly does not have aout. When/if they implement a new
20976 # versioning mechanism, adjust this.
20977 if test -x /usr/bin/objformat; then
20978 objformat=`/usr/bin/objformat`
20979 else
20980 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000020981 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000020982 *) objformat=elf ;;
20983 esac
20984 fi
20985 version_type=freebsd-$objformat
20986 case $version_type in
20987 freebsd-elf*)
20988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20989 need_version=no
20990 need_lib_prefix=no
20991 ;;
20992 freebsd-*)
20993 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20994 need_version=yes
20995 ;;
20996 esac
20997 shlibpath_var=LD_LIBRARY_PATH
20998 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000020999 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000021000 shlibpath_overrides_runpath=yes
21001 ;;
21002 freebsd3.[01]* | freebsdelf3.[01]*)
21003 shlibpath_overrides_runpath=yes
21004 hardcode_into_libs=yes
21005 ;;
21006 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
21007 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
21008 shlibpath_overrides_runpath=no
21009 hardcode_into_libs=yes
21010 ;;
21011 *) # from 4.6 on, and DragonFly
21012 shlibpath_overrides_runpath=yes
21013 hardcode_into_libs=yes
21014 ;;
21015 esac
21016 ;;
21017
21018gnu*)
cristy99bd5232011-12-07 14:38:20 +000021019 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021020 need_lib_prefix=no
21021 need_version=no
21022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21023 soname_spec='${libname}${release}${shared_ext}$major'
21024 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000021025 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000021026 hardcode_into_libs=yes
21027 ;;
21028
cristy0c60a692010-11-04 01:09:47 +000021029haiku*)
cristy99bd5232011-12-07 14:38:20 +000021030 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000021031 need_lib_prefix=no
21032 need_version=no
21033 dynamic_linker="$host_os runtime_loader"
21034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21035 soname_spec='${libname}${release}${shared_ext}$major'
21036 shlibpath_var=LIBRARY_PATH
21037 shlibpath_overrides_runpath=yes
21038 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
21039 hardcode_into_libs=yes
21040 ;;
21041
cristy73bd4a52010-10-05 11:24:23 +000021042hpux9* | hpux10* | hpux11*)
21043 # Give a soname corresponding to the major version so that dld.sl refuses to
21044 # link against other versions.
21045 version_type=sunos
21046 need_lib_prefix=no
21047 need_version=no
21048 case $host_cpu in
21049 ia64*)
21050 shrext_cmds='.so'
21051 hardcode_into_libs=yes
21052 dynamic_linker="$host_os dld.so"
21053 shlibpath_var=LD_LIBRARY_PATH
21054 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21056 soname_spec='${libname}${release}${shared_ext}$major'
21057 if test "X$HPUX_IA64_MODE" = X32; then
21058 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21059 else
21060 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21061 fi
21062 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21063 ;;
21064 hppa*64*)
21065 shrext_cmds='.sl'
21066 hardcode_into_libs=yes
21067 dynamic_linker="$host_os dld.sl"
21068 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21069 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21071 soname_spec='${libname}${release}${shared_ext}$major'
21072 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21073 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21074 ;;
21075 *)
21076 shrext_cmds='.sl'
21077 dynamic_linker="$host_os dld.sl"
21078 shlibpath_var=SHLIB_PATH
21079 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21081 soname_spec='${libname}${release}${shared_ext}$major'
21082 ;;
21083 esac
cristy0c60a692010-11-04 01:09:47 +000021084 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000021085 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000021086 # or fails outright, so override atomically:
21087 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000021088 ;;
21089
21090interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000021091 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021092 need_lib_prefix=no
21093 need_version=no
21094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21095 soname_spec='${libname}${release}${shared_ext}$major'
21096 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21097 shlibpath_var=LD_LIBRARY_PATH
21098 shlibpath_overrides_runpath=no
21099 hardcode_into_libs=yes
21100 ;;
21101
21102irix5* | irix6* | nonstopux*)
21103 case $host_os in
21104 nonstopux*) version_type=nonstopux ;;
21105 *)
21106 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000021107 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021108 else
21109 version_type=irix
21110 fi ;;
21111 esac
21112 need_lib_prefix=no
21113 need_version=no
21114 soname_spec='${libname}${release}${shared_ext}$major'
21115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21116 case $host_os in
21117 irix5* | nonstopux*)
21118 libsuff= shlibsuff=
21119 ;;
21120 *)
21121 case $LD in # libtool.m4 will add one of these switches to LD
21122 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21123 libsuff= shlibsuff= libmagic=32-bit;;
21124 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21125 libsuff=32 shlibsuff=N32 libmagic=N32;;
21126 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21127 libsuff=64 shlibsuff=64 libmagic=64-bit;;
21128 *) libsuff= shlibsuff= libmagic=never-match;;
21129 esac
21130 ;;
21131 esac
21132 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21133 shlibpath_overrides_runpath=no
21134 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21135 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21136 hardcode_into_libs=yes
21137 ;;
21138
21139# No shared lib support for Linux oldld, aout, or coff.
21140linux*oldld* | linux*aout* | linux*coff*)
21141 dynamic_linker=no
21142 ;;
21143
cristy99bd5232011-12-07 14:38:20 +000021144# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000021145linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000021146 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021147 need_lib_prefix=no
21148 need_version=no
21149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21150 soname_spec='${libname}${release}${shared_ext}$major'
21151 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21152 shlibpath_var=LD_LIBRARY_PATH
21153 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000021154
cristy73bd4a52010-10-05 11:24:23 +000021155 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000021156 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000021157 $as_echo_n "(cached) " >&6
21158else
21159 lt_cv_shlibpath_overrides_runpath=no
21160 save_LDFLAGS=$LDFLAGS
21161 save_libdir=$libdir
21162 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21163 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000021165/* end confdefs.h. */
21166
21167int
21168main ()
21169{
21170
21171 ;
21172 return 0;
21173}
21174_ACEOF
21175if ac_fn_cxx_try_link "$LINENO"; then :
21176 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000021177 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000021178fi
21179fi
21180rm -f core conftest.err conftest.$ac_objext \
21181 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000021182 LDFLAGS=$save_LDFLAGS
21183 libdir=$save_libdir
21184
21185fi
21186
21187 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000021188
21189 # This implies no fast_install, which is unacceptable.
21190 # Some rework will be needed to allow for fast_install
21191 # before this can be enabled.
21192 hardcode_into_libs=yes
21193
21194 # Add ABI-specific directories to the system library path.
21195 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
21196
21197 # Append ld.so.conf contents to the search path
21198 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000021199 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 +000021200 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000021201
cristy73bd4a52010-10-05 11:24:23 +000021202 fi
21203
21204 # We used to test for /lib/ld.so.1 and disable shared libraries on
21205 # powerpc, because MkLinux only supported shared libraries with the
21206 # GNU dynamic linker. Since this was broken with cross compilers,
21207 # most powerpc-linux boxes support dynamic linking these days and
21208 # people can always --disable-shared, the test was removed, and we
21209 # assume the GNU/Linux dynamic linker is in use.
21210 dynamic_linker='GNU/Linux ld.so'
21211 ;;
21212
21213netbsd*)
21214 version_type=sunos
21215 need_lib_prefix=no
21216 need_version=no
21217 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21219 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21220 dynamic_linker='NetBSD (a.out) ld.so'
21221 else
21222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21223 soname_spec='${libname}${release}${shared_ext}$major'
21224 dynamic_linker='NetBSD ld.elf_so'
21225 fi
21226 shlibpath_var=LD_LIBRARY_PATH
21227 shlibpath_overrides_runpath=yes
21228 hardcode_into_libs=yes
21229 ;;
21230
21231newsos6)
cristy99bd5232011-12-07 14:38:20 +000021232 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21234 shlibpath_var=LD_LIBRARY_PATH
21235 shlibpath_overrides_runpath=yes
21236 ;;
21237
21238*nto* | *qnx*)
21239 version_type=qnx
21240 need_lib_prefix=no
21241 need_version=no
21242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21243 soname_spec='${libname}${release}${shared_ext}$major'
21244 shlibpath_var=LD_LIBRARY_PATH
21245 shlibpath_overrides_runpath=no
21246 hardcode_into_libs=yes
21247 dynamic_linker='ldqnx.so'
21248 ;;
21249
21250openbsd*)
21251 version_type=sunos
21252 sys_lib_dlsearch_path_spec="/usr/lib"
21253 need_lib_prefix=no
21254 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21255 case $host_os in
21256 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21257 *) need_version=no ;;
21258 esac
21259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21260 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21261 shlibpath_var=LD_LIBRARY_PATH
21262 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21263 case $host_os in
21264 openbsd2.[89] | openbsd2.[89].*)
21265 shlibpath_overrides_runpath=no
21266 ;;
21267 *)
21268 shlibpath_overrides_runpath=yes
21269 ;;
21270 esac
21271 else
21272 shlibpath_overrides_runpath=yes
21273 fi
21274 ;;
21275
21276os2*)
21277 libname_spec='$name'
21278 shrext_cmds=".dll"
21279 need_lib_prefix=no
21280 library_names_spec='$libname${shared_ext} $libname.a'
21281 dynamic_linker='OS/2 ld.exe'
21282 shlibpath_var=LIBPATH
21283 ;;
21284
21285osf3* | osf4* | osf5*)
21286 version_type=osf
21287 need_lib_prefix=no
21288 need_version=no
21289 soname_spec='${libname}${release}${shared_ext}$major'
21290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21291 shlibpath_var=LD_LIBRARY_PATH
21292 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21293 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21294 ;;
21295
21296rdos*)
21297 dynamic_linker=no
21298 ;;
21299
21300solaris*)
cristy99bd5232011-12-07 14:38:20 +000021301 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021302 need_lib_prefix=no
21303 need_version=no
21304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21305 soname_spec='${libname}${release}${shared_ext}$major'
21306 shlibpath_var=LD_LIBRARY_PATH
21307 shlibpath_overrides_runpath=yes
21308 hardcode_into_libs=yes
21309 # ldd complains unless libraries are executable
21310 postinstall_cmds='chmod +x $lib'
21311 ;;
21312
21313sunos4*)
21314 version_type=sunos
21315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21316 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21317 shlibpath_var=LD_LIBRARY_PATH
21318 shlibpath_overrides_runpath=yes
21319 if test "$with_gnu_ld" = yes; then
21320 need_lib_prefix=no
21321 fi
21322 need_version=yes
21323 ;;
21324
21325sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000021326 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21328 soname_spec='${libname}${release}${shared_ext}$major'
21329 shlibpath_var=LD_LIBRARY_PATH
21330 case $host_vendor in
21331 sni)
21332 shlibpath_overrides_runpath=no
21333 need_lib_prefix=no
21334 runpath_var=LD_RUN_PATH
21335 ;;
21336 siemens)
21337 need_lib_prefix=no
21338 ;;
21339 motorola)
21340 need_lib_prefix=no
21341 need_version=no
21342 shlibpath_overrides_runpath=no
21343 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21344 ;;
21345 esac
21346 ;;
21347
21348sysv4*MP*)
21349 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000021350 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021351 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21352 soname_spec='$libname${shared_ext}.$major'
21353 shlibpath_var=LD_LIBRARY_PATH
21354 fi
21355 ;;
21356
21357sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21358 version_type=freebsd-elf
21359 need_lib_prefix=no
21360 need_version=no
21361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21362 soname_spec='${libname}${release}${shared_ext}$major'
21363 shlibpath_var=LD_LIBRARY_PATH
21364 shlibpath_overrides_runpath=yes
21365 hardcode_into_libs=yes
21366 if test "$with_gnu_ld" = yes; then
21367 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21368 else
21369 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21370 case $host_os in
21371 sco3.2v5*)
21372 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21373 ;;
21374 esac
21375 fi
21376 sys_lib_dlsearch_path_spec='/usr/lib'
21377 ;;
21378
21379tpf*)
21380 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000021381 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021382 need_lib_prefix=no
21383 need_version=no
21384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21385 shlibpath_var=LD_LIBRARY_PATH
21386 shlibpath_overrides_runpath=no
21387 hardcode_into_libs=yes
21388 ;;
21389
21390uts4*)
cristy99bd5232011-12-07 14:38:20 +000021391 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21393 soname_spec='${libname}${release}${shared_ext}$major'
21394 shlibpath_var=LD_LIBRARY_PATH
21395 ;;
21396
21397*)
21398 dynamic_linker=no
21399 ;;
21400esac
21401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21402$as_echo "$dynamic_linker" >&6; }
21403test "$dynamic_linker" = no && can_build_shared=no
21404
21405variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21406if test "$GCC" = yes; then
21407 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21408fi
21409
21410if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21411 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21412fi
21413if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21414 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21415fi
21416
21417
21418
21419
21420
21421
21422
21423
21424
21425
21426
21427
21428
21429
21430
21431
21432
21433
21434
21435
21436
21437
21438
21439
21440
21441
21442
21443
21444
21445
21446
21447
21448
21449
21450
21451
cristy0c60a692010-11-04 01:09:47 +000021452
21453
cristy73bd4a52010-10-05 11:24:23 +000021454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21455$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21456hardcode_action_CXX=
21457if test -n "$hardcode_libdir_flag_spec_CXX" ||
21458 test -n "$runpath_var_CXX" ||
21459 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21460
21461 # We can hardcode non-existent directories.
21462 if test "$hardcode_direct_CXX" != no &&
21463 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21464 # have to relink, otherwise we might link with an installed library
21465 # when we should be linking with a yet-to-be-installed one
21466 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21467 test "$hardcode_minus_L_CXX" != no; then
21468 # Linking always hardcodes the temporary library directory.
21469 hardcode_action_CXX=relink
21470 else
21471 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21472 hardcode_action_CXX=immediate
21473 fi
21474else
21475 # We cannot hardcode anything, or else we can only hardcode existing
21476 # directories.
21477 hardcode_action_CXX=unsupported
21478fi
21479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21480$as_echo "$hardcode_action_CXX" >&6; }
21481
21482if test "$hardcode_action_CXX" = relink ||
21483 test "$inherit_rpath_CXX" = yes; then
21484 # Fast installation is not supported
21485 enable_fast_install=no
21486elif test "$shlibpath_overrides_runpath" = yes ||
21487 test "$enable_shared" = no; then
21488 # Fast installation is not necessary
21489 enable_fast_install=needless
21490fi
21491
21492
21493
21494
21495
21496
21497
21498 fi # test -n "$compiler"
21499
21500 CC=$lt_save_CC
cristyda16f162011-02-19 23:52:17 +000021501 CFLAGS=$lt_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000021502 LDCXX=$LD
21503 LD=$lt_save_LD
21504 GCC=$lt_save_GCC
21505 with_gnu_ld=$lt_save_with_gnu_ld
21506 lt_cv_path_LDCXX=$lt_cv_path_LD
21507 lt_cv_path_LD=$lt_save_path_LD
21508 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21509 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21510fi # test "$_lt_caught_CXX_error" != yes
21511
21512ac_ext=c
21513ac_cpp='$CPP $CPPFLAGS'
21514ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21515ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21516ac_compiler_gnu=$ac_cv_c_compiler_gnu
21517
21518
21519
21520
21521
21522
21523
21524
21525
21526
21527
21528
21529
cristy99bd5232011-12-07 14:38:20 +000021530
21531
cristy73bd4a52010-10-05 11:24:23 +000021532 ac_config_commands="$ac_config_commands libtool"
21533
21534
21535
21536
21537# Only expand once:
21538
21539
21540
cristy3ed852e2009-09-05 21:47:34 +000021541
21542
cristy3ed852e2009-09-05 21:47:34 +000021543# Check to see if building shared libraries
21544libtool_build_shared_libs='no'
21545if test "$enable_shared" = 'yes'; then
21546 libtool_build_shared_libs='yes'
21547fi
21548
21549# Check to see if building static libraries
21550libtool_build_static_libs='no'
21551if test "$enable_static" = 'yes'; then
21552 libtool_build_static_libs='yes'
21553fi
21554
cristy73bd4a52010-10-05 11:24:23 +000021555 if test "${libtool_build_shared_libs}" = 'yes'; then
21556 WITH_SHARED_LIBS_TRUE=
21557 WITH_SHARED_LIBS_FALSE='#'
21558else
21559 WITH_SHARED_LIBS_TRUE='#'
21560 WITH_SHARED_LIBS_FALSE=
21561fi
21562
cristy3ed852e2009-09-05 21:47:34 +000021563#
21564# Enable support for building loadable modules
21565#
cristyaf4cbf32012-10-16 23:47:41 +000021566build_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000021567
21568# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000021569if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021570 withval=$with_modules; with_modules=$withval
21571else
cristy5a1cefd2010-01-06 20:42:35 +000021572 with_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000021573fi
21574
21575
21576# Only allow building loadable modules if we are building shared libraries
21577if test "$with_modules" != 'no' ; then
21578 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000021579 { $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 +000021580$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
cristyc6722092012-10-14 00:19:31 +000021581 build_modules='no'
21582 else
21583 build_modules='yes'
21584 fi
cristy3ed852e2009-09-05 21:47:34 +000021585fi
cristyc6722092012-10-14 00:19:31 +000021586if test "$build_modules" != 'no' ; then
cristy3ed852e2009-09-05 21:47:34 +000021587
cristy8b350f62009-11-15 23:12:43 +000021588$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021589
cristyfa161182012-12-19 15:45:28 +000021590 MAGICK_FEATURES="$MAGICK_FEATURES Modules"
cristy3ed852e2009-09-05 21:47:34 +000021591fi
cristyc6722092012-10-14 00:19:31 +000021592 if test "$build_modules" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +000021593 WITH_MODULES_TRUE=
21594 WITH_MODULES_FALSE='#'
21595else
21596 WITH_MODULES_TRUE='#'
21597 WITH_MODULES_FALSE=
21598fi
21599
cristy3ed852e2009-09-05 21:47:34 +000021600
cristy3ed852e2009-09-05 21:47:34 +000021601# Enable build using delegate libraries built in subdirectories rather than installed
cristyfbb0ef02010-12-19 02:32:11 +000021602# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms lzma png tiff ttf wmf xml zlib)
cristy3ed852e2009-09-05 21:47:34 +000021603# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000021604if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021605 enableval=$enable_delegate_build; enable_delegate_build=$enableval
21606else
21607 enable_delegate_build='no'
21608fi
21609
21610
21611# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000021612if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021613 enableval=$enable_deprecated; enable_deprecated=$enableval
21614else
21615 enable_deprecated='no'
21616fi
21617
21618
21619if test "$enable_deprecated" = 'yes'; then
21620
cristy8b350f62009-11-15 23:12:43 +000021621$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021622
21623else
21624 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
21625fi
21626
21627# Build a version of ImageMagick which operates uninstalled.
21628# Used to build distributions located via MAGICK_HOME / executable path
21629# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000021630if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021631 enableval=$enable_installed; enable_installed=$enableval
21632else
21633 enable_installed='yes'
21634fi
21635
21636
21637if test "$enable_installed" = 'yes'; then
21638
cristy8b350f62009-11-15 23:12:43 +000021639$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021640
21641else
21642 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
21643fi
21644
21645# Permit enciphering and deciphering image pixels.
21646# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000021647if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021648 enableval=$enable_cipher; enable_cipher=$enableval
21649else
21650 enable_cipher='yes'
21651fi
21652
21653
21654if test "$enable_cipher" = 'yes'; then
21655
cristy8b350f62009-11-15 23:12:43 +000021656$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021657
cristy0f6fc2d2015-05-30 00:49:11 +000021658 MAGICK_FEATURES="Cipher $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000021659fi
21660
cristy6e3607c2011-09-13 13:59:17 +000021661# Build a zero-configuration version of ImageMagick.
21662# Check whether --enable-zero-configuration was given.
21663if test "${enable_zero_configuration+set}" = set; then :
21664 enableval=$enable_zero_configuration; enable_zero_configuration=$enableval
cristy3ed852e2009-09-05 21:47:34 +000021665else
cristy6e3607c2011-09-13 13:59:17 +000021666 enable_zero_configuration='no'
cristy3ed852e2009-09-05 21:47:34 +000021667fi
21668
21669
cristy6e3607c2011-09-13 13:59:17 +000021670if test "$enable_zero_configuration" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000021671
cristy6e3607c2011-09-13 13:59:17 +000021672$as_echo "#define ZERO_CONFIGURATION_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021673
cristy0f6fc2d2015-05-30 00:49:11 +000021674 MAGICK_FEATURES="Zero-configuration $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000021675fi
21676
21677# Build a high dynamic range version of ImageMagick.
21678# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000021679if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021680 enableval=$enable_hdri; enable_hdri=$enableval
21681else
cristy191c0b72012-08-12 16:29:52 +000021682 enable_hdri='yes'
cristy3ed852e2009-09-05 21:47:34 +000021683fi
21684
21685
21686MAGICK_HDRI=""
21687if test "$enable_hdri" = 'yes'; then
21688 MAGICK_HDRI="HDRI"
cristye52f12f2012-12-31 15:32:36 +000021689 magick_hdri_enable='1';
cristyfd9dcd42010-08-08 18:07:02 +000021690 MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
cristye52f12f2012-12-31 15:32:36 +000021691else
21692 magick_hdri_enable='0'
cristy3ed852e2009-09-05 21:47:34 +000021693fi
21694
cristye52f12f2012-12-31 15:32:36 +000021695cat >>confdefs.h <<_ACEOF
21696#define HDRI_ENABLE_OBSOLETE_IN_H $magick_hdri_enable
21697_ACEOF
21698
21699MAGICK_PCFLAGS="$MAGICK_PCFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
21700CFLAGS="$CFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
cristy72062382012-12-31 16:49:52 +000021701CPPFLAGS="$CPPFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
cristye52f12f2012-12-31 15:32:36 +000021702
cristy3ed852e2009-09-05 21:47:34 +000021703# Build a version of ImageMagick with assert statements.
21704# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000021705if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021706 enableval=$enable_assert; enable_assert=$enableval
21707else
21708 enable_assert='yes'
21709fi
21710
21711
21712if test "$enable_assert" = 'no'; then
21713
cristy8b350f62009-11-15 23:12:43 +000021714$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021715
21716fi
21717
cristya448bd22011-10-14 12:38:13 +000021718# Don't emit "rebuild rules" for configure, Makefile.ins, etc.
cristy73bd4a52010-10-05 11:24:23 +000021719
21720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
21721$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
21722 # Check whether --enable-maintainer-mode was given.
21723if test "${enable_maintainer_mode+set}" = set; then :
21724 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
21725else
21726 USE_MAINTAINER_MODE=no
21727fi
21728
21729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
21730$as_echo "$USE_MAINTAINER_MODE" >&6; }
21731 if test $USE_MAINTAINER_MODE = yes; then
21732 MAINTAINER_MODE_TRUE=
21733 MAINTAINER_MODE_FALSE='#'
21734else
21735 MAINTAINER_MODE_TRUE='#'
21736 MAINTAINER_MODE_FALSE=
21737fi
21738
21739 MAINT=$MAINTAINER_MODE_TRUE
21740
21741
cristy3ed852e2009-09-05 21:47:34 +000021742
cristy944e51f2013-04-16 18:45:02 +000021743# Enable hugepages support
21744# Check whether --enable-hugepages was given.
21745if test "${enable_hugepages+set}" = set; then :
21746 enableval=$enable_hugepages; enable_hugepages=$enableval
21747else
21748 enable_hugepages='no'
21749fi
21750
21751
cristy3ed852e2009-09-05 21:47:34 +000021752# Enable ccmalloc memory debugging support
21753# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000021754if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021755 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
21756else
21757 enable_ccmalloc='no'
21758fi
21759
21760
21761# Enable Electric Fence memory debugging support
21762# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000021763if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021764 enableval=$enable_efence; enable_efence=$enableval
21765else
21766 enable_efence='no'
21767fi
21768
21769
21770# Enable prof-based profiling support
21771# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000021772if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021773 enableval=$enable_prof; enable_prof=$enableval
21774else
21775 enable_prof='no'
21776fi
21777
21778
21779# Enable gprof-based profiling support
21780# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000021781if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021782 enableval=$enable_gprof; enable_gprof=$enableval
21783else
21784 enable_gprof='no'
21785fi
21786
21787
21788# Enable gcov-based profiling support
21789# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000021790if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021791 enableval=$enable_gcov; enable_gcov=$enableval
21792else
21793 enable_gcov='no'
21794fi
21795
21796
21797enable_profiling='no'
21798if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
21799 enable_profiling='yes'
21800 if test "$libtool_build_shared_libs" = 'yes'; then
21801 echo "Warning: Can not profile code using shared libraries"
21802 fi
21803fi
21804
21805# Magick API method prefix
21806
21807# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000021808if test "${with_method_prefix+set}" = set; then :
cristyfc3d0222012-02-07 15:05:57 +000021809 withval=$with_method_prefix; with_method_prefix=$withval
cristy3ed852e2009-09-05 21:47:34 +000021810else
cristyfc3d0222012-02-07 15:05:57 +000021811 with_method_prefix='no'
cristy3ed852e2009-09-05 21:47:34 +000021812fi
21813
21814
cristyfc3d0222012-02-07 15:05:57 +000021815if test "$with_method_prefix" != 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000021816
21817cat >>confdefs.h <<_ACEOF
21818#define NAMESPACE_PREFIX $with_method_prefix
21819_ACEOF
21820
cristyfc3d0222012-02-07 15:05:57 +000021821 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-method-prefix "
cristy3ed852e2009-09-05 21:47:34 +000021822fi
21823
cristy71d8c202012-03-20 17:05:01 +000021824# Enable legacy support (default no)
21825# Check whether --enable-legacy-support was given.
21826if test "${enable_legacy_support+set}" = set; then :
21827 enableval=$enable_legacy_support; with_legacy_support=$enableval
21828else
21829 with_legacy_support='no'
21830fi
21831
21832 if test "$with_legacy_support" != 'no'; then
21833 LEGACY_SUPPORT_TRUE=
21834 LEGACY_SUPPORT_FALSE='#'
21835else
21836 LEGACY_SUPPORT_TRUE='#'
21837 LEGACY_SUPPORT_FALSE=
21838fi
21839
21840
cristy3ed852e2009-09-05 21:47:34 +000021841# Number of bits in a Quantum
21842
21843# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000021844if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021845 withval=$with_quantum_depth; with_quantum_depth=$withval
21846else
21847 with_quantum_depth=16
21848fi
21849
21850
21851if test "$with_quantum_depth" != '8'; then
21852 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
21853fi
21854
21855case "${with_quantum_depth}" in
21856 8 ) ;;
21857 16 ) ;;
21858 32 ) ;;
21859 64 ) ;;
cristy98dddb52010-11-04 00:30:15 +000021860 * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000021861esac
21862QUANTUM_DEPTH="$with_quantum_depth"
21863
21864cat >>confdefs.h <<_ACEOF
cristye52f12f2012-12-31 15:32:36 +000021865#define QUANTUM_DEPTH_OBSOLETE_IN_H $QUANTUM_DEPTH
cristy3ed852e2009-09-05 21:47:34 +000021866_ACEOF
21867
cristya371edf2013-02-06 13:42:17 +000021868MAGICK_PCFLAGS="$MAGICK_PCFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristye52f12f2012-12-31 15:32:36 +000021869CFLAGS="$CFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristy72062382012-12-31 16:49:52 +000021870CPPFLAGS="$CPPFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristy3ed852e2009-09-05 21:47:34 +000021871
cristy01ff9f32012-12-01 18:15:29 +000021872# define a lib suffix for abi purpose
cristy7a26abd2012-12-03 00:18:59 +000021873MAGICK_ABI_SUFFIX="Q${QUANTUM_DEPTH}"
cristye386d192012-12-01 21:05:20 +000021874if test "$enable_hdri" = 'yes'; then
cristy7a26abd2012-12-03 00:18:59 +000021875 MAGICK_ABI_SUFFIX="Q${QUANTUM_DEPTH}${MAGICK_HDRI}"
cristye386d192012-12-01 21:05:20 +000021876fi
cristy01ff9f32012-12-01 18:15:29 +000021877
21878
cristy3ed852e2009-09-05 21:47:34 +000021879# Set pixel cache threshold
21880
21881# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000021882if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021883 withval=$with_cache; with_cache=$withval
21884else
21885 with_cache=''
21886fi
21887
21888
21889if test "$with_cache" != ''; then
21890
21891cat >>confdefs.h <<_ACEOF
21892#define PixelCacheThreshold $with_cache
21893_ACEOF
21894
21895 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
21896fi
21897
21898# Disable/Enable support for full delegate paths
21899
21900# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000021901if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021902 withval=$with_frozenpaths; with_frozenpaths=$withval
21903else
21904 with_frozenpaths='no'
21905fi
21906
21907
21908# Enable build/install of Magick++
21909
21910# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000021911if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021912 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
21913else
21914 with_magick_plus_plus='yes'
21915fi
21916
21917
cristy3a75f062012-09-08 23:29:40 +000021918# Encode the this name into the shared library.
21919
21920# Check whether --with-package-release-name was given.
21921if test "${with_package_release_name+set}" = set; then :
21922 withval=$with_package_release_name; MAGICK_LT_RELEASE_OPTS="-release $withval"
21923fi
21924
21925
21926
cristy3ed852e2009-09-05 21:47:34 +000021927# Disable build/install of PerlMagick.
21928
21929# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000021930if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021931 withval=$with_perl; with_perl=$withval
21932else
cristyb5f4e2f2010-04-25 00:49:11 +000021933 with_perl='no'
cristy3ed852e2009-09-05 21:47:34 +000021934fi
21935
21936
21937# Options to pass when configuring PerlMagick
21938
21939# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000021940if test "${with_perl_options+set}" = set; then :
cristy949301e2010-01-06 01:38:40 +000021941 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
cristy3ed852e2009-09-05 21:47:34 +000021942fi
21943
21944
cristy3ed852e2009-09-05 21:47:34 +000021945
cristy3b0097d2014-11-04 15:34:47 +000021946# Enable jemalloc, object-caching memory allocation library.
21947
21948# Check whether --with-jemalloc was given.
21949if test "${with_jemalloc+set}" = set; then :
21950 withval=$with_jemalloc; with_jemalloc=$withval
21951else
21952 with_jemalloc='no'
21953fi
21954
21955if test "$with_jemalloc" != 'yes' ; then
21956 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jemalloc=$with_jemalloc "
21957fi
21958
cristy3ed852e2009-09-05 21:47:34 +000021959# Enable umem, object-caching memory allocation library.
21960
21961# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000021962if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021963 withval=$with_umem; with_umem=$withval
21964else
21965 with_umem='no'
21966fi
21967
21968if test "$with_umem" != 'yes' ; then
21969 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
21970fi
21971
21972#
21973# Specify path to shared libstdc++ if not in normal location
21974#
21975
21976# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000021977if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021978 withval=$with_libstdc; with_libstdc=$withval
21979else
21980 with_libstdc=''
21981fi
21982
21983
21984if test "$with_libstdc" != ''; then
21985 if test -d "$with_libstdc"; then
21986 LIBSTDCLDFLAGS="-L$with_libstdc"
21987 fi
21988fi
21989
21990
21991# Does gcc required -traditional?
21992if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000021993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021994$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021995if ${ac_cv_prog_gcc_traditional+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021996 $as_echo_n "(cached) " >&6
21997else
21998 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000021999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022000/* end confdefs.h. */
22001#include <sgtty.h>
22002Autoconf TIOCGETP
22003_ACEOF
22004if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022005 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000022006 ac_cv_prog_gcc_traditional=yes
22007else
22008 ac_cv_prog_gcc_traditional=no
22009fi
22010rm -f conftest*
22011
22012
22013 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000022014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022015/* end confdefs.h. */
22016#include <termio.h>
22017Autoconf TCGETA
22018_ACEOF
22019if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022020 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000022021 ac_cv_prog_gcc_traditional=yes
22022fi
22023rm -f conftest*
22024
22025 fi
22026fi
cristy8b350f62009-11-15 23:12:43 +000022027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000022028$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
22029 if test $ac_cv_prog_gcc_traditional = yes; then
22030 CC="$CC -traditional"
22031 fi
22032fi
22033
22034
22035########
22036#
22037# Set defines required to build DLLs and modules using MinGW
22038#
22039########
22040# These options are set for multi-thread DLL module build
22041# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
22042# module: _DLL
22043# executable/Magick++: _DLL _MAGICKMOD_
22044MODULE_EXTRA_CPPFLAGS=''
22045LIBRARY_EXTRA_CPPFLAGS=''
22046if test "${native_win32_build}" = 'yes'; then
22047 if test "${libtool_build_shared_libs}" = 'yes'; then
22048 CPPFLAGS="$CPPFLAGS -D_DLL"
22049 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
22050 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
22051 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
cristyc6722092012-10-14 00:19:31 +000022052 if test "$build_modules" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000022053 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
22054 else
22055 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
22056 fi
22057 else
22058 CPPFLAGS="$CPPFLAGS -D_LIB"
22059 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
22060 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
22061 fi
22062 if test "$with_threads" = 'yes'; then
22063 CPPFLAGS="$CPPFLAGS -D_MT"
22064 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
22065 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
22066 fi
22067fi
22068
22069
22070
22071# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000022072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000022073$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022074if ${ac_cv_header_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022075 $as_echo_n "(cached) " >&6
22076else
cristy8b350f62009-11-15 23:12:43 +000022077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022078/* end confdefs.h. */
22079#include <stdlib.h>
22080#include <stdarg.h>
22081#include <string.h>
22082#include <float.h>
22083
22084int
22085main ()
22086{
22087
22088 ;
22089 return 0;
22090}
22091_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022092if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022093 ac_cv_header_stdc=yes
22094else
cristy8b350f62009-11-15 23:12:43 +000022095 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000022096fi
cristy3ed852e2009-09-05 21:47:34 +000022097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22098
22099if test $ac_cv_header_stdc = yes; then
22100 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000022101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022102/* end confdefs.h. */
22103#include <string.h>
22104
22105_ACEOF
22106if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022107 $EGREP "memchr" >/dev/null 2>&1; then :
22108
cristy3ed852e2009-09-05 21:47:34 +000022109else
22110 ac_cv_header_stdc=no
22111fi
22112rm -f conftest*
22113
22114fi
22115
22116if test $ac_cv_header_stdc = yes; then
22117 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000022118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022119/* end confdefs.h. */
22120#include <stdlib.h>
22121
22122_ACEOF
22123if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022124 $EGREP "free" >/dev/null 2>&1; then :
22125
cristy3ed852e2009-09-05 21:47:34 +000022126else
22127 ac_cv_header_stdc=no
22128fi
22129rm -f conftest*
22130
22131fi
22132
22133if test $ac_cv_header_stdc = yes; then
22134 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000022135 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022136 :
22137else
cristy8b350f62009-11-15 23:12:43 +000022138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022139/* end confdefs.h. */
22140#include <ctype.h>
22141#include <stdlib.h>
22142#if ((' ' & 0x0FF) == 0x020)
22143# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
22144# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
22145#else
22146# define ISLOWER(c) \
22147 (('a' <= (c) && (c) <= 'i') \
22148 || ('j' <= (c) && (c) <= 'r') \
22149 || ('s' <= (c) && (c) <= 'z'))
22150# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
22151#endif
22152
22153#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
22154int
22155main ()
22156{
22157 int i;
22158 for (i = 0; i < 256; i++)
22159 if (XOR (islower (i), ISLOWER (i))
22160 || toupper (i) != TOUPPER (i))
22161 return 2;
22162 return 0;
22163}
22164_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022165if ac_fn_c_try_run "$LINENO"; then :
22166
cristy3ed852e2009-09-05 21:47:34 +000022167else
cristy8b350f62009-11-15 23:12:43 +000022168 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000022169fi
cristy8b350f62009-11-15 23:12:43 +000022170rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22171 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022172fi
22173
cristy3ed852e2009-09-05 21:47:34 +000022174fi
22175fi
cristy8b350f62009-11-15 23:12:43 +000022176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000022177$as_echo "$ac_cv_header_stdc" >&6; }
22178if test $ac_cv_header_stdc = yes; then
22179
cristy8b350f62009-11-15 23:12:43 +000022180$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022181
22182fi
22183
22184if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000022185 { $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 +000022186 header files. Compilation cannot proceed. Please install the ANSI C
22187 headers and rerun this script." >&5
22188$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
22189 header files. Compilation cannot proceed. Please install the ANSI C
22190 headers and rerun this script." >&2;};
22191fi
cristya0b81c32010-01-22 02:54:33 +000022192
22193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
22194$as_echo_n "checking whether to enable assertions... " >&6; }
22195 # Check whether --enable-assert was given.
22196if test "${enable_assert+set}" = set; then :
22197 enableval=$enable_assert; ac_enable_assert=$enableval
22198 if test "x$enableval" = xno; then :
22199
22200$as_echo "#define NDEBUG 1" >>confdefs.h
22201
22202elif test "x$enableval" != xyes; then :
22203 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
22204$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
22205 ac_enable_assert=yes
22206fi
22207else
22208 ac_enable_assert=yes
22209fi
22210
22211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
22212$as_echo "$ac_enable_assert" >&6; }
22213
cristy3ed852e2009-09-05 21:47:34 +000022214ac_header_dirent=no
22215for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22216 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000022217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000022218$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022219if eval \${$as_ac_Header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022220 $as_echo_n "(cached) " >&6
22221else
cristy8b350f62009-11-15 23:12:43 +000022222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022223/* end confdefs.h. */
22224#include <sys/types.h>
22225#include <$ac_hdr>
22226
22227int
22228main ()
22229{
22230if ((DIR *) 0)
22231return 0;
22232 ;
22233 return 0;
22234}
22235_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022236if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022237 eval "$as_ac_Header=yes"
22238else
cristy8b350f62009-11-15 23:12:43 +000022239 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000022240fi
cristy3ed852e2009-09-05 21:47:34 +000022241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22242fi
cristy8b350f62009-11-15 23:12:43 +000022243eval ac_res=\$$as_ac_Header
22244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000022245$as_echo "$ac_res" >&6; }
cristy98dddb52010-11-04 00:30:15 +000022246if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000022247 cat >>confdefs.h <<_ACEOF
22248#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22249_ACEOF
22250
22251ac_header_dirent=$ac_hdr; break
22252fi
22253
22254done
22255# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22256if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000022257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000022258$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022259if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022260 $as_echo_n "(cached) " >&6
22261else
22262 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000022263cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022264/* end confdefs.h. */
22265
22266/* Override any GCC internal prototype to avoid an error.
22267 Use char because int might match the return type of a GCC
22268 builtin and then its argument prototype would still apply. */
22269#ifdef __cplusplus
22270extern "C"
22271#endif
22272char opendir ();
22273int
22274main ()
22275{
22276return opendir ();
22277 ;
22278 return 0;
22279}
22280_ACEOF
22281for ac_lib in '' dir; do
22282 if test -z "$ac_lib"; then
22283 ac_res="none required"
22284 else
22285 ac_res=-l$ac_lib
22286 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22287 fi
cristy8b350f62009-11-15 23:12:43 +000022288 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022289 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000022290fi
cristy8b350f62009-11-15 23:12:43 +000022291rm -f core conftest.err conftest.$ac_objext \
22292 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000022293 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022294 break
22295fi
22296done
cristyda16f162011-02-19 23:52:17 +000022297if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000022298
cristy3ed852e2009-09-05 21:47:34 +000022299else
22300 ac_cv_search_opendir=no
22301fi
22302rm conftest.$ac_ext
22303LIBS=$ac_func_search_save_LIBS
22304fi
cristy8b350f62009-11-15 23:12:43 +000022305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000022306$as_echo "$ac_cv_search_opendir" >&6; }
22307ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000022308if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000022309 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22310
22311fi
22312
22313else
cristy8b350f62009-11-15 23:12:43 +000022314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000022315$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022316if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022317 $as_echo_n "(cached) " >&6
22318else
22319 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000022320cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022321/* end confdefs.h. */
22322
22323/* Override any GCC internal prototype to avoid an error.
22324 Use char because int might match the return type of a GCC
22325 builtin and then its argument prototype would still apply. */
22326#ifdef __cplusplus
22327extern "C"
22328#endif
22329char opendir ();
22330int
22331main ()
22332{
22333return opendir ();
22334 ;
22335 return 0;
22336}
22337_ACEOF
22338for ac_lib in '' x; do
22339 if test -z "$ac_lib"; then
22340 ac_res="none required"
22341 else
22342 ac_res=-l$ac_lib
22343 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22344 fi
cristy8b350f62009-11-15 23:12:43 +000022345 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022346 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000022347fi
cristy8b350f62009-11-15 23:12:43 +000022348rm -f core conftest.err conftest.$ac_objext \
22349 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000022350 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022351 break
22352fi
22353done
cristyda16f162011-02-19 23:52:17 +000022354if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000022355
cristy3ed852e2009-09-05 21:47:34 +000022356else
22357 ac_cv_search_opendir=no
22358fi
22359rm conftest.$ac_ext
22360LIBS=$ac_func_search_save_LIBS
22361fi
cristy8b350f62009-11-15 23:12:43 +000022362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000022363$as_echo "$ac_cv_search_opendir" >&6; }
22364ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000022365if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000022366 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22367
22368fi
22369
22370fi
22371
22372
22373# Check additional headers
cristy03f187e2013-01-24 00:22:19 +000022374for ac_header in arm/limits.h arpa/inet.h complex.h errno.h fcntl.h limits.h linux/unistd.h locale.h machine/param.h mach-o/dyld.h netinet/in.h OS.h process.h sun_prefetch.h stdarg.h sys/ipc.h sys/mman.h sys/resource.h sys/socket.h sys/syslimits.h sys/time.h sys/timeb.h sys/times.h sys/wait.h wchar.h xlocale.h
cristy8b350f62009-11-15 23:12:43 +000022375do :
22376 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22377ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000022378if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000022379 cat >>confdefs.h <<_ACEOF
22380#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22381_ACEOF
22382
22383fi
22384
22385done
22386
22387
22388########
22389#
22390# Checks for typedefs, structures, and compiler characteristics.
22391#
22392########
22393
cristy8b350f62009-11-15 23:12:43 +000022394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000022395$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022396if ${ac_cv_header_stdbool_h+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022397 $as_echo_n "(cached) " >&6
22398else
cristy8b350f62009-11-15 23:12:43 +000022399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022400/* end confdefs.h. */
22401
cristy14fefe52012-05-21 00:59:18 +000022402 #include <stdbool.h>
22403 #ifndef bool
22404 "error: bool is not defined"
22405 #endif
22406 #ifndef false
22407 "error: false is not defined"
22408 #endif
22409 #if false
22410 "error: false is not 0"
22411 #endif
22412 #ifndef true
22413 "error: true is not defined"
22414 #endif
22415 #if true != 1
22416 "error: true is not 1"
22417 #endif
22418 #ifndef __bool_true_false_are_defined
22419 "error: __bool_true_false_are_defined is not defined"
22420 #endif
cristy3ed852e2009-09-05 21:47:34 +000022421
cristy14fefe52012-05-21 00:59:18 +000022422 struct s { _Bool s: 1; _Bool t; } s;
cristy3ed852e2009-09-05 21:47:34 +000022423
cristy14fefe52012-05-21 00:59:18 +000022424 char a[true == 1 ? 1 : -1];
22425 char b[false == 0 ? 1 : -1];
22426 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
22427 char d[(bool) 0.5 == true ? 1 : -1];
22428 /* See body of main program for 'e'. */
22429 char f[(_Bool) 0.0 == false ? 1 : -1];
22430 char g[true];
22431 char h[sizeof (_Bool)];
22432 char i[sizeof s.t];
22433 enum { j = false, k = true, l = false * true, m = true * 256 };
22434 /* The following fails for
22435 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
22436 _Bool n[m];
22437 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
22438 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
22439 /* Catch a bug in an HP-UX C compiler. See
22440 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
22441 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
22442 */
22443 _Bool q = true;
22444 _Bool *pq = &q;
cristy3ed852e2009-09-05 21:47:34 +000022445
22446int
22447main ()
22448{
22449
cristy14fefe52012-05-21 00:59:18 +000022450 bool e = &s;
22451 *pq |= q;
22452 *pq |= ! q;
22453 /* Refer to every declared value, to avoid compiler optimizations. */
22454 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
22455 + !m + !n + !o + !p + !q + !pq);
cristy3ed852e2009-09-05 21:47:34 +000022456
22457 ;
22458 return 0;
22459}
22460_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022461if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022462 ac_cv_header_stdbool_h=yes
22463else
cristy8b350f62009-11-15 23:12:43 +000022464 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000022465fi
cristy3ed852e2009-09-05 21:47:34 +000022466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22467fi
cristy8b350f62009-11-15 23:12:43 +000022468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000022469$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy14fefe52012-05-21 00:59:18 +000022470 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000022471if test "x$ac_cv_type__Bool" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000022472
22473cat >>confdefs.h <<_ACEOF
22474#define HAVE__BOOL 1
22475_ACEOF
22476
22477
22478fi
22479
cristy14fefe52012-05-21 00:59:18 +000022480
cristy3ed852e2009-09-05 21:47:34 +000022481if test $ac_cv_header_stdbool_h = yes; then
22482
cristy8b350f62009-11-15 23:12:43 +000022483$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022484
22485fi
22486
cristy8b350f62009-11-15 23:12:43 +000022487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000022488$as_echo_n "checking for working volatile... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022489if ${ac_cv_c_volatile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022490 $as_echo_n "(cached) " >&6
22491else
cristy8b350f62009-11-15 23:12:43 +000022492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022493/* end confdefs.h. */
22494
22495int
22496main ()
22497{
22498
22499volatile int x;
22500int * volatile y = (int *) 0;
22501return !x && !y;
22502 ;
22503 return 0;
22504}
22505_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022506if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022507 ac_cv_c_volatile=yes
22508else
cristy8b350f62009-11-15 23:12:43 +000022509 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000022510fi
cristy3ed852e2009-09-05 21:47:34 +000022511rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22512fi
cristy8b350f62009-11-15 23:12:43 +000022513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000022514$as_echo "$ac_cv_c_volatile" >&6; }
22515if test $ac_cv_c_volatile = no; then
22516
cristy8b350f62009-11-15 23:12:43 +000022517$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022518
22519fi
22520
cristy8b350f62009-11-15 23:12:43 +000022521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000022522$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022523if ${ac_cv_c_stringize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022524 $as_echo_n "(cached) " >&6
22525else
cristy8b350f62009-11-15 23:12:43 +000022526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022527/* end confdefs.h. */
22528#define x(y) #y
22529
22530char *s = x(teststring);
22531_ACEOF
22532if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022533 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000022534 ac_cv_c_stringize=no
22535else
22536 ac_cv_c_stringize=yes
22537fi
22538rm -f conftest*
22539
22540fi
cristy8b350f62009-11-15 23:12:43 +000022541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000022542$as_echo "$ac_cv_c_stringize" >&6; }
22543if test $ac_cv_c_stringize = yes; then
22544
cristy8b350f62009-11-15 23:12:43 +000022545$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022546
22547fi
22548
cristy8b350f62009-11-15 23:12:43 +000022549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000022550$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022551if ${ac_cv_header_stat_broken+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022552 $as_echo_n "(cached) " >&6
22553else
cristy8b350f62009-11-15 23:12:43 +000022554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022555/* end confdefs.h. */
22556#include <sys/types.h>
22557#include <sys/stat.h>
22558
22559#if defined S_ISBLK && defined S_IFDIR
22560extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
22561#endif
22562
22563#if defined S_ISBLK && defined S_IFCHR
22564extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
22565#endif
22566
22567#if defined S_ISLNK && defined S_IFREG
22568extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
22569#endif
22570
22571#if defined S_ISSOCK && defined S_IFREG
22572extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
22573#endif
22574
22575_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022576if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022577 ac_cv_header_stat_broken=no
22578else
cristy8b350f62009-11-15 23:12:43 +000022579 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000022580fi
cristy3ed852e2009-09-05 21:47:34 +000022581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22582fi
cristy8b350f62009-11-15 23:12:43 +000022583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000022584$as_echo "$ac_cv_header_stat_broken" >&6; }
22585if test $ac_cv_header_stat_broken = yes; then
22586
cristy8b350f62009-11-15 23:12:43 +000022587$as_echo "#define STAT_MACROS_BROKEN 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 time.h and sys/time.h may both be included" >&5
cristy3ed852e2009-09-05 21:47:34 +000022592$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022593if ${ac_cv_header_time+:} 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/time.h>
22600#include <time.h>
22601
22602int
22603main ()
22604{
22605if ((struct tm *) 0)
22606return 0;
22607 ;
22608 return 0;
22609}
22610_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022611if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022612 ac_cv_header_time=yes
22613else
cristy8b350f62009-11-15 23:12:43 +000022614 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000022615fi
cristy3ed852e2009-09-05 21:47:34 +000022616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22617fi
cristy8b350f62009-11-15 23:12:43 +000022618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000022619$as_echo "$ac_cv_header_time" >&6; }
22620if test $ac_cv_header_time = yes; then
22621
cristy8b350f62009-11-15 23:12:43 +000022622$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022623
22624fi
22625
cristy8b350f62009-11-15 23:12:43 +000022626{ $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 +000022627$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022628if ${ac_cv_struct_tm+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022629 $as_echo_n "(cached) " >&6
22630else
cristy8b350f62009-11-15 23:12:43 +000022631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022632/* end confdefs.h. */
22633#include <sys/types.h>
22634#include <time.h>
22635
22636int
22637main ()
22638{
22639struct tm tm;
22640 int *p = &tm.tm_sec;
22641 return !p;
22642 ;
22643 return 0;
22644}
22645_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022646if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022647 ac_cv_struct_tm=time.h
22648else
cristy8b350f62009-11-15 23:12:43 +000022649 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000022650fi
cristy3ed852e2009-09-05 21:47:34 +000022651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22652fi
cristy8b350f62009-11-15 23:12:43 +000022653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000022654$as_echo "$ac_cv_struct_tm" >&6; }
22655if test $ac_cv_struct_tm = sys/time.h; then
22656
cristy8b350f62009-11-15 23:12:43 +000022657$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022658
22659fi
22660
cristy92703d82010-04-26 00:18:18 +000022661ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
22662#include <$ac_cv_struct_tm>
22663
22664"
cristyda16f162011-02-19 23:52:17 +000022665if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000022666
22667cat >>confdefs.h <<_ACEOF
22668#define HAVE_STRUCT_TM_TM_ZONE 1
22669_ACEOF
22670
22671
22672fi
22673
22674if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
22675
22676$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
22677
22678else
22679 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
22680"
cristyda16f162011-02-19 23:52:17 +000022681if test "x$ac_cv_have_decl_tzname" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000022682 ac_have_decl=1
22683else
22684 ac_have_decl=0
22685fi
22686
22687cat >>confdefs.h <<_ACEOF
22688#define HAVE_DECL_TZNAME $ac_have_decl
22689_ACEOF
22690
22691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
22692$as_echo_n "checking for tzname... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022693if ${ac_cv_var_tzname+:} false; then :
cristy92703d82010-04-26 00:18:18 +000022694 $as_echo_n "(cached) " >&6
22695else
22696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22697/* end confdefs.h. */
22698#include <time.h>
22699#if !HAVE_DECL_TZNAME
22700extern char *tzname[];
22701#endif
22702
22703int
22704main ()
22705{
22706return tzname[0][0];
22707 ;
22708 return 0;
22709}
22710_ACEOF
22711if ac_fn_c_try_link "$LINENO"; then :
22712 ac_cv_var_tzname=yes
22713else
22714 ac_cv_var_tzname=no
22715fi
22716rm -f core conftest.err conftest.$ac_objext \
22717 conftest$ac_exeext conftest.$ac_ext
22718fi
22719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
22720$as_echo "$ac_cv_var_tzname" >&6; }
22721 if test $ac_cv_var_tzname = yes; then
22722
22723$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
22724
22725 fi
22726fi
22727
cristy8b350f62009-11-15 23:12:43 +000022728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000022729$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022730if ${ac_cv_sys_interpreter+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022731 $as_echo_n "(cached) " >&6
22732else
22733 echo '#! /bin/cat
22734exit 69
22735' >conftest
22736chmod u+x conftest
22737(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
22738if test $? -ne 69; then
22739 ac_cv_sys_interpreter=yes
22740else
22741 ac_cv_sys_interpreter=no
22742fi
22743rm -f conftest
22744fi
cristy8b350f62009-11-15 23:12:43 +000022745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000022746$as_echo "$ac_cv_sys_interpreter" >&6; }
22747interpval=$ac_cv_sys_interpreter
22748
22749
cristye80f9cb2013-01-09 01:09:31 +000022750#
22751# Checks for language qualifiers and semantics.
22752#
22753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
22754$as_echo_n "checking whether char is unsigned... " >&6; }
22755if ${ac_cv_c_char_unsigned+:} false; then :
22756 $as_echo_n "(cached) " >&6
22757else
22758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22759/* end confdefs.h. */
22760$ac_includes_default
22761int
22762main ()
22763{
22764static int test_array [1 - 2 * !(((char) -1) < 0)];
22765test_array [0] = 0;
22766return test_array [0];
22767
22768 ;
22769 return 0;
22770}
22771_ACEOF
22772if ac_fn_c_try_compile "$LINENO"; then :
22773 ac_cv_c_char_unsigned=no
22774else
22775 ac_cv_c_char_unsigned=yes
22776fi
22777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22778fi
22779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
22780$as_echo "$ac_cv_c_char_unsigned" >&6; }
22781if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
22782 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
22783
22784fi
22785
22786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
22787$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
22788if ${ac_cv_c_const+:} false; then :
22789 $as_echo_n "(cached) " >&6
22790else
22791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22792/* end confdefs.h. */
22793
22794int
22795main ()
22796{
22797
22798#ifndef __cplusplus
22799 /* Ultrix mips cc rejects this sort of thing. */
22800 typedef int charset[2];
22801 const charset cs = { 0, 0 };
22802 /* SunOS 4.1.1 cc rejects this. */
22803 char const *const *pcpcc;
22804 char **ppc;
22805 /* NEC SVR4.0.2 mips cc rejects this. */
22806 struct point {int x, y;};
22807 static struct point const zero = {0,0};
22808 /* AIX XL C 1.02.0.0 rejects this.
22809 It does not let you subtract one const X* pointer from another in
22810 an arm of an if-expression whose if-part is not a constant
22811 expression */
22812 const char *g = "string";
22813 pcpcc = &g + (g ? g-g : 0);
22814 /* HPUX 7.0 cc rejects these. */
22815 ++pcpcc;
22816 ppc = (char**) pcpcc;
22817 pcpcc = (char const *const *) ppc;
22818 { /* SCO 3.2v4 cc rejects this sort of thing. */
22819 char tx;
22820 char *t = &tx;
22821 char const *s = 0 ? (char *) 0 : (char const *) 0;
22822
22823 *t++ = 0;
22824 if (s) return 0;
22825 }
22826 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
22827 int x[] = {25, 17};
22828 const int *foo = &x[0];
22829 ++foo;
22830 }
22831 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22832 typedef const int *iptr;
22833 iptr p = 0;
22834 ++p;
22835 }
22836 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
22837 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22838 struct s { int j; const int *ap[3]; } bx;
22839 struct s *b = &bx; b->j = 5;
22840 }
22841 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22842 const int foo = 10;
22843 if (!foo) return 0;
22844 }
22845 return !cs[0] && !zero.x;
22846#endif
22847
22848 ;
22849 return 0;
22850}
22851_ACEOF
22852if ac_fn_c_try_compile "$LINENO"; then :
22853 ac_cv_c_const=yes
22854else
22855 ac_cv_c_const=no
22856fi
22857rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22858fi
22859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
22860$as_echo "$ac_cv_c_const" >&6; }
22861if test $ac_cv_c_const = no; then
22862
22863$as_echo "#define const /**/" >>confdefs.h
22864
22865fi
22866
cristy8b350f62009-11-15 23:12:43 +000022867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022868$as_echo_n "checking for inline... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022869if ${ac_cv_c_inline+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022870 $as_echo_n "(cached) " >&6
22871else
22872 ac_cv_c_inline=no
22873for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000022874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022875/* end confdefs.h. */
22876#ifndef __cplusplus
22877typedef int foo_t;
22878static $ac_kw foo_t static_foo () {return 0; }
22879$ac_kw foo_t foo () {return 0; }
22880#endif
22881
22882_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022883if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022884 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022885fi
cristy3ed852e2009-09-05 21:47:34 +000022886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22887 test "$ac_cv_c_inline" != no && break
22888done
22889
22890fi
cristy8b350f62009-11-15 23:12:43 +000022891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022892$as_echo "$ac_cv_c_inline" >&6; }
22893
cristy3ed852e2009-09-05 21:47:34 +000022894case $ac_cv_c_inline in
22895 inline | yes) ;;
22896 *)
22897 case $ac_cv_c_inline in
22898 no) ac_val=;;
22899 *) ac_val=$ac_cv_c_inline;;
22900 esac
22901 cat >>confdefs.h <<_ACEOF
22902#ifndef __cplusplus
22903#define inline $ac_val
22904#endif
22905_ACEOF
22906 ;;
22907esac
22908
cristy8b350f62009-11-15 23:12:43 +000022909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000022910$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022911if ${ac_cv_c_restrict+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022912 $as_echo_n "(cached) " >&6
22913else
22914 ac_cv_c_restrict=no
22915 # The order here caters to the fact that C++ does not require restrict.
22916 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000022917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022918/* end confdefs.h. */
22919typedef int * int_ptr;
22920 int foo (int_ptr $ac_kw ip) {
22921 return ip[0];
22922 }
22923int
22924main ()
22925{
22926int s[1];
22927 int * $ac_kw t = s;
22928 t[0] = 0;
22929 return foo(t)
22930 ;
22931 return 0;
22932}
22933_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022934if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022935 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022936fi
cristy3ed852e2009-09-05 21:47:34 +000022937rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22938 test "$ac_cv_c_restrict" != no && break
22939 done
22940
22941fi
cristy8b350f62009-11-15 23:12:43 +000022942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000022943$as_echo "$ac_cv_c_restrict" >&6; }
22944
cristy3ed852e2009-09-05 21:47:34 +000022945 case $ac_cv_c_restrict in
22946 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000022947 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022948 ;;
22949 *) cat >>confdefs.h <<_ACEOF
22950#define restrict $ac_cv_c_restrict
22951_ACEOF
22952 ;;
22953 esac
22954
cristye80f9cb2013-01-09 01:09:31 +000022955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
22956$as_echo_n "checking for working volatile... " >&6; }
22957if ${ac_cv_c_volatile+:} false; then :
22958 $as_echo_n "(cached) " >&6
22959else
22960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22961/* end confdefs.h. */
22962
22963int
22964main ()
22965{
22966
22967volatile int x;
22968int * volatile y = (int *) 0;
22969return !x && !y;
22970 ;
22971 return 0;
22972}
22973_ACEOF
22974if ac_fn_c_try_compile "$LINENO"; then :
22975 ac_cv_c_volatile=yes
22976else
22977 ac_cv_c_volatile=no
22978fi
22979rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22980fi
22981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
22982$as_echo "$ac_cv_c_volatile" >&6; }
22983if test $ac_cv_c_volatile = no; then
22984
22985$as_echo "#define volatile /**/" >>confdefs.h
22986
22987fi
22988
cristy3ed852e2009-09-05 21:47:34 +000022989
22990# If words are stored with the most significant byte first (like
22991# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000022992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022993$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022994if ${ac_cv_c_bigendian+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022995 $as_echo_n "(cached) " >&6
22996else
22997 ac_cv_c_bigendian=unknown
22998 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000022999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023000/* end confdefs.h. */
23001#ifndef __APPLE_CC__
23002 not a universal capable compiler
23003 #endif
23004 typedef int dummy;
23005
23006_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023007if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023008
23009 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000023010 # there are at least two -arch flags with different values.
23011 ac_arch=
23012 ac_prev=
23013 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
23014 if test -n "$ac_prev"; then
23015 case $ac_word in
23016 i?86 | x86_64 | ppc | ppc64)
23017 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
23018 ac_arch=$ac_word
23019 else
23020 ac_cv_c_bigendian=universal
23021 break
23022 fi
23023 ;;
23024 esac
23025 ac_prev=
23026 elif test "x$ac_word" = "x-arch"; then
23027 ac_prev=arch
23028 fi
23029 done
cristy3ed852e2009-09-05 21:47:34 +000023030fi
cristy3ed852e2009-09-05 21:47:34 +000023031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23032 if test $ac_cv_c_bigendian = unknown; then
23033 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000023034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023035/* end confdefs.h. */
23036#include <sys/types.h>
23037 #include <sys/param.h>
23038
23039int
23040main ()
23041{
23042#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
23043 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
23044 && LITTLE_ENDIAN)
23045 bogus endian macros
23046 #endif
23047
23048 ;
23049 return 0;
23050}
23051_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023052if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023053 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000023054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023055/* end confdefs.h. */
23056#include <sys/types.h>
23057 #include <sys/param.h>
23058
23059int
23060main ()
23061{
23062#if BYTE_ORDER != BIG_ENDIAN
23063 not big endian
23064 #endif
23065
23066 ;
23067 return 0;
23068}
23069_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023070if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023071 ac_cv_c_bigendian=yes
23072else
cristy8b350f62009-11-15 23:12:43 +000023073 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000023074fi
cristy3ed852e2009-09-05 21:47:34 +000023075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023076fi
cristy3ed852e2009-09-05 21:47:34 +000023077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23078 fi
23079 if test $ac_cv_c_bigendian = unknown; then
23080 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000023081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023082/* end confdefs.h. */
23083#include <limits.h>
23084
23085int
23086main ()
23087{
23088#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
23089 bogus endian macros
23090 #endif
23091
23092 ;
23093 return 0;
23094}
23095_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023096if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023097 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000023098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023099/* end confdefs.h. */
23100#include <limits.h>
23101
23102int
23103main ()
23104{
23105#ifndef _BIG_ENDIAN
23106 not big endian
23107 #endif
23108
23109 ;
23110 return 0;
23111}
23112_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023113if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023114 ac_cv_c_bigendian=yes
23115else
cristy8b350f62009-11-15 23:12:43 +000023116 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000023117fi
cristy3ed852e2009-09-05 21:47:34 +000023118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023119fi
cristy3ed852e2009-09-05 21:47:34 +000023120rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23121 fi
23122 if test $ac_cv_c_bigendian = unknown; then
23123 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000023124 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023125 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000023126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023127/* end confdefs.h. */
23128short int ascii_mm[] =
23129 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
23130 short int ascii_ii[] =
23131 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
23132 int use_ascii (int i) {
23133 return ascii_mm[i] + ascii_ii[i];
23134 }
23135 short int ebcdic_ii[] =
23136 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
23137 short int ebcdic_mm[] =
23138 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
23139 int use_ebcdic (int i) {
23140 return ebcdic_mm[i] + ebcdic_ii[i];
23141 }
23142 extern int foo;
23143
23144int
23145main ()
23146{
23147return use_ascii (foo) == use_ebcdic (foo);
23148 ;
23149 return 0;
23150}
23151_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023152if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023153 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
23154 ac_cv_c_bigendian=yes
23155 fi
23156 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
23157 if test "$ac_cv_c_bigendian" = unknown; then
23158 ac_cv_c_bigendian=no
23159 else
23160 # finding both strings is unlikely to happen, but who knows?
23161 ac_cv_c_bigendian=unknown
23162 fi
23163 fi
cristy3ed852e2009-09-05 21:47:34 +000023164fi
cristy3ed852e2009-09-05 21:47:34 +000023165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23166else
cristy8b350f62009-11-15 23:12:43 +000023167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023168/* end confdefs.h. */
23169$ac_includes_default
23170int
23171main ()
23172{
23173
23174 /* Are we little or big endian? From Harbison&Steele. */
23175 union
23176 {
23177 long int l;
23178 char c[sizeof (long int)];
23179 } u;
23180 u.l = 1;
23181 return u.c[sizeof (long int) - 1] == 1;
23182
23183 ;
23184 return 0;
23185}
23186_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023187if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023188 ac_cv_c_bigendian=no
23189else
cristy8b350f62009-11-15 23:12:43 +000023190 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000023191fi
cristy8b350f62009-11-15 23:12:43 +000023192rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23193 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023194fi
23195
cristy3ed852e2009-09-05 21:47:34 +000023196 fi
23197fi
cristy8b350f62009-11-15 23:12:43 +000023198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000023199$as_echo "$ac_cv_c_bigendian" >&6; }
23200 case $ac_cv_c_bigendian in #(
23201 yes)
cristy8b350f62009-11-15 23:12:43 +000023202 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023203;; #(
23204 no)
23205 ;; #(
23206 universal)
23207
cristy8b350f62009-11-15 23:12:43 +000023208$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023209
23210 ;; #(
23211 *)
cristy98dddb52010-11-04 00:30:15 +000023212 as_fn_error $? "unknown endianness
cristy8b350f62009-11-15 23:12:43 +000023213 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000023214 esac
23215
23216
cristy501c8042011-05-26 17:46:28 +000023217# Define to a suitable type, if standard headers do not define it.
23218ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
23219case $ac_cv_c_int8_t in #(
23220 no|yes) ;; #(
23221 *)
cristy3ed852e2009-09-05 21:47:34 +000023222
23223cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000023224#define int8_t $ac_cv_c_int8_t
23225_ACEOF
23226;;
23227esac
23228
23229ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
23230case $ac_cv_c_int16_t in #(
23231 no|yes) ;; #(
23232 *)
23233
23234cat >>confdefs.h <<_ACEOF
23235#define int16_t $ac_cv_c_int16_t
23236_ACEOF
23237;;
23238esac
23239
23240ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
23241case $ac_cv_c_int32_t in #(
23242 no|yes) ;; #(
23243 *)
23244
23245cat >>confdefs.h <<_ACEOF
23246#define int32_t $ac_cv_c_int32_t
23247_ACEOF
23248;;
23249esac
23250
23251ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
23252case $ac_cv_c_int64_t in #(
23253 no|yes) ;; #(
23254 *)
23255
23256cat >>confdefs.h <<_ACEOF
23257#define int64_t $ac_cv_c_int64_t
23258_ACEOF
23259;;
23260esac
23261
23262
cristy045228a2013-06-23 11:00:16 +000023263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23264$as_echo_n "checking for unsigned long long int... " >&6; }
23265if ${ac_cv_type_unsigned_long_long_int+:} false; then :
cristy501c8042011-05-26 17:46:28 +000023266 $as_echo_n "(cached) " >&6
23267else
cristy045228a2013-06-23 11:00:16 +000023268 ac_cv_type_unsigned_long_long_int=yes
23269 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
23270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy501c8042011-05-26 17:46:28 +000023271/* end confdefs.h. */
23272
23273 /* For now, do not test the preprocessor; as of 2007 there are too many
cristy5ed9c6e2013-07-14 21:20:31 +000023274 implementations with broken preprocessors. Perhaps this can
23275 be revisited in 2012. In the meantime, code should not expect
23276 #if to work with literals wider than 32 bits. */
cristy501c8042011-05-26 17:46:28 +000023277 /* Test literals. */
23278 long long int ll = 9223372036854775807ll;
23279 long long int nll = -9223372036854775807LL;
23280 unsigned long long int ull = 18446744073709551615ULL;
23281 /* Test constant expressions. */
23282 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
cristy5ed9c6e2013-07-14 21:20:31 +000023283 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000023284 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
cristy5ed9c6e2013-07-14 21:20:31 +000023285 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000023286 int i = 63;
23287int
23288main ()
23289{
23290/* Test availability of runtime routines for shift and division. */
23291 long long int llmax = 9223372036854775807ll;
23292 unsigned long long int ullmax = 18446744073709551615ull;
23293 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
cristy5ed9c6e2013-07-14 21:20:31 +000023294 | (llmax / ll) | (llmax % ll)
23295 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23296 | (ullmax / ull) | (ullmax % ull));
cristy501c8042011-05-26 17:46:28 +000023297 ;
23298 return 0;
23299}
23300
23301_ACEOF
23302if ac_fn_c_try_link "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000023303
23304else
23305 ac_cv_type_unsigned_long_long_int=no
23306fi
23307rm -f core conftest.err conftest.$ac_objext \
23308 conftest$ac_exeext conftest.$ac_ext
23309 fi
23310fi
23311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23312$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23313 if test $ac_cv_type_unsigned_long_long_int = yes; then
23314
23315$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23316
23317 fi
23318
23319
23320
23321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
23322$as_echo_n "checking for long long int... " >&6; }
23323if ${ac_cv_type_long_long_int+:} false; then :
23324 $as_echo_n "(cached) " >&6
23325else
cristy501c8042011-05-26 17:46:28 +000023326 ac_cv_type_long_long_int=yes
cristy045228a2013-06-23 11:00:16 +000023327 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
cristy5ed9c6e2013-07-14 21:20:31 +000023328 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
23329 if test $ac_cv_type_long_long_int = yes; then
23330 if test "$cross_compiling" = yes; then :
cristy045228a2013-06-23 11:00:16 +000023331 :
cristy501c8042011-05-26 17:46:28 +000023332else
23333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23334/* end confdefs.h. */
23335#include <limits.h>
cristy5ed9c6e2013-07-14 21:20:31 +000023336 #ifndef LLONG_MAX
23337 # define HALF \
23338 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
23339 # define LLONG_MAX (HALF - 1 + HALF)
23340 #endif
cristy501c8042011-05-26 17:46:28 +000023341int
23342main ()
23343{
23344long long int n = 1;
cristy5ed9c6e2013-07-14 21:20:31 +000023345 int i;
23346 for (i = 0; ; i++)
23347 {
23348 long long int m = n << i;
23349 if (m >> i != n)
23350 return 1;
23351 if (LLONG_MAX / 2 < m)
23352 break;
23353 }
23354 return 0;
cristy501c8042011-05-26 17:46:28 +000023355 ;
23356 return 0;
23357}
23358_ACEOF
23359if ac_fn_c_try_run "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000023360
cristy501c8042011-05-26 17:46:28 +000023361else
23362 ac_cv_type_long_long_int=no
23363fi
23364rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23365 conftest.$ac_objext conftest.beam conftest.$ac_ext
23366fi
23367
cristy5ed9c6e2013-07-14 21:20:31 +000023368 fi
cristy045228a2013-06-23 11:00:16 +000023369 fi
cristy501c8042011-05-26 17:46:28 +000023370fi
23371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
23372$as_echo "$ac_cv_type_long_long_int" >&6; }
23373 if test $ac_cv_type_long_long_int = yes; then
23374
23375$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
23376
23377 fi
23378
23379
23380
23381 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
23382if test "x$ac_cv_type_intmax_t" = xyes; then :
23383
23384$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
23385
23386else
23387 test $ac_cv_type_long_long_int = yes \
23388 && ac_type='long long int' \
23389 || ac_type='long int'
23390
23391cat >>confdefs.h <<_ACEOF
23392#define intmax_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000023393_ACEOF
23394
23395fi
23396
23397
cristy501c8042011-05-26 17:46:28 +000023398
23399 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
23400if test "x$ac_cv_type_intptr_t" = xyes; then :
23401
23402$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023403
cristy3ed852e2009-09-05 21:47:34 +000023404else
cristy501c8042011-05-26 17:46:28 +000023405 for ac_type in 'int' 'long int' 'long long int'; do
23406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23407/* end confdefs.h. */
23408$ac_includes_default
23409int
23410main ()
23411{
23412static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
cristy14fefe52012-05-21 00:59:18 +000023413test_array [0] = 0;
23414return test_array [0];
cristy501c8042011-05-26 17:46:28 +000023415
23416 ;
23417 return 0;
23418}
23419_ACEOF
23420if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023421
23422cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000023423#define intptr_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000023424_ACEOF
23425
cristy501c8042011-05-26 17:46:28 +000023426 ac_type=
23427fi
23428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23429 test -z "$ac_type" && break
23430 done
cristy3ed852e2009-09-05 21:47:34 +000023431fi
23432
23433
cristy3ed852e2009-09-05 21:47:34 +000023434
cristy501c8042011-05-26 17:46:28 +000023435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
23436$as_echo_n "checking for long double... " >&6; }
23437if ${ac_cv_type_long_double+:} false; then :
23438 $as_echo_n "(cached) " >&6
cristy3ed852e2009-09-05 21:47:34 +000023439else
cristy501c8042011-05-26 17:46:28 +000023440 if test "$GCC" = yes; then
23441 ac_cv_type_long_double=yes
23442 else
23443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23444/* end confdefs.h. */
23445/* The Stardent Vistra knows sizeof (long double), but does
23446 not support it. */
23447 long double foo = 0.0L;
23448int
23449main ()
23450{
23451static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
23452 sizeof (double) <= sizeof (long double))];
cristy14fefe52012-05-21 00:59:18 +000023453test_array [0] = 0;
23454return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000023455
cristy501c8042011-05-26 17:46:28 +000023456 ;
23457 return 0;
23458}
cristy3ed852e2009-09-05 21:47:34 +000023459_ACEOF
cristy501c8042011-05-26 17:46:28 +000023460if ac_fn_c_try_compile "$LINENO"; then :
23461 ac_cv_type_long_double=yes
cristy3ed852e2009-09-05 21:47:34 +000023462else
cristy501c8042011-05-26 17:46:28 +000023463 ac_cv_type_long_double=no
cristy3ed852e2009-09-05 21:47:34 +000023464fi
cristy501c8042011-05-26 17:46:28 +000023465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23466 fi
cristy3ed852e2009-09-05 21:47:34 +000023467fi
cristy501c8042011-05-26 17:46:28 +000023468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
23469$as_echo "$ac_cv_type_long_double" >&6; }
23470 if test $ac_cv_type_long_double = yes; then
cristy3ed852e2009-09-05 21:47:34 +000023471
cristy501c8042011-05-26 17:46:28 +000023472$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023473
cristy501c8042011-05-26 17:46:28 +000023474 fi
23475
cristy3ed852e2009-09-05 21:47:34 +000023476
cristy8b350f62009-11-15 23:12:43 +000023477 { $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 +000023478$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023479if ${ac_cv_type_long_double_wider+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023480 $as_echo_n "(cached) " >&6
23481else
cristy8b350f62009-11-15 23:12:43 +000023482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023483/* end confdefs.h. */
23484#include <float.h>
23485 long double const a[] =
23486 {
23487 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
23488 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
23489 };
23490 long double
23491 f (long double x)
23492 {
23493 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
23494 + (x ? f (x) : 'c'));
23495 }
23496
23497int
23498main ()
23499{
23500static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
23501 + (DBL_MANT_DIG < LDBL_MANT_DIG)
23502 - (LDBL_MAX_EXP < DBL_MAX_EXP)
23503 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
23504 && (int) LDBL_EPSILON == 0
23505 )];
cristy14fefe52012-05-21 00:59:18 +000023506test_array [0] = 0;
23507return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000023508
23509 ;
23510 return 0;
23511}
23512_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023513if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023514 ac_cv_type_long_double_wider=yes
23515else
cristy8b350f62009-11-15 23:12:43 +000023516 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000023517fi
cristy3ed852e2009-09-05 21:47:34 +000023518rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23519fi
cristy8b350f62009-11-15 23:12:43 +000023520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000023521$as_echo "$ac_cv_type_long_double_wider" >&6; }
23522 if test $ac_cv_type_long_double_wider = yes; then
23523
cristy8b350f62009-11-15 23:12:43 +000023524$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023525
23526 fi
23527
23528
cristy045228a2013-06-23 11:00:16 +000023529
cristy501c8042011-05-26 17:46:28 +000023530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
23531$as_echo_n "checking for long long int... " >&6; }
23532if ${ac_cv_type_long_long_int+:} false; then :
23533 $as_echo_n "(cached) " >&6
23534else
cristy501c8042011-05-26 17:46:28 +000023535 ac_cv_type_long_long_int=yes
cristy045228a2013-06-23 11:00:16 +000023536 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
cristy5ed9c6e2013-07-14 21:20:31 +000023537 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
23538 if test $ac_cv_type_long_long_int = yes; then
23539 if test "$cross_compiling" = yes; then :
cristy045228a2013-06-23 11:00:16 +000023540 :
cristy501c8042011-05-26 17:46:28 +000023541else
23542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23543/* end confdefs.h. */
23544#include <limits.h>
cristy5ed9c6e2013-07-14 21:20:31 +000023545 #ifndef LLONG_MAX
23546 # define HALF \
23547 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
23548 # define LLONG_MAX (HALF - 1 + HALF)
23549 #endif
cristy501c8042011-05-26 17:46:28 +000023550int
23551main ()
23552{
23553long long int n = 1;
cristy5ed9c6e2013-07-14 21:20:31 +000023554 int i;
23555 for (i = 0; ; i++)
23556 {
23557 long long int m = n << i;
23558 if (m >> i != n)
23559 return 1;
23560 if (LLONG_MAX / 2 < m)
23561 break;
23562 }
23563 return 0;
cristy501c8042011-05-26 17:46:28 +000023564 ;
23565 return 0;
23566}
23567_ACEOF
23568if ac_fn_c_try_run "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000023569
cristy501c8042011-05-26 17:46:28 +000023570else
23571 ac_cv_type_long_long_int=no
23572fi
23573rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23574 conftest.$ac_objext conftest.beam conftest.$ac_ext
23575fi
23576
cristy5ed9c6e2013-07-14 21:20:31 +000023577 fi
cristy045228a2013-06-23 11:00:16 +000023578 fi
cristy501c8042011-05-26 17:46:28 +000023579fi
23580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
23581$as_echo "$ac_cv_type_long_long_int" >&6; }
23582 if test $ac_cv_type_long_long_int = yes; then
23583
23584$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
23585
23586 fi
23587
23588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
23589$as_echo_n "checking for mbstate_t... " >&6; }
23590if ${ac_cv_type_mbstate_t+:} false; then :
23591 $as_echo_n "(cached) " >&6
23592else
23593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23594/* end confdefs.h. */
23595$ac_includes_default
23596# include <wchar.h>
23597int
23598main ()
23599{
23600mbstate_t x; return sizeof x;
23601 ;
23602 return 0;
23603}
23604_ACEOF
23605if ac_fn_c_try_compile "$LINENO"; then :
23606 ac_cv_type_mbstate_t=yes
23607else
23608 ac_cv_type_mbstate_t=no
23609fi
23610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23611fi
23612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
23613$as_echo "$ac_cv_type_mbstate_t" >&6; }
23614 if test $ac_cv_type_mbstate_t = yes; then
23615
23616$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
23617
23618 else
23619
23620$as_echo "#define mbstate_t int" >>confdefs.h
23621
23622 fi
23623ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
23624if test "x$ac_cv_type_mode_t" = xyes; then :
23625
23626else
23627
23628cat >>confdefs.h <<_ACEOF
23629#define mode_t int
23630_ACEOF
23631
23632fi
23633
23634ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
23635if test "x$ac_cv_type_off_t" = xyes; then :
23636
23637else
23638
23639cat >>confdefs.h <<_ACEOF
23640#define off_t long int
23641_ACEOF
23642
23643fi
23644
23645ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
23646if test "x$ac_cv_type_pid_t" = xyes; then :
23647
23648else
23649
23650cat >>confdefs.h <<_ACEOF
23651#define pid_t int
23652_ACEOF
23653
23654fi
23655
23656ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
23657if test "x$ac_cv_type_size_t" = xyes; then :
23658
23659else
23660
23661cat >>confdefs.h <<_ACEOF
23662#define size_t unsigned int
23663_ACEOF
23664
23665fi
23666
23667ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
23668if test "x$ac_cv_type_ssize_t" = xyes; then :
23669
23670else
23671
23672cat >>confdefs.h <<_ACEOF
23673#define ssize_t int
23674_ACEOF
23675
23676fi
23677
23678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
23679$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
23680if ${ac_cv_type_uid_t+:} false; then :
23681 $as_echo_n "(cached) " >&6
23682else
23683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23684/* end confdefs.h. */
23685#include <sys/types.h>
23686
23687_ACEOF
23688if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23689 $EGREP "uid_t" >/dev/null 2>&1; then :
23690 ac_cv_type_uid_t=yes
23691else
23692 ac_cv_type_uid_t=no
23693fi
23694rm -f conftest*
23695
23696fi
23697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
23698$as_echo "$ac_cv_type_uid_t" >&6; }
23699if test $ac_cv_type_uid_t = no; then
23700
23701$as_echo "#define uid_t int" >>confdefs.h
23702
23703
23704$as_echo "#define gid_t int" >>confdefs.h
23705
23706fi
23707
23708ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
23709case $ac_cv_c_uint8_t in #(
23710 no|yes) ;; #(
23711 *)
23712
23713$as_echo "#define _UINT8_T 1" >>confdefs.h
23714
23715
23716cat >>confdefs.h <<_ACEOF
23717#define uint8_t $ac_cv_c_uint8_t
23718_ACEOF
23719;;
23720 esac
23721
23722ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
23723case $ac_cv_c_uint16_t in #(
23724 no|yes) ;; #(
23725 *)
23726
23727
23728cat >>confdefs.h <<_ACEOF
23729#define uint16_t $ac_cv_c_uint16_t
23730_ACEOF
23731;;
23732 esac
23733
23734ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
23735case $ac_cv_c_uint32_t in #(
23736 no|yes) ;; #(
23737 *)
23738
23739$as_echo "#define _UINT32_T 1" >>confdefs.h
23740
23741
23742cat >>confdefs.h <<_ACEOF
23743#define uint32_t $ac_cv_c_uint32_t
23744_ACEOF
23745;;
23746 esac
23747
23748ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
23749case $ac_cv_c_uint64_t in #(
23750 no|yes) ;; #(
23751 *)
23752
23753$as_echo "#define _UINT64_T 1" >>confdefs.h
23754
23755
23756cat >>confdefs.h <<_ACEOF
23757#define uint64_t $ac_cv_c_uint64_t
23758_ACEOF
23759;;
23760 esac
23761
23762
cristy501c8042011-05-26 17:46:28 +000023763
23764 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
23765if test "x$ac_cv_type_uintmax_t" = xyes; then :
23766
23767$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
23768
23769else
23770 test $ac_cv_type_unsigned_long_long_int = yes \
23771 && ac_type='unsigned long long int' \
23772 || ac_type='unsigned long int'
23773
23774cat >>confdefs.h <<_ACEOF
23775#define uintmax_t $ac_type
23776_ACEOF
23777
23778fi
23779
23780
23781
23782 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
23783if test "x$ac_cv_type_uintptr_t" = xyes; then :
23784
23785$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
23786
23787else
23788 for ac_type in 'unsigned int' 'unsigned long int' \
23789 'unsigned long long int'; do
23790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23791/* end confdefs.h. */
23792$ac_includes_default
23793int
23794main ()
23795{
23796static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
cristy14fefe52012-05-21 00:59:18 +000023797test_array [0] = 0;
23798return test_array [0];
cristy501c8042011-05-26 17:46:28 +000023799
23800 ;
23801 return 0;
23802}
23803_ACEOF
23804if ac_fn_c_try_compile "$LINENO"; then :
23805
23806cat >>confdefs.h <<_ACEOF
23807#define uintptr_t $ac_type
23808_ACEOF
23809
23810 ac_type=
23811fi
23812rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23813 test -z "$ac_type" && break
23814 done
23815fi
23816
23817
23818
23819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23820$as_echo_n "checking for unsigned long long int... " >&6; }
23821if ${ac_cv_type_unsigned_long_long_int+:} false; then :
23822 $as_echo_n "(cached) " >&6
23823else
cristy045228a2013-06-23 11:00:16 +000023824 ac_cv_type_unsigned_long_long_int=yes
23825 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
23826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy501c8042011-05-26 17:46:28 +000023827/* end confdefs.h. */
23828
23829 /* For now, do not test the preprocessor; as of 2007 there are too many
cristy5ed9c6e2013-07-14 21:20:31 +000023830 implementations with broken preprocessors. Perhaps this can
23831 be revisited in 2012. In the meantime, code should not expect
23832 #if to work with literals wider than 32 bits. */
cristy501c8042011-05-26 17:46:28 +000023833 /* Test literals. */
23834 long long int ll = 9223372036854775807ll;
23835 long long int nll = -9223372036854775807LL;
23836 unsigned long long int ull = 18446744073709551615ULL;
23837 /* Test constant expressions. */
23838 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
cristy5ed9c6e2013-07-14 21:20:31 +000023839 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000023840 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
cristy5ed9c6e2013-07-14 21:20:31 +000023841 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000023842 int i = 63;
23843int
23844main ()
23845{
23846/* Test availability of runtime routines for shift and division. */
23847 long long int llmax = 9223372036854775807ll;
23848 unsigned long long int ullmax = 18446744073709551615ull;
23849 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
cristy5ed9c6e2013-07-14 21:20:31 +000023850 | (llmax / ll) | (llmax % ll)
23851 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23852 | (ullmax / ull) | (ullmax % ull));
cristy501c8042011-05-26 17:46:28 +000023853 ;
23854 return 0;
23855}
23856
23857_ACEOF
23858if ac_fn_c_try_link "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000023859
cristy501c8042011-05-26 17:46:28 +000023860else
23861 ac_cv_type_unsigned_long_long_int=no
23862fi
23863rm -f core conftest.err conftest.$ac_objext \
23864 conftest$ac_exeext conftest.$ac_ext
cristy045228a2013-06-23 11:00:16 +000023865 fi
cristy501c8042011-05-26 17:46:28 +000023866fi
23867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23868$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23869 if test $ac_cv_type_unsigned_long_long_int = yes; then
23870
23871$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23872
23873 fi
23874
23875
cristy708922a2015-05-17 02:33:56 +000023876ac_fn_c_check_type "$LINENO" "locale_t" "ac_cv_type_locale_t" "#include <xlocale.h>
23877"
cristy98beafc2015-05-14 19:55:55 +000023878if test "x$ac_cv_type_locale_t" = xyes; then :
23879
23880cat >>confdefs.h <<_ACEOF
23881#define HAVE_LOCALE_T 1
23882_ACEOF
23883
23884
23885fi
23886
23887
cristyfec31822013-05-23 12:32:12 +000023888# Float_t and double_t are intended to be the the most efficient type.
23889ac_fn_c_check_type "$LINENO" "float_t" "ac_cv_type_float_t" "#include <math.h>
23890"
23891if test "x$ac_cv_type_float_t" = xyes; then :
23892
23893cat >>confdefs.h <<_ACEOF
23894#define HAVE_FLOAT_T 1
23895_ACEOF
23896
23897
23898fi
23899
23900ac_fn_c_check_type "$LINENO" "double_t" "ac_cv_type_double_t" "#include <math.h>
23901"
23902if test "x$ac_cv_type_double_t" = xyes; then :
23903
23904cat >>confdefs.h <<_ACEOF
23905#define HAVE_DOUBLE_T 1
23906_ACEOF
23907
23908
23909fi
23910
23911# The cast to long int works around a bug in the HP C Compiler
23912# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23913# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23914# This bug is HP SR number 8606223364.
23915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float_t" >&5
23916$as_echo_n "checking size of float_t... " >&6; }
23917if ${ac_cv_sizeof_float_t+:} false; then :
23918 $as_echo_n "(cached) " >&6
23919else
23920 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float_t))" "ac_cv_sizeof_float_t" "#include <math.h>
23921"; then :
23922
23923else
23924 if test "$ac_cv_type_float_t" = yes; then
23925 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23926$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23927as_fn_error 77 "cannot compute sizeof (float_t)
23928See \`config.log' for more details" "$LINENO" 5; }
23929 else
23930 ac_cv_sizeof_float_t=0
23931 fi
23932fi
23933
23934fi
23935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float_t" >&5
23936$as_echo "$ac_cv_sizeof_float_t" >&6; }
23937
23938
23939
23940cat >>confdefs.h <<_ACEOF
23941#define SIZEOF_FLOAT_T $ac_cv_sizeof_float_t
23942_ACEOF
23943
23944
23945# The cast to long int works around a bug in the HP C Compiler
23946# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23947# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23948# This bug is HP SR number 8606223364.
23949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double_t" >&5
23950$as_echo_n "checking size of double_t... " >&6; }
23951if ${ac_cv_sizeof_double_t+:} false; then :
23952 $as_echo_n "(cached) " >&6
23953else
23954 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double_t))" "ac_cv_sizeof_double_t" "#include <math.h>
23955"; then :
23956
23957else
23958 if test "$ac_cv_type_double_t" = yes; then
23959 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23960$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23961as_fn_error 77 "cannot compute sizeof (double_t)
23962See \`config.log' for more details" "$LINENO" 5; }
23963 else
23964 ac_cv_sizeof_double_t=0
23965 fi
23966fi
23967
23968fi
23969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double_t" >&5
23970$as_echo "$ac_cv_sizeof_double_t" >&6; }
23971
23972
23973
23974cat >>confdefs.h <<_ACEOF
23975#define SIZEOF_DOUBLE_T $ac_cv_sizeof_double_t
23976_ACEOF
23977
23978
23979
cristy9b86f202012-11-28 21:55:35 +000023980# Get size of float, double and long double for comparaison.
23981# The cast to long int works around a bug in the HP C Compiler
23982# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23983# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23984# This bug is HP SR number 8606223364.
23985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
23986$as_echo_n "checking size of float... " >&6; }
23987if ${ac_cv_sizeof_float+:} false; then :
23988 $as_echo_n "(cached) " >&6
23989else
23990 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then :
23991
23992else
23993 if test "$ac_cv_type_float" = yes; then
23994 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23995$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23996as_fn_error 77 "cannot compute sizeof (float)
23997See \`config.log' for more details" "$LINENO" 5; }
23998 else
23999 ac_cv_sizeof_float=0
24000 fi
24001fi
24002
24003fi
24004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
24005$as_echo "$ac_cv_sizeof_float" >&6; }
24006
24007
24008
24009cat >>confdefs.h <<_ACEOF
24010#define SIZEOF_FLOAT $ac_cv_sizeof_float
24011_ACEOF
24012
24013
24014# The cast to long int works around a bug in the HP C Compiler
24015# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24016# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24017# This bug is HP SR number 8606223364.
24018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
24019$as_echo_n "checking size of double... " >&6; }
24020if ${ac_cv_sizeof_double+:} false; then :
24021 $as_echo_n "(cached) " >&6
24022else
24023 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
24024
24025else
24026 if test "$ac_cv_type_double" = yes; then
24027 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24028$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24029as_fn_error 77 "cannot compute sizeof (double)
24030See \`config.log' for more details" "$LINENO" 5; }
24031 else
24032 ac_cv_sizeof_double=0
24033 fi
24034fi
24035
24036fi
24037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
24038$as_echo "$ac_cv_sizeof_double" >&6; }
24039
24040
24041
24042cat >>confdefs.h <<_ACEOF
24043#define SIZEOF_DOUBLE $ac_cv_sizeof_double
24044_ACEOF
24045
24046
cristy9e2b6242014-03-25 11:49:41 +000024047# The cast to long int works around a bug in the HP C Compiler
cristyfec31822013-05-23 12:32:12 +000024048# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24049# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24050# This bug is HP SR number 8606223364.
24051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
24052$as_echo_n "checking size of long double... " >&6; }
24053if ${ac_cv_sizeof_long_double+:} false; then :
24054 $as_echo_n "(cached) " >&6
24055else
24056 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
24057
24058else
24059 if test "$ac_cv_type_long_double" = yes; then
24060 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24061$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24062as_fn_error 77 "cannot compute sizeof (long double)
24063See \`config.log' for more details" "$LINENO" 5; }
24064 else
24065 ac_cv_sizeof_long_double=0
24066 fi
24067fi
24068
24069fi
24070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
24071$as_echo "$ac_cv_sizeof_long_double" >&6; }
24072
24073
24074
24075cat >>confdefs.h <<_ACEOF
24076#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
24077_ACEOF
24078
24079
cristyf0cf9a22012-10-24 12:05:01 +000024080
cristy3ed852e2009-09-05 21:47:34 +000024081# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
24082# The cast to long int works around a bug in the HP C Compiler
24083# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24084# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24085# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000024087$as_echo_n "checking size of signed short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024088if ${ac_cv_sizeof_signed_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024089 $as_echo_n "(cached) " >&6
24090else
cristy8b350f62009-11-15 23:12:43 +000024091 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 +000024092
cristy3ed852e2009-09-05 21:47:34 +000024093else
cristy8b350f62009-11-15 23:12:43 +000024094 if test "$ac_cv_type_signed_short" = yes; then
24095 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024096$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024097as_fn_error 77 "cannot compute sizeof (signed short)
24098See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024099 else
24100 ac_cv_sizeof_signed_short=0
24101 fi
24102fi
cristy8b350f62009-11-15 23:12:43 +000024103
cristy3ed852e2009-09-05 21:47:34 +000024104fi
cristy8b350f62009-11-15 23:12:43 +000024105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000024106$as_echo "$ac_cv_sizeof_signed_short" >&6; }
24107
24108
24109
24110cat >>confdefs.h <<_ACEOF
24111#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
24112_ACEOF
24113
24114
24115
24116# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
24117# The cast to long int works around a bug in the HP C Compiler
24118# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24119# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24120# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000024122$as_echo_n "checking size of unsigned short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024123if ${ac_cv_sizeof_unsigned_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024124 $as_echo_n "(cached) " >&6
24125else
cristy8b350f62009-11-15 23:12:43 +000024126 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 +000024127
cristy3ed852e2009-09-05 21:47:34 +000024128else
cristy8b350f62009-11-15 23:12:43 +000024129 if test "$ac_cv_type_unsigned_short" = yes; then
24130 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024131$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024132as_fn_error 77 "cannot compute sizeof (unsigned short)
24133See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024134 else
24135 ac_cv_sizeof_unsigned_short=0
24136 fi
24137fi
cristy8b350f62009-11-15 23:12:43 +000024138
cristy3ed852e2009-09-05 21:47:34 +000024139fi
cristy8b350f62009-11-15 23:12:43 +000024140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000024141$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
24142
24143
24144
24145cat >>confdefs.h <<_ACEOF
24146#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
24147_ACEOF
24148
24149
24150
24151# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
24152# The cast to long int works around a bug in the HP C Compiler
24153# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24154# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24155# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000024157$as_echo_n "checking size of signed int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024158if ${ac_cv_sizeof_signed_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024159 $as_echo_n "(cached) " >&6
24160else
cristy8b350f62009-11-15 23:12:43 +000024161 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 +000024162
cristy3ed852e2009-09-05 21:47:34 +000024163else
cristy8b350f62009-11-15 23:12:43 +000024164 if test "$ac_cv_type_signed_int" = yes; then
24165 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024166$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024167as_fn_error 77 "cannot compute sizeof (signed int)
24168See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024169 else
24170 ac_cv_sizeof_signed_int=0
24171 fi
24172fi
cristy8b350f62009-11-15 23:12:43 +000024173
cristy3ed852e2009-09-05 21:47:34 +000024174fi
cristy8b350f62009-11-15 23:12:43 +000024175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000024176$as_echo "$ac_cv_sizeof_signed_int" >&6; }
24177
24178
24179
24180cat >>confdefs.h <<_ACEOF
24181#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
24182_ACEOF
24183
24184
24185
24186# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
24187# The cast to long int works around a bug in the HP C Compiler
24188# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24189# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24190# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000024192$as_echo_n "checking size of unsigned int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024193if ${ac_cv_sizeof_unsigned_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024194 $as_echo_n "(cached) " >&6
24195else
cristy8b350f62009-11-15 23:12:43 +000024196 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 +000024197
cristy3ed852e2009-09-05 21:47:34 +000024198else
cristy8b350f62009-11-15 23:12:43 +000024199 if test "$ac_cv_type_unsigned_int" = yes; then
24200 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024201$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024202as_fn_error 77 "cannot compute sizeof (unsigned int)
24203See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024204 else
24205 ac_cv_sizeof_unsigned_int=0
24206 fi
24207fi
cristy8b350f62009-11-15 23:12:43 +000024208
cristy3ed852e2009-09-05 21:47:34 +000024209fi
cristy8b350f62009-11-15 23:12:43 +000024210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000024211$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
24212
24213
24214
24215cat >>confdefs.h <<_ACEOF
24216#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
24217_ACEOF
24218
24219
24220
24221# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
24222# The cast to long int works around a bug in the HP C Compiler
24223# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24224# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24225# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024227$as_echo_n "checking size of signed long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024228if ${ac_cv_sizeof_signed_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024229 $as_echo_n "(cached) " >&6
24230else
cristy8b350f62009-11-15 23:12:43 +000024231 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 +000024232
cristy3ed852e2009-09-05 21:47:34 +000024233else
cristy8b350f62009-11-15 23:12:43 +000024234 if test "$ac_cv_type_signed_long" = yes; then
24235 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024236$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024237as_fn_error 77 "cannot compute sizeof (signed long)
24238See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024239 else
24240 ac_cv_sizeof_signed_long=0
24241 fi
24242fi
cristy8b350f62009-11-15 23:12:43 +000024243
cristy3ed852e2009-09-05 21:47:34 +000024244fi
cristy8b350f62009-11-15 23:12:43 +000024245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024246$as_echo "$ac_cv_sizeof_signed_long" >&6; }
24247
24248
24249
24250cat >>confdefs.h <<_ACEOF
24251#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
24252_ACEOF
24253
24254
24255
24256# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
24257# The cast to long int works around a bug in the HP C Compiler
24258# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24259# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24260# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024262$as_echo_n "checking size of unsigned long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024263if ${ac_cv_sizeof_unsigned_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024264 $as_echo_n "(cached) " >&6
24265else
cristy8b350f62009-11-15 23:12:43 +000024266 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 +000024267
cristy3ed852e2009-09-05 21:47:34 +000024268else
cristy8b350f62009-11-15 23:12:43 +000024269 if test "$ac_cv_type_unsigned_long" = yes; then
24270 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024271$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024272as_fn_error 77 "cannot compute sizeof (unsigned long)
24273See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024274 else
24275 ac_cv_sizeof_unsigned_long=0
24276 fi
24277fi
cristy8b350f62009-11-15 23:12:43 +000024278
cristy3ed852e2009-09-05 21:47:34 +000024279fi
cristy8b350f62009-11-15 23:12:43 +000024280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024281$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
24282
24283
24284
24285cat >>confdefs.h <<_ACEOF
24286#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
24287_ACEOF
24288
24289
24290
24291# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
24292# 'signed long long' is not supported then the value defined is zero.
24293# The cast to long int works around a bug in the HP C Compiler
24294# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24295# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24296# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024298$as_echo_n "checking size of signed long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024299if ${ac_cv_sizeof_signed_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024300 $as_echo_n "(cached) " >&6
24301else
cristy8b350f62009-11-15 23:12:43 +000024302 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 +000024303
cristy3ed852e2009-09-05 21:47:34 +000024304else
cristy8b350f62009-11-15 23:12:43 +000024305 if test "$ac_cv_type_signed_long_long" = yes; then
24306 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024307$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024308as_fn_error 77 "cannot compute sizeof (signed long long)
24309See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024310 else
24311 ac_cv_sizeof_signed_long_long=0
24312 fi
24313fi
cristy8b350f62009-11-15 23:12:43 +000024314
cristy3ed852e2009-09-05 21:47:34 +000024315fi
cristy8b350f62009-11-15 23:12:43 +000024316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024317$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
24318
24319
24320
24321cat >>confdefs.h <<_ACEOF
24322#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
24323_ACEOF
24324
24325
24326
24327# Obtain size of a 'unsigned long long' and define as
24328# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
24329# supported then the value defined is zero.
24330# The cast to long int works around a bug in the HP C Compiler
24331# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24332# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24333# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024335$as_echo_n "checking size of unsigned long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024336if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024337 $as_echo_n "(cached) " >&6
24338else
cristy8b350f62009-11-15 23:12:43 +000024339 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 +000024340
cristy3ed852e2009-09-05 21:47:34 +000024341else
cristy8b350f62009-11-15 23:12:43 +000024342 if test "$ac_cv_type_unsigned_long_long" = yes; then
24343 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024344$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024345as_fn_error 77 "cannot compute sizeof (unsigned long long)
24346See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024347 else
24348 ac_cv_sizeof_unsigned_long_long=0
24349 fi
24350fi
cristy8b350f62009-11-15 23:12:43 +000024351
cristy3ed852e2009-09-05 21:47:34 +000024352fi
cristy8b350f62009-11-15 23:12:43 +000024353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024354$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
24355
24356
24357
24358cat >>confdefs.h <<_ACEOF
24359#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
24360_ACEOF
24361
24362
24363
cristyfec31822013-05-23 12:32:12 +000024364# Obtain size of off_t and define as SIZEOF_OFF_T
24365# The cast to long int works around a bug in the HP C Compiler
24366# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24367# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24368# This bug is HP SR number 8606223364.
24369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
24370$as_echo_n "checking size of off_t... " >&6; }
24371if ${ac_cv_sizeof_off_t+:} false; then :
24372 $as_echo_n "(cached) " >&6
24373else
24374 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
24375
24376else
24377 if test "$ac_cv_type_off_t" = yes; then
24378 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24379$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24380as_fn_error 77 "cannot compute sizeof (off_t)
24381See \`config.log' for more details" "$LINENO" 5; }
24382 else
24383 ac_cv_sizeof_off_t=0
24384 fi
24385fi
24386
24387fi
24388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
24389$as_echo "$ac_cv_sizeof_off_t" >&6; }
24390
24391
24392
24393cat >>confdefs.h <<_ACEOF
24394#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
24395_ACEOF
24396
24397
24398
24399# Obtain size of size_t and define as SIZEOF_SIZE_T
24400# The cast to long int works around a bug in the HP C Compiler
24401# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24402# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24403# This bug is HP SR number 8606223364.
24404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
24405$as_echo_n "checking size of size_t... " >&6; }
24406if ${ac_cv_sizeof_size_t+:} false; then :
24407 $as_echo_n "(cached) " >&6
24408else
24409 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
24410
24411else
24412 if test "$ac_cv_type_size_t" = yes; then
24413 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24414$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24415as_fn_error 77 "cannot compute sizeof (size_t)
24416See \`config.log' for more details" "$LINENO" 5; }
24417 else
24418 ac_cv_sizeof_size_t=0
24419 fi
24420fi
24421
24422fi
24423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
24424$as_echo "$ac_cv_sizeof_size_t" >&6; }
24425
24426
24427
24428cat >>confdefs.h <<_ACEOF
24429#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
24430_ACEOF
24431
24432
24433
24434# Obtain size of ssize_t and define as SIZEOF_SSIZE_T
24435# The cast to long int works around a bug in the HP C Compiler
24436# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24437# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24438# This bug is HP SR number 8606223364.
24439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
24440$as_echo_n "checking size of ssize_t... " >&6; }
24441if ${ac_cv_sizeof_ssize_t+:} false; then :
24442 $as_echo_n "(cached) " >&6
24443else
24444 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
24445
24446else
24447 if test "$ac_cv_type_ssize_t" = yes; then
24448 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24449$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24450as_fn_error 77 "cannot compute sizeof (ssize_t)
24451See \`config.log' for more details" "$LINENO" 5; }
24452 else
24453 ac_cv_sizeof_ssize_t=0
24454 fi
24455fi
24456
24457fi
24458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
24459$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
24460
24461
24462
24463cat >>confdefs.h <<_ACEOF
24464#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
24465_ACEOF
24466
24467
24468
cristy3ed852e2009-09-05 21:47:34 +000024469# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
24470# The cast to long int works around a bug in the HP C Compiler
24471# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24472# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24473# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000024475$as_echo_n "checking size of unsigned int*... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024476if ${ac_cv_sizeof_unsigned_intp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024477 $as_echo_n "(cached) " >&6
24478else
cristy8b350f62009-11-15 23:12:43 +000024479 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 +000024480
cristy3ed852e2009-09-05 21:47:34 +000024481else
cristy8b350f62009-11-15 23:12:43 +000024482 if test "$ac_cv_type_unsigned_intp" = yes; then
24483 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024484$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024485as_fn_error 77 "cannot compute sizeof (unsigned int*)
24486See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024487 else
24488 ac_cv_sizeof_unsigned_intp=0
24489 fi
24490fi
cristy8b350f62009-11-15 23:12:43 +000024491
cristy3ed852e2009-09-05 21:47:34 +000024492fi
cristy8b350f62009-11-15 23:12:43 +000024493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024494$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
24495
24496
24497
24498cat >>confdefs.h <<_ACEOF
24499#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
24500_ACEOF
24501
24502
24503
24504#
24505# Compute sized types for current CPU and compiler options.
24506#
24507
cristy8b350f62009-11-15 23:12:43 +000024508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024509$as_echo_n "checking for signed 8-bit type... " >&6; }
24510INT8_T='signed char'
cristyad38abe2012-12-23 23:03:21 +000024511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
24512$as_echo "$INT8_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024513
24514
cristy8b350f62009-11-15 23:12:43 +000024515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024516$as_echo_n "checking for unsigned 8-bit type... " >&6; }
24517UINT8_T='unsigned char'
cristyad38abe2012-12-23 23:03:21 +000024518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
24519$as_echo "$UINT8_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024520
24521
cristy8b350f62009-11-15 23:12:43 +000024522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024523$as_echo_n "checking for signed 16-bit type... " >&6; }
24524INT16_T='signed short'
cristyad38abe2012-12-23 23:03:21 +000024525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
24526$as_echo "$INT16_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024527
24528
cristy8b350f62009-11-15 23:12:43 +000024529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024530$as_echo_n "checking for unsigned 16-bit type... " >&6; }
24531UINT16_T='unsigned short'
cristyad38abe2012-12-23 23:03:21 +000024532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
24533$as_echo "$UINT16_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024534
24535
cristy8b350f62009-11-15 23:12:43 +000024536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024537$as_echo_n "checking for signed 32-bit type... " >&6; }
24538INT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024539INT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024540if test $ac_cv_sizeof_signed_int -eq 4; then
24541 INT32_T='signed int'
cristy6d5e20f2011-04-25 13:48:54 +000024542 INT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000024543elif test $ac_cv_sizeof_signed_long -eq 4; then
24544 INT32_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000024545 INT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024546fi
cristyad38abe2012-12-23 23:03:21 +000024547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
24548$as_echo "$INT32_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024549
24550
cristy6d5e20f2011-04-25 13:48:54 +000024551
cristy8b350f62009-11-15 23:12:43 +000024552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024553$as_echo_n "checking for unsigned 32-bit type... " >&6; }
24554UINT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024555UINT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024556if test $ac_cv_sizeof_unsigned_int -eq 4; then
24557 UINT32_T='unsigned int'
cristy6d5e20f2011-04-25 13:48:54 +000024558 UINT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000024559elif test $ac_cv_sizeof_unsigned_long -eq 4; then
24560 UINT32_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000024561 UINT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024562fi
cristyad38abe2012-12-23 23:03:21 +000024563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
24564$as_echo "$UINT32_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024565
24566
cristy6d5e20f2011-04-25 13:48:54 +000024567
cristy8b350f62009-11-15 23:12:43 +000024568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024569$as_echo_n "checking for signed 64-bit type... " >&6; }
24570INT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024571INT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024572if test $ac_cv_sizeof_signed_long -eq 8; then
24573 INT64_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000024574 INT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024575elif test $ac_cv_sizeof_signed_long_long -eq 8; then
24576 INT64_T='signed long long'
cristy6d5e20f2011-04-25 13:48:54 +000024577 INT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000024578fi
cristy3a99dcf2011-12-17 01:29:40 +000024579case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000024580 mingw* )
24581 INT64_F='"I64"'
24582 ;;
24583esac
cristyad38abe2012-12-23 23:03:21 +000024584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
24585$as_echo "$INT64_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024586
24587
cristy6d5e20f2011-04-25 13:48:54 +000024588
cristy8b350f62009-11-15 23:12:43 +000024589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024590$as_echo_n "checking for unsigned 64-bit type... " >&6; }
24591UINT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024592UINT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024593if test $ac_cv_sizeof_unsigned_long -eq 8; then
24594 UINT64_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000024595 UINT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024596elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
24597 UINT64_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000024598 UINT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000024599fi
cristy3a99dcf2011-12-17 01:29:40 +000024600case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000024601 mingw* )
24602 UINT64_F='"I64"'
24603 ;;
24604esac
cristyad38abe2012-12-23 23:03:21 +000024605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
24606$as_echo "$UINT64_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 unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024611$as_echo_n "checking for unsigned maximum type... " >&6; }
24612UINTMAX_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024613UINTMAX_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024614if test "$UINT64_T" != 'none'; then
24615 UINTMAX_T=$UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +000024616 UINTMAX_F=$UINT64_F
cristy3ed852e2009-09-05 21:47:34 +000024617elif test "$UINT32_T" != 'none'; then
24618 UINTMAX_T=$UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +000024619 UINTMAX_F=$UINT32_F
cristy3ed852e2009-09-05 21:47:34 +000024620fi
cristyad38abe2012-12-23 23:03:21 +000024621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5
24622$as_echo "$UINTMAX_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024623
24624
cristy6d5e20f2011-04-25 13:48:54 +000024625
cristy8b350f62009-11-15 23:12:43 +000024626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024627$as_echo_n "checking for pointer difference type... " >&6; }
24628UINTPTR_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024629UINTPTR_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024630if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
24631 UINTPTR_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000024632 UINTPTR_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024633elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
24634 UINTPTR_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000024635 UINTPTR_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000024636fi
cristyad38abe2012-12-23 23:03:21 +000024637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5
24638$as_echo "$UINTPTR_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024639
24640
cristy6d5e20f2011-04-25 13:48:54 +000024641
cristy8b350f62009-11-15 23:12:43 +000024642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000024643$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024644cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024645/* end confdefs.h. */
24646
24647int
24648main ()
24649{
24650{ const char *func = __func__; return(func != 0 ? 0 : 1); }
24651 ;
24652 return 0;
24653}
24654_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024655if ac_fn_c_try_compile "$LINENO"; then :
cristyad38abe2012-12-23 23:03:21 +000024656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24657$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024658else
cristyad38abe2012-12-23 23:03:21 +000024659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24660$as_echo "no" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000024662$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024664/* end confdefs.h. */
24665
24666int
24667main ()
24668{
24669{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
24670 ;
24671 return 0;
24672}
24673_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024674if ac_fn_c_try_compile "$LINENO"; then :
cristyad38abe2012-12-23 23:03:21 +000024675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24676$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024677
cristy8b350f62009-11-15 23:12:43 +000024678$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024679
24680else
cristyad38abe2012-12-23 23:03:21 +000024681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24682$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024683
cristy8b350f62009-11-15 23:12:43 +000024684$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024685
24686fi
cristy3ed852e2009-09-05 21:47:34 +000024687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24688fi
cristy3ed852e2009-09-05 21:47:34 +000024689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24690
24691########
24692#
24693# Check for functions
24694#
24695########
cristy8b350f62009-11-15 23:12:43 +000024696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024697$as_echo_n "checking whether closedir returns void... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024698if ${ac_cv_func_closedir_void+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024699 $as_echo_n "(cached) " >&6
24700else
cristy8b350f62009-11-15 23:12:43 +000024701 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024702 ac_cv_func_closedir_void=yes
24703else
cristy8b350f62009-11-15 23:12:43 +000024704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024705/* end confdefs.h. */
24706$ac_includes_default
24707#include <$ac_header_dirent>
24708#ifndef __cplusplus
24709int closedir ();
24710#endif
24711
24712int
24713main ()
24714{
24715return closedir (opendir (".")) != 0;
24716 ;
24717 return 0;
24718}
24719_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024720if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024721 ac_cv_func_closedir_void=no
24722else
cristy8b350f62009-11-15 23:12:43 +000024723 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000024724fi
cristy8b350f62009-11-15 23:12:43 +000024725rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24726 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024727fi
24728
cristy3ed852e2009-09-05 21:47:34 +000024729fi
cristy8b350f62009-11-15 23:12:43 +000024730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024731$as_echo "$ac_cv_func_closedir_void" >&6; }
24732if test $ac_cv_func_closedir_void = yes; then
24733
cristy8b350f62009-11-15 23:12:43 +000024734$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024735
24736fi
24737
cristycd4c5312009-11-22 01:19:08 +000024738
24739
24740
24741 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000024742do :
24743 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000024744ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
24745"
cristy98dddb52010-11-04 00:30:15 +000024746if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024747 cat >>confdefs.h <<_ACEOF
24748#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24749_ACEOF
24750
24751fi
24752
24753done
24754
cristycd4c5312009-11-22 01:19:08 +000024755
24756
24757
24758
24759
24760
24761
cristy3ed852e2009-09-05 21:47:34 +000024762for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000024763do :
24764 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000024765if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024766 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024767#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000024768_ACEOF
24769
24770fi
24771done
24772
cristy8b350f62009-11-15 23:12:43 +000024773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000024774$as_echo_n "checking for working mmap... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024775if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024776 $as_echo_n "(cached) " >&6
24777else
cristy8b350f62009-11-15 23:12:43 +000024778 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024779 ac_cv_func_mmap_fixed_mapped=no
24780else
cristy8b350f62009-11-15 23:12:43 +000024781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024782/* end confdefs.h. */
24783$ac_includes_default
24784/* malloc might have been renamed as rpl_malloc. */
24785#undef malloc
24786
24787/* Thanks to Mike Haertel and Jim Avera for this test.
24788 Here is a matrix of mmap possibilities:
24789 mmap private not fixed
24790 mmap private fixed at somewhere currently unmapped
24791 mmap private fixed at somewhere already mapped
24792 mmap shared not fixed
24793 mmap shared fixed at somewhere currently unmapped
24794 mmap shared fixed at somewhere already mapped
24795 For private mappings, we should verify that changes cannot be read()
24796 back from the file, nor mmap's back from the file at a different
24797 address. (There have been systems where private was not correctly
24798 implemented like the infamous i386 svr4.0, and systems where the
24799 VM page cache was not coherent with the file system buffer cache
24800 like early versions of FreeBSD and possibly contemporary NetBSD.)
24801 For shared mappings, we should conversely verify that changes get
24802 propagated back to all the places they're supposed to be.
24803
24804 Grep wants private fixed already mapped.
24805 The main things grep needs to know about mmap are:
24806 * does it exist and is it safe to write into the mmap'd area
24807 * how to use it (BSD variants) */
24808
24809#include <fcntl.h>
24810#include <sys/mman.h>
24811
24812#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
24813char *malloc ();
24814#endif
24815
24816/* This mess was copied from the GNU getpagesize.h. */
24817#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000024818# ifdef _SC_PAGESIZE
24819# define getpagesize() sysconf(_SC_PAGESIZE)
24820# else /* no _SC_PAGESIZE */
24821# ifdef HAVE_SYS_PARAM_H
24822# include <sys/param.h>
24823# ifdef EXEC_PAGESIZE
24824# define getpagesize() EXEC_PAGESIZE
24825# else /* no EXEC_PAGESIZE */
24826# ifdef NBPG
24827# define getpagesize() NBPG * CLSIZE
24828# ifndef CLSIZE
24829# define CLSIZE 1
24830# endif /* no CLSIZE */
24831# else /* no NBPG */
24832# ifdef NBPC
24833# define getpagesize() NBPC
24834# else /* no NBPC */
24835# ifdef PAGESIZE
24836# define getpagesize() PAGESIZE
24837# endif /* PAGESIZE */
24838# endif /* no NBPC */
24839# endif /* no NBPG */
24840# endif /* no EXEC_PAGESIZE */
24841# else /* no HAVE_SYS_PARAM_H */
24842# define getpagesize() 8192 /* punt totally */
24843# endif /* no HAVE_SYS_PARAM_H */
24844# endif /* no _SC_PAGESIZE */
24845
24846#endif /* no HAVE_GETPAGESIZE */
24847
24848int
24849main ()
24850{
24851 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000024852 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000024853 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000024854 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000024855
24856 pagesize = getpagesize ();
24857
24858 /* First, make a file with some known garbage in it. */
24859 data = (char *) malloc (pagesize);
24860 if (!data)
24861 return 1;
24862 for (i = 0; i < pagesize; ++i)
24863 *(data + i) = rand ();
24864 umask (0);
24865 fd = creat ("conftest.mmap", 0600);
24866 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024867 return 2;
cristy3ed852e2009-09-05 21:47:34 +000024868 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024869 return 3;
cristy3ed852e2009-09-05 21:47:34 +000024870 close (fd);
24871
cristycd4c5312009-11-22 01:19:08 +000024872 /* Next, check that the tail of a page is zero-filled. File must have
24873 non-zero length, otherwise we risk SIGBUS for entire page. */
24874 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
24875 if (fd2 < 0)
24876 return 4;
cristyc54f5d42009-11-27 21:36:31 +000024877 cdata2 = "";
24878 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000024879 return 5;
cristyc54f5d42009-11-27 21:36:31 +000024880 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000024881 if (data2 == MAP_FAILED)
24882 return 6;
24883 for (i = 0; i < pagesize; ++i)
24884 if (*(data2 + i))
24885 return 7;
24886 close (fd2);
24887 if (munmap (data2, pagesize))
24888 return 8;
24889
cristy3ed852e2009-09-05 21:47:34 +000024890 /* Next, try to mmap the file at a fixed address which already has
24891 something else allocated at it. If we can, also make sure that
24892 we see the same garbage. */
24893 fd = open ("conftest.mmap", O_RDWR);
24894 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024895 return 9;
cristy3ed852e2009-09-05 21:47:34 +000024896 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
24897 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000024898 return 10;
cristy3ed852e2009-09-05 21:47:34 +000024899 for (i = 0; i < pagesize; ++i)
24900 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000024901 return 11;
cristy3ed852e2009-09-05 21:47:34 +000024902
24903 /* Finally, make sure that changes to the mapped area do not
24904 percolate back to the file as seen by read(). (This is a bug on
24905 some variants of i386 svr4.0.) */
24906 for (i = 0; i < pagesize; ++i)
24907 *(data2 + i) = *(data2 + i) + 1;
24908 data3 = (char *) malloc (pagesize);
24909 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000024910 return 12;
cristy3ed852e2009-09-05 21:47:34 +000024911 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024912 return 13;
cristy3ed852e2009-09-05 21:47:34 +000024913 for (i = 0; i < pagesize; ++i)
24914 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000024915 return 14;
cristy3ed852e2009-09-05 21:47:34 +000024916 close (fd);
24917 return 0;
24918}
24919_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024920if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024921 ac_cv_func_mmap_fixed_mapped=yes
24922else
cristy8b350f62009-11-15 23:12:43 +000024923 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000024924fi
cristy8b350f62009-11-15 23:12:43 +000024925rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24926 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024927fi
24928
cristy3ed852e2009-09-05 21:47:34 +000024929fi
cristy8b350f62009-11-15 23:12:43 +000024930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000024931$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
24932if test $ac_cv_func_mmap_fixed_mapped = yes; then
24933
cristy8b350f62009-11-15 23:12:43 +000024934$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024935
24936fi
cristycd4c5312009-11-22 01:19:08 +000024937rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000024938
cristy3ed852e2009-09-05 21:47:34 +000024939for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000024940do :
24941 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000024942if test "x$ac_cv_header_vfork_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024943 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024944#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000024945_ACEOF
24946
24947fi
24948
24949done
24950
cristy3ed852e2009-09-05 21:47:34 +000024951for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000024952do :
24953 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24954ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000024955if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024956 cat >>confdefs.h <<_ACEOF
24957#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24958_ACEOF
24959
24960fi
24961done
24962
24963if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024965$as_echo_n "checking for working fork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024966if ${ac_cv_func_fork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024967 $as_echo_n "(cached) " >&6
24968else
cristy8b350f62009-11-15 23:12:43 +000024969 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024970 ac_cv_func_fork_works=cross
24971else
cristy8b350f62009-11-15 23:12:43 +000024972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024973/* end confdefs.h. */
24974$ac_includes_default
24975int
24976main ()
24977{
24978
24979 /* By Ruediger Kuhlmann. */
24980 return fork () < 0;
24981
24982 ;
24983 return 0;
24984}
24985_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024986if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024987 ac_cv_func_fork_works=yes
24988else
cristy8b350f62009-11-15 23:12:43 +000024989 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000024990fi
cristy8b350f62009-11-15 23:12:43 +000024991rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24992 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024993fi
24994
cristy3ed852e2009-09-05 21:47:34 +000024995fi
cristy8b350f62009-11-15 23:12:43 +000024996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024997$as_echo "$ac_cv_func_fork_works" >&6; }
24998
24999else
25000 ac_cv_func_fork_works=$ac_cv_func_fork
25001fi
25002if test "x$ac_cv_func_fork_works" = xcross; then
25003 case $host in
25004 *-*-amigaos* | *-*-msdosdjgpp*)
25005 # Override, as these systems have only a dummy fork() stub
25006 ac_cv_func_fork_works=no
25007 ;;
25008 *)
25009 ac_cv_func_fork_works=yes
25010 ;;
25011 esac
cristy8b350f62009-11-15 23:12:43 +000025012 { $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 +000025013$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
25014fi
25015ac_cv_func_vfork_works=$ac_cv_func_vfork
25016if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000025017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000025018$as_echo_n "checking for working vfork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025019if ${ac_cv_func_vfork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025020 $as_echo_n "(cached) " >&6
25021else
cristy8b350f62009-11-15 23:12:43 +000025022 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025023 ac_cv_func_vfork_works=cross
25024else
cristy8b350f62009-11-15 23:12:43 +000025025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025026/* end confdefs.h. */
25027/* Thanks to Paul Eggert for this test. */
25028$ac_includes_default
25029#include <sys/wait.h>
25030#ifdef HAVE_VFORK_H
25031# include <vfork.h>
25032#endif
25033/* On some sparc systems, changes by the child to local and incoming
25034 argument registers are propagated back to the parent. The compiler
25035 is told about this with #include <vfork.h>, but some compilers
25036 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
25037 static variable whose address is put into a register that is
25038 clobbered by the vfork. */
25039static void
25040#ifdef __cplusplus
25041sparc_address_test (int arg)
25042# else
25043sparc_address_test (arg) int arg;
25044#endif
25045{
25046 static pid_t child;
25047 if (!child) {
25048 child = vfork ();
25049 if (child < 0) {
25050 perror ("vfork");
25051 _exit(2);
25052 }
25053 if (!child) {
25054 arg = getpid();
25055 write(-1, "", 0);
25056 _exit (arg);
25057 }
25058 }
25059}
25060
25061int
25062main ()
25063{
25064 pid_t parent = getpid ();
25065 pid_t child;
25066
25067 sparc_address_test (0);
25068
25069 child = vfork ();
25070
25071 if (child == 0) {
25072 /* Here is another test for sparc vfork register problems. This
25073 test uses lots of local variables, at least as many local
25074 variables as main has allocated so far including compiler
25075 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
25076 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
25077 reuse the register of parent for one of the local variables,
25078 since it will think that parent can't possibly be used any more
25079 in this routine. Assigning to the local variable will thus
25080 munge parent in the parent process. */
25081 pid_t
25082 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
25083 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
25084 /* Convince the compiler that p..p7 are live; otherwise, it might
25085 use the same hardware register for all 8 local variables. */
25086 if (p != p1 || p != p2 || p != p3 || p != p4
25087 || p != p5 || p != p6 || p != p7)
25088 _exit(1);
25089
25090 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
25091 from child file descriptors. If the child closes a descriptor
25092 before it execs or exits, this munges the parent's descriptor
25093 as well. Test for this by closing stdout in the child. */
25094 _exit(close(fileno(stdout)) != 0);
25095 } else {
25096 int status;
25097 struct stat st;
25098
25099 while (wait(&status) != child)
25100 ;
25101 return (
25102 /* Was there some problem with vforking? */
25103 child < 0
25104
25105 /* Did the child fail? (This shouldn't happen.) */
25106 || status
25107
25108 /* Did the vfork/compiler bug occur? */
25109 || parent != getpid()
25110
25111 /* Did the file descriptor bug occur? */
25112 || fstat(fileno(stdout), &st) != 0
25113 );
25114 }
25115}
25116_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025117if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025118 ac_cv_func_vfork_works=yes
25119else
cristy8b350f62009-11-15 23:12:43 +000025120 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000025121fi
cristy8b350f62009-11-15 23:12:43 +000025122rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25123 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025124fi
25125
cristy3ed852e2009-09-05 21:47:34 +000025126fi
cristy8b350f62009-11-15 23:12:43 +000025127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000025128$as_echo "$ac_cv_func_vfork_works" >&6; }
25129
25130fi;
25131if test "x$ac_cv_func_fork_works" = xcross; then
25132 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000025133 { $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 +000025134$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
25135fi
25136
25137if test "x$ac_cv_func_vfork_works" = xyes; then
25138
cristy8b350f62009-11-15 23:12:43 +000025139$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025140
25141else
25142
cristy8b350f62009-11-15 23:12:43 +000025143$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025144
25145fi
25146if test "x$ac_cv_func_fork_works" = xyes; then
25147
cristy8b350f62009-11-15 23:12:43 +000025148$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025149
25150fi
25151
cristy8b350f62009-11-15 23:12:43 +000025152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025153$as_echo_n "checking for working memcmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025154if ${ac_cv_func_memcmp_working+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025155 $as_echo_n "(cached) " >&6
25156else
cristy8b350f62009-11-15 23:12:43 +000025157 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025158 ac_cv_func_memcmp_working=no
25159else
cristy8b350f62009-11-15 23:12:43 +000025160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025161/* end confdefs.h. */
25162$ac_includes_default
25163int
25164main ()
25165{
25166
25167 /* Some versions of memcmp are not 8-bit clean. */
25168 char c0 = '\100', c1 = '\200', c2 = '\201';
25169 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
25170 return 1;
25171
25172 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
25173 or more and with at least one buffer not starting on a 4-byte boundary.
25174 William Lewis provided this test program. */
25175 {
25176 char foo[21];
25177 char bar[21];
25178 int i;
25179 for (i = 0; i < 4; i++)
25180 {
25181 char *a = foo + i;
25182 char *b = bar + i;
25183 strcpy (a, "--------01111111");
25184 strcpy (b, "--------10000000");
25185 if (memcmp (a, b, 16) >= 0)
25186 return 1;
25187 }
25188 return 0;
25189 }
25190
25191 ;
25192 return 0;
25193}
25194_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025195if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025196 ac_cv_func_memcmp_working=yes
25197else
cristy8b350f62009-11-15 23:12:43 +000025198 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000025199fi
cristy8b350f62009-11-15 23:12:43 +000025200rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25201 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025202fi
25203
cristy3ed852e2009-09-05 21:47:34 +000025204fi
cristy8b350f62009-11-15 23:12:43 +000025205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000025206$as_echo "$ac_cv_func_memcmp_working" >&6; }
25207test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
25208 *" memcmp.$ac_objext "* ) ;;
25209 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
25210 ;;
25211esac
25212
25213
cristy3ed852e2009-09-05 21:47:34 +000025214for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000025215do :
25216 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25217ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000025218if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000025219 cat >>confdefs.h <<_ACEOF
25220#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25221_ACEOF
25222
25223fi
25224
25225done
25226
cristy8b350f62009-11-15 23:12:43 +000025227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000025228$as_echo_n "checking types of arguments for select... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025229if ${ac_cv_func_select_args+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025230 $as_echo_n "(cached) " >&6
25231else
25232 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
25233 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
25234 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000025235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025236/* end confdefs.h. */
25237$ac_includes_default
25238#ifdef HAVE_SYS_SELECT_H
25239# include <sys/select.h>
25240#endif
25241#ifdef HAVE_SYS_SOCKET_H
25242# include <sys/socket.h>
25243#endif
25244
25245int
25246main ()
25247{
25248extern int select ($ac_arg1,
25249 $ac_arg234, $ac_arg234, $ac_arg234,
25250 $ac_arg5);
25251 ;
25252 return 0;
25253}
25254_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025255if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025256 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000025257fi
cristy3ed852e2009-09-05 21:47:34 +000025258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25259 done
25260 done
25261done
25262# Provide a safe default value.
cristyda16f162011-02-19 23:52:17 +000025263: "${ac_cv_func_select_args=int,int *,struct timeval *}"
cristy3ed852e2009-09-05 21:47:34 +000025264
25265fi
cristy8b350f62009-11-15 23:12:43 +000025266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000025267$as_echo "$ac_cv_func_select_args" >&6; }
25268ac_save_IFS=$IFS; IFS=','
25269set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
25270IFS=$ac_save_IFS
25271shift
25272
25273cat >>confdefs.h <<_ACEOF
25274#define SELECT_TYPE_ARG1 $1
25275_ACEOF
25276
25277
25278cat >>confdefs.h <<_ACEOF
25279#define SELECT_TYPE_ARG234 ($2)
25280_ACEOF
25281
25282
25283cat >>confdefs.h <<_ACEOF
25284#define SELECT_TYPE_ARG5 ($3)
25285_ACEOF
25286
25287rm -f conftest*
25288
cristyda16f162011-02-19 23:52:17 +000025289if ${ac_cv_func_setvbuf_reversed+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025290 $as_echo_n "(cached) " >&6
25291else
25292 ac_cv_func_setvbuf_reversed=no
25293fi
25294
25295
cristy8b350f62009-11-15 23:12:43 +000025296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000025297$as_echo_n "checking return type of signal handlers... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025298if ${ac_cv_type_signal+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025299 $as_echo_n "(cached) " >&6
25300else
cristy8b350f62009-11-15 23:12:43 +000025301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025302/* end confdefs.h. */
25303#include <sys/types.h>
25304#include <signal.h>
25305
25306int
25307main ()
25308{
25309return *(signal (0, 0)) (0) == 1;
25310 ;
25311 return 0;
25312}
25313_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025314if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025315 ac_cv_type_signal=int
25316else
cristy8b350f62009-11-15 23:12:43 +000025317 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000025318fi
cristy3ed852e2009-09-05 21:47:34 +000025319rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25320fi
cristy8b350f62009-11-15 23:12:43 +000025321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000025322$as_echo "$ac_cv_type_signal" >&6; }
25323
25324cat >>confdefs.h <<_ACEOF
25325#define RETSIGTYPE $ac_cv_type_signal
25326_ACEOF
25327
25328
cristy8b350f62009-11-15 23:12:43 +000025329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000025330$as_echo_n "checking for working strtod... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025331if ${ac_cv_func_strtod+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025332 $as_echo_n "(cached) " >&6
25333else
cristy8b350f62009-11-15 23:12:43 +000025334 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025335 ac_cv_func_strtod=no
25336else
cristy8b350f62009-11-15 23:12:43 +000025337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025338/* end confdefs.h. */
25339
25340$ac_includes_default
25341#ifndef strtod
25342double strtod ();
25343#endif
25344int
25345main()
25346{
25347 {
25348 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
25349 char *string = " +69";
25350 char *term;
25351 double value;
25352 value = strtod (string, &term);
25353 if (value != 69 || term != (string + 4))
25354 return 1;
25355 }
25356
25357 {
25358 /* Under Solaris 2.4, strtod returns the wrong value for the
25359 terminating character under some conditions. */
25360 char *string = "NaN";
25361 char *term;
25362 strtod (string, &term);
25363 if (term != string && *(term - 1) == 0)
25364 return 1;
25365 }
25366 return 0;
25367}
25368
25369_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025370if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025371 ac_cv_func_strtod=yes
25372else
cristy8b350f62009-11-15 23:12:43 +000025373 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000025374fi
cristy8b350f62009-11-15 23:12:43 +000025375rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25376 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025377fi
25378
cristy3ed852e2009-09-05 21:47:34 +000025379fi
cristy8b350f62009-11-15 23:12:43 +000025380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000025381$as_echo "$ac_cv_func_strtod" >&6; }
25382if test $ac_cv_func_strtod = no; then
25383 case " $LIBOBJS " in
25384 *" strtod.$ac_objext "* ) ;;
25385 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
25386 ;;
25387esac
25388
cristy8b350f62009-11-15 23:12:43 +000025389ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
cristyda16f162011-02-19 23:52:17 +000025390if test "x$ac_cv_func_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025391
cristy3ed852e2009-09-05 21:47:34 +000025392fi
25393
cristy3ed852e2009-09-05 21:47:34 +000025394if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000025395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000025396$as_echo_n "checking for pow in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025397if ${ac_cv_lib_m_pow+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025398 $as_echo_n "(cached) " >&6
25399else
25400 ac_check_lib_save_LIBS=$LIBS
25401LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025402cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025403/* end confdefs.h. */
25404
25405/* Override any GCC internal prototype to avoid an error.
25406 Use char because int might match the return type of a GCC
25407 builtin and then its argument prototype would still apply. */
25408#ifdef __cplusplus
25409extern "C"
25410#endif
25411char pow ();
25412int
25413main ()
25414{
25415return pow ();
25416 ;
25417 return 0;
25418}
25419_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025420if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025421 ac_cv_lib_m_pow=yes
25422else
cristy8b350f62009-11-15 23:12:43 +000025423 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000025424fi
cristy8b350f62009-11-15 23:12:43 +000025425rm -f core conftest.err conftest.$ac_objext \
25426 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025427LIBS=$ac_check_lib_save_LIBS
25428fi
cristy8b350f62009-11-15 23:12:43 +000025429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000025430$as_echo "$ac_cv_lib_m_pow" >&6; }
cristyda16f162011-02-19 23:52:17 +000025431if test "x$ac_cv_lib_m_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025432 POW_LIB=-lm
25433else
cristy8b350f62009-11-15 23:12:43 +000025434 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000025435$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
25436fi
25437
25438fi
25439
25440fi
25441
cristy7d4a1d62011-10-13 15:54:12 +000025442ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
25443if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
25444 ac_have_decl=1
25445else
25446 ac_have_decl=0
25447fi
25448
25449cat >>confdefs.h <<_ACEOF
25450#define HAVE_DECL_STRERROR_R $ac_have_decl
25451_ACEOF
25452
25453for ac_func in strerror_r
25454do :
25455 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
25456if test "x$ac_cv_func_strerror_r" = xyes; then :
25457 cat >>confdefs.h <<_ACEOF
25458#define HAVE_STRERROR_R 1
25459_ACEOF
25460
25461fi
25462done
25463
25464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
25465$as_echo_n "checking whether strerror_r returns char *... " >&6; }
25466if ${ac_cv_func_strerror_r_char_p+:} false; then :
25467 $as_echo_n "(cached) " >&6
25468else
25469
25470 ac_cv_func_strerror_r_char_p=no
25471 if test $ac_cv_have_decl_strerror_r = yes; then
25472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25473/* end confdefs.h. */
25474$ac_includes_default
25475int
25476main ()
25477{
25478
25479 char buf[100];
25480 char x = *strerror_r (0, buf, sizeof buf);
25481 char *p = strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000025482 return !p || x;
cristy7d4a1d62011-10-13 15:54:12 +000025483
25484 ;
25485 return 0;
25486}
25487_ACEOF
25488if ac_fn_c_try_compile "$LINENO"; then :
25489 ac_cv_func_strerror_r_char_p=yes
25490fi
25491rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25492 else
25493 # strerror_r is not declared. Choose between
25494 # systems that have relatively inaccessible declarations for the
25495 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
25496 # former has a strerror_r that returns char*, while the latter
25497 # has a strerror_r that returns `int'.
25498 # This test should segfault on the DEC system.
25499 if test "$cross_compiling" = yes; then :
25500 :
25501else
25502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25503/* end confdefs.h. */
25504$ac_includes_default
25505 extern char *strerror_r ();
25506int
25507main ()
25508{
25509char buf[100];
25510 char x = *strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000025511 return ! isalpha (x);
cristy7d4a1d62011-10-13 15:54:12 +000025512 ;
25513 return 0;
25514}
25515_ACEOF
25516if ac_fn_c_try_run "$LINENO"; then :
25517 ac_cv_func_strerror_r_char_p=yes
25518fi
25519rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25520 conftest.$ac_objext conftest.beam conftest.$ac_ext
25521fi
25522
25523 fi
25524
25525fi
25526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
25527$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
25528if test $ac_cv_func_strerror_r_char_p = yes; then
25529
25530$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
25531
25532fi
25533
cristy3ed852e2009-09-05 21:47:34 +000025534for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000025535do :
25536 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
cristyda16f162011-02-19 23:52:17 +000025537if test "x$ac_cv_func_vprintf" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025538 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025539#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000025540_ACEOF
25541
cristy8b350f62009-11-15 23:12:43 +000025542ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
cristyda16f162011-02-19 23:52:17 +000025543if test "x$ac_cv_func__doprnt" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025544
cristy8b350f62009-11-15 23:12:43 +000025545$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025546
25547fi
25548
25549fi
25550done
25551
25552
25553
cristy161b9262010-03-20 19:34:32 +000025554#
25555# Find math library
25556#
25557MATH_LIBS=''
25558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
25559$as_echo_n "checking for sqrt in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025560if ${ac_cv_lib_m_sqrt+:} false; then :
cristy161b9262010-03-20 19:34:32 +000025561 $as_echo_n "(cached) " >&6
25562else
25563 ac_check_lib_save_LIBS=$LIBS
25564LIBS="-lm $LIBS"
25565cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25566/* end confdefs.h. */
25567
25568/* Override any GCC internal prototype to avoid an error.
25569 Use char because int might match the return type of a GCC
25570 builtin and then its argument prototype would still apply. */
25571#ifdef __cplusplus
25572extern "C"
25573#endif
25574char sqrt ();
25575int
25576main ()
25577{
25578return sqrt ();
25579 ;
25580 return 0;
25581}
25582_ACEOF
25583if ac_fn_c_try_link "$LINENO"; then :
25584 ac_cv_lib_m_sqrt=yes
25585else
25586 ac_cv_lib_m_sqrt=no
25587fi
25588rm -f core conftest.err conftest.$ac_objext \
25589 conftest$ac_exeext conftest.$ac_ext
25590LIBS=$ac_check_lib_save_LIBS
25591fi
25592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
25593$as_echo "$ac_cv_lib_m_sqrt" >&6; }
cristyda16f162011-02-19 23:52:17 +000025594if test "x$ac_cv_lib_m_sqrt" = xyes; then :
cristy161b9262010-03-20 19:34:32 +000025595 MATH_LIBS="-lm"
25596fi
25597
25598LIBS="$MATH_LIBS $LIBS"
25599
25600
cristy85572162013-01-04 19:19:32 +000025601#
25602# Find socket library
25603#
cristy8a5d7f42013-01-06 15:24:33 +000025604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
25605$as_echo_n "checking for library containing gethostbyname... " >&6; }
25606if ${ac_cv_search_gethostbyname+:} false; then :
25607 $as_echo_n "(cached) " >&6
25608else
25609 ac_func_search_save_LIBS=$LIBS
25610cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25611/* end confdefs.h. */
25612
25613/* Override any GCC internal prototype to avoid an error.
25614 Use char because int might match the return type of a GCC
25615 builtin and then its argument prototype would still apply. */
25616#ifdef __cplusplus
25617extern "C"
25618#endif
25619char gethostbyname ();
25620int
25621main ()
25622{
25623return gethostbyname ();
25624 ;
25625 return 0;
25626}
25627_ACEOF
25628for ac_lib in '' resolv nsl; do
25629 if test -z "$ac_lib"; then
25630 ac_res="none required"
25631 else
25632 ac_res=-l$ac_lib
25633 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25634 fi
25635 if ac_fn_c_try_link "$LINENO"; then :
25636 ac_cv_search_gethostbyname=$ac_res
25637fi
25638rm -f core conftest.err conftest.$ac_objext \
25639 conftest$ac_exeext
25640 if ${ac_cv_search_gethostbyname+:} false; then :
25641 break
25642fi
25643done
25644if ${ac_cv_search_gethostbyname+:} false; then :
25645
25646else
25647 ac_cv_search_gethostbyname=no
25648fi
25649rm conftest.$ac_ext
25650LIBS=$ac_func_search_save_LIBS
25651fi
25652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
25653$as_echo "$ac_cv_search_gethostbyname" >&6; }
25654ac_res=$ac_cv_search_gethostbyname
25655if test "$ac_res" != no; then :
25656 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25657
25658fi
25659
cristy85572162013-01-04 19:19:32 +000025660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
25661$as_echo_n "checking for library containing socket... " >&6; }
25662if ${ac_cv_search_socket+:} false; then :
25663 $as_echo_n "(cached) " >&6
25664else
25665 ac_func_search_save_LIBS=$LIBS
25666cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25667/* end confdefs.h. */
25668
25669/* Override any GCC internal prototype to avoid an error.
25670 Use char because int might match the return type of a GCC
25671 builtin and then its argument prototype would still apply. */
25672#ifdef __cplusplus
25673extern "C"
25674#endif
25675char socket ();
25676int
25677main ()
25678{
25679return socket ();
25680 ;
25681 return 0;
25682}
25683_ACEOF
25684for ac_lib in '' socket; do
25685 if test -z "$ac_lib"; then
25686 ac_res="none required"
25687 else
25688 ac_res=-l$ac_lib
25689 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25690 fi
25691 if ac_fn_c_try_link "$LINENO"; then :
25692 ac_cv_search_socket=$ac_res
25693fi
25694rm -f core conftest.err conftest.$ac_objext \
25695 conftest$ac_exeext
25696 if ${ac_cv_search_socket+:} false; then :
25697 break
25698fi
25699done
25700if ${ac_cv_search_socket+:} false; then :
25701
25702else
25703 ac_cv_search_socket=no
25704fi
25705rm conftest.$ac_ext
25706LIBS=$ac_func_search_save_LIBS
25707fi
25708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
25709$as_echo "$ac_cv_search_socket" >&6; }
25710ac_res=$ac_cv_search_socket
25711if test "$ac_res" != no; then :
25712 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25713
cristy85572162013-01-04 19:19:32 +000025714
cristy8a5d7f42013-01-06 15:24:33 +000025715$as_echo "#define HAVE_SOCKET 1" >>confdefs.h
cristy85572162013-01-04 19:19:32 +000025716
cristy03f187e2013-01-24 00:22:19 +000025717 MAGICK_FEATURES="DPC $MAGICK_FEATURES"
cristy85572162013-01-04 19:19:32 +000025718
25719fi
25720
25721
cristya29f2b82015-05-30 14:10:30 +000025722for 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 +000025723do :
25724 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25725ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025726if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000025727 cat >>confdefs.h <<_ACEOF
25728#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25729_ACEOF
25730
25731fi
25732done
25733
25734
cristye43a45e2009-09-28 14:49:00 +000025735#
25736# Check for clock_gettime().
25737#
cristy8b350f62009-11-15 23:12:43 +000025738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000025739$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025740if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000025741 $as_echo_n "(cached) " >&6
25742else
25743 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000025744cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000025745/* end confdefs.h. */
25746
25747/* Override any GCC internal prototype to avoid an error.
25748 Use char because int might match the return type of a GCC
25749 builtin and then its argument prototype would still apply. */
25750#ifdef __cplusplus
25751extern "C"
25752#endif
25753char clock_gettime ();
25754int
25755main ()
25756{
25757return clock_gettime ();
25758 ;
25759 return 0;
25760}
25761_ACEOF
25762for ac_lib in '' rt; do
25763 if test -z "$ac_lib"; then
25764 ac_res="none required"
25765 else
25766 ac_res=-l$ac_lib
25767 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25768 fi
cristy8b350f62009-11-15 23:12:43 +000025769 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025770 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000025771fi
cristy8b350f62009-11-15 23:12:43 +000025772rm -f core conftest.err conftest.$ac_objext \
25773 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000025774 if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000025775 break
25776fi
25777done
cristyda16f162011-02-19 23:52:17 +000025778if ${ac_cv_search_clock_gettime+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000025779
cristye43a45e2009-09-28 14:49:00 +000025780else
25781 ac_cv_search_clock_gettime=no
25782fi
25783rm conftest.$ac_ext
25784LIBS=$ac_func_search_save_LIBS
25785fi
cristy8b350f62009-11-15 23:12:43 +000025786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000025787$as_echo "$ac_cv_search_clock_gettime" >&6; }
25788ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000025789if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000025790 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25791
25792
cristy8b350f62009-11-15 23:12:43 +000025793$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025794
cristy8b350f62009-11-15 23:12:43 +000025795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000025796$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000025798/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000025799
25800 #include <time.h>
cristye43a45e2009-09-28 14:49:00 +000025801int
25802main ()
25803{
25804clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000025805 ;
25806 return 0;
25807}
25808_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025809if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025810
cristyad38abe2012-12-23 23:03:21 +000025811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25812$as_echo "yes" >&6; }
cristye43a45e2009-09-28 14:49:00 +000025813
cristy8b350f62009-11-15 23:12:43 +000025814$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025815
25816
25817else
cristyad38abe2012-12-23 23:03:21 +000025818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25819$as_echo "no" >&6; }
cristye43a45e2009-09-28 14:49:00 +000025820
25821fi
cristye43a45e2009-09-28 14:49:00 +000025822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25823
25824else
25825
cristy8b350f62009-11-15 23:12:43 +000025826 for ac_func in gettimeofday ftime
25827do :
25828 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25829ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025830if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristye43a45e2009-09-28 14:49:00 +000025831 cat >>confdefs.h <<_ACEOF
25832#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25833_ACEOF
25834 break
25835fi
25836done
25837
25838
25839
25840fi
25841
25842
cristy3ed852e2009-09-05 21:47:34 +000025843########
25844#
25845# Check for function prototypes
25846#
25847########
25848
cristy8b350f62009-11-15 23:12:43 +000025849ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000025850#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025851"
cristyda16f162011-02-19 23:52:17 +000025852if test "x$ac_cv_have_decl_pread" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025853 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025854else
cristy8b350f62009-11-15 23:12:43 +000025855 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025856fi
25857
cristy3ed852e2009-09-05 21:47:34 +000025858cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025859#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025860_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025861ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000025862#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025863"
cristyda16f162011-02-19 23:52:17 +000025864if test "x$ac_cv_have_decl_pwrite" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025865 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025866else
cristy8b350f62009-11-15 23:12:43 +000025867 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025868fi
25869
cristy3ed852e2009-09-05 21:47:34 +000025870cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025871#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025872_ACEOF
25873
25874
cristy8b350f62009-11-15 23:12:43 +000025875ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000025876#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000025877"
cristyda16f162011-02-19 23:52:17 +000025878if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025879 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025880else
cristy8b350f62009-11-15 23:12:43 +000025881 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025882fi
25883
cristy3ed852e2009-09-05 21:47:34 +000025884cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025885#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025886_ACEOF
25887
25888
cristy8b350f62009-11-15 23:12:43 +000025889ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000025890#include <stdio.h>
25891#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000025892"
cristyda16f162011-02-19 23:52:17 +000025893if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025894 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025895else
cristy8b350f62009-11-15 23:12:43 +000025896 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025897fi
25898
cristy3ed852e2009-09-05 21:47:34 +000025899cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025900#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025901_ACEOF
25902
25903
cristy3ed852e2009-09-05 21:47:34 +000025904########
25905#
25906# C++ Support Tests (For Magick++)
25907#
25908########
25909have_magick_plus_plus='no'
25910if test "$with_magick_plus_plus" = 'yes'; then
25911 OLIBS="$LIBS"
25912 LIBS=''
25913 ac_ext=cpp
25914ac_cpp='$CXXCPP $CPPFLAGS'
25915ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25916ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25917ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25918
25919
25920 # Full set of headers used...
25921 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
25922 # functional iomanip iosfwd iostream iterator list string strstream utility
25923 ac_ext=cpp
25924ac_cpp='$CXXCPP $CPPFLAGS'
25925ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25926ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25927ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25928
25929 ac_ext=cpp
25930ac_cpp='$CXXCPP $CPPFLAGS'
25931ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25932ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25933ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25934if test -z "$CXX"; then
25935 if test -n "$CCC"; then
25936 CXX=$CCC
25937 else
25938 if test -n "$ac_tool_prefix"; then
25939 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25940 do
25941 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
25942set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025944$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025945if ${ac_cv_prog_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025946 $as_echo_n "(cached) " >&6
25947else
25948 if test -n "$CXX"; then
25949 ac_cv_prog_CXX="$CXX" # Let the user override the test.
25950else
25951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25952for as_dir in $PATH
25953do
25954 IFS=$as_save_IFS
25955 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025956 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000025957 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000025958 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025960 break 2
25961 fi
25962done
cristy8b350f62009-11-15 23:12:43 +000025963 done
cristy3ed852e2009-09-05 21:47:34 +000025964IFS=$as_save_IFS
25965
25966fi
25967fi
25968CXX=$ac_cv_prog_CXX
25969if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025971$as_echo "$CXX" >&6; }
25972else
cristy8b350f62009-11-15 23:12:43 +000025973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025974$as_echo "no" >&6; }
25975fi
25976
25977
25978 test -n "$CXX" && break
25979 done
25980fi
25981if test -z "$CXX"; then
25982 ac_ct_CXX=$CXX
25983 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25984do
25985 # Extract the first word of "$ac_prog", so it can be a program name with args.
25986set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025988$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025989if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025990 $as_echo_n "(cached) " >&6
25991else
25992 if test -n "$ac_ct_CXX"; then
25993 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
25994else
25995as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25996for as_dir in $PATH
25997do
25998 IFS=$as_save_IFS
25999 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000026000 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000026001 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000026002 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000026003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000026004 break 2
26005 fi
26006done
cristy8b350f62009-11-15 23:12:43 +000026007 done
cristy3ed852e2009-09-05 21:47:34 +000026008IFS=$as_save_IFS
26009
26010fi
26011fi
26012ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
26013if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000026014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000026015$as_echo "$ac_ct_CXX" >&6; }
26016else
cristy8b350f62009-11-15 23:12:43 +000026017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026018$as_echo "no" >&6; }
26019fi
26020
26021
26022 test -n "$ac_ct_CXX" && break
26023done
26024
26025 if test "x$ac_ct_CXX" = x; then
26026 CXX="g++"
26027 else
26028 case $cross_compiling:$ac_tool_warned in
26029yes:)
cristy8b350f62009-11-15 23:12:43 +000026030{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000026031$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26032ac_tool_warned=yes ;;
26033esac
26034 CXX=$ac_ct_CXX
26035 fi
26036fi
26037
26038 fi
26039fi
26040# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000026041$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000026042set X $ac_compile
26043ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000026044for ac_option in --version -v -V -qversion; do
26045 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000026046case "(($ac_try" in
26047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26048 *) ac_try_echo=$ac_try;;
26049esac
cristy8b350f62009-11-15 23:12:43 +000026050eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
26051$as_echo "$ac_try_echo"; } >&5
26052 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000026053 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026054 if test -s conftest.err; then
26055 sed '10a\
26056... rest of stderr output deleted ...
26057 10q' conftest.err >conftest.er1
26058 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000026059 fi
cristycd4c5312009-11-22 01:19:08 +000026060 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000026061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26062 test $ac_status = 0; }
26063done
cristy3ed852e2009-09-05 21:47:34 +000026064
cristy8b350f62009-11-15 23:12:43 +000026065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000026066$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026067if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026068 $as_echo_n "(cached) " >&6
26069else
cristy8b350f62009-11-15 23:12:43 +000026070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026071/* end confdefs.h. */
26072
26073int
26074main ()
26075{
26076#ifndef __GNUC__
26077 choke me
26078#endif
26079
26080 ;
26081 return 0;
26082}
26083_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026084if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026085 ac_compiler_gnu=yes
26086else
cristy8b350f62009-11-15 23:12:43 +000026087 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000026088fi
cristy3ed852e2009-09-05 21:47:34 +000026089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26090ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
26091
26092fi
cristy8b350f62009-11-15 23:12:43 +000026093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000026094$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
26095if test $ac_compiler_gnu = yes; then
26096 GXX=yes
26097else
26098 GXX=
26099fi
26100ac_test_CXXFLAGS=${CXXFLAGS+set}
26101ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000026102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000026103$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026104if ${ac_cv_prog_cxx_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026105 $as_echo_n "(cached) " >&6
26106else
26107 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
26108 ac_cxx_werror_flag=yes
26109 ac_cv_prog_cxx_g=no
26110 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000026111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026112/* end confdefs.h. */
26113
26114int
26115main ()
26116{
26117
26118 ;
26119 return 0;
26120}
26121_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026122if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026123 ac_cv_prog_cxx_g=yes
26124else
cristy8b350f62009-11-15 23:12:43 +000026125 CXXFLAGS=""
26126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026127/* end confdefs.h. */
26128
26129int
26130main ()
26131{
26132
26133 ;
26134 return 0;
26135}
26136_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026137if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026138
cristy8b350f62009-11-15 23:12:43 +000026139else
26140 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000026141 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000026142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026143/* end confdefs.h. */
26144
26145int
26146main ()
26147{
26148
26149 ;
26150 return 0;
26151}
26152_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026153if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026154 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000026155fi
cristy3ed852e2009-09-05 21:47:34 +000026156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26157fi
cristy3ed852e2009-09-05 21:47:34 +000026158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26159fi
cristy3ed852e2009-09-05 21:47:34 +000026160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26161 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
26162fi
cristy8b350f62009-11-15 23:12:43 +000026163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000026164$as_echo "$ac_cv_prog_cxx_g" >&6; }
26165if test "$ac_test_CXXFLAGS" = set; then
26166 CXXFLAGS=$ac_save_CXXFLAGS
26167elif test $ac_cv_prog_cxx_g = yes; then
26168 if test "$GXX" = yes; then
26169 CXXFLAGS="-g -O2"
26170 else
26171 CXXFLAGS="-g"
26172 fi
26173else
26174 if test "$GXX" = yes; then
26175 CXXFLAGS="-O2"
26176 else
26177 CXXFLAGS=
26178 fi
26179fi
26180ac_ext=cpp
26181ac_cpp='$CXXCPP $CPPFLAGS'
26182ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26183ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26184ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26185
cristy73bd4a52010-10-05 11:24:23 +000026186depcc="$CXX" am_compiler_list=
26187
26188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
26189$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026190if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026191 $as_echo_n "(cached) " >&6
26192else
26193 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
26194 # We make a subdir and do the tests there. Otherwise we can end up
26195 # making bogus files that we don't know about and never remove. For
26196 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +000026197 # making a dummy file named 'D' -- because '-MD' means "put the output
26198 # in D".
cristy7247bba2012-02-05 16:37:27 +000026199 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +000026200 mkdir conftest.dir
26201 # Copy depcomp to subdir because otherwise we won't find it if we're
26202 # using a relative directory.
26203 cp "$am_depcomp" conftest.dir
26204 cd conftest.dir
26205 # We will build objects and dependencies in a subdirectory because
26206 # it helps to detect inapplicable dependency modes. For instance
26207 # both Tru64's cc and ICC support -MD to output dependencies as a
26208 # side effect of compilation, but ICC will put the dependencies in
26209 # the current directory while Tru64 will put them in the object
26210 # directory.
26211 mkdir sub
26212
26213 am_cv_CXX_dependencies_compiler_type=none
26214 if test "$am_compiler_list" = ""; then
26215 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
26216 fi
26217 am__universal=false
26218 case " $depcc " in #(
26219 *\ -arch\ *\ -arch\ *) am__universal=true ;;
26220 esac
26221
26222 for depmode in $am_compiler_list; do
26223 # Setup a source with many dependencies, because some compilers
26224 # like to wrap large dependency lists on column 80 (with \), and
26225 # we should not choose a depcomp mode which is confused by this.
26226 #
26227 # We need to recreate these files for each test, as the compiler may
26228 # overwrite some of them when testing with obscure command lines.
26229 # This happens at least with the AIX C compiler.
26230 : > sub/conftest.c
26231 for i in 1 2 3 4 5 6; do
26232 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +000026233 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
26234 # Solaris 10 /bin/sh.
26235 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +000026236 done
26237 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
26238
cristyc0890a62012-07-19 00:18:20 +000026239 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +000026240 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +000026241 # handle '-M -o', and we need to detect this. Also, some Intel
26242 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +000026243 am__obj=sub/conftest.${OBJEXT-o}
26244 am__minus_obj="-o $am__obj"
26245 case $depmode in
26246 gcc)
26247 # This depmode causes a compiler race in universal mode.
26248 test "$am__universal" = false || continue
26249 ;;
26250 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +000026251 # After this tag, mechanisms are not by side-effect, so they'll
26252 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +000026253 if test "x$enable_dependency_tracking" = xyes; then
26254 continue
26255 else
26256 break
26257 fi
26258 ;;
cristy7247bba2012-02-05 16:37:27 +000026259 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +000026260 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +000026261 # not run yet. These depmodes are late enough in the game, and
26262 # so weak that their functioning should not be impacted.
26263 am__obj=conftest.${OBJEXT-o}
26264 am__minus_obj=
26265 ;;
26266 none) break ;;
26267 esac
26268 if depmode=$depmode \
26269 source=sub/conftest.c object=$am__obj \
26270 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
26271 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
26272 >/dev/null 2>conftest.err &&
26273 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
26274 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
26275 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
26276 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
26277 # icc doesn't choke on unknown options, it will just issue warnings
26278 # or remarks (even with -Werror). So we grep stderr for any message
26279 # that says an option was ignored or not supported.
26280 # When given -MP, icc 7.0 and 7.1 complain thusly:
26281 # icc: Command line warning: ignoring option '-M'; no argument required
26282 # The diagnosis changed in icc 8.0:
26283 # icc: Command line remark: option '-MP' not supported
26284 if (grep 'ignoring option' conftest.err ||
26285 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
26286 am_cv_CXX_dependencies_compiler_type=$depmode
26287 break
26288 fi
26289 fi
26290 done
26291
26292 cd ..
26293 rm -rf conftest.dir
26294else
26295 am_cv_CXX_dependencies_compiler_type=none
26296fi
26297
26298fi
26299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
26300$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
26301CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
26302
26303 if
26304 test "x$enable_dependency_tracking" != xno \
26305 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
26306 am__fastdepCXX_TRUE=
26307 am__fastdepCXX_FALSE='#'
26308else
26309 am__fastdepCXX_TRUE='#'
26310 am__fastdepCXX_FALSE=
26311fi
26312
26313
cristy146497a2015-05-17 22:46:16 +000026314 { $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 +000026315$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026316if ${ax_cv_cxx_bool+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026317 $as_echo_n "(cached) " >&6
26318else
cristy146497a2015-05-17 22:46:16 +000026319 ac_ext=cpp
cristy73bd4a52010-10-05 11:24:23 +000026320ac_cpp='$CXXCPP $CPPFLAGS'
26321ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26322ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26323ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26324
cristy146497a2015-05-17 22:46:16 +000026325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000026326/* end confdefs.h. */
cristy146497a2015-05-17 22:46:16 +000026327 int f(int x){return 1;}
26328 int f(char x){return 1;}
26329 int f(bool x){return 1;}
cristy73bd4a52010-10-05 11:24:23 +000026330int
26331main ()
26332{
26333bool b = true; return f(b);
26334 ;
26335 return 0;
26336}
26337_ACEOF
26338if ac_fn_cxx_try_compile "$LINENO"; then :
26339 ax_cv_cxx_bool=yes
26340else
26341 ax_cv_cxx_bool=no
26342fi
26343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy146497a2015-05-17 22:46:16 +000026344 ac_ext=cpp
cristy73bd4a52010-10-05 11:24:23 +000026345ac_cpp='$CXXCPP $CPPFLAGS'
26346ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26347ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26348ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26349
26350
26351fi
26352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
26353$as_echo "$ax_cv_cxx_bool" >&6; }
cristy146497a2015-05-17 22:46:16 +000026354 if test "X$ax_cv_cxx_bool" = Xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000026355
26356$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
26357
26358fi
26359
26360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
26361$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026362if ${ax_cv_cxx_namespaces+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026363 $as_echo_n "(cached) " >&6
26364else
cristy17491be2014-06-24 01:10:53 +000026365 ac_ext=cpp
cristy73bd4a52010-10-05 11:24:23 +000026366ac_cpp='$CXXCPP $CPPFLAGS'
26367ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26368ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26369ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26370
26371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26372/* end confdefs.h. */
26373namespace Outer { namespace Inner { int i = 0; }}
cristy17491be2014-06-24 01:10:53 +000026374 using namespace Outer::Inner; int foo(void) { return i;}
cristy73bd4a52010-10-05 11:24:23 +000026375_ACEOF
26376if ac_fn_cxx_try_compile "$LINENO"; then :
26377 ax_cv_cxx_namespaces=yes
26378else
26379 ax_cv_cxx_namespaces=no
26380fi
26381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26382 ac_ext=cpp
26383ac_cpp='$CXXCPP $CPPFLAGS'
26384ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26385ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26386ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26387
26388
26389fi
26390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
26391$as_echo "$ax_cv_cxx_namespaces" >&6; }
26392if test "$ax_cv_cxx_namespaces" = yes; then
26393
26394$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
26395
26396fi
26397
26398
26399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
26400$as_echo_n "checking if g++ supports namespace std... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026401if ${ax_cv_cxx_have_std_namespace+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026402 $as_echo_n "(cached) " >&6
26403else
26404
26405 ac_ext=cpp
26406ac_cpp='$CXXCPP $CPPFLAGS'
26407ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26408ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26409ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26410
26411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26412/* end confdefs.h. */
26413#include <iostream>
26414 std::istream& is = std::cin;
26415int
26416main ()
26417{
26418
26419 ;
26420 return 0;
26421}
26422_ACEOF
26423if ac_fn_cxx_try_compile "$LINENO"; then :
26424 ax_cv_cxx_have_std_namespace=yes
26425else
26426 ax_cv_cxx_have_std_namespace=no
26427fi
26428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26429 ac_ext=cpp
26430ac_cpp='$CXXCPP $CPPFLAGS'
26431ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26432ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26433ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26434
26435
26436fi
26437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
26438$as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
26439 if test "$ax_cv_cxx_have_std_namespace" = yes; then
26440
26441$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
26442
26443 fi
26444
26445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
26446$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026447if ${ac_cv_cxx_have_std_libs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026448 $as_echo_n "(cached) " >&6
26449else
26450
26451
26452 ac_ext=cpp
26453ac_cpp='$CXXCPP $CPPFLAGS'
26454ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26455ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26456ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26457
26458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26459/* end confdefs.h. */
26460#include <iostream>
26461#include <map>
26462#include <iomanip>
26463#include <cmath>
26464#ifdef HAVE_NAMESPACES
26465using namespace std;
26466#endif
26467int
26468main ()
26469{
26470return 0;
26471 ;
26472 return 0;
26473}
26474_ACEOF
26475if ac_fn_cxx_try_compile "$LINENO"; then :
26476 ac_cv_cxx_have_std_libs=yes
26477else
26478 ac_cv_cxx_have_std_libs=no
26479fi
26480rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26481 ac_ext=cpp
26482ac_cpp='$CXXCPP $CPPFLAGS'
26483ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26484ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26485ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26486
26487
26488fi
26489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
26490$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
26491if test "$ac_cv_cxx_have_std_libs" = yes; then
26492
26493$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
26494
26495fi
26496
cristy3ed852e2009-09-05 21:47:34 +000026497
26498 OPENMP_CXXFLAGS=
26499 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000026500if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026501 enableval=$enable_openmp;
26502fi
26503
26504 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000026505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
26506$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026507if ${ac_cv_prog_cxx_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026508 $as_echo_n "(cached) " >&6
26509else
cristy8b350f62009-11-15 23:12:43 +000026510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26511/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000026512
26513#ifndef _OPENMP
26514 choke me
26515#endif
26516#include <omp.h>
26517int main () { return omp_get_num_threads (); }
26518
26519_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026520if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026521 ac_cv_prog_cxx_openmp='none needed'
26522else
cristy8b350f62009-11-15 23:12:43 +000026523 ac_cv_prog_cxx_openmp='unsupported'
cristy14fefe52012-05-21 00:59:18 +000026524 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
26525 -Popenmp --openmp; do
cristy3ed852e2009-09-05 21:47:34 +000026526 ac_save_CXXFLAGS=$CXXFLAGS
26527 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000026528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26529/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000026530
26531#ifndef _OPENMP
26532 choke me
26533#endif
26534#include <omp.h>
26535int main () { return omp_get_num_threads (); }
26536
26537_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026538if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026539 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000026540fi
cristy8b350f62009-11-15 23:12:43 +000026541rm -f core conftest.err conftest.$ac_objext \
26542 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026543 CXXFLAGS=$ac_save_CXXFLAGS
26544 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
26545 break
26546 fi
26547 done
26548fi
cristy8b350f62009-11-15 23:12:43 +000026549rm -f core conftest.err conftest.$ac_objext \
26550 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026551fi
cristy8b350f62009-11-15 23:12:43 +000026552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026553$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
26554 case $ac_cv_prog_cxx_openmp in #(
26555 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000026556 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000026557 *)
cristy8b350f62009-11-15 23:12:43 +000026558 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000026559 esac
26560 fi
26561
26562
26563 ac_ext=c
26564ac_cpp='$CPP $CPPFLAGS'
26565ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26566ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26567ac_compiler_gnu=$ac_cv_c_compiler_gnu
26568
26569
cristy8b350f62009-11-15 23:12:43 +000026570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000026571$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
26572 if \
cristy964cb7f2010-04-25 23:18:00 +000026573 test $ax_cv_cxx_bool = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000026574 test $ax_cv_cxx_namespaces = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000026575 test $ac_cv_cxx_have_std_libs = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000026576 test $ax_cv_cxx_have_std_namespace = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000026577 have_magick_plus_plus='yes'
26578 else
26579 have_magick_plus_plus='no (failed tests)'
26580 fi
cristyad38abe2012-12-23 23:03:21 +000026581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
26582$as_echo "$have_magick_plus_plus" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026583 LIBS="$OLIBS"
26584fi
cristy73bd4a52010-10-05 11:24:23 +000026585 if test "$have_magick_plus_plus" = 'yes'; then
26586 WITH_MAGICK_PLUS_PLUS_TRUE=
26587 WITH_MAGICK_PLUS_PLUS_FALSE='#'
26588else
26589 WITH_MAGICK_PLUS_PLUS_TRUE='#'
26590 WITH_MAGICK_PLUS_PLUS_FALSE=
26591fi
26592
cristy3ed852e2009-09-05 21:47:34 +000026593
26594# Only check for delegate libraries in subdirectories if requested.
26595if test "$enable_delegate_build" != 'no'; then
26596 # Check for delegate sub-directories and add -I & -L options as required.
26597 # This presumes that delegates are installed as detailed in the ImageMagick
26598 # README. If delegates are installed in a standard location where the
26599 # compiler will automatically find them then these options should not be
26600 # required.
26601
26602 #
26603 # Most delegates have includes in the same directory as the library, but not all...
26604 #
26605 # Includes
cristy834307f2015-01-25 00:43:41 +000026606 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 +000026607 if test -d "$builddir/$dir"; then
26608 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
26609 else
26610 if test -d "$srcdirfull/$dir"; then
26611 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
26612 fi
26613 fi
26614 done
26615
26616 # Libraries
cristy834307f2015-01-25 00:43:41 +000026617 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 +000026618 if test -d "$builddir/$dir/.libs"; then
26619 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
26620 else
26621 if test -d "$srcdirfull/$dir/.libs"; then
26622 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
26623 fi
26624 fi
26625 if test -d "$builddir/$dir"; then
26626 LDFLAGS="$LDFLAGS -L$builddir/$dir"
26627 else
26628 if test -d "$srcdirfull/$dir"; then
26629 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
26630 fi
26631 fi
26632 done
26633fi
26634
26635# Assume that delegate headers reside under same directory as ImageMagick
26636# installation prefix.
cristybdabdd62013-03-04 17:43:36 +000026637MAGICK_CPPFLAGS="-I$INCLUDE_DIR/${PACKAGE_NAME}-$MAGICK_MAJOR_VERSION $MAGICK_CPPFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000026638
26639#
26640# Find the X11 RGB database
26641#
cristy8b350f62009-11-15 23:12:43 +000026642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000026643$as_echo_n "checking for X11 configure files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026644if ${im_cv_x_configure+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026645 $as_echo_n "(cached) " >&6
26646else
26647 # Look for the header file in a standard set of common directories.
26648# Check X11 before X11Rn because it is often a symlink to the current release.
26649 for ac_dir in \
26650 /lib/usr/lib/X11 \
26651 /usr/X11/lib \
26652 /usr/X11R4/lib \
26653 /usr/X11R5/lib \
26654 /usr/X11R6/lib \
26655 /usr/X11R7/lib \
26656 /usr/X386/lib \
26657 /usr/XFree86/lib/X11 \
26658 /usr/athena/lib \
26659 /usr/lib \
26660 /usr/lib/X11 \
26661 /usr/lib/X11R4 \
26662 /usr/lib/X11R5 \
26663 /usr/lib/X11R6 \
26664 /usr/lib/X11R7 \
26665 /usr/local/X11/lib \
26666 /usr/local/X11R4/lib \
26667 /usr/local/X11R5/lib \
26668 /usr/local/X11R6/lib \
26669 /usr/local/lib \
26670 /usr/local/lib/X11 \
26671 /usr/local/lib/X11R4 \
26672 /usr/local/lib/X11R5 \
26673 /usr/local/lib/X11R6 \
26674 /usr/local/lib/X11R7 \
26675 /usr/local/x11r5/lib \
26676 /usr/lpp/Xamples/lib \
26677 /usr/openwin/lib \
26678 /usr/openwin/share/lib \
26679 /usr/unsupported/lib \
26680 /usr/x386/lib \
26681 ; do
26682 if test -f "$ac_dir/X11/rgb.txt"; then
26683 im_cv_x_configure="$ac_dir/X11/"
26684 break
26685 elif test -f "$ac_dir/rgb.txt"; then
26686 im_cv_x_configure="$ac_dir/"
26687 break
26688 fi
26689
26690 done
26691fi
cristy8b350f62009-11-15 23:12:43 +000026692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000026693$as_echo "$im_cv_x_configure" >&6; }
26694X11_CONFIGURE_PATH="$im_cv_x_configure"
26695case "${build_os}" in
26696 mingw* )
26697 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
26698 ;;
26699esac
26700
26701cat >>confdefs.h <<_ACEOF
26702#define X11_CONFIGURE_PATH "$X11ConfigurePath"
26703_ACEOF
26704
26705
26706#
26707# Find OpenMP library
26708#
26709GOMP_LIBS=''
26710if test "$enable_openmp" != 'no'; then
26711 if test "${GCC}" = "yes"; then
cristy18307f12011-12-30 01:20:16 +000026712 # Open64 (passes for GCC but uses different OpenMP implementation)
26713 if test "x$GOMP_LIBS" = x ; then
26714 if $CC --version 2>&1 | grep Open64 > /dev/null ; then
26715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for omp_get_num_procs in -lopenmp" >&5
26716$as_echo_n "checking for omp_get_num_procs in -lopenmp... " >&6; }
26717if ${ac_cv_lib_openmp_omp_get_num_procs+:} false; then :
26718 $as_echo_n "(cached) " >&6
26719else
26720 ac_check_lib_save_LIBS=$LIBS
26721LIBS="-lopenmp $LIBS"
26722cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26723/* end confdefs.h. */
26724
26725/* Override any GCC internal prototype to avoid an error.
26726 Use char because int might match the return type of a GCC
26727 builtin and then its argument prototype would still apply. */
26728#ifdef __cplusplus
26729extern "C"
26730#endif
26731char omp_get_num_procs ();
26732int
26733main ()
26734{
26735return omp_get_num_procs ();
26736 ;
26737 return 0;
26738}
26739_ACEOF
26740if ac_fn_c_try_link "$LINENO"; then :
26741 ac_cv_lib_openmp_omp_get_num_procs=yes
26742else
26743 ac_cv_lib_openmp_omp_get_num_procs=no
26744fi
26745rm -f core conftest.err conftest.$ac_objext \
26746 conftest$ac_exeext conftest.$ac_ext
26747LIBS=$ac_check_lib_save_LIBS
26748fi
26749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_openmp_omp_get_num_procs" >&5
26750$as_echo "$ac_cv_lib_openmp_omp_get_num_procs" >&6; }
26751if test "x$ac_cv_lib_openmp_omp_get_num_procs" = xyes; then :
26752 GOMP_LIBS="-lopenmp"
26753fi
26754
26755 fi
26756 fi
26757 # GCC
26758 if test "x$GOMP_LIBS" = x ; then
26759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026760$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026761if ${ac_cv_lib_gomp_GOMP_parallel_start+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026762 $as_echo_n "(cached) " >&6
26763else
26764 ac_check_lib_save_LIBS=$LIBS
26765LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026766cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026767/* end confdefs.h. */
26768
26769/* Override any GCC internal prototype to avoid an error.
26770 Use char because int might match the return type of a GCC
26771 builtin and then its argument prototype would still apply. */
26772#ifdef __cplusplus
26773extern "C"
26774#endif
26775char GOMP_parallel_start ();
26776int
26777main ()
26778{
26779return GOMP_parallel_start ();
26780 ;
26781 return 0;
26782}
26783_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026784if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026785 ac_cv_lib_gomp_GOMP_parallel_start=yes
26786else
cristy8b350f62009-11-15 23:12:43 +000026787 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000026788fi
cristy8b350f62009-11-15 23:12:43 +000026789rm -f core conftest.err conftest.$ac_objext \
26790 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026791LIBS=$ac_check_lib_save_LIBS
26792fi
cristy8b350f62009-11-15 23:12:43 +000026793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000026794$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristyda16f162011-02-19 23:52:17 +000026795if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026796 GOMP_LIBS="-lgomp"
26797fi
cristy18307f12011-12-30 01:20:16 +000026798
26799 fi
cristy3ed852e2009-09-05 21:47:34 +000026800 else
cristy18307f12011-12-30 01:20:16 +000026801 # Sun CC
26802 if test "x$GOMP_LIBS" = x ; then
26803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000026804$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026805if ${ac_cv_lib_mtsk_sunw_mp_register_warn+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026806 $as_echo_n "(cached) " >&6
26807else
26808 ac_check_lib_save_LIBS=$LIBS
26809LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026810cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026811/* end confdefs.h. */
26812
26813/* Override any GCC internal prototype to avoid an error.
26814 Use char because int might match the return type of a GCC
26815 builtin and then its argument prototype would still apply. */
26816#ifdef __cplusplus
26817extern "C"
26818#endif
26819char sunw_mp_register_warn ();
26820int
26821main ()
26822{
26823return sunw_mp_register_warn ();
26824 ;
26825 return 0;
26826}
26827_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026828if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026829 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
26830else
cristy8b350f62009-11-15 23:12:43 +000026831 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000026832fi
cristy8b350f62009-11-15 23:12:43 +000026833rm -f core conftest.err conftest.$ac_objext \
26834 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026835LIBS=$ac_check_lib_save_LIBS
26836fi
cristy8b350f62009-11-15 23:12:43 +000026837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000026838$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristyda16f162011-02-19 23:52:17 +000026839if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026840 GOMP_LIBS="-lmtsk"
26841fi
cristy18307f12011-12-30 01:20:16 +000026842
26843 fi
26844 # AIX xlc
26845 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000026846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026847$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026848if ${ac_cv_lib_xlsmp__xlsmpFlush+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026849 $as_echo_n "(cached) " >&6
26850else
26851 ac_check_lib_save_LIBS=$LIBS
26852LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026853cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026854/* end confdefs.h. */
26855
26856/* Override any GCC internal prototype to avoid an error.
26857 Use char because int might match the return type of a GCC
26858 builtin and then its argument prototype would still apply. */
26859#ifdef __cplusplus
26860extern "C"
26861#endif
26862char _xlsmpFlush ();
26863int
26864main ()
26865{
26866return _xlsmpFlush ();
26867 ;
26868 return 0;
26869}
26870_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026871if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026872 ac_cv_lib_xlsmp__xlsmpFlush=yes
26873else
cristy8b350f62009-11-15 23:12:43 +000026874 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000026875fi
cristy8b350f62009-11-15 23:12:43 +000026876rm -f core conftest.err conftest.$ac_objext \
26877 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026878LIBS=$ac_check_lib_save_LIBS
26879fi
cristy8b350f62009-11-15 23:12:43 +000026880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000026881$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristyda16f162011-02-19 23:52:17 +000026882if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026883 GOMP_LIBS="-lxlsmp"
26884fi
cristy18307f12011-12-30 01:20:16 +000026885
26886 fi
26887 # SGI IRIX 6.5 MIPSpro C/C++
26888 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000026889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026890$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026891if ${ac_cv_lib_mp_mp_destroy+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026892 $as_echo_n "(cached) " >&6
26893else
26894 ac_check_lib_save_LIBS=$LIBS
26895LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026896cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026897/* end confdefs.h. */
26898
26899/* Override any GCC internal prototype to avoid an error.
26900 Use char because int might match the return type of a GCC
26901 builtin and then its argument prototype would still apply. */
26902#ifdef __cplusplus
26903extern "C"
26904#endif
26905char mp_destroy ();
26906int
26907main ()
26908{
26909return mp_destroy ();
26910 ;
26911 return 0;
26912}
26913_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026914if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026915 ac_cv_lib_mp_mp_destroy=yes
26916else
cristy8b350f62009-11-15 23:12:43 +000026917 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000026918fi
cristy8b350f62009-11-15 23:12:43 +000026919rm -f core conftest.err conftest.$ac_objext \
26920 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026921LIBS=$ac_check_lib_save_LIBS
26922fi
cristy8b350f62009-11-15 23:12:43 +000026923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000026924$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristyda16f162011-02-19 23:52:17 +000026925if test "x$ac_cv_lib_mp_mp_destroy" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026926 GOMP_LIBS="-lmp"
26927fi
cristy18307f12011-12-30 01:20:16 +000026928
26929 fi
cristy3ed852e2009-09-05 21:47:34 +000026930 fi
26931 LIBS="$GOMP_LIBS $LIBS"
26932fi
26933
26934
cristy12ac8192014-11-04 13:59:13 +000026935#
cristy3b0097d2014-11-04 15:34:47 +000026936# Check for jemalloc.
cristy12ac8192014-11-04 13:59:13 +000026937#
cristy3b0097d2014-11-04 15:34:47 +000026938have_jemalloc='no'
26939JEMALLOC_LIBS=''
26940if test "$with_jemalloc" != 'no'; then
26941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JEMALLOC support " >&5
26942$as_echo_n "checking for JEMALLOC support ... " >&6; }
26943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26944$as_echo "" >&6; }
26945 failed=0
26946 passed=0
26947 ac_fn_c_check_header_mongrel "$LINENO" "jemalloc/jemalloc.h" "ac_cv_header_jemalloc_jemalloc_h" "$ac_includes_default"
26948if test "x$ac_cv_header_jemalloc_jemalloc_h" = xyes; then :
cristy22007ae2014-11-04 15:59:22 +000026949 passed=`expr $passed + 1`
26950else
26951 failed=`expr $failed + 1`
cristy12ac8192014-11-04 13:59:13 +000026952fi
26953
26954
cristy3b0097d2014-11-04 15:34:47 +000026955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc_stats_print in -ljemalloc" >&5
26956$as_echo_n "checking for malloc_stats_print in -ljemalloc... " >&6; }
26957if ${ac_cv_lib_jemalloc_malloc_stats_print+:} false; then :
cristy12ac8192014-11-04 13:59:13 +000026958 $as_echo_n "(cached) " >&6
26959else
26960 ac_check_lib_save_LIBS=$LIBS
26961LIBS="-ljemalloc $LIBS"
26962cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26963/* end confdefs.h. */
26964
26965/* Override any GCC internal prototype to avoid an error.
26966 Use char because int might match the return type of a GCC
26967 builtin and then its argument prototype would still apply. */
26968#ifdef __cplusplus
26969extern "C"
26970#endif
cristy3b0097d2014-11-04 15:34:47 +000026971char malloc_stats_print ();
cristy12ac8192014-11-04 13:59:13 +000026972int
26973main ()
26974{
cristy3b0097d2014-11-04 15:34:47 +000026975return malloc_stats_print ();
cristy12ac8192014-11-04 13:59:13 +000026976 ;
26977 return 0;
26978}
26979_ACEOF
26980if ac_fn_c_try_link "$LINENO"; then :
cristy3b0097d2014-11-04 15:34:47 +000026981 ac_cv_lib_jemalloc_malloc_stats_print=yes
cristy12ac8192014-11-04 13:59:13 +000026982else
cristy3b0097d2014-11-04 15:34:47 +000026983 ac_cv_lib_jemalloc_malloc_stats_print=no
cristy12ac8192014-11-04 13:59:13 +000026984fi
26985rm -f core conftest.err conftest.$ac_objext \
26986 conftest$ac_exeext conftest.$ac_ext
26987LIBS=$ac_check_lib_save_LIBS
26988fi
cristy3b0097d2014-11-04 15:34:47 +000026989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jemalloc_malloc_stats_print" >&5
26990$as_echo "$ac_cv_lib_jemalloc_malloc_stats_print" >&6; }
26991if test "x$ac_cv_lib_jemalloc_malloc_stats_print" = xyes; then :
cristy22007ae2014-11-04 15:59:22 +000026992 passed=`expr $passed + 1`
26993else
26994 failed=`expr $failed + 1`
cristy12ac8192014-11-04 13:59:13 +000026995fi
26996
cristy3b0097d2014-11-04 15:34:47 +000026997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if jemalloc memory allocation library is complete" >&5
26998$as_echo_n "checking if jemalloc memory allocation library is complete... " >&6; }
26999 if test $passed -gt 0; then
27000 if test $failed -gt 0; then
27001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27002$as_echo "no -- some components failed test" >&6; }
27003 have_jemalloc='no (failed tests)'
27004 else
27005 JEMALLOC_LIBS='-ljemalloc'
27006 LIBS="$JEMALLOC_LIBS $LIBS"
cristy12ac8192014-11-04 13:59:13 +000027007
cristy3b0097d2014-11-04 15:34:47 +000027008$as_echo "#define HasJEMALLOC 1" >>confdefs.h
cristy12ac8192014-11-04 13:59:13 +000027009
cristy3b0097d2014-11-04 15:34:47 +000027010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27011$as_echo "yes" >&6; }
27012 have_jemalloc='yes'
27013 fi
cristy12ac8192014-11-04 13:59:13 +000027014 else
cristy3b0097d2014-11-04 15:34:47 +000027015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27016$as_echo "no" >&6; }
cristy12ac8192014-11-04 13:59:13 +000027017 fi
27018fi
cristy3b0097d2014-11-04 15:34:47 +000027019 if test "$have_jemalloc" = 'yes'; then
27020 HasJEMALLOC_TRUE=
27021 HasJEMALLOC_FALSE='#'
27022else
27023 HasJEMALLOC_TRUE='#'
27024 HasJEMALLOC_FALSE=
cristy12ac8192014-11-04 13:59:13 +000027025fi
27026
cristy3b0097d2014-11-04 15:34:47 +000027027
27028
cristy3ed852e2009-09-05 21:47:34 +000027029#
27030# Check for umem.
27031#
27032have_umem='no'
27033UMEM_LIBS=''
27034if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000027036$as_echo_n "checking for UMEM support ... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000027037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27038$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027039 failed=0
27040 passed=0
cristy8b350f62009-11-15 23:12:43 +000027041 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027042if test "x$ac_cv_header_umem_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027043 passed=`expr $passed + 1`
27044else
27045 failed=`expr $failed + 1`
27046fi
27047
27048
cristy8b350f62009-11-15 23:12:43 +000027049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000027050$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027051if ${ac_cv_lib_umem_umem_alloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027052 $as_echo_n "(cached) " >&6
27053else
27054 ac_check_lib_save_LIBS=$LIBS
27055LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027056cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027057/* end confdefs.h. */
27058
27059/* Override any GCC internal prototype to avoid an error.
27060 Use char because int might match the return type of a GCC
27061 builtin and then its argument prototype would still apply. */
27062#ifdef __cplusplus
27063extern "C"
27064#endif
27065char umem_alloc ();
27066int
27067main ()
27068{
27069return umem_alloc ();
27070 ;
27071 return 0;
27072}
27073_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027074if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027075 ac_cv_lib_umem_umem_alloc=yes
27076else
cristy8b350f62009-11-15 23:12:43 +000027077 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000027078fi
cristy8b350f62009-11-15 23:12:43 +000027079rm -f core conftest.err conftest.$ac_objext \
27080 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027081LIBS=$ac_check_lib_save_LIBS
27082fi
cristy8b350f62009-11-15 23:12:43 +000027083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027084$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000027085if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027086 passed=`expr $passed + 1`
27087else
27088 failed=`expr $failed + 1`
27089fi
27090
cristy8b350f62009-11-15 23:12:43 +000027091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000027092$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027093if ${ac_cv_lib_umem_umem_free+:} 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_free ();
27108int
27109main ()
27110{
27111return umem_free ();
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_free=yes
27118else
cristy8b350f62009-11-15 23:12:43 +000027119 ac_cv_lib_umem_umem_free=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_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000027126$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristyda16f162011-02-19 23:52:17 +000027127if test "x$ac_cv_lib_umem_umem_free" = 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 if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027134$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
27135 if test $passed -gt 0; then
27136 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000027137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27138$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027139 have_umem='no (failed tests)'
27140 else
27141 UMEM_LIBS='-lumem'
27142 LIBS="$UMEM_LIBS $LIBS"
27143
cristy8b350f62009-11-15 23:12:43 +000027144$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027145
cristyad38abe2012-12-23 23:03:21 +000027146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27147$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027148 have_umem='yes'
27149 fi
27150 else
cristyad38abe2012-12-23 23:03:21 +000027151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27152$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027153 fi
27154fi
cristy73bd4a52010-10-05 11:24:23 +000027155 if test "$have_umem" = 'yes'; then
27156 HasUMEM_TRUE=
27157 HasUMEM_FALSE='#'
27158else
27159 HasUMEM_TRUE='#'
27160 HasUMEM_FALSE=
27161fi
27162
cristy3ed852e2009-09-05 21:47:34 +000027163
27164
27165#
27166# Add support for ccmalloc memory debugging library if requested
27167#
27168have_ccmalloc='no'
27169CCMALLOC_LIBS=''
27170if test "$enable_ccmalloc" = 'yes'; then
27171 # Extract the first word of "ccmalloc", so it can be a program name with args.
27172set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000027173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000027174$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027175if ${ac_cv_path_CCMALLOCDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027176 $as_echo_n "(cached) " >&6
27177else
27178 case $CCMALLOCDelegate in
27179 [\\/]* | ?:[\\/]*)
27180 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
27181 ;;
27182 *)
27183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27184for as_dir in $PATH
27185do
27186 IFS=$as_save_IFS
27187 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000027188 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000027189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000027190 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000027191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027192 break 2
27193 fi
27194done
cristy8b350f62009-11-15 23:12:43 +000027195 done
cristy3ed852e2009-09-05 21:47:34 +000027196IFS=$as_save_IFS
27197
27198 ;;
27199esac
27200fi
27201CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
27202if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000027203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000027204$as_echo "$CCMALLOCDelegate" >&6; }
27205else
cristy8b350f62009-11-15 23:12:43 +000027206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027207$as_echo "no" >&6; }
27208fi
27209
27210
27211 if test -n "$CCMALLOCDelegate"; then
27212 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
27213 OLIBS="$LIBS"
27214 # Assume that gcc is used with ccmalloc.
27215 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000027216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027217$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027218if ${ac_cv_lib_ccmalloc_ccmalloc_malloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027219 $as_echo_n "(cached) " >&6
27220else
27221 ac_check_lib_save_LIBS=$LIBS
27222LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027223cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027224/* end confdefs.h. */
27225
27226/* Override any GCC internal prototype to avoid an error.
27227 Use char because int might match the return type of a GCC
27228 builtin and then its argument prototype would still apply. */
27229#ifdef __cplusplus
27230extern "C"
27231#endif
27232char ccmalloc_malloc ();
27233int
27234main ()
27235{
27236return ccmalloc_malloc ();
27237 ;
27238 return 0;
27239}
27240_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027241if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027242 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
27243else
cristy8b350f62009-11-15 23:12:43 +000027244 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000027245fi
cristy8b350f62009-11-15 23:12:43 +000027246rm -f core conftest.err conftest.$ac_objext \
27247 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027248LIBS=$ac_check_lib_save_LIBS
27249fi
cristy8b350f62009-11-15 23:12:43 +000027250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027251$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000027252if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027253 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
27254fi
27255
27256 if test -n "$CCMALLOC_LIBS"; then
27257 LIBS="$OLIBS"
27258 LIBS="$LIBS $CCMALLOC_LIBS"
27259 have_ccmalloc='yes'
27260 else
27261 LIBS="$OLIBS"
27262 fi
27263 fi
27264fi
27265
27266#
cristy944e51f2013-04-16 18:45:02 +000027267# Add support for 'huge pages' if requested
27268#
27269if test "x$enable_hugepages" != "xno"; then :
27270
27271
27272$as_echo "#define HAVE_HUGEPAGES 1" >>confdefs.h
27273
27274
27275fi
27276
27277#
cristy3ed852e2009-09-05 21:47:34 +000027278# Add support for efence memory debugging library if requested
27279#
27280if test "$enable_efence" = 'yes'; then
27281 EFENCE_LIBS='-lefence'
27282 LIBS="$EFENCE_LIBS $LIBS"
27283fi
27284
cristy3ed852e2009-09-05 21:47:34 +000027285
27286#
27287# Check for BZLIB
27288#
27289
27290
27291# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000027292if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027293 withval=$with_bzlib; with_bzlib=$withval
27294else
27295 with_bzlib='yes'
27296fi
27297
27298
27299if test "$with_bzlib" != 'yes'; then
27300 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
27301fi
27302
27303have_bzlib='no'
27304if test "$with_bzlib" != 'no'; then
27305 BZLIB_LIBS=''
cristyad38abe2012-12-23 23:03:21 +000027306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27307$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000027309$as_echo_n "checking for BZLIB... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000027310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27311$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027312 failed=0
27313 passed=0
27314 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000027315 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027316if test "x$ac_cv_header_bzlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027317 passed=`expr $passed + 1`
27318else
27319 failed=`expr $failed + 1`
27320fi
27321
27322
cristy8b350f62009-11-15 23:12:43 +000027323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000027324$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027325if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027326 $as_echo_n "(cached) " >&6
27327else
27328 ac_check_lib_save_LIBS=$LIBS
27329LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027330cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027331/* end confdefs.h. */
27332
27333/* Override any GCC internal prototype to avoid an error.
27334 Use char because int might match the return type of a GCC
27335 builtin and then its argument prototype would still apply. */
27336#ifdef __cplusplus
27337extern "C"
27338#endif
27339char BZ2_bzDecompress ();
27340int
27341main ()
27342{
27343return BZ2_bzDecompress ();
27344 ;
27345 return 0;
27346}
27347_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027348if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027349 ac_cv_lib_bz2_BZ2_bzDecompress=yes
27350else
cristy8b350f62009-11-15 23:12:43 +000027351 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000027352fi
cristy8b350f62009-11-15 23:12:43 +000027353rm -f core conftest.err conftest.$ac_objext \
27354 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027355LIBS=$ac_check_lib_save_LIBS
27356fi
cristy8b350f62009-11-15 23:12:43 +000027357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027358$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027359if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027360 found_libbz=`expr $found_libbz + 1`
27361fi
27362
27363 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000027365$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027366if ${ac_cv_lib_bz2__imp__BZ2_decompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027367 $as_echo_n "(cached) " >&6
27368else
27369 ac_check_lib_save_LIBS=$LIBS
27370LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027371cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027372/* end confdefs.h. */
27373
27374/* Override any GCC internal prototype to avoid an error.
27375 Use char because int might match the return type of a GCC
27376 builtin and then its argument prototype would still apply. */
27377#ifdef __cplusplus
27378extern "C"
27379#endif
27380char _imp__BZ2_decompress ();
27381int
27382main ()
27383{
27384return _imp__BZ2_decompress ();
27385 ;
27386 return 0;
27387}
27388_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027389if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027390 ac_cv_lib_bz2__imp__BZ2_decompress=yes
27391else
cristy8b350f62009-11-15 23:12:43 +000027392 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000027393fi
cristy8b350f62009-11-15 23:12:43 +000027394rm -f core conftest.err conftest.$ac_objext \
27395 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027396LIBS=$ac_check_lib_save_LIBS
27397fi
cristy8b350f62009-11-15 23:12:43 +000027398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027399$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027400if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027401 found_libbz=`expr $found_libbz + 1`
27402fi
27403
27404 fi
27405 if test $found_libbz -gt 0; then
27406 passed=`expr $passed + 1`
27407 else
27408 failed=`expr $failed + 1`
27409 fi
cristy8b350f62009-11-15 23:12:43 +000027410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027411$as_echo_n "checking if BZLIB package is complete... " >&6; }
27412 if test $passed -gt 0; then
27413 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000027414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27415$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027416 have_bzlib='no (failed tests)'
27417 else
27418 BZLIB_LIBS='-lbz2'
27419 LIBS="$BZLIB_LIBS $LIBS"
27420
cristy8b350f62009-11-15 23:12:43 +000027421$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027422
cristyad38abe2012-12-23 23:03:21 +000027423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27424$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027425 have_bzlib='yes'
27426 fi
27427 else
cristyad38abe2012-12-23 23:03:21 +000027428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27429$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027430 fi
27431fi
cristy73bd4a52010-10-05 11:24:23 +000027432 if test "$have_bzlib" = 'yes'; then
27433 BZLIB_DELEGATE_TRUE=
27434 BZLIB_DELEGATE_FALSE='#'
27435else
27436 BZLIB_DELEGATE_TRUE='#'
27437 BZLIB_DELEGATE_FALSE=
27438fi
27439
cristy3ed852e2009-09-05 21:47:34 +000027440
27441
27442#
27443# Find the X11 include and library directories.
27444#
27445IPC_LIBS=''
27446X11_LIBS=''
27447XEXT_LIBS=''
27448XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000027449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000027450$as_echo_n "checking for X... " >&6; }
27451
27452
27453# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000027454if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000027455 withval=$with_x;
27456fi
27457
27458# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
27459if test "x$with_x" = xno; then
27460 # The user explicitly disabled X.
27461 have_x=disabled
27462else
27463 case $x_includes,$x_libraries in #(
cristy98dddb52010-11-04 00:30:15 +000027464 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
cristyda16f162011-02-19 23:52:17 +000027465 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
cristyc7083c12009-10-14 03:16:55 +000027466 $as_echo_n "(cached) " >&6
27467else
27468 # One or both of the vars are not set, and there is no cached value.
27469ac_x_includes=no ac_x_libraries=no
27470rm -f -r conftest.dir
27471if mkdir conftest.dir; then
27472 cd conftest.dir
27473 cat >Imakefile <<'_ACEOF'
27474incroot:
27475 @echo incroot='${INCROOT}'
27476usrlibdir:
27477 @echo usrlibdir='${USRLIBDIR}'
27478libdir:
27479 @echo libdir='${LIBDIR}'
27480_ACEOF
27481 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
cristy98dddb52010-11-04 00:30:15 +000027482 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristyc7083c12009-10-14 03:16:55 +000027483 for ac_var in incroot usrlibdir libdir; do
27484 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
27485 done
27486 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
27487 for ac_extension in a so sl dylib la dll; do
27488 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
27489 test -f "$ac_im_libdir/libX11.$ac_extension"; then
27490 ac_im_usrlibdir=$ac_im_libdir; break
27491 fi
27492 done
27493 # Screen out bogus values from the imake configuration. They are
27494 # bogus both because they are the default anyway, and because
27495 # using them would break gcc on systems where it needs fixed includes.
27496 case $ac_im_incroot in
27497 /usr/include) ac_x_includes= ;;
27498 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
27499 esac
27500 case $ac_im_usrlibdir in
27501 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
27502 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
27503 esac
27504 fi
27505 cd ..
27506 rm -f -r conftest.dir
27507fi
27508
27509# Standard set of common directories for X headers.
27510# Check X11 before X11Rn because it is often a symlink to the current release.
27511ac_x_header_dirs='
27512/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000027513/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000027514/usr/X11R6/include
27515/usr/X11R5/include
27516/usr/X11R4/include
27517
27518/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000027519/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000027520/usr/include/X11R6
27521/usr/include/X11R5
27522/usr/include/X11R4
27523
27524/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000027525/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000027526/usr/local/X11R6/include
27527/usr/local/X11R5/include
27528/usr/local/X11R4/include
27529
27530/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000027531/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000027532/usr/local/include/X11R6
27533/usr/local/include/X11R5
27534/usr/local/include/X11R4
27535
27536/usr/X386/include
27537/usr/x386/include
27538/usr/XFree86/include/X11
27539
27540/usr/include
27541/usr/local/include
27542/usr/unsupported/include
27543/usr/athena/include
27544/usr/local/x11r5/include
27545/usr/lpp/Xamples/include
27546
27547/usr/openwin/include
27548/usr/openwin/share/include'
27549
27550if test "$ac_x_includes" = no; then
27551 # Guess where to find include files, by looking for Xlib.h.
27552 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000027553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027554/* end confdefs.h. */
27555#include <X11/Xlib.h>
27556_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027557if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000027558 # We can compile using X headers with no special include directory.
27559ac_x_includes=
27560else
cristyc7083c12009-10-14 03:16:55 +000027561 for ac_dir in $ac_x_header_dirs; do
27562 if test -r "$ac_dir/X11/Xlib.h"; then
27563 ac_x_includes=$ac_dir
27564 break
27565 fi
27566done
27567fi
cristyda16f162011-02-19 23:52:17 +000027568rm -f conftest.err conftest.i conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027569fi # $ac_x_includes = no
27570
27571if test "$ac_x_libraries" = no; then
27572 # Check for the libraries.
27573 # See if we find them without any special options.
27574 # Don't add to $LIBS permanently.
27575 ac_save_LIBS=$LIBS
27576 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027578/* end confdefs.h. */
27579#include <X11/Xlib.h>
27580int
27581main ()
27582{
27583XrmInitialize ()
27584 ;
27585 return 0;
27586}
27587_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027588if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000027589 LIBS=$ac_save_LIBS
27590# We can link X programs with no special library path.
27591ac_x_libraries=
27592else
cristy8b350f62009-11-15 23:12:43 +000027593 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000027594for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
27595do
27596 # Don't even attempt the hair of trying to link an X program!
27597 for ac_extension in a so sl dylib la dll; do
27598 if test -r "$ac_dir/libX11.$ac_extension"; then
27599 ac_x_libraries=$ac_dir
27600 break 2
27601 fi
27602 done
27603done
27604fi
cristy8b350f62009-11-15 23:12:43 +000027605rm -f core conftest.err conftest.$ac_objext \
27606 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027607fi # $ac_x_libraries = no
27608
27609case $ac_x_includes,$ac_x_libraries in #(
27610 no,* | *,no | *\'*)
27611 # Didn't find X, or a directory has "'" in its name.
27612 ac_cv_have_x="have_x=no";; #(
27613 *)
27614 # Record where we found X for the cache.
27615 ac_cv_have_x="have_x=yes\
27616 ac_x_includes='$ac_x_includes'\
27617 ac_x_libraries='$ac_x_libraries'"
27618esac
27619fi
27620;; #(
27621 *) have_x=yes;;
27622 esac
27623 eval "$ac_cv_have_x"
27624fi # $with_x != no
27625
27626if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000027627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000027628$as_echo "$have_x" >&6; }
27629 no_x=yes
27630else
27631 # If each of the values was on the command line, it overrides each guess.
27632 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
27633 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
27634 # Update the cache value to reflect the command line values.
27635 ac_cv_have_x="have_x=yes\
27636 ac_x_includes='$x_includes'\
27637 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000027638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000027639$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
27640fi
27641
cristy3ed852e2009-09-05 21:47:34 +000027642if test "$no_x" = yes; then
27643 # Not all programs may use this symbol, but it does not hurt to define it.
27644
cristy8b350f62009-11-15 23:12:43 +000027645$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027646
27647 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
27648else
27649 if test -n "$x_includes"; then
27650 X_CFLAGS="$X_CFLAGS -I$x_includes"
27651 fi
27652
27653 # It would also be nice to do this for all -L options, not just this one.
27654 if test -n "$x_libraries"; then
27655 X_LIBS="$X_LIBS -L$x_libraries"
27656 # For Solaris; some versions of Sun CC require a space after -R and
27657 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000027658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000027659$as_echo_n "checking whether -R must be followed by a space... " >&6; }
27660 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
27661 ac_xsave_c_werror_flag=$ac_c_werror_flag
27662 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000027663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027664/* end confdefs.h. */
27665
27666int
27667main ()
27668{
27669
27670 ;
27671 return 0;
27672}
27673_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027674if ac_fn_c_try_link "$LINENO"; then :
27675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027676$as_echo "no" >&6; }
27677 X_LIBS="$X_LIBS -R$x_libraries"
27678else
cristy8b350f62009-11-15 23:12:43 +000027679 LIBS="$ac_xsave_LIBS -R $x_libraries"
27680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027681/* end confdefs.h. */
27682
27683int
27684main ()
27685{
27686
27687 ;
27688 return 0;
27689}
27690_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027691if ac_fn_c_try_link "$LINENO"; then :
27692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027693$as_echo "yes" >&6; }
27694 X_LIBS="$X_LIBS -R $x_libraries"
27695else
cristy8b350f62009-11-15 23:12:43 +000027696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000027697$as_echo "neither works" >&6; }
27698fi
cristy8b350f62009-11-15 23:12:43 +000027699rm -f core conftest.err conftest.$ac_objext \
27700 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027701fi
cristy8b350f62009-11-15 23:12:43 +000027702rm -f core conftest.err conftest.$ac_objext \
27703 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027704 ac_c_werror_flag=$ac_xsave_c_werror_flag
27705 LIBS=$ac_xsave_LIBS
27706 fi
27707
27708 # Check for system-dependent libraries X programs must link with.
27709 # Do this before checking for the system-independent R6 libraries
27710 # (-lICE), since we may need -lsocket or whatever for X linking.
27711
27712 if test "$ISC" = yes; then
27713 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
27714 else
27715 # Martyn Johnson says this is needed for Ultrix, if the X
27716 # libraries were built with DECnet support. And Karl Berry says
27717 # the Alpha needs dnet_stub (dnet does not exist).
27718 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000027719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027720/* end confdefs.h. */
27721
27722/* Override any GCC internal prototype to avoid an error.
27723 Use char because int might match the return type of a GCC
27724 builtin and then its argument prototype would still apply. */
27725#ifdef __cplusplus
27726extern "C"
27727#endif
27728char XOpenDisplay ();
27729int
27730main ()
27731{
27732return XOpenDisplay ();
27733 ;
27734 return 0;
27735}
27736_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027737if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027738
cristy8b350f62009-11-15 23:12:43 +000027739else
27740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000027741$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027742if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027743 $as_echo_n "(cached) " >&6
27744else
27745 ac_check_lib_save_LIBS=$LIBS
27746LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027747cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027748/* end confdefs.h. */
27749
27750/* Override any GCC internal prototype to avoid an error.
27751 Use char because int might match the return type of a GCC
27752 builtin and then its argument prototype would still apply. */
27753#ifdef __cplusplus
27754extern "C"
27755#endif
27756char dnet_ntoa ();
27757int
27758main ()
27759{
27760return dnet_ntoa ();
27761 ;
27762 return 0;
27763}
27764_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027765if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027766 ac_cv_lib_dnet_dnet_ntoa=yes
27767else
cristy8b350f62009-11-15 23:12:43 +000027768 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000027769fi
cristy8b350f62009-11-15 23:12:43 +000027770rm -f core conftest.err conftest.$ac_objext \
27771 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027772LIBS=$ac_check_lib_save_LIBS
27773fi
cristy8b350f62009-11-15 23:12:43 +000027774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027775$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027776if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027777 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
27778fi
27779
27780 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000027781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000027782$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027783if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027784 $as_echo_n "(cached) " >&6
27785else
27786 ac_check_lib_save_LIBS=$LIBS
27787LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027788cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027789/* end confdefs.h. */
27790
27791/* Override any GCC internal prototype to avoid an error.
27792 Use char because int might match the return type of a GCC
27793 builtin and then its argument prototype would still apply. */
27794#ifdef __cplusplus
27795extern "C"
27796#endif
27797char dnet_ntoa ();
27798int
27799main ()
27800{
27801return dnet_ntoa ();
27802 ;
27803 return 0;
27804}
27805_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027806if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027807 ac_cv_lib_dnet_stub_dnet_ntoa=yes
27808else
cristy8b350f62009-11-15 23:12:43 +000027809 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000027810fi
cristy8b350f62009-11-15 23:12:43 +000027811rm -f core conftest.err conftest.$ac_objext \
27812 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027813LIBS=$ac_check_lib_save_LIBS
27814fi
cristy8b350f62009-11-15 23:12:43 +000027815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027816$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027817if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027818 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
27819fi
27820
27821 fi
27822fi
cristy8b350f62009-11-15 23:12:43 +000027823rm -f core conftest.err conftest.$ac_objext \
27824 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027825 LIBS="$ac_xsave_LIBS"
27826
27827 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
27828 # to get the SysV transport functions.
27829 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
27830 # needs -lnsl.
27831 # The nsl library prevents programs from opening the X display
27832 # on Irix 5.2, according to T.E. Dickey.
27833 # The functions gethostbyname, getservbyname, and inet_addr are
27834 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000027835 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
cristyda16f162011-02-19 23:52:17 +000027836if test "x$ac_cv_func_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027837
cristy3ed852e2009-09-05 21:47:34 +000027838fi
27839
cristy3ed852e2009-09-05 21:47:34 +000027840 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000027842$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027843if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027844 $as_echo_n "(cached) " >&6
27845else
27846 ac_check_lib_save_LIBS=$LIBS
27847LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027848cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027849/* end confdefs.h. */
27850
27851/* Override any GCC internal prototype to avoid an error.
27852 Use char because int might match the return type of a GCC
27853 builtin and then its argument prototype would still apply. */
27854#ifdef __cplusplus
27855extern "C"
27856#endif
27857char gethostbyname ();
27858int
27859main ()
27860{
27861return gethostbyname ();
27862 ;
27863 return 0;
27864}
27865_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027866if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027867 ac_cv_lib_nsl_gethostbyname=yes
27868else
cristy8b350f62009-11-15 23:12:43 +000027869 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027870fi
cristy8b350f62009-11-15 23:12:43 +000027871rm -f core conftest.err conftest.$ac_objext \
27872 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027873LIBS=$ac_check_lib_save_LIBS
27874fi
cristy8b350f62009-11-15 23:12:43 +000027875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027876$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027877if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027878 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
27879fi
27880
27881 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000027883$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027884if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027885 $as_echo_n "(cached) " >&6
27886else
27887 ac_check_lib_save_LIBS=$LIBS
27888LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027889cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027890/* end confdefs.h. */
27891
27892/* Override any GCC internal prototype to avoid an error.
27893 Use char because int might match the return type of a GCC
27894 builtin and then its argument prototype would still apply. */
27895#ifdef __cplusplus
27896extern "C"
27897#endif
27898char gethostbyname ();
27899int
27900main ()
27901{
27902return gethostbyname ();
27903 ;
27904 return 0;
27905}
27906_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027907if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027908 ac_cv_lib_bsd_gethostbyname=yes
27909else
cristy8b350f62009-11-15 23:12:43 +000027910 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027911fi
cristy8b350f62009-11-15 23:12:43 +000027912rm -f core conftest.err conftest.$ac_objext \
27913 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027914LIBS=$ac_check_lib_save_LIBS
27915fi
cristy8b350f62009-11-15 23:12:43 +000027916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027917$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027918if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027919 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
27920fi
27921
27922 fi
27923 fi
27924
27925 # lieder@skyler.mavd.honeywell.com says without -lsocket,
27926 # socket/setsockopt and other routines are undefined under SCO ODT
27927 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
27928 # on later versions), says Simon Leinen: it contains gethostby*
27929 # variants that don't use the name server (or something). -lsocket
27930 # must be given before -lnsl if both are needed. We assume that
27931 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000027932 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
cristyda16f162011-02-19 23:52:17 +000027933if test "x$ac_cv_func_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027934
cristy3ed852e2009-09-05 21:47:34 +000027935fi
27936
cristy3ed852e2009-09-05 21:47:34 +000027937 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000027938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000027939$as_echo_n "checking for connect in -lsocket... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027940if ${ac_cv_lib_socket_connect+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027941 $as_echo_n "(cached) " >&6
27942else
27943 ac_check_lib_save_LIBS=$LIBS
27944LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027945cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027946/* end confdefs.h. */
27947
27948/* Override any GCC internal prototype to avoid an error.
27949 Use char because int might match the return type of a GCC
27950 builtin and then its argument prototype would still apply. */
27951#ifdef __cplusplus
27952extern "C"
27953#endif
27954char connect ();
27955int
27956main ()
27957{
27958return connect ();
27959 ;
27960 return 0;
27961}
27962_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027963if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027964 ac_cv_lib_socket_connect=yes
27965else
cristy8b350f62009-11-15 23:12:43 +000027966 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000027967fi
cristy8b350f62009-11-15 23:12:43 +000027968rm -f core conftest.err conftest.$ac_objext \
27969 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027970LIBS=$ac_check_lib_save_LIBS
27971fi
cristy8b350f62009-11-15 23:12:43 +000027972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000027973$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristyda16f162011-02-19 23:52:17 +000027974if test "x$ac_cv_lib_socket_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027975 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
27976fi
27977
27978 fi
27979
27980 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000027981 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
cristyda16f162011-02-19 23:52:17 +000027982if test "x$ac_cv_func_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027983
cristy3ed852e2009-09-05 21:47:34 +000027984fi
27985
cristy3ed852e2009-09-05 21:47:34 +000027986 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000027987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000027988$as_echo_n "checking for remove in -lposix... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027989if ${ac_cv_lib_posix_remove+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027990 $as_echo_n "(cached) " >&6
27991else
27992 ac_check_lib_save_LIBS=$LIBS
27993LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027994cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027995/* end confdefs.h. */
27996
27997/* Override any GCC internal prototype to avoid an error.
27998 Use char because int might match the return type of a GCC
27999 builtin and then its argument prototype would still apply. */
28000#ifdef __cplusplus
28001extern "C"
28002#endif
28003char remove ();
28004int
28005main ()
28006{
28007return remove ();
28008 ;
28009 return 0;
28010}
28011_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028012if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028013 ac_cv_lib_posix_remove=yes
28014else
cristy8b350f62009-11-15 23:12:43 +000028015 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000028016fi
cristy8b350f62009-11-15 23:12:43 +000028017rm -f core conftest.err conftest.$ac_objext \
28018 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028019LIBS=$ac_check_lib_save_LIBS
28020fi
cristy8b350f62009-11-15 23:12:43 +000028021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000028022$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristyda16f162011-02-19 23:52:17 +000028023if test "x$ac_cv_lib_posix_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028024 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
28025fi
28026
28027 fi
28028
28029 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000028030 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
cristyda16f162011-02-19 23:52:17 +000028031if test "x$ac_cv_func_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028032
cristy3ed852e2009-09-05 21:47:34 +000028033fi
28034
cristy3ed852e2009-09-05 21:47:34 +000028035 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000028036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000028037$as_echo_n "checking for shmat in -lipc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028038if ${ac_cv_lib_ipc_shmat+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028039 $as_echo_n "(cached) " >&6
28040else
28041 ac_check_lib_save_LIBS=$LIBS
28042LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028043cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028044/* end confdefs.h. */
28045
28046/* Override any GCC internal prototype to avoid an error.
28047 Use char because int might match the return type of a GCC
28048 builtin and then its argument prototype would still apply. */
28049#ifdef __cplusplus
28050extern "C"
28051#endif
28052char shmat ();
28053int
28054main ()
28055{
28056return shmat ();
28057 ;
28058 return 0;
28059}
28060_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028061if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028062 ac_cv_lib_ipc_shmat=yes
28063else
cristy8b350f62009-11-15 23:12:43 +000028064 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000028065fi
cristy8b350f62009-11-15 23:12:43 +000028066rm -f core conftest.err conftest.$ac_objext \
28067 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028068LIBS=$ac_check_lib_save_LIBS
28069fi
cristy8b350f62009-11-15 23:12:43 +000028070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000028071$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristyda16f162011-02-19 23:52:17 +000028072if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028073 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
28074fi
28075
28076 fi
28077 fi
28078
28079 # Check for libraries that X11R6 Xt/Xaw programs need.
28080 ac_save_LDFLAGS=$LDFLAGS
28081 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
28082 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
28083 # check for ICE first), but we must link in the order -lSM -lICE or
28084 # we get undefined symbols. So assume we have SM if we have ICE.
28085 # These have to be linked with before -lX11, unlike the other
28086 # libraries we check for below, so use a different variable.
28087 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000028088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000028089$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028090if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028091 $as_echo_n "(cached) " >&6
28092else
28093 ac_check_lib_save_LIBS=$LIBS
28094LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028095cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028096/* end confdefs.h. */
28097
28098/* Override any GCC internal prototype to avoid an error.
28099 Use char because int might match the return type of a GCC
28100 builtin and then its argument prototype would still apply. */
28101#ifdef __cplusplus
28102extern "C"
28103#endif
28104char IceConnectionNumber ();
28105int
28106main ()
28107{
28108return IceConnectionNumber ();
28109 ;
28110 return 0;
28111}
28112_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028113if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028114 ac_cv_lib_ICE_IceConnectionNumber=yes
28115else
cristy8b350f62009-11-15 23:12:43 +000028116 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000028117fi
cristy8b350f62009-11-15 23:12:43 +000028118rm -f core conftest.err conftest.$ac_objext \
28119 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028120LIBS=$ac_check_lib_save_LIBS
28121fi
cristy8b350f62009-11-15 23:12:43 +000028122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000028123$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristyda16f162011-02-19 23:52:17 +000028124if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028125 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
28126fi
28127
28128 LDFLAGS=$ac_save_LDFLAGS
28129
28130fi
28131
28132if test "$no_x" != 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000028133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28134$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000028136$as_echo_n "checking for X11... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28138$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028139 LDFLAGS="$LDFLAGS $X_LIBS"
28140 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
28141 LIBS="$X11_LIBS $LIBS"
28142 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
28143
28144
cristy8b350f62009-11-15 23:12:43 +000028145$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028146
28147 #
28148 # Check for X11 shared memory extension
28149 #
28150 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000028151 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
cristyda16f162011-02-19 23:52:17 +000028152if test "x$ac_cv_func_shmctl" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028153 have_shmctl='yes'
28154fi
28155
28156 if test "$have_shmctl" != 'yes'; then
28157 PERSIST_LIBS=$LIBS
28158 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000028159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028160/* end confdefs.h. */
28161
28162/* Override any GCC internal prototype to avoid an error.
28163 Use char because int might match the return type of a GCC
28164 builtin and then its argument prototype would still apply. */
28165#ifdef __cplusplus
28166extern "C"
28167#endif
28168char shmctl ();
28169int
28170main ()
28171{
28172return shmctl ();
28173 ;
28174 return 0;
28175}
28176_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028177if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028178 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000028179fi
cristy8b350f62009-11-15 23:12:43 +000028180rm -f core conftest.err conftest.$ac_objext \
28181 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028182 LIBS=$PERSIST_LIBS
28183 fi
28184
28185 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000028186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028187$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028188if ${ac_cv_lib_Xext_XShmAttach+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028189 $as_echo_n "(cached) " >&6
28190else
28191 ac_check_lib_save_LIBS=$LIBS
28192LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028193cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028194/* end confdefs.h. */
28195
28196/* Override any GCC internal prototype to avoid an error.
28197 Use char because int might match the return type of a GCC
28198 builtin and then its argument prototype would still apply. */
28199#ifdef __cplusplus
28200extern "C"
28201#endif
28202char XShmAttach ();
28203int
28204main ()
28205{
28206return XShmAttach ();
28207 ;
28208 return 0;
28209}
28210_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028211if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028212 ac_cv_lib_Xext_XShmAttach=yes
28213else
cristy8b350f62009-11-15 23:12:43 +000028214 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000028215fi
cristy8b350f62009-11-15 23:12:43 +000028216rm -f core conftest.err conftest.$ac_objext \
28217 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028218LIBS=$ac_check_lib_save_LIBS
28219fi
cristy8b350f62009-11-15 23:12:43 +000028220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000028221$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristyda16f162011-02-19 23:52:17 +000028222if test "x$ac_cv_lib_Xext_XShmAttach" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028223 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000028224$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028225
28226fi
28227
28228 fi
28229
28230 #
28231 # Check for X11 shape extension
28232 #
cristy8b350f62009-11-15 23:12:43 +000028233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028234$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028235if ${ac_cv_lib_Xext_XShapeCombineMask+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028236 $as_echo_n "(cached) " >&6
28237else
28238 ac_check_lib_save_LIBS=$LIBS
28239LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028240cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028241/* end confdefs.h. */
28242
28243/* Override any GCC internal prototype to avoid an error.
28244 Use char because int might match the return type of a GCC
28245 builtin and then its argument prototype would still apply. */
28246#ifdef __cplusplus
28247extern "C"
28248#endif
28249char XShapeCombineMask ();
28250int
28251main ()
28252{
28253return XShapeCombineMask ();
28254 ;
28255 return 0;
28256}
28257_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028258if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028259 ac_cv_lib_Xext_XShapeCombineMask=yes
28260else
cristy8b350f62009-11-15 23:12:43 +000028261 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000028262fi
cristy8b350f62009-11-15 23:12:43 +000028263rm -f core conftest.err conftest.$ac_objext \
28264 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028265LIBS=$ac_check_lib_save_LIBS
28266fi
cristy8b350f62009-11-15 23:12:43 +000028267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000028268$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristyda16f162011-02-19 23:52:17 +000028269if test "x$ac_cv_lib_Xext_XShapeCombineMask" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028270 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000028271$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028272
28273fi
28274
cristy8b350f62009-11-15 23:12:43 +000028275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000028276$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028277if ${ac_cv_lib_Xt_XtSetEventDispatcher+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028278 $as_echo_n "(cached) " >&6
28279else
28280 ac_check_lib_save_LIBS=$LIBS
28281LIBS="-lXt $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 XtSetEventDispatcher ();
28292int
28293main ()
28294{
28295return XtSetEventDispatcher ();
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_Xt_XtSetEventDispatcher=yes
28302else
cristy8b350f62009-11-15 23:12:43 +000028303 ac_cv_lib_Xt_XtSetEventDispatcher=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_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000028310$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristyda16f162011-02-19 23:52:17 +000028311if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028312 XT_LIBS='-lXt'
28313fi
28314
28315 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
28316fi
28317if test "$no_x" != 'yes'; then
28318 have_x='yes'
28319else
28320 have_x='no'
28321fi
cristy73bd4a52010-10-05 11:24:23 +000028322 if test "$have_x" = 'yes'; then
28323 X11_DELEGATE_TRUE=
28324 X11_DELEGATE_FALSE='#'
28325else
28326 X11_DELEGATE_TRUE='#'
28327 X11_DELEGATE_FALSE=
28328fi
28329
cristy3ed852e2009-09-05 21:47:34 +000028330
28331
28332
28333
28334#
28335# Check for ZLIB
28336#
28337
28338# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000028339if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028340 withval=$with_zlib; with_zlib=$withval
28341else
28342 with_zlib='yes'
28343fi
28344
28345
28346if test "$with_zlib" != 'yes'; then
28347 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
28348fi
28349
28350have_zlib='no'
28351ZLIB_LIBS=''
28352if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28354$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000028356$as_echo_n "checking for ZLIB... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28358$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028359 ZLIB_LIBS=''
28360 failed=0
28361 passed=0
cristy8b350f62009-11-15 23:12:43 +000028362 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028363if test "x$ac_cv_header_zconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028364 passed=`expr $passed + 1`
28365else
28366 failed=`expr $failed + 1`
28367fi
28368
28369
cristy8b350f62009-11-15 23:12:43 +000028370 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028371if test "x$ac_cv_header_zlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028372 passed=`expr $passed + 1`
28373else
28374 failed=`expr $failed + 1`
28375fi
28376
28377
cristy8b350f62009-11-15 23:12:43 +000028378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028379$as_echo_n "checking for compress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028380if ${ac_cv_lib_z_compress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028381 $as_echo_n "(cached) " >&6
28382else
28383 ac_check_lib_save_LIBS=$LIBS
28384LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028385cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028386/* end confdefs.h. */
28387
28388/* Override any GCC internal prototype to avoid an error.
28389 Use char because int might match the return type of a GCC
28390 builtin and then its argument prototype would still apply. */
28391#ifdef __cplusplus
28392extern "C"
28393#endif
28394char compress ();
28395int
28396main ()
28397{
28398return compress ();
28399 ;
28400 return 0;
28401}
28402_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028403if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028404 ac_cv_lib_z_compress=yes
28405else
cristy8b350f62009-11-15 23:12:43 +000028406 ac_cv_lib_z_compress=no
cristy3ed852e2009-09-05 21:47:34 +000028407fi
cristy8b350f62009-11-15 23:12:43 +000028408rm -f core conftest.err conftest.$ac_objext \
28409 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028410LIBS=$ac_check_lib_save_LIBS
28411fi
cristy8b350f62009-11-15 23:12:43 +000028412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
cristy3ed852e2009-09-05 21:47:34 +000028413$as_echo "$ac_cv_lib_z_compress" >&6; }
cristyda16f162011-02-19 23:52:17 +000028414if test "x$ac_cv_lib_z_compress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028415 passed=`expr $passed + 1`
28416else
28417 failed=`expr $failed + 1`
28418fi
28419
cristy8b350f62009-11-15 23:12:43 +000028420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028421$as_echo_n "checking for uncompress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028422if ${ac_cv_lib_z_uncompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028423 $as_echo_n "(cached) " >&6
28424else
28425 ac_check_lib_save_LIBS=$LIBS
28426LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028427cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028428/* end confdefs.h. */
28429
28430/* Override any GCC internal prototype to avoid an error.
28431 Use char because int might match the return type of a GCC
28432 builtin and then its argument prototype would still apply. */
28433#ifdef __cplusplus
28434extern "C"
28435#endif
28436char uncompress ();
28437int
28438main ()
28439{
28440return uncompress ();
28441 ;
28442 return 0;
28443}
28444_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028445if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028446 ac_cv_lib_z_uncompress=yes
28447else
cristy8b350f62009-11-15 23:12:43 +000028448 ac_cv_lib_z_uncompress=no
cristy3ed852e2009-09-05 21:47:34 +000028449fi
cristy8b350f62009-11-15 23:12:43 +000028450rm -f core conftest.err conftest.$ac_objext \
28451 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028452LIBS=$ac_check_lib_save_LIBS
28453fi
cristy8b350f62009-11-15 23:12:43 +000028454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000028455$as_echo "$ac_cv_lib_z_uncompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000028456if test "x$ac_cv_lib_z_uncompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028457 passed=`expr $passed + 1`
28458else
28459 failed=`expr $failed + 1`
28460fi
28461
cristy8b350f62009-11-15 23:12:43 +000028462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028463$as_echo_n "checking for deflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028464if ${ac_cv_lib_z_deflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028465 $as_echo_n "(cached) " >&6
28466else
28467 ac_check_lib_save_LIBS=$LIBS
28468LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028469cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028470/* end confdefs.h. */
28471
28472/* Override any GCC internal prototype to avoid an error.
28473 Use char because int might match the return type of a GCC
28474 builtin and then its argument prototype would still apply. */
28475#ifdef __cplusplus
28476extern "C"
28477#endif
28478char deflate ();
28479int
28480main ()
28481{
28482return deflate ();
28483 ;
28484 return 0;
28485}
28486_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028487if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028488 ac_cv_lib_z_deflate=yes
28489else
cristy8b350f62009-11-15 23:12:43 +000028490 ac_cv_lib_z_deflate=no
cristy3ed852e2009-09-05 21:47:34 +000028491fi
cristy8b350f62009-11-15 23:12:43 +000028492rm -f core conftest.err conftest.$ac_objext \
28493 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028494LIBS=$ac_check_lib_save_LIBS
28495fi
cristy8b350f62009-11-15 23:12:43 +000028496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028497$as_echo "$ac_cv_lib_z_deflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000028498if test "x$ac_cv_lib_z_deflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028499 passed=`expr $passed + 1`
28500else
28501 failed=`expr $failed + 1`
28502fi
28503
cristy8b350f62009-11-15 23:12:43 +000028504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028505$as_echo_n "checking for inflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028506if ${ac_cv_lib_z_inflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028507 $as_echo_n "(cached) " >&6
28508else
28509 ac_check_lib_save_LIBS=$LIBS
28510LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028511cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028512/* end confdefs.h. */
28513
28514/* Override any GCC internal prototype to avoid an error.
28515 Use char because int might match the return type of a GCC
28516 builtin and then its argument prototype would still apply. */
28517#ifdef __cplusplus
28518extern "C"
28519#endif
28520char inflate ();
28521int
28522main ()
28523{
28524return inflate ();
28525 ;
28526 return 0;
28527}
28528_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028529if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028530 ac_cv_lib_z_inflate=yes
28531else
cristy8b350f62009-11-15 23:12:43 +000028532 ac_cv_lib_z_inflate=no
cristy3ed852e2009-09-05 21:47:34 +000028533fi
cristy8b350f62009-11-15 23:12:43 +000028534rm -f core conftest.err conftest.$ac_objext \
28535 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028536LIBS=$ac_check_lib_save_LIBS
28537fi
cristy8b350f62009-11-15 23:12:43 +000028538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028539$as_echo "$ac_cv_lib_z_inflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000028540if test "x$ac_cv_lib_z_inflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028541 passed=`expr $passed + 1`
28542else
28543 failed=`expr $failed + 1`
28544fi
28545
cristy8b350f62009-11-15 23:12:43 +000028546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028547$as_echo_n "checking for gzseek in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028548if ${ac_cv_lib_z_gzseek+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028549 $as_echo_n "(cached) " >&6
28550else
28551 ac_check_lib_save_LIBS=$LIBS
28552LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028553cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028554/* end confdefs.h. */
28555
28556/* Override any GCC internal prototype to avoid an error.
28557 Use char because int might match the return type of a GCC
28558 builtin and then its argument prototype would still apply. */
28559#ifdef __cplusplus
28560extern "C"
28561#endif
28562char gzseek ();
28563int
28564main ()
28565{
28566return gzseek ();
28567 ;
28568 return 0;
28569}
28570_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028571if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028572 ac_cv_lib_z_gzseek=yes
28573else
cristy8b350f62009-11-15 23:12:43 +000028574 ac_cv_lib_z_gzseek=no
cristy3ed852e2009-09-05 21:47:34 +000028575fi
cristy8b350f62009-11-15 23:12:43 +000028576rm -f core conftest.err conftest.$ac_objext \
28577 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028578LIBS=$ac_check_lib_save_LIBS
28579fi
cristy8b350f62009-11-15 23:12:43 +000028580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
cristy3ed852e2009-09-05 21:47:34 +000028581$as_echo "$ac_cv_lib_z_gzseek" >&6; }
cristyda16f162011-02-19 23:52:17 +000028582if test "x$ac_cv_lib_z_gzseek" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028583 passed=`expr $passed + 1`
28584else
28585 failed=`expr $failed + 1`
28586fi
28587
cristy8b350f62009-11-15 23:12:43 +000028588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028589$as_echo_n "checking for gztell in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028590if ${ac_cv_lib_z_gztell+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028591 $as_echo_n "(cached) " >&6
28592else
28593 ac_check_lib_save_LIBS=$LIBS
28594LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028595cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028596/* end confdefs.h. */
28597
28598/* Override any GCC internal prototype to avoid an error.
28599 Use char because int might match the return type of a GCC
28600 builtin and then its argument prototype would still apply. */
28601#ifdef __cplusplus
28602extern "C"
28603#endif
28604char gztell ();
28605int
28606main ()
28607{
28608return gztell ();
28609 ;
28610 return 0;
28611}
28612_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028613if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028614 ac_cv_lib_z_gztell=yes
28615else
cristy8b350f62009-11-15 23:12:43 +000028616 ac_cv_lib_z_gztell=no
cristy3ed852e2009-09-05 21:47:34 +000028617fi
cristy8b350f62009-11-15 23:12:43 +000028618rm -f core conftest.err conftest.$ac_objext \
28619 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028620LIBS=$ac_check_lib_save_LIBS
28621fi
cristy8b350f62009-11-15 23:12:43 +000028622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
cristy3ed852e2009-09-05 21:47:34 +000028623$as_echo "$ac_cv_lib_z_gztell" >&6; }
cristyda16f162011-02-19 23:52:17 +000028624if test "x$ac_cv_lib_z_gztell" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028625 passed=`expr $passed + 1`
28626else
28627 failed=`expr $failed + 1`
28628fi
28629
cristy8b350f62009-11-15 23:12:43 +000028630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028631$as_echo_n "checking if ZLIB package is complete... " >&6; }
28632 if test $passed -gt 0; then
28633 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28635$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028636 have_zlib='no (failed tests)'
28637 else
28638 ZLIB_LIBS='-lz'
28639 LIBS="$ZLIB_LIBS $LIBS"
28640
cristy8b350f62009-11-15 23:12:43 +000028641$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028642
cristyad38abe2012-12-23 23:03:21 +000028643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28644$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028645 have_zlib='yes'
28646 fi
28647 else
cristyad38abe2012-12-23 23:03:21 +000028648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28649$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028650 fi
28651fi
cristy73bd4a52010-10-05 11:24:23 +000028652 if test "$have_zlib" = 'yes'; then
28653 ZLIB_DELEGATE_TRUE=
28654 ZLIB_DELEGATE_FALSE='#'
28655else
28656 ZLIB_DELEGATE_TRUE='#'
28657 ZLIB_DELEGATE_FALSE=
28658fi
28659
cristy3ed852e2009-09-05 21:47:34 +000028660
28661
cristy5eef09f2012-10-16 12:08:28 +000028662# whether modules are built or not.
28663with_ltdl='yes'
28664have_ltdl='no'
28665LTDL_LIBS=''
28666if test "$build_modules" != 'no' ; then
cristyad38abe2012-12-23 23:03:21 +000028667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28668$as_echo "-------------------------------------------------------------" >&6; }
cristy5eef09f2012-10-16 12:08:28 +000028669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libltdl" >&5
28670$as_echo_n "checking for libltdl... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28672$as_echo "" >&6; }
cristy5eef09f2012-10-16 12:08:28 +000028673 failed=0
28674 passed=0
28675 ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default"
28676if test "x$ac_cv_header_ltdl_h" = xyes; then :
28677 passed=`expr $passed + 1`
28678else
28679 failed=`expr $failed + 1`
28680fi
28681
28682
28683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlinit in -lltdl" >&5
28684$as_echo_n "checking for lt_dlinit in -lltdl... " >&6; }
28685if ${ac_cv_lib_ltdl_lt_dlinit+:} false; then :
28686 $as_echo_n "(cached) " >&6
28687else
28688 ac_check_lib_save_LIBS=$LIBS
28689LIBS="-lltdl $LIBS"
28690cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28691/* end confdefs.h. */
28692
28693/* Override any GCC internal prototype to avoid an error.
28694 Use char because int might match the return type of a GCC
28695 builtin and then its argument prototype would still apply. */
28696#ifdef __cplusplus
28697extern "C"
28698#endif
28699char lt_dlinit ();
28700int
28701main ()
28702{
28703return lt_dlinit ();
28704 ;
28705 return 0;
28706}
28707_ACEOF
28708if ac_fn_c_try_link "$LINENO"; then :
28709 ac_cv_lib_ltdl_lt_dlinit=yes
28710else
28711 ac_cv_lib_ltdl_lt_dlinit=no
28712fi
28713rm -f core conftest.err conftest.$ac_objext \
28714 conftest$ac_exeext conftest.$ac_ext
28715LIBS=$ac_check_lib_save_LIBS
28716fi
28717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
28718$as_echo "$ac_cv_lib_ltdl_lt_dlinit" >&6; }
28719if test "x$ac_cv_lib_ltdl_lt_dlinit" = xyes; then :
28720 passed=`expr $passed + 1`
28721else
28722 failed=`expr $failed + 1`
28723fi
28724
28725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libltdl package is complete" >&5
28726$as_echo_n "checking if libltdl package is complete... " >&6; }
28727 if test $passed -gt 0 ; then
28728 if test $failed -gt 0 ; then
28729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28730$as_echo "no -- some components failed test" >&6; }
28731 have_ltdl='no (failed tests)'
28732 else
28733 LTDL_LIBS='-lltdl'
28734 LIBS="$LTDL_LIBS $LIBS"
28735
28736$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
28737
28738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28739$as_echo "yes" >&6; }
28740 have_ltdl='yes'
28741 fi
28742 else
28743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28744$as_echo "no" >&6; }
28745 fi
cristyaf4cbf32012-10-16 23:47:41 +000028746 if test "$have_ltdl" != 'yes' ; then
28747 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28748$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28749as_fn_error 1 "libltdl is required for modules build
28750See \`config.log' for more details" "$LINENO" 5; }
28751 fi
cristy5eef09f2012-10-16 12:08:28 +000028752fi
28753 if test "$have_ltdl" != 'no'; then
28754 WITH_LTDL_TRUE=
28755 WITH_LTDL_FALSE='#'
28756else
28757 WITH_LTDL_TRUE='#'
28758 WITH_LTDL_FALSE=
28759fi
28760
28761
cristy3ed852e2009-09-05 21:47:34 +000028762#
28763# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
28764#
28765LIB_DL=''
28766if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000028767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000028768$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028769if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028770 $as_echo_n "(cached) " >&6
28771else
28772 ac_check_lib_save_LIBS=$LIBS
28773LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028774cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028775/* end confdefs.h. */
28776
28777/* Override any GCC internal prototype to avoid an error.
28778 Use char because int might match the return type of a GCC
28779 builtin and then its argument prototype would still apply. */
28780#ifdef __cplusplus
28781extern "C"
28782#endif
28783char dlopen ();
28784int
28785main ()
28786{
28787return dlopen ();
28788 ;
28789 return 0;
28790}
28791_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028792if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028793 ac_cv_lib_dl_dlopen=yes
28794else
cristy8b350f62009-11-15 23:12:43 +000028795 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000028796fi
cristy8b350f62009-11-15 23:12:43 +000028797rm -f core conftest.err conftest.$ac_objext \
28798 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028799LIBS=$ac_check_lib_save_LIBS
28800fi
cristy8b350f62009-11-15 23:12:43 +000028801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000028802$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000028803if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028804 LIB_DL='-ldl'
28805fi
28806
28807 LIBS="$LIB_DL $LIBS"
28808fi
28809
28810
28811
28812#
cristy5a3dc992014-12-05 19:50:04 +000028813# Set Apple font directory.
28814#
28815
28816# Check whether --with-apple-font-dir was given.
28817if test "${with_apple_font_dir+set}" = set; then :
28818 withval=$with_apple_font_dir; with_apple_font_dir=$withval
28819else
28820 with_apple_font_dir='default'
28821fi
28822
28823
28824if test "$with_apple_font_dir" != 'default'; then
28825 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-apple-font-dir=$with_apple_font_dir "
28826fi
28827
28828
28829#
cristy3ed852e2009-09-05 21:47:34 +000028830# Check for Autotrace delegate library.
28831#
28832
28833# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000028834if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028835 withval=$with_autotrace; with_autotrace=$withval
28836else
28837 with_autotrace='no'
28838fi
28839
28840
28841if test "$with_autotrace" != 'yes'; then
28842 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
28843fi
28844
28845have_autotrace='no'
28846AUTOTRACE_CFLAGS=""
28847AUTOTRACE_LIBS=""
28848AUTOTRACE_PKG=""
28849if test "x$with_autotrace" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000028850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28851$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000028852
28853pkg_failed=no
28854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
28855$as_echo_n "checking for AUTOTRACE... " >&6; }
28856
28857if test -n "$AUTOTRACE_CFLAGS"; then
28858 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
28859 elif test -n "$PKG_CONFIG"; then
28860 if test -n "$PKG_CONFIG" && \
28861 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28862 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28863 ac_status=$?
28864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28865 test $ac_status = 0; }; then
28866 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000028867 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000028868else
28869 pkg_failed=yes
28870fi
28871 else
28872 pkg_failed=untried
28873fi
28874if test -n "$AUTOTRACE_LIBS"; then
28875 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
28876 elif test -n "$PKG_CONFIG"; then
28877 if test -n "$PKG_CONFIG" && \
28878 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28879 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28880 ac_status=$?
28881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28882 test $ac_status = 0; }; then
28883 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000028884 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000028885else
28886 pkg_failed=yes
28887fi
28888 else
28889 pkg_failed=untried
28890fi
28891
28892
28893
28894if test $pkg_failed = yes; then
cristy146497a2015-05-17 22:46:16 +000028895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28896$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000028897
28898if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28899 _pkg_short_errors_supported=yes
28900else
28901 _pkg_short_errors_supported=no
28902fi
28903 if test $_pkg_short_errors_supported = yes; then
cristy146497a2015-05-17 22:46:16 +000028904 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "autotrace >= 0.31.1" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000028905 else
cristy146497a2015-05-17 22:46:16 +000028906 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "autotrace >= 0.31.1" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000028907 fi
28908 # Put the nasty error message in config.log where it belongs
28909 echo "$AUTOTRACE_PKG_ERRORS" >&5
28910
cristy146497a2015-05-17 22:46:16 +000028911 have_autotrace=no
cristy73bd4a52010-10-05 11:24:23 +000028912elif test $pkg_failed = untried; then
cristy146497a2015-05-17 22:46:16 +000028913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28914$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000028915 have_autotrace=no
28916else
28917 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
28918 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
28919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28920$as_echo "yes" >&6; }
28921 have_autotrace=yes
28922fi
cristyad38abe2012-12-23 23:03:21 +000028923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28924$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028925fi
28926
28927if test "$have_autotrace" = 'yes'; then
28928 failed=0
28929
cristy8b350f62009-11-15 23:12:43 +000028930$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028931
cristyc6722092012-10-14 00:19:31 +000028932 if test "$build_modules" = 'no'; then
cristyfa161182012-12-19 15:45:28 +000028933 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000028934 fi
28935fi
28936
cristy73bd4a52010-10-05 11:24:23 +000028937 if test "$have_autotrace" = 'yes'; then
28938 AUTOTRACE_DELEGATE_TRUE=
28939 AUTOTRACE_DELEGATE_FALSE='#'
28940else
28941 AUTOTRACE_DELEGATE_TRUE='#'
28942 AUTOTRACE_DELEGATE_FALSE=
28943fi
28944
cristy3ed852e2009-09-05 21:47:34 +000028945
28946
28947
28948
28949#
28950# Check for Display Postscript delegate library.
28951#
28952
28953# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000028954if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028955 withval=$with_dps; with_dps=$withval
28956else
28957 with_dps='yes'
28958fi
28959
28960
28961if test "$with_dps" != 'yes'; then
28962 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
28963fi
28964
28965have_dps='no'
28966DPS_LIBS=''
28967if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28969$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000028971$as_echo_n "checking for DPS... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28973$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028974 failed=0
28975 passed=0
28976 PERSIST_CPPFLAGS="$CPPFLAGS"
28977 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000028978 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 +000028979if test "x$ac_cv_header_DPS_dpsXclient_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028980 passed=`expr $passed + 1`
28981else
28982 failed=`expr $failed + 1`
28983fi
28984
28985
28986 # DPS issues:
28987 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
28988 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
28989 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
28990 # ImageMagick itself doesn't use -lXt.
28991 have_libdps='no'
28992 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000028993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028994$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028995if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028996 $as_echo_n "(cached) " >&6
28997else
28998 ac_check_lib_save_LIBS=$LIBS
28999LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029000cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029001/* end confdefs.h. */
29002
29003/* Override any GCC internal prototype to avoid an error.
29004 Use char because int might match the return type of a GCC
29005 builtin and then its argument prototype would still apply. */
29006#ifdef __cplusplus
29007extern "C"
29008#endif
29009char DPSInitialize ();
29010int
29011main ()
29012{
29013return DPSInitialize ();
29014 ;
29015 return 0;
29016}
29017_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029018if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029019 ac_cv_lib_dps_DPSInitialize=yes
29020else
cristy8b350f62009-11-15 23:12:43 +000029021 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000029022fi
cristy8b350f62009-11-15 23:12:43 +000029023rm -f core conftest.err conftest.$ac_objext \
29024 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029025LIBS=$ac_check_lib_save_LIBS
29026fi
cristy8b350f62009-11-15 23:12:43 +000029027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000029028$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000029029if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029030 have_libdps='yes'
29031else
29032 have_libdps='no'
29033fi
29034
29035 if test "$have_libdps" != 'yes'; then
29036 # Unset cache variable so we can try again.
29037 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000029038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000029039$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029040if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029041 $as_echo_n "(cached) " >&6
29042else
29043 ac_check_lib_save_LIBS=$LIBS
29044LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029045cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029046/* end confdefs.h. */
29047
29048/* Override any GCC internal prototype to avoid an error.
29049 Use char because int might match the return type of a GCC
29050 builtin and then its argument prototype would still apply. */
29051#ifdef __cplusplus
29052extern "C"
29053#endif
29054char DPSInitialize ();
29055int
29056main ()
29057{
29058return DPSInitialize ();
29059 ;
29060 return 0;
29061}
29062_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029063if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029064 ac_cv_lib_dps_DPSInitialize=yes
29065else
cristy8b350f62009-11-15 23:12:43 +000029066 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000029067fi
cristy8b350f62009-11-15 23:12:43 +000029068rm -f core conftest.err conftest.$ac_objext \
29069 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029070LIBS=$ac_check_lib_save_LIBS
29071fi
cristy8b350f62009-11-15 23:12:43 +000029072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000029073$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000029074if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029075 have_libdps='yes'
29076else
29077 have_libdps='no'
29078fi
29079
29080 if test "$have_libdps" = 'yes'; then
29081 LIBDPS_XT='-lXt'
29082 fi
29083 fi
29084 if test "$have_libdps" = 'yes'; then
29085 passed=`expr $passed + 1`
29086 else
29087 failed=`expr $failed + 1`
29088 fi
cristy8b350f62009-11-15 23:12:43 +000029089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000029090$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029091if ${ac_cv_lib_dpstk_XDPSPixelsPerPoint+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029092 $as_echo_n "(cached) " >&6
29093else
29094 ac_check_lib_save_LIBS=$LIBS
29095LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029096cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029097/* end confdefs.h. */
29098
29099/* Override any GCC internal prototype to avoid an error.
29100 Use char because int might match the return type of a GCC
29101 builtin and then its argument prototype would still apply. */
29102#ifdef __cplusplus
29103extern "C"
29104#endif
29105char XDPSPixelsPerPoint ();
29106int
29107main ()
29108{
29109return XDPSPixelsPerPoint ();
29110 ;
29111 return 0;
29112}
29113_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029114if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029115 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
29116else
cristy8b350f62009-11-15 23:12:43 +000029117 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000029118fi
cristy8b350f62009-11-15 23:12:43 +000029119rm -f core conftest.err conftest.$ac_objext \
29120 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029121LIBS=$ac_check_lib_save_LIBS
29122fi
cristy8b350f62009-11-15 23:12:43 +000029123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000029124$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristyda16f162011-02-19 23:52:17 +000029125if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029126 passed=`expr $passed + 1`
29127else
29128 failed=`expr $failed + 1`
29129fi
29130
cristy8b350f62009-11-15 23:12:43 +000029131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029132$as_echo_n "checking if DPS package is complete... " >&6; }
29133 if test $passed -gt 0; then
29134 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29136$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029137 have_dps='no (failed tests)'
29138 CPPFLAGS="$PERSIST_CPPFLAGS"
29139 else
29140 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
29141 LIBS="$DPS_LIBS $LIBS"
29142
cristy8b350f62009-11-15 23:12:43 +000029143$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029144
cristyad38abe2012-12-23 23:03:21 +000029145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29146$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029147 have_dps='yes'
29148 fi
29149 else
cristyad38abe2012-12-23 23:03:21 +000029150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29151$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029152 CPPFLAGS=$PERSIST_CPPFLAGS
29153 fi
29154fi
cristy73bd4a52010-10-05 11:24:23 +000029155 if test "$have_dps" = 'yes'; then
29156 DPS_DELEGATE_TRUE=
29157 DPS_DELEGATE_FALSE='#'
29158else
29159 DPS_DELEGATE_TRUE='#'
29160 DPS_DELEGATE_FALSE=
29161fi
29162
cristy3ed852e2009-09-05 21:47:34 +000029163
29164
29165
29166#
cristy430a7312010-01-21 20:44:04 +000029167# Set DejaVu font directory.
29168#
29169
29170# Check whether --with-dejavu-font-dir was given.
29171if test "${with_dejavu_font_dir+set}" = set; then :
29172 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
29173else
29174 with_dejavu_font_dir='default'
29175fi
29176
29177
29178if test "$with_dejavu_font_dir" != 'default'; then
29179 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
29180fi
29181
29182
29183#
cristy3ed852e2009-09-05 21:47:34 +000029184# Check for FFTW delegate library.
29185#
29186
29187# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000029188if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029189 withval=$with_fftw; with_fftw=$withval
29190else
29191 with_fftw='yes'
29192fi
29193
29194
29195if test "$with_fftw" != 'yes'; then
29196 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
29197fi
29198
cristy81beccd2011-10-03 18:17:24 +000029199have_fftw='no'
29200FFTW_LIBS=''
29201if test "$with_fftw" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29203$as_echo "-------------------------------------------------------------" >&6; }
cristy81beccd2011-10-03 18:17:24 +000029204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
29205$as_echo_n "checking for FFTW... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29207$as_echo "" >&6; }
cristy81beccd2011-10-03 18:17:24 +000029208 failed=0
29209 passed=0
29210 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
29211if test "x$ac_cv_header_fftw3_h" = xyes; then :
29212 passed=`expr $passed + 1`
29213else
29214 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029215fi
29216
cristy81beccd2011-10-03 18:17:24 +000029217
29218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
29219$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
29220if ${ac_cv_lib_fftw3_fftw_execute+:} false; then :
29221 $as_echo_n "(cached) " >&6
29222else
29223 ac_check_lib_save_LIBS=$LIBS
29224LIBS="-lfftw3 $LIBS"
29225cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29226/* end confdefs.h. */
29227
29228/* Override any GCC internal prototype to avoid an error.
29229 Use char because int might match the return type of a GCC
29230 builtin and then its argument prototype would still apply. */
29231#ifdef __cplusplus
29232extern "C"
29233#endif
29234char fftw_execute ();
29235int
29236main ()
29237{
29238return fftw_execute ();
29239 ;
29240 return 0;
29241}
29242_ACEOF
29243if ac_fn_c_try_link "$LINENO"; then :
29244 ac_cv_lib_fftw3_fftw_execute=yes
29245else
29246 ac_cv_lib_fftw3_fftw_execute=no
29247fi
29248rm -f core conftest.err conftest.$ac_objext \
29249 conftest$ac_exeext conftest.$ac_ext
29250LIBS=$ac_check_lib_save_LIBS
29251fi
29252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
29253$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
29254if test "x$ac_cv_lib_fftw3_fftw_execute" = xyes; then :
29255 passed=`expr $passed + 1`
29256else
29257 failed=`expr $failed + 1`
29258fi
29259
29260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
29261$as_echo_n "checking if FFTW package is complete... " >&6; }
29262 if test $passed -gt 0; then
29263 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29265$as_echo "no -- some components failed test" >&6; }
cristy81beccd2011-10-03 18:17:24 +000029266 have_fftw='no (failed tests)'
29267 else
29268 FFTW_LIBS='-lfftw3'
29269 LIBS="$FFTW_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000029270
cristy8b350f62009-11-15 23:12:43 +000029271$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029272
cristyad38abe2012-12-23 23:03:21 +000029273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29274$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000029275 have_fftw='yes'
29276 fi
29277 else
cristyad38abe2012-12-23 23:03:21 +000029278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29279$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029280 fi
29281fi
cristy73bd4a52010-10-05 11:24:23 +000029282 if test "$have_fftw" = 'yes'; then
29283 FFTW_DELEGATE_TRUE=
29284 FFTW_DELEGATE_FALSE='#'
29285else
29286 FFTW_DELEGATE_TRUE='#'
29287 FFTW_DELEGATE_FALSE=
29288fi
29289
cristy3ed852e2009-09-05 21:47:34 +000029290
29291
29292
29293#
29294# Check for FlashPIX delegate library.
29295#
29296
29297# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000029298if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029299 withval=$with_fpx; with_fpx=$withval
29300else
29301 with_fpx='yes'
29302fi
29303
29304
29305if test "$with_fpx" != 'yes'; then
29306 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
29307fi
29308
29309have_fpx='no'
29310FPX_LIBS=''
29311if test "$with_fpx" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29313$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000029315$as_echo_n "checking for FlashPIX... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29317$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029318 failed=0
29319 passed=0
29320 ac_ext=cpp
29321ac_cpp='$CXXCPP $CPPFLAGS'
29322ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29323ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29324ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29325
29326
cristy8b350f62009-11-15 23:12:43 +000029327ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029328if test "x$ac_cv_header_fpxlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029329 passed=`expr $passed + 1`
29330else
29331 failed=`expr $failed + 1`
29332fi
29333
29334
cristy8b350f62009-11-15 23:12:43 +000029335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000029336$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029337if ${ac_cv_lib_fpx_FPX_OpenImageByFilename+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029338 $as_echo_n "(cached) " >&6
29339else
29340 ac_check_lib_save_LIBS=$LIBS
29341LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029342cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029343/* end confdefs.h. */
29344
29345/* Override any GCC internal prototype to avoid an error.
29346 Use char because int might match the return type of a GCC
29347 builtin and then its argument prototype would still apply. */
29348#ifdef __cplusplus
29349extern "C"
29350#endif
29351char FPX_OpenImageByFilename ();
29352int
29353main ()
29354{
29355return FPX_OpenImageByFilename ();
29356 ;
29357 return 0;
29358}
29359_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029360if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029361 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
29362else
cristy8b350f62009-11-15 23:12:43 +000029363 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000029364fi
cristy8b350f62009-11-15 23:12:43 +000029365rm -f core conftest.err conftest.$ac_objext \
29366 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029367LIBS=$ac_check_lib_save_LIBS
29368fi
cristy8b350f62009-11-15 23:12:43 +000029369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000029370$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristyda16f162011-02-19 23:52:17 +000029371if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029372 passed=`expr $passed + 1`
29373else
29374 failed=`expr $failed + 1`
29375fi
29376
29377 ac_ext=c
29378ac_cpp='$CPP $CPPFLAGS'
29379ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29380ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29381ac_compiler_gnu=$ac_cv_c_compiler_gnu
29382
cristy8b350f62009-11-15 23:12:43 +000029383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029384$as_echo_n "checking if FlashPIX package is complete... " >&6; }
29385 if test $passed -gt 0; then
29386 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29388$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029389 have_fpx='no (failed tests)'
29390 else
29391 FPX_LIBS='-lfpx'
29392
cristy8b350f62009-11-15 23:12:43 +000029393$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029394
cristyad38abe2012-12-23 23:03:21 +000029395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29396$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029397 have_fpx='yes'
29398 PERLMAINCC="$CXX"
29399 fi
29400 else
cristyad38abe2012-12-23 23:03:21 +000029401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29402$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029403 fi
29404fi
cristy73bd4a52010-10-05 11:24:23 +000029405 if test "$have_fpx" = 'yes'; then
29406 FPX_DELEGATE_TRUE=
29407 FPX_DELEGATE_FALSE='#'
29408else
29409 FPX_DELEGATE_TRUE='#'
29410 FPX_DELEGATE_FALSE=
29411fi
29412
cristy3ed852e2009-09-05 21:47:34 +000029413
cristy853d9902014-08-21 18:50:43 +000029414
29415
29416#
29417# Check for DJVU delegate library.
29418#
29419
29420# Check whether --with-djvu was given.
29421if test "${with_djvu+set}" = set; then :
29422 withval=$with_djvu; with_djvu=$withval
29423else
29424 with_djvu='yes'
29425fi
29426
29427
29428if test "$with_djvu" != 'yes'; then
29429 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
29430fi
29431
29432have_djvu='no'
29433DJVU_LIBS=''
29434if test "$with_djvu" != 'no'; then
29435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29436$as_echo "-------------------------------------------------------------" >&6; }
29437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
29438$as_echo_n "checking for DJVU... " >&6; }
29439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29440$as_echo "" >&6; }
29441 failed=0
29442 passed=0
29443 ac_fn_c_check_header_mongrel "$LINENO" "libdjvu/ddjvuapi.h" "ac_cv_header_libdjvu_ddjvuapi_h" "$ac_includes_default"
29444if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = xyes; then :
29445 passed=`expr $passed + 1`
29446else
29447 failed=`expr $failed + 1`
29448fi
29449
29450
29451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
29452$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
29453if ${ac_cv_lib_djvulibre_ddjvu_context_create+:} false; then :
29454 $as_echo_n "(cached) " >&6
29455else
29456 ac_check_lib_save_LIBS=$LIBS
29457LIBS="-ldjvulibre $LIBS"
29458cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29459/* end confdefs.h. */
29460
29461/* Override any GCC internal prototype to avoid an error.
29462 Use char because int might match the return type of a GCC
29463 builtin and then its argument prototype would still apply. */
29464#ifdef __cplusplus
29465extern "C"
29466#endif
29467char ddjvu_context_create ();
29468int
29469main ()
29470{
29471return ddjvu_context_create ();
29472 ;
29473 return 0;
29474}
29475_ACEOF
29476if ac_fn_c_try_link "$LINENO"; then :
29477 ac_cv_lib_djvulibre_ddjvu_context_create=yes
29478else
29479 ac_cv_lib_djvulibre_ddjvu_context_create=no
29480fi
29481rm -f core conftest.err conftest.$ac_objext \
29482 conftest$ac_exeext conftest.$ac_ext
29483LIBS=$ac_check_lib_save_LIBS
29484fi
29485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
29486$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
29487if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = xyes; then :
29488 passed=`expr $passed + 1`
29489else
29490 failed=`expr $failed + 1`
29491fi
29492
29493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
29494$as_echo_n "checking if DJVU package is complete... " >&6; }
29495 if test $passed -gt 0; then
29496 if test $failed -gt 0; then
29497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29498$as_echo "no -- some components failed test" >&6; }
29499 have_djvu='no (failed tests)'
29500 else
29501 DJVU_LIBS='-ldjvulibre'
29502 LIBS="$DJVU_LIBS $LIBS"
29503
29504$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
29505
29506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29507$as_echo "yes" >&6; }
29508 have_djvu='yes'
29509 fi
29510 else
29511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29512$as_echo "no" >&6; }
29513 fi
29514fi
29515 if test "$have_djvu" = 'yes'; then
29516 DJVU_DELEGATE_TRUE=
29517 DJVU_DELEGATE_FALSE='#'
29518else
29519 DJVU_DELEGATE_TRUE='#'
29520 DJVU_DELEGATE_FALSE=
29521fi
29522
29523
cristy3ed852e2009-09-05 21:47:34 +000029524
29525
29526#
29527# Check for fontconfig delegate library.
29528#
29529
29530# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000029531if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029532 withval=$with_fontconfig; with_fontconfig=$withval
29533else
cristyfc3d0222012-02-07 15:05:57 +000029534 with_fontconfig='yes'
cristy3ed852e2009-09-05 21:47:34 +000029535fi
29536
29537
29538if test "$with_fontconfig" != 'yes'; then
29539 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
29540fi
29541
29542have_fontconfig='no'
29543FONTCONFIG_CFLAGS=""
29544FONTCONFIG_LIBS=""
29545FONTCONFIG_PKG=""
29546if test "x$with_fontconfig" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000029547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29548$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029549
29550pkg_failed=no
29551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
29552$as_echo_n "checking for FONTCONFIG... " >&6; }
29553
29554if test -n "$FONTCONFIG_CFLAGS"; then
29555 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
29556 elif test -n "$PKG_CONFIG"; then
29557 if test -n "$PKG_CONFIG" && \
29558 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
29559 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
29560 ac_status=$?
29561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29562 test $ac_status = 0; }; then
29563 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000029564 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000029565else
29566 pkg_failed=yes
29567fi
29568 else
29569 pkg_failed=untried
29570fi
29571if test -n "$FONTCONFIG_LIBS"; then
29572 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
29573 elif test -n "$PKG_CONFIG"; then
29574 if test -n "$PKG_CONFIG" && \
29575 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
29576 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
29577 ac_status=$?
29578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29579 test $ac_status = 0; }; then
29580 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000029581 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000029582else
29583 pkg_failed=yes
29584fi
29585 else
29586 pkg_failed=untried
29587fi
29588
29589
29590
29591if test $pkg_failed = yes; then
cristy146497a2015-05-17 22:46:16 +000029592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29593$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029594
29595if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29596 _pkg_short_errors_supported=yes
29597else
29598 _pkg_short_errors_supported=no
29599fi
29600 if test $_pkg_short_errors_supported = yes; then
cristy146497a2015-05-17 22:46:16 +000029601 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fontconfig >= 2.1.0" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000029602 else
cristy146497a2015-05-17 22:46:16 +000029603 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fontconfig >= 2.1.0" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000029604 fi
29605 # Put the nasty error message in config.log where it belongs
29606 echo "$FONTCONFIG_PKG_ERRORS" >&5
29607
cristy146497a2015-05-17 22:46:16 +000029608 have_fontconfig=no
cristy73bd4a52010-10-05 11:24:23 +000029609elif test $pkg_failed = untried; then
cristy146497a2015-05-17 22:46:16 +000029610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29611$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029612 have_fontconfig=no
29613else
29614 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
29615 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
29616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29617$as_echo "yes" >&6; }
29618 have_fontconfig=yes
29619fi
cristyad38abe2012-12-23 23:03:21 +000029620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29621$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029622fi
29623
29624if test "$have_fontconfig" = 'yes'; then
29625
cristy8b350f62009-11-15 23:12:43 +000029626$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029627
cristyc6722092012-10-14 00:19:31 +000029628 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000029629 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
cristyd09bcf92010-03-25 03:04:45 +000029630 fi
cristy3ed852e2009-09-05 21:47:34 +000029631fi
29632
cristy73bd4a52010-10-05 11:24:23 +000029633 if test "$have_fontconfig" = 'yes'; then
29634 FONTCONFIG_DELEGATE_TRUE=
29635 FONTCONFIG_DELEGATE_FALSE='#'
29636else
29637 FONTCONFIG_DELEGATE_TRUE='#'
29638 FONTCONFIG_DELEGATE_FALSE=
29639fi
29640
cristy3ed852e2009-09-05 21:47:34 +000029641
29642
29643
29644
29645#
cristy03f187e2013-01-24 00:22:19 +000029646# Check for the Freetype delegate library.
cristy3ed852e2009-09-05 21:47:34 +000029647#
29648
29649# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000029650if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029651 withval=$with_freetype; with_freetype=$withval
29652else
29653 with_freetype='yes'
29654fi
29655
29656
cristy3ed852e2009-09-05 21:47:34 +000029657if test "$with_freetype" != 'yes'; then
29658 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
29659fi
29660
cristy81beccd2011-10-03 18:17:24 +000029661have_freetype='no'
cristy03f187e2013-01-24 00:22:19 +000029662FREETYPE_CFLAGS=""
29663FREETYPE_LIBS=""
29664FREETYPE_PKG=""
29665if test "x$with_freetype" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000029666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29667$as_echo "-------------------------------------------------------------" >&6; }
cristy03f187e2013-01-24 00:22:19 +000029668
29669pkg_failed=no
29670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5
29671$as_echo_n "checking for FREETYPE... " >&6; }
29672
29673if test -n "$FREETYPE_CFLAGS"; then
29674 pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS"
29675 elif test -n "$PKG_CONFIG"; then
29676 if test -n "$PKG_CONFIG" && \
29677 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
29678 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
29679 ac_status=$?
29680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29681 test $ac_status = 0; }; then
29682 pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000029683 test "x$?" != "x0" && pkg_failed=yes
cristy03f187e2013-01-24 00:22:19 +000029684else
29685 pkg_failed=yes
29686fi
29687 else
29688 pkg_failed=untried
29689fi
29690if test -n "$FREETYPE_LIBS"; then
29691 pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS"
29692 elif test -n "$PKG_CONFIG"; then
29693 if test -n "$PKG_CONFIG" && \
29694 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
29695 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
29696 ac_status=$?
29697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29698 test $ac_status = 0; }; then
29699 pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000029700 test "x$?" != "x0" && pkg_failed=yes
cristy03f187e2013-01-24 00:22:19 +000029701else
29702 pkg_failed=yes
29703fi
29704 else
29705 pkg_failed=untried
29706fi
29707
29708
29709
29710if test $pkg_failed = yes; then
cristy146497a2015-05-17 22:46:16 +000029711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29712$as_echo "no" >&6; }
cristy03f187e2013-01-24 00:22:19 +000029713
29714if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29715 _pkg_short_errors_supported=yes
29716else
29717 _pkg_short_errors_supported=no
29718fi
29719 if test $_pkg_short_errors_supported = yes; then
cristy146497a2015-05-17 22:46:16 +000029720 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "freetype2" 2>&1`
cristy03f187e2013-01-24 00:22:19 +000029721 else
cristy146497a2015-05-17 22:46:16 +000029722 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "freetype2" 2>&1`
cristy03f187e2013-01-24 00:22:19 +000029723 fi
29724 # Put the nasty error message in config.log where it belongs
29725 echo "$FREETYPE_PKG_ERRORS" >&5
29726
cristy146497a2015-05-17 22:46:16 +000029727 have_freetype=no
cristy03f187e2013-01-24 00:22:19 +000029728elif test $pkg_failed = untried; then
cristy146497a2015-05-17 22:46:16 +000029729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29730$as_echo "no" >&6; }
cristy03f187e2013-01-24 00:22:19 +000029731 have_freetype=no
29732else
29733 FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS
29734 FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS
29735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29736$as_echo "yes" >&6; }
29737 have_freetype=yes
29738fi
cristyad38abe2012-12-23 23:03:21 +000029739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29740$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029741fi
29742
cristy03f187e2013-01-24 00:22:19 +000029743if test "$have_freetype" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000029744
cristy8b350f62009-11-15 23:12:43 +000029745$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029746
cristy03f187e2013-01-24 00:22:19 +000029747 CFLAGS="$FREETYPE_CFLAGS $CFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000029748fi
cristy03f187e2013-01-24 00:22:19 +000029749
cristy73bd4a52010-10-05 11:24:23 +000029750 if test "$have_freetype" = 'yes'; then
29751 FREETYPE_DELEGATE_TRUE=
29752 FREETYPE_DELEGATE_FALSE='#'
29753else
29754 FREETYPE_DELEGATE_TRUE='#'
29755 FREETYPE_DELEGATE_FALSE=
29756fi
29757
cristy3ed852e2009-09-05 21:47:34 +000029758
29759
29760
cristy03f187e2013-01-24 00:22:19 +000029761
cristy3ed852e2009-09-05 21:47:34 +000029762#
29763# Check for Ghostscript library or framework.
29764#
29765# Test for iapi.h & test for gsapi_new_instance in -lgs
29766# or -framework Ghostscript
29767
29768
29769# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000029770if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029771 withval=$with_gslib; with_gslib=$withval
29772else
29773 with_gslib='no'
29774fi
29775
29776
cristyb7931f12009-09-25 10:22:21 +000029777gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000029778if test "$with_gslib" != 'yes'; then
29779 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
29780fi
29781
29782have_gslib='no'
29783GS_LIBS=''
29784if test "$with_gslib" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29786$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000029788$as_echo_n "checking for Ghostscript... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29790$as_echo "" >&6; }
cristyb7931f12009-09-25 10:22:21 +000029791 framework=0
cristy3ed852e2009-09-05 21:47:34 +000029792 failed=0
29793 passed=0
cristy8b350f62009-11-15 23:12:43 +000029794 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 +000029795if test "x$ac_cv_header_ghostscript_iapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029796 passed=`expr $passed + 1`
29797else
29798 failed=`expr $failed + 1`
29799fi
29800
29801
cristy8b350f62009-11-15 23:12:43 +000029802 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 +000029803if test "x$ac_cv_header_ghostscript_ierrors_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029804 passed=`expr $passed + 1`
29805else
29806 failed=`expr $failed + 1`
29807fi
29808
29809
cristy73bd4a52010-10-05 11:24:23 +000029810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
29811$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029812if ${ac_cv_framework_Ghostscript_gsapi_new_instance+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000029813 $as_echo_n "(cached) " >&6
29814else
29815 ac_check_framework_save_LIBS=$LIBS
29816LIBS="-framework Ghostscript $LIBS"
29817cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29818/* end confdefs.h. */
29819
29820/* Override any GCC internal prototype to avoid an error.
29821 Use char because int might match the return type of a GCC
29822 builtin and then its argument prototype would still apply. */
29823#ifdef __cplusplus
29824extern "C"
29825#endif
29826char gsapi_new_instance ();
29827int
29828main ()
29829{
29830return gsapi_new_instance ();
29831 ;
29832 return 0;
29833}
29834_ACEOF
29835if ac_fn_c_try_link "$LINENO"; then :
29836 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
29837else
29838 ac_cv_framework_Ghostscript_gsapi_new_instance=no
29839fi
29840rm -f core conftest.err conftest.$ac_objext \
29841 conftest$ac_exeext conftest.$ac_ext
29842LIBS=$ac_check_framework_save_LIBS
29843fi
29844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
29845$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
29846if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
29847 framework=`expr $framework + 1`
29848else
29849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000029850$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029851if ${ac_cv_lib_gs_gsapi_new_instance+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029852 $as_echo_n "(cached) " >&6
29853else
29854 ac_check_lib_save_LIBS=$LIBS
29855LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029856cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029857/* end confdefs.h. */
29858
29859/* Override any GCC internal prototype to avoid an error.
29860 Use char because int might match the return type of a GCC
29861 builtin and then its argument prototype would still apply. */
29862#ifdef __cplusplus
29863extern "C"
29864#endif
29865char gsapi_new_instance ();
29866int
29867main ()
29868{
29869return gsapi_new_instance ();
29870 ;
29871 return 0;
29872}
29873_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029874if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029875 ac_cv_lib_gs_gsapi_new_instance=yes
29876else
cristy8b350f62009-11-15 23:12:43 +000029877 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000029878fi
cristy8b350f62009-11-15 23:12:43 +000029879rm -f core conftest.err conftest.$ac_objext \
29880 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029881LIBS=$ac_check_lib_save_LIBS
29882fi
cristy8b350f62009-11-15 23:12:43 +000029883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000029884$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristyda16f162011-02-19 23:52:17 +000029885if test "x$ac_cv_lib_gs_gsapi_new_instance" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029886 passed=`expr $passed + 1`
29887else
29888 failed=`expr $failed + 1`
29889fi
cristy73bd4a52010-10-05 11:24:23 +000029890
29891fi
cristy8b350f62009-11-15 23:12:43 +000029892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029893$as_echo_n "checking if Ghostscript package is complete... " >&6; }
29894 if test $passed -gt 0; then
29895 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29897$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029898 have_gslib='no (failed tests)'
29899 else
29900 if test $framework -gt 0; then
29901 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000029902 gslib_framework='yes'
cristyad38abe2012-12-23 23:03:21 +000029903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
29904$as_echo "yes, using framework." >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029905 else
cristyad38abe2012-12-23 23:03:21 +000029906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
29907$as_echo "yes, using library." >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029908 GS_LIBS='-lgs'
29909 fi
29910 LIBS="$GS_LIBS $LIBS"
29911
cristy8b350f62009-11-15 23:12:43 +000029912$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029913
29914 have_gslib='yes'
29915 fi
29916 else
cristyad38abe2012-12-23 23:03:21 +000029917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29918$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029919 fi
29920fi
cristy73bd4a52010-10-05 11:24:23 +000029921 if test "$have_gslib" = 'yes'; then
29922 GS_DELEGATE_TRUE=
29923 GS_DELEGATE_FALSE='#'
29924else
29925 GS_DELEGATE_TRUE='#'
29926 GS_DELEGATE_FALSE=
29927fi
29928
cristy3ed852e2009-09-05 21:47:34 +000029929
29930
29931# Set default font search path
29932
29933# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000029934if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029935 withval=$with_fontpath; with_fontpath=$withval
29936else
29937 with_fontpath=''
29938fi
29939
29940
29941if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
29942 with_fontpath=''
29943else
29944
29945cat >>confdefs.h <<_ACEOF
29946#define MAGICK_FONT_PATH "$with_fontpath"
29947_ACEOF
29948
29949fi
29950if test "$with_fontpath=" != ''; then
29951 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
29952fi
29953
29954# Set Ghostscript font directory
29955
29956# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000029957if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029958 withval=$with_gs_font_dir; with_gs_font_dir=$withval
29959else
29960 with_gs_font_dir='default'
29961fi
29962
29963
29964if test "$with_gs_font_dir" != 'default'; then
29965 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
29966fi
29967
29968
29969#
29970# Check for GVC delegate library.
29971#
29972
29973# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000029974if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029975 withval=$with_gvc; with_gvc=$withval
29976else
cristy1b70dc82012-07-01 23:15:05 +000029977 with_gvc='no'
cristy3ed852e2009-09-05 21:47:34 +000029978fi
29979
29980
29981if test "$with_gvc" != 'yes'; then
29982 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
29983fi
29984
29985GVC_PKG=""
29986if test "x$with_gvc" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000029987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29988$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029989
29990pkg_failed=no
29991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
29992$as_echo_n "checking for GVC... " >&6; }
29993
29994if test -n "$GVC_CFLAGS"; then
29995 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
29996 elif test -n "$PKG_CONFIG"; then
29997 if test -n "$PKG_CONFIG" && \
29998 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29999 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
30000 ac_status=$?
30001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30002 test $ac_status = 0; }; then
30003 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000030004 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000030005else
30006 pkg_failed=yes
30007fi
30008 else
30009 pkg_failed=untried
30010fi
30011if test -n "$GVC_LIBS"; then
30012 pkg_cv_GVC_LIBS="$GVC_LIBS"
30013 elif test -n "$PKG_CONFIG"; then
30014 if test -n "$PKG_CONFIG" && \
30015 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
30016 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
30017 ac_status=$?
30018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30019 test $ac_status = 0; }; then
30020 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000030021 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000030022else
30023 pkg_failed=yes
30024fi
30025 else
30026 pkg_failed=untried
30027fi
30028
30029
30030
30031if test $pkg_failed = yes; then
cristy146497a2015-05-17 22:46:16 +000030032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30033$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030034
30035if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30036 _pkg_short_errors_supported=yes
30037else
30038 _pkg_short_errors_supported=no
30039fi
30040 if test $_pkg_short_errors_supported = yes; then
cristy146497a2015-05-17 22:46:16 +000030041 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libgvc >= 2.9.0" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000030042 else
cristy146497a2015-05-17 22:46:16 +000030043 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libgvc >= 2.9.0" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000030044 fi
30045 # Put the nasty error message in config.log where it belongs
30046 echo "$GVC_PKG_ERRORS" >&5
30047
cristy146497a2015-05-17 22:46:16 +000030048 have_gvc=no
cristy73bd4a52010-10-05 11:24:23 +000030049elif test $pkg_failed = untried; then
cristy146497a2015-05-17 22:46:16 +000030050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30051$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030052 have_gvc=no
30053else
30054 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
30055 GVC_LIBS=$pkg_cv_GVC_LIBS
30056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30057$as_echo "yes" >&6; }
30058 have_gvc=yes
30059fi
cristyad38abe2012-12-23 23:03:21 +000030060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30061$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030062fi
30063
30064if test "$have_gvc" = 'yes'; then
30065
cristy8b350f62009-11-15 23:12:43 +000030066$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030067
cristyc6722092012-10-14 00:19:31 +000030068 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000030069 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
30070 fi
30071fi
30072
cristy73bd4a52010-10-05 11:24:23 +000030073 if test "$have_gvc" = 'yes'; then
30074 GVC_DELEGATE_TRUE=
30075 GVC_DELEGATE_FALSE='#'
30076else
30077 GVC_DELEGATE_TRUE='#'
30078 GVC_DELEGATE_FALSE=
30079fi
30080
cristy3ed852e2009-09-05 21:47:34 +000030081
30082
30083
30084
30085#
30086# Check for JBIG delegate library.
30087#
30088
30089
30090# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000030091if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030092 withval=$with_jbig; with_jbig=$withval
30093else
30094 with_jbig='yes'
30095fi
30096
30097
30098have_jbig='no'
30099JBIG_LIBS=''
30100if test "$with_jbig" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000030101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30102$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000030104$as_echo_n "checking for JBIG... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000030105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30106$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030107 failed=0
30108 passed=0
cristy8b350f62009-11-15 23:12:43 +000030109 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030110if test "x$ac_cv_header_jbig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030111 passed=`expr $passed + 1`
30112else
30113 failed=`expr $failed + 1`
30114fi
30115
30116
cristy8b350f62009-11-15 23:12:43 +000030117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000030118$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030119if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030120 $as_echo_n "(cached) " >&6
30121else
30122 ac_check_lib_save_LIBS=$LIBS
30123LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030124cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030125/* end confdefs.h. */
30126
30127/* Override any GCC internal prototype to avoid an error.
30128 Use char because int might match the return type of a GCC
30129 builtin and then its argument prototype would still apply. */
30130#ifdef __cplusplus
30131extern "C"
30132#endif
30133char jbg_dec_init ();
30134int
30135main ()
30136{
30137return jbg_dec_init ();
30138 ;
30139 return 0;
30140}
30141_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030142if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030143 ac_cv_lib_jbig_jbg_dec_init=yes
30144else
cristy8b350f62009-11-15 23:12:43 +000030145 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000030146fi
cristy8b350f62009-11-15 23:12:43 +000030147rm -f core conftest.err conftest.$ac_objext \
30148 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030149LIBS=$ac_check_lib_save_LIBS
30150fi
cristy8b350f62009-11-15 23:12:43 +000030151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000030152$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000030153if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030154 passed=`expr $passed + 1`
30155else
30156 failed=`expr $failed + 1`
30157fi
30158
cristy8b350f62009-11-15 23:12:43 +000030159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030160$as_echo_n "checking if JBIG package is complete... " >&6; }
30161 if test $passed -gt 0; then
30162 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000030163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30164$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030165 have_jbig='no (failed tests)'
30166 else
30167 JBIG_LIBS='-ljbig'
30168 LIBS="$JBIG_LIBS $LIBS"
30169
cristy8b350f62009-11-15 23:12:43 +000030170$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030171
cristyad38abe2012-12-23 23:03:21 +000030172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30173$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030174 have_jbig='yes'
30175 fi
30176 else
cristyad38abe2012-12-23 23:03:21 +000030177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30178$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030179 fi
30180fi
cristy73bd4a52010-10-05 11:24:23 +000030181 if test "$have_jbig" = 'yes'; then
30182 JBIG_DELEGATE_TRUE=
30183 JBIG_DELEGATE_FALSE='#'
30184else
30185 JBIG_DELEGATE_TRUE='#'
30186 JBIG_DELEGATE_FALSE=
30187fi
30188
cristy3ed852e2009-09-05 21:47:34 +000030189
30190
30191
30192#
30193# Check for JPEG delegate library.
30194#
30195
30196# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000030197if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030198 withval=$with_jpeg; with_jpeg=$withval
30199else
30200 with_jpeg='yes'
30201fi
30202
30203
30204if test "$with_jpeg" != 'yes'; then
30205 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
30206fi
30207
30208have_jpeg='no'
30209JPEG_LIBS=''
30210if test "$with_jpeg" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000030211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30212$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000030214$as_echo_n "checking for JPEG... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000030215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30216$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030217 failed=0
30218 passed=0
cristy8b350f62009-11-15 23:12:43 +000030219 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030220if test "x$ac_cv_header_jconfig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030221 passed=`expr $passed + 1`
30222else
30223 failed=`expr $failed + 1`
30224fi
30225
30226
cristy8b350f62009-11-15 23:12:43 +000030227 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030228if test "x$ac_cv_header_jerror_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030229 passed=`expr $passed + 1`
30230else
30231 failed=`expr $failed + 1`
30232fi
30233
30234
cristy8b350f62009-11-15 23:12:43 +000030235 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030236if test "x$ac_cv_header_jmorecfg_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030237 passed=`expr $passed + 1`
30238else
30239 failed=`expr $failed + 1`
30240fi
30241
30242
cristy8b350f62009-11-15 23:12:43 +000030243 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030244if test "x$ac_cv_header_jpeglib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030245 passed=`expr $passed + 1`
30246else
30247 failed=`expr $failed + 1`
30248fi
30249
30250
cristy8b350f62009-11-15 23:12:43 +000030251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000030252$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030253if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030254 $as_echo_n "(cached) " >&6
30255else
30256 ac_check_lib_save_LIBS=$LIBS
30257LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030258cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030259/* end confdefs.h. */
30260
30261/* Override any GCC internal prototype to avoid an error.
30262 Use char because int might match the return type of a GCC
30263 builtin and then its argument prototype would still apply. */
30264#ifdef __cplusplus
30265extern "C"
30266#endif
30267char jpeg_read_header ();
30268int
30269main ()
30270{
30271return jpeg_read_header ();
30272 ;
30273 return 0;
30274}
30275_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030276if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030277 ac_cv_lib_jpeg_jpeg_read_header=yes
30278else
cristy8b350f62009-11-15 23:12:43 +000030279 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000030280fi
cristy8b350f62009-11-15 23:12:43 +000030281rm -f core conftest.err conftest.$ac_objext \
30282 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030283LIBS=$ac_check_lib_save_LIBS
30284fi
cristy8b350f62009-11-15 23:12:43 +000030285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000030286$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristyda16f162011-02-19 23:52:17 +000030287if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030288 passed=`expr $passed + 1`
30289else
30290 failed=`expr $failed + 1`
30291fi
30292
30293
30294# Test for compatible JPEG library
30295if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000030296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000030297$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030298if ${ac_cv_jpeg_version_ok+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030299 $as_echo_n "(cached) " >&6
30300else
cristy8b350f62009-11-15 23:12:43 +000030301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030302/* end confdefs.h. */
30303#include <stdio.h>
30304#include <stdlib.h>
30305#include <jpeglib.h>
30306
30307int
30308main ()
30309{
30310
30311#if JPEG_LIB_VERSION < 62
30312#error IJG JPEG library must be version 6b or newer!
30313#endif
30314return 0;
30315
30316 ;
30317 return 0;
30318}
30319_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030320if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030321 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
30322else
cristy8b350f62009-11-15 23:12:43 +000030323 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000030324fi
cristy3ed852e2009-09-05 21:47:34 +000030325rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30326fi
cristy8b350f62009-11-15 23:12:43 +000030327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000030328$as_echo "$ac_cv_jpeg_version_ok" >&6; }
30329fi
cristy8b350f62009-11-15 23:12:43 +000030330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030331$as_echo_n "checking if JPEG package is complete... " >&6; }
30332 if test $passed -gt 0; then
30333 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000030334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30335$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030336 have_jpeg='no (failed tests)'
30337 else
30338 JPEG_LIBS='-ljpeg'
30339 LIBS="$JPEG_LIBS $LIBS"
30340
cristy8b350f62009-11-15 23:12:43 +000030341$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030342
cristyad38abe2012-12-23 23:03:21 +000030343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30344$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030345 have_jpeg='yes'
30346 fi
30347 else
cristyad38abe2012-12-23 23:03:21 +000030348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30349$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030350 fi
30351fi
cristy73bd4a52010-10-05 11:24:23 +000030352 if test "$have_jpeg" = 'yes'; then
30353 JPEG_DELEGATE_TRUE=
30354 JPEG_DELEGATE_FALSE='#'
30355else
30356 JPEG_DELEGATE_TRUE='#'
30357 JPEG_DELEGATE_FALSE=
30358fi
30359
cristy3ed852e2009-09-05 21:47:34 +000030360
30361
30362
30363#
cristy3ed852e2009-09-05 21:47:34 +000030364# Check for LCMS delegate library.
30365#
cristy71203402010-06-18 13:12:03 +000030366# Disable LCMS.
cristy3ed852e2009-09-05 21:47:34 +000030367
30368# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000030369if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030370 withval=$with_lcms; with_lcms=$withval
30371else
30372 with_lcms='yes'
30373fi
30374
cristy71203402010-06-18 13:12:03 +000030375if test "$with_lcms" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000030376 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
30377fi
30378
cristy71203402010-06-18 13:12:03 +000030379# Disable LCMS2.
30380
30381# Check whether --with-lcms2 was given.
30382if test "${with_lcms2+set}" = set; then :
30383 withval=$with_lcms2; with_lcms2=$withval
30384else
30385 with_lcms2='yes'
30386fi
30387
30388if test "$with_lcms2" != 'yes' ; then
30389 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
30390fi
30391
30392have_lcms2='no'
cristy3ed852e2009-09-05 21:47:34 +000030393LCMS_LIBS=''
cristy71203402010-06-18 13:12:03 +000030394if test "$with_lcms2" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000030395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30396$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000030397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
30398$as_echo_n "checking for LCMS v2... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000030399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30400$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030401 failed=0
30402 passed=0
30403 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000030404
30405 # Check for <lcms2.h>
cristyd09bcf92010-03-25 03:04:45 +000030406 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030407if test "x$ac_cv_header_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000030408 have_lcms_header='yes'
30409fi
30410
30411
30412 if test "$have_lcms_header" = 'yes'; then
cristyd09bcf92010-03-25 03:04:45 +000030413
30414$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
30415
cristy71203402010-06-18 13:12:03 +000030416 passed=`expr $passed + 1`
30417 fi
30418
30419 # Check for <lcms2/lcms2.h)
30420 if test "$have_lcms_header" != 'yes'; then
30421 ac_fn_c_check_header_mongrel "$LINENO" "lcms2/lcms2.h" "ac_cv_header_lcms2_lcms2_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030422if test "x$ac_cv_header_lcms2_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000030423 have_lcms_header='yes'
30424fi
30425
30426
cristy71203402010-06-18 13:12:03 +000030427 if test "$have_lcms_header" = 'yes'; then
30428 passed=`expr $passed + 1`
cristyd09bcf92010-03-25 03:04:45 +000030429
cristy71203402010-06-18 13:12:03 +000030430$as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
cristyd09bcf92010-03-25 03:04:45 +000030431
cristy71203402010-06-18 13:12:03 +000030432 fi
cristyd09bcf92010-03-25 03:04:45 +000030433 fi
cristy71203402010-06-18 13:12:03 +000030434
30435 # Failed to find lcms header?
30436 if test "$have_lcms_header" != 'yes'; then
30437 failed=`expr $failed + 1`
30438 fi
30439
30440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
30441$as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030442if ${ac_cv_lib_lcms2_cmsSetLogErrorHandler+:} false; then :
cristyd09bcf92010-03-25 03:04:45 +000030443 $as_echo_n "(cached) " >&6
30444else
30445 ac_check_lib_save_LIBS=$LIBS
30446LIBS="-llcms2 $LIBS"
30447cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30448/* end confdefs.h. */
30449
30450/* Override any GCC internal prototype to avoid an error.
30451 Use char because int might match the return type of a GCC
30452 builtin and then its argument prototype would still apply. */
30453#ifdef __cplusplus
30454extern "C"
30455#endif
cristy71203402010-06-18 13:12:03 +000030456char cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000030457int
30458main ()
30459{
cristy71203402010-06-18 13:12:03 +000030460return cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000030461 ;
30462 return 0;
30463}
30464_ACEOF
30465if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000030466 ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
cristyd09bcf92010-03-25 03:04:45 +000030467else
cristy71203402010-06-18 13:12:03 +000030468 ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
cristyd09bcf92010-03-25 03:04:45 +000030469fi
30470rm -f core conftest.err conftest.$ac_objext \
30471 conftest$ac_exeext conftest.$ac_ext
30472LIBS=$ac_check_lib_save_LIBS
30473fi
cristy71203402010-06-18 13:12:03 +000030474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
30475$as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000030476if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000030477 passed=`expr $passed + 1`
30478else
30479 failed=`expr $failed + 1`
30480fi
30481
cristy71203402010-06-18 13:12:03 +000030482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
30483$as_echo_n "checking if LCMS v2 package is complete... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000030484 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000030485 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000030486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30487$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000030488 have_lcms2='no (failed tests)'
30489 else
30490 LCMS_LIBS='-llcms2'
30491 LIBS="$LCMS_LIBS $LIBS"
cristyad38abe2012-12-23 23:03:21 +000030492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30493$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000030494 have_lcms2='yes'
30495 fi
cristyd09bcf92010-03-25 03:04:45 +000030496 else
cristyad38abe2012-12-23 23:03:21 +000030497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30498$as_echo "no" >&6; }
cristyd09bcf92010-03-25 03:04:45 +000030499 fi
30500fi
30501
cristy71203402010-06-18 13:12:03 +000030502#
30503# Check for LCMS v1 (1.11 or later)
30504#
30505if test $have_lcms2 = 'yes'; then
30506 with_lcms='no'
30507fi
30508
30509have_lcms='no'
cristyd09bcf92010-03-25 03:04:45 +000030510if test "$with_lcms" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000030511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30512$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000030513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
30514$as_echo_n "checking for LCMS v1.1X... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000030515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30516$as_echo "" >&6; }
cristyd09bcf92010-03-25 03:04:45 +000030517 failed=0
30518 passed=0
30519 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000030520
30521 # Check for <lcms.h>
30522 if test "$have_lcms_header" != 'yes'; then
30523 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030524if test "x$ac_cv_header_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030525 have_lcms_header='yes'
30526fi
30527
30528
cristy71203402010-06-18 13:12:03 +000030529 if test "$have_lcms_header" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000030530 passed=`expr $passed + 1`
30531
cristy8b350f62009-11-15 23:12:43 +000030532$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030533
cristy71203402010-06-18 13:12:03 +000030534 fi
30535 fi
30536
30537 # Check for <lcms/lcms.h>
30538 if test "$have_lcms_header" != 'yes'; then
30539 ac_fn_c_check_header_mongrel "$LINENO" "lcms/lcms.h" "ac_cv_header_lcms_lcms_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030540if test "x$ac_cv_header_lcms_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030541 have_lcms_header='yes'
30542fi
30543
30544
cristy71203402010-06-18 13:12:03 +000030545 if test "$have_lcms_header" = 'yes'; then
30546 passed=`expr $passed + 1`
cristy3ed852e2009-09-05 21:47:34 +000030547
cristy8b350f62009-11-15 23:12:43 +000030548$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030549
cristy71203402010-06-18 13:12:03 +000030550 fi
cristy3ed852e2009-09-05 21:47:34 +000030551 fi
cristy71203402010-06-18 13:12:03 +000030552
30553 # Failed to find lcms header?
30554 if test "$have_lcms_header" != 'yes'; then
30555 failed=`expr $failed + 1`
30556 fi
30557
30558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
30559$as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030560if ${ac_cv_lib_lcms_cmsSetErrorHandler+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030561 $as_echo_n "(cached) " >&6
30562else
30563 ac_check_lib_save_LIBS=$LIBS
30564LIBS="-llcms $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030565cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030566/* end confdefs.h. */
30567
30568/* Override any GCC internal prototype to avoid an error.
30569 Use char because int might match the return type of a GCC
30570 builtin and then its argument prototype would still apply. */
30571#ifdef __cplusplus
30572extern "C"
30573#endif
cristy71203402010-06-18 13:12:03 +000030574char cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000030575int
30576main ()
30577{
cristy71203402010-06-18 13:12:03 +000030578return cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000030579 ;
30580 return 0;
30581}
30582_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030583if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000030584 ac_cv_lib_lcms_cmsSetErrorHandler=yes
cristy3ed852e2009-09-05 21:47:34 +000030585else
cristy71203402010-06-18 13:12:03 +000030586 ac_cv_lib_lcms_cmsSetErrorHandler=no
cristy3ed852e2009-09-05 21:47:34 +000030587fi
cristy8b350f62009-11-15 23:12:43 +000030588rm -f core conftest.err conftest.$ac_objext \
30589 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030590LIBS=$ac_check_lib_save_LIBS
30591fi
cristy71203402010-06-18 13:12:03 +000030592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
30593$as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000030594if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030595 passed=`expr $passed + 1`
30596else
30597 failed=`expr $failed + 1`
30598fi
30599
cristy8b350f62009-11-15 23:12:43 +000030600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030601$as_echo_n "checking if LCMS package is complete... " >&6; }
30602 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000030603 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000030604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30605$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000030606 have_lcms='no (failed tests)'
30607 else
30608 LCMS_LIBS='-llcms'
30609 LIBS="$LCMS_LIBS $LIBS"
cristyad38abe2012-12-23 23:03:21 +000030610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30611$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000030612 have_lcms='yes'
30613 fi
cristy3ed852e2009-09-05 21:47:34 +000030614 else
cristyad38abe2012-12-23 23:03:21 +000030615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30616$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030617 fi
30618fi
cristy71203402010-06-18 13:12:03 +000030619
cristy73bd4a52010-10-05 11:24:23 +000030620 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
30621 LCMS_DELEGATE_TRUE=
30622 LCMS_DELEGATE_FALSE='#'
30623else
30624 LCMS_DELEGATE_TRUE='#'
30625 LCMS_DELEGATE_FALSE=
30626fi
30627
cristy71203402010-06-18 13:12:03 +000030628if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
30629
30630$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
30631
30632fi
30633
cristy3ed852e2009-09-05 21:47:34 +000030634
30635
30636
30637#
cristy99db3872014-01-01 15:11:34 +000030638# Check for the OpenJP2 delegate library.
30639#
30640
30641# Check whether --with-openjp2 was given.
30642if test "${with_openjp2+set}" = set; then :
30643 withval=$with_openjp2; with_openjp2=$withval
30644else
30645 with_openjp2='yes'
30646fi
30647
30648
30649if test "$with_openjp2" != 'yes'; then
30650 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openjp2=$with_openjp2 "
30651fi
30652
30653have_openjp2='no'
30654LIBOPENJP2_CFLAGS=""
30655LIBOPENJP2_LIBS=""
30656LIBOPENJP2_PKG=""
30657if test "x$with_openjp2" = "xyes"; then
30658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30659$as_echo "-------------------------------------------------------------" >&6; }
30660
30661pkg_failed=no
30662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBOPENJP2" >&5
30663$as_echo_n "checking for LIBOPENJP2... " >&6; }
30664
30665if test -n "$LIBOPENJP2_CFLAGS"; then
30666 pkg_cv_LIBOPENJP2_CFLAGS="$LIBOPENJP2_CFLAGS"
30667 elif test -n "$PKG_CONFIG"; then
30668 if test -n "$PKG_CONFIG" && \
cristybc964932014-05-08 21:45:03 +000030669 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libopenjp2 >= 2.1.0\""; } >&5
30670 ($PKG_CONFIG --exists --print-errors "libopenjp2 >= 2.1.0") 2>&5
cristy99db3872014-01-01 15:11:34 +000030671 ac_status=$?
30672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30673 test $ac_status = 0; }; then
cristybc964932014-05-08 21:45:03 +000030674 pkg_cv_LIBOPENJP2_CFLAGS=`$PKG_CONFIG --cflags "libopenjp2 >= 2.1.0" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000030675 test "x$?" != "x0" && pkg_failed=yes
cristy99db3872014-01-01 15:11:34 +000030676else
30677 pkg_failed=yes
30678fi
30679 else
30680 pkg_failed=untried
30681fi
30682if test -n "$LIBOPENJP2_LIBS"; then
30683 pkg_cv_LIBOPENJP2_LIBS="$LIBOPENJP2_LIBS"
30684 elif test -n "$PKG_CONFIG"; then
30685 if test -n "$PKG_CONFIG" && \
cristybc964932014-05-08 21:45:03 +000030686 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libopenjp2 >= 2.1.0\""; } >&5
30687 ($PKG_CONFIG --exists --print-errors "libopenjp2 >= 2.1.0") 2>&5
cristy99db3872014-01-01 15:11:34 +000030688 ac_status=$?
30689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30690 test $ac_status = 0; }; then
cristybc964932014-05-08 21:45:03 +000030691 pkg_cv_LIBOPENJP2_LIBS=`$PKG_CONFIG --libs "libopenjp2 >= 2.1.0" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000030692 test "x$?" != "x0" && pkg_failed=yes
cristy99db3872014-01-01 15:11:34 +000030693else
30694 pkg_failed=yes
30695fi
30696 else
30697 pkg_failed=untried
30698fi
30699
30700
30701
30702if test $pkg_failed = yes; then
cristy146497a2015-05-17 22:46:16 +000030703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30704$as_echo "no" >&6; }
cristy99db3872014-01-01 15:11:34 +000030705
30706if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30707 _pkg_short_errors_supported=yes
30708else
30709 _pkg_short_errors_supported=no
30710fi
30711 if test $_pkg_short_errors_supported = yes; then
cristy146497a2015-05-17 22:46:16 +000030712 LIBOPENJP2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libopenjp2 >= 2.1.0" 2>&1`
cristy99db3872014-01-01 15:11:34 +000030713 else
cristy146497a2015-05-17 22:46:16 +000030714 LIBOPENJP2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libopenjp2 >= 2.1.0" 2>&1`
cristy99db3872014-01-01 15:11:34 +000030715 fi
30716 # Put the nasty error message in config.log where it belongs
30717 echo "$LIBOPENJP2_PKG_ERRORS" >&5
30718
cristy146497a2015-05-17 22:46:16 +000030719 have_openjp2=no
cristy99db3872014-01-01 15:11:34 +000030720elif test $pkg_failed = untried; then
cristy146497a2015-05-17 22:46:16 +000030721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30722$as_echo "no" >&6; }
cristy99db3872014-01-01 15:11:34 +000030723 have_openjp2=no
30724else
30725 LIBOPENJP2_CFLAGS=$pkg_cv_LIBOPENJP2_CFLAGS
30726 LIBOPENJP2_LIBS=$pkg_cv_LIBOPENJP2_LIBS
30727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30728$as_echo "yes" >&6; }
30729 have_openjp2=yes
30730fi
30731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30732$as_echo "" >&6; }
30733fi
30734
30735if test "$have_openjp2" = 'yes'; then
30736
30737$as_echo "#define LIBOPENJP2_DELEGATE 1" >>confdefs.h
30738
30739 if test "$build_modules" = 'no'; then
30740 CFLAGS="$LIBOPENJP2_CFLAGS $CFLAGS"
30741 fi
30742fi
30743
30744 if test "$have_openjp2" = 'yes'; then
30745 LIBOPENJP2_DELEGATE_TRUE=
30746 LIBOPENJP2_DELEGATE_FALSE='#'
30747else
30748 LIBOPENJP2_DELEGATE_TRUE='#'
30749 LIBOPENJP2_DELEGATE_FALSE=
30750fi
30751
30752
30753
30754
30755
30756
30757#
cristy3ed852e2009-09-05 21:47:34 +000030758# Check for the LQR (Liquid Rescale) delegate library.
30759#
30760
30761# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000030762if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030763 withval=$with_lqr; with_lqr=$withval
30764else
30765 with_lqr='yes'
30766fi
30767
30768
30769if test "$with_lqr" != 'yes'; then
30770 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
30771fi
30772
30773have_lqr='no'
30774LQR_CFLAGS=""
30775LQR_LIBS=""
30776LQR_PKG=""
30777if test "x$with_lqr" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000030778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30779$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030780
30781pkg_failed=no
30782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
30783$as_echo_n "checking for LQR... " >&6; }
30784
30785if test -n "$LQR_CFLAGS"; then
30786 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
30787 elif test -n "$PKG_CONFIG"; then
30788 if test -n "$PKG_CONFIG" && \
30789 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
30790 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
30791 ac_status=$?
30792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30793 test $ac_status = 0; }; then
30794 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000030795 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000030796else
30797 pkg_failed=yes
30798fi
30799 else
30800 pkg_failed=untried
30801fi
30802if test -n "$LQR_LIBS"; then
30803 pkg_cv_LQR_LIBS="$LQR_LIBS"
30804 elif test -n "$PKG_CONFIG"; then
30805 if test -n "$PKG_CONFIG" && \
30806 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
30807 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
30808 ac_status=$?
30809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30810 test $ac_status = 0; }; then
30811 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000030812 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000030813else
30814 pkg_failed=yes
30815fi
30816 else
30817 pkg_failed=untried
30818fi
30819
30820
30821
30822if test $pkg_failed = yes; then
cristy146497a2015-05-17 22:46:16 +000030823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30824$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030825
30826if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30827 _pkg_short_errors_supported=yes
30828else
30829 _pkg_short_errors_supported=no
30830fi
30831 if test $_pkg_short_errors_supported = yes; then
cristy146497a2015-05-17 22:46:16 +000030832 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lqr-1 >= 0.1.0" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000030833 else
cristy146497a2015-05-17 22:46:16 +000030834 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lqr-1 >= 0.1.0" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000030835 fi
30836 # Put the nasty error message in config.log where it belongs
30837 echo "$LQR_PKG_ERRORS" >&5
30838
cristy146497a2015-05-17 22:46:16 +000030839 have_lqr=no
cristy73bd4a52010-10-05 11:24:23 +000030840elif test $pkg_failed = untried; then
cristy146497a2015-05-17 22:46:16 +000030841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30842$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030843 have_lqr=no
30844else
30845 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
30846 LQR_LIBS=$pkg_cv_LQR_LIBS
30847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30848$as_echo "yes" >&6; }
30849 have_lqr=yes
30850fi
cristyad38abe2012-12-23 23:03:21 +000030851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30852$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030853fi
30854
30855if test "$have_lqr" = 'yes'; then
30856
cristy8b350f62009-11-15 23:12:43 +000030857$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030858
30859 CFLAGS="$LQR_CFLAGS $CFLAGS"
30860fi
30861
cristy73bd4a52010-10-05 11:24:23 +000030862 if test "$have_lqr" = 'yes'; then
30863 LQR_DELEGATE_TRUE=
30864 LQR_DELEGATE_FALSE='#'
30865else
30866 LQR_DELEGATE_TRUE='#'
30867 LQR_DELEGATE_FALSE=
30868fi
30869
cristy3ed852e2009-09-05 21:47:34 +000030870
30871
30872
30873
cristy81beccd2011-10-03 18:17:24 +000030874# Disable LZMA (lzma library)
cristyfbb0ef02010-12-19 02:32:11 +000030875
30876# Check whether --with-lzma was given.
30877if test "${with_lzma+set}" = set; then :
30878 withval=$with_lzma; with_lzma=$withval
30879else
30880 with_lzma='yes'
30881fi
30882
cristy81beccd2011-10-03 18:17:24 +000030883if test "$with_lzma" != 'yes' ; then
cristyfbb0ef02010-12-19 02:32:11 +000030884 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma "
30885fi
30886
cristyb94e5002011-11-14 13:20:10 +000030887LZMA_PKG=""
30888if test "x$with_lzma" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000030889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30890$as_echo "-------------------------------------------------------------" >&6; }
cristyb94e5002011-11-14 13:20:10 +000030891
30892pkg_failed=no
30893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5
cristyfbb0ef02010-12-19 02:32:11 +000030894$as_echo_n "checking for LZMA... " >&6; }
cristyb94e5002011-11-14 13:20:10 +000030895
30896if test -n "$LZMA_CFLAGS"; then
30897 pkg_cv_LZMA_CFLAGS="$LZMA_CFLAGS"
30898 elif test -n "$PKG_CONFIG"; then
30899 if test -n "$PKG_CONFIG" && \
30900 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30901 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30902 ac_status=$?
30903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30904 test $ac_status = 0; }; then
30905 pkg_cv_LZMA_CFLAGS=`$PKG_CONFIG --cflags "liblzma >= 2.9.0" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000030906 test "x$?" != "x0" && pkg_failed=yes
cristyb94e5002011-11-14 13:20:10 +000030907else
30908 pkg_failed=yes
30909fi
30910 else
30911 pkg_failed=untried
30912fi
30913if test -n "$LZMA_LIBS"; then
30914 pkg_cv_LZMA_LIBS="$LZMA_LIBS"
30915 elif test -n "$PKG_CONFIG"; then
30916 if test -n "$PKG_CONFIG" && \
30917 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30918 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30919 ac_status=$?
30920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30921 test $ac_status = 0; }; then
30922 pkg_cv_LZMA_LIBS=`$PKG_CONFIG --libs "liblzma >= 2.9.0" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000030923 test "x$?" != "x0" && pkg_failed=yes
cristyb94e5002011-11-14 13:20:10 +000030924else
30925 pkg_failed=yes
30926fi
30927 else
30928 pkg_failed=untried
30929fi
30930
30931
30932
30933if test $pkg_failed = yes; then
cristy146497a2015-05-17 22:46:16 +000030934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30935$as_echo "no" >&6; }
cristyb94e5002011-11-14 13:20:10 +000030936
30937if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30938 _pkg_short_errors_supported=yes
30939else
30940 _pkg_short_errors_supported=no
30941fi
30942 if test $_pkg_short_errors_supported = yes; then
cristy146497a2015-05-17 22:46:16 +000030943 LZMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "liblzma >= 2.9.0" 2>&1`
cristyb94e5002011-11-14 13:20:10 +000030944 else
cristy146497a2015-05-17 22:46:16 +000030945 LZMA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "liblzma >= 2.9.0" 2>&1`
cristyb94e5002011-11-14 13:20:10 +000030946 fi
30947 # Put the nasty error message in config.log where it belongs
30948 echo "$LZMA_PKG_ERRORS" >&5
30949
cristy146497a2015-05-17 22:46:16 +000030950 have_lzma=no
cristyb94e5002011-11-14 13:20:10 +000030951elif test $pkg_failed = untried; then
cristy146497a2015-05-17 22:46:16 +000030952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30953$as_echo "no" >&6; }
cristyb94e5002011-11-14 13:20:10 +000030954 have_lzma=no
30955else
30956 LZMA_CFLAGS=$pkg_cv_LZMA_CFLAGS
30957 LZMA_LIBS=$pkg_cv_LZMA_LIBS
30958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30959$as_echo "yes" >&6; }
30960 have_lzma=yes
30961fi
cristyad38abe2012-12-23 23:03:21 +000030962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30963$as_echo "" >&6; }
cristyfbb0ef02010-12-19 02:32:11 +000030964fi
30965
cristyb94e5002011-11-14 13:20:10 +000030966if test "$have_lzma" = 'yes'; then
cristyfbb0ef02010-12-19 02:32:11 +000030967
30968$as_echo "#define LZMA_DELEGATE 1" >>confdefs.h
30969
cristyc6722092012-10-14 00:19:31 +000030970 if test "$build_modules" = 'no'; then
cristyb94e5002011-11-14 13:20:10 +000030971 CPPFLAGS="$LZMA_CFLAGS $CPPFLAGS"
cristyfbb0ef02010-12-19 02:32:11 +000030972 fi
cristyfbb0ef02010-12-19 02:32:11 +000030973fi
cristyb94e5002011-11-14 13:20:10 +000030974
cristyfbb0ef02010-12-19 02:32:11 +000030975 if test "$have_lzma" = 'yes'; then
30976 LZMA_DELEGATE_TRUE=
30977 LZMA_DELEGATE_FALSE='#'
30978else
30979 LZMA_DELEGATE_TRUE='#'
30980 LZMA_DELEGATE_FALSE=
30981fi
30982
30983
30984
30985
cristyb94e5002011-11-14 13:20:10 +000030986
cristy3ed852e2009-09-05 21:47:34 +000030987#
30988# Check for the OpenEXR delegate library.
30989#
30990
30991# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000030992if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030993 withval=$with_openexr; with_openexr=$withval
30994else
30995 with_openexr='yes'
30996fi
30997
30998
30999if test "$with_openexr" != 'yes'; then
31000 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
31001fi
31002
31003have_openexr='no'
31004OPENEXR_CFLAGS=""
31005OPENEXR_LIBS=""
31006OPENEXR_PKG=""
31007if test "x$with_openexr" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000031008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31009$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031010
31011pkg_failed=no
31012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
31013$as_echo_n "checking for OPENEXR... " >&6; }
31014
31015if test -n "$OPENEXR_CFLAGS"; then
31016 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
31017 elif test -n "$PKG_CONFIG"; then
31018 if test -n "$PKG_CONFIG" && \
31019 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
31020 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
31021 ac_status=$?
31022 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31023 test $ac_status = 0; }; then
31024 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000031025 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000031026else
31027 pkg_failed=yes
31028fi
31029 else
31030 pkg_failed=untried
31031fi
31032if test -n "$OPENEXR_LIBS"; then
31033 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
31034 elif test -n "$PKG_CONFIG"; then
31035 if test -n "$PKG_CONFIG" && \
31036 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
31037 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
31038 ac_status=$?
31039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31040 test $ac_status = 0; }; then
31041 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000031042 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000031043else
31044 pkg_failed=yes
31045fi
31046 else
31047 pkg_failed=untried
31048fi
31049
31050
31051
31052if test $pkg_failed = yes; then
cristy146497a2015-05-17 22:46:16 +000031053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31054$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031055
31056if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31057 _pkg_short_errors_supported=yes
31058else
31059 _pkg_short_errors_supported=no
31060fi
31061 if test $_pkg_short_errors_supported = yes; then
cristy146497a2015-05-17 22:46:16 +000031062 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "OpenEXR >= 1.0.6" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000031063 else
cristy146497a2015-05-17 22:46:16 +000031064 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "OpenEXR >= 1.0.6" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000031065 fi
31066 # Put the nasty error message in config.log where it belongs
31067 echo "$OPENEXR_PKG_ERRORS" >&5
31068
cristy146497a2015-05-17 22:46:16 +000031069 have_openexr=no
cristy73bd4a52010-10-05 11:24:23 +000031070elif test $pkg_failed = untried; then
cristy146497a2015-05-17 22:46:16 +000031071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31072$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031073 have_openexr=no
31074else
31075 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
31076 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
31077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31078$as_echo "yes" >&6; }
31079 have_openexr=yes
31080fi
cristyad38abe2012-12-23 23:03:21 +000031081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31082$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031083fi
31084
31085if test "$have_openexr" = 'yes'; then
31086
cristy8b350f62009-11-15 23:12:43 +000031087$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031088
cristyc6722092012-10-14 00:19:31 +000031089 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000031090 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
31091 fi
31092fi
31093
cristy73bd4a52010-10-05 11:24:23 +000031094 if test "$have_openexr" = 'yes'; then
31095 OPENEXR_DELEGATE_TRUE=
31096 OPENEXR_DELEGATE_FALSE='#'
31097else
31098 OPENEXR_DELEGATE_TRUE='#'
31099 OPENEXR_DELEGATE_FALSE=
31100fi
31101
cristy3ed852e2009-09-05 21:47:34 +000031102
31103
31104
31105
31106#
cristy41cbe8a2011-10-27 01:35:18 +000031107# Check for PANGO delegate library.
31108#
31109
31110# Check whether --with-pango was given.
31111if test "${with_pango+set}" = set; then :
31112 withval=$with_pango; with_pango=$withval
31113else
cristyfc3d0222012-02-07 15:05:57 +000031114 with_pango='yes'
cristy41cbe8a2011-10-27 01:35:18 +000031115fi
31116
31117
31118if test "$with_pango" != 'yes'; then
31119 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-pango=$with_pango "
31120fi
31121
31122have_pango='no'
cristya054b762012-03-26 23:16:00 +000031123have_pangocairo='no'
cristy41cbe8a2011-10-27 01:35:18 +000031124PANGO_CFLAGS=""
31125PANGO_LIBS=""
31126PANGO_PKG=""
31127if test "x$with_pango" = "xyes"; then
31128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31129$as_echo "-------------------------------------------------------------" >&6; }
31130
31131pkg_failed=no
31132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
31133$as_echo_n "checking for PANGO... " >&6; }
31134
31135if test -n "$PANGO_CFLAGS"; then
31136 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
31137 elif test -n "$PKG_CONFIG"; then
31138 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000031139 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
31140 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000031141 ac_status=$?
31142 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31143 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000031144 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pangocairo >= 1.28.1" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000031145 test "x$?" != "x0" && pkg_failed=yes
cristy41cbe8a2011-10-27 01:35:18 +000031146else
31147 pkg_failed=yes
31148fi
31149 else
31150 pkg_failed=untried
31151fi
31152if test -n "$PANGO_LIBS"; then
31153 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
31154 elif test -n "$PKG_CONFIG"; then
31155 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000031156 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
31157 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000031158 ac_status=$?
31159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31160 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000031161 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pangocairo >= 1.28.1" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000031162 test "x$?" != "x0" && pkg_failed=yes
cristy41cbe8a2011-10-27 01:35:18 +000031163else
31164 pkg_failed=yes
31165fi
31166 else
31167 pkg_failed=untried
31168fi
31169
31170
31171
31172if test $pkg_failed = yes; then
cristy146497a2015-05-17 22:46:16 +000031173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31174$as_echo "no" >&6; }
cristy41cbe8a2011-10-27 01:35:18 +000031175
31176if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31177 _pkg_short_errors_supported=yes
31178else
31179 _pkg_short_errors_supported=no
31180fi
31181 if test $_pkg_short_errors_supported = yes; then
cristy146497a2015-05-17 22:46:16 +000031182 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000031183 else
cristy146497a2015-05-17 22:46:16 +000031184 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000031185 fi
31186 # Put the nasty error message in config.log where it belongs
31187 echo "$PANGO_PKG_ERRORS" >&5
31188
cristy146497a2015-05-17 22:46:16 +000031189 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000031190elif test $pkg_failed = untried; then
cristy146497a2015-05-17 22:46:16 +000031191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31192$as_echo "no" >&6; }
cristya054b762012-03-26 23:16:00 +000031193 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000031194else
31195 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
31196 PANGO_LIBS=$pkg_cv_PANGO_LIBS
31197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31198$as_echo "yes" >&6; }
cristya054b762012-03-26 23:16:00 +000031199 have_pangocairo=yes
cristy41cbe8a2011-10-27 01:35:18 +000031200fi
31201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31202$as_echo "" >&6; }
cristy7dc48ed2011-10-28 14:11:43 +000031203
31204pkg_failed=no
31205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
31206$as_echo_n "checking for PANGO... " >&6; }
31207
31208if test -n "$PANGO_CFLAGS"; then
31209 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
31210 elif test -n "$PKG_CONFIG"; then
31211 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000031212 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
31213 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000031214 ac_status=$?
31215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31216 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000031217 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pango >= 1.28.1" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000031218 test "x$?" != "x0" && pkg_failed=yes
cristy7dc48ed2011-10-28 14:11:43 +000031219else
31220 pkg_failed=yes
31221fi
31222 else
31223 pkg_failed=untried
31224fi
31225if test -n "$PANGO_LIBS"; then
31226 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
31227 elif test -n "$PKG_CONFIG"; then
31228 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000031229 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
31230 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000031231 ac_status=$?
31232 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31233 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000031234 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pango >= 1.28.1" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000031235 test "x$?" != "x0" && pkg_failed=yes
cristy7dc48ed2011-10-28 14:11:43 +000031236else
31237 pkg_failed=yes
31238fi
31239 else
31240 pkg_failed=untried
31241fi
31242
31243
31244
31245if test $pkg_failed = yes; then
cristy146497a2015-05-17 22:46:16 +000031246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31247$as_echo "no" >&6; }
cristy7dc48ed2011-10-28 14:11:43 +000031248
31249if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31250 _pkg_short_errors_supported=yes
31251else
31252 _pkg_short_errors_supported=no
31253fi
31254 if test $_pkg_short_errors_supported = yes; then
cristy146497a2015-05-17 22:46:16 +000031255 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000031256 else
cristy146497a2015-05-17 22:46:16 +000031257 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000031258 fi
31259 # Put the nasty error message in config.log where it belongs
31260 echo "$PANGO_PKG_ERRORS" >&5
31261
cristy146497a2015-05-17 22:46:16 +000031262 have_pango=no
cristy7dc48ed2011-10-28 14:11:43 +000031263elif test $pkg_failed = untried; then
cristy146497a2015-05-17 22:46:16 +000031264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31265$as_echo "no" >&6; }
cristy7dc48ed2011-10-28 14:11:43 +000031266 have_pango=no
31267else
31268 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
31269 PANGO_LIBS=$pkg_cv_PANGO_LIBS
31270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31271$as_echo "yes" >&6; }
31272 have_pango=yes
31273fi
31274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31275$as_echo "" >&6; }
cristy41cbe8a2011-10-27 01:35:18 +000031276fi
31277
31278if test "$have_pango" = 'yes'; then
31279
31280$as_echo "#define PANGO_DELEGATE 1" >>confdefs.h
31281
cristyc6722092012-10-14 00:19:31 +000031282 if test "$build_modules" = 'no'; then
cristy41cbe8a2011-10-27 01:35:18 +000031283 CPPFLAGS="$PANGO_CFLAGS $CPPFLAGS"
31284 fi
31285fi
31286
cristya054b762012-03-26 23:16:00 +000031287if test "$have_pangocairo" = 'yes'; then
cristy41cbe8a2011-10-27 01:35:18 +000031288
cristya054b762012-03-26 23:16:00 +000031289$as_echo "#define PANGOCAIRO_DELEGATE 1" >>confdefs.h
cristy41cbe8a2011-10-27 01:35:18 +000031290
cristyc6722092012-10-14 00:19:31 +000031291 if test "$build_modules" = 'no'; then
cristya054b762012-03-26 23:16:00 +000031292 CPPFLAGS="$PANGOCAIRO_CFLAGS $CPPFLAGS"
cristy41cbe8a2011-10-27 01:35:18 +000031293 fi
31294fi
31295
31296 if test "$have_pango" = 'yes'; then
31297 PANGO_DELEGATE_TRUE=
31298 PANGO_DELEGATE_FALSE='#'
31299else
31300 PANGO_DELEGATE_TRUE='#'
31301 PANGO_DELEGATE_FALSE=
31302fi
31303
cristya054b762012-03-26 23:16:00 +000031304 if test "$have_pangocairo" = 'yes'; then
31305 PANGOCAIRO_DELEGATE_TRUE=
31306 PANGOCAIRO_DELEGATE_FALSE='#'
cristy41cbe8a2011-10-27 01:35:18 +000031307else
cristya054b762012-03-26 23:16:00 +000031308 PANGOCAIRO_DELEGATE_TRUE='#'
31309 PANGOCAIRO_DELEGATE_FALSE=
cristy41cbe8a2011-10-27 01:35:18 +000031310fi
31311
31312
31313
31314
31315
31316#
cristy3ed852e2009-09-05 21:47:34 +000031317# Check for PNG delegate library.
31318#
31319
31320# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000031321if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031322 withval=$with_png; with_png=$withval
31323else
31324 with_png='yes'
31325fi
31326
31327
31328if test "$with_png" != 'yes'; then
31329 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
31330fi
31331
cristy81beccd2011-10-03 18:17:24 +000031332have_png='no'
31333PNG_LIBS=''
31334
31335if test "$with_png" != 'no' -a "$have_zlib" != 'no' ; then
cristyad38abe2012-12-23 23:03:21 +000031336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31337$as_echo "-------------------------------------------------------------" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG support " >&5
31339$as_echo_n "checking for PNG support ... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000031340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31341$as_echo "" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031342 failed=0
31343 passed=0
31344 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
31345if test "x$ac_cv_header_png_h" = xyes; then :
31346 passed=`expr $passed + 1`
31347else
31348 failed=`expr $failed + 1`
cristy64877302011-08-23 19:10:31 +000031349fi
31350
cristy81beccd2011-10-03 18:17:24 +000031351
31352
31353 if test $passed -gt 0; then
glennrp3fc1c212013-01-10 01:52:32 +000031354 for var in 7 6 5 4 2 '' ; do
cristy0615f0e2011-10-12 11:36:46 +000031355 if test "$have_png" = 'no' ; then
31356 if test "x${var}" = 'x' ; then
cristy81beccd2011-10-03 18:17:24 +000031357 pnglib='png'
31358 else
31359 pnglib="png1${var}"
31360 fi
31361
31362# Test for compatible LIBPNG library
31363 failed=0
31364 passed=0
cristy0615f0e2011-10-12 11:36:46 +000031365 if test "$with_png" = 'yes' -o "$with_png" = "libpng1${var}" ; then
cristy81beccd2011-10-03 18:17:24 +000031366 if test "${pnglib}" != 'png' ; then
31367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPNG1${var} support " >&5
31368$as_echo_n "checking for LIBPNG1${var} support ... " >&6; }
31369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31370/* end confdefs.h. */
31371#include <stdio.h>
31372#include <stdlib.h>
31373#include <png.h>
31374
31375int
31376main ()
31377{
31378
31379#if PNG_LIBPNG_VER_MINOR != ${var}
31380#error LIBPNG library must be version 1${var}!
31381Kaboom, Kaboom
31382#endif
31383return 0;
31384
31385 ;
31386 return 0;
31387}
31388_ACEOF
31389if ac_fn_c_try_compile "$LINENO"; then :
31390 ac_cv_libpng_ok='yes'
31391else
31392 ac_cv_libpng_ok='no'
31393fi
31394rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31395 if test "$ac_cv_libpng_ok" = 'yes' ; then
31396 passed=`expr $passed + 1`
cristyad38abe2012-12-23 23:03:21 +000031397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31398$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031399 else
31400 failed=`expr $failed + 1`
cristyad38abe2012-12-23 23:03:21 +000031401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31402$as_echo "no" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031403 fi
31404 else
31405 passed=`expr $passed + 1`
cristyad38abe2012-12-23 23:03:21 +000031406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31407$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031408 fi
31409 fi
31410
31411 if test $passed -gt 0 -a $failed -le 0; then
cristy03f187e2013-01-24 00:22:19 +000031412 if test "1${var}" = '17' ; then
31413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng17" >&5
31414$as_echo_n "checking for png_get_io_ptr in -lpng17... " >&6; }
31415if ${ac_cv_lib_png17_png_get_io_ptr+:} false; then :
31416 $as_echo_n "(cached) " >&6
31417else
31418 ac_check_lib_save_LIBS=$LIBS
31419LIBS="-lpng17 $LIBS"
31420cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31421/* end confdefs.h. */
31422
31423/* Override any GCC internal prototype to avoid an error.
31424 Use char because int might match the return type of a GCC
31425 builtin and then its argument prototype would still apply. */
31426#ifdef __cplusplus
31427extern "C"
31428#endif
31429char png_get_io_ptr ();
31430int
31431main ()
31432{
31433return png_get_io_ptr ();
31434 ;
31435 return 0;
31436}
31437_ACEOF
31438if ac_fn_c_try_link "$LINENO"; then :
31439 ac_cv_lib_png17_png_get_io_ptr=yes
31440else
31441 ac_cv_lib_png17_png_get_io_ptr=no
31442fi
31443rm -f core conftest.err conftest.$ac_objext \
31444 conftest$ac_exeext conftest.$ac_ext
31445LIBS=$ac_check_lib_save_LIBS
31446fi
31447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png17_png_get_io_ptr" >&5
31448$as_echo "$ac_cv_lib_png17_png_get_io_ptr" >&6; }
31449if test "x$ac_cv_lib_png17_png_get_io_ptr" = xyes; then :
31450 passed=`expr $passed + 1`
31451else
31452 failed=`expr $failed + 1`
31453fi
31454
31455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng17" >&5
31456$as_echo_n "checking for png_longjmp in -lpng17... " >&6; }
31457if ${ac_cv_lib_png17_png_longjmp+:} false; then :
31458 $as_echo_n "(cached) " >&6
31459else
31460 ac_check_lib_save_LIBS=$LIBS
31461LIBS="-lpng17 $LIBS"
31462cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31463/* end confdefs.h. */
31464
31465/* Override any GCC internal prototype to avoid an error.
31466 Use char because int might match the return type of a GCC
31467 builtin and then its argument prototype would still apply. */
31468#ifdef __cplusplus
31469extern "C"
31470#endif
31471char png_longjmp ();
31472int
31473main ()
31474{
31475return png_longjmp ();
31476 ;
31477 return 0;
31478}
31479_ACEOF
31480if ac_fn_c_try_link "$LINENO"; then :
31481 ac_cv_lib_png17_png_longjmp=yes
31482else
31483 ac_cv_lib_png17_png_longjmp=no
31484fi
31485rm -f core conftest.err conftest.$ac_objext \
31486 conftest$ac_exeext conftest.$ac_ext
31487LIBS=$ac_check_lib_save_LIBS
31488fi
31489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png17_png_longjmp" >&5
31490$as_echo "$ac_cv_lib_png17_png_longjmp" >&6; }
31491if test "x$ac_cv_lib_png17_png_longjmp" = xyes; then :
31492 passed=`expr $passed + 1`
31493else
31494 failed=`expr $failed + 1`
31495fi
31496
31497 fi
31498 if test "1${var}" = '16' ; then
31499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng16" >&5
31500$as_echo_n "checking for png_get_io_ptr in -lpng16... " >&6; }
31501if ${ac_cv_lib_png16_png_get_io_ptr+:} false; then :
31502 $as_echo_n "(cached) " >&6
31503else
31504 ac_check_lib_save_LIBS=$LIBS
31505LIBS="-lpng16 $LIBS"
31506cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31507/* 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 png_get_io_ptr ();
31516int
31517main ()
31518{
31519return png_get_io_ptr ();
31520 ;
31521 return 0;
31522}
31523_ACEOF
31524if ac_fn_c_try_link "$LINENO"; then :
31525 ac_cv_lib_png16_png_get_io_ptr=yes
31526else
31527 ac_cv_lib_png16_png_get_io_ptr=no
31528fi
31529rm -f core conftest.err conftest.$ac_objext \
31530 conftest$ac_exeext conftest.$ac_ext
31531LIBS=$ac_check_lib_save_LIBS
31532fi
31533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png16_png_get_io_ptr" >&5
31534$as_echo "$ac_cv_lib_png16_png_get_io_ptr" >&6; }
31535if test "x$ac_cv_lib_png16_png_get_io_ptr" = xyes; then :
31536 passed=`expr $passed + 1`
31537else
31538 failed=`expr $failed + 1`
31539fi
31540
31541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng16" >&5
31542$as_echo_n "checking for png_longjmp in -lpng16... " >&6; }
31543if ${ac_cv_lib_png16_png_longjmp+:} false; then :
31544 $as_echo_n "(cached) " >&6
31545else
31546 ac_check_lib_save_LIBS=$LIBS
31547LIBS="-lpng16 $LIBS"
31548cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31549/* 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 png_longjmp ();
31558int
31559main ()
31560{
31561return png_longjmp ();
31562 ;
31563 return 0;
31564}
31565_ACEOF
31566if ac_fn_c_try_link "$LINENO"; then :
31567 ac_cv_lib_png16_png_longjmp=yes
31568else
31569 ac_cv_lib_png16_png_longjmp=no
31570fi
31571rm -f core conftest.err conftest.$ac_objext \
31572 conftest$ac_exeext conftest.$ac_ext
31573LIBS=$ac_check_lib_save_LIBS
31574fi
31575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png16_png_longjmp" >&5
31576$as_echo "$ac_cv_lib_png16_png_longjmp" >&6; }
31577if test "x$ac_cv_lib_png16_png_longjmp" = xyes; then :
31578 passed=`expr $passed + 1`
31579else
31580 failed=`expr $failed + 1`
31581fi
31582
31583 fi
cristy81beccd2011-10-03 18:17:24 +000031584 if test "1${var}" = '15' ; then
31585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng15" >&5
31586$as_echo_n "checking for png_get_io_ptr in -lpng15... " >&6; }
31587if ${ac_cv_lib_png15_png_get_io_ptr+:} false; then :
31588 $as_echo_n "(cached) " >&6
31589else
31590 ac_check_lib_save_LIBS=$LIBS
31591LIBS="-lpng15 $LIBS"
31592cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31593/* end confdefs.h. */
31594
31595/* Override any GCC internal prototype to avoid an error.
31596 Use char because int might match the return type of a GCC
31597 builtin and then its argument prototype would still apply. */
31598#ifdef __cplusplus
31599extern "C"
31600#endif
31601char png_get_io_ptr ();
31602int
31603main ()
31604{
31605return png_get_io_ptr ();
31606 ;
31607 return 0;
31608}
31609_ACEOF
31610if ac_fn_c_try_link "$LINENO"; then :
31611 ac_cv_lib_png15_png_get_io_ptr=yes
31612else
31613 ac_cv_lib_png15_png_get_io_ptr=no
31614fi
31615rm -f core conftest.err conftest.$ac_objext \
31616 conftest$ac_exeext conftest.$ac_ext
31617LIBS=$ac_check_lib_save_LIBS
31618fi
31619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_get_io_ptr" >&5
31620$as_echo "$ac_cv_lib_png15_png_get_io_ptr" >&6; }
31621if test "x$ac_cv_lib_png15_png_get_io_ptr" = xyes; then :
31622 passed=`expr $passed + 1`
31623else
31624 failed=`expr $failed + 1`
31625fi
31626
31627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng15" >&5
31628$as_echo_n "checking for png_longjmp in -lpng15... " >&6; }
31629if ${ac_cv_lib_png15_png_longjmp+:} false; then :
31630 $as_echo_n "(cached) " >&6
31631else
31632 ac_check_lib_save_LIBS=$LIBS
31633LIBS="-lpng15 $LIBS"
31634cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31635/* end confdefs.h. */
31636
31637/* Override any GCC internal prototype to avoid an error.
31638 Use char because int might match the return type of a GCC
31639 builtin and then its argument prototype would still apply. */
31640#ifdef __cplusplus
31641extern "C"
31642#endif
31643char png_longjmp ();
31644int
31645main ()
31646{
31647return png_longjmp ();
31648 ;
31649 return 0;
31650}
31651_ACEOF
31652if ac_fn_c_try_link "$LINENO"; then :
31653 ac_cv_lib_png15_png_longjmp=yes
31654else
31655 ac_cv_lib_png15_png_longjmp=no
31656fi
31657rm -f core conftest.err conftest.$ac_objext \
31658 conftest$ac_exeext conftest.$ac_ext
31659LIBS=$ac_check_lib_save_LIBS
31660fi
31661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_longjmp" >&5
31662$as_echo "$ac_cv_lib_png15_png_longjmp" >&6; }
31663if test "x$ac_cv_lib_png15_png_longjmp" = xyes; then :
31664 passed=`expr $passed + 1`
31665else
31666 failed=`expr $failed + 1`
31667fi
31668
31669 fi
31670 if test "1${var}" = '14' ; then
31671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng14" >&5
31672$as_echo_n "checking for png_get_io_ptr in -lpng14... " >&6; }
31673if ${ac_cv_lib_png14_png_get_io_ptr+:} false; then :
31674 $as_echo_n "(cached) " >&6
31675else
31676 ac_check_lib_save_LIBS=$LIBS
31677LIBS="-lpng14 $LIBS"
31678cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31679/* end confdefs.h. */
31680
31681/* Override any GCC internal prototype to avoid an error.
31682 Use char because int might match the return type of a GCC
31683 builtin and then its argument prototype would still apply. */
31684#ifdef __cplusplus
31685extern "C"
31686#endif
31687char png_get_io_ptr ();
31688int
31689main ()
31690{
31691return png_get_io_ptr ();
31692 ;
31693 return 0;
31694}
31695_ACEOF
31696if ac_fn_c_try_link "$LINENO"; then :
31697 ac_cv_lib_png14_png_get_io_ptr=yes
31698else
31699 ac_cv_lib_png14_png_get_io_ptr=no
31700fi
31701rm -f core conftest.err conftest.$ac_objext \
31702 conftest$ac_exeext conftest.$ac_ext
31703LIBS=$ac_check_lib_save_LIBS
31704fi
31705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_ptr" >&5
31706$as_echo "$ac_cv_lib_png14_png_get_io_ptr" >&6; }
31707if test "x$ac_cv_lib_png14_png_get_io_ptr" = xyes; then :
31708 passed=`expr $passed + 1`
31709else
31710 failed=`expr $failed + 1`
31711fi
31712
31713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_state in -lpng14" >&5
31714$as_echo_n "checking for png_get_io_state in -lpng14... " >&6; }
31715if ${ac_cv_lib_png14_png_get_io_state+:} false; then :
31716 $as_echo_n "(cached) " >&6
31717else
31718 ac_check_lib_save_LIBS=$LIBS
31719LIBS="-lpng14 $LIBS"
31720cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31721/* end confdefs.h. */
31722
31723/* Override any GCC internal prototype to avoid an error.
31724 Use char because int might match the return type of a GCC
31725 builtin and then its argument prototype would still apply. */
31726#ifdef __cplusplus
31727extern "C"
31728#endif
31729char png_get_io_state ();
31730int
31731main ()
31732{
31733return png_get_io_state ();
31734 ;
31735 return 0;
31736}
31737_ACEOF
31738if ac_fn_c_try_link "$LINENO"; then :
31739 ac_cv_lib_png14_png_get_io_state=yes
31740else
31741 ac_cv_lib_png14_png_get_io_state=no
31742fi
31743rm -f core conftest.err conftest.$ac_objext \
31744 conftest$ac_exeext conftest.$ac_ext
31745LIBS=$ac_check_lib_save_LIBS
31746fi
31747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_state" >&5
31748$as_echo "$ac_cv_lib_png14_png_get_io_state" >&6; }
31749if test "x$ac_cv_lib_png14_png_get_io_state" = xyes; then :
31750 passed=`expr $passed + 1`
31751else
31752 failed=`expr $failed + 1`
31753fi
31754
31755 fi
31756 if test "1${var}" = '12' ; then
31757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng12" >&5
31758$as_echo_n "checking for png_get_io_ptr in -lpng12... " >&6; }
31759if ${ac_cv_lib_png12_png_get_io_ptr+:} false; then :
31760 $as_echo_n "(cached) " >&6
31761else
31762 ac_check_lib_save_LIBS=$LIBS
31763LIBS="-lpng12 $LIBS"
31764cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31765/* end confdefs.h. */
31766
31767/* Override any GCC internal prototype to avoid an error.
31768 Use char because int might match the return type of a GCC
31769 builtin and then its argument prototype would still apply. */
31770#ifdef __cplusplus
31771extern "C"
31772#endif
31773char png_get_io_ptr ();
31774int
31775main ()
31776{
31777return png_get_io_ptr ();
31778 ;
31779 return 0;
31780}
31781_ACEOF
31782if ac_fn_c_try_link "$LINENO"; then :
31783 ac_cv_lib_png12_png_get_io_ptr=yes
31784else
31785 ac_cv_lib_png12_png_get_io_ptr=no
31786fi
31787rm -f core conftest.err conftest.$ac_objext \
31788 conftest$ac_exeext conftest.$ac_ext
31789LIBS=$ac_check_lib_save_LIBS
31790fi
31791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png12_png_get_io_ptr" >&5
31792$as_echo "$ac_cv_lib_png12_png_get_io_ptr" >&6; }
31793if test "x$ac_cv_lib_png12_png_get_io_ptr" = xyes; then :
31794 passed=`expr $passed + 1`
31795else
31796 failed=`expr $failed + 1`
31797fi
31798
31799 fi
31800 if test "1${var}" = '1' ; then
31801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
31802$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
31803if ${ac_cv_lib_png_png_get_io_ptr+:} false; then :
31804 $as_echo_n "(cached) " >&6
31805else
31806 ac_check_lib_save_LIBS=$LIBS
31807LIBS="-lpng $LIBS"
31808cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31809/* end confdefs.h. */
31810
31811/* Override any GCC internal prototype to avoid an error.
31812 Use char because int might match the return type of a GCC
31813 builtin and then its argument prototype would still apply. */
31814#ifdef __cplusplus
31815extern "C"
31816#endif
31817char png_get_io_ptr ();
31818int
31819main ()
31820{
31821return png_get_io_ptr ();
31822 ;
31823 return 0;
31824}
31825_ACEOF
31826if ac_fn_c_try_link "$LINENO"; then :
31827 ac_cv_lib_png_png_get_io_ptr=yes
31828else
31829 ac_cv_lib_png_png_get_io_ptr=no
31830fi
31831rm -f core conftest.err conftest.$ac_objext \
31832 conftest$ac_exeext conftest.$ac_ext
31833LIBS=$ac_check_lib_save_LIBS
31834fi
31835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
31836$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
31837if test "x$ac_cv_lib_png_png_get_io_ptr" = xyes; then :
31838 passed=`expr $passed + 1`
31839else
31840 failed=`expr $failed + 1`
31841fi
31842
31843 fi
31844 if test $passed -gt 0 -a $failed -le 0 ; then
31845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${pnglib} package is complete" >&5
31846$as_echo_n "checking if ${pnglib} package is complete... " >&6; }
31847 if test $passed -gt 0 ; then
31848 if test $failed -gt 0 ; then
cristyad38abe2012-12-23 23:03:21 +000031849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31850$as_echo "no -- some components failed test" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031851 have_png='no (failed tests)'
31852 else
31853 PNG_LIBS="-l${pnglib}"
31854 LIBS="$PNG_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000031855
cristy8b350f62009-11-15 23:12:43 +000031856$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031857
cristyad38abe2012-12-23 23:03:21 +000031858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31859$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031860 have_png='yes'
31861 fi
31862 fi
31863 fi
31864 fi
31865 fi
31866 done
31867 fi
cristy3ed852e2009-09-05 21:47:34 +000031868fi
cristy64877302011-08-23 19:10:31 +000031869
cristy73bd4a52010-10-05 11:24:23 +000031870 if test "$have_png" = 'yes'; then
31871 PNG_DELEGATE_TRUE=
31872 PNG_DELEGATE_FALSE='#'
31873else
31874 PNG_DELEGATE_TRUE='#'
31875 PNG_DELEGATE_FALSE=
31876fi
31877
cristy3ed852e2009-09-05 21:47:34 +000031878
cristy50d3f5c2011-09-10 20:09:06 +000031879
cristy3ed852e2009-09-05 21:47:34 +000031880
31881
31882#
31883# Check for RSVG delegate library.
31884#
31885
31886# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000031887if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031888 withval=$with_rsvg; with_rsvg=$withval
31889else
cristy1164d5f2012-08-15 00:58:25 +000031890 with_rsvg='no'
cristy3ed852e2009-09-05 21:47:34 +000031891fi
31892
31893
31894if test "$with_rsvg" != 'yes'; then
31895 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
31896fi
31897
31898have_rsvg='no'
31899have_cairo='no'
31900RSVG_CFLAGS=""
31901RSVG_LIBS=""
31902RSVG_PKG=""
31903if test "x$with_rsvg" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000031904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31905$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031906
31907pkg_failed=no
31908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
31909$as_echo_n "checking for RSVG... " >&6; }
31910
31911if test -n "$RSVG_CFLAGS"; then
31912 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
31913 elif test -n "$PKG_CONFIG"; then
31914 if test -n "$PKG_CONFIG" && \
31915 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31916 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31917 ac_status=$?
31918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31919 test $ac_status = 0; }; then
31920 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000031921 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000031922else
31923 pkg_failed=yes
31924fi
31925 else
31926 pkg_failed=untried
31927fi
31928if test -n "$RSVG_LIBS"; then
31929 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
31930 elif test -n "$PKG_CONFIG"; then
31931 if test -n "$PKG_CONFIG" && \
31932 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31933 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31934 ac_status=$?
31935 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31936 test $ac_status = 0; }; then
31937 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000031938 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000031939else
31940 pkg_failed=yes
31941fi
31942 else
31943 pkg_failed=untried
31944fi
31945
31946
31947
31948if test $pkg_failed = yes; then
cristy146497a2015-05-17 22:46:16 +000031949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31950$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031951
31952if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31953 _pkg_short_errors_supported=yes
31954else
31955 _pkg_short_errors_supported=no
31956fi
31957 if test $_pkg_short_errors_supported = yes; then
cristy146497a2015-05-17 22:46:16 +000031958 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 +000031959 else
cristy146497a2015-05-17 22:46:16 +000031960 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "librsvg-2.0 >= 2.9.0" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000031961 fi
31962 # Put the nasty error message in config.log where it belongs
31963 echo "$RSVG_PKG_ERRORS" >&5
31964
cristy146497a2015-05-17 22:46:16 +000031965 have_rsvg=no
cristy73bd4a52010-10-05 11:24:23 +000031966elif test $pkg_failed = untried; then
cristy146497a2015-05-17 22:46:16 +000031967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31968$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031969 have_rsvg=no
31970else
31971 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
31972 RSVG_LIBS=$pkg_cv_RSVG_LIBS
31973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31974$as_echo "yes" >&6; }
31975 have_rsvg=yes
31976fi
cristyad38abe2012-12-23 23:03:21 +000031977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31978$as_echo "" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031979
31980pkg_failed=no
31981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
31982$as_echo_n "checking for CAIRO_SVG... " >&6; }
31983
31984if test -n "$CAIRO_SVG_CFLAGS"; then
31985 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
31986 elif test -n "$PKG_CONFIG"; then
31987 if test -n "$PKG_CONFIG" && \
31988 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31989 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31990 ac_status=$?
31991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31992 test $ac_status = 0; }; then
31993 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000031994 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000031995else
31996 pkg_failed=yes
31997fi
31998 else
31999 pkg_failed=untried
32000fi
32001if test -n "$CAIRO_SVG_LIBS"; then
32002 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
32003 elif test -n "$PKG_CONFIG"; then
32004 if test -n "$PKG_CONFIG" && \
32005 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
32006 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
32007 ac_status=$?
32008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32009 test $ac_status = 0; }; then
32010 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000032011 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000032012else
32013 pkg_failed=yes
32014fi
32015 else
32016 pkg_failed=untried
32017fi
32018
32019
32020
32021if test $pkg_failed = yes; then
cristy146497a2015-05-17 22:46:16 +000032022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32023$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000032024
32025if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32026 _pkg_short_errors_supported=yes
32027else
32028 _pkg_short_errors_supported=no
32029fi
32030 if test $_pkg_short_errors_supported = yes; then
cristy146497a2015-05-17 22:46:16 +000032031 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cairo-svg" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000032032 else
cristy146497a2015-05-17 22:46:16 +000032033 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cairo-svg" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000032034 fi
32035 # Put the nasty error message in config.log where it belongs
32036 echo "$CAIRO_SVG_PKG_ERRORS" >&5
32037
cristy146497a2015-05-17 22:46:16 +000032038 have_cairo=no
cristy73bd4a52010-10-05 11:24:23 +000032039elif test $pkg_failed = untried; then
cristy146497a2015-05-17 22:46:16 +000032040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32041$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000032042 have_cairo=no
32043else
32044 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
32045 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
32046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32047$as_echo "yes" >&6; }
32048 have_cairo=yes
32049fi
cristyad38abe2012-12-23 23:03:21 +000032050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32051$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032052fi
32053
32054if test "$have_rsvg" = 'yes'; then
32055
cristy8b350f62009-11-15 23:12:43 +000032056$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032057
cristyc6722092012-10-14 00:19:31 +000032058 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000032059 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
32060 fi
32061fi
32062
32063if test "$have_cairo" = 'yes'; then
32064
cristy8b350f62009-11-15 23:12:43 +000032065$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032066
cristyc6722092012-10-14 00:19:31 +000032067 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000032068 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
32069 fi
32070fi
32071
cristy73bd4a52010-10-05 11:24:23 +000032072 if test "$have_rsvg" = 'yes'; then
32073 RSVG_DELEGATE_TRUE=
32074 RSVG_DELEGATE_FALSE='#'
32075else
32076 RSVG_DELEGATE_TRUE='#'
32077 RSVG_DELEGATE_FALSE=
32078fi
32079
32080 if test "$have_cairo" = 'yes'; then
32081 CAIRO_DELEGATE_TRUE=
32082 CAIRO_DELEGATE_FALSE='#'
32083else
32084 CAIRO_DELEGATE_TRUE='#'
32085 CAIRO_DELEGATE_FALSE=
32086fi
32087
cristy3ed852e2009-09-05 21:47:34 +000032088
32089
32090
32091
32092#
32093# Check for TIFF delegate library.
32094#
32095
32096# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000032097if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032098 withval=$with_tiff; with_tiff=$withval
32099else
32100 with_tiff='yes'
32101fi
32102
32103
32104if test "$with_tiff" != 'yes'; then
32105 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
32106fi
32107
32108have_tiff='no'
32109TIFF_LIBS=''
32110if test "$with_tiff" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000032111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32112$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000032114$as_echo_n "checking for TIFF... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000032115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32116$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032117 failed=0
32118 passed=0
cristy8b350f62009-11-15 23:12:43 +000032119 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000032120if test "x$ac_cv_header_tiff_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000032121 passed=`expr $passed + 1`
32122else
32123 failed=`expr $failed + 1`
32124fi
32125
32126
cristy8b350f62009-11-15 23:12:43 +000032127 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000032128if test "x$ac_cv_header_tiffio_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000032129 passed=`expr $passed + 1`
32130else
32131 failed=`expr $failed + 1`
32132fi
32133
32134
cristy8b350f62009-11-15 23:12:43 +000032135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000032136$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032137if ${ac_cv_lib_tiff_TIFFOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032138 $as_echo_n "(cached) " >&6
32139else
32140 ac_check_lib_save_LIBS=$LIBS
32141LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032142cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032143/* end confdefs.h. */
32144
32145/* Override any GCC internal prototype to avoid an error.
32146 Use char because int might match the return type of a GCC
32147 builtin and then its argument prototype would still apply. */
32148#ifdef __cplusplus
32149extern "C"
32150#endif
32151char TIFFOpen ();
32152int
32153main ()
32154{
32155return TIFFOpen ();
32156 ;
32157 return 0;
32158}
32159_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032160if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000032161 ac_cv_lib_tiff_TIFFOpen=yes
32162else
cristy8b350f62009-11-15 23:12:43 +000032163 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000032164fi
cristy8b350f62009-11-15 23:12:43 +000032165rm -f core conftest.err conftest.$ac_objext \
32166 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032167LIBS=$ac_check_lib_save_LIBS
32168fi
cristy8b350f62009-11-15 23:12:43 +000032169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000032170$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000032171if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000032172 passed=`expr $passed + 1`
32173else
32174 failed=`expr $failed + 1`
32175fi
32176
cristy8b350f62009-11-15 23:12:43 +000032177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000032178$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032179if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032180 $as_echo_n "(cached) " >&6
32181else
32182 ac_check_lib_save_LIBS=$LIBS
32183LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032184cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032185/* end confdefs.h. */
32186
32187/* Override any GCC internal prototype to avoid an error.
32188 Use char because int might match the return type of a GCC
32189 builtin and then its argument prototype would still apply. */
32190#ifdef __cplusplus
32191extern "C"
32192#endif
32193char TIFFClientOpen ();
32194int
32195main ()
32196{
32197return TIFFClientOpen ();
32198 ;
32199 return 0;
32200}
32201_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032202if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000032203 ac_cv_lib_tiff_TIFFClientOpen=yes
32204else
cristy8b350f62009-11-15 23:12:43 +000032205 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000032206fi
cristy8b350f62009-11-15 23:12:43 +000032207rm -f core conftest.err conftest.$ac_objext \
32208 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032209LIBS=$ac_check_lib_save_LIBS
32210fi
cristy8b350f62009-11-15 23:12:43 +000032211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000032212$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000032213if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000032214 passed=`expr $passed + 1`
32215else
32216 failed=`expr $failed + 1`
32217fi
32218
cristy8b350f62009-11-15 23:12:43 +000032219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000032220$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032221if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032222 $as_echo_n "(cached) " >&6
32223else
32224 ac_check_lib_save_LIBS=$LIBS
32225LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032226cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032227/* end confdefs.h. */
32228
32229/* Override any GCC internal prototype to avoid an error.
32230 Use char because int might match the return type of a GCC
32231 builtin and then its argument prototype would still apply. */
32232#ifdef __cplusplus
32233extern "C"
32234#endif
32235char TIFFIsByteSwapped ();
32236int
32237main ()
32238{
32239return TIFFIsByteSwapped ();
32240 ;
32241 return 0;
32242}
32243_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032244if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000032245 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
32246else
cristy8b350f62009-11-15 23:12:43 +000032247 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000032248fi
cristy8b350f62009-11-15 23:12:43 +000032249rm -f core conftest.err conftest.$ac_objext \
32250 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032251LIBS=$ac_check_lib_save_LIBS
32252fi
cristy8b350f62009-11-15 23:12:43 +000032253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000032254$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristyda16f162011-02-19 23:52:17 +000032255if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000032256 passed=`expr $passed + 1`
32257else
32258 failed=`expr $failed + 1`
32259fi
32260
cristy8b350f62009-11-15 23:12:43 +000032261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000032262$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032263if ${ac_cv_lib_tiff_TIFFReadRGBATile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032264 $as_echo_n "(cached) " >&6
32265else
32266 ac_check_lib_save_LIBS=$LIBS
32267LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032268cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032269/* end confdefs.h. */
32270
32271/* Override any GCC internal prototype to avoid an error.
32272 Use char because int might match the return type of a GCC
32273 builtin and then its argument prototype would still apply. */
32274#ifdef __cplusplus
32275extern "C"
32276#endif
32277char TIFFReadRGBATile ();
32278int
32279main ()
32280{
32281return TIFFReadRGBATile ();
32282 ;
32283 return 0;
32284}
32285_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032286if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000032287 ac_cv_lib_tiff_TIFFReadRGBATile=yes
32288else
cristy8b350f62009-11-15 23:12:43 +000032289 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000032290fi
cristy8b350f62009-11-15 23:12:43 +000032291rm -f core conftest.err conftest.$ac_objext \
32292 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032293LIBS=$ac_check_lib_save_LIBS
32294fi
cristy8b350f62009-11-15 23:12:43 +000032295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000032296$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristyda16f162011-02-19 23:52:17 +000032297if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000032298 passed=`expr $passed + 1`
32299else
32300 failed=`expr $failed + 1`
32301fi
32302
cristy8b350f62009-11-15 23:12:43 +000032303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000032304$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032305if ${ac_cv_lib_tiff_TIFFReadRGBAStrip+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032306 $as_echo_n "(cached) " >&6
32307else
32308 ac_check_lib_save_LIBS=$LIBS
32309LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032310cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032311/* end confdefs.h. */
32312
32313/* Override any GCC internal prototype to avoid an error.
32314 Use char because int might match the return type of a GCC
32315 builtin and then its argument prototype would still apply. */
32316#ifdef __cplusplus
32317extern "C"
32318#endif
32319char TIFFReadRGBAStrip ();
32320int
32321main ()
32322{
32323return TIFFReadRGBAStrip ();
32324 ;
32325 return 0;
32326}
32327_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032328if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000032329 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
32330else
cristy8b350f62009-11-15 23:12:43 +000032331 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000032332fi
cristy8b350f62009-11-15 23:12:43 +000032333rm -f core conftest.err conftest.$ac_objext \
32334 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032335LIBS=$ac_check_lib_save_LIBS
32336fi
cristy8b350f62009-11-15 23:12:43 +000032337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000032338$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristyda16f162011-02-19 23:52:17 +000032339if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000032340 passed=`expr $passed + 1`
32341else
32342 failed=`expr $failed + 1`
32343fi
32344
cristy8b350f62009-11-15 23:12:43 +000032345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000032346$as_echo_n "checking if TIFF package is complete... " >&6; }
32347 if test $passed -gt 0; then
32348 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000032349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32350$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032351 have_tiff='no (failed tests)'
32352 else
32353 TIFF_LIBS='-ltiff'
32354 LIBS="$TIFF_LIBS $LIBS"
32355
cristy8b350f62009-11-15 23:12:43 +000032356$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032357
cristyad38abe2012-12-23 23:03:21 +000032358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32359$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032360 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000032361 for ac_header in tiffconf.h
32362do :
32363 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000032364if test "x$ac_cv_header_tiffconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000032365 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032366#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000032367_ACEOF
32368
32369fi
32370
32371done
32372
cristy8b350f62009-11-15 23:12:43 +000032373 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3f590e52011-11-14 14:29:44 +000032374 TIFFIsBigEndian TIFFReadEXIFDirectory TIFFSetErrorHandlerExt \
32375 TIFFSetTagExtender TIFFSetWarningHandlerExt \
32376 TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000032377do :
32378 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
32379ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000032380if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000032381 cat >>confdefs.h <<_ACEOF
32382#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
32383_ACEOF
32384
32385fi
32386done
32387
32388 fi
32389 else
cristyad38abe2012-12-23 23:03:21 +000032390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32391$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032392 fi
32393fi
cristy73bd4a52010-10-05 11:24:23 +000032394 if test "$have_tiff" = 'yes'; then
32395 TIFF_DELEGATE_TRUE=
32396 TIFF_DELEGATE_FALSE='#'
32397else
32398 TIFF_DELEGATE_TRUE='#'
32399 TIFF_DELEGATE_FALSE=
32400fi
32401
cristy3ed852e2009-09-05 21:47:34 +000032402
32403
32404
32405#
cristyb1860752011-03-14 00:27:46 +000032406# Check for WEBP delegate library.
32407#
32408
32409# Check whether --with-webp was given.
32410if test "${with_webp+set}" = set; then :
32411 withval=$with_webp; with_webp=$withval
32412else
32413 with_webp='yes'
32414fi
32415
32416
32417if test "$with_webp" != 'yes'; then
32418 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-webp=$with_webp "
32419fi
32420
32421have_webp='no'
32422WEBP_LIBS=''
32423if test "$with_webp" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000032424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32425$as_echo "-------------------------------------------------------------" >&6; }
cristyb1860752011-03-14 00:27:46 +000032426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBP" >&5
32427$as_echo_n "checking for WEBP... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000032428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32429$as_echo "" >&6; }
cristyb1860752011-03-14 00:27:46 +000032430 failed=0
32431 passed=0
32432 ac_fn_c_check_header_mongrel "$LINENO" "webp/decode.h" "ac_cv_header_webp_decode_h" "$ac_includes_default"
32433if test "x$ac_cv_header_webp_decode_h" = xyes; then :
32434 passed=`expr $passed + 1`
32435else
32436 failed=`expr $failed + 1`
32437fi
32438
32439
cristy6d670312013-03-22 23:23:01 +000032440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPPictureInitInternal in -lwebp" >&5
32441$as_echo_n "checking for WebPPictureInitInternal in -lwebp... " >&6; }
32442if ${ac_cv_lib_webp_WebPPictureInitInternal+:} false; then :
cristyb1860752011-03-14 00:27:46 +000032443 $as_echo_n "(cached) " >&6
32444else
32445 ac_check_lib_save_LIBS=$LIBS
32446LIBS="-lwebp $LIBS"
32447cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32448/* end confdefs.h. */
32449
32450/* Override any GCC internal prototype to avoid an error.
32451 Use char because int might match the return type of a GCC
32452 builtin and then its argument prototype would still apply. */
32453#ifdef __cplusplus
32454extern "C"
32455#endif
cristy6d670312013-03-22 23:23:01 +000032456char WebPPictureInitInternal ();
cristyb1860752011-03-14 00:27:46 +000032457int
32458main ()
32459{
cristy6d670312013-03-22 23:23:01 +000032460return WebPPictureInitInternal ();
cristyb1860752011-03-14 00:27:46 +000032461 ;
32462 return 0;
32463}
32464_ACEOF
32465if ac_fn_c_try_link "$LINENO"; then :
cristy6d670312013-03-22 23:23:01 +000032466 ac_cv_lib_webp_WebPPictureInitInternal=yes
cristyb1860752011-03-14 00:27:46 +000032467else
cristy6d670312013-03-22 23:23:01 +000032468 ac_cv_lib_webp_WebPPictureInitInternal=no
cristyb1860752011-03-14 00:27:46 +000032469fi
32470rm -f core conftest.err conftest.$ac_objext \
32471 conftest$ac_exeext conftest.$ac_ext
32472LIBS=$ac_check_lib_save_LIBS
32473fi
cristy6d670312013-03-22 23:23:01 +000032474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPPictureInitInternal" >&5
32475$as_echo "$ac_cv_lib_webp_WebPPictureInitInternal" >&6; }
32476if test "x$ac_cv_lib_webp_WebPPictureInitInternal" = xyes; then :
cristyb1860752011-03-14 00:27:46 +000032477 passed=`expr $passed + 1`
32478else
32479 failed=`expr $failed + 1`
32480fi
32481
32482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WEBP package is complete" >&5
32483$as_echo_n "checking if WEBP package is complete... " >&6; }
32484 if test $passed -gt 0; then
32485 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000032486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32487$as_echo "no -- some components failed test" >&6; }
cristyb1860752011-03-14 00:27:46 +000032488 have_webp='no (failed tests)'
32489 else
32490 WEBP_LIBS='-lwebp'
32491 LIBS="$WEBP_LIBS $LIBS"
32492
32493$as_echo "#define WEBP_DELEGATE 1" >>confdefs.h
32494
cristyad38abe2012-12-23 23:03:21 +000032495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32496$as_echo "yes" >&6; }
cristyb1860752011-03-14 00:27:46 +000032497 have_webp='yes'
32498 fi
32499 else
cristyad38abe2012-12-23 23:03:21 +000032500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32501$as_echo "no" >&6; }
cristyb1860752011-03-14 00:27:46 +000032502 fi
32503fi
32504 if test "$have_webp" = 'yes'; then
32505 WEBP_DELEGATE_TRUE=
32506 WEBP_DELEGATE_FALSE='#'
32507else
32508 WEBP_DELEGATE_TRUE='#'
32509 WEBP_DELEGATE_FALSE=
32510fi
32511
32512
32513
32514
32515#
cristy3ed852e2009-09-05 21:47:34 +000032516# Set Windows font directory.
32517#
32518
32519# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000032520if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032521 withval=$with_windows_font_dir; with_windows_font_dir=$withval
32522else
cristy5a3dc992014-12-05 19:50:04 +000032523 with_windows_font_dir='default'
cristy3ed852e2009-09-05 21:47:34 +000032524fi
32525
cristy5a3dc992014-12-05 19:50:04 +000032526
32527if test "$with_windows_font_dir" != 'default'; then
cristy3ed852e2009-09-05 21:47:34 +000032528 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
32529fi
32530
32531
32532#
32533# Check for WMF delegate library.
32534#
32535
32536# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000032537if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032538 withval=$with_wmf; with_wmf=$withval
32539else
cristyfc3d0222012-02-07 15:05:57 +000032540 with_wmf='no'
cristy3ed852e2009-09-05 21:47:34 +000032541fi
32542
32543
32544if test "$with_wmf" != 'yes'; then
32545 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
32546fi
32547
32548have_wmf='no'
32549WMF_LIBS=''
cristy03f7cf92011-12-15 01:40:41 +000032550WMF_LIBS_DEPS=''
32551OLIBS="$LIBS"
cristy3ed852e2009-09-05 21:47:34 +000032552if test "$with_wmf" != 'no'; then
cristy03f7cf92011-12-15 01:40:41 +000032553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32554$as_echo "-------------------------------------------------------------" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000032555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
cristy3ed852e2009-09-05 21:47:34 +000032556$as_echo_n "checking for WMF... " >&6; }
cristy03f7cf92011-12-15 01:40:41 +000032557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32558$as_echo "" >&6; }
32559 have_libwmf='no'
32560 have_libwmflite='no'
32561 have_libwmf_ipa_h='no'
32562
32563 ac_fn_c_check_header_compile "$LINENO" "libwmf/ipa.h" "ac_cv_header_libwmf_ipa_h" "$FT2BUILD_H
32564"
32565if test "x$ac_cv_header_libwmf_ipa_h" = xyes; then :
32566 have_libwmf_ipa_h='yes'
cristy3ed852e2009-09-05 21:47:34 +000032567fi
32568
32569
cristy03f7cf92011-12-15 01:40:41 +000032570 if test "$have_libwmf_ipa_h" = 'yes'; then
32571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_lite_create in -lwmflite" >&5
32572$as_echo_n "checking for wmf_lite_create in -lwmflite... " >&6; }
32573if ${ac_cv_lib_wmflite_wmf_lite_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032574 $as_echo_n "(cached) " >&6
32575else
32576 ac_check_lib_save_LIBS=$LIBS
cristy03f7cf92011-12-15 01:40:41 +000032577LIBS="-lwmflite $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032578cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032579/* end confdefs.h. */
32580
32581/* Override any GCC internal prototype to avoid an error.
32582 Use char because int might match the return type of a GCC
32583 builtin and then its argument prototype would still apply. */
32584#ifdef __cplusplus
32585extern "C"
32586#endif
cristy03f7cf92011-12-15 01:40:41 +000032587char wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000032588int
32589main ()
32590{
cristy03f7cf92011-12-15 01:40:41 +000032591return wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000032592 ;
32593 return 0;
32594}
32595_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032596if ac_fn_c_try_link "$LINENO"; then :
cristy03f7cf92011-12-15 01:40:41 +000032597 ac_cv_lib_wmflite_wmf_lite_create=yes
cristy3ed852e2009-09-05 21:47:34 +000032598else
cristy03f7cf92011-12-15 01:40:41 +000032599 ac_cv_lib_wmflite_wmf_lite_create=no
cristy3ed852e2009-09-05 21:47:34 +000032600fi
cristy8b350f62009-11-15 23:12:43 +000032601rm -f core conftest.err conftest.$ac_objext \
32602 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032603LIBS=$ac_check_lib_save_LIBS
32604fi
cristy03f7cf92011-12-15 01:40:41 +000032605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmflite_wmf_lite_create" >&5
32606$as_echo "$ac_cv_lib_wmflite_wmf_lite_create" >&6; }
32607if test "x$ac_cv_lib_wmflite_wmf_lite_create" = xyes; then :
32608 have_libwmflite='yes'
cristy9243a2d2011-08-22 17:32:32 +000032609fi
32610
cristy03f7cf92011-12-15 01:40:41 +000032611 if test "$have_libwmflite" = 'yes'; then
32612
32613$as_echo "#define WMFLITE_DELEGATE 1" >>confdefs.h
32614
32615 WMF_LIBS='-lwmflite'
glennrp33e524b2011-08-24 17:41:57 +000032616 LIBS="$WMF_LIBS $LIBS"
cristy03f7cf92011-12-15 01:40:41 +000032617 have_wmf='yes'
32618 else
32619 WMF_LIBS_DEPS=''
32620 WMF_CONFIG_LIBS=`libwmf-config --libs`
32621 for lib in xml2 expat freetype jpeg png z; do
32622 testlib="-l${lib}"
32623 echo "$WMF_CONFIG_LIBS" | grep -- "$testlib" > /dev/null && WMF_LIBS_DEPS="$WMF_LIBS_DEPS $testlib"
32624 done
32625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_api_create in -lwmf" >&5
32626$as_echo_n "checking for wmf_api_create in -lwmf... " >&6; }
32627if ${ac_cv_lib_wmf_wmf_api_create+:} false; then :
32628 $as_echo_n "(cached) " >&6
32629else
32630 ac_check_lib_save_LIBS=$LIBS
32631LIBS="-lwmf $WMF_LIBS_DEPS $LIBS"
32632cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32633/* end confdefs.h. */
32634
32635/* Override any GCC internal prototype to avoid an error.
32636 Use char because int might match the return type of a GCC
32637 builtin and then its argument prototype would still apply. */
32638#ifdef __cplusplus
32639extern "C"
32640#endif
32641char wmf_api_create ();
32642int
32643main ()
32644{
32645return wmf_api_create ();
32646 ;
32647 return 0;
32648}
32649_ACEOF
32650if ac_fn_c_try_link "$LINENO"; then :
32651 ac_cv_lib_wmf_wmf_api_create=yes
32652else
32653 ac_cv_lib_wmf_wmf_api_create=no
32654fi
32655rm -f core conftest.err conftest.$ac_objext \
32656 conftest$ac_exeext conftest.$ac_ext
32657LIBS=$ac_check_lib_save_LIBS
32658fi
32659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_api_create" >&5
32660$as_echo "$ac_cv_lib_wmf_wmf_api_create" >&6; }
32661if test "x$ac_cv_lib_wmf_wmf_api_create" = xyes; then :
32662 have_libwmf='yes'
32663fi
32664
32665 if test "$have_libwmf" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000032666
cristy8b350f62009-11-15 23:12:43 +000032667$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032668
cristy03f7cf92011-12-15 01:40:41 +000032669 WMF_LIBS='-lwmf'
32670 LIBS="$WMF_LIBS $LIBS"
32671 have_wmf='yes'
32672 else
32673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32674$as_echo "no -- some components failed test" >&6; }
32675 have_wmf='no (failed tests)'
32676 have_wmflite='no (failed tests)'
32677 LIBS="$OLIBS"
32678 WMF_LIBS=''
32679 fi
glennrp33e524b2011-08-24 17:41:57 +000032680 fi
cristy03f7cf92011-12-15 01:40:41 +000032681 fi
32682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
32683$as_echo_n "checking if WMF package is complete... " >&6; }
32684 if test "$have_wmf" = 'yes'; then
32685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32686$as_echo "yes" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000032687 else
cristy03f7cf92011-12-15 01:40:41 +000032688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32689$as_echo "no" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000032690 fi
cristy3ed852e2009-09-05 21:47:34 +000032691fi
cristy73bd4a52010-10-05 11:24:23 +000032692 if test "$have_wmf" = 'yes'; then
32693 WMF_DELEGATE_TRUE=
32694 WMF_DELEGATE_FALSE='#'
32695else
32696 WMF_DELEGATE_TRUE='#'
32697 WMF_DELEGATE_FALSE=
32698fi
32699
cristy3ed852e2009-09-05 21:47:34 +000032700
32701
32702
cristy81beccd2011-10-03 18:17:24 +000032703
32704
cristy3ed852e2009-09-05 21:47:34 +000032705#
32706# Check for XML delegate library.
32707#
32708
32709# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000032710if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032711 withval=$with_xml; with_xml=$withval
32712else
cristyfc3d0222012-02-07 15:05:57 +000032713 with_xml='yes'
cristy3ed852e2009-09-05 21:47:34 +000032714fi
32715
32716
cristy81beccd2011-10-03 18:17:24 +000032717if test "$with_xml" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000032718 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
32719fi
32720
cristy81beccd2011-10-03 18:17:24 +000032721have_xml='no'
32722XML_LIBS=''
32723if test "$with_xml" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000032724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32725$as_echo "-------------------------------------------------------------" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
32727$as_echo_n "checking for XML... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000032728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32729$as_echo "" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032730 PERSIST_LDFLAGS=$LDFLAGS
32731 PERSIST_CPPFLAGS=$CPPFLAGS
32732 xml2_config=''
32733 # Extract the first word of "xml2-config", so it can be a program name with args.
32734set dummy xml2-config; ac_word=$2
32735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32736$as_echo_n "checking for $ac_word... " >&6; }
32737if ${ac_cv_path_xml2_config+:} false; then :
32738 $as_echo_n "(cached) " >&6
32739else
32740 case $xml2_config in
32741 [\\/]* | ?:[\\/]*)
32742 ac_cv_path_xml2_config="$xml2_config" # Let the user override the test with a path.
32743 ;;
32744 *)
32745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32746for as_dir in $PATH
32747do
32748 IFS=$as_save_IFS
32749 test -z "$as_dir" && as_dir=.
32750 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032751 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy81beccd2011-10-03 18:17:24 +000032752 ac_cv_path_xml2_config="$as_dir/$ac_word$ac_exec_ext"
32753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32754 break 2
32755 fi
32756done
32757 done
32758IFS=$as_save_IFS
32759
32760 ;;
32761esac
32762fi
32763xml2_config=$ac_cv_path_xml2_config
32764if test -n "$xml2_config"; then
32765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
32766$as_echo "$xml2_config" >&6; }
32767else
32768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32769$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032770fi
32771
cristy81beccd2011-10-03 18:17:24 +000032772 if test -n "$xml2_config"; then
32773 # Debian installs libxml headers under /usr/include/libxml2/libxml with
32774 # the shared library installed under /usr/lib, whereas the package
32775 # installs itself under $prefix/libxml and $prefix/lib.
cristy4a069772014-10-05 19:26:36 +000032776 xml2_prefix=`${xml2_config} --prefix`
cristy81beccd2011-10-03 18:17:24 +000032777 if test -d "${xml2_prefix}/include/libxml2"; then
32778 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
32779 fi
32780 if test "${xml2_prefix}" != '/usr'; then
32781 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
32782 fi
32783 fi
32784 failed=0
32785 passed=0
32786 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
32787if test "x$ac_cv_header_libxml_parser_h" = xyes; then :
32788 passed=`expr $passed + 1`
32789else
32790 failed=`expr $failed + 1`
32791fi
32792
32793
32794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSAXVersion in -lxml2" >&5
32795$as_echo_n "checking for xmlSAXVersion in -lxml2... " >&6; }
32796if ${ac_cv_lib_xml2_xmlSAXVersion+:} false; then :
32797 $as_echo_n "(cached) " >&6
32798else
32799 ac_check_lib_save_LIBS=$LIBS
32800LIBS="-lxml2 $LIBS"
32801cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32802/* end confdefs.h. */
32803
32804/* Override any GCC internal prototype to avoid an error.
32805 Use char because int might match the return type of a GCC
32806 builtin and then its argument prototype would still apply. */
32807#ifdef __cplusplus
32808extern "C"
32809#endif
32810char xmlSAXVersion ();
32811int
32812main ()
32813{
32814return xmlSAXVersion ();
32815 ;
32816 return 0;
32817}
32818_ACEOF
32819if ac_fn_c_try_link "$LINENO"; then :
32820 ac_cv_lib_xml2_xmlSAXVersion=yes
32821else
32822 ac_cv_lib_xml2_xmlSAXVersion=no
32823fi
32824rm -f core conftest.err conftest.$ac_objext \
32825 conftest$ac_exeext conftest.$ac_ext
32826LIBS=$ac_check_lib_save_LIBS
32827fi
32828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSAXVersion" >&5
32829$as_echo "$ac_cv_lib_xml2_xmlSAXVersion" >&6; }
32830if test "x$ac_cv_lib_xml2_xmlSAXVersion" = xyes; then :
32831 passed=`expr $passed + 1`
32832else
32833 failed=`expr $failed + 1`
32834fi
32835
32836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseChunk in -lxml2" >&5
32837$as_echo_n "checking for xmlParseChunk in -lxml2... " >&6; }
32838if ${ac_cv_lib_xml2_xmlParseChunk+:} false; then :
32839 $as_echo_n "(cached) " >&6
32840else
32841 ac_check_lib_save_LIBS=$LIBS
32842LIBS="-lxml2 $LIBS"
32843cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32844/* end confdefs.h. */
32845
32846/* Override any GCC internal prototype to avoid an error.
32847 Use char because int might match the return type of a GCC
32848 builtin and then its argument prototype would still apply. */
32849#ifdef __cplusplus
32850extern "C"
32851#endif
32852char xmlParseChunk ();
32853int
32854main ()
32855{
32856return xmlParseChunk ();
32857 ;
32858 return 0;
32859}
32860_ACEOF
32861if ac_fn_c_try_link "$LINENO"; then :
32862 ac_cv_lib_xml2_xmlParseChunk=yes
32863else
32864 ac_cv_lib_xml2_xmlParseChunk=no
32865fi
32866rm -f core conftest.err conftest.$ac_objext \
32867 conftest$ac_exeext conftest.$ac_ext
32868LIBS=$ac_check_lib_save_LIBS
32869fi
32870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseChunk" >&5
32871$as_echo "$ac_cv_lib_xml2_xmlParseChunk" >&6; }
32872if test "x$ac_cv_lib_xml2_xmlParseChunk" = xyes; then :
32873 passed=`expr $passed + 1`
32874else
32875 failed=`expr $failed + 1`
32876fi
32877
32878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlCreatePushParserCtxt in -lxml2" >&5
32879$as_echo_n "checking for xmlCreatePushParserCtxt in -lxml2... " >&6; }
32880if ${ac_cv_lib_xml2_xmlCreatePushParserCtxt+:} false; then :
32881 $as_echo_n "(cached) " >&6
32882else
32883 ac_check_lib_save_LIBS=$LIBS
32884LIBS="-lxml2 $LIBS"
32885cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32886/* end confdefs.h. */
32887
32888/* Override any GCC internal prototype to avoid an error.
32889 Use char because int might match the return type of a GCC
32890 builtin and then its argument prototype would still apply. */
32891#ifdef __cplusplus
32892extern "C"
32893#endif
32894char xmlCreatePushParserCtxt ();
32895int
32896main ()
32897{
32898return xmlCreatePushParserCtxt ();
32899 ;
32900 return 0;
32901}
32902_ACEOF
32903if ac_fn_c_try_link "$LINENO"; then :
32904 ac_cv_lib_xml2_xmlCreatePushParserCtxt=yes
32905else
32906 ac_cv_lib_xml2_xmlCreatePushParserCtxt=no
32907fi
32908rm -f core conftest.err conftest.$ac_objext \
32909 conftest$ac_exeext conftest.$ac_ext
32910LIBS=$ac_check_lib_save_LIBS
32911fi
32912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&5
32913$as_echo "$ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&6; }
32914if test "x$ac_cv_lib_xml2_xmlCreatePushParserCtxt" = xyes; then :
32915 passed=`expr $passed + 1`
32916else
32917 failed=`expr $failed + 1`
32918fi
32919
32920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
32921$as_echo_n "checking if XML package is complete... " >&6; }
32922 if test $passed -gt 0; then
32923 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000032924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32925$as_echo "no -- some components failed test" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032926 have_xml='no (failed tests)'
32927 LDFLAGS="$PERSIST_LDFLAGS"
32928 CPPFLAGS="$PERSIST_CPPFLAGS"
32929 else
32930 XML_LIBS='-lxml2'
32931 LIBS="$XML_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000032932
cristy8b350f62009-11-15 23:12:43 +000032933$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032934
cristyad38abe2012-12-23 23:03:21 +000032935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32936$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032937 have_xml='yes'
32938 fi
32939 else
cristyad38abe2012-12-23 23:03:21 +000032940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32941$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032942 fi
32943fi
cristy73bd4a52010-10-05 11:24:23 +000032944 if test "$have_xml" = 'yes'; then
32945 XML_DELEGATE_TRUE=
32946 XML_DELEGATE_FALSE='#'
32947else
32948 XML_DELEGATE_TRUE='#'
32949 XML_DELEGATE_FALSE=
32950fi
32951
cristy3ed852e2009-09-05 21:47:34 +000032952
32953
32954
32955# Substitute compiler name to build/link PerlMagick
32956#
32957
32958
32959#
32960# Configure install Paths
32961#
cristy7def36a2011-10-28 19:04:41 +000032962
cristy2a11bef2011-10-28 18:33:11 +000032963# Path to ImageMagick header files
cristybdabdd62013-03-04 17:43:36 +000032964INCLUDE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristye52f12f2012-12-31 15:32:36 +000032965INCLUDE_PATH="${INCLUDE_DIR}/${INCLUDE_RELATIVE_PATH}"
32966DEFINE_INCLUDE_PATH="${INCLUDE_DIR}/${INCLUDE_RELATIVE_PATH}/"
cristy2a11bef2011-10-28 18:33:11 +000032967case "${build_os}" in
32968 mingw* )
32969 DEFINE_INCLUDE_PATH=`$WinPathScript "$DEFINE_INCLUDE_PATH" 1`
32970 ;;
32971esac
32972
32973cat >>confdefs.h <<_ACEOF
32974#define INCLUDE_PATH "$DEFINE_INCLUDE_PATH"
32975_ACEOF
32976
32977
cristy3ed852e2009-09-05 21:47:34 +000032978
cristye52f12f2012-12-31 15:32:36 +000032979# Path to ImageMagick header files (arch part)
32980INCLUDEARCH_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}"
32981DEFINE_INCLUDEARCH_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}/"
32982case "${build_os}" in
32983 mingw* )
32984 DEFINE_INCLUDEARCH_PATH=`$WinPathScript "$DEFINE_INCLUDEARCH_PATH" 1`
32985 ;;
32986esac
32987
32988cat >>confdefs.h <<_ACEOF
32989#define INCLUDEARCH_PATH "$DEFINE_INCLUDE_PATH"
32990_ACEOF
32991
32992
32993
cristy3ed852e2009-09-05 21:47:34 +000032994# Subdirectory under lib to place ImageMagick lib files
32995LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
32996
32997cat >>confdefs.h <<_ACEOF
32998#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
32999_ACEOF
33000
33001
33002# Path to ImageMagick bin directory
33003EXECUTABLE_PATH="${BIN_DIR}"
33004DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
33005case "${build_os}" in
33006 mingw* )
33007 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
33008 ;;
33009esac
33010
33011cat >>confdefs.h <<_ACEOF
33012#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
33013_ACEOF
33014
33015
33016
33017# Path to ImageMagick lib
33018LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
33019DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
33020case "${build_os}" in
33021 mingw* )
33022 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
33023 ;;
33024esac
33025
33026cat >>confdefs.h <<_ACEOF
33027#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
33028_ACEOF
33029
33030
33031
cristy3ed852e2009-09-05 21:47:34 +000033032#
cristy8d0ff762013-03-10 20:33:28 +000033033# path to local binaries
33034if test "x$LIB_BIN_BASEDIRNAME" = "x"; then
33035 LIB_BIN_BASEDIRNAME="bin"
33036fi
33037
33038cat >>confdefs.h <<_ACEOF
33039#define LIB_BIN_BASEDIRNAME "$LIB_BIN_BASEDIRNAME"
33040_ACEOF
33041
33042
33043
33044if test "x$LIB_BIN_DIR" = "x"; then
33045 LIB_BIN_DIR=${LIB_BIN_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
33046fi
33047
33048
33049LIB_BIN_DIR_RELATIVE_PATH=$LIB_BIN_DIR
33050
33051LIB_BIN_DIR_PATH="${LIBRARY_PATH}/${LIB_BIN_DIR_RELATIVE_PATH}"
33052
33053
33054#
cristy01ff9f32012-12-01 18:15:29 +000033055# path to modules lib
33056if test "x$MODULES_BASEDIRNAME" = "x"; then
33057 MODULES_BASEDIRNAME="modules"
33058fi
cristy3ed852e2009-09-05 21:47:34 +000033059
33060cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000033061#define MODULES_BASEDIRNAME "$MODULES_BASEDIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000033062_ACEOF
33063
cristy01ff9f32012-12-01 18:15:29 +000033064
33065
33066if test "x$MODULES_DIRNAME" = "x"; then
cristy4bdbd342012-12-03 18:41:18 +000033067 MODULES_DIRNAME=${MODULES_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
33068else
cristy3ed852e2009-09-05 21:47:34 +000033069
33070cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000033071#define MODULES_DIRNAME "$MODULES_DIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000033072_ACEOF
33073
cristycf4a3c22012-12-02 21:47:25 +000033074fi
cristy01ff9f32012-12-01 18:15:29 +000033075
33076
cristy371d4812012-12-01 19:48:10 +000033077MODULES_RELATIVE_PATH="${MODULES_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000033078
33079MODULES_PATH="${LIBRARY_PATH}/${MODULES_RELATIVE_PATH}"
33080
33081
33082#
33083# path to coders lib
33084if test "x$CODER_DIRNAME" = "x"; then
33085 CODER_DIRNAME="coders"
33086fi
33087
33088cat >>confdefs.h <<_ACEOF
33089#define CODER_DIRNAME "$CODER_DIRNAME"
33090_ACEOF
33091
33092
33093
cristy371d4812012-12-01 19:48:10 +000033094CODER_RELATIVE_PATH="${CODER_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000033095CODER_PATH="${MODULES_PATH}/${CODER_DIRNAME}"
cristy3ed852e2009-09-05 21:47:34 +000033096
33097
33098#
33099# Subdirectory under lib to place ImageMagick filter module files
cristy01ff9f32012-12-01 18:15:29 +000033100#
33101# path to coders lib
33102if test "x$FILTER_DIRNAME" = "x"; then
33103 FILTER_DIRNAME="filters"
33104fi
cristy3ed852e2009-09-05 21:47:34 +000033105
33106cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000033107#define FILTER_DIRNAME "$FILTER_DIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000033108_ACEOF
33109
cristy3ed852e2009-09-05 21:47:34 +000033110
cristy3ed852e2009-09-05 21:47:34 +000033111
cristy371d4812012-12-01 19:48:10 +000033112FILTER_RELATIVE_PATH="${FILTER_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000033113FILTER_PATH="${MODULES_PATH}/${FILTER_DIRNAME}"
cristy3ed852e2009-09-05 21:47:34 +000033114
33115
33116#
33117# Path to ImageMagick documentation files
cristybdabdd62013-03-04 17:43:36 +000033118DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristyd55889c2011-03-27 00:50:24 +000033119DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}"
33120DEFINE_DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000033121case "${build_os}" in
33122 mingw* )
33123 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
33124 ;;
33125esac
33126
33127cat >>confdefs.h <<_ACEOF
33128#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
33129_ACEOF
33130
33131
33132
cristydd17feb2014-03-05 02:06:32 +000033133#
33134# Enable/Disable documentation
33135# Check whether --enable-docs was given.
33136if test "${enable_docs+set}" = set; then :
33137 enableval=$enable_docs; wantdocs=$enableval
33138else
cristy02272312014-03-07 00:55:25 +000033139 wantdocs=yes
cristydd17feb2014-03-05 02:06:32 +000033140fi
33141
cristy02272312014-03-07 00:55:25 +000033142 if test "$wantdocs" = "yes"; then
cristydd17feb2014-03-05 02:06:32 +000033143 INSTALL_DOC_TRUE=
33144 INSTALL_DOC_FALSE='#'
33145else
33146 INSTALL_DOC_TRUE='#'
33147 INSTALL_DOC_FALSE=
33148fi
33149
33150
cristy2a11bef2011-10-28 18:33:11 +000033151# Subdirectory to place architecture-dependent configuration files
cristybdabdd62013-03-04 17:43:36 +000033152CONFIGURE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristy45dbd322011-03-27 16:40:38 +000033153
33154cat >>confdefs.h <<_ACEOF
33155#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
33156_ACEOF
33157
cristy7def36a2011-10-28 19:04:41 +000033158CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
cristy45dbd322011-03-27 16:40:38 +000033159DEFINE_CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
33160case "${build_os}" in
33161 mingw* )
33162 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
33163 ;;
33164esac
33165
33166cat >>confdefs.h <<_ACEOF
33167#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
33168_ACEOF
33169
33170
33171
cristy2a11bef2011-10-28 18:33:11 +000033172# Subdirectory to place architecture-independent configuration files
cristybdabdd62013-03-04 17:43:36 +000033173SHARE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristy3ed852e2009-09-05 21:47:34 +000033174
33175cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000033176#define SHARE_RELATIVE_PATH "$SHARE_RELATIVE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000033177_ACEOF
33178
cristy670aa3c2011-11-03 00:54:00 +000033179SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
cristy4f820712011-04-01 12:35:43 +000033180DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000033181case "${build_os}" in
33182 mingw* )
cristy4f820712011-04-01 12:35:43 +000033183 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
cristy3ed852e2009-09-05 21:47:34 +000033184 ;;
33185esac
33186
33187cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000033188#define SHARE_PATH "$DEFINE_SHARE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000033189_ACEOF
33190
33191
33192
cristy54378032012-12-04 15:52:20 +000033193#
33194# Subdirectory to place architecture-dependent configuration files.
33195if test "x$SHAREARCH_BASEDIRNAME" = "x"; then
33196 SHAREARCH_BASEDIRNAME="config"
33197fi
cristy670aa3c2011-11-03 00:54:00 +000033198
33199cat >>confdefs.h <<_ACEOF
cristy54378032012-12-04 15:52:20 +000033200#define SHAREARCH_BASEDIRNAME "$SHAREARCH_BASEDIRNAME"
cristy670aa3c2011-11-03 00:54:00 +000033201_ACEOF
33202
cristy54378032012-12-04 15:52:20 +000033203
33204
33205if test "x$SHAREARCH_DIRNAME" = "x"; then
33206 SHAREARCH_DIRNAME=${SHAREARCH_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
33207else
cristy670aa3c2011-11-03 00:54:00 +000033208
33209cat >>confdefs.h <<_ACEOF
cristy54378032012-12-04 15:52:20 +000033210#define SHAREARCH_DIRNAME "$SHAREARCH_DIRNAME"
cristy670aa3c2011-11-03 00:54:00 +000033211_ACEOF
33212
cristy54378032012-12-04 15:52:20 +000033213fi
33214
33215
33216SHAREARCH_RELATIVE_PATH="${SHAREARCH_DIRNAME}"
33217
33218SHAREARCH_PATH="${LIBRARY_PATH}/${SHAREARCH_RELATIVE_PATH}"
cristy670aa3c2011-11-03 00:54:00 +000033219
33220
cristy3ed852e2009-09-05 21:47:34 +000033221#
33222# program_transform_name is formed for use in a Makefile, so create a
33223# modified version for use in a shell script.
33224configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
33225
33226# Default delegate definitions
cristyad38abe2012-12-23 23:03:21 +000033227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
33228$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000033229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000033230$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000033231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
33232$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000033233AutotraceDecodeDelegateDefault='autotrace'
cristy16b412d2014-12-15 11:09:48 +000033234BPGDecodeDelegateDefault='bpgdec'
33235BPGEncodeDelegateDefault='bpgenc'
cristy3d7f8062009-09-24 20:45:35 +000033236BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000033237BZIPDelegateDefault='bzip2'
33238BrowseDelegateDefault='xdg-open'
cristy3ed852e2009-09-05 21:47:34 +000033239CatDelegateDefault='cat'
33240DNGDecodeDelegateDefault='ufraw-batch'
cristy66f238e2014-05-16 12:21:48 +000033241DOCDecodeDelegateDefault='soffice'
cristy3ed852e2009-09-05 21:47:34 +000033242GVCDecodeDelegateDefault='dot'
33243DVIDecodeDelegateDefault='dvips'
33244EchoDelegateDefault='echo'
33245EditorDelegateDefault='xterm'
cristy3ed852e2009-09-05 21:47:34 +000033246ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
33247DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
33248MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
33249GnuplotDecodeDelegateDefault='gnuplot'
cristy3ed852e2009-09-05 21:47:34 +000033250HPGLDecodeDelegateDefault='hp2xx'
33251HTMLDecodeDelegateDefault='html2ps'
33252ILBMDecodeDelegateDefault='ilbmtoppm'
33253ILBMEncodeDelegateDefault='ppmtoilbm'
cristy71f53d52013-04-27 13:33:59 +000033254JXRDecodeDelegateDefault='JxrDecApp'
33255JXREncodeDelegateDefault='JxrEncApp'
cristy3ed852e2009-09-05 21:47:34 +000033256LPDelegateDefault='lp'
33257LPRDelegateDefault='lpr'
cristy3ed852e2009-09-05 21:47:34 +000033258LaunchDelegateDefault='gimp'
33259MANDelegateDefault='groff'
cristy81ab5af2013-10-06 18:28:39 +000033260MPEGDecodeDelegateDefault='avconv'
33261MPEGEncodeDelegateDefault='avconv'
cristy935c86e2010-06-05 23:50:07 +000033262MrSIDDecodeDelegateDefault='mrsidgeodecode'
cristy3ed852e2009-09-05 21:47:34 +000033263MVDelegateDefault='mv'
33264PCLDelegateDefault='pcl6'
33265PGPDecodeDelegateDefault='pgpv'
33266POVDelegateDefault='povray'
33267if test "$native_win32_build" = 'yes'; then
33268 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000033269elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000033270 PSDelegateDefault='gsc'
33271else
33272 PSDelegateDefault='gs'
33273fi
33274RLEEncodeDelegateDefault='rawtorle'
33275RMDelegateDefault='rm'
cristy5281e322012-02-09 21:12:45 +000033276RSVGDecodeDelegateDefault='rsvg-convert'
cristy3ed852e2009-09-05 21:47:34 +000033277SCANDecodeDelegateDefault='scanimage'
cristyec6934f2012-08-14 18:38:40 +000033278SVGDecodeDelegateDefault='inkscape'
cristy3ed852e2009-09-05 21:47:34 +000033279TXTDelegateDefault='enscript'
cristy16db5ed2010-07-29 13:32:02 +000033280UniconvertorDelegateDefault='uniconvertor'
cristy86e86092013-08-04 17:43:57 +000033281WebPDecodeDelegateDefault='dwebp'
33282WebPEncodeDelegateDefault='cwebp'
cristy3ed852e2009-09-05 21:47:34 +000033283WMFDecodeDelegateDefault='wmf2eps'
33284WWWDecodeDelegateDefault='curl'
33285XPSDelegateDefault='gxps'
33286ZipDelegateDefault='gzip'
33287
33288# Search for delegates
33289# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
33290set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033292$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033293if ${ac_cv_path_AutotraceDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033294 $as_echo_n "(cached) " >&6
33295else
33296 case $AutotraceDecodeDelegate in
33297 [\\/]* | ?:[\\/]*)
33298 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
33299 ;;
33300 *)
33301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33302for as_dir in $PATH
33303do
33304 IFS=$as_save_IFS
33305 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033306 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033307 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033308 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033310 break 2
33311 fi
33312done
cristy8b350f62009-11-15 23:12:43 +000033313 done
cristy3ed852e2009-09-05 21:47:34 +000033314IFS=$as_save_IFS
33315
33316 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
33317 ;;
33318esac
33319fi
33320AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
33321if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033323$as_echo "$AutotraceDecodeDelegate" >&6; }
33324else
cristy8b350f62009-11-15 23:12:43 +000033325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033326$as_echo "no" >&6; }
33327fi
33328
33329
cristy16b412d2014-12-15 11:09:48 +000033330# Extract the first word of ""$BGPDecodeDelegateDefault"", so it can be a program name with args.
33331set dummy "$BGPDecodeDelegateDefault"; ac_word=$2
33332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33333$as_echo_n "checking for $ac_word... " >&6; }
33334if ${ac_cv_path_BGPDecodeDelegate+:} false; then :
33335 $as_echo_n "(cached) " >&6
33336else
33337 case $BGPDecodeDelegate in
33338 [\\/]* | ?:[\\/]*)
33339 ac_cv_path_BGPDecodeDelegate="$BGPDecodeDelegate" # Let the user override the test with a path.
33340 ;;
33341 *)
33342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33343for as_dir in $PATH
33344do
33345 IFS=$as_save_IFS
33346 test -z "$as_dir" && as_dir=.
33347 for ac_exec_ext in '' $ac_executable_extensions; do
33348 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33349 ac_cv_path_BGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33351 break 2
33352 fi
33353done
33354 done
33355IFS=$as_save_IFS
33356
33357 test -z "$ac_cv_path_BGPDecodeDelegate" && ac_cv_path_BGPDecodeDelegate=""$BGPDecodeDelegateDefault""
33358 ;;
33359esac
33360fi
33361BGPDecodeDelegate=$ac_cv_path_BGPDecodeDelegate
33362if test -n "$BGPDecodeDelegate"; then
33363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BGPDecodeDelegate" >&5
33364$as_echo "$BGPDecodeDelegate" >&6; }
33365else
33366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33367$as_echo "no" >&6; }
33368fi
33369
33370
33371# Extract the first word of ""$BGPEncodeDelegateDefault"", so it can be a program name with args.
33372set dummy "$BGPEncodeDelegateDefault"; ac_word=$2
33373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33374$as_echo_n "checking for $ac_word... " >&6; }
33375if ${ac_cv_path_BGPEncodeDelegate+:} false; then :
33376 $as_echo_n "(cached) " >&6
33377else
33378 case $BGPEncodeDelegate in
33379 [\\/]* | ?:[\\/]*)
33380 ac_cv_path_BGPEncodeDelegate="$BGPEncodeDelegate" # Let the user override the test with a path.
33381 ;;
33382 *)
33383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33384for as_dir in $PATH
33385do
33386 IFS=$as_save_IFS
33387 test -z "$as_dir" && as_dir=.
33388 for ac_exec_ext in '' $ac_executable_extensions; do
33389 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33390 ac_cv_path_BGPEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33392 break 2
33393 fi
33394done
33395 done
33396IFS=$as_save_IFS
33397
33398 test -z "$ac_cv_path_BGPEncodeDelegate" && ac_cv_path_BGPEncodeDelegate=""$BGPEncodeDelegateDefault""
33399 ;;
33400esac
33401fi
33402BGPEncodeDelegate=$ac_cv_path_BGPEncodeDelegate
33403if test -n "$BGPEncodeDelegate"; then
33404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BGPEncodeDelegate" >&5
33405$as_echo "$BGPEncodeDelegate" >&6; }
33406else
33407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33408$as_echo "no" >&6; }
33409fi
33410
33411
cristy3ed852e2009-09-05 21:47:34 +000033412# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
33413set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033415$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033416if ${ac_cv_path_BlenderDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033417 $as_echo_n "(cached) " >&6
33418else
33419 case $BlenderDecodeDelegate in
33420 [\\/]* | ?:[\\/]*)
33421 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
33422 ;;
33423 *)
33424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33425for as_dir in $PATH
33426do
33427 IFS=$as_save_IFS
33428 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033429 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033430 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033431 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033433 break 2
33434 fi
33435done
cristy8b350f62009-11-15 23:12:43 +000033436 done
cristy3ed852e2009-09-05 21:47:34 +000033437IFS=$as_save_IFS
33438
33439 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
33440 ;;
33441esac
33442fi
33443BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
33444if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033446$as_echo "$BlenderDecodeDelegate" >&6; }
33447else
cristy8b350f62009-11-15 23:12:43 +000033448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033449$as_echo "no" >&6; }
33450fi
33451
33452
33453# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
33454set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033456$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033457if ${ac_cv_path_BZIPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033458 $as_echo_n "(cached) " >&6
33459else
33460 case $BZIPDelegate in
33461 [\\/]* | ?:[\\/]*)
33462 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
33463 ;;
33464 *)
33465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33466for as_dir in $PATH
33467do
33468 IFS=$as_save_IFS
33469 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033470 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033472 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033474 break 2
33475 fi
33476done
cristy8b350f62009-11-15 23:12:43 +000033477 done
cristy3ed852e2009-09-05 21:47:34 +000033478IFS=$as_save_IFS
33479
33480 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
33481 ;;
33482esac
33483fi
33484BZIPDelegate=$ac_cv_path_BZIPDelegate
33485if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033487$as_echo "$BZIPDelegate" >&6; }
33488else
cristy8b350f62009-11-15 23:12:43 +000033489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033490$as_echo "no" >&6; }
33491fi
33492
33493
cristyc59f0e72012-08-27 12:59:33 +000033494for ac_prog in "$BrowseDelegateDefault" google-chrome firefox konqueror mozilla lynx
33495do
33496 # Extract the first word of "$ac_prog", so it can be a program name with args.
33497set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033499$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033500if ${ac_cv_path_BrowseDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033501 $as_echo_n "(cached) " >&6
33502else
33503 case $BrowseDelegate in
33504 [\\/]* | ?:[\\/]*)
33505 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
33506 ;;
33507 *)
33508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33509for as_dir in $PATH
33510do
33511 IFS=$as_save_IFS
33512 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033513 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033514 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033515 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033517 break 2
33518 fi
33519done
cristy8b350f62009-11-15 23:12:43 +000033520 done
cristy3ed852e2009-09-05 21:47:34 +000033521IFS=$as_save_IFS
33522
cristy3ed852e2009-09-05 21:47:34 +000033523 ;;
33524esac
33525fi
33526BrowseDelegate=$ac_cv_path_BrowseDelegate
33527if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033529$as_echo "$BrowseDelegate" >&6; }
33530else
cristy8b350f62009-11-15 23:12:43 +000033531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033532$as_echo "no" >&6; }
33533fi
33534
33535
cristyc59f0e72012-08-27 12:59:33 +000033536 test -n "$BrowseDelegate" && break
33537done
33538test -n "$BrowseDelegate" || BrowseDelegate=""$BrowseDelegateDefault""
33539
cristy3ed852e2009-09-05 21:47:34 +000033540# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
33541set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033543$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033544if ${ac_cv_path_CatDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033545 $as_echo_n "(cached) " >&6
33546else
33547 case $CatDelegate in
33548 [\\/]* | ?:[\\/]*)
33549 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
33550 ;;
33551 *)
33552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33553for as_dir in $PATH
33554do
33555 IFS=$as_save_IFS
33556 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033557 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033558 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033559 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033561 break 2
33562 fi
33563done
cristy8b350f62009-11-15 23:12:43 +000033564 done
cristy3ed852e2009-09-05 21:47:34 +000033565IFS=$as_save_IFS
33566
33567 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
33568 ;;
33569esac
33570fi
33571CatDelegate=$ac_cv_path_CatDelegate
33572if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033574$as_echo "$CatDelegate" >&6; }
33575else
cristy8b350f62009-11-15 23:12:43 +000033576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033577$as_echo "no" >&6; }
33578fi
33579
33580
33581# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
33582set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033584$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033585if ${ac_cv_path_DNGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033586 $as_echo_n "(cached) " >&6
33587else
33588 case $DNGDecodeDelegate in
33589 [\\/]* | ?:[\\/]*)
33590 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
33591 ;;
33592 *)
33593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33594for as_dir in $PATH
33595do
33596 IFS=$as_save_IFS
33597 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033598 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033599 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033600 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033602 break 2
33603 fi
33604done
cristy8b350f62009-11-15 23:12:43 +000033605 done
cristy3ed852e2009-09-05 21:47:34 +000033606IFS=$as_save_IFS
33607
33608 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
33609 ;;
33610esac
33611fi
33612DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
33613if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033615$as_echo "$DNGDecodeDelegate" >&6; }
33616else
cristy8b350f62009-11-15 23:12:43 +000033617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033618$as_echo "no" >&6; }
33619fi
33620
33621
cristy66f238e2014-05-16 12:21:48 +000033622# Extract the first word of ""$DOCDecodeDelegateDefault"", so it can be a program name with args.
33623set dummy "$DOCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033625$as_echo_n "checking for $ac_word... " >&6; }
cristy66f238e2014-05-16 12:21:48 +000033626if ${ac_cv_path_DOCDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033627 $as_echo_n "(cached) " >&6
33628else
cristy66f238e2014-05-16 12:21:48 +000033629 case $DOCDecodeDelegate in
cristy3ed852e2009-09-05 21:47:34 +000033630 [\\/]* | ?:[\\/]*)
cristy66f238e2014-05-16 12:21:48 +000033631 ac_cv_path_DOCDecodeDelegate="$DOCDecodeDelegate" # Let the user override the test with a path.
cristy3ed852e2009-09-05 21:47:34 +000033632 ;;
33633 *)
33634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33635for as_dir in $PATH
33636do
33637 IFS=$as_save_IFS
33638 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033639 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033640 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy66f238e2014-05-16 12:21:48 +000033641 ac_cv_path_DOCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033643 break 2
33644 fi
33645done
cristy8b350f62009-11-15 23:12:43 +000033646 done
cristy3ed852e2009-09-05 21:47:34 +000033647IFS=$as_save_IFS
33648
cristy66f238e2014-05-16 12:21:48 +000033649 test -z "$ac_cv_path_DOCDecodeDelegate" && ac_cv_path_DOCDecodeDelegate=""$DOCDecodeDelegateDefault""
cristy3ed852e2009-09-05 21:47:34 +000033650 ;;
33651esac
33652fi
cristy66f238e2014-05-16 12:21:48 +000033653DOCDecodeDelegate=$ac_cv_path_DOCDecodeDelegate
33654if test -n "$DOCDecodeDelegate"; then
33655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOCDecodeDelegate" >&5
33656$as_echo "$DOCDecodeDelegate" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000033657else
cristy8b350f62009-11-15 23:12:43 +000033658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033659$as_echo "no" >&6; }
33660fi
33661
33662
33663# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
33664set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033666$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033667if ${ac_cv_path_DVIDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033668 $as_echo_n "(cached) " >&6
33669else
33670 case $DVIDecodeDelegate in
33671 [\\/]* | ?:[\\/]*)
33672 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
33673 ;;
33674 *)
33675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33676for as_dir in $PATH
33677do
33678 IFS=$as_save_IFS
33679 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033680 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033681 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033682 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033684 break 2
33685 fi
33686done
cristy8b350f62009-11-15 23:12:43 +000033687 done
cristy3ed852e2009-09-05 21:47:34 +000033688IFS=$as_save_IFS
33689
33690 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
33691 ;;
33692esac
33693fi
33694DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
33695if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033697$as_echo "$DVIDecodeDelegate" >&6; }
33698else
cristy8b350f62009-11-15 23:12:43 +000033699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033700$as_echo "no" >&6; }
33701fi
33702
33703
cristy3ed852e2009-09-05 21:47:34 +000033704# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
33705set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033707$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033708if ${ac_cv_path_ConvertDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033709 $as_echo_n "(cached) " >&6
33710else
33711 case $ConvertDelegate in
33712 [\\/]* | ?:[\\/]*)
33713 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
33714 ;;
33715 *)
33716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33717for as_dir in $PATH
33718do
33719 IFS=$as_save_IFS
33720 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033721 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033722 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033723 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033725 break 2
33726 fi
33727done
cristy8b350f62009-11-15 23:12:43 +000033728 done
cristy3ed852e2009-09-05 21:47:34 +000033729IFS=$as_save_IFS
33730
33731 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
33732 ;;
33733esac
33734fi
33735ConvertDelegate=$ac_cv_path_ConvertDelegate
33736if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033738$as_echo "$ConvertDelegate" >&6; }
33739else
cristy8b350f62009-11-15 23:12:43 +000033740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033741$as_echo "no" >&6; }
33742fi
33743
33744
33745# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
33746set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033748$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033749if ${ac_cv_path_DisplayDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033750 $as_echo_n "(cached) " >&6
33751else
33752 case $DisplayDelegate in
33753 [\\/]* | ?:[\\/]*)
33754 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
33755 ;;
33756 *)
33757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33758for as_dir in $PATH
33759do
33760 IFS=$as_save_IFS
33761 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033762 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033763 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033764 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033766 break 2
33767 fi
33768done
cristy8b350f62009-11-15 23:12:43 +000033769 done
cristy3ed852e2009-09-05 21:47:34 +000033770IFS=$as_save_IFS
33771
33772 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
33773 ;;
33774esac
33775fi
33776DisplayDelegate=$ac_cv_path_DisplayDelegate
33777if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033779$as_echo "$DisplayDelegate" >&6; }
33780else
cristy8b350f62009-11-15 23:12:43 +000033781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033782$as_echo "no" >&6; }
33783fi
33784
33785
cristy66f238e2014-05-16 12:21:48 +000033786# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
33787set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033789$as_echo_n "checking for $ac_word... " >&6; }
cristy66f238e2014-05-16 12:21:48 +000033790if ${ac_cv_path_EchoDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033791 $as_echo_n "(cached) " >&6
33792else
cristy66f238e2014-05-16 12:21:48 +000033793 case $EchoDelegate in
cristy3ed852e2009-09-05 21:47:34 +000033794 [\\/]* | ?:[\\/]*)
cristy66f238e2014-05-16 12:21:48 +000033795 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
cristy3ed852e2009-09-05 21:47:34 +000033796 ;;
33797 *)
33798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33799for as_dir in $PATH
33800do
33801 IFS=$as_save_IFS
33802 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033803 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033804 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy66f238e2014-05-16 12:21:48 +000033805 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033807 break 2
33808 fi
33809done
cristy8b350f62009-11-15 23:12:43 +000033810 done
cristy3ed852e2009-09-05 21:47:34 +000033811IFS=$as_save_IFS
33812
cristy66f238e2014-05-16 12:21:48 +000033813 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
cristy3ed852e2009-09-05 21:47:34 +000033814 ;;
33815esac
33816fi
cristy66f238e2014-05-16 12:21:48 +000033817EchoDelegate=$ac_cv_path_EchoDelegate
33818if test -n "$EchoDelegate"; then
33819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
33820$as_echo "$EchoDelegate" >&6; }
33821else
33822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33823$as_echo "no" >&6; }
33824fi
33825
33826
33827# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
33828set dummy "$EditorDelegateDefault"; ac_word=$2
33829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33830$as_echo_n "checking for $ac_word... " >&6; }
33831if ${ac_cv_path_EditorDelegate+:} false; then :
33832 $as_echo_n "(cached) " >&6
33833else
33834 case $EditorDelegate in
33835 [\\/]* | ?:[\\/]*)
33836 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
33837 ;;
33838 *)
33839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33840for as_dir in $PATH
33841do
33842 IFS=$as_save_IFS
33843 test -z "$as_dir" && as_dir=.
33844 for ac_exec_ext in '' $ac_executable_extensions; do
33845 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33846 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
33847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33848 break 2
33849 fi
33850done
33851 done
33852IFS=$as_save_IFS
33853
33854 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
33855 ;;
33856esac
33857fi
33858EditorDelegate=$ac_cv_path_EditorDelegate
33859if test -n "$EditorDelegate"; then
33860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
33861$as_echo "$EditorDelegate" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000033862else
cristy8b350f62009-11-15 23:12:43 +000033863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033864$as_echo "no" >&6; }
33865fi
33866
33867
33868# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
33869set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033871$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033872if ${ac_cv_path_GnuplotDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033873 $as_echo_n "(cached) " >&6
33874else
33875 case $GnuplotDecodeDelegate in
33876 [\\/]* | ?:[\\/]*)
33877 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
33878 ;;
33879 *)
33880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33881for as_dir in $PATH
33882do
33883 IFS=$as_save_IFS
33884 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033885 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033886 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033887 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033889 break 2
33890 fi
33891done
cristy8b350f62009-11-15 23:12:43 +000033892 done
cristy3ed852e2009-09-05 21:47:34 +000033893IFS=$as_save_IFS
33894
33895 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
33896 ;;
33897esac
33898fi
33899GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
33900if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033902$as_echo "$GnuplotDecodeDelegate" >&6; }
33903else
cristy8b350f62009-11-15 23:12:43 +000033904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033905$as_echo "no" >&6; }
33906fi
33907
33908
cristy66f238e2014-05-16 12:21:48 +000033909# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
33910set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
33911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33912$as_echo_n "checking for $ac_word... " >&6; }
33913if ${ac_cv_path_GVCDecodeDelegate+:} false; then :
33914 $as_echo_n "(cached) " >&6
33915else
33916 case $GVCDecodeDelegate in
33917 [\\/]* | ?:[\\/]*)
33918 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
33919 ;;
33920 *)
33921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33922for as_dir in $PATH
33923do
33924 IFS=$as_save_IFS
33925 test -z "$as_dir" && as_dir=.
33926 for ac_exec_ext in '' $ac_executable_extensions; do
33927 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33928 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33930 break 2
33931 fi
33932done
33933 done
33934IFS=$as_save_IFS
33935
33936 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
33937 ;;
33938esac
33939fi
33940GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
33941if test -n "$GVCDecodeDelegate"; then
33942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
33943$as_echo "$GVCDecodeDelegate" >&6; }
33944else
33945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33946$as_echo "no" >&6; }
33947fi
33948
33949
cristy3ed852e2009-09-05 21:47:34 +000033950# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
33951set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033953$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033954if ${ac_cv_path_HPGLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033955 $as_echo_n "(cached) " >&6
33956else
33957 case $HPGLDecodeDelegate in
33958 [\\/]* | ?:[\\/]*)
33959 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
33960 ;;
33961 *)
33962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33963for as_dir in $PATH
33964do
33965 IFS=$as_save_IFS
33966 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033967 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033968 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033969 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033971 break 2
33972 fi
33973done
cristy8b350f62009-11-15 23:12:43 +000033974 done
cristy3ed852e2009-09-05 21:47:34 +000033975IFS=$as_save_IFS
33976
33977 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
33978 ;;
33979esac
33980fi
33981HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
33982if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033984$as_echo "$HPGLDecodeDelegate" >&6; }
33985else
cristy8b350f62009-11-15 23:12:43 +000033986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033987$as_echo "no" >&6; }
33988fi
33989
33990
33991# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
33992set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033994$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033995if ${ac_cv_path_HTMLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033996 $as_echo_n "(cached) " >&6
33997else
33998 case $HTMLDecodeDelegate in
33999 [\\/]* | ?:[\\/]*)
34000 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
34001 ;;
34002 *)
34003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34004for as_dir in $PATH
34005do
34006 IFS=$as_save_IFS
34007 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034008 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034009 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034010 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034012 break 2
34013 fi
34014done
cristy8b350f62009-11-15 23:12:43 +000034015 done
cristy3ed852e2009-09-05 21:47:34 +000034016IFS=$as_save_IFS
34017
34018 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
34019 ;;
34020esac
34021fi
34022HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
34023if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034025$as_echo "$HTMLDecodeDelegate" >&6; }
34026else
cristy8b350f62009-11-15 23:12:43 +000034027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034028$as_echo "no" >&6; }
34029fi
34030
34031
34032# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
34033set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034035$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034036if ${ac_cv_path_ILBMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034037 $as_echo_n "(cached) " >&6
34038else
34039 case $ILBMDecodeDelegate in
34040 [\\/]* | ?:[\\/]*)
34041 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
34042 ;;
34043 *)
34044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34045for as_dir in $PATH
34046do
34047 IFS=$as_save_IFS
34048 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034049 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034050 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034051 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034053 break 2
34054 fi
34055done
cristy8b350f62009-11-15 23:12:43 +000034056 done
cristy3ed852e2009-09-05 21:47:34 +000034057IFS=$as_save_IFS
34058
34059 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
34060 ;;
34061esac
34062fi
34063ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
34064if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034066$as_echo "$ILBMDecodeDelegate" >&6; }
34067else
cristy8b350f62009-11-15 23:12:43 +000034068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034069$as_echo "no" >&6; }
34070fi
34071
34072
34073# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
34074set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034076$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034077if ${ac_cv_path_ILBMEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034078 $as_echo_n "(cached) " >&6
34079else
34080 case $ILBMEncodeDelegate in
34081 [\\/]* | ?:[\\/]*)
34082 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
34083 ;;
34084 *)
34085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34086for as_dir in $PATH
34087do
34088 IFS=$as_save_IFS
34089 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034090 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034092 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034094 break 2
34095 fi
34096done
cristy8b350f62009-11-15 23:12:43 +000034097 done
cristy3ed852e2009-09-05 21:47:34 +000034098IFS=$as_save_IFS
34099
34100 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
34101 ;;
34102esac
34103fi
34104ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
34105if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034107$as_echo "$ILBMEncodeDelegate" >&6; }
34108else
cristy8b350f62009-11-15 23:12:43 +000034109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034110$as_echo "no" >&6; }
34111fi
34112
34113
cristy71f53d52013-04-27 13:33:59 +000034114# Extract the first word of ""$JXRDecodeDelegateDefault"", so it can be a program name with args.
34115set dummy "$JXRDecodeDelegateDefault"; ac_word=$2
34116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34117$as_echo_n "checking for $ac_word... " >&6; }
34118if ${ac_cv_path_JXRDecodeDelegate+:} false; then :
34119 $as_echo_n "(cached) " >&6
34120else
34121 case $JXRDecodeDelegate in
34122 [\\/]* | ?:[\\/]*)
34123 ac_cv_path_JXRDecodeDelegate="$JXRDecodeDelegate" # Let the user override the test with a path.
34124 ;;
34125 *)
34126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34127for as_dir in $PATH
34128do
34129 IFS=$as_save_IFS
34130 test -z "$as_dir" && as_dir=.
34131 for ac_exec_ext in '' $ac_executable_extensions; do
34132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34133 ac_cv_path_JXRDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34135 break 2
34136 fi
34137done
34138 done
34139IFS=$as_save_IFS
34140
34141 test -z "$ac_cv_path_JXRDecodeDelegate" && ac_cv_path_JXRDecodeDelegate=""$JXRDecodeDelegateDefault""
34142 ;;
34143esac
34144fi
34145JXRDecodeDelegate=$ac_cv_path_JXRDecodeDelegate
34146if test -n "$JXRDecodeDelegate"; then
34147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JXRDecodeDelegate" >&5
34148$as_echo "$JXRDecodeDelegate" >&6; }
34149else
34150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34151$as_echo "no" >&6; }
34152fi
34153
34154
34155# Extract the first word of ""$JXREncodeDelegateDefault"", so it can be a program name with args.
34156set dummy "$JXREncodeDelegateDefault"; ac_word=$2
34157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34158$as_echo_n "checking for $ac_word... " >&6; }
34159if ${ac_cv_path_JXREncodeDelegate+:} false; then :
34160 $as_echo_n "(cached) " >&6
34161else
34162 case $JXREncodeDelegate in
34163 [\\/]* | ?:[\\/]*)
34164 ac_cv_path_JXREncodeDelegate="$JXREncodeDelegate" # Let the user override the test with a path.
34165 ;;
34166 *)
34167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34168for as_dir in $PATH
34169do
34170 IFS=$as_save_IFS
34171 test -z "$as_dir" && as_dir=.
34172 for ac_exec_ext in '' $ac_executable_extensions; do
34173 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34174 ac_cv_path_JXREncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34176 break 2
34177 fi
34178done
34179 done
34180IFS=$as_save_IFS
34181
34182 test -z "$ac_cv_path_JXREncodeDelegate" && ac_cv_path_JXREncodeDelegate=""$JXREncodeDelegateDefault""
34183 ;;
34184esac
34185fi
34186JXREncodeDelegate=$ac_cv_path_JXREncodeDelegate
34187if test -n "$JXREncodeDelegate"; then
34188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JXREncodeDelegate" >&5
34189$as_echo "$JXREncodeDelegate" >&6; }
34190else
34191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34192$as_echo "no" >&6; }
34193fi
34194
34195
cristy3ed852e2009-09-05 21:47:34 +000034196# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
34197set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034199$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034200if ${ac_cv_path_LPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034201 $as_echo_n "(cached) " >&6
34202else
34203 case $LPDelegate in
34204 [\\/]* | ?:[\\/]*)
34205 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
34206 ;;
34207 *)
34208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34209for as_dir in $PATH
34210do
34211 IFS=$as_save_IFS
34212 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034213 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034214 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034215 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034217 break 2
34218 fi
34219done
cristy8b350f62009-11-15 23:12:43 +000034220 done
cristy3ed852e2009-09-05 21:47:34 +000034221IFS=$as_save_IFS
34222
34223 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
34224 ;;
34225esac
34226fi
34227LPDelegate=$ac_cv_path_LPDelegate
34228if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034230$as_echo "$LPDelegate" >&6; }
34231else
cristy8b350f62009-11-15 23:12:43 +000034232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034233$as_echo "no" >&6; }
34234fi
34235
34236
34237# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
34238set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034240$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034241if ${ac_cv_path_LPRDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034242 $as_echo_n "(cached) " >&6
34243else
34244 case $LPRDelegate in
34245 [\\/]* | ?:[\\/]*)
34246 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
34247 ;;
34248 *)
34249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34250for as_dir in $PATH
34251do
34252 IFS=$as_save_IFS
34253 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034254 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034255 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034256 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034258 break 2
34259 fi
34260done
cristy8b350f62009-11-15 23:12:43 +000034261 done
cristy3ed852e2009-09-05 21:47:34 +000034262IFS=$as_save_IFS
34263
34264 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
34265 ;;
34266esac
34267fi
34268LPRDelegate=$ac_cv_path_LPRDelegate
34269if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034271$as_echo "$LPRDelegate" >&6; }
34272else
cristy8b350f62009-11-15 23:12:43 +000034273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034274$as_echo "no" >&6; }
34275fi
34276
34277
cristy3ed852e2009-09-05 21:47:34 +000034278# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
34279set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034281$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034282if ${ac_cv_path_LaunchDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034283 $as_echo_n "(cached) " >&6
34284else
34285 case $LaunchDelegate in
34286 [\\/]* | ?:[\\/]*)
34287 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
34288 ;;
34289 *)
34290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34291for as_dir in $PATH
34292do
34293 IFS=$as_save_IFS
34294 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034295 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034296 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034297 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034299 break 2
34300 fi
34301done
cristy8b350f62009-11-15 23:12:43 +000034302 done
cristy3ed852e2009-09-05 21:47:34 +000034303IFS=$as_save_IFS
34304
34305 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
34306 ;;
34307esac
34308fi
34309LaunchDelegate=$ac_cv_path_LaunchDelegate
34310if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034312$as_echo "$LaunchDelegate" >&6; }
34313else
cristy8b350f62009-11-15 23:12:43 +000034314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034315$as_echo "no" >&6; }
34316fi
34317
34318
34319# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
34320set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034322$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034323if ${ac_cv_path_MANDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034324 $as_echo_n "(cached) " >&6
34325else
34326 case $MANDelegate in
34327 [\\/]* | ?:[\\/]*)
34328 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
34329 ;;
34330 *)
34331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34332for as_dir in $PATH
34333do
34334 IFS=$as_save_IFS
34335 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034336 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034337 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034338 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034340 break 2
34341 fi
34342done
cristy8b350f62009-11-15 23:12:43 +000034343 done
cristy3ed852e2009-09-05 21:47:34 +000034344IFS=$as_save_IFS
34345
34346 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
34347 ;;
34348esac
34349fi
34350MANDelegate=$ac_cv_path_MANDelegate
34351if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034353$as_echo "$MANDelegate" >&6; }
34354else
cristy8b350f62009-11-15 23:12:43 +000034355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034356$as_echo "no" >&6; }
34357fi
34358
34359
cristy66f238e2014-05-16 12:21:48 +000034360# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
34361set dummy "$MogrifyDelegateDefault"; ac_word=$2
34362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34363$as_echo_n "checking for $ac_word... " >&6; }
34364if ${ac_cv_path_MogrifyDelegate+:} false; then :
34365 $as_echo_n "(cached) " >&6
34366else
34367 case $MogrifyDelegate in
34368 [\\/]* | ?:[\\/]*)
34369 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
34370 ;;
34371 *)
34372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34373for as_dir in $PATH
34374do
34375 IFS=$as_save_IFS
34376 test -z "$as_dir" && as_dir=.
34377 for ac_exec_ext in '' $ac_executable_extensions; do
34378 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34379 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
34380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34381 break 2
34382 fi
34383done
34384 done
34385IFS=$as_save_IFS
34386
34387 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
34388 ;;
34389esac
34390fi
34391MogrifyDelegate=$ac_cv_path_MogrifyDelegate
34392if test -n "$MogrifyDelegate"; then
34393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
34394$as_echo "$MogrifyDelegate" >&6; }
34395else
34396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34397$as_echo "no" >&6; }
34398fi
34399
34400
cristy3ed852e2009-09-05 21:47:34 +000034401# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
34402set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034404$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034405if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034406 $as_echo_n "(cached) " >&6
34407else
34408 case $MPEGDecodeDelegate in
34409 [\\/]* | ?:[\\/]*)
34410 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
34411 ;;
34412 *)
34413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34414for as_dir in $PATH
34415do
34416 IFS=$as_save_IFS
34417 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034418 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034419 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034420 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034422 break 2
34423 fi
34424done
cristy8b350f62009-11-15 23:12:43 +000034425 done
cristy3ed852e2009-09-05 21:47:34 +000034426IFS=$as_save_IFS
34427
34428 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
34429 ;;
34430esac
34431fi
34432MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
34433if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034435$as_echo "$MPEGDecodeDelegate" >&6; }
34436else
cristy8b350f62009-11-15 23:12:43 +000034437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034438$as_echo "no" >&6; }
34439fi
34440
34441
cristy058d15f2014-08-21 18:53:03 +000034442if test "$MPEGDecodeDelegate" = "$MPEGDecodeDelegateDefault" ; then
cristy81ab5af2013-10-06 18:28:39 +000034443 MPEGDecodeDelegateDefault='ffmpeg'
34444 # Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
34445set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
34446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34447$as_echo_n "checking for $ac_word... " >&6; }
34448if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
34449 $as_echo_n "(cached) " >&6
34450else
34451 case $MPEGDecodeDelegate in
34452 [\\/]* | ?:[\\/]*)
34453 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
34454 ;;
34455 *)
34456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34457for as_dir in $PATH
34458do
34459 IFS=$as_save_IFS
34460 test -z "$as_dir" && as_dir=.
34461 for ac_exec_ext in '' $ac_executable_extensions; do
34462 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34463 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34465 break 2
34466 fi
34467done
34468 done
34469IFS=$as_save_IFS
34470
34471 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
34472 ;;
34473esac
34474fi
34475MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
34476if test -n "$MPEGDecodeDelegate"; then
34477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
34478$as_echo "$MPEGDecodeDelegate" >&6; }
34479else
34480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34481$as_echo "no" >&6; }
34482fi
34483
34484
34485fi;
cristy3ed852e2009-09-05 21:47:34 +000034486# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
34487set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034489$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034490if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034491 $as_echo_n "(cached) " >&6
34492else
34493 case $MPEGEncodeDelegate in
34494 [\\/]* | ?:[\\/]*)
34495 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
34496 ;;
34497 *)
34498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34499for as_dir in $PATH
34500do
34501 IFS=$as_save_IFS
34502 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034503 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034504 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034505 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034507 break 2
34508 fi
34509done
cristy8b350f62009-11-15 23:12:43 +000034510 done
cristy3ed852e2009-09-05 21:47:34 +000034511IFS=$as_save_IFS
34512
34513 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
34514 ;;
34515esac
34516fi
34517MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
34518if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034520$as_echo "$MPEGEncodeDelegate" >&6; }
34521else
cristy8b350f62009-11-15 23:12:43 +000034522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034523$as_echo "no" >&6; }
34524fi
34525
34526
cristy058d15f2014-08-21 18:53:03 +000034527if test "$MPEGEncodeDelegate" = "$MPEGEncodeDelegateDefault" ; then
cristy81ab5af2013-10-06 18:28:39 +000034528 MPEGEncodeDelegateDefault='ffmpeg'
34529 # Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
34530set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
34531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34532$as_echo_n "checking for $ac_word... " >&6; }
34533if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
34534 $as_echo_n "(cached) " >&6
34535else
34536 case $MPEGEncodeDelegate in
34537 [\\/]* | ?:[\\/]*)
34538 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
34539 ;;
34540 *)
34541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34542for as_dir in $PATH
34543do
34544 IFS=$as_save_IFS
34545 test -z "$as_dir" && as_dir=.
34546 for ac_exec_ext in '' $ac_executable_extensions; do
34547 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34548 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34550 break 2
34551 fi
34552done
34553 done
34554IFS=$as_save_IFS
34555
34556 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
34557 ;;
34558esac
34559fi
34560MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
34561if test -n "$MPEGEncodeDelegate"; then
34562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
34563$as_echo "$MPEGEncodeDelegate" >&6; }
34564else
34565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34566$as_echo "no" >&6; }
34567fi
34568
34569
34570fi;
cristy935c86e2010-06-05 23:50:07 +000034571# Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
34572set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
34573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34574$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034575if ${ac_cv_path_MrSIDDecodeDelegate+:} false; then :
cristy935c86e2010-06-05 23:50:07 +000034576 $as_echo_n "(cached) " >&6
34577else
34578 case $MrSIDDecodeDelegate in
34579 [\\/]* | ?:[\\/]*)
34580 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
34581 ;;
34582 *)
34583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34584for as_dir in $PATH
34585do
34586 IFS=$as_save_IFS
34587 test -z "$as_dir" && as_dir=.
34588 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034589 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy935c86e2010-06-05 23:50:07 +000034590 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34592 break 2
34593 fi
34594done
34595 done
34596IFS=$as_save_IFS
34597
34598 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
34599 ;;
34600esac
34601fi
34602MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
34603if test -n "$MrSIDDecodeDelegate"; then
34604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
34605$as_echo "$MrSIDDecodeDelegate" >&6; }
34606else
34607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34608$as_echo "no" >&6; }
34609fi
34610
34611
cristy3ed852e2009-09-05 21:47:34 +000034612# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
34613set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034615$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034616if ${ac_cv_path_MVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034617 $as_echo_n "(cached) " >&6
34618else
34619 case $MVDelegate in
34620 [\\/]* | ?:[\\/]*)
34621 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
34622 ;;
34623 *)
34624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34625for as_dir in $PATH
34626do
34627 IFS=$as_save_IFS
34628 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034629 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034630 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034631 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034633 break 2
34634 fi
34635done
cristy8b350f62009-11-15 23:12:43 +000034636 done
cristy3ed852e2009-09-05 21:47:34 +000034637IFS=$as_save_IFS
34638
34639 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
34640 ;;
34641esac
34642fi
34643MVDelegate=$ac_cv_path_MVDelegate
34644if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034646$as_echo "$MVDelegate" >&6; }
34647else
cristy8b350f62009-11-15 23:12:43 +000034648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034649$as_echo "no" >&6; }
34650fi
34651
34652
34653# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
34654set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034656$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034657if ${ac_cv_path_PCLDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034658 $as_echo_n "(cached) " >&6
34659else
34660 case $PCLDelegate in
34661 [\\/]* | ?:[\\/]*)
34662 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
34663 ;;
34664 *)
34665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34666for as_dir in $PATH
34667do
34668 IFS=$as_save_IFS
34669 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034670 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034671 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034672 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034674 break 2
34675 fi
34676done
cristy8b350f62009-11-15 23:12:43 +000034677 done
cristy3ed852e2009-09-05 21:47:34 +000034678IFS=$as_save_IFS
34679
34680 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
34681 ;;
34682esac
34683fi
34684PCLDelegate=$ac_cv_path_PCLDelegate
34685if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034687$as_echo "$PCLDelegate" >&6; }
34688else
cristy8b350f62009-11-15 23:12:43 +000034689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034690$as_echo "no" >&6; }
34691fi
34692
34693
34694# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
34695set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034697$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034698if ${ac_cv_path_PGPDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034699 $as_echo_n "(cached) " >&6
34700else
34701 case $PGPDecodeDelegate in
34702 [\\/]* | ?:[\\/]*)
34703 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
34704 ;;
34705 *)
34706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34707for as_dir in $PATH
34708do
34709 IFS=$as_save_IFS
34710 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034711 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034712 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034713 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034715 break 2
34716 fi
34717done
cristy8b350f62009-11-15 23:12:43 +000034718 done
cristy3ed852e2009-09-05 21:47:34 +000034719IFS=$as_save_IFS
34720
34721 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
34722 ;;
34723esac
34724fi
34725PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
34726if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034728$as_echo "$PGPDecodeDelegate" >&6; }
34729else
cristy8b350f62009-11-15 23:12:43 +000034730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034731$as_echo "no" >&6; }
34732fi
34733
34734
34735# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
34736set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034738$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034739if ${ac_cv_path_POVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034740 $as_echo_n "(cached) " >&6
34741else
34742 case $POVDelegate in
34743 [\\/]* | ?:[\\/]*)
34744 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
34745 ;;
34746 *)
34747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34748for as_dir in $PATH
34749do
34750 IFS=$as_save_IFS
34751 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034752 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034753 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034754 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034756 break 2
34757 fi
34758done
cristy8b350f62009-11-15 23:12:43 +000034759 done
cristy3ed852e2009-09-05 21:47:34 +000034760IFS=$as_save_IFS
34761
34762 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
34763 ;;
34764esac
34765fi
34766POVDelegate=$ac_cv_path_POVDelegate
34767if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034769$as_echo "$POVDelegate" >&6; }
34770else
cristy8b350f62009-11-15 23:12:43 +000034771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034772$as_echo "no" >&6; }
34773fi
34774
34775
34776for ac_prog in gsx gsc "$PSDelegateDefault"
34777do
34778 # Extract the first word of "$ac_prog", so it can be a program name with args.
34779set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034781$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034782if ${ac_cv_path_PSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034783 $as_echo_n "(cached) " >&6
34784else
34785 case $PSDelegate in
34786 [\\/]* | ?:[\\/]*)
34787 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
34788 ;;
34789 *)
34790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34791for as_dir in $PATH
34792do
34793 IFS=$as_save_IFS
34794 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034795 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034796 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034797 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034799 break 2
34800 fi
34801done
cristy8b350f62009-11-15 23:12:43 +000034802 done
cristy3ed852e2009-09-05 21:47:34 +000034803IFS=$as_save_IFS
34804
34805 ;;
34806esac
34807fi
34808PSDelegate=$ac_cv_path_PSDelegate
34809if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034811$as_echo "$PSDelegate" >&6; }
34812else
cristy8b350f62009-11-15 23:12:43 +000034813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034814$as_echo "no" >&6; }
34815fi
34816
34817
34818 test -n "$PSDelegate" && break
34819done
34820test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
34821
34822# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
34823set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034825$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034826if ${ac_cv_path_RLEEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034827 $as_echo_n "(cached) " >&6
34828else
34829 case $RLEEncodeDelegate in
34830 [\\/]* | ?:[\\/]*)
34831 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
34832 ;;
34833 *)
34834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34835for as_dir in $PATH
34836do
34837 IFS=$as_save_IFS
34838 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034839 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034840 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034841 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034843 break 2
34844 fi
34845done
cristy8b350f62009-11-15 23:12:43 +000034846 done
cristy3ed852e2009-09-05 21:47:34 +000034847IFS=$as_save_IFS
34848
34849 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
34850 ;;
34851esac
34852fi
34853RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
34854if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034856$as_echo "$RLEEncodeDelegate" >&6; }
34857else
cristy8b350f62009-11-15 23:12:43 +000034858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034859$as_echo "no" >&6; }
34860fi
34861
34862
34863# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
34864set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034866$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034867if ${ac_cv_path_RMDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034868 $as_echo_n "(cached) " >&6
34869else
34870 case $RMDelegate in
34871 [\\/]* | ?:[\\/]*)
34872 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
34873 ;;
34874 *)
34875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34876for as_dir in $PATH
34877do
34878 IFS=$as_save_IFS
34879 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034880 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034882 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034884 break 2
34885 fi
34886done
cristy8b350f62009-11-15 23:12:43 +000034887 done
cristy3ed852e2009-09-05 21:47:34 +000034888IFS=$as_save_IFS
34889
34890 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
34891 ;;
34892esac
34893fi
34894RMDelegate=$ac_cv_path_RMDelegate
34895if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034897$as_echo "$RMDelegate" >&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
cristy4689cf02010-02-17 21:15:45 +000034904# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
34905set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
34906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34907$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034908if ${ac_cv_path_RSVGDecodeDelegate+:} false; then :
cristy4689cf02010-02-17 21:15:45 +000034909 $as_echo_n "(cached) " >&6
34910else
34911 case $RSVGDecodeDelegate in
34912 [\\/]* | ?:[\\/]*)
34913 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
34914 ;;
34915 *)
34916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34917for as_dir in $PATH
34918do
34919 IFS=$as_save_IFS
34920 test -z "$as_dir" && as_dir=.
34921 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy4689cf02010-02-17 21:15:45 +000034923 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34925 break 2
34926 fi
34927done
34928 done
34929IFS=$as_save_IFS
34930
34931 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
34932 ;;
34933esac
34934fi
34935RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
34936if test -n "$RSVGDecodeDelegate"; then
34937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
34938$as_echo "$RSVGDecodeDelegate" >&6; }
34939else
34940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34941$as_echo "no" >&6; }
34942fi
34943
34944
cristy3ed852e2009-09-05 21:47:34 +000034945# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
34946set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034948$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034949if ${ac_cv_path_SCANDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034950 $as_echo_n "(cached) " >&6
34951else
34952 case $SCANDecodeDelegate in
34953 [\\/]* | ?:[\\/]*)
34954 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
34955 ;;
34956 *)
34957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34958for as_dir in $PATH
34959do
34960 IFS=$as_save_IFS
34961 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034962 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034963 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034964 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034966 break 2
34967 fi
34968done
cristy8b350f62009-11-15 23:12:43 +000034969 done
cristy3ed852e2009-09-05 21:47:34 +000034970IFS=$as_save_IFS
34971
34972 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
34973 ;;
34974esac
34975fi
34976SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
34977if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034979$as_echo "$SCANDecodeDelegate" >&6; }
34980else
cristy8b350f62009-11-15 23:12:43 +000034981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034982$as_echo "no" >&6; }
34983fi
34984
34985
cristyec6934f2012-08-14 18:38:40 +000034986# Extract the first word of ""$SVGDecodeDelegateDefault"", so it can be a program name with args.
34987set dummy "$SVGDecodeDelegateDefault"; ac_word=$2
34988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34989$as_echo_n "checking for $ac_word... " >&6; }
34990if ${ac_cv_path_SVGDecodeDelegate+:} false; then :
34991 $as_echo_n "(cached) " >&6
34992else
34993 case $SVGDecodeDelegate in
34994 [\\/]* | ?:[\\/]*)
34995 ac_cv_path_SVGDecodeDelegate="$SVGDecodeDelegate" # Let the user override the test with a path.
34996 ;;
34997 *)
34998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34999for as_dir in $PATH
35000do
35001 IFS=$as_save_IFS
35002 test -z "$as_dir" && as_dir=.
35003 for ac_exec_ext in '' $ac_executable_extensions; do
35004 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35005 ac_cv_path_SVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
35006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35007 break 2
35008 fi
35009done
35010 done
35011IFS=$as_save_IFS
35012
35013 test -z "$ac_cv_path_SVGDecodeDelegate" && ac_cv_path_SVGDecodeDelegate=""$SVGDecodeDelegateDefault""
35014 ;;
35015esac
35016fi
35017SVGDecodeDelegate=$ac_cv_path_SVGDecodeDelegate
35018if test -n "$SVGDecodeDelegate"; then
35019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SVGDecodeDelegate" >&5
35020$as_echo "$SVGDecodeDelegate" >&6; }
35021else
35022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35023$as_echo "no" >&6; }
35024fi
35025
35026
cristy3ed852e2009-09-05 21:47:34 +000035027# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
35028set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035030$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035031if ${ac_cv_path_TXTDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035032 $as_echo_n "(cached) " >&6
35033else
35034 case $TXTDelegate in
35035 [\\/]* | ?:[\\/]*)
35036 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
35037 ;;
35038 *)
35039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35040for as_dir in $PATH
35041do
35042 IFS=$as_save_IFS
35043 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035044 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035045 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035046 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000035047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035048 break 2
35049 fi
35050done
cristy8b350f62009-11-15 23:12:43 +000035051 done
cristy3ed852e2009-09-05 21:47:34 +000035052IFS=$as_save_IFS
35053
35054 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
35055 ;;
35056esac
35057fi
35058TXTDelegate=$ac_cv_path_TXTDelegate
35059if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000035060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000035061$as_echo "$TXTDelegate" >&6; }
35062else
cristy8b350f62009-11-15 23:12:43 +000035063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035064$as_echo "no" >&6; }
35065fi
35066
35067
cristy5ac9ac82010-07-29 13:24:24 +000035068# Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
35069set dummy "$UniconvertorDelegateDefault"; ac_word=$2
35070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35071$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035072if ${ac_cv_path_UniconvertorDelegate+:} false; then :
cristy5ac9ac82010-07-29 13:24:24 +000035073 $as_echo_n "(cached) " >&6
35074else
35075 case $UniconvertorDelegate in
35076 [\\/]* | ?:[\\/]*)
35077 ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
35078 ;;
35079 *)
35080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35081for as_dir in $PATH
35082do
35083 IFS=$as_save_IFS
35084 test -z "$as_dir" && as_dir=.
35085 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035086 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy5ac9ac82010-07-29 13:24:24 +000035087 ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
35088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35089 break 2
35090 fi
35091done
35092 done
35093IFS=$as_save_IFS
35094
35095 test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
35096 ;;
35097esac
35098fi
35099UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
35100if test -n "$UniconvertorDelegate"; then
35101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
35102$as_echo "$UniconvertorDelegate" >&6; }
35103else
35104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35105$as_echo "no" >&6; }
35106fi
35107
35108
cristy86e86092013-08-04 17:43:57 +000035109# Extract the first word of ""$WebPDecodeDelegateDefault"", so it can be a program name with args.
35110set dummy "$WebPDecodeDelegateDefault"; ac_word=$2
35111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35112$as_echo_n "checking for $ac_word... " >&6; }
35113if ${ac_cv_path_WebPDecodeDelegate+:} false; then :
35114 $as_echo_n "(cached) " >&6
35115else
35116 case $WebPDecodeDelegate in
35117 [\\/]* | ?:[\\/]*)
35118 ac_cv_path_WebPDecodeDelegate="$WebPDecodeDelegate" # Let the user override the test with a path.
35119 ;;
35120 *)
35121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35122for as_dir in $PATH
35123do
35124 IFS=$as_save_IFS
35125 test -z "$as_dir" && as_dir=.
35126 for ac_exec_ext in '' $ac_executable_extensions; do
35127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35128 ac_cv_path_WebPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
35129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35130 break 2
35131 fi
35132done
35133 done
35134IFS=$as_save_IFS
35135
35136 test -z "$ac_cv_path_WebPDecodeDelegate" && ac_cv_path_WebPDecodeDelegate=""$WebPDecodeDelegateDefault""
35137 ;;
35138esac
35139fi
35140WebPDecodeDelegate=$ac_cv_path_WebPDecodeDelegate
35141if test -n "$WebPDecodeDelegate"; then
35142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WebPDecodeDelegate" >&5
35143$as_echo "$WebPDecodeDelegate" >&6; }
35144else
35145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35146$as_echo "no" >&6; }
35147fi
35148
35149
35150# Extract the first word of ""$WebPEncodeDelegateDefault"", so it can be a program name with args.
35151set dummy "$WebPEncodeDelegateDefault"; ac_word=$2
35152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35153$as_echo_n "checking for $ac_word... " >&6; }
35154if ${ac_cv_path_WebPEncodeDelegate+:} false; then :
35155 $as_echo_n "(cached) " >&6
35156else
35157 case $WebPEncodeDelegate in
35158 [\\/]* | ?:[\\/]*)
35159 ac_cv_path_WebPEncodeDelegate="$WebPEncodeDelegate" # Let the user override the test with a path.
35160 ;;
35161 *)
35162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35163for as_dir in $PATH
35164do
35165 IFS=$as_save_IFS
35166 test -z "$as_dir" && as_dir=.
35167 for ac_exec_ext in '' $ac_executable_extensions; do
35168 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35169 ac_cv_path_WebPEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
35170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35171 break 2
35172 fi
35173done
35174 done
35175IFS=$as_save_IFS
35176
35177 test -z "$ac_cv_path_WebPEncodeDelegate" && ac_cv_path_WebPEncodeDelegate=""$WebPEncodeDelegateDefault""
35178 ;;
35179esac
35180fi
35181WebPEncodeDelegate=$ac_cv_path_WebPEncodeDelegate
35182if test -n "$WebPEncodeDelegate"; then
35183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WebPEncodeDelegate" >&5
35184$as_echo "$WebPEncodeDelegate" >&6; }
35185else
35186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35187$as_echo "no" >&6; }
35188fi
35189
35190
cristy3ed852e2009-09-05 21:47:34 +000035191# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
35192set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035194$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035195if ${ac_cv_path_WMFDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035196 $as_echo_n "(cached) " >&6
35197else
35198 case $WMFDecodeDelegate in
35199 [\\/]* | ?:[\\/]*)
35200 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
35201 ;;
35202 *)
35203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35204for as_dir in $PATH
35205do
35206 IFS=$as_save_IFS
35207 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035208 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035209 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035210 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000035211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035212 break 2
35213 fi
35214done
cristy8b350f62009-11-15 23:12:43 +000035215 done
cristy3ed852e2009-09-05 21:47:34 +000035216IFS=$as_save_IFS
35217
35218 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
35219 ;;
35220esac
35221fi
35222WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
35223if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000035224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000035225$as_echo "$WMFDecodeDelegate" >&6; }
35226else
cristy8b350f62009-11-15 23:12:43 +000035227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035228$as_echo "no" >&6; }
35229fi
35230
35231
35232# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
35233set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035235$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035236if ${ac_cv_path_WWWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035237 $as_echo_n "(cached) " >&6
35238else
35239 case $WWWDecodeDelegate in
35240 [\\/]* | ?:[\\/]*)
35241 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
35242 ;;
35243 *)
35244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35245for as_dir in $PATH
35246do
35247 IFS=$as_save_IFS
35248 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035249 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035251 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000035252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035253 break 2
35254 fi
35255done
cristy8b350f62009-11-15 23:12:43 +000035256 done
cristy3ed852e2009-09-05 21:47:34 +000035257IFS=$as_save_IFS
35258
35259 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
35260 ;;
35261esac
35262fi
35263WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
35264if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000035265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000035266$as_echo "$WWWDecodeDelegate" >&6; }
35267else
cristy8b350f62009-11-15 23:12:43 +000035268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035269$as_echo "no" >&6; }
35270fi
35271
35272
35273# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
35274set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035276$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035277if ${ac_cv_path_XPSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035278 $as_echo_n "(cached) " >&6
35279else
35280 case $XPSDelegate in
35281 [\\/]* | ?:[\\/]*)
35282 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
35283 ;;
35284 *)
35285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35286for as_dir in $PATH
35287do
35288 IFS=$as_save_IFS
35289 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035290 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035291 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035292 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000035293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035294 break 2
35295 fi
35296done
cristy8b350f62009-11-15 23:12:43 +000035297 done
cristy3ed852e2009-09-05 21:47:34 +000035298IFS=$as_save_IFS
35299
35300 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
35301 ;;
35302esac
35303fi
35304XPSDelegate=$ac_cv_path_XPSDelegate
35305if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000035306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000035307$as_echo "$XPSDelegate" >&6; }
35308else
cristy8b350f62009-11-15 23:12:43 +000035309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035310$as_echo "no" >&6; }
35311fi
35312
35313
35314# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
35315set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035317$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035318if ${ac_cv_path_ZipDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035319 $as_echo_n "(cached) " >&6
35320else
35321 case $ZipDelegate in
35322 [\\/]* | ?:[\\/]*)
35323 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
35324 ;;
35325 *)
35326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35327for as_dir in $PATH
35328do
35329 IFS=$as_save_IFS
35330 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035331 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035333 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000035334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035335 break 2
35336 fi
35337done
cristy8b350f62009-11-15 23:12:43 +000035338 done
cristy3ed852e2009-09-05 21:47:34 +000035339IFS=$as_save_IFS
35340
35341 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
35342 ;;
35343esac
35344fi
35345ZipDelegate=$ac_cv_path_ZipDelegate
35346if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000035347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000035348$as_echo "$ZipDelegate" >&6; }
35349else
cristy8b350f62009-11-15 23:12:43 +000035350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035351$as_echo "no" >&6; }
35352fi
35353
35354
35355
35356# Prefer lpr to lp; lp needs options tacked on.
35357if test "$LPRDelegate" != no; then
35358 PrintDelegate="$LPRDelegate"
35359else
35360 PrintDelegate="$LPDelegate -c -s"
35361fi
35362
35363
35364# Installed ImageMagick utiltity paths
35365ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
35366DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
35367MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
35368
35369# Set delegate booleans
cristy81ab5af2013-10-06 18:28:39 +000035370have_avconv='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_avconv='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000035371have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
35372have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
35373have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
cristy935c86e2010-06-05 23:50:07 +000035374have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000035375have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
35376have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000035377have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
35378
35379#
35380# Test for font directories
35381#
35382type_include_files=''
35383
cristy5a3dc992014-12-05 19:50:04 +000035384 Apple fonts.
35385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Apple fonts directory" >&5
35386$as_echo_n "checking for Apple fonts directory... " >&6; }
35387apple_font_dir=''
35388if test "${with_apple_font_dir}" != 'default'; then
35389 apple_font_dir="${with_apple_font_dir}/"
35390else
35391 for font_dir in '/Library/Fonts/'; do
35392 if test -f "${font_dir}Arial.ttf"; then
35393 apple_font_dir="${font_dir}"
35394 break 1
35395 fi
35396 done
35397fi
35398if test "${apple_font_dir}x" != 'x'; then
35399 type_include_files="${type_include_files} "'<include file="type-apple.xml" />'
35400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apple_font_dir" >&5
35401$as_echo "$apple_font_dir" >&6; }
35402else
35403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
35404$as_echo "not found!" >&6; };
35405fi
35406
35407
cristy430a7312010-01-21 20:44:04 +000035408# Dejavu fonts.
35409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
35410$as_echo_n "checking for Dejavu fonts directory... " >&6; }
35411dejavu_font_dir=''
35412if test "${with_dejavu_font_dir}" != 'default'; then
35413 dejavu_font_dir="${with_dejavu_font_dir}/"
35414else
35415 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
35416 if test -f "${font_dir}DejaVuSerif.ttf"; then
35417 dejavu_font_dir="${font_dir}"
35418 break 1
35419 fi
35420 done
35421fi
35422if test "${dejavu_font_dir}x" != 'x'; then
35423 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
cristyad38abe2012-12-23 23:03:21 +000035424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dejavu_font_dir" >&5
35425$as_echo "$dejavu_font_dir" >&6; }
cristy430a7312010-01-21 20:44:04 +000035426else
cristyad38abe2012-12-23 23:03:21 +000035427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
35428$as_echo "not found!" >&6; };
cristy430a7312010-01-21 20:44:04 +000035429fi
35430
35431
cristy3ed852e2009-09-05 21:47:34 +000035432# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000035433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000035434$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
35435ghostscript_font_dir=''
35436if test "${with_gs_font_dir}" != 'default'; then
35437 ghostscript_font_dir="${with_gs_font_dir}/"
35438else
35439 if test "${native_win32_build}" = 'yes'; then
35440 # Native Windows Build
35441 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
35442 if test -f "${font_dir}a010013l.pfb"; then
35443 ghostscript_font_dir="$font_dir"
35444 break 1
35445 fi
35446 done
35447 if test "${PSDelegate}" != 'gswin32c'; then
35448 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
35449 fi
35450 else
35451 # Linux / Mac OS X / Unix Build
35452 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
35453 if test -f "${font_dir}a010013l.pfb"; then
35454 ghostscript_font_dir="${font_dir}"
35455 break 1
35456 fi
35457 done
35458 if test "${ghostscript_font_dir}x" = 'x'; then
35459 if test "$PSDelegate" != 'gs'; then
35460 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
35461 fi
35462 fi
35463 fi
35464fi
35465if test "${ghostscript_font_dir}x" != 'x'; then
35466 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristyad38abe2012-12-23 23:03:21 +000035467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
35468$as_echo "$ghostscript_font_dir" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035469else
cristyad38abe2012-12-23 23:03:21 +000035470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
35471$as_echo "not found!" >&6; };
cristy3ed852e2009-09-05 21:47:34 +000035472fi
35473
35474case "${build_os}" in
35475 mingw* )
35476 PSDelegate=`$WinPathScript "$PSDelegate" 1`
35477 ;;
35478esac
35479
cristy5a3dc992014-12-05 19:50:04 +000035480# Windows fonts.
35481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Windows fonts directory" >&5
35482$as_echo_n "checking for Windows fonts directory... " >&6; }
35483windows_font_dir=''
35484if test "${with_windows_font_dir}" != 'default'; then
35485 windows_font_dir="${with_windows_font_dir}/"
35486else
35487 for font_dir in '/usr/X11R6/lib/X11/fonts/truetype/' '/usr/X11R7/lib/X11/fonts/truetype/' '/usr/share/fonts/msttcore/'; do
35488 if test -f "${font_dir}arial.ttf"; then
35489 windows_font_dir="${font_dir}"
35490 break 1
35491 fi
35492 done
35493fi
35494if test "${windows_font_dir}x" != 'x'; then
35495 type_include_files="${type_include_files} "'<include file="type-windows.xml" />'
35496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $windows_font_dir" >&5
35497$as_echo "$windows_font_dir" >&6; }
35498else
35499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
35500$as_echo "not found!" >&6; };
35501fi
35502
35503
cristy3ed852e2009-09-05 21:47:34 +000035504
35505
35506#
35507# Handle case where user doesn't want frozen paths
35508#
35509if test "$with_frozenpaths" != 'yes'; then
35510 # Re-set delegate definitions to default (no paths)
35511 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
cristy16b412d2014-12-15 11:09:48 +000035512 BGPDecodeDelegate="$BGPDecodeDelegateDefault"
35513 BGPEncodeDelegate="$BGPEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035514 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
35515 BZIPDelegate="$BZIPDelegateDefault"
35516 BrowseDelegate="$BrowseDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035517 CatDelegate="$CatDelegateDefault"
35518 ConvertDelegate="$ConvertDelegateDefault"
cristy71f53d52013-04-27 13:33:59 +000035519 DisplayDelegate="$DisplayDelegateDefault"
35520 DNGDecodeDelegate="$DNGDecodeDelegateDefault"
cristy66f238e2014-05-16 12:21:48 +000035521 DOCDecodeDelegate="$DOCDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035522 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
35523 EchoDelegate="$EchoDelegateDefault"
35524 EditorDelegate="$EditorDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035525 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
cristy71f53d52013-04-27 13:33:59 +000035526 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035527 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
35528 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
35529 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
35530 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
cristy71f53d52013-04-27 13:33:59 +000035531 JXRDecodeDelegate="$JXRDecodeDelegateDefault"
35532 JXREncodeDelegate="$JXREncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035533 LPDelegate="$LPDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035534 LaunchDelegate="$LaunchDelegateDefault"
35535 MANDelegate="$MANDelegateDefault"
35536 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
35537 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035538 MogrifyDelegate="$MogrifyDelegateDefault"
cristy935c86e2010-06-05 23:50:07 +000035539 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
35540 MVDelegate="$MVDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035541 PCLDelegate="$PCLDelegateDefault"
35542 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
35543 POVDelegate="$POVDelegateDefault"
35544 PSDelegate="$PSDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035545 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
35546 RMDelegate="$RMDelegateDefault"
cristy4689cf02010-02-17 21:15:45 +000035547 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035548 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
cristyec6934f2012-08-14 18:38:40 +000035549 SVGDecodeDelegate="$SVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035550 ShowImageDelegate="$ShowImageDelegateDefault"
35551 TXTDelegate="$TXTDelegateDefault"
cristy5ac9ac82010-07-29 13:24:24 +000035552 UniconvertorDelegate="$UniconvertorDelegateDefault"
cristy86e86092013-08-04 17:43:57 +000035553 WebPDecodeDelegate="$WebPDecodeDelegateDefault"
35554 WebPEncodeDelegate="$WebPEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035555 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
35556 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
35557 XPSDelegate="$XPSDelegateDefault"
35558 ZipDelegate="$ZipDelegateDefault"
35559fi
35560
35561# Delegate substitutions
35562
35563
35564
35565
35566
35567
35568
35569
35570
35571
35572
35573
35574
35575
35576
35577
35578
35579
35580
35581
35582
35583
35584
35585
35586
35587
35588
35589
35590
35591
35592
35593
35594
35595
35596
35597
35598
35599
35600
35601
cristy71f53d52013-04-27 13:33:59 +000035602
35603
cristy16b412d2014-12-15 11:09:48 +000035604
35605
cristy3ed852e2009-09-05 21:47:34 +000035606#
35607# RPM support.
35608#
35609RPM=''
35610for ac_prog in gnutar gtar tar
35611do
35612 # Extract the first word of "$ac_prog", so it can be a program name with args.
35613set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035615$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035616if ${ac_cv_prog_TAR+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035617 $as_echo_n "(cached) " >&6
35618else
35619 if test -n "$TAR"; then
35620 ac_cv_prog_TAR="$TAR" # Let the user override the test.
35621else
35622as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35623for as_dir in $PATH
35624do
35625 IFS=$as_save_IFS
35626 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035627 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035628 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035629 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035631 break 2
35632 fi
35633done
cristy8b350f62009-11-15 23:12:43 +000035634 done
cristy3ed852e2009-09-05 21:47:34 +000035635IFS=$as_save_IFS
35636
35637fi
35638fi
35639TAR=$ac_cv_prog_TAR
35640if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000035641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000035642$as_echo "$TAR" >&6; }
35643else
cristy8b350f62009-11-15 23:12:43 +000035644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035645$as_echo "no" >&6; }
35646fi
35647
35648
35649 test -n "$TAR" && break
35650done
35651
35652for ac_prog in perl
35653do
35654 # Extract the first word of "$ac_prog", so it can be a program name with args.
35655set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035657$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035658if ${ac_cv_prog_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035659 $as_echo_n "(cached) " >&6
35660else
35661 if test -n "$PERL"; then
35662 ac_cv_prog_PERL="$PERL" # Let the user override the test.
35663else
35664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35665for as_dir in $PATH
35666do
35667 IFS=$as_save_IFS
35668 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035669 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035670 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035671 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035673 break 2
35674 fi
35675done
cristy8b350f62009-11-15 23:12:43 +000035676 done
cristy3ed852e2009-09-05 21:47:34 +000035677IFS=$as_save_IFS
35678
35679fi
35680fi
35681PERL=$ac_cv_prog_PERL
35682if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000035683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035684$as_echo "$PERL" >&6; }
35685else
cristy8b350f62009-11-15 23:12:43 +000035686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035687$as_echo "no" >&6; }
35688fi
35689
35690
35691 test -n "$PERL" && break
35692done
35693
35694for ac_prog in rpmbuild rpm
35695do
35696 # Extract the first word of "$ac_prog", so it can be a program name with args.
35697set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035699$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035700if ${ac_cv_prog_RPM+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035701 $as_echo_n "(cached) " >&6
35702else
35703 if test -n "$RPM"; then
35704 ac_cv_prog_RPM="$RPM" # Let the user override the test.
35705else
35706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35707for as_dir in $PATH
35708do
35709 IFS=$as_save_IFS
35710 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035711 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035712 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035713 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035715 break 2
35716 fi
35717done
cristy8b350f62009-11-15 23:12:43 +000035718 done
cristy3ed852e2009-09-05 21:47:34 +000035719IFS=$as_save_IFS
35720
35721fi
35722fi
35723RPM=$ac_cv_prog_RPM
35724if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000035725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000035726$as_echo "$RPM" >&6; }
35727else
cristy8b350f62009-11-15 23:12:43 +000035728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035729$as_echo "no" >&6; }
35730fi
35731
35732
35733 test -n "$RPM" && break
35734done
35735
35736
cristy73bd4a52010-10-05 11:24:23 +000035737ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
35738
35739
35740AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
35741
35742
35743AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
35744
35745
35746AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
35747
35748
35749 if test "x$RPM" != "x" ; then
35750 RPM_DELEGATE_TRUE=
35751 RPM_DELEGATE_FALSE='#'
35752else
35753 RPM_DELEGATE_TRUE='#'
35754 RPM_DELEGATE_FALSE=
35755fi
35756
cristy3ed852e2009-09-05 21:47:34 +000035757
35758#
35759# 7ZIP support (http://p7zip.sourceforge.net/)
35760#
35761P7ZIP=''
35762for ac_prog in 7za
35763do
35764 # Extract the first word of "$ac_prog", so it can be a program name with args.
35765set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035767$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035768if ${ac_cv_prog_P7ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035769 $as_echo_n "(cached) " >&6
35770else
35771 if test -n "$P7ZIP"; then
35772 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
35773else
35774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35775for as_dir in $PATH
35776do
35777 IFS=$as_save_IFS
35778 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035779 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035781 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035783 break 2
35784 fi
35785done
cristy8b350f62009-11-15 23:12:43 +000035786 done
cristy3ed852e2009-09-05 21:47:34 +000035787IFS=$as_save_IFS
35788
35789fi
35790fi
35791P7ZIP=$ac_cv_prog_P7ZIP
35792if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000035793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000035794$as_echo "$P7ZIP" >&6; }
35795else
cristy8b350f62009-11-15 23:12:43 +000035796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035797$as_echo "no" >&6; }
35798fi
35799
35800
35801 test -n "$P7ZIP" && break
35802done
35803
35804
cristy73bd4a52010-10-05 11:24:23 +000035805 if test "x$P7ZIP" != "x" ; then
35806 P7ZIP_DELEGATE_TRUE=
35807 P7ZIP_DELEGATE_FALSE='#'
35808else
35809 P7ZIP_DELEGATE_TRUE='#'
35810 P7ZIP_DELEGATE_FALSE=
35811fi
35812
cristy3ed852e2009-09-05 21:47:34 +000035813
35814#
35815# ZIP support (http://www.info-zip.org/Zip.html)
35816#
35817ZIP=''
35818for ac_prog in zip
35819do
35820 # Extract the first word of "$ac_prog", so it can be a program name with args.
35821set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035823$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035824if ${ac_cv_prog_ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035825 $as_echo_n "(cached) " >&6
35826else
35827 if test -n "$ZIP"; then
35828 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
35829else
35830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35831for as_dir in $PATH
35832do
35833 IFS=$as_save_IFS
35834 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035835 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035836 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035837 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035839 break 2
35840 fi
35841done
cristy8b350f62009-11-15 23:12:43 +000035842 done
cristy3ed852e2009-09-05 21:47:34 +000035843IFS=$as_save_IFS
35844
35845fi
35846fi
35847ZIP=$ac_cv_prog_ZIP
35848if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000035849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000035850$as_echo "$ZIP" >&6; }
35851else
cristy8b350f62009-11-15 23:12:43 +000035852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035853$as_echo "no" >&6; }
35854fi
35855
35856
35857 test -n "$ZIP" && break
35858done
35859
35860
cristy73bd4a52010-10-05 11:24:23 +000035861 if test "x$ZIP" != "x" ; then
35862 ZIP_DELEGATE_TRUE=
35863 ZIP_DELEGATE_FALSE='#'
35864else
35865 ZIP_DELEGATE_TRUE='#'
35866 ZIP_DELEGATE_FALSE=
35867fi
35868
cristy3ed852e2009-09-05 21:47:34 +000035869
35870#
35871# GhostPCL related configuration.
35872#
35873PCLColorDevice=ppmraw
cristy8bc84082011-09-07 13:57:00 +000035874PCLCMYKDevice=pamcmyk32
cristy3ed852e2009-09-05 21:47:34 +000035875PCLMonoDevice=pbmraw
35876if test -z "$PCLVersion"; then
35877 PCLVersion='unknown'
35878fi
35879if test $have_pcl = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000035880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35881$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035883$as_echo_n "checking for PCL... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35885$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035886 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000035887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035888$as_echo_n "checking for pcl color device... " >&6; }
35889 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35890 :
35891 else
35892 PCLColorDevice=ppmraw
35893 fi
cristyad38abe2012-12-23 23:03:21 +000035894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
35895$as_echo "$PCLColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035896
35897 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035899$as_echo_n "checking for pcl CMYK device... " >&6; }
35900 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35901 :
35902 else
35903 PCLCMYKDevice=$PCLColorDevice
35904 fi
cristyad38abe2012-12-23 23:03:21 +000035905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
35906$as_echo "$PCLCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035907
35908 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035910$as_echo_n "checking for pcl mono device... " >&6; }
35911 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35912 :
35913 else
35914 PCLMonoDevice=$PCLColorDevice
35915 fi
cristyad38abe2012-12-23 23:03:21 +000035916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
35917$as_echo "$PCLMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035918fi
35919
35920
35921
35922
35923
35924
35925#
35926# GhostXPS related configuration.
35927#
35928XPSColorDevice=ppmraw
35929XPSCMYKDevice=bmpsep8
35930XPSMonoDevice=pbmraw
35931if test -z "$XPSVersion"; then
35932 XPSVersion='unknown'
35933fi
35934if test $have_xps = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000035935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35936$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000035938$as_echo_n "checking for XPS... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35940$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035941 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000035942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035943$as_echo_n "checking for xps color device... " >&6; }
35944 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35945 :
35946 else
35947 XPSColorDevice=ppmraw
35948 fi
cristyad38abe2012-12-23 23:03:21 +000035949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
35950$as_echo "$XPSColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035951
35952 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035954$as_echo_n "checking for xps CMYK device... " >&6; }
35955 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35956 :
35957 else
35958 XPSCMYKDevice=$XPSColorDevice
35959 fi
cristyad38abe2012-12-23 23:03:21 +000035960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
35961$as_echo "$XPSCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035962
35963 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035965$as_echo_n "checking for xps mono device... " >&6; }
35966 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35967 :
35968 else
35969 XPSMonoDevice=$XPSColorDevice
35970 fi
cristyad38abe2012-12-23 23:03:21 +000035971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
35972$as_echo "$XPSMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035973fi
35974
35975
35976
35977
35978
35979
35980#
35981# Ghostscript related configuration.
35982#
cristya97426c2011-02-04 01:41:27 +000035983GSAlphaDevice=pngalpha
cristy3ed852e2009-09-05 21:47:34 +000035984GSColorDevice=pnmraw
35985GSCMYKDevice=pam
35986GSMonoDevice=pbmraw
35987GSPDFDevice=pdfwrite
cristyb096ea52013-10-26 20:56:38 +000035988GSPSDevice=ps2write
cristya5b91e72015-01-07 15:39:36 +000035989GSEPSDevice=eps2write
cristy3ed852e2009-09-05 21:47:34 +000035990GSVersion='unknown'
35991if test $have_gs = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000035992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35993$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000035995$as_echo_n "checking for Ghostscript... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35997$as_echo "" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000035999$as_echo_n "checking for Ghostscript version... " >&6; }
36000 if GSVersion=`$PSDelegate --version`; then
36001 :
36002 else
36003 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
36004 fi
cristyad38abe2012-12-23 23:03:21 +000036005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
36006$as_echo "$GSVersion" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000036007
36008 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000036009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000036010$as_echo_n "checking for gs alpha device... " >&6; }
36011 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
36012 :
36013 else
36014 GSAlphaDevice=pnmraw
36015 fi
cristyad38abe2012-12-23 23:03:21 +000036016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
36017$as_echo "$GSAlphaDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000036018
36019 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000036020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000036021$as_echo_n "checking for gs color device... " >&6; }
36022 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
36023 :
36024 else
36025 GSColorDevice=pnmraw
36026 fi
cristyad38abe2012-12-23 23:03:21 +000036027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
36028$as_echo "$GSColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000036029
36030 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000036031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000036032$as_echo_n "checking for gs CMYK device... " >&6; }
36033 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
36034 :
36035 else
36036 GSCMYKDevice=bmpsep8
36037 fi
cristyad38abe2012-12-23 23:03:21 +000036038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
36039$as_echo "$GSCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000036040
36041 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000036042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000036043$as_echo_n "checking for gs mono device... " >&6; }
36044 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
36045 :
36046 else
36047 GSMonoDevice=$GSColorDevice
36048 fi
cristyad38abe2012-12-23 23:03:21 +000036049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
36050$as_echo "$GSMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000036051
36052 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000036053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000036054$as_echo_n "checking for gs PDF writing device... " >&6; }
36055 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
36056 :
36057 else
36058 GSPDFDevice=nodevice
36059 fi
cristyad38abe2012-12-23 23:03:21 +000036060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
36061$as_echo "$GSPDFDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000036062
36063 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000036064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000036065$as_echo_n "checking for gs PS writing device... " >&6; }
36066 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
36067 :
36068 else
cristy15308162015-01-09 23:43:12 +000036069 GSPSDevice=pswrite
cristy3ed852e2009-09-05 21:47:34 +000036070 fi
cristyad38abe2012-12-23 23:03:21 +000036071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
36072$as_echo "$GSPSDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000036073
36074 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000036075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000036076$as_echo_n "checking for gs EPS writing device... " >&6; }
36077 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
36078 :
36079 else
cristy15308162015-01-09 23:43:12 +000036080 GSEPSDevice=epswrite
cristy3ed852e2009-09-05 21:47:34 +000036081 fi
cristyad38abe2012-12-23 23:03:21 +000036082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
36083$as_echo "$GSEPSDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000036084fi
36085
36086
36087
36088
36089
36090
36091
36092
36093
36094
36095#
36096# PerlMagick-related configuration
36097#
36098
36099# Look for PERL if PerlMagick requested
36100# If name/path of desired PERL interpreter is specified, look for that one first
36101have_perl='no'
36102if test "$with_perl" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000036103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
36104$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000036105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000036106$as_echo_n "checking for Perl... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000036107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
36108$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000036109 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000036110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000036111$as_echo_n "checking for perl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000036112if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000036113 $as_echo_n "(cached) " >&6
36114else
36115 ac_cv_path_PERL="$with_perl"
36116fi
cristy8b350f62009-11-15 23:12:43 +000036117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000036118$as_echo "$ac_cv_path_PERL" >&6; };
36119 PERL=$ac_cv_path_PERL
36120 have_perl="$ac_cv_path_PERL"
36121 else
36122 for ac_prog in perl perl5
36123do
36124 # Extract the first word of "$ac_prog", so it can be a program name with args.
36125set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000036126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000036127$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000036128if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000036129 $as_echo_n "(cached) " >&6
36130else
36131 case $PERL in
36132 [\\/]* | ?:[\\/]*)
36133 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
36134 ;;
36135 *)
36136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36137for as_dir in $PATH
36138do
36139 IFS=$as_save_IFS
36140 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000036141 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000036142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000036143 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000036144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000036145 break 2
36146 fi
36147done
cristy8b350f62009-11-15 23:12:43 +000036148 done
cristy3ed852e2009-09-05 21:47:34 +000036149IFS=$as_save_IFS
36150
36151 ;;
36152esac
36153fi
36154PERL=$ac_cv_path_PERL
36155if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000036156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000036157$as_echo "$PERL" >&6; }
36158else
cristy8b350f62009-11-15 23:12:43 +000036159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000036160$as_echo "no" >&6; }
36161fi
36162
36163
36164 test -n "$PERL" && break
36165done
36166 if test "$ac_cv_path_PERL"; then
36167 have_perl="$ac_cv_path_PERL"
36168 fi
36169 fi
36170fi
36171
cristy949301e2010-01-06 01:38:40 +000036172if test "$with_perl" != 'yes' ; then
36173 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
36174fi
36175
36176PERL_SUPPORTS_DESTDIR='no'
36177
cristy3ed852e2009-09-05 21:47:34 +000036178with_perl_static='no'
36179with_perl_dynamic='no'
36180if test "$have_perl" != 'no'; then
36181 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
36182 with_perl_static='yes'
36183 fi
36184 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
36185 with_perl_dynamic='yes'
36186 fi
36187 # Is PERL's MakeMaker new enough to support DESTDIR?
cristy73bd4a52010-10-05 11:24:23 +000036188
36189
36190
36191
36192 if test -n "$PERL"; then :
36193
36194 ax_perl_version="5.8.1"
36195
36196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
36197$as_echo_n "checking for perl version... " >&6; }
36198
cristy17491be2014-06-24 01:10:53 +000036199 perl_version=`$PERL --version 2>&1 \
36200 | $SED -n -e '/This is perl/b inspect
36201b
36202: inspect
36203s/.* (\{0,1\}v\([0-9]*\.[0-9]*\.[0-9]*\))\{0,1\} .*/\1/;p'`
cristy73bd4a52010-10-05 11:24:23 +000036204
36205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
36206$as_echo "$perl_version" >&6; }
36207
36208 PERL_VERSION=$perl_version
36209
36210
36211
36212
36213
36214 # Used to indicate true or false condition
36215 ax_compare_version=false
36216
36217 # Convert the two version strings to be compared into a format that
36218 # allows a simple string comparison. The end result is that a version
36219 # string of the form 1.12.5-r617 will be converted to the form
36220 # 0001001200050617. In other words, each number is zero padded to four
36221 # digits, and non digits are removed.
36222
36223 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
36224 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
36225 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
36226 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
36227 -e 's/[^0-9]//g'`
36228
36229
36230 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
36231 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
36232 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
36233 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
36234 -e 's/[^0-9]//g'`
36235
36236
36237 ax_compare_version=`echo "x$ax_compare_version_A
36238x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
36239
36240
36241
36242 if test "$ax_compare_version" = "true" ; then
36243
36244 :
36245 PERL_SUPPORTS_DESTDIR='yes'
36246
36247 else
36248 :
36249 PERL_SUPPORTS_DESTDIR='no'
36250
36251 fi
36252
36253
36254else
36255
36256 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
36257$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
36258 PERL_SUPPORTS_DESTDIR='no'
36259
cristy3ed852e2009-09-05 21:47:34 +000036260fi
cristy73bd4a52010-10-05 11:24:23 +000036261
36262fi
36263 if test "$have_perl" != 'no'; then
36264 WITH_PERL_TRUE=
36265 WITH_PERL_FALSE='#'
36266else
36267 WITH_PERL_TRUE='#'
36268 WITH_PERL_FALSE=
36269fi
36270
36271 if test $with_perl_static = 'yes'; then
36272 WITH_PERL_STATIC_TRUE=
36273 WITH_PERL_STATIC_FALSE='#'
36274else
36275 WITH_PERL_STATIC_TRUE='#'
36276 WITH_PERL_STATIC_FALSE=
36277fi
36278
36279 if test $with_perl_dynamic = 'yes'; then
36280 WITH_PERL_DYNAMIC_TRUE=
36281 WITH_PERL_DYNAMIC_FALSE='#'
36282else
36283 WITH_PERL_DYNAMIC_TRUE='#'
36284 WITH_PERL_DYNAMIC_FALSE=
36285fi
36286
cristy3ed852e2009-09-05 21:47:34 +000036287
36288
36289# Determine path to pick up MagickCore library from for use with building PerlMagick
36290MAGICKCORE_PATH="${LIB_DIR}"
36291if test $with_perl_static = 'yes'; then
36292 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
36293 libtool_objdir=$objdir
36294
36295 # Linker search path to library, followed by -lMagickCore
cristy4c08aed2011-07-01 19:47:50 +000036296 MAGICKCORE_PATH="${builddir}/MagickCore/${libtool_objdir}"
cristy3ed852e2009-09-05 21:47:34 +000036297fi
36298
36299
cristy2a3eb392012-12-17 13:39:20 +000036300# Create a simple string containing format names for all delegate libraries.
cristy422d5502012-12-22 22:20:57 +000036301MAGICK_DELEGATES=''
cristy2a3eb392012-12-17 13:39:20 +000036302if test "$have_autotrace" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036303 MAGICK_DELEGATES="$MAGICK_DELEGATES autotrace"
cristy3ed852e2009-09-05 21:47:34 +000036304fi
cristy2a3eb392012-12-17 13:39:20 +000036305if test "$have_bzlib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036306 MAGICK_DELEGATES="$MAGICK_DELEGATES bzlib"
cristy2a3eb392012-12-17 13:39:20 +000036307fi
36308if test "$have_dps" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036309 MAGICK_DELEGATES="$MAGICK_DELEGATES dps"
cristy2a3eb392012-12-17 13:39:20 +000036310fi
36311if test "$have_djvu" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036312 MAGICK_DELEGATES="$MAGICK_DELEGATES djvu"
cristy2a3eb392012-12-17 13:39:20 +000036313fi
cristy81ab5af2013-10-06 18:28:39 +000036314if test "$have_avconv" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036315 MAGICK_DELEGATES="$MAGICK_DELEGATES mpeg"
cristy2a3eb392012-12-17 13:39:20 +000036316fi
36317if test "$have_fftw" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036318 MAGICK_DELEGATES="$MAGICK_DELEGATES fftw"
cristy2a3eb392012-12-17 13:39:20 +000036319fi
cristy2a3eb392012-12-17 13:39:20 +000036320if test "$have_fpx" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036321 MAGICK_DELEGATES="$MAGICK_DELEGATES fpx"
cristy2a3eb392012-12-17 13:39:20 +000036322fi
36323if test "$have_fontconfig" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036324 MAGICK_DELEGATES="$MAGICK_DELEGATES fontconfig"
cristy2a3eb392012-12-17 13:39:20 +000036325fi
36326if test "$have_freetype" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036327 MAGICK_DELEGATES="$MAGICK_DELEGATES freetype"
cristy2a3eb392012-12-17 13:39:20 +000036328fi
36329if test "$have_gslib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036330 MAGICK_DELEGATES="$MAGICK_DELEGATES gslib"
cristy2a3eb392012-12-17 13:39:20 +000036331fi
36332if test "$have_jbig" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036333 MAGICK_DELEGATES="$MAGICK_DELEGATES jbig"
cristy2a3eb392012-12-17 13:39:20 +000036334fi
36335if test "$have_png$have_jpeg" = 'yesyes' ; then
cristy422d5502012-12-22 22:20:57 +000036336 MAGICK_DELEGATES="$MAGICK_DELEGATES jng"
cristy2a3eb392012-12-17 13:39:20 +000036337fi
36338if test "$have_jp2" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036339 MAGICK_DELEGATES="$MAGICK_DELEGATES jp2"
cristy2a3eb392012-12-17 13:39:20 +000036340fi
36341if test "$have_jpeg" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036342 MAGICK_DELEGATES="$MAGICK_DELEGATES jpeg"
cristy2a3eb392012-12-17 13:39:20 +000036343fi
36344if test "$have_lcms" = 'yes' || test "$have_lcms2" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036345 MAGICK_DELEGATES="$MAGICK_DELEGATES lcms"
cristy2a3eb392012-12-17 13:39:20 +000036346fi
36347if test "$have_lqr" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036348 MAGICK_DELEGATES="$MAGICK_DELEGATES lqr"
cristy2a3eb392012-12-17 13:39:20 +000036349fi
36350if test "$have_lzma" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036351 MAGICK_DELEGATES="$MAGICK_DELEGATES lzma"
cristy2a3eb392012-12-17 13:39:20 +000036352fi
36353if test "$have_openexr" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036354 MAGICK_DELEGATES="$MAGICK_DELEGATES openexr"
cristy2a3eb392012-12-17 13:39:20 +000036355fi
cristy99db3872014-01-01 15:11:34 +000036356if test "$have_openjp2" = 'yes' ; then
36357 MAGICK_DELEGATES="$MAGICK_DELEGATES openjp2"
cristy3fe09452014-01-01 12:29:14 +000036358fi
cristy2a3eb392012-12-17 13:39:20 +000036359if test "$have_pango" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036360 MAGICK_DELEGATES="$MAGICK_DELEGATES pango"
cristy2a3eb392012-12-17 13:39:20 +000036361fi
36362if test "$have_png" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036363 MAGICK_DELEGATES="$MAGICK_DELEGATES png"
cristy2a3eb392012-12-17 13:39:20 +000036364fi
36365have_ps='no'
36366if test "$have_dps" = 'yes' || \
36367 test "$have_gs" = 'yes' || \
36368 test "${native_win32_build}" = 'yes' ; then
36369 have_ps='yes'
36370fi
36371if test "$have_ps" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036372 MAGICK_DELEGATES="$MAGICK_DELEGATES ps"
cristy2a3eb392012-12-17 13:39:20 +000036373fi
cristy2a3eb392012-12-17 13:39:20 +000036374if test "$have_ra_ppm" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036375 MAGICK_DELEGATES="$MAGICK_DELEGATES rad"
cristy2a3eb392012-12-17 13:39:20 +000036376fi
36377if test "$have_rsvg" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036378 MAGICK_DELEGATES="$MAGICK_DELEGATES rsvg"
cristy2a3eb392012-12-17 13:39:20 +000036379fi
36380if test "$have_tiff" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036381 MAGICK_DELEGATES="$MAGICK_DELEGATES tiff"
cristy2a3eb392012-12-17 13:39:20 +000036382fi
36383if test "$have_ttf" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036384 MAGICK_DELEGATES="$MAGICK_DELEGATES ttf"
cristy2a3eb392012-12-17 13:39:20 +000036385fi
cristy3b640ed2013-07-29 00:27:59 +000036386if test "$have_webp" = 'yes' ; then
36387 MAGICK_DELEGATES="$MAGICK_DELEGATES webp"
36388fi
cristy2a3eb392012-12-17 13:39:20 +000036389if test "$have_wmf" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036390 MAGICK_DELEGATES="$MAGICK_DELEGATES wmf"
cristy2a3eb392012-12-17 13:39:20 +000036391fi
36392if test "$have_x" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036393 MAGICK_DELEGATES="$MAGICK_DELEGATES x"
cristy2a3eb392012-12-17 13:39:20 +000036394fi
36395if test "$have_xml" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036396 MAGICK_DELEGATES="$MAGICK_DELEGATES xml"
cristy2a3eb392012-12-17 13:39:20 +000036397fi
36398if test "$have_zlib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036399 MAGICK_DELEGATES="$MAGICK_DELEGATES zlib"
cristy2a3eb392012-12-17 13:39:20 +000036400fi
cristy2a3eb392012-12-17 13:39:20 +000036401# Remove extraneous spaces from output variables (asthetic)
cristy422d5502012-12-22 22:20:57 +000036402MAGICK_DELEGATES=`echo $MAGICK_DELEGATES | sed -e 's/ */ /g'`
cristy2a3eb392012-12-17 13:39:20 +000036403MAGICK_FEATURES=`echo $MAGICK_FEATURES | sed -e 's/ */ /g'`
cristy3ed852e2009-09-05 21:47:34 +000036404
36405
cristyfa161182012-12-19 15:45:28 +000036406
cristy3ed852e2009-09-05 21:47:34 +000036407#
36408# Handle special compiler flags
36409#
36410
36411# Add '-p' if prof source profiling support enabled
36412if test "$enable_prof" = 'yes'; then
36413 CFLAGS="-p $CFLAGS"
36414 CXXFLAGS="-p $CXXFLAGS"
36415 LDFLAGS="-p $LDFLAGS"
36416fi
36417
36418# Add '-pg' if gprof source profiling support enabled
36419if test "$enable_gprof" = 'yes'; then
36420 CFLAGS="-pg $CFLAGS"
36421 CXXFLAGS="-pg $CXXFLAGS"
36422 LDFLAGS="-pg $LDFLAGS"
36423fi
36424
36425# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
36426# This is a gcc-specific feature
36427if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000036428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000036429$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000036430if ${ac_cv_lib_gcov__gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000036431 $as_echo_n "(cached) " >&6
36432else
36433 ac_check_lib_save_LIBS=$LIBS
36434LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000036435cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000036436/* end confdefs.h. */
36437
36438/* Override any GCC internal prototype to avoid an error.
36439 Use char because int might match the return type of a GCC
36440 builtin and then its argument prototype would still apply. */
36441#ifdef __cplusplus
36442extern "C"
36443#endif
36444char _gcov_init ();
36445int
36446main ()
36447{
36448return _gcov_init ();
36449 ;
36450 return 0;
36451}
36452_ACEOF
cristy8b350f62009-11-15 23:12:43 +000036453if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000036454 ac_cv_lib_gcov__gcov_init=yes
36455else
cristy8b350f62009-11-15 23:12:43 +000036456 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000036457fi
cristy8b350f62009-11-15 23:12:43 +000036458rm -f core conftest.err conftest.$ac_objext \
36459 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000036460LIBS=$ac_check_lib_save_LIBS
36461fi
cristy8b350f62009-11-15 23:12:43 +000036462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000036463$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000036464if test "x$ac_cv_lib_gcov__gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000036465 cat >>confdefs.h <<_ACEOF
36466#define HAVE_LIBGCOV 1
36467_ACEOF
36468
36469 LIBS="-lgcov $LIBS"
36470
36471fi
36472
cristy8b350f62009-11-15 23:12:43 +000036473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000036474$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000036475if ${ac_cv_lib_gcov___gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000036476 $as_echo_n "(cached) " >&6
36477else
36478 ac_check_lib_save_LIBS=$LIBS
36479LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000036480cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000036481/* end confdefs.h. */
36482
36483/* Override any GCC internal prototype to avoid an error.
36484 Use char because int might match the return type of a GCC
36485 builtin and then its argument prototype would still apply. */
36486#ifdef __cplusplus
36487extern "C"
36488#endif
36489char __gcov_init ();
36490int
36491main ()
36492{
36493return __gcov_init ();
36494 ;
36495 return 0;
36496}
36497_ACEOF
cristy8b350f62009-11-15 23:12:43 +000036498if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000036499 ac_cv_lib_gcov___gcov_init=yes
36500else
cristy8b350f62009-11-15 23:12:43 +000036501 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000036502fi
cristy8b350f62009-11-15 23:12:43 +000036503rm -f core conftest.err conftest.$ac_objext \
36504 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000036505LIBS=$ac_check_lib_save_LIBS
36506fi
cristy8b350f62009-11-15 23:12:43 +000036507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000036508$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000036509if test "x$ac_cv_lib_gcov___gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000036510 cat >>confdefs.h <<_ACEOF
36511#define HAVE_LIBGCOV 1
36512_ACEOF
36513
36514 LIBS="-lgcov $LIBS"
36515
36516fi
36517
36518 case "$target_os" in
36519 darwin*)
36520 OSX_GCOV_LDFLAG="-Wl,-single_module"
36521 ;;
36522 *)
36523 OSX_GCOV_LDFLAG=""
36524 ;;
36525 esac
36526
36527 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
36528 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
36529 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
36530fi
36531
36532#
36533# Build library dependency list for libMagickCore
36534#
36535
cristyc6722092012-10-14 00:19:31 +000036536if test "$build_modules" != 'no'; then
cristy3b0097d2014-11-04 15:34:47 +000036537 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 +000036538else
cristy0f6fc2d2015-05-30 00:49:11 +000036539 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_LIB $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 +000036540fi
36541
36542
36543#
36544# Remove extraneous spaces from output variables (asthetic)
36545#
36546X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
36547X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
36548X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
36549X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
36550
36551CC=`echo $CC | sed -e 's/ */ /g'`
36552CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
36553CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
36554CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
cristy3ed852e2009-09-05 21:47:34 +000036555DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
36556LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
36557TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
36558MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
36559#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
36560
36561# Pass only user-provided LIBS as "global" libraries
36562LIBS=$USER_LIBS
36563
36564#AC_SUBST(CPPFLAGS)
36565
36566#AC_SUBST(LDFLAGS)
36567#AC_SUBST(X_PRE_LIBS)
36568#AC_SUBST(X_LIBS)
36569#AC_SUBST(X_EXTRA_LIBS)
36570
36571MAGICK_CFLAGS=$CFLAGS
36572MAGICK_CXXFLAGS="$CXXFLAGS"
36573MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
36574MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
36575MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
cristy31b9e072013-10-17 15:02:53 +000036576MAGICK_LIBS="$MAGICK_DEP_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000036577
36578
36579
36580
36581
36582
36583
36584
36585# Set configured scripts to executable.
36586ac_config_commands="$ac_config_commands default"
36587
cristy2bd4b6e2012-07-22 15:29:11 +000036588ac_config_commands="$ac_config_commands magick.sh.in"
36589
cristy3ed852e2009-09-05 21:47:34 +000036590ac_config_commands="$ac_config_commands MagickCore-config.in"
36591
cristy3ed852e2009-09-05 21:47:34 +000036592ac_config_commands="$ac_config_commands MagickWand-config.in"
36593
cristy3ed852e2009-09-05 21:47:34 +000036594ac_config_commands="$ac_config_commands Magick++-config.in"
36595
36596ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
36597
36598
cristyad38abe2012-12-23 23:03:21 +000036599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
36600$as_echo "-------------------------------------------------------------" >&6; }
36601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
36602$as_echo "Update ImageMagick configuration" >&6; }
cristy9af1cbf2014-12-28 22:03:09 +000036603
36604rm -f magick-version
36605
36606result_dejavu_font_dir='none'
36607if test "${dejavu_font_dir}x" != 'x'; then
36608 result_dejavu_font_dir=$dejavu_font_dir
36609fi
36610
36611result_ghostscript_font_dir='none'
36612if test "${ghostscript_font_dir}x" != 'x'; then
36613 result_ghostscript_font_dir=$ghostscript_font_dir
36614fi
36615
36616result_windows_font_dir='none'
36617if test "${windows_font_dir}x" != 'x'; then
36618 result_windows_font_dir=${windows_font_dir}
36619fi
36620
36621# ==============================================================================
36622# Generate build environment
36623# ==============================================================================
36624ac_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"
36625
cristy3ed852e2009-09-05 21:47:34 +000036626cat >confcache <<\_ACEOF
36627# This file is a shell script that caches the results of configure
36628# tests run on this system so they can be shared between configure
36629# scripts and configure runs, see configure's option --config-cache.
36630# It is not useful on other systems. If it contains results you don't
36631# want to keep, you may remove or edit it.
36632#
36633# config.status only pays attention to the cache file if you give it
36634# the --recheck option to rerun configure.
36635#
36636# `ac_cv_env_foo' variables (set or unset) will be overridden when
36637# loading this file, other *unset* `ac_cv_foo' will be assigned the
36638# following values.
36639
36640_ACEOF
36641
36642# The following way of writing the cache mishandles newlines in values,
36643# but we know of no workaround that is simple, portable, and efficient.
36644# So, we kill variables containing newlines.
36645# Ultrix sh set writes to stderr and can't be redirected directly,
36646# and sets the high bit in the cache file unless we assign to the vars.
36647(
36648 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
36649 eval ac_val=\$$ac_var
36650 case $ac_val in #(
36651 *${as_nl}*)
36652 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000036653 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000036654$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
36655 esac
36656 case $ac_var in #(
36657 _ | IFS | as_nl) ;; #(
36658 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000036659 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000036660 esac ;;
36661 esac
36662 done
36663
36664 (set) 2>&1 |
36665 case $as_nl`(ac_space=' '; set) 2>&1` in #(
36666 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000036667 # `set' does not quote correctly, so add quotes: double-quote
36668 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000036669 sed -n \
36670 "s/'/'\\\\''/g;
36671 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
36672 ;; #(
36673 *)
36674 # `set' quotes correctly as required by POSIX, so do not add quotes.
36675 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
36676 ;;
36677 esac |
36678 sort
36679) |
36680 sed '
36681 /^ac_cv_env_/b end
36682 t clear
36683 :clear
36684 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
36685 t end
36686 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
36687 :end' >>confcache
36688if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
36689 if test -w "$cache_file"; then
cristyda16f162011-02-19 23:52:17 +000036690 if test "x$cache_file" != "x/dev/null"; then
cristy8b350f62009-11-15 23:12:43 +000036691 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000036692$as_echo "$as_me: updating cache $cache_file" >&6;}
cristyda16f162011-02-19 23:52:17 +000036693 if test ! -f "$cache_file" || test -h "$cache_file"; then
36694 cat confcache >"$cache_file"
36695 else
36696 case $cache_file in #(
36697 */* | ?:*)
36698 mv -f confcache "$cache_file"$$ &&
36699 mv -f "$cache_file"$$ "$cache_file" ;; #(
36700 *)
36701 mv -f confcache "$cache_file" ;;
36702 esac
36703 fi
36704 fi
cristy3ed852e2009-09-05 21:47:34 +000036705 else
cristy8b350f62009-11-15 23:12:43 +000036706 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000036707$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
36708 fi
36709fi
36710rm -f confcache
36711
36712test "x$prefix" = xNONE && prefix=$ac_default_prefix
36713# Let make expand exec_prefix.
36714test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
36715
36716DEFS=-DHAVE_CONFIG_H
36717
36718ac_libobjs=
36719ac_ltlibobjs=
cristy98dddb52010-11-04 00:30:15 +000036720U=
cristy3ed852e2009-09-05 21:47:34 +000036721for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
36722 # 1. Remove the extension, and $U if already installed.
36723 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
36724 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
36725 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
36726 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000036727 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
36728 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000036729done
36730LIBOBJS=$ac_libobjs
36731
36732LTLIBOBJS=$ac_ltlibobjs
36733
36734
cristyc0890a62012-07-19 00:18:20 +000036735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
36736$as_echo_n "checking that generated files are newer than configure... " >&6; }
36737 if test -n "$am_sleep_pid"; then
36738 # Hide warnings about reused PIDs.
36739 wait $am_sleep_pid 2>/dev/null
36740 fi
36741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
36742$as_echo "done" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000036743 if test -n "$EXEEXT"; then
36744 am__EXEEXT_TRUE=
36745 am__EXEEXT_FALSE='#'
36746else
36747 am__EXEEXT_TRUE='#'
36748 am__EXEEXT_FALSE=
36749fi
cristy3ed852e2009-09-05 21:47:34 +000036750
cristy9af1cbf2014-12-28 22:03:09 +000036751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
36752$as_echo_n "checking that generated files are newer than configure... " >&6; }
36753 if test -n "$am_sleep_pid"; then
36754 # Hide warnings about reused PIDs.
36755 wait $am_sleep_pid 2>/dev/null
36756 fi
36757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
36758$as_echo "done" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000036759if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036760 as_fn_error $? "conditional \"AMDEP\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036761Usually this means the macro was only invoked conditionally." "$LINENO" 5
36762fi
36763if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036764 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036765Usually this means the macro was only invoked conditionally." "$LINENO" 5
36766fi
36767if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036768 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036769Usually this means the macro was only invoked conditionally." "$LINENO" 5
36770fi
36771if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036772 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036773Usually this means the macro was only invoked conditionally." "$LINENO" 5
36774fi
cristy9b86f202012-11-28 21:55:35 +000036775if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
36776 as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
36777Usually this means the macro was only invoked conditionally." "$LINENO" 5
36778fi
cristy73bd4a52010-10-05 11:24:23 +000036779if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036780 as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036781Usually this means the macro was only invoked conditionally." "$LINENO" 5
36782fi
36783if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036784 as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036785Usually this means the macro was only invoked conditionally." "$LINENO" 5
36786fi
36787if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036788 as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036789Usually this means the macro was only invoked conditionally." "$LINENO" 5
36790fi
36791if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036792 as_fn_error $? "conditional \"USING_CL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036793Usually this means the macro was only invoked conditionally." "$LINENO" 5
36794fi
cristy73bd4a52010-10-05 11:24:23 +000036795if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036796 as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036797Usually this means the macro was only invoked conditionally." "$LINENO" 5
36798fi
36799if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036800 as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036801Usually this means the macro was only invoked conditionally." "$LINENO" 5
36802fi
cristy73bd4a52010-10-05 11:24:23 +000036803if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036804 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036805Usually this means the macro was only invoked conditionally." "$LINENO" 5
36806fi
cristy71d8c202012-03-20 17:05:01 +000036807if test -z "${LEGACY_SUPPORT_TRUE}" && test -z "${LEGACY_SUPPORT_FALSE}"; then
36808 as_fn_error $? "conditional \"LEGACY_SUPPORT\" was never defined.
36809Usually this means the macro was only invoked conditionally." "$LINENO" 5
36810fi
cristy73bd4a52010-10-05 11:24:23 +000036811
36812if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036813 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036814Usually this means the macro was only invoked conditionally." "$LINENO" 5
36815fi
36816if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036817 as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036818Usually this means the macro was only invoked conditionally." "$LINENO" 5
36819fi
cristy3b0097d2014-11-04 15:34:47 +000036820if test -z "${HasJEMALLOC_TRUE}" && test -z "${HasJEMALLOC_FALSE}"; then
36821 as_fn_error $? "conditional \"HasJEMALLOC\" was never defined.
36822Usually this means the macro was only invoked conditionally." "$LINENO" 5
36823fi
cristy73bd4a52010-10-05 11:24:23 +000036824if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036825 as_fn_error $? "conditional \"HasUMEM\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036826Usually this means the macro was only invoked conditionally." "$LINENO" 5
36827fi
36828if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036829 as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036830Usually this means the macro was only invoked conditionally." "$LINENO" 5
36831fi
36832if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036833 as_fn_error $? "conditional \"X11_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036834Usually this means the macro was only invoked conditionally." "$LINENO" 5
36835fi
36836if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036837 as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036838Usually this means the macro was only invoked conditionally." "$LINENO" 5
36839fi
cristy5eef09f2012-10-16 12:08:28 +000036840if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
36841 as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
36842Usually this means the macro was only invoked conditionally." "$LINENO" 5
36843fi
cristy73bd4a52010-10-05 11:24:23 +000036844if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036845 as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036846Usually this means the macro was only invoked conditionally." "$LINENO" 5
36847fi
36848if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036849 as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036850Usually this means the macro was only invoked conditionally." "$LINENO" 5
36851fi
cristy73bd4a52010-10-05 11:24:23 +000036852if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036853 as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036854Usually this means the macro was only invoked conditionally." "$LINENO" 5
36855fi
36856if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036857 as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036858Usually this means the macro was only invoked conditionally." "$LINENO" 5
36859fi
cristy853d9902014-08-21 18:50:43 +000036860if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
36861 as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined.
36862Usually this means the macro was only invoked conditionally." "$LINENO" 5
36863fi
cristy73bd4a52010-10-05 11:24:23 +000036864if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036865 as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036866Usually this means the macro was only invoked conditionally." "$LINENO" 5
36867fi
36868if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036869 as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036870Usually this means the macro was only invoked conditionally." "$LINENO" 5
36871fi
36872if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036873 as_fn_error $? "conditional \"GS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036874Usually this means the macro was only invoked conditionally." "$LINENO" 5
36875fi
36876if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036877 as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036878Usually this means the macro was only invoked conditionally." "$LINENO" 5
36879fi
36880if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036881 as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036882Usually this means the macro was only invoked conditionally." "$LINENO" 5
36883fi
36884if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036885 as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036886Usually this means the macro was only invoked conditionally." "$LINENO" 5
36887fi
cristy73bd4a52010-10-05 11:24:23 +000036888if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036889 as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036890Usually this means the macro was only invoked conditionally." "$LINENO" 5
36891fi
cristy99db3872014-01-01 15:11:34 +000036892if test -z "${LIBOPENJP2_DELEGATE_TRUE}" && test -z "${LIBOPENJP2_DELEGATE_FALSE}"; then
36893 as_fn_error $? "conditional \"LIBOPENJP2_DELEGATE\" was never defined.
36894Usually this means the macro was only invoked conditionally." "$LINENO" 5
36895fi
cristy73bd4a52010-10-05 11:24:23 +000036896if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036897 as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036898Usually this means the macro was only invoked conditionally." "$LINENO" 5
36899fi
cristyfbb0ef02010-12-19 02:32:11 +000036900if test -z "${LZMA_DELEGATE_TRUE}" && test -z "${LZMA_DELEGATE_FALSE}"; then
36901 as_fn_error $? "conditional \"LZMA_DELEGATE\" was never defined.
36902Usually this means the macro was only invoked conditionally." "$LINENO" 5
36903fi
cristy73bd4a52010-10-05 11:24:23 +000036904if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036905 as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036906Usually this means the macro was only invoked conditionally." "$LINENO" 5
36907fi
cristy41cbe8a2011-10-27 01:35:18 +000036908if test -z "${PANGO_DELEGATE_TRUE}" && test -z "${PANGO_DELEGATE_FALSE}"; then
36909 as_fn_error $? "conditional \"PANGO_DELEGATE\" was never defined.
36910Usually this means the macro was only invoked conditionally." "$LINENO" 5
36911fi
cristya054b762012-03-26 23:16:00 +000036912if test -z "${PANGOCAIRO_DELEGATE_TRUE}" && test -z "${PANGOCAIRO_DELEGATE_FALSE}"; then
36913 as_fn_error $? "conditional \"PANGOCAIRO_DELEGATE\" was never defined.
cristy41cbe8a2011-10-27 01:35:18 +000036914Usually this means the macro was only invoked conditionally." "$LINENO" 5
36915fi
cristy73bd4a52010-10-05 11:24:23 +000036916if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036917 as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036918Usually this means the macro was only invoked conditionally." "$LINENO" 5
36919fi
36920if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036921 as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036922Usually this means the macro was only invoked conditionally." "$LINENO" 5
36923fi
36924if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036925 as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036926Usually this means the macro was only invoked conditionally." "$LINENO" 5
36927fi
36928if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036929 as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036930Usually this means the macro was only invoked conditionally." "$LINENO" 5
36931fi
cristyb1860752011-03-14 00:27:46 +000036932if test -z "${WEBP_DELEGATE_TRUE}" && test -z "${WEBP_DELEGATE_FALSE}"; then
36933 as_fn_error $? "conditional \"WEBP_DELEGATE\" was never defined.
36934Usually this means the macro was only invoked conditionally." "$LINENO" 5
36935fi
cristy73bd4a52010-10-05 11:24:23 +000036936if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036937 as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036938Usually this means the macro was only invoked conditionally." "$LINENO" 5
36939fi
36940if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036941 as_fn_error $? "conditional \"XML_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036942Usually this means the macro was only invoked conditionally." "$LINENO" 5
36943fi
cristydd17feb2014-03-05 02:06:32 +000036944if test -z "${INSTALL_DOC_TRUE}" && test -z "${INSTALL_DOC_FALSE}"; then
36945 as_fn_error $? "conditional \"INSTALL_DOC\" was never defined.
36946Usually this means the macro was only invoked conditionally." "$LINENO" 5
36947fi
cristy73bd4a52010-10-05 11:24:23 +000036948if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036949 as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036950Usually this means the macro was only invoked conditionally." "$LINENO" 5
36951fi
36952if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036953 as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036954Usually this means the macro was only invoked conditionally." "$LINENO" 5
36955fi
36956if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036957 as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036958Usually this means the macro was only invoked conditionally." "$LINENO" 5
36959fi
36960if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036961 as_fn_error $? "conditional \"WITH_PERL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036962Usually this means the macro was only invoked conditionally." "$LINENO" 5
36963fi
36964if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036965 as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036966Usually this means the macro was only invoked conditionally." "$LINENO" 5
36967fi
36968if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036969 as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036970Usually this means the macro was only invoked conditionally." "$LINENO" 5
36971fi
cristy3ed852e2009-09-05 21:47:34 +000036972
cristyda16f162011-02-19 23:52:17 +000036973: "${CONFIG_STATUS=./config.status}"
cristy3ed852e2009-09-05 21:47:34 +000036974ac_write_fail=0
36975ac_clean_files_save=$ac_clean_files
36976ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000036977{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000036978$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000036979as_write_fail=0
36980cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000036981#! $SHELL
36982# Generated by $as_me.
36983# Run this file to recreate the current configuration.
36984# Compiler output produced by configure, useful for debugging
36985# configure, is in config.log if it exists.
36986
36987debug=false
36988ac_cs_recheck=false
36989ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000036990
cristy8b350f62009-11-15 23:12:43 +000036991SHELL=\${CONFIG_SHELL-$SHELL}
36992export SHELL
36993_ASEOF
36994cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
36995## -------------------- ##
36996## M4sh Initialization. ##
36997## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000036998
36999# Be more Bourne compatible
37000DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000037001if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000037002 emulate sh
37003 NULLCMD=:
37004 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
37005 # is contrary to our usage. Disable this feature.
37006 alias -g '${1+"$@"}'='"$@"'
37007 setopt NO_GLOB_SUBST
37008else
cristy8b350f62009-11-15 23:12:43 +000037009 case `(set -o) 2>/dev/null` in #(
37010 *posix*) :
37011 set -o posix ;; #(
37012 *) :
37013 ;;
cristy3ed852e2009-09-05 21:47:34 +000037014esac
cristy3ed852e2009-09-05 21:47:34 +000037015fi
37016
37017
cristy3ed852e2009-09-05 21:47:34 +000037018as_nl='
37019'
37020export as_nl
37021# Printing a long string crashes Solaris 7 /usr/bin/printf.
37022as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
37023as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
37024as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000037025# Prefer a ksh shell builtin over an external printf program on Solaris,
37026# but without wasting forks for bash or zsh.
37027if test -z "$BASH_VERSION$ZSH_VERSION" \
37028 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
37029 as_echo='print -r --'
37030 as_echo_n='print -rn --'
37031elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000037032 as_echo='printf %s\n'
37033 as_echo_n='printf %s'
37034else
37035 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
37036 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
37037 as_echo_n='/usr/ucb/echo -n'
37038 else
37039 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
37040 as_echo_n_body='eval
37041 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000037042 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000037043 *"$as_nl"*)
37044 expr "X$arg" : "X\\(.*\\)$as_nl";
37045 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
37046 esac;
37047 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
37048 '
37049 export as_echo_n_body
37050 as_echo_n='sh -c $as_echo_n_body as_echo'
37051 fi
37052 export as_echo_body
37053 as_echo='sh -c $as_echo_body as_echo'
37054fi
37055
37056# The user is always right.
37057if test "${PATH_SEPARATOR+set}" != set; then
37058 PATH_SEPARATOR=:
37059 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
37060 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
37061 PATH_SEPARATOR=';'
37062 }
37063fi
37064
cristy3ed852e2009-09-05 21:47:34 +000037065
37066# IFS
37067# We need space, tab and new line, in precisely that order. Quoting is
37068# there to prevent editors from complaining about space-tab.
37069# (If _AS_PATH_WALK were called with IFS unset, it would disable word
37070# splitting by setting IFS to empty value.)
37071IFS=" "" $as_nl"
37072
37073# Find who we are. Look in the path if we contain no directory separator.
cristyda16f162011-02-19 23:52:17 +000037074as_myself=
cristy8b350f62009-11-15 23:12:43 +000037075case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000037076 *[\\/]* ) as_myself=$0 ;;
37077 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37078for as_dir in $PATH
37079do
37080 IFS=$as_save_IFS
37081 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000037082 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
37083 done
cristy3ed852e2009-09-05 21:47:34 +000037084IFS=$as_save_IFS
37085
37086 ;;
37087esac
37088# We did not find ourselves, most probably we were run as `sh COMMAND'
37089# in which case we are not to be found in the path.
37090if test "x$as_myself" = x; then
37091 as_myself=$0
37092fi
37093if test ! -f "$as_myself"; then
37094 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000037095 exit 1
cristy3ed852e2009-09-05 21:47:34 +000037096fi
37097
cristy8b350f62009-11-15 23:12:43 +000037098# Unset variables that we do not need and which cause bugs (e.g. in
37099# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
37100# suppresses any "Segmentation fault" message there. '((' could
37101# trigger a bug in pdksh 5.2.14.
37102for as_var in BASH_ENV ENV MAIL MAILPATH
37103do eval test x\${$as_var+set} = xset \
37104 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000037105done
37106PS1='$ '
37107PS2='> '
37108PS4='+ '
37109
37110# NLS nuisances.
37111LC_ALL=C
37112export LC_ALL
37113LANGUAGE=C
37114export LANGUAGE
37115
cristy8b350f62009-11-15 23:12:43 +000037116# CDPATH.
37117(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
37118
37119
cristy98dddb52010-11-04 00:30:15 +000037120# as_fn_error STATUS ERROR [LINENO LOG_FD]
37121# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +000037122# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
37123# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +000037124# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +000037125as_fn_error ()
37126{
cristy98dddb52010-11-04 00:30:15 +000037127 as_status=$1; test $as_status -eq 0 && as_status=1
37128 if test "$4"; then
37129 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
37130 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +000037131 fi
cristy98dddb52010-11-04 00:30:15 +000037132 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +000037133 as_fn_exit $as_status
37134} # as_fn_error
37135
37136
37137# as_fn_set_status STATUS
37138# -----------------------
37139# Set $? to STATUS, without forking.
37140as_fn_set_status ()
37141{
37142 return $1
37143} # as_fn_set_status
37144
37145# as_fn_exit STATUS
37146# -----------------
37147# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
37148as_fn_exit ()
37149{
37150 set +e
37151 as_fn_set_status $1
37152 exit $1
37153} # as_fn_exit
37154
37155# as_fn_unset VAR
37156# ---------------
37157# Portably unset VAR.
37158as_fn_unset ()
37159{
37160 { eval $1=; unset $1;}
37161}
37162as_unset=as_fn_unset
37163# as_fn_append VAR VALUE
37164# ----------------------
37165# Append the text in VALUE to the end of the definition contained in VAR. Take
37166# advantage of any shell optimizations that allow amortized linear growth over
37167# repeated appends, instead of the typical quadratic growth present in naive
37168# implementations.
37169if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
37170 eval 'as_fn_append ()
37171 {
37172 eval $1+=\$2
37173 }'
37174else
37175 as_fn_append ()
37176 {
37177 eval $1=\$$1\$2
37178 }
37179fi # as_fn_append
37180
37181# as_fn_arith ARG...
37182# ------------------
37183# Perform arithmetic evaluation on the ARGs, and store the result in the
37184# global $as_val. Take advantage of shells that can avoid forks. The arguments
37185# must be portable across $(()) and expr.
37186if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
37187 eval 'as_fn_arith ()
37188 {
37189 as_val=$(( $* ))
37190 }'
37191else
37192 as_fn_arith ()
37193 {
37194 as_val=`expr "$@" || test $? -eq 1`
37195 }
37196fi # as_fn_arith
37197
37198
cristy3ed852e2009-09-05 21:47:34 +000037199if expr a : '\(a\)' >/dev/null 2>&1 &&
37200 test "X`expr 00001 : '.*\(...\)'`" = X001; then
37201 as_expr=expr
37202else
37203 as_expr=false
37204fi
37205
37206if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
37207 as_basename=basename
37208else
37209 as_basename=false
37210fi
37211
cristy8b350f62009-11-15 23:12:43 +000037212if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
37213 as_dirname=dirname
37214else
37215 as_dirname=false
37216fi
cristy3ed852e2009-09-05 21:47:34 +000037217
cristy3ed852e2009-09-05 21:47:34 +000037218as_me=`$as_basename -- "$0" ||
37219$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
37220 X"$0" : 'X\(//\)$' \| \
37221 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
37222$as_echo X/"$0" |
37223 sed '/^.*\/\([^/][^/]*\)\/*$/{
37224 s//\1/
37225 q
37226 }
37227 /^X\/\(\/\/\)$/{
37228 s//\1/
37229 q
37230 }
37231 /^X\/\(\/\).*/{
37232 s//\1/
37233 q
37234 }
37235 s/.*/./; q'`
37236
cristy8b350f62009-11-15 23:12:43 +000037237# Avoid depending upon Character Ranges.
37238as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37239as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
37240as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37241as_cr_digits='0123456789'
37242as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000037243
37244ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000037245case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000037246-n*)
cristy8b350f62009-11-15 23:12:43 +000037247 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000037248 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000037249 xy) ECHO_C='\c';;
37250 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
37251 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000037252 esac;;
37253*)
37254 ECHO_N='-n';;
37255esac
cristy3ed852e2009-09-05 21:47:34 +000037256
37257rm -f conf$$ conf$$.exe conf$$.file
37258if test -d conf$$.dir; then
37259 rm -f conf$$.dir/conf$$.file
37260else
37261 rm -f conf$$.dir
37262 mkdir conf$$.dir 2>/dev/null
37263fi
37264if (echo >conf$$.file) 2>/dev/null; then
37265 if ln -s conf$$.file conf$$ 2>/dev/null; then
37266 as_ln_s='ln -s'
37267 # ... but there are two gotchas:
37268 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
37269 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
cristy14fefe52012-05-21 00:59:18 +000037270 # In both cases, we have to default to `cp -pR'.
cristy3ed852e2009-09-05 21:47:34 +000037271 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
cristy14fefe52012-05-21 00:59:18 +000037272 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000037273 elif ln conf$$.file conf$$ 2>/dev/null; then
37274 as_ln_s=ln
37275 else
cristy14fefe52012-05-21 00:59:18 +000037276 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000037277 fi
37278else
cristy14fefe52012-05-21 00:59:18 +000037279 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000037280fi
37281rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
37282rmdir conf$$.dir 2>/dev/null
37283
cristy8b350f62009-11-15 23:12:43 +000037284
37285# as_fn_mkdir_p
37286# -------------
37287# Create "$as_dir" as a directory, including parents if necessary.
37288as_fn_mkdir_p ()
37289{
37290
37291 case $as_dir in #(
37292 -*) as_dir=./$as_dir;;
37293 esac
37294 test -d "$as_dir" || eval $as_mkdir_p || {
37295 as_dirs=
37296 while :; do
37297 case $as_dir in #(
37298 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
37299 *) as_qdir=$as_dir;;
37300 esac
37301 as_dirs="'$as_qdir' $as_dirs"
37302 as_dir=`$as_dirname -- "$as_dir" ||
37303$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37304 X"$as_dir" : 'X\(//\)[^/]' \| \
37305 X"$as_dir" : 'X\(//\)$' \| \
37306 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
37307$as_echo X"$as_dir" |
37308 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37309 s//\1/
37310 q
37311 }
37312 /^X\(\/\/\)[^/].*/{
37313 s//\1/
37314 q
37315 }
37316 /^X\(\/\/\)$/{
37317 s//\1/
37318 q
37319 }
37320 /^X\(\/\).*/{
37321 s//\1/
37322 q
37323 }
37324 s/.*/./; q'`
37325 test -d "$as_dir" && break
37326 done
37327 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +000037328 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +000037329
37330
37331} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000037332if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000037333 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000037334else
37335 test -d ./-p && rmdir ./-p
37336 as_mkdir_p=false
37337fi
37338
cristy14fefe52012-05-21 00:59:18 +000037339
37340# as_fn_executable_p FILE
37341# -----------------------
37342# Test if FILE is an executable regular file.
37343as_fn_executable_p ()
37344{
37345 test -f "$1" && test -x "$1"
37346} # as_fn_executable_p
37347as_test_x='test -x'
37348as_executable_p=as_fn_executable_p
cristy3ed852e2009-09-05 21:47:34 +000037349
37350# Sed expression to map a string onto a valid CPP name.
37351as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
37352
37353# Sed expression to map a string onto a valid variable name.
37354as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
37355
37356
37357exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000037358## ----------------------------------- ##
37359## Main body of $CONFIG_STATUS script. ##
37360## ----------------------------------- ##
37361_ASEOF
37362test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000037363
cristy8b350f62009-11-15 23:12:43 +000037364cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37365# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000037366# report actual input values of CONFIG_FILES etc. instead of their
37367# values after options handling.
37368ac_log="
cristy29eb34e2011-10-16 00:46:08 +000037369This file was extended by ImageMagick $as_me 7.0.0-0, which was
cristy14fefe52012-05-21 00:59:18 +000037370generated by GNU Autoconf 2.69. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000037371
37372 CONFIG_FILES = $CONFIG_FILES
37373 CONFIG_HEADERS = $CONFIG_HEADERS
37374 CONFIG_LINKS = $CONFIG_LINKS
37375 CONFIG_COMMANDS = $CONFIG_COMMANDS
37376 $ $0 $@
37377
37378on `(hostname || uname -n) 2>/dev/null | sed 1q`
37379"
37380
37381_ACEOF
37382
37383case $ac_config_files in *"
37384"*) set x $ac_config_files; shift; ac_config_files=$*;;
37385esac
37386
37387case $ac_config_headers in *"
37388"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
37389esac
37390
37391
37392cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37393# Files that config.status was made for.
37394config_files="$ac_config_files"
37395config_headers="$ac_config_headers"
37396config_commands="$ac_config_commands"
37397
37398_ACEOF
37399
37400cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37401ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000037402\`$as_me' instantiates files and other configuration actions
37403from templates according to the current configuration. Unless the files
37404and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000037405
cristy8b350f62009-11-15 23:12:43 +000037406Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000037407
37408 -h, --help print this help, then exit
37409 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000037410 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000037411 -q, --quiet, --silent
37412 do not print progress messages
37413 -d, --debug don't remove temporary files
37414 --recheck update $as_me by reconfiguring in the same conditions
37415 --file=FILE[:TEMPLATE]
37416 instantiate the configuration file FILE
37417 --header=FILE[:TEMPLATE]
37418 instantiate the configuration header FILE
37419
37420Configuration files:
37421$config_files
37422
37423Configuration headers:
37424$config_headers
37425
37426Configuration commands:
37427$config_commands
37428
cristy8b350f62009-11-15 23:12:43 +000037429Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000037430
37431_ACEOF
37432cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000037433ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000037434ac_cs_version="\\
cristy29eb34e2011-10-16 00:46:08 +000037435ImageMagick config.status 7.0.0-0
cristy14fefe52012-05-21 00:59:18 +000037436configured by $0, generated by GNU Autoconf 2.69,
cristycd4c5312009-11-22 01:19:08 +000037437 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000037438
cristy14fefe52012-05-21 00:59:18 +000037439Copyright (C) 2012 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000037440This config.status script is free software; the Free Software Foundation
37441gives unlimited permission to copy, distribute and modify it."
37442
37443ac_pwd='$ac_pwd'
37444srcdir='$srcdir'
37445INSTALL='$INSTALL'
cristy73bd4a52010-10-05 11:24:23 +000037446MKDIR_P='$MKDIR_P'
37447AWK='$AWK'
cristy3ed852e2009-09-05 21:47:34 +000037448test -n "\$AWK" || AWK=awk
37449_ACEOF
37450
37451cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37452# The default lists apply if the user does not specify any file.
37453ac_need_defaults=:
37454while test $# != 0
37455do
37456 case $1 in
cristyda16f162011-02-19 23:52:17 +000037457 --*=?*)
cristy3ed852e2009-09-05 21:47:34 +000037458 ac_option=`expr "X$1" : 'X\([^=]*\)='`
37459 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
37460 ac_shift=:
37461 ;;
cristyda16f162011-02-19 23:52:17 +000037462 --*=)
37463 ac_option=`expr "X$1" : 'X\([^=]*\)='`
37464 ac_optarg=
37465 ac_shift=:
37466 ;;
cristy3ed852e2009-09-05 21:47:34 +000037467 *)
37468 ac_option=$1
37469 ac_optarg=$2
37470 ac_shift=shift
37471 ;;
37472 esac
37473
37474 case $ac_option in
37475 # Handling of the options.
37476 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
37477 ac_cs_recheck=: ;;
37478 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
37479 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000037480 --config | --confi | --conf | --con | --co | --c )
37481 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000037482 --debug | --debu | --deb | --de | --d | -d )
37483 debug=: ;;
37484 --file | --fil | --fi | --f )
37485 $ac_shift
37486 case $ac_optarg in
37487 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
cristyda16f162011-02-19 23:52:17 +000037488 '') as_fn_error $? "missing file argument" ;;
cristy3ed852e2009-09-05 21:47:34 +000037489 esac
cristy8b350f62009-11-15 23:12:43 +000037490 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000037491 ac_need_defaults=false;;
37492 --header | --heade | --head | --hea )
37493 $ac_shift
37494 case $ac_optarg in
37495 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
37496 esac
cristy8b350f62009-11-15 23:12:43 +000037497 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000037498 ac_need_defaults=false;;
37499 --he | --h)
37500 # Conflict between --help and --header
cristy98dddb52010-11-04 00:30:15 +000037501 as_fn_error $? "ambiguous option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000037502Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000037503 --help | --hel | -h )
37504 $as_echo "$ac_cs_usage"; exit ;;
37505 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
37506 | -silent | --silent | --silen | --sile | --sil | --si | --s)
37507 ac_cs_silent=: ;;
37508
37509 # This is an error.
cristy98dddb52010-11-04 00:30:15 +000037510 -*) as_fn_error $? "unrecognized option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000037511Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000037512
cristy8b350f62009-11-15 23:12:43 +000037513 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000037514 ac_need_defaults=false ;;
37515
37516 esac
37517 shift
37518done
37519
37520ac_configure_extra_args=
37521
37522if $ac_cs_silent; then
37523 exec 6>/dev/null
37524 ac_configure_extra_args="$ac_configure_extra_args --silent"
37525fi
37526
37527_ACEOF
37528cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37529if \$ac_cs_recheck; then
cristy14fefe52012-05-21 00:59:18 +000037530 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
cristy3ed852e2009-09-05 21:47:34 +000037531 shift
37532 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
37533 CONFIG_SHELL='$SHELL'
37534 export CONFIG_SHELL
37535 exec "\$@"
37536fi
37537
37538_ACEOF
37539cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37540exec 5>>config.log
37541{
37542 echo
37543 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
37544## Running $as_me. ##
37545_ASBOX
37546 $as_echo "$ac_log"
37547} >&5
37548
37549_ACEOF
37550cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristy73bd4a52010-10-05 11:24:23 +000037551#
37552# INIT-COMMANDS
37553#
37554PACKAGE="$PACKAGE"
37555AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
37556
37557
37558# The HP-UX ksh and POSIX shell print the target directory to stdout
37559# if CDPATH is set.
37560(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
37561
37562sed_quote_subst='$sed_quote_subst'
37563double_quote_subst='$double_quote_subst'
37564delay_variable_subst='$delay_variable_subst'
cristy0c60a692010-11-04 01:09:47 +000037565SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
37566Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
37567GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
37568EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
37569FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
37570SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
37571ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
37572LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
37573macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
37574macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
37575AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
37576DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
37577OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
37578enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
37579enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
37580pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
37581enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
cristy99bd5232011-12-07 14:38:20 +000037582PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037583host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
37584host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
37585host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
37586build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
37587build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
37588build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
37589NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
37590LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
37591max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
37592ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
37593exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
37594lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
37595lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
37596lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037597lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
37598lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037599reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
37600reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
37601deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
37602file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037603file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
37604want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
37605sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037606AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
37607AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037608archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037609STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
37610RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
37611old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
37612old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
37613old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
37614lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
37615CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
37616CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
37617compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
37618GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
37619lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
37620lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
37621lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
37622lt_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 +000037623nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
37624lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037625objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
37626MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
37627lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037628lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037629lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037630lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
37631lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
37632need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037633MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037634DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
37635NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
37636LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
37637OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
37638OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
37639libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
37640shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
37641extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
37642archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
37643enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
37644export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
37645whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
37646compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
37647old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
37648old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
37649archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
37650archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
37651module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
37652module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
37653with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
37654allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
37655no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
37656hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037657hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
37658hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
37659hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
37660hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
37661hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
37662hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
37663inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
37664link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037665always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
37666export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
37667exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
37668include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
37669prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037670postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037671file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
37672variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
37673need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
37674need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
37675version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
37676runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
37677shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
37678shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
37679libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
37680library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
37681soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
37682install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
37683postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
37684postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
37685finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
37686finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
37687hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
37688sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
37689sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
37690hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
37691enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
37692enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
37693enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
37694old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
37695striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
37696compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
37697predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
37698postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
37699predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
37700postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
37701compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
37702LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
37703reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
37704reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37705old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37706compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
37707GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
37708lt_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 +000037709lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037710lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037711lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
37712lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
37713archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
37714enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
37715export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
37716whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
37717compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
37718old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37719old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37720archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37721archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37722module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37723module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37724with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
37725allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
37726no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
37727hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037728hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
37729hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
37730hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
37731hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
37732hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
37733hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
37734inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
37735link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037736always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
37737export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37738exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
37739include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
37740prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037741postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037742file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
37743hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
37744compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
37745predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
37746postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
37747predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
37748postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
37749compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
cristy73bd4a52010-10-05 11:24:23 +000037750
37751LTCC='$LTCC'
37752LTCFLAGS='$LTCFLAGS'
37753compiler='$compiler_DEFAULT'
37754
cristy0c60a692010-11-04 01:09:47 +000037755# A function that is used when there is no print builtin or printf.
37756func_fallback_echo ()
37757{
37758 eval 'cat <<_LTECHO_EOF
37759\$1
37760_LTECHO_EOF'
37761}
37762
cristy73bd4a52010-10-05 11:24:23 +000037763# Quote evaled strings.
37764for var in SED \
37765GREP \
37766EGREP \
37767FGREP \
cristy0c60a692010-11-04 01:09:47 +000037768SHELL \
37769ECHO \
cristy73bd4a52010-10-05 11:24:23 +000037770LD \
cristy0c60a692010-11-04 01:09:47 +000037771AS \
37772DLLTOOL \
37773OBJDUMP \
cristy99bd5232011-12-07 14:38:20 +000037774PATH_SEPARATOR \
cristy73bd4a52010-10-05 11:24:23 +000037775NM \
37776LN_S \
37777lt_SP2NL \
37778lt_NL2SP \
37779reload_flag \
37780deplibs_check_method \
37781file_magic_cmd \
cristyda16f162011-02-19 23:52:17 +000037782file_magic_glob \
37783want_nocaseglob \
37784sharedlib_from_linklib_cmd \
cristy73bd4a52010-10-05 11:24:23 +000037785AR \
37786AR_FLAGS \
cristyda16f162011-02-19 23:52:17 +000037787archiver_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000037788STRIP \
37789RANLIB \
37790CC \
37791CFLAGS \
37792compiler \
37793lt_cv_sys_global_symbol_pipe \
37794lt_cv_sys_global_symbol_to_cdecl \
37795lt_cv_sys_global_symbol_to_c_name_address \
37796lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cristyda16f162011-02-19 23:52:17 +000037797nm_file_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000037798lt_prog_compiler_no_builtin_flag \
cristy73bd4a52010-10-05 11:24:23 +000037799lt_prog_compiler_pic \
cristyda16f162011-02-19 23:52:17 +000037800lt_prog_compiler_wl \
cristy73bd4a52010-10-05 11:24:23 +000037801lt_prog_compiler_static \
37802lt_cv_prog_compiler_c_o \
37803need_locks \
cristyda16f162011-02-19 23:52:17 +000037804MANIFEST_TOOL \
cristy73bd4a52010-10-05 11:24:23 +000037805DSYMUTIL \
37806NMEDIT \
37807LIPO \
37808OTOOL \
37809OTOOL64 \
37810shrext_cmds \
37811export_dynamic_flag_spec \
37812whole_archive_flag_spec \
37813compiler_needs_object \
37814with_gnu_ld \
37815allow_undefined_flag \
37816no_undefined_flag \
37817hardcode_libdir_flag_spec \
cristy73bd4a52010-10-05 11:24:23 +000037818hardcode_libdir_separator \
cristy73bd4a52010-10-05 11:24:23 +000037819exclude_expsyms \
37820include_expsyms \
37821file_list_spec \
37822variables_saved_for_relink \
37823libname_spec \
37824library_names_spec \
37825soname_spec \
cristy0c60a692010-11-04 01:09:47 +000037826install_override_mode \
cristy73bd4a52010-10-05 11:24:23 +000037827finish_eval \
37828old_striplib \
37829striplib \
37830compiler_lib_search_dirs \
37831predep_objects \
37832postdep_objects \
37833predeps \
37834postdeps \
37835compiler_lib_search_path \
37836LD_CXX \
cristy0c60a692010-11-04 01:09:47 +000037837reload_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037838compiler_CXX \
37839lt_prog_compiler_no_builtin_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037840lt_prog_compiler_pic_CXX \
cristyda16f162011-02-19 23:52:17 +000037841lt_prog_compiler_wl_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037842lt_prog_compiler_static_CXX \
37843lt_cv_prog_compiler_c_o_CXX \
37844export_dynamic_flag_spec_CXX \
37845whole_archive_flag_spec_CXX \
37846compiler_needs_object_CXX \
37847with_gnu_ld_CXX \
37848allow_undefined_flag_CXX \
37849no_undefined_flag_CXX \
37850hardcode_libdir_flag_spec_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037851hardcode_libdir_separator_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037852exclude_expsyms_CXX \
37853include_expsyms_CXX \
37854file_list_spec_CXX \
37855compiler_lib_search_dirs_CXX \
37856predep_objects_CXX \
37857postdep_objects_CXX \
37858predeps_CXX \
37859postdeps_CXX \
37860compiler_lib_search_path_CXX; do
cristy0c60a692010-11-04 01:09:47 +000037861 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000037862 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000037863 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000037864 ;;
37865 *)
37866 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
37867 ;;
37868 esac
37869done
37870
37871# Double-quote double-evaled strings.
37872for var in reload_cmds \
37873old_postinstall_cmds \
37874old_postuninstall_cmds \
37875old_archive_cmds \
37876extract_expsyms_cmds \
37877old_archive_from_new_cmds \
37878old_archive_from_expsyms_cmds \
37879archive_cmds \
37880archive_expsym_cmds \
37881module_cmds \
37882module_expsym_cmds \
37883export_symbols_cmds \
37884prelink_cmds \
cristyda16f162011-02-19 23:52:17 +000037885postlink_cmds \
cristy73bd4a52010-10-05 11:24:23 +000037886postinstall_cmds \
37887postuninstall_cmds \
37888finish_cmds \
37889sys_lib_search_path_spec \
37890sys_lib_dlsearch_path_spec \
cristy0c60a692010-11-04 01:09:47 +000037891reload_cmds_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037892old_archive_cmds_CXX \
37893old_archive_from_new_cmds_CXX \
37894old_archive_from_expsyms_cmds_CXX \
37895archive_cmds_CXX \
37896archive_expsym_cmds_CXX \
37897module_cmds_CXX \
37898module_expsym_cmds_CXX \
37899export_symbols_cmds_CXX \
cristyda16f162011-02-19 23:52:17 +000037900prelink_cmds_CXX \
37901postlink_cmds_CXX; do
cristy0c60a692010-11-04 01:09:47 +000037902 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000037903 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000037904 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000037905 ;;
37906 *)
37907 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
37908 ;;
37909 esac
37910done
37911
cristy73bd4a52010-10-05 11:24:23 +000037912ac_aux_dir='$ac_aux_dir'
37913xsi_shell='$xsi_shell'
37914lt_shell_append='$lt_shell_append'
37915
37916# See if we are running on zsh, and set the options which allow our
37917# commands through without removal of \ escapes INIT.
37918if test -n "\${ZSH_VERSION+set}" ; then
37919 setopt NO_GLOB_SUBST
37920fi
37921
37922
37923 PACKAGE='$PACKAGE'
37924 VERSION='$VERSION'
37925 TIMESTAMP='$TIMESTAMP'
37926 RM='$RM'
37927 ofile='$ofile'
37928
37929
37930
37931
37932
37933
cristy3ed852e2009-09-05 21:47:34 +000037934_ACEOF
37935
37936cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37937
37938# Handling of arguments.
37939for ac_config_target in $ac_config_targets
37940do
37941 case $ac_config_target in
37942 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
cristy01ff9f32012-12-01 18:15:29 +000037943 "MagickCore/magick-baseconfig.h") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore/magick-baseconfig.h" ;;
cristy9af1cbf2014-12-28 22:03:09 +000037944 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
37945 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
37946 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
37947 "magick.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS magick.sh.in" ;;
37948 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
37949 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
37950 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
37951 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
cristy305c5dd2012-09-13 00:30:13 +000037952 "common.shi") CONFIG_FILES="$CONFIG_FILES common.shi" ;;
cristy3ed852e2009-09-05 21:47:34 +000037953 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
37954 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
37955 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
37956 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
37957 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
cristy2df32802012-09-17 01:15:28 +000037958 "config/Magick++.dox") CONFIG_FILES="$CONFIG_FILES config/Magick++.dox" ;;
cristy5a3dc992014-12-05 19:50:04 +000037959 "config/type-apple.xml") CONFIG_FILES="$CONFIG_FILES config/type-apple.xml" ;;
cristy430a7312010-01-21 20:44:04 +000037960 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
cristy3ed852e2009-09-05 21:47:34 +000037961 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
37962 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
37963 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
37964 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
37965 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
cristy4c08aed2011-07-01 19:47:50 +000037966 "MagickCore/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/ImageMagick.pc" ;;
cristy3ed852e2009-09-05 21:47:34 +000037967 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
cristy4c08aed2011-07-01 19:47:50 +000037968 "MagickCore/MagickCore-config") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore-config" ;;
37969 "MagickCore/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore.pc" ;;
37970 "MagickCore/version.h") CONFIG_FILES="$CONFIG_FILES MagickCore/version.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000037971 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
37972 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
cristy3ed852e2009-09-05 21:47:34 +000037973 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
cristy8d0ff762013-03-10 20:33:28 +000037974 "PerlMagick/default/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/default/Magick.pm" ;;
cristy3e049f82013-02-13 13:26:53 +000037975 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
cristy8d0ff762013-03-10 20:33:28 +000037976 "PerlMagick/default/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/default/Makefile.PL" ;;
cristycf0cbcc2013-02-13 23:32:58 +000037977 "PerlMagick/quantum/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/Makefile.PL" ;;
37978 "PerlMagick/quantum/quantum.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/quantum.pm" ;;
37979 "PerlMagick/quantum/quantum.xs") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/quantum.xs" ;;
37980 "PerlMagick/quantum/typemap") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/typemap" ;;
cristy3ed852e2009-09-05 21:47:34 +000037981 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
37982 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
37983 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
37984 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
37985 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
37986 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
37987 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
37988 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
37989 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
37990 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
37991 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
37992 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
cristy4c08aed2011-07-01 19:47:50 +000037993 "MagickWand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand-config" ;;
37994 "MagickWand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand.pc" ;;
cristy3ed852e2009-09-05 21:47:34 +000037995
cristy98dddb52010-11-04 00:30:15 +000037996 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037997 esac
37998done
37999
38000
38001# If the user did not use the arguments to specify the items to instantiate,
38002# then the envvar interface is used. Set only those that are not.
38003# We use the long form for the default assignment because of an extremely
38004# bizarre bug on SunOS 4.1.3.
38005if $ac_need_defaults; then
38006 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
38007 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
38008 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
38009fi
38010
38011# Have a temporary directory for convenience. Make it in the build tree
38012# simply because there is no reason against having it here, and in addition,
38013# creating and moving files from /tmp can sometimes cause problems.
38014# Hook for its removal unless debugging.
38015# Note that there is a small window in which the directory will not be cleaned:
38016# after its creation but before its name has been assigned to `$tmp'.
38017$debug ||
38018{
cristyda16f162011-02-19 23:52:17 +000038019 tmp= ac_tmp=
cristy3ed852e2009-09-05 21:47:34 +000038020 trap 'exit_status=$?
cristyda16f162011-02-19 23:52:17 +000038021 : "${ac_tmp:=$tmp}"
38022 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
cristy3ed852e2009-09-05 21:47:34 +000038023' 0
cristy8b350f62009-11-15 23:12:43 +000038024 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000038025}
38026# Create a (secure) tmp directory for tmp files.
38027
38028{
38029 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
cristyda16f162011-02-19 23:52:17 +000038030 test -d "$tmp"
cristy3ed852e2009-09-05 21:47:34 +000038031} ||
38032{
38033 tmp=./conf$$-$RANDOM
38034 (umask 077 && mkdir "$tmp")
cristy98dddb52010-11-04 00:30:15 +000038035} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000038036ac_tmp=$tmp
cristy3ed852e2009-09-05 21:47:34 +000038037
38038# Set up the scripts for CONFIG_FILES section.
38039# No need to generate them if there are no CONFIG_FILES.
38040# This happens for instance with `./config.status config.h'.
38041if test -n "$CONFIG_FILES"; then
38042
38043
cristy8b350f62009-11-15 23:12:43 +000038044ac_cr=`echo X | tr X '\015'`
38045# On cygwin, bash can eat \r inside `` if the user requested igncr.
38046# But we know of no other shell where ac_cr would be empty at this
38047# point, so we can use a bashism as a fallback.
38048if test "x$ac_cr" = x; then
38049 eval ac_cr=\$\'\\r\'
38050fi
cristy3ed852e2009-09-05 21:47:34 +000038051ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
38052if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristy98dddb52010-11-04 00:30:15 +000038053 ac_cs_awk_cr='\\r'
cristy3ed852e2009-09-05 21:47:34 +000038054else
38055 ac_cs_awk_cr=$ac_cr
38056fi
38057
cristyda16f162011-02-19 23:52:17 +000038058echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
cristy3ed852e2009-09-05 21:47:34 +000038059_ACEOF
38060
38061
38062{
38063 echo "cat >conf$$subs.awk <<_ACEOF" &&
38064 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
38065 echo "_ACEOF"
38066} >conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000038067 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
38068ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
cristy3ed852e2009-09-05 21:47:34 +000038069ac_delim='%!_!# '
38070for ac_last_try in false false false false false :; do
38071 . ./conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000038072 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038073
38074 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
38075 if test $ac_delim_n = $ac_delim_num; then
38076 break
38077 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000038078 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038079 else
38080 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
38081 fi
38082done
38083rm -f conf$$subs.sh
38084
38085cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristyda16f162011-02-19 23:52:17 +000038086cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000038087_ACEOF
38088sed -n '
38089h
38090s/^/S["/; s/!.*/"]=/
38091p
38092g
38093s/^[^!]*!//
38094:repl
38095t repl
38096s/'"$ac_delim"'$//
38097t delim
38098:nl
38099h
cristycd4c5312009-11-22 01:19:08 +000038100s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000038101t more1
38102s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
38103p
38104n
38105b repl
38106:more1
38107s/["\\]/\\&/g; s/^/"/; s/$/"\\/
38108p
38109g
38110s/.\{148\}//
38111t nl
38112:delim
38113h
cristycd4c5312009-11-22 01:19:08 +000038114s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000038115t more2
38116s/["\\]/\\&/g; s/^/"/; s/$/"/
38117p
38118b
38119:more2
38120s/["\\]/\\&/g; s/^/"/; s/$/"\\/
38121p
38122g
38123s/.\{148\}//
38124t delim
38125' <conf$$subs.awk | sed '
38126/^[^""]/{
38127 N
38128 s/\n//
38129}
38130' >>$CONFIG_STATUS || ac_write_fail=1
38131rm -f conf$$subs.awk
38132cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38133_ACAWK
cristyda16f162011-02-19 23:52:17 +000038134cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000038135 for (key in S) S_is_set[key] = 1
38136 FS = ""
38137
38138}
38139{
38140 line = $ 0
38141 nfields = split(line, field, "@")
38142 substed = 0
38143 len = length(field[1])
38144 for (i = 2; i < nfields; i++) {
38145 key = field[i]
38146 keylen = length(key)
38147 if (S_is_set[key]) {
38148 value = S[key]
38149 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
38150 len += length(value) + length(field[++i])
38151 substed = 1
38152 } else
38153 len += 1 + keylen
38154 }
38155
38156 print line
38157}
38158
38159_ACAWK
38160_ACEOF
38161cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38162if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
38163 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
38164else
38165 cat
cristyda16f162011-02-19 23:52:17 +000038166fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
cristy98dddb52010-11-04 00:30:15 +000038167 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038168_ACEOF
38169
cristy98dddb52010-11-04 00:30:15 +000038170# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
38171# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
cristy3ed852e2009-09-05 21:47:34 +000038172# trailing colons and then remove the whole line if VPATH becomes empty
38173# (actually we leave an empty line to preserve line numbers).
38174if test "x$srcdir" = x.; then
cristy98dddb52010-11-04 00:30:15 +000038175 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
38176h
38177s///
38178s/^/:/
38179s/[ ]*$/:/
38180s/:\$(srcdir):/:/g
38181s/:\${srcdir}:/:/g
38182s/:@srcdir@:/:/g
38183s/^:*//
cristy3ed852e2009-09-05 21:47:34 +000038184s/:*$//
cristy98dddb52010-11-04 00:30:15 +000038185x
38186s/\(=[ ]*\).*/\1/
38187G
38188s/\n//
cristy3ed852e2009-09-05 21:47:34 +000038189s/^[^=]*=[ ]*$//
38190}'
38191fi
38192
38193cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38194fi # test -n "$CONFIG_FILES"
38195
38196# Set up the scripts for CONFIG_HEADERS section.
38197# No need to generate them if there are no CONFIG_HEADERS.
38198# This happens for instance with `./config.status Makefile'.
38199if test -n "$CONFIG_HEADERS"; then
cristyda16f162011-02-19 23:52:17 +000038200cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
cristy3ed852e2009-09-05 21:47:34 +000038201BEGIN {
38202_ACEOF
38203
38204# Transform confdefs.h into an awk script `defines.awk', embedded as
38205# here-document in config.status, that substitutes the proper values into
38206# config.h.in to produce config.h.
38207
38208# Create a delimiter string that does not exist in confdefs.h, to ease
38209# handling of long lines.
38210ac_delim='%!_!# '
38211for ac_last_try in false false :; do
cristyda16f162011-02-19 23:52:17 +000038212 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
38213 if test -z "$ac_tt"; then
cristy3ed852e2009-09-05 21:47:34 +000038214 break
38215 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000038216 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038217 else
38218 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
38219 fi
38220done
38221
38222# For the awk script, D is an array of macro values keyed by name,
38223# likewise P contains macro parameters if any. Preserve backslash
38224# newline sequences.
38225
38226ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
38227sed -n '
38228s/.\{148\}/&'"$ac_delim"'/g
38229t rset
38230:rset
38231s/^[ ]*#[ ]*define[ ][ ]*/ /
38232t def
38233d
38234:def
38235s/\\$//
38236t bsnl
38237s/["\\]/\\&/g
38238s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
38239D["\1"]=" \3"/p
38240s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
38241d
38242:bsnl
38243s/["\\]/\\&/g
38244s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
38245D["\1"]=" \3\\\\\\n"\\/p
38246t cont
38247s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
38248t cont
38249d
38250:cont
38251n
38252s/.\{148\}/&'"$ac_delim"'/g
38253t clear
38254:clear
38255s/\\$//
38256t bsnlc
38257s/["\\]/\\&/g; s/^/"/; s/$/"/p
38258d
38259:bsnlc
38260s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
38261b cont
38262' <confdefs.h | sed '
38263s/'"$ac_delim"'/"\\\
38264"/g' >>$CONFIG_STATUS || ac_write_fail=1
38265
38266cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38267 for (key in D) D_is_set[key] = 1
38268 FS = ""
38269}
38270/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
38271 line = \$ 0
38272 split(line, arg, " ")
38273 if (arg[1] == "#") {
38274 defundef = arg[2]
38275 mac1 = arg[3]
38276 } else {
38277 defundef = substr(arg[1], 2)
38278 mac1 = arg[2]
38279 }
38280 split(mac1, mac2, "(") #)
38281 macro = mac2[1]
38282 prefix = substr(line, 1, index(line, defundef) - 1)
38283 if (D_is_set[macro]) {
38284 # Preserve the white space surrounding the "#".
38285 print prefix "define", macro P[macro] D[macro]
38286 next
38287 } else {
38288 # Replace #undef with comments. This is necessary, for example,
38289 # in the case of _POSIX_SOURCE, which is predefined and required
38290 # on some systems where configure will not decide to define it.
38291 if (defundef == "undef") {
38292 print "/*", prefix defundef, macro, "*/"
38293 next
38294 }
38295 }
38296}
38297{ print }
38298_ACAWK
38299_ACEOF
38300cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristy98dddb52010-11-04 00:30:15 +000038301 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038302fi # test -n "$CONFIG_HEADERS"
38303
38304
38305eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
38306shift
38307for ac_tag
38308do
38309 case $ac_tag in
38310 :[FHLC]) ac_mode=$ac_tag; continue;;
38311 esac
38312 case $ac_mode$ac_tag in
38313 :[FHL]*:*);;
cristy98dddb52010-11-04 00:30:15 +000038314 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000038315 :[FH]-) ac_tag=-:-;;
38316 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
38317 esac
38318 ac_save_IFS=$IFS
38319 IFS=:
38320 set x $ac_tag
38321 IFS=$ac_save_IFS
38322 shift
38323 ac_file=$1
38324 shift
38325
38326 case $ac_mode in
38327 :L) ac_source=$1;;
38328 :[FH])
38329 ac_file_inputs=
38330 for ac_f
38331 do
38332 case $ac_f in
cristyda16f162011-02-19 23:52:17 +000038333 -) ac_f="$ac_tmp/stdin";;
cristy3ed852e2009-09-05 21:47:34 +000038334 *) # Look for the file first in the build tree, then in the source tree
38335 # (if the path is not absolute). The absolute path cannot be DOS-style,
38336 # because $ac_f cannot contain `:'.
38337 test -f "$ac_f" ||
38338 case $ac_f in
38339 [\\/$]*) false;;
38340 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
38341 esac ||
cristy98dddb52010-11-04 00:30:15 +000038342 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000038343 esac
38344 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000038345 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000038346 done
38347
38348 # Let's still pretend it is `configure' which instantiates (i.e., don't
38349 # use $as_me), people would be surprised to read:
38350 # /* config.h. Generated by config.status. */
38351 configure_input='Generated from '`
38352 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
38353 `' by configure.'
38354 if test x"$ac_file" != x-; then
38355 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000038356 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000038357$as_echo "$as_me: creating $ac_file" >&6;}
38358 fi
38359 # Neutralize special characters interpreted by sed in replacement strings.
38360 case $configure_input in #(
38361 *\&* | *\|* | *\\* )
38362 ac_sed_conf_input=`$as_echo "$configure_input" |
38363 sed 's/[\\\\&|]/\\\\&/g'`;; #(
38364 *) ac_sed_conf_input=$configure_input;;
38365 esac
38366
38367 case $ac_tag in
cristyda16f162011-02-19 23:52:17 +000038368 *:-:* | *:-) cat >"$ac_tmp/stdin" \
cristy98dddb52010-11-04 00:30:15 +000038369 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000038370 esac
38371 ;;
38372 esac
38373
38374 ac_dir=`$as_dirname -- "$ac_file" ||
38375$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38376 X"$ac_file" : 'X\(//\)[^/]' \| \
38377 X"$ac_file" : 'X\(//\)$' \| \
38378 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
38379$as_echo X"$ac_file" |
38380 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38381 s//\1/
38382 q
38383 }
38384 /^X\(\/\/\)[^/].*/{
38385 s//\1/
38386 q
38387 }
38388 /^X\(\/\/\)$/{
38389 s//\1/
38390 q
38391 }
38392 /^X\(\/\).*/{
38393 s//\1/
38394 q
38395 }
38396 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000038397 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000038398 ac_builddir=.
38399
38400case "$ac_dir" in
38401.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
38402*)
38403 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
38404 # A ".." for each directory in $ac_dir_suffix.
38405 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
38406 case $ac_top_builddir_sub in
38407 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
38408 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
38409 esac ;;
38410esac
38411ac_abs_top_builddir=$ac_pwd
38412ac_abs_builddir=$ac_pwd$ac_dir_suffix
38413# for backward compatibility:
38414ac_top_builddir=$ac_top_build_prefix
38415
38416case $srcdir in
38417 .) # We are building in place.
38418 ac_srcdir=.
38419 ac_top_srcdir=$ac_top_builddir_sub
38420 ac_abs_top_srcdir=$ac_pwd ;;
38421 [\\/]* | ?:[\\/]* ) # Absolute name.
38422 ac_srcdir=$srcdir$ac_dir_suffix;
38423 ac_top_srcdir=$srcdir
38424 ac_abs_top_srcdir=$srcdir ;;
38425 *) # Relative name.
38426 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
38427 ac_top_srcdir=$ac_top_build_prefix$srcdir
38428 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
38429esac
38430ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
38431
38432
38433 case $ac_mode in
38434 :F)
38435 #
38436 # CONFIG_FILE
38437 #
38438
38439 case $INSTALL in
38440 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
38441 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
38442 esac
cristy73bd4a52010-10-05 11:24:23 +000038443 ac_MKDIR_P=$MKDIR_P
38444 case $MKDIR_P in
38445 [\\/$]* | ?:[\\/]* ) ;;
38446 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
38447 esac
cristy3ed852e2009-09-05 21:47:34 +000038448_ACEOF
38449
38450cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38451# If the template does not know about datarootdir, expand it.
38452# FIXME: This hack should be removed a few years after 2.60.
38453ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000038454ac_sed_dataroot='
38455/datarootdir/ {
38456 p
38457 q
38458}
38459/@datadir@/p
38460/@docdir@/p
38461/@infodir@/p
38462/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000038463/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000038464case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
38465*datarootdir*) ac_datarootdir_seen=yes;;
38466*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000038467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000038468$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
38469_ACEOF
38470cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38471 ac_datarootdir_hack='
38472 s&@datadir@&$datadir&g
38473 s&@docdir@&$docdir&g
38474 s&@infodir@&$infodir&g
38475 s&@localedir@&$localedir&g
38476 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000038477 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000038478esac
38479_ACEOF
38480
38481# Neutralize VPATH when `$srcdir' = `.'.
38482# Shell code in configure.ac might set extrasub.
38483# FIXME: do we really want to maintain this feature?
38484cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38485ac_sed_extra="$ac_vpsub
38486$extrasub
38487_ACEOF
38488cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38489:t
38490/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
38491s|@configure_input@|$ac_sed_conf_input|;t t
38492s&@top_builddir@&$ac_top_builddir_sub&;t t
38493s&@top_build_prefix@&$ac_top_build_prefix&;t t
38494s&@srcdir@&$ac_srcdir&;t t
38495s&@abs_srcdir@&$ac_abs_srcdir&;t t
38496s&@top_srcdir@&$ac_top_srcdir&;t t
38497s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
38498s&@builddir@&$ac_builddir&;t t
38499s&@abs_builddir@&$ac_abs_builddir&;t t
38500s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
38501s&@INSTALL@&$ac_INSTALL&;t t
cristy73bd4a52010-10-05 11:24:23 +000038502s&@MKDIR_P@&$ac_MKDIR_P&;t t
cristy3ed852e2009-09-05 21:47:34 +000038503$ac_datarootdir_hack
38504"
cristyda16f162011-02-19 23:52:17 +000038505eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
38506 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038507
38508test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
cristyda16f162011-02-19 23:52:17 +000038509 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
38510 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
38511 "$ac_tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000038512 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000038513which seems to be undefined. Please make sure it is defined" >&5
cristy3ed852e2009-09-05 21:47:34 +000038514$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000038515which seems to be undefined. Please make sure it is defined" >&2;}
cristy3ed852e2009-09-05 21:47:34 +000038516
cristyda16f162011-02-19 23:52:17 +000038517 rm -f "$ac_tmp/stdin"
cristy3ed852e2009-09-05 21:47:34 +000038518 case $ac_file in
cristyda16f162011-02-19 23:52:17 +000038519 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
38520 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
cristy3ed852e2009-09-05 21:47:34 +000038521 esac \
cristy98dddb52010-11-04 00:30:15 +000038522 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038523 ;;
38524 :H)
38525 #
38526 # CONFIG_HEADER
38527 #
38528 if test x"$ac_file" != x-; then
38529 {
38530 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000038531 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
38532 } >"$ac_tmp/config.h" \
cristy98dddb52010-11-04 00:30:15 +000038533 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000038534 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000038535 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000038536$as_echo "$as_me: $ac_file is unchanged" >&6;}
38537 else
38538 rm -f "$ac_file"
cristyda16f162011-02-19 23:52:17 +000038539 mv "$ac_tmp/config.h" "$ac_file" \
cristy98dddb52010-11-04 00:30:15 +000038540 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038541 fi
38542 else
38543 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000038544 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
cristy98dddb52010-11-04 00:30:15 +000038545 || as_fn_error $? "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038546 fi
cristy73bd4a52010-10-05 11:24:23 +000038547# Compute "$ac_file"'s index in $config_headers.
38548_am_arg="$ac_file"
38549_am_stamp_count=1
38550for _am_header in $config_headers :; do
38551 case $_am_header in
38552 $_am_arg | $_am_arg:* )
38553 break ;;
38554 * )
38555 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
38556 esac
38557done
38558echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
38559$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38560 X"$_am_arg" : 'X\(//\)[^/]' \| \
38561 X"$_am_arg" : 'X\(//\)$' \| \
38562 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
38563$as_echo X"$_am_arg" |
38564 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38565 s//\1/
38566 q
38567 }
38568 /^X\(\/\/\)[^/].*/{
38569 s//\1/
38570 q
38571 }
38572 /^X\(\/\/\)$/{
38573 s//\1/
38574 q
38575 }
38576 /^X\(\/\).*/{
38577 s//\1/
38578 q
38579 }
38580 s/.*/./; q'`/stamp-h$_am_stamp_count
cristy3ed852e2009-09-05 21:47:34 +000038581 ;;
38582
cristy8b350f62009-11-15 23:12:43 +000038583 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000038584$as_echo "$as_me: executing $ac_file commands" >&6;}
38585 ;;
38586 esac
38587
38588
38589 case $ac_file$ac_mode in
cristy01ff9f32012-12-01 18:15:29 +000038590 "MagickCore/magick-baseconfig.h":C) ac_prefix_conf_OUT=`echo MagickCore/magick-baseconfig.h`
cristy73bd4a52010-10-05 11:24:23 +000038591ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
38592ac_prefix_conf_PKG=`echo MagickCore`
38593ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
38594ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
38595ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
38596if test ".$ac_prefix_conf_INP" = "."; then
38597 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
38598 case "$ac_file" in
38599 *.h) ac_prefix_conf_INP=$ac_file ;;
38600 *)
38601 esac
38602 test ".$ac_prefix_conf_INP" != "." && break
38603 done
38604fi
38605if test ".$ac_prefix_conf_INP" = "."; then
38606 case "$ac_prefix_conf_OUT" in
38607 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
38608 ;;
38609 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
38610 ;;
38611 *) ac_prefix_conf_INP=config.h
38612 ;;
38613 esac
38614fi
38615if test -z "$ac_prefix_conf_PKG" ; then
cristy98dddb52010-11-04 00:30:15 +000038616 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000038617else
38618 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
38619 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
38620 fi fi
38621 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
38622$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
38623 if test -f $ac_prefix_conf_INP ; then
cristy24fc1fe2010-10-23 21:13:01 +000038624 $as_echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
38625 $as_echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
38626 $as_echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
38627 $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
38628 $as_echo "#endif/" >> conftest.prefix
38629 $as_echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
38630 $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
38631 $as_echo "#endif/" >> conftest.prefix
cristy73bd4a52010-10-05 11:24:23 +000038632 # now executing _script on _DEF input to create _OUT output file
38633 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
38634 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
38635 echo ' ' >>$tmp/pconfig.h
38636 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
38637
38638 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
38639 echo ' ' >>$tmp/pconfig.h
38640 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
38641 echo "#endif" >>$tmp/pconfig.h
38642 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
38643 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
38644$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
38645 else
38646 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
38647$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38648 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
38649 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
38650 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
38651$as_echo X"$ac_prefix_conf_OUT" |
38652 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38653 s//\1/
38654 q
38655 }
38656 /^X\(\/\/\)[^/].*/{
38657 s//\1/
38658 q
38659 }
38660 /^X\(\/\/\)$/{
38661 s//\1/
38662 q
38663 }
38664 /^X\(\/\).*/{
38665 s//\1/
38666 q
38667 }
38668 s/.*/./; q'`
38669 as_dir="$ac_dir"; as_fn_mkdir_p
38670 rm -f "$ac_prefix_conf_OUT"
38671 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
38672 fi
cristy73bd4a52010-10-05 11:24:23 +000038673 else
cristy98dddb52010-11-04 00:30:15 +000038674 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 +000038675 fi
38676 rm -f conftest.*
38677fi
38678 ;;
38679 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
cristy58d34aa2013-01-24 15:11:54 +000038680 # Older Autoconf quotes --file arguments for eval, but not when files
cristy73bd4a52010-10-05 11:24:23 +000038681 # are listed without --file. Let's play safe and only enable the eval
38682 # if we detect the quoting.
38683 case $CONFIG_FILES in
38684 *\'*) eval set x "$CONFIG_FILES" ;;
38685 *) set x $CONFIG_FILES ;;
38686 esac
38687 shift
38688 for mf
38689 do
38690 # Strip MF so we end up with the name of the file.
38691 mf=`echo "$mf" | sed -e 's/:.*$//'`
38692 # Check whether this is an Automake generated Makefile or not.
cristyc0890a62012-07-19 00:18:20 +000038693 # We used to match only the files named 'Makefile.in', but
cristy73bd4a52010-10-05 11:24:23 +000038694 # some people rename them; so instead we look at the file content.
38695 # Grep'ing the first line is not enough: some people post-process
38696 # each Makefile.in and add a new line on top of each file to say so.
38697 # Grep'ing the whole file is not good either: AIX grep has a line
38698 # limit of 2048, but all sed's we know have understand at least 4000.
38699 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
38700 dirpart=`$as_dirname -- "$mf" ||
38701$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38702 X"$mf" : 'X\(//\)[^/]' \| \
38703 X"$mf" : 'X\(//\)$' \| \
38704 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
38705$as_echo X"$mf" |
38706 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38707 s//\1/
38708 q
38709 }
38710 /^X\(\/\/\)[^/].*/{
38711 s//\1/
38712 q
38713 }
38714 /^X\(\/\/\)$/{
38715 s//\1/
38716 q
38717 }
38718 /^X\(\/\).*/{
38719 s//\1/
38720 q
38721 }
38722 s/.*/./; q'`
38723 else
38724 continue
38725 fi
38726 # Extract the definition of DEPDIR, am__include, and am__quote
cristyc0890a62012-07-19 00:18:20 +000038727 # from the Makefile without running 'make'.
cristy73bd4a52010-10-05 11:24:23 +000038728 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
38729 test -z "$DEPDIR" && continue
38730 am__include=`sed -n 's/^am__include = //p' < "$mf"`
cristybced8142013-05-31 01:23:57 +000038731 test -z "$am__include" && continue
cristy73bd4a52010-10-05 11:24:23 +000038732 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
cristy73bd4a52010-10-05 11:24:23 +000038733 # Find all dependency output files, they are included files with
38734 # $(DEPDIR) in their names. We invoke sed twice because it is the
38735 # simplest approach to changing $(DEPDIR) to its actual value in the
38736 # expansion.
38737 for file in `sed -n "
38738 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
cristyc0890a62012-07-19 00:18:20 +000038739 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
cristy73bd4a52010-10-05 11:24:23 +000038740 # Make sure the directory exists.
38741 test -f "$dirpart/$file" && continue
38742 fdir=`$as_dirname -- "$file" ||
38743$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38744 X"$file" : 'X\(//\)[^/]' \| \
38745 X"$file" : 'X\(//\)$' \| \
38746 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
38747$as_echo X"$file" |
38748 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38749 s//\1/
38750 q
38751 }
38752 /^X\(\/\/\)[^/].*/{
38753 s//\1/
38754 q
38755 }
38756 /^X\(\/\/\)$/{
38757 s//\1/
38758 q
38759 }
38760 /^X\(\/\).*/{
38761 s//\1/
38762 q
38763 }
38764 s/.*/./; q'`
38765 as_dir=$dirpart/$fdir; as_fn_mkdir_p
38766 # echo "creating $dirpart/$file"
38767 echo '# dummy' > "$dirpart/$file"
38768 done
38769 done
38770}
38771 ;;
38772 "libtool":C)
38773
38774 # See if we are running on zsh, and set the options which allow our
38775 # commands through without removal of \ escapes.
38776 if test -n "${ZSH_VERSION+set}" ; then
38777 setopt NO_GLOB_SUBST
38778 fi
38779
38780 cfgfile="${ofile}T"
38781 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
38782 $RM "$cfgfile"
38783
38784 cat <<_LT_EOF >> "$cfgfile"
38785#! $SHELL
38786
38787# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
38788# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
38789# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
38790# NOTE: Changes made to this file will be lost: look at ltmain.sh.
38791#
38792# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cristy99bd5232011-12-07 14:38:20 +000038793# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
38794# Foundation, Inc.
cristy73bd4a52010-10-05 11:24:23 +000038795# Written by Gordon Matzigkeit, 1996
38796#
38797# This file is part of GNU Libtool.
38798#
38799# GNU Libtool is free software; you can redistribute it and/or
38800# modify it under the terms of the GNU General Public License as
38801# published by the Free Software Foundation; either version 2 of
38802# the License, or (at your option) any later version.
38803#
38804# As a special exception to the GNU General Public License,
38805# if you distribute this file as part of a program or library that
38806# is built using GNU Libtool, you may include this file under the
38807# same distribution terms that you use for the rest of that program.
38808#
38809# GNU Libtool is distributed in the hope that it will be useful,
38810# but WITHOUT ANY WARRANTY; without even the implied warranty of
38811# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
38812# GNU General Public License for more details.
38813#
38814# You should have received a copy of the GNU General Public License
38815# along with GNU Libtool; see the file COPYING. If not, a copy
38816# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
38817# obtained by writing to the Free Software Foundation, Inc.,
38818# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
38819
38820
38821# The names of the tagged configurations supported by this script.
38822available_tags="CXX "
38823
38824# ### BEGIN LIBTOOL CONFIG
38825
38826# A sed program that does not truncate output.
38827SED=$lt_SED
38828
38829# Sed that helps us avoid accidentally triggering echo(1) options like -n.
38830Xsed="\$SED -e 1s/^X//"
38831
38832# A grep program that handles long lines.
38833GREP=$lt_GREP
38834
38835# An ERE matcher.
38836EGREP=$lt_EGREP
38837
38838# A literal string matcher.
38839FGREP=$lt_FGREP
38840
cristy0c60a692010-11-04 01:09:47 +000038841# Shell to use when invoking shell scripts.
38842SHELL=$lt_SHELL
38843
38844# An echo program that protects backslashes.
38845ECHO=$lt_ECHO
38846
cristy73bd4a52010-10-05 11:24:23 +000038847# Which release of libtool.m4 was used?
38848macro_version=$macro_version
38849macro_revision=$macro_revision
38850
38851# Assembler program.
cristy0c60a692010-11-04 01:09:47 +000038852AS=$lt_AS
cristy73bd4a52010-10-05 11:24:23 +000038853
38854# DLL creation program.
cristy0c60a692010-11-04 01:09:47 +000038855DLLTOOL=$lt_DLLTOOL
cristy73bd4a52010-10-05 11:24:23 +000038856
38857# Object dumper program.
cristy0c60a692010-11-04 01:09:47 +000038858OBJDUMP=$lt_OBJDUMP
cristy73bd4a52010-10-05 11:24:23 +000038859
38860# Whether or not to build shared libraries.
38861build_libtool_libs=$enable_shared
38862
38863# Whether or not to build static libraries.
38864build_old_libs=$enable_static
38865
38866# What type of objects to build.
38867pic_mode=$pic_mode
38868
38869# Whether or not to optimize for fast installation.
38870fast_install=$enable_fast_install
38871
cristy99bd5232011-12-07 14:38:20 +000038872# The PATH separator for the build system.
38873PATH_SEPARATOR=$lt_PATH_SEPARATOR
38874
cristy73bd4a52010-10-05 11:24:23 +000038875# The host system.
38876host_alias=$host_alias
38877host=$host
38878host_os=$host_os
38879
38880# The build system.
38881build_alias=$build_alias
38882build=$build
38883build_os=$build_os
38884
38885# A BSD- or MS-compatible name lister.
38886NM=$lt_NM
38887
38888# Whether we need soft or hard links.
38889LN_S=$lt_LN_S
38890
38891# What is the maximum length of a command?
38892max_cmd_len=$max_cmd_len
38893
38894# Object file suffix (normally "o").
38895objext=$ac_objext
38896
38897# Executable file suffix (normally "").
38898exeext=$exeext
38899
38900# whether the shell understands "unset".
38901lt_unset=$lt_unset
38902
38903# turn spaces into newlines.
38904SP2NL=$lt_lt_SP2NL
38905
38906# turn newlines into spaces.
38907NL2SP=$lt_lt_NL2SP
38908
cristyda16f162011-02-19 23:52:17 +000038909# convert \$build file names to \$host format.
38910to_host_file_cmd=$lt_cv_to_host_file_cmd
38911
38912# convert \$build files to toolchain format.
38913to_tool_file_cmd=$lt_cv_to_tool_file_cmd
38914
cristy73bd4a52010-10-05 11:24:23 +000038915# Method to check whether dependent libraries are shared objects.
38916deplibs_check_method=$lt_deplibs_check_method
38917
cristyda16f162011-02-19 23:52:17 +000038918# Command to use when deplibs_check_method = "file_magic".
cristy73bd4a52010-10-05 11:24:23 +000038919file_magic_cmd=$lt_file_magic_cmd
38920
cristyda16f162011-02-19 23:52:17 +000038921# How to find potential files when deplibs_check_method = "file_magic".
38922file_magic_glob=$lt_file_magic_glob
38923
38924# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
38925want_nocaseglob=$lt_want_nocaseglob
38926
38927# Command to associate shared and link libraries.
38928sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
38929
cristy73bd4a52010-10-05 11:24:23 +000038930# The archiver.
38931AR=$lt_AR
cristyda16f162011-02-19 23:52:17 +000038932
38933# Flags to create an archive.
cristy73bd4a52010-10-05 11:24:23 +000038934AR_FLAGS=$lt_AR_FLAGS
38935
cristyda16f162011-02-19 23:52:17 +000038936# How to feed a file listing to the archiver.
38937archiver_list_spec=$lt_archiver_list_spec
38938
cristy73bd4a52010-10-05 11:24:23 +000038939# A symbol stripping program.
38940STRIP=$lt_STRIP
38941
38942# Commands used to install an old-style archive.
38943RANLIB=$lt_RANLIB
38944old_postinstall_cmds=$lt_old_postinstall_cmds
38945old_postuninstall_cmds=$lt_old_postuninstall_cmds
38946
cristy0c60a692010-11-04 01:09:47 +000038947# Whether to use a lock for old archive extraction.
38948lock_old_archive_extraction=$lock_old_archive_extraction
38949
cristy73bd4a52010-10-05 11:24:23 +000038950# A C compiler.
38951LTCC=$lt_CC
38952
38953# LTCC compiler flags.
38954LTCFLAGS=$lt_CFLAGS
38955
38956# Take the output of nm and produce a listing of raw symbols and C names.
38957global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
38958
38959# Transform the output of nm in a proper C declaration.
38960global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
38961
38962# Transform the output of nm in a C name address pair.
38963global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
38964
38965# Transform the output of nm in a C name address pair when lib prefix is needed.
38966global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
38967
cristyda16f162011-02-19 23:52:17 +000038968# Specify filename containing input files for \$NM.
38969nm_file_list_spec=$lt_nm_file_list_spec
38970
38971# The root where to search for dependent libraries,and in which our libraries should be installed.
38972lt_sysroot=$lt_sysroot
38973
cristy73bd4a52010-10-05 11:24:23 +000038974# The name of the directory that contains temporary libtool files.
38975objdir=$objdir
38976
cristy73bd4a52010-10-05 11:24:23 +000038977# Used to examine libraries when file_magic_cmd begins with "file".
38978MAGIC_CMD=$MAGIC_CMD
38979
38980# Must we lock files when doing compilation?
38981need_locks=$lt_need_locks
38982
cristyda16f162011-02-19 23:52:17 +000038983# Manifest tool.
38984MANIFEST_TOOL=$lt_MANIFEST_TOOL
38985
cristy73bd4a52010-10-05 11:24:23 +000038986# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
38987DSYMUTIL=$lt_DSYMUTIL
38988
38989# Tool to change global to local symbols on Mac OS X.
38990NMEDIT=$lt_NMEDIT
38991
38992# Tool to manipulate fat objects and archives on Mac OS X.
38993LIPO=$lt_LIPO
38994
38995# ldd/readelf like tool for Mach-O binaries on Mac OS X.
38996OTOOL=$lt_OTOOL
38997
38998# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
38999OTOOL64=$lt_OTOOL64
39000
39001# Old archive suffix (normally "a").
39002libext=$libext
39003
39004# Shared library suffix (normally ".so").
39005shrext_cmds=$lt_shrext_cmds
39006
39007# The commands to extract the exported symbol list from a shared archive.
39008extract_expsyms_cmds=$lt_extract_expsyms_cmds
39009
39010# Variables whose values should be saved in libtool wrapper scripts and
39011# restored at link time.
39012variables_saved_for_relink=$lt_variables_saved_for_relink
39013
39014# Do we need the "lib" prefix for modules?
39015need_lib_prefix=$need_lib_prefix
39016
39017# Do we need a version for libraries?
39018need_version=$need_version
39019
39020# Library versioning type.
39021version_type=$version_type
39022
39023# Shared library runtime path variable.
39024runpath_var=$runpath_var
39025
39026# Shared library path variable.
39027shlibpath_var=$shlibpath_var
39028
39029# Is shlibpath searched before the hard-coded library search path?
39030shlibpath_overrides_runpath=$shlibpath_overrides_runpath
39031
39032# Format of library name prefix.
39033libname_spec=$lt_libname_spec
39034
39035# List of archive names. First name is the real one, the rest are links.
39036# The last name is the one that the linker finds with -lNAME
39037library_names_spec=$lt_library_names_spec
39038
39039# The coded name of the library, if different from the real name.
39040soname_spec=$lt_soname_spec
39041
cristy0c60a692010-11-04 01:09:47 +000039042# Permission mode override for installation of shared libraries.
39043install_override_mode=$lt_install_override_mode
39044
cristy73bd4a52010-10-05 11:24:23 +000039045# Command to use after installation of a shared archive.
39046postinstall_cmds=$lt_postinstall_cmds
39047
39048# Command to use after uninstallation of a shared archive.
39049postuninstall_cmds=$lt_postuninstall_cmds
39050
39051# Commands used to finish a libtool library installation in a directory.
39052finish_cmds=$lt_finish_cmds
39053
39054# As "finish_cmds", except a single script fragment to be evaled but
39055# not shown.
39056finish_eval=$lt_finish_eval
39057
39058# Whether we should hardcode library paths into libraries.
39059hardcode_into_libs=$hardcode_into_libs
39060
39061# Compile-time system search path for libraries.
39062sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
39063
39064# Run-time system search path for libraries.
39065sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
39066
39067# Whether dlopen is supported.
39068dlopen_support=$enable_dlopen
39069
39070# Whether dlopen of programs is supported.
39071dlopen_self=$enable_dlopen_self
39072
39073# Whether dlopen of statically linked programs is supported.
39074dlopen_self_static=$enable_dlopen_self_static
39075
39076# Commands to strip libraries.
39077old_striplib=$lt_old_striplib
39078striplib=$lt_striplib
39079
39080
39081# The linker used to build libraries.
39082LD=$lt_LD
39083
cristy0c60a692010-11-04 01:09:47 +000039084# How to create reloadable object files.
39085reload_flag=$lt_reload_flag
39086reload_cmds=$lt_reload_cmds
39087
cristy73bd4a52010-10-05 11:24:23 +000039088# Commands used to build an old-style archive.
39089old_archive_cmds=$lt_old_archive_cmds
39090
39091# A language specific compiler.
39092CC=$lt_compiler
39093
39094# Is the compiler the GNU compiler?
39095with_gcc=$GCC
39096
39097# Compiler flag to turn off builtin functions.
39098no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
39099
cristy73bd4a52010-10-05 11:24:23 +000039100# Additional compiler flags for building library objects.
39101pic_flag=$lt_lt_prog_compiler_pic
39102
cristyda16f162011-02-19 23:52:17 +000039103# How to pass a linker flag through the compiler.
39104wl=$lt_lt_prog_compiler_wl
39105
cristy73bd4a52010-10-05 11:24:23 +000039106# Compiler flag to prevent dynamic linking.
39107link_static_flag=$lt_lt_prog_compiler_static
39108
39109# Does compiler simultaneously support -c and -o options?
39110compiler_c_o=$lt_lt_cv_prog_compiler_c_o
39111
39112# Whether or not to add -lc for building shared libraries.
39113build_libtool_need_lc=$archive_cmds_need_lc
39114
39115# Whether or not to disallow shared libs when runtime libs are static.
39116allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
39117
39118# Compiler flag to allow reflexive dlopens.
39119export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
39120
39121# Compiler flag to generate shared objects directly from archives.
39122whole_archive_flag_spec=$lt_whole_archive_flag_spec
39123
39124# Whether the compiler copes with passing no objects directly.
39125compiler_needs_object=$lt_compiler_needs_object
39126
39127# Create an old-style archive from a shared archive.
39128old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
39129
39130# Create a temporary old-style archive to link instead of a shared archive.
39131old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
39132
39133# Commands used to build a shared archive.
39134archive_cmds=$lt_archive_cmds
39135archive_expsym_cmds=$lt_archive_expsym_cmds
39136
39137# Commands used to build a loadable module if different from building
39138# a shared archive.
39139module_cmds=$lt_module_cmds
39140module_expsym_cmds=$lt_module_expsym_cmds
39141
39142# Whether we are building with GNU ld or not.
39143with_gnu_ld=$lt_with_gnu_ld
39144
39145# Flag that allows shared libraries with undefined symbols to be built.
39146allow_undefined_flag=$lt_allow_undefined_flag
39147
39148# Flag that enforces no undefined symbols.
39149no_undefined_flag=$lt_no_undefined_flag
39150
39151# Flag to hardcode \$libdir into a binary during linking.
39152# This must work even if \$libdir does not exist
39153hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
39154
cristy73bd4a52010-10-05 11:24:23 +000039155# Whether we need a single "-rpath" flag with a separated argument.
39156hardcode_libdir_separator=$lt_hardcode_libdir_separator
39157
39158# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
39159# DIR into the resulting binary.
39160hardcode_direct=$hardcode_direct
39161
39162# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
39163# DIR into the resulting binary and the resulting library dependency is
39164# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
39165# library is relocated.
39166hardcode_direct_absolute=$hardcode_direct_absolute
39167
39168# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
39169# into the resulting binary.
39170hardcode_minus_L=$hardcode_minus_L
39171
39172# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
39173# into the resulting binary.
39174hardcode_shlibpath_var=$hardcode_shlibpath_var
39175
39176# Set to "yes" if building a shared library automatically hardcodes DIR
39177# into the library and all subsequent libraries and executables linked
39178# against it.
39179hardcode_automatic=$hardcode_automatic
39180
39181# Set to yes if linker adds runtime paths of dependent libraries
39182# to runtime path list.
39183inherit_rpath=$inherit_rpath
39184
39185# Whether libtool must link a program against all its dependency libraries.
39186link_all_deplibs=$link_all_deplibs
39187
cristy73bd4a52010-10-05 11:24:23 +000039188# Set to "yes" if exported symbols are required.
39189always_export_symbols=$always_export_symbols
39190
39191# The commands to list exported symbols.
39192export_symbols_cmds=$lt_export_symbols_cmds
39193
39194# Symbols that should not be listed in the preloaded symbols.
39195exclude_expsyms=$lt_exclude_expsyms
39196
39197# Symbols that must always be exported.
39198include_expsyms=$lt_include_expsyms
39199
39200# Commands necessary for linking programs (against libraries) with templates.
39201prelink_cmds=$lt_prelink_cmds
39202
cristyda16f162011-02-19 23:52:17 +000039203# Commands necessary for finishing linking programs.
39204postlink_cmds=$lt_postlink_cmds
39205
cristy73bd4a52010-10-05 11:24:23 +000039206# Specify filename containing input files.
39207file_list_spec=$lt_file_list_spec
39208
39209# How to hardcode a shared library path into an executable.
39210hardcode_action=$hardcode_action
39211
39212# The directories searched by this compiler when creating a shared library.
39213compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
39214
39215# Dependencies to place before and after the objects being linked to
39216# create a shared library.
39217predep_objects=$lt_predep_objects
39218postdep_objects=$lt_postdep_objects
39219predeps=$lt_predeps
39220postdeps=$lt_postdeps
39221
39222# The library search path used internally by the compiler when linking
39223# a shared library.
39224compiler_lib_search_path=$lt_compiler_lib_search_path
39225
39226# ### END LIBTOOL CONFIG
39227
39228_LT_EOF
39229
39230 case $host_os in
39231 aix3*)
39232 cat <<\_LT_EOF >> "$cfgfile"
39233# AIX sometimes has problems with the GCC collect2 program. For some
39234# reason, if we set the COLLECT_NAMES environment variable, the problems
39235# vanish in a puff of smoke.
39236if test "X${COLLECT_NAMES+set}" != Xset; then
39237 COLLECT_NAMES=
39238 export COLLECT_NAMES
39239fi
39240_LT_EOF
39241 ;;
39242 esac
39243
39244
39245ltmain="$ac_aux_dir/ltmain.sh"
39246
39247
39248 # We use sed instead of cat because bash on DJGPP gets confused if
39249 # if finds mixed CR/LF and LF-only lines. Since sed operates in
39250 # text mode, it properly converts lines to CR/LF. This bash problem
39251 # is reportedly fixed, but why not run on old versions too?
cristyda16f162011-02-19 23:52:17 +000039252 sed '$q' "$ltmain" >> "$cfgfile" \
39253 || (rm -f "$cfgfile"; exit 1)
cristy73bd4a52010-10-05 11:24:23 +000039254
cristyda16f162011-02-19 23:52:17 +000039255 if test x"$xsi_shell" = xyes; then
39256 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
39257func_dirname ()\
39258{\
39259\ case ${1} in\
39260\ */*) func_dirname_result="${1%/*}${2}" ;;\
39261\ * ) func_dirname_result="${3}" ;;\
39262\ esac\
39263} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
39264 && mv -f "$cfgfile.tmp" "$cfgfile" \
39265 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39266test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000039267
39268
cristyda16f162011-02-19 23:52:17 +000039269 sed -e '/^func_basename ()$/,/^} # func_basename /c\
39270func_basename ()\
39271{\
39272\ func_basename_result="${1##*/}"\
39273} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
39274 && mv -f "$cfgfile.tmp" "$cfgfile" \
39275 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39276test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000039277
39278
cristyda16f162011-02-19 23:52:17 +000039279 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
39280func_dirname_and_basename ()\
39281{\
39282\ case ${1} in\
39283\ */*) func_dirname_result="${1%/*}${2}" ;;\
39284\ * ) func_dirname_result="${3}" ;;\
39285\ esac\
39286\ func_basename_result="${1##*/}"\
39287} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
39288 && mv -f "$cfgfile.tmp" "$cfgfile" \
39289 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39290test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000039291
cristyda16f162011-02-19 23:52:17 +000039292
39293 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
39294func_stripname ()\
39295{\
39296\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
39297\ # positional parameters, so assign one to ordinary parameter first.\
39298\ func_stripname_result=${3}\
39299\ func_stripname_result=${func_stripname_result#"${1}"}\
39300\ func_stripname_result=${func_stripname_result%"${2}"}\
39301} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
39302 && mv -f "$cfgfile.tmp" "$cfgfile" \
39303 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39304test 0 -eq $? || _lt_function_replace_fail=:
39305
39306
39307 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
39308func_split_long_opt ()\
39309{\
39310\ func_split_long_opt_name=${1%%=*}\
39311\ func_split_long_opt_arg=${1#*=}\
39312} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
39313 && mv -f "$cfgfile.tmp" "$cfgfile" \
39314 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39315test 0 -eq $? || _lt_function_replace_fail=:
39316
39317
39318 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
39319func_split_short_opt ()\
39320{\
39321\ func_split_short_opt_arg=${1#??}\
39322\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
39323} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
39324 && mv -f "$cfgfile.tmp" "$cfgfile" \
39325 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39326test 0 -eq $? || _lt_function_replace_fail=:
39327
39328
39329 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
39330func_lo2o ()\
39331{\
39332\ case ${1} in\
39333\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
39334\ *) func_lo2o_result=${1} ;;\
39335\ esac\
39336} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
39337 && mv -f "$cfgfile.tmp" "$cfgfile" \
39338 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39339test 0 -eq $? || _lt_function_replace_fail=:
39340
39341
39342 sed -e '/^func_xform ()$/,/^} # func_xform /c\
39343func_xform ()\
39344{\
39345 func_xform_result=${1%.*}.lo\
39346} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
39347 && mv -f "$cfgfile.tmp" "$cfgfile" \
39348 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39349test 0 -eq $? || _lt_function_replace_fail=:
39350
39351
39352 sed -e '/^func_arith ()$/,/^} # func_arith /c\
39353func_arith ()\
39354{\
39355 func_arith_result=$(( $* ))\
39356} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
39357 && mv -f "$cfgfile.tmp" "$cfgfile" \
39358 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39359test 0 -eq $? || _lt_function_replace_fail=:
39360
39361
39362 sed -e '/^func_len ()$/,/^} # func_len /c\
39363func_len ()\
39364{\
39365 func_len_result=${#1}\
39366} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
39367 && mv -f "$cfgfile.tmp" "$cfgfile" \
39368 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39369test 0 -eq $? || _lt_function_replace_fail=:
39370
39371fi
39372
39373if test x"$lt_shell_append" = xyes; then
39374 sed -e '/^func_append ()$/,/^} # func_append /c\
39375func_append ()\
39376{\
39377 eval "${1}+=\\${2}"\
39378} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
39379 && mv -f "$cfgfile.tmp" "$cfgfile" \
39380 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39381test 0 -eq $? || _lt_function_replace_fail=:
39382
39383
39384 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
39385func_append_quoted ()\
39386{\
39387\ func_quote_for_eval "${2}"\
39388\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
39389} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
39390 && mv -f "$cfgfile.tmp" "$cfgfile" \
39391 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39392test 0 -eq $? || _lt_function_replace_fail=:
39393
39394
39395 # Save a `func_append' function call where possible by direct use of '+='
39396 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
39397 && mv -f "$cfgfile.tmp" "$cfgfile" \
39398 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39399 test 0 -eq $? || _lt_function_replace_fail=:
39400else
39401 # Save a `func_append' function call even when '+=' is not available
39402 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
39403 && mv -f "$cfgfile.tmp" "$cfgfile" \
39404 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39405 test 0 -eq $? || _lt_function_replace_fail=:
39406fi
39407
39408if test x"$_lt_function_replace_fail" = x":"; then
39409 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
39410$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
39411fi
39412
39413
39414 mv -f "$cfgfile" "$ofile" ||
cristy73bd4a52010-10-05 11:24:23 +000039415 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
39416 chmod +x "$ofile"
39417
39418
39419 cat <<_LT_EOF >> "$ofile"
39420
39421# ### BEGIN LIBTOOL TAG CONFIG: CXX
39422
39423# The linker used to build libraries.
39424LD=$lt_LD_CXX
39425
cristy0c60a692010-11-04 01:09:47 +000039426# How to create reloadable object files.
39427reload_flag=$lt_reload_flag_CXX
39428reload_cmds=$lt_reload_cmds_CXX
39429
cristy73bd4a52010-10-05 11:24:23 +000039430# Commands used to build an old-style archive.
39431old_archive_cmds=$lt_old_archive_cmds_CXX
39432
39433# A language specific compiler.
39434CC=$lt_compiler_CXX
39435
39436# Is the compiler the GNU compiler?
39437with_gcc=$GCC_CXX
39438
39439# Compiler flag to turn off builtin functions.
39440no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
39441
cristy73bd4a52010-10-05 11:24:23 +000039442# Additional compiler flags for building library objects.
39443pic_flag=$lt_lt_prog_compiler_pic_CXX
39444
cristyda16f162011-02-19 23:52:17 +000039445# How to pass a linker flag through the compiler.
39446wl=$lt_lt_prog_compiler_wl_CXX
39447
cristy73bd4a52010-10-05 11:24:23 +000039448# Compiler flag to prevent dynamic linking.
39449link_static_flag=$lt_lt_prog_compiler_static_CXX
39450
39451# Does compiler simultaneously support -c and -o options?
39452compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
39453
39454# Whether or not to add -lc for building shared libraries.
39455build_libtool_need_lc=$archive_cmds_need_lc_CXX
39456
39457# Whether or not to disallow shared libs when runtime libs are static.
39458allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
39459
39460# Compiler flag to allow reflexive dlopens.
39461export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
39462
39463# Compiler flag to generate shared objects directly from archives.
39464whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
39465
39466# Whether the compiler copes with passing no objects directly.
39467compiler_needs_object=$lt_compiler_needs_object_CXX
39468
39469# Create an old-style archive from a shared archive.
39470old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
39471
39472# Create a temporary old-style archive to link instead of a shared archive.
39473old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
39474
39475# Commands used to build a shared archive.
39476archive_cmds=$lt_archive_cmds_CXX
39477archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
39478
39479# Commands used to build a loadable module if different from building
39480# a shared archive.
39481module_cmds=$lt_module_cmds_CXX
39482module_expsym_cmds=$lt_module_expsym_cmds_CXX
39483
39484# Whether we are building with GNU ld or not.
39485with_gnu_ld=$lt_with_gnu_ld_CXX
39486
39487# Flag that allows shared libraries with undefined symbols to be built.
39488allow_undefined_flag=$lt_allow_undefined_flag_CXX
39489
39490# Flag that enforces no undefined symbols.
39491no_undefined_flag=$lt_no_undefined_flag_CXX
39492
39493# Flag to hardcode \$libdir into a binary during linking.
39494# This must work even if \$libdir does not exist
39495hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
39496
cristy73bd4a52010-10-05 11:24:23 +000039497# Whether we need a single "-rpath" flag with a separated argument.
39498hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
39499
39500# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
39501# DIR into the resulting binary.
39502hardcode_direct=$hardcode_direct_CXX
39503
39504# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
39505# DIR into the resulting binary and the resulting library dependency is
39506# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
39507# library is relocated.
39508hardcode_direct_absolute=$hardcode_direct_absolute_CXX
39509
39510# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
39511# into the resulting binary.
39512hardcode_minus_L=$hardcode_minus_L_CXX
39513
39514# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
39515# into the resulting binary.
39516hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
39517
39518# Set to "yes" if building a shared library automatically hardcodes DIR
39519# into the library and all subsequent libraries and executables linked
39520# against it.
39521hardcode_automatic=$hardcode_automatic_CXX
39522
39523# Set to yes if linker adds runtime paths of dependent libraries
39524# to runtime path list.
39525inherit_rpath=$inherit_rpath_CXX
39526
39527# Whether libtool must link a program against all its dependency libraries.
39528link_all_deplibs=$link_all_deplibs_CXX
39529
cristy73bd4a52010-10-05 11:24:23 +000039530# Set to "yes" if exported symbols are required.
39531always_export_symbols=$always_export_symbols_CXX
39532
39533# The commands to list exported symbols.
39534export_symbols_cmds=$lt_export_symbols_cmds_CXX
39535
39536# Symbols that should not be listed in the preloaded symbols.
39537exclude_expsyms=$lt_exclude_expsyms_CXX
39538
39539# Symbols that must always be exported.
39540include_expsyms=$lt_include_expsyms_CXX
39541
39542# Commands necessary for linking programs (against libraries) with templates.
39543prelink_cmds=$lt_prelink_cmds_CXX
39544
cristyda16f162011-02-19 23:52:17 +000039545# Commands necessary for finishing linking programs.
39546postlink_cmds=$lt_postlink_cmds_CXX
39547
cristy73bd4a52010-10-05 11:24:23 +000039548# Specify filename containing input files.
39549file_list_spec=$lt_file_list_spec_CXX
39550
39551# How to hardcode a shared library path into an executable.
39552hardcode_action=$hardcode_action_CXX
39553
39554# The directories searched by this compiler when creating a shared library.
39555compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
39556
39557# Dependencies to place before and after the objects being linked to
39558# create a shared library.
39559predep_objects=$lt_predep_objects_CXX
39560postdep_objects=$lt_postdep_objects_CXX
39561predeps=$lt_predeps_CXX
39562postdeps=$lt_postdeps_CXX
39563
39564# The library search path used internally by the compiler when linking
39565# a shared library.
39566compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
39567
39568# ### END LIBTOOL TAG CONFIG: CXX
39569_LT_EOF
39570
39571 ;;
cristy2bd4b6e2012-07-22 15:29:11 +000039572 "magick.sh.in":C) chmod +x magick.sh ;;
cristy4c08aed2011-07-01 19:47:50 +000039573 "MagickCore-config.in":C) chmod +x MagickCore/MagickCore-config ;;
cristy4c08aed2011-07-01 19:47:50 +000039574 "MagickWand-config.in":C) chmod +x MagickWand/MagickWand-config ;;
cristy3ed852e2009-09-05 21:47:34 +000039575 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
39576 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
39577
39578 esac
39579done # for ac_tag
39580
39581
cristy8b350f62009-11-15 23:12:43 +000039582as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000039583_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000039584ac_clean_files=$ac_clean_files_save
39585
39586test $ac_write_fail = 0 ||
cristy98dddb52010-11-04 00:30:15 +000039587 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000039588
39589
39590# configure is writing to config.log, and then calls config.status.
39591# config.status does its own redirection, appending to config.log.
39592# Unfortunately, on DOS this fails, as config.log is still kept open
39593# by configure, so config.status won't be able to write to it; its
39594# output is simply discarded. So we exec the FD to /dev/null,
39595# effectively closing config.log, so it can be properly (re)opened and
39596# appended to by config.status. When coming back to configure, we
39597# need to make the FD available again.
39598if test "$no_create" != yes; then
39599 ac_cs_success=:
39600 ac_config_status_args=
39601 test "$silent" = yes &&
39602 ac_config_status_args="$ac_config_status_args --quiet"
39603 exec 5>/dev/null
39604 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
39605 exec 5>>config.log
39606 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
39607 # would make configure fail if this is the last instruction.
cristy98dddb52010-11-04 00:30:15 +000039608 $ac_cs_success || as_fn_exit 1
cristy3ed852e2009-09-05 21:47:34 +000039609fi
39610if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000039611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000039612$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
39613fi
39614
39615
cristy9af1cbf2014-12-28 22:03:09 +000039616# ==============================================================================
39617# ImageMagick Configuration
39618# ==============================================================================
39619{ $as_echo "$as_me:${as_lineno-$LINENO}:
39620==============================================================================
cristy3ed852e2009-09-05 21:47:34 +000039621ImageMagick is configured as follows. Please verify that this configuration
39622matches your expectations.
39623
cristy9af1cbf2014-12-28 22:03:09 +000039624 Host system type: $host
39625 Build system type: $build
cristy3ed852e2009-09-05 21:47:34 +000039626
39627 Option Value
cristy9af1cbf2014-12-28 22:03:09 +000039628 ------------------------------------------------------------------------------
39629 Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
39630 Static libraries --enable-static=$enable_static $libtool_build_static_libs
39631 Module support --with-modules=$build_modules $build_modules
39632 GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
39633 Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
39634 High Dynamic Range Imagery
39635 --enable-hdri=$enable_hdri $enable_hdri
cristy3ed852e2009-09-05 21:47:34 +000039636
cristy9af1cbf2014-12-28 22:03:09 +000039637 Install documentation: $wantdocs
cristy3ed852e2009-09-05 21:47:34 +000039638
cristy9af1cbf2014-12-28 22:03:09 +000039639 Delegate Library Configuration:
39640 BZLIB --with-bzlib=$with_bzlib $have_bzlib
39641 Autotrace --with-autotrace=$with_autotrace $have_autotrace
39642 DJVU --with-djvu=$with_djvu $have_djvu
39643 DPS --with-dps=$with_dps $have_dps
39644 FFTW --with-fftw=$with_fftw $have_fftw
39645 FlashPIX --with-fpx=$with_fpx $have_fpx
39646 FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
39647 FreeType --with-freetype=$with_freetype $have_freetype
39648 Ghostscript lib --with-gslib=$with_gslib $have_gslib
39649 Graphviz --with-gvc=$with_gvc $have_gvc
39650 JBIG --with-jbig=$with_jbig $have_jbig
39651 JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
39652 JPEG-2000 --with-jp2=$with_jp2 $have_jp2
39653 LCMS v1 --with-lcms=$with_lcms $have_lcms
39654 LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
39655 LIBJPEG2 --with-openjp2=$with_openjp2 $have_openjp2
39656 LQR --with-lqr=$with_lqr $have_lqr
39657 LTDL --with-ltdl=$with_ltdl $have_ltdl
39658 LZMA --with-lzma=$with_lzma $have_lzma
39659 Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
39660 OpenEXR --with-openexr=$with_openexr $have_openexr
39661 PANGO --with-pango=$with_pango $have_pango
39662 PERL --with-perl=$with_perl $have_perl
39663 PNG --with-png=$with_png $have_png
39664 RSVG --with-rsvg=$with_rsvg $have_rsvg
39665 TIFF --with-tiff=$with_tiff $have_tiff
39666 WEBP --with-webp=$with_webp $have_webp
39667 WMF --with-wmf=$with_wmf $have_wmf
39668 X11 --with-x=$with_x $have_x
39669 XML --with-xml=$with_xml $have_xml
39670 ZLIB --with-zlib=$with_zlib $have_zlib
cristy5a3dc992014-12-05 19:50:04 +000039671
cristy9af1cbf2014-12-28 22:03:09 +000039672 Delegate Program Configuration:
39673 GhostPCL None $PCLDelegate ($PCLVersion)
39674 GhostXPS None $XPSDelegate ($XPSVersion)
39675 Ghostscript None $PSDelegate ($GSVersion)
cristy5a3dc992014-12-05 19:50:04 +000039676
cristy9af1cbf2014-12-28 22:03:09 +000039677 Font Configuration:
39678 Apple fonts --with-apple-font-dir=$with_apple_font_dir $result_apple_font_dir
39679 Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
39680 Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
39681 Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
cristy3ed852e2009-09-05 21:47:34 +000039682
cristy9af1cbf2014-12-28 22:03:09 +000039683 X11 Configuration:
39684 X_CFLAGS = $X_CFLAGS
39685 X_PRE_LIBS = $X_PRE_LIBS
39686 X_LIBS = $X_LIBS
39687 X_EXTRA_LIBS = $X_EXTRA_LIBS
39688
39689 Options used to compile and link:
39690 PREFIX = $PREFIX_DIR
39691 EXEC-PREFIX = $EXEC_PREFIX_DIR
39692 VERSION = $PACKAGE_VERSION
39693 CC = $CC
39694 CFLAGS = $CFLAGS
39695 CPPFLAGS = $CPPFLAGS
39696 PCFLAGS = $PCFLAGS
39697 DEFS = $DEFS
39698 LDFLAGS = $LDFLAGS
39699 LIBS = $LIBS
39700 CXX = $CXX
39701 CXXFLAGS = $CXXFLAGS
39702 FEATURES = $MAGICK_FEATURES
39703 DELEGATES = $MAGICK_DELEGATES
39704==============================================================================
cristy3ed852e2009-09-05 21:47:34 +000039705" >&5
cristy9af1cbf2014-12-28 22:03:09 +000039706$as_echo "$as_me:
39707==============================================================================
cristy3ed852e2009-09-05 21:47:34 +000039708ImageMagick is configured as follows. Please verify that this configuration
39709matches your expectations.
39710
cristy9af1cbf2014-12-28 22:03:09 +000039711 Host system type: $host
39712 Build system type: $build
cristy3ed852e2009-09-05 21:47:34 +000039713
39714 Option Value
cristy9af1cbf2014-12-28 22:03:09 +000039715 ------------------------------------------------------------------------------
39716 Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
39717 Static libraries --enable-static=$enable_static $libtool_build_static_libs
39718 Module support --with-modules=$build_modules $build_modules
39719 GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
39720 Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
39721 High Dynamic Range Imagery
39722 --enable-hdri=$enable_hdri $enable_hdri
cristy3ed852e2009-09-05 21:47:34 +000039723
cristy9af1cbf2014-12-28 22:03:09 +000039724 Install documentation: $wantdocs
cristy3ed852e2009-09-05 21:47:34 +000039725
cristy9af1cbf2014-12-28 22:03:09 +000039726 Delegate Library Configuration:
39727 BZLIB --with-bzlib=$with_bzlib $have_bzlib
39728 Autotrace --with-autotrace=$with_autotrace $have_autotrace
39729 DJVU --with-djvu=$with_djvu $have_djvu
39730 DPS --with-dps=$with_dps $have_dps
39731 FFTW --with-fftw=$with_fftw $have_fftw
39732 FlashPIX --with-fpx=$with_fpx $have_fpx
39733 FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
39734 FreeType --with-freetype=$with_freetype $have_freetype
39735 Ghostscript lib --with-gslib=$with_gslib $have_gslib
39736 Graphviz --with-gvc=$with_gvc $have_gvc
39737 JBIG --with-jbig=$with_jbig $have_jbig
39738 JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
39739 JPEG-2000 --with-jp2=$with_jp2 $have_jp2
39740 LCMS v1 --with-lcms=$with_lcms $have_lcms
39741 LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
39742 LIBJPEG2 --with-openjp2=$with_openjp2 $have_openjp2
39743 LQR --with-lqr=$with_lqr $have_lqr
39744 LTDL --with-ltdl=$with_ltdl $have_ltdl
39745 LZMA --with-lzma=$with_lzma $have_lzma
39746 Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
39747 OpenEXR --with-openexr=$with_openexr $have_openexr
39748 PANGO --with-pango=$with_pango $have_pango
39749 PERL --with-perl=$with_perl $have_perl
39750 PNG --with-png=$with_png $have_png
39751 RSVG --with-rsvg=$with_rsvg $have_rsvg
39752 TIFF --with-tiff=$with_tiff $have_tiff
39753 WEBP --with-webp=$with_webp $have_webp
39754 WMF --with-wmf=$with_wmf $have_wmf
39755 X11 --with-x=$with_x $have_x
39756 XML --with-xml=$with_xml $have_xml
39757 ZLIB --with-zlib=$with_zlib $have_zlib
cristy5a3dc992014-12-05 19:50:04 +000039758
cristy9af1cbf2014-12-28 22:03:09 +000039759 Delegate Program Configuration:
39760 GhostPCL None $PCLDelegate ($PCLVersion)
39761 GhostXPS None $XPSDelegate ($XPSVersion)
39762 Ghostscript None $PSDelegate ($GSVersion)
cristy5a3dc992014-12-05 19:50:04 +000039763
cristy9af1cbf2014-12-28 22:03:09 +000039764 Font Configuration:
39765 Apple fonts --with-apple-font-dir=$with_apple_font_dir $result_apple_font_dir
39766 Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
39767 Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
39768 Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
cristy3ed852e2009-09-05 21:47:34 +000039769
cristy9af1cbf2014-12-28 22:03:09 +000039770 X11 Configuration:
39771 X_CFLAGS = $X_CFLAGS
39772 X_PRE_LIBS = $X_PRE_LIBS
39773 X_LIBS = $X_LIBS
39774 X_EXTRA_LIBS = $X_EXTRA_LIBS
39775
39776 Options used to compile and link:
39777 PREFIX = $PREFIX_DIR
39778 EXEC-PREFIX = $EXEC_PREFIX_DIR
39779 VERSION = $PACKAGE_VERSION
39780 CC = $CC
39781 CFLAGS = $CFLAGS
39782 CPPFLAGS = $CPPFLAGS
39783 PCFLAGS = $PCFLAGS
39784 DEFS = $DEFS
39785 LDFLAGS = $LDFLAGS
39786 LIBS = $LIBS
39787 CXX = $CXX
39788 CXXFLAGS = $CXXFLAGS
39789 FEATURES = $MAGICK_FEATURES
39790 DELEGATES = $MAGICK_DELEGATES
39791==============================================================================
39792" >&6;}