blob: 1ceabf8efc3987c00c80ae53a1a5cd645a5bf1a6 [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
cristy73bd4a52010-10-05 11:24:23 +0000766XML_DELEGATE_FALSE
767XML_DELEGATE_TRUE
cristy32f75d42015-06-05 18:46:23 +0000768XML_LIBS
769XML_CFLAGS
cristy32f75d42015-06-05 18:46:23 +0000770WMF_LIBS
771WMF_CFLAGS
cristyebc8f692015-06-16 10:36:30 +0000772WMF_DELEGATE_FALSE
773WMF_DELEGATE_TRUE
cristyb1860752011-03-14 00:27:46 +0000774WEBP_LIBS
775WEBP_DELEGATE_FALSE
776WEBP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000777TIFF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000778TIFF_DELEGATE_FALSE
779TIFF_DELEGATE_TRUE
780CAIRO_DELEGATE_FALSE
781CAIRO_DELEGATE_TRUE
782RSVG_DELEGATE_FALSE
783RSVG_DELEGATE_TRUE
784CAIRO_SVG_LIBS
785CAIRO_SVG_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000786RSVG_LIBS
787RSVG_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000788PNG_DELEGATE_FALSE
789PNG_DELEGATE_TRUE
cristy32f75d42015-06-05 18:46:23 +0000790PNG_LIBS
791PNG_CFLAGS
cristya054b762012-03-26 23:16:00 +0000792PANGOCAIRO_DELEGATE_FALSE
793PANGOCAIRO_DELEGATE_TRUE
cristy41cbe8a2011-10-27 01:35:18 +0000794PANGO_DELEGATE_FALSE
795PANGO_DELEGATE_TRUE
796PANGO_LIBS
797PANGO_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000798OPENEXR_DELEGATE_FALSE
799OPENEXR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000800OPENEXR_LIBS
801OPENEXR_CFLAGS
cristyfbb0ef02010-12-19 02:32:11 +0000802LZMA_DELEGATE_FALSE
803LZMA_DELEGATE_TRUE
cristyb94e5002011-11-14 13:20:10 +0000804LZMA_LIBS
805LZMA_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000806LQR_DELEGATE_FALSE
807LQR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000808LQR_LIBS
809LQR_CFLAGS
cristy99db3872014-01-01 15:11:34 +0000810LIBOPENJP2_DELEGATE_FALSE
811LIBOPENJP2_DELEGATE_TRUE
812LIBOPENJP2_LIBS
813LIBOPENJP2_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000814LCMS_DELEGATE_FALSE
815LCMS_DELEGATE_TRUE
cristy32f75d42015-06-05 18:46:23 +0000816LCMS_LIBS
817LCMS_CFLAGS
cristyb054e072015-06-05 20:35:43 +0000818LCMS2_LIBS
819LCMS2_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000820JPEG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000821JPEG_DELEGATE_FALSE
822JPEG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000823JBIG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000824JBIG_DELEGATE_FALSE
825JBIG_DELEGATE_TRUE
826GVC_DELEGATE_FALSE
827GVC_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000828GVC_LIBS
829GVC_CFLAGS
830GS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000831GS_DELEGATE_FALSE
832GS_DELEGATE_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000833FREETYPE_DELEGATE_FALSE
834FREETYPE_DELEGATE_TRUE
cristy03f187e2013-01-24 00:22:19 +0000835FREETYPE_LIBS
836FREETYPE_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000837FONTCONFIG_DELEGATE_FALSE
838FONTCONFIG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000839FONTCONFIG_LIBS
840FONTCONFIG_CFLAGS
cristy853d9902014-08-21 18:50:43 +0000841DJVU_LIBS
cristy32f75d42015-06-05 18:46:23 +0000842DJVU_CFLAGS
cristy853d9902014-08-21 18:50:43 +0000843DJVU_DELEGATE_FALSE
844DJVU_DELEGATE_TRUE
cristy32f75d42015-06-05 18:46:23 +0000845ddjvuapi_LIBS
846ddjvuapi_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000847FPX_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000848FPX_DELEGATE_FALSE
849FPX_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000850FFTW_LIBS
cristy32f75d42015-06-05 18:46:23 +0000851FFTW_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000852FFTW_DELEGATE_FALSE
853FFTW_DELEGATE_TRUE
cristy32f75d42015-06-05 18:46:23 +0000854fftw3_LIBS
855fftw3_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000856DPS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000857DPS_DELEGATE_FALSE
858DPS_DELEGATE_TRUE
859AUTOTRACE_DELEGATE_FALSE
860AUTOTRACE_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000861AUTOTRACE_LIBS
862AUTOTRACE_CFLAGS
863LIB_DL
cristy5eef09f2012-10-16 12:08:28 +0000864WITH_LTDL_FALSE
865WITH_LTDL_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000866ZLIB_DELEGATE_FALSE
867ZLIB_DELEGATE_TRUE
cristy32f75d42015-06-05 18:46:23 +0000868ZLIB_LIBS
869ZLIB_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000870XEXT_LIBS
871X11_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000872X11_DELEGATE_FALSE
873X11_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000874X_EXTRA_LIBS
875X_LIBS
876X_PRE_LIBS
877X_CFLAGS
cristyc7083c12009-10-14 03:16:55 +0000878XMKMF
cristy3ed852e2009-09-05 21:47:34 +0000879BZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000880BZLIB_DELEGATE_FALSE
881BZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000882CCMALLOCDelegate
883UMEM_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000884HasUMEM_FALSE
885HasUMEM_TRUE
cristy3b0097d2014-11-04 15:34:47 +0000886JEMALLOC_LIBS
887HasJEMALLOC_FALSE
888HasJEMALLOC_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000889GOMP_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000890WITH_MAGICK_PLUS_PLUS_FALSE
891WITH_MAGICK_PLUS_PLUS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000892OPENMP_CXXFLAGS
cristy161b9262010-03-20 19:34:32 +0000893MATH_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000894POW_LIB
895LIBOBJS
cristy6d5e20f2011-04-25 13:48:54 +0000896UINTPTR_F
cristy3ed852e2009-09-05 21:47:34 +0000897UINTPTR_T
cristy6d5e20f2011-04-25 13:48:54 +0000898UINTMAX_F
cristy3ed852e2009-09-05 21:47:34 +0000899UINTMAX_T
cristy6d5e20f2011-04-25 13:48:54 +0000900UINT64_F
cristy3ed852e2009-09-05 21:47:34 +0000901UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000902INT64_F
cristy3ed852e2009-09-05 21:47:34 +0000903INT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000904UINT32_F
cristy3ed852e2009-09-05 21:47:34 +0000905UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +0000906INT32_F
cristy3ed852e2009-09-05 21:47:34 +0000907INT32_T
908UINT16_T
909INT16_T
910UINT8_T
911INT8_T
912LIBRARY_EXTRA_CPPFLAGS
913MODULE_EXTRA_CPPFLAGS
914LIBSTDCLDFLAGS
915PERL_MAKE_OPTIONS
cristy3a75f062012-09-08 23:29:40 +0000916MAGICK_LT_RELEASE_OPTS
cristy7a26abd2012-12-03 00:18:59 +0000917MAGICK_ABI_SUFFIX
cristy3ed852e2009-09-05 21:47:34 +0000918QUANTUM_DEPTH
cristy71d8c202012-03-20 17:05:01 +0000919LEGACY_SUPPORT_FALSE
920LEGACY_SUPPORT_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000921MAINT
922MAINTAINER_MODE_FALSE
923MAINTAINER_MODE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000924MAGICK_HDRI
cristy73bd4a52010-10-05 11:24:23 +0000925WITH_MODULES_FALSE
926WITH_MODULES_TRUE
927WITH_SHARED_LIBS_FALSE
928WITH_SHARED_LIBS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000929LIBTOOL_DEPS
cristy73bd4a52010-10-05 11:24:23 +0000930CXXCPP
931OTOOL64
932OTOOL
933LIPO
934NMEDIT
935DSYMUTIL
cristyda16f162011-02-19 23:52:17 +0000936MANIFEST_TOOL
cristy73bd4a52010-10-05 11:24:23 +0000937RANLIB
cristy73bd4a52010-10-05 11:24:23 +0000938NM
939ac_ct_DUMPBIN
940DUMPBIN
941LIBTOOL
942OBJDUMP
943DLLTOOL
944AS
cristy3ed852e2009-09-05 21:47:34 +0000945LFS_CPPFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000946CL_LIBS
cristy736173a2009-09-20 21:18:22 +0000947CL_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000948OPENMP_CFLAGS
cristy1ae5c992013-07-30 14:55:07 +0000949THREAD_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000950PTHREAD_CFLAGS
951PTHREAD_LIBS
952PTHREAD_CC
953ax_pthread_config
cristy2ec87cc2013-02-18 17:46:50 +0000954pkgconfigdir
cristy670aa3c2011-11-03 00:54:00 +0000955SHAREARCH_DIR
956INCLUDEARCH_DIR
cristy3ed852e2009-09-05 21:47:34 +0000957WinPathScript
cristy73bd4a52010-10-05 11:24:23 +0000958USING_CL_FALSE
959USING_CL_TRUE
960CYGWIN_BUILD_FALSE
961CYGWIN_BUILD_TRUE
962WIN32_NATIVE_BUILD_FALSE
963WIN32_NATIVE_BUILD_TRUE
964WINGDI32_DELEGATE_FALSE
965WINGDI32_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000966GDI32_LIBS
cristy9b86f202012-11-28 21:55:35 +0000967HAVE_LD_VERSION_SCRIPT_FALSE
968HAVE_LD_VERSION_SCRIPT_TRUE
cristy146497a2015-05-17 22:46:16 +0000969PKG_CONFIG_LIBDIR
970PKG_CONFIG_PATH
cristy73bd4a52010-10-05 11:24:23 +0000971PKG_CONFIG
cristya0459972013-11-03 18:09:35 +0000972PRTDIAG
cristy3ed852e2009-09-05 21:47:34 +0000973LN_S
cristy3ed852e2009-09-05 21:47:34 +0000974LD
cristy73bd4a52010-10-05 11:24:23 +0000975FGREP
976SED
977am__fastdepCXX_FALSE
978am__fastdepCXX_TRUE
979CXXDEPMODE
cristy95646052009-11-28 23:05:30 +0000980ac_ct_CXX
981CXXFLAGS
982CXX
cristy9e007fe2015-01-03 16:05:07 +0000983ac_ct_AR
984AR
cristya0b81c32010-01-22 02:54:33 +0000985EGREP
986GREP
987CPP
cristy73bd4a52010-10-05 11:24:23 +0000988am__fastdepCC_FALSE
989am__fastdepCC_TRUE
990CCDEPMODE
cristy7247bba2012-02-05 16:37:27 +0000991am__nodep
cristy73bd4a52010-10-05 11:24:23 +0000992AMDEPBACKSLASH
993AMDEP_FALSE
994AMDEP_TRUE
995am__quote
996am__include
997DEPDIR
cristy3ed852e2009-09-05 21:47:34 +0000998OBJEXT
999EXEEXT
1000ac_ct_CC
1001CPPFLAGS
1002LDFLAGS
1003CFLAGS
1004CC
1005DIRSEP
1006MAGICK_FILTER_MODULE_PATH
1007MAGICK_CONFIGURE_BUILD_PATH
1008MAGICK_CONFIGURE_SRC_PATH
1009MAGICK_CODER_MODULE_PATH
1010MAN_DIR
1011INFO_DIR
1012PERSISTINCLUDE_DIR
1013INCLUDE_DIR
1014LIB_DIR
1015LOCALSTATE_DIR
1016SHAREDSTATE_DIR
1017SYSCONF_DIR
cristyd55889c2011-03-27 00:50:24 +00001018DOC_DIR
cristy3ed852e2009-09-05 21:47:34 +00001019DATA_DIR
1020LIBEXEC_DIR
1021SBIN_DIR
1022BIN_DIR
1023EXEC_PREFIX_DIR
1024PREFIX_DIR
1025CONFIG_STATUS_DEPENDENCIES
cristy5ed9c6e2013-07-14 21:20:31 +00001026MAGICKPP_LIB_VERSION_TEXT
1027MAGICKPP_LIB_VERSION
cristy3ed852e2009-09-05 21:47:34 +00001028MAGICK_LIB_VERSION_NUMBER
1029MAGICK_LIB_VERSION_TEXT
1030MAGICK_LIB_VERSION
cristy9af1cbf2014-12-28 22:03:09 +00001031PACKAGE_VERSION_ADDENDUM
1032PACKAGE_RELEASE_DATE
1033PACKAGE_LIB_VERSION_NUMBER
1034PACKAGE_LIB_VERSION
1035PACKAGE_CHANGE_DATE
1036PACKAGE_RELEASE
1037PACKAGE_PERL_VERSION
1038MAGICKPP_LIBRARY_VERSION_INFO
1039MAGICKPP_LIBRARY_CURRENT_MIN
1040MAGICKPP_LIBRARY_AGE
1041MAGICKPP_LIBRARY_REVISION
1042MAGICKPP_LIBRARY_CURRENT
1043MAGICK_LIBRARY_VERSION_INFO
1044MAGICK_LIBRARY_CURRENT_MIN
1045MAGICK_LIBRARY_AGE
1046MAGICK_LIBRARY_REVISION
1047MAGICK_LIBRARY_CURRENT
1048MAGICK_SVN_REVISION
1049MAGICK_VERSION
1050MAGICK_PATCHLEVEL_VERSION
1051MAGICK_MICRO_VERSION
1052MAGICK_MINOR_VERSION
1053MAGICK_MAJOR_VERSION
1054MAGICK_TARGET_OS
1055MAGICK_TARGET_VENDOR
1056MAGICK_TARGET_CPU
1057CONFIGURE_ARGS
1058DISTCHECK_CONFIG_FLAGS
cristy73bd4a52010-10-05 11:24:23 +00001059AM_BACKSLASH
1060AM_DEFAULT_VERBOSITY
cristyc3fb77b2012-02-06 01:49:41 +00001061AM_DEFAULT_V
1062AM_V
cristy73bd4a52010-10-05 11:24:23 +00001063am__untar
1064am__tar
1065AMTAR
1066am__leading_dot
1067SET_MAKE
1068AWK
1069mkdir_p
1070MKDIR_P
1071INSTALL_STRIP_PROGRAM
1072STRIP
1073install_sh
1074MAKEINFO
1075AUTOHEADER
1076AUTOMAKE
1077AUTOCONF
1078ACLOCAL
1079VERSION
1080PACKAGE
1081CYGPATH_W
1082am__isrc
1083INSTALL_DATA
1084INSTALL_SCRIPT
1085INSTALL_PROGRAM
cristy3ed852e2009-09-05 21:47:34 +00001086target_os
1087target_vendor
1088target_cpu
1089target
1090host_os
1091host_vendor
1092host_cpu
1093host
1094build_os
1095build_vendor
1096build_cpu
1097build
cristy3ed852e2009-09-05 21:47:34 +00001098target_alias
1099host_alias
1100build_alias
1101LIBS
1102ECHO_T
1103ECHO_N
1104ECHO_C
1105DEFS
1106mandir
1107localedir
1108libdir
1109psdir
1110pdfdir
1111dvidir
1112htmldir
1113infodir
1114docdir
1115oldincludedir
1116includedir
1117localstatedir
1118sharedstatedir
1119sysconfdir
1120datadir
1121datarootdir
1122libexecdir
1123sbindir
1124bindir
1125program_transform_name
1126prefix
1127exec_prefix
cristy8b350f62009-11-15 23:12:43 +00001128PACKAGE_URL
cristy3ed852e2009-09-05 21:47:34 +00001129PACKAGE_BUGREPORT
1130PACKAGE_STRING
1131PACKAGE_VERSION
1132PACKAGE_TARNAME
1133PACKAGE_NAME
1134PATH_SEPARATOR
1135SHELL'
1136ac_subst_files=''
1137ac_user_opts='
1138enable_option_checking
cristy73bd4a52010-10-05 11:24:23 +00001139enable_silent_rules
cristy187791c2015-05-03 22:17:00 +00001140enable_reproducible_build
cristy73bd4a52010-10-05 11:24:23 +00001141enable_dependency_tracking
1142with_gnu_ld
1143with_dmalloc
cristya0459972013-11-03 18:09:35 +00001144with_gcc_arch
cristy9b86f202012-11-28 21:55:35 +00001145enable_ld_version_script
cristy3ed852e2009-09-05 21:47:34 +00001146enable_bounds_checking
1147enable_osx_universal_binary
cristy670aa3c2011-11-03 00:54:00 +00001148with_includearch_dir
1149with_sharearch_dir
cristy2ec87cc2013-02-18 17:46:50 +00001150with_pkgconfigdir
cristy3ed852e2009-09-05 21:47:34 +00001151with_threads
1152enable_openmp
cristy73bd4a52010-10-05 11:24:23 +00001153enable_opencl
cristy3ed852e2009-09-05 21:47:34 +00001154enable_largefile
cristy73bd4a52010-10-05 11:24:23 +00001155enable_shared
1156enable_static
1157with_pic
1158enable_fast_install
cristyda16f162011-02-19 23:52:17 +00001159with_sysroot
cristy73bd4a52010-10-05 11:24:23 +00001160enable_libtool_lock
cristy3ed852e2009-09-05 21:47:34 +00001161with_modules
1162enable_delegate_build
1163enable_deprecated
1164enable_installed
1165enable_cipher
cristy6e3607c2011-09-13 13:59:17 +00001166enable_zero_configuration
cristy3ed852e2009-09-05 21:47:34 +00001167enable_hdri
cristy3ed852e2009-09-05 21:47:34 +00001168enable_assert
cristy73bd4a52010-10-05 11:24:23 +00001169enable_maintainer_mode
cristy944e51f2013-04-16 18:45:02 +00001170enable_hugepages
cristy3ed852e2009-09-05 21:47:34 +00001171enable_ccmalloc
1172enable_efence
1173enable_prof
1174enable_gprof
1175enable_gcov
1176with_method_prefix
cristy71d8c202012-03-20 17:05:01 +00001177enable_legacy_support
cristy3ed852e2009-09-05 21:47:34 +00001178with_quantum_depth
1179with_cache
1180with_frozenpaths
1181with_magick_plus_plus
cristy3a75f062012-09-08 23:29:40 +00001182with_package_release_name
cristy3ed852e2009-09-05 21:47:34 +00001183with_perl
1184with_perl_options
cristy3b0097d2014-11-04 15:34:47 +00001185with_jemalloc
cristy3ed852e2009-09-05 21:47:34 +00001186with_umem
1187with_libstdc
1188with_bzlib
cristyc7083c12009-10-14 03:16:55 +00001189with_x
cristy3ed852e2009-09-05 21:47:34 +00001190with_zlib
cristy5a3dc992014-12-05 19:50:04 +00001191with_apple_font_dir
cristy3ed852e2009-09-05 21:47:34 +00001192with_autotrace
1193with_dps
cristy430a7312010-01-21 20:44:04 +00001194with_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +00001195with_fftw
1196with_fpx
cristy853d9902014-08-21 18:50:43 +00001197with_djvu
cristy3ed852e2009-09-05 21:47:34 +00001198with_fontconfig
1199with_freetype
1200with_gslib
1201with_fontpath
1202with_gs_font_dir
1203with_gvc
1204with_jbig
1205with_jpeg
cristy3ed852e2009-09-05 21:47:34 +00001206with_lcms
cristy99db3872014-01-01 15:11:34 +00001207with_openjp2
cristy3ed852e2009-09-05 21:47:34 +00001208with_lqr
cristyfbb0ef02010-12-19 02:32:11 +00001209with_lzma
cristy3ed852e2009-09-05 21:47:34 +00001210with_openexr
cristy41cbe8a2011-10-27 01:35:18 +00001211with_pango
cristy3ed852e2009-09-05 21:47:34 +00001212with_png
1213with_rsvg
1214with_tiff
cristyb1860752011-03-14 00:27:46 +00001215with_webp
cristy3ed852e2009-09-05 21:47:34 +00001216with_windows_font_dir
1217with_wmf
1218with_xml
cristydd17feb2014-03-05 02:06:32 +00001219enable_docs
cristy3ed852e2009-09-05 21:47:34 +00001220'
1221 ac_precious_vars='build_alias
1222host_alias
1223target_alias
1224CC
1225CFLAGS
1226LDFLAGS
1227LIBS
1228CPPFLAGS
cristya0b81c32010-01-22 02:54:33 +00001229CPP
cristy3ed852e2009-09-05 21:47:34 +00001230CXX
1231CXXFLAGS
1232CCC
cristy73bd4a52010-10-05 11:24:23 +00001233PKG_CONFIG
cristy146497a2015-05-17 22:46:16 +00001234PKG_CONFIG_PATH
1235PKG_CONFIG_LIBDIR
cristy73bd4a52010-10-05 11:24:23 +00001236CXXCPP
cristyc7083c12009-10-14 03:16:55 +00001237XMKMF
cristy32f75d42015-06-05 18:46:23 +00001238ZLIB_CFLAGS
1239ZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001240AUTOTRACE_CFLAGS
1241AUTOTRACE_LIBS
cristy32f75d42015-06-05 18:46:23 +00001242fftw3_CFLAGS
1243fftw3_LIBS
1244ddjvuapi_CFLAGS
1245ddjvuapi_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001246FONTCONFIG_CFLAGS
1247FONTCONFIG_LIBS
cristy03f187e2013-01-24 00:22:19 +00001248FREETYPE_CFLAGS
1249FREETYPE_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001250GVC_CFLAGS
1251GVC_LIBS
cristyb054e072015-06-05 20:35:43 +00001252LCMS2_CFLAGS
1253LCMS2_LIBS
cristy32f75d42015-06-05 18:46:23 +00001254LCMS_CFLAGS
1255LCMS_LIBS
cristy99db3872014-01-01 15:11:34 +00001256LIBOPENJP2_CFLAGS
1257LIBOPENJP2_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001258LQR_CFLAGS
1259LQR_LIBS
cristyb94e5002011-11-14 13:20:10 +00001260LZMA_CFLAGS
1261LZMA_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001262OPENEXR_CFLAGS
1263OPENEXR_LIBS
cristy41cbe8a2011-10-27 01:35:18 +00001264PANGO_CFLAGS
1265PANGO_LIBS
cristy32f75d42015-06-05 18:46:23 +00001266PNG_CFLAGS
1267PNG_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001268RSVG_CFLAGS
1269RSVG_LIBS
1270CAIRO_SVG_CFLAGS
cristy32f75d42015-06-05 18:46:23 +00001271CAIRO_SVG_LIBS
cristy32f75d42015-06-05 18:46:23 +00001272XML_CFLAGS
1273XML_LIBS'
cristy3ed852e2009-09-05 21:47:34 +00001274
1275
1276# Initialize some variables set by options.
1277ac_init_help=
1278ac_init_version=false
1279ac_unrecognized_opts=
1280ac_unrecognized_sep=
1281# The variables have the same names as the options, with
1282# dashes changed to underlines.
1283cache_file=/dev/null
1284exec_prefix=NONE
1285no_create=
1286no_recursion=
1287prefix=NONE
1288program_prefix=NONE
1289program_suffix=NONE
1290program_transform_name=s,x,x,
1291silent=
1292site=
1293srcdir=
1294verbose=
1295x_includes=NONE
1296x_libraries=NONE
1297
1298# Installation directory options.
1299# These are left unexpanded so users can "make install exec_prefix=/foo"
1300# and all the variables that are supposed to be based on exec_prefix
1301# by default will actually change.
1302# Use braces instead of parens because sh, perl, etc. also accept them.
1303# (The list follows the same order as the GNU Coding Standards.)
1304bindir='${exec_prefix}/bin'
1305sbindir='${exec_prefix}/sbin'
1306libexecdir='${exec_prefix}/libexec'
1307datarootdir='${prefix}/share'
1308datadir='${datarootdir}'
1309sysconfdir='${prefix}/etc'
1310sharedstatedir='${prefix}/com'
1311localstatedir='${prefix}/var'
1312includedir='${prefix}/include'
1313oldincludedir='/usr/include'
1314docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1315infodir='${datarootdir}/info'
1316htmldir='${docdir}'
1317dvidir='${docdir}'
1318pdfdir='${docdir}'
1319psdir='${docdir}'
1320libdir='${exec_prefix}/lib'
1321localedir='${datarootdir}/locale'
1322mandir='${datarootdir}/man'
1323
1324ac_prev=
1325ac_dashdash=
1326for ac_option
1327do
1328 # If the previous option needs an argument, assign it.
1329 if test -n "$ac_prev"; then
1330 eval $ac_prev=\$ac_option
1331 ac_prev=
1332 continue
1333 fi
1334
1335 case $ac_option in
cristyda16f162011-02-19 23:52:17 +00001336 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1337 *=) ac_optarg= ;;
1338 *) ac_optarg=yes ;;
cristy3ed852e2009-09-05 21:47:34 +00001339 esac
1340
1341 # Accept the important Cygnus configure options, so we can diagnose typos.
1342
1343 case $ac_dashdash$ac_option in
1344 --)
1345 ac_dashdash=yes ;;
1346
1347 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1348 ac_prev=bindir ;;
1349 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1350 bindir=$ac_optarg ;;
1351
1352 -build | --build | --buil | --bui | --bu)
1353 ac_prev=build_alias ;;
1354 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1355 build_alias=$ac_optarg ;;
1356
1357 -cache-file | --cache-file | --cache-fil | --cache-fi \
1358 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1359 ac_prev=cache_file ;;
1360 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1361 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1362 cache_file=$ac_optarg ;;
1363
1364 --config-cache | -C)
1365 cache_file=config.cache ;;
1366
1367 -datadir | --datadir | --datadi | --datad)
1368 ac_prev=datadir ;;
1369 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1370 datadir=$ac_optarg ;;
1371
1372 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1373 | --dataroo | --dataro | --datar)
1374 ac_prev=datarootdir ;;
1375 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1376 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1377 datarootdir=$ac_optarg ;;
1378
1379 -disable-* | --disable-*)
1380 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1381 # Reject names that are not valid shell variable names.
1382 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001383 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001384 ac_useropt_orig=$ac_useropt
1385 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1386 case $ac_user_opts in
1387 *"
1388"enable_$ac_useropt"
1389"*) ;;
1390 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1391 ac_unrecognized_sep=', ';;
1392 esac
1393 eval enable_$ac_useropt=no ;;
1394
1395 -docdir | --docdir | --docdi | --doc | --do)
1396 ac_prev=docdir ;;
1397 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1398 docdir=$ac_optarg ;;
1399
1400 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1401 ac_prev=dvidir ;;
1402 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1403 dvidir=$ac_optarg ;;
1404
1405 -enable-* | --enable-*)
1406 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1407 # Reject names that are not valid shell variable names.
1408 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001409 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001410 ac_useropt_orig=$ac_useropt
1411 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1412 case $ac_user_opts in
1413 *"
1414"enable_$ac_useropt"
1415"*) ;;
1416 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1417 ac_unrecognized_sep=', ';;
1418 esac
1419 eval enable_$ac_useropt=\$ac_optarg ;;
1420
1421 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1422 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1423 | --exec | --exe | --ex)
1424 ac_prev=exec_prefix ;;
1425 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1426 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1427 | --exec=* | --exe=* | --ex=*)
1428 exec_prefix=$ac_optarg ;;
1429
1430 -gas | --gas | --ga | --g)
1431 # Obsolete; use --with-gas.
1432 with_gas=yes ;;
1433
1434 -help | --help | --hel | --he | -h)
1435 ac_init_help=long ;;
1436 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1437 ac_init_help=recursive ;;
1438 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1439 ac_init_help=short ;;
1440
1441 -host | --host | --hos | --ho)
1442 ac_prev=host_alias ;;
1443 -host=* | --host=* | --hos=* | --ho=*)
1444 host_alias=$ac_optarg ;;
1445
1446 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1447 ac_prev=htmldir ;;
1448 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1449 | --ht=*)
1450 htmldir=$ac_optarg ;;
1451
1452 -includedir | --includedir | --includedi | --included | --include \
1453 | --includ | --inclu | --incl | --inc)
1454 ac_prev=includedir ;;
1455 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1456 | --includ=* | --inclu=* | --incl=* | --inc=*)
1457 includedir=$ac_optarg ;;
1458
1459 -infodir | --infodir | --infodi | --infod | --info | --inf)
1460 ac_prev=infodir ;;
1461 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1462 infodir=$ac_optarg ;;
1463
1464 -libdir | --libdir | --libdi | --libd)
1465 ac_prev=libdir ;;
1466 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1467 libdir=$ac_optarg ;;
1468
1469 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1470 | --libexe | --libex | --libe)
1471 ac_prev=libexecdir ;;
1472 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1473 | --libexe=* | --libex=* | --libe=*)
1474 libexecdir=$ac_optarg ;;
1475
1476 -localedir | --localedir | --localedi | --localed | --locale)
1477 ac_prev=localedir ;;
1478 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1479 localedir=$ac_optarg ;;
1480
1481 -localstatedir | --localstatedir | --localstatedi | --localstated \
1482 | --localstate | --localstat | --localsta | --localst | --locals)
1483 ac_prev=localstatedir ;;
1484 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1485 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1486 localstatedir=$ac_optarg ;;
1487
1488 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1489 ac_prev=mandir ;;
1490 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1491 mandir=$ac_optarg ;;
1492
1493 -nfp | --nfp | --nf)
1494 # Obsolete; use --without-fp.
1495 with_fp=no ;;
1496
1497 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1498 | --no-cr | --no-c | -n)
1499 no_create=yes ;;
1500
1501 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1502 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1503 no_recursion=yes ;;
1504
1505 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1506 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1507 | --oldin | --oldi | --old | --ol | --o)
1508 ac_prev=oldincludedir ;;
1509 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1510 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1511 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1512 oldincludedir=$ac_optarg ;;
1513
1514 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1515 ac_prev=prefix ;;
1516 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1517 prefix=$ac_optarg ;;
1518
1519 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1520 | --program-pre | --program-pr | --program-p)
1521 ac_prev=program_prefix ;;
1522 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1523 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1524 program_prefix=$ac_optarg ;;
1525
1526 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1527 | --program-suf | --program-su | --program-s)
1528 ac_prev=program_suffix ;;
1529 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1530 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1531 program_suffix=$ac_optarg ;;
1532
1533 -program-transform-name | --program-transform-name \
1534 | --program-transform-nam | --program-transform-na \
1535 | --program-transform-n | --program-transform- \
1536 | --program-transform | --program-transfor \
1537 | --program-transfo | --program-transf \
1538 | --program-trans | --program-tran \
1539 | --progr-tra | --program-tr | --program-t)
1540 ac_prev=program_transform_name ;;
1541 -program-transform-name=* | --program-transform-name=* \
1542 | --program-transform-nam=* | --program-transform-na=* \
1543 | --program-transform-n=* | --program-transform-=* \
1544 | --program-transform=* | --program-transfor=* \
1545 | --program-transfo=* | --program-transf=* \
1546 | --program-trans=* | --program-tran=* \
1547 | --progr-tra=* | --program-tr=* | --program-t=*)
1548 program_transform_name=$ac_optarg ;;
1549
1550 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1551 ac_prev=pdfdir ;;
1552 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1553 pdfdir=$ac_optarg ;;
1554
1555 -psdir | --psdir | --psdi | --psd | --ps)
1556 ac_prev=psdir ;;
1557 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1558 psdir=$ac_optarg ;;
1559
1560 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1561 | -silent | --silent | --silen | --sile | --sil)
1562 silent=yes ;;
1563
1564 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1565 ac_prev=sbindir ;;
1566 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1567 | --sbi=* | --sb=*)
1568 sbindir=$ac_optarg ;;
1569
1570 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1571 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1572 | --sharedst | --shareds | --shared | --share | --shar \
1573 | --sha | --sh)
1574 ac_prev=sharedstatedir ;;
1575 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1576 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1577 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1578 | --sha=* | --sh=*)
1579 sharedstatedir=$ac_optarg ;;
1580
1581 -site | --site | --sit)
1582 ac_prev=site ;;
1583 -site=* | --site=* | --sit=*)
1584 site=$ac_optarg ;;
1585
1586 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1587 ac_prev=srcdir ;;
1588 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1589 srcdir=$ac_optarg ;;
1590
1591 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1592 | --syscon | --sysco | --sysc | --sys | --sy)
1593 ac_prev=sysconfdir ;;
1594 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1595 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1596 sysconfdir=$ac_optarg ;;
1597
1598 -target | --target | --targe | --targ | --tar | --ta | --t)
1599 ac_prev=target_alias ;;
1600 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1601 target_alias=$ac_optarg ;;
1602
1603 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1604 verbose=yes ;;
1605
1606 -version | --version | --versio | --versi | --vers | -V)
1607 ac_init_version=: ;;
1608
1609 -with-* | --with-*)
1610 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1611 # Reject names that are not valid shell variable names.
1612 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001613 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001614 ac_useropt_orig=$ac_useropt
1615 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1616 case $ac_user_opts in
1617 *"
1618"with_$ac_useropt"
1619"*) ;;
1620 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1621 ac_unrecognized_sep=', ';;
1622 esac
1623 eval with_$ac_useropt=\$ac_optarg ;;
1624
1625 -without-* | --without-*)
1626 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1627 # Reject names that are not valid shell variable names.
1628 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001629 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001630 ac_useropt_orig=$ac_useropt
1631 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1632 case $ac_user_opts in
1633 *"
1634"with_$ac_useropt"
1635"*) ;;
1636 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1637 ac_unrecognized_sep=', ';;
1638 esac
1639 eval with_$ac_useropt=no ;;
1640
1641 --x)
1642 # Obsolete; use --with-x.
1643 with_x=yes ;;
1644
1645 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1646 | --x-incl | --x-inc | --x-in | --x-i)
1647 ac_prev=x_includes ;;
1648 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1649 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1650 x_includes=$ac_optarg ;;
1651
1652 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1653 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1654 ac_prev=x_libraries ;;
1655 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1656 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1657 x_libraries=$ac_optarg ;;
1658
cristy98dddb52010-11-04 00:30:15 +00001659 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1660Try \`$0 --help' for more information"
cristy3ed852e2009-09-05 21:47:34 +00001661 ;;
1662
1663 *=*)
1664 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1665 # Reject names that are not valid shell variable names.
cristy8b350f62009-11-15 23:12:43 +00001666 case $ac_envvar in #(
1667 '' | [0-9]* | *[!_$as_cr_alnum]* )
cristy98dddb52010-11-04 00:30:15 +00001668 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
cristy8b350f62009-11-15 23:12:43 +00001669 esac
cristy3ed852e2009-09-05 21:47:34 +00001670 eval $ac_envvar=\$ac_optarg
1671 export $ac_envvar ;;
1672
1673 *)
1674 # FIXME: should be removed in autoconf 3.0.
1675 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1676 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1677 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
cristyda16f162011-02-19 23:52:17 +00001678 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
cristy3ed852e2009-09-05 21:47:34 +00001679 ;;
1680
1681 esac
1682done
1683
1684if test -n "$ac_prev"; then
1685 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cristy98dddb52010-11-04 00:30:15 +00001686 as_fn_error $? "missing argument to $ac_option"
cristy3ed852e2009-09-05 21:47:34 +00001687fi
1688
1689if test -n "$ac_unrecognized_opts"; then
1690 case $enable_option_checking in
1691 no) ;;
cristy98dddb52010-11-04 00:30:15 +00001692 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
cristy3ed852e2009-09-05 21:47:34 +00001693 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1694 esac
1695fi
1696
1697# Check all directory arguments for consistency.
1698for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1699 datadir sysconfdir sharedstatedir localstatedir includedir \
1700 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1701 libdir localedir mandir
1702do
1703 eval ac_val=\$$ac_var
1704 # Remove trailing slashes.
1705 case $ac_val in
1706 */ )
1707 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1708 eval $ac_var=\$ac_val;;
1709 esac
1710 # Be sure to have absolute directory names.
1711 case $ac_val in
1712 [\\/$]* | ?:[\\/]* ) continue;;
1713 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1714 esac
cristy98dddb52010-11-04 00:30:15 +00001715 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
cristy3ed852e2009-09-05 21:47:34 +00001716done
1717
1718# There might be people who depend on the old broken behavior: `$host'
1719# used to hold the argument of --host etc.
1720# FIXME: To remove some day.
1721build=$build_alias
1722host=$host_alias
1723target=$target_alias
1724
1725# FIXME: To remove some day.
1726if test "x$host_alias" != x; then
1727 if test "x$build_alias" = x; then
1728 cross_compiling=maybe
cristy3ed852e2009-09-05 21:47:34 +00001729 elif test "x$build_alias" != "x$host_alias"; then
1730 cross_compiling=yes
1731 fi
1732fi
1733
1734ac_tool_prefix=
1735test -n "$host_alias" && ac_tool_prefix=$host_alias-
1736
1737test "$silent" = yes && exec 6>/dev/null
1738
1739
1740ac_pwd=`pwd` && test -n "$ac_pwd" &&
1741ac_ls_di=`ls -di .` &&
1742ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cristy98dddb52010-11-04 00:30:15 +00001743 as_fn_error $? "working directory cannot be determined"
cristy3ed852e2009-09-05 21:47:34 +00001744test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cristy98dddb52010-11-04 00:30:15 +00001745 as_fn_error $? "pwd does not report name of working directory"
cristy3ed852e2009-09-05 21:47:34 +00001746
1747
1748# Find the source files, if location was not specified.
1749if test -z "$srcdir"; then
1750 ac_srcdir_defaulted=yes
1751 # Try the directory containing this script, then the parent directory.
1752 ac_confdir=`$as_dirname -- "$as_myself" ||
1753$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1754 X"$as_myself" : 'X\(//\)[^/]' \| \
1755 X"$as_myself" : 'X\(//\)$' \| \
1756 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1757$as_echo X"$as_myself" |
1758 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1759 s//\1/
1760 q
1761 }
1762 /^X\(\/\/\)[^/].*/{
1763 s//\1/
1764 q
1765 }
1766 /^X\(\/\/\)$/{
1767 s//\1/
1768 q
1769 }
1770 /^X\(\/\).*/{
1771 s//\1/
1772 q
1773 }
1774 s/.*/./; q'`
1775 srcdir=$ac_confdir
1776 if test ! -r "$srcdir/$ac_unique_file"; then
1777 srcdir=..
1778 fi
1779else
1780 ac_srcdir_defaulted=no
1781fi
1782if test ! -r "$srcdir/$ac_unique_file"; then
1783 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cristy98dddb52010-11-04 00:30:15 +00001784 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
cristy3ed852e2009-09-05 21:47:34 +00001785fi
1786ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1787ac_abs_confdir=`(
cristy98dddb52010-11-04 00:30:15 +00001788 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
cristy3ed852e2009-09-05 21:47:34 +00001789 pwd)`
1790# When building in place, set srcdir=.
1791if test "$ac_abs_confdir" = "$ac_pwd"; then
1792 srcdir=.
1793fi
1794# Remove unnecessary trailing slashes from srcdir.
1795# Double slashes in file names in object file debugging info
1796# mess up M-x gdb in Emacs.
1797case $srcdir in
1798*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1799esac
1800for ac_var in $ac_precious_vars; do
1801 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1802 eval ac_env_${ac_var}_value=\$${ac_var}
1803 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1804 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1805done
1806
1807#
1808# Report the --help message.
1809#
1810if test "$ac_init_help" = "long"; then
1811 # Omit some internal or obsolete options to make the list less imposing.
1812 # This message is too long to be a string in the A/UX 3.1 sh.
1813 cat <<_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00001814\`configure' configures ImageMagick 7.0.0-0 to adapt to many kinds of systems.
cristy3ed852e2009-09-05 21:47:34 +00001815
1816Usage: $0 [OPTION]... [VAR=VALUE]...
1817
1818To assign environment variables (e.g., CC, CFLAGS...), specify them as
1819VAR=VALUE. See below for descriptions of some of the useful variables.
1820
1821Defaults for the options are specified in brackets.
1822
1823Configuration:
1824 -h, --help display this help and exit
1825 --help=short display options specific to this package
1826 --help=recursive display the short help of all the included packages
1827 -V, --version display version information and exit
cristy98dddb52010-11-04 00:30:15 +00001828 -q, --quiet, --silent do not print \`checking ...' messages
cristy3ed852e2009-09-05 21:47:34 +00001829 --cache-file=FILE cache test results in FILE [disabled]
1830 -C, --config-cache alias for \`--cache-file=config.cache'
1831 -n, --no-create do not create output files
1832 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1833
1834Installation directories:
1835 --prefix=PREFIX install architecture-independent files in PREFIX
1836 [$ac_default_prefix]
1837 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1838 [PREFIX]
1839
1840By default, \`make install' will install all the files in
1841\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1842an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1843for instance \`--prefix=\$HOME'.
1844
1845For better control, use the options below.
1846
1847Fine tuning of the installation directories:
1848 --bindir=DIR user executables [EPREFIX/bin]
1849 --sbindir=DIR system admin executables [EPREFIX/sbin]
1850 --libexecdir=DIR program executables [EPREFIX/libexec]
1851 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1852 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1853 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1854 --libdir=DIR object code libraries [EPREFIX/lib]
1855 --includedir=DIR C header files [PREFIX/include]
1856 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1857 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1858 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1859 --infodir=DIR info documentation [DATAROOTDIR/info]
1860 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1861 --mandir=DIR man documentation [DATAROOTDIR/man]
cristy09b53e12011-10-14 12:47:22 +00001862 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick]
cristy3ed852e2009-09-05 21:47:34 +00001863 --htmldir=DIR html documentation [DOCDIR]
1864 --dvidir=DIR dvi documentation [DOCDIR]
1865 --pdfdir=DIR pdf documentation [DOCDIR]
1866 --psdir=DIR ps documentation [DOCDIR]
1867_ACEOF
1868
1869 cat <<\_ACEOF
1870
cristy73bd4a52010-10-05 11:24:23 +00001871Program names:
1872 --program-prefix=PREFIX prepend PREFIX to installed program names
1873 --program-suffix=SUFFIX append SUFFIX to installed program names
1874 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1875
cristy3ed852e2009-09-05 21:47:34 +00001876X features:
1877 --x-includes=DIR X include files are in DIR
1878 --x-libraries=DIR X library files are in DIR
1879
1880System types:
1881 --build=BUILD configure for building on BUILD [guessed]
1882 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1883 --target=TARGET configure for building compilers for TARGET [HOST]
1884_ACEOF
1885fi
1886
1887if test -n "$ac_init_help"; then
1888 case $ac_init_help in
cristy29eb34e2011-10-16 00:46:08 +00001889 short | recursive ) echo "Configuration of ImageMagick 7.0.0-0:";;
cristy3ed852e2009-09-05 21:47:34 +00001890 esac
1891 cat <<\_ACEOF
1892
1893Optional Features:
1894 --disable-option-checking ignore unrecognized --enable/--with options
1895 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1896 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
cristyc0890a62012-07-19 00:18:20 +00001897 --enable-silent-rules less verbose build output (undo: "make V=1")
1898 --disable-silent-rules verbose build output (undo: "make V=0")
cristy187791c2015-05-03 22:17:00 +00001899 --enable-reproducible-build
1900 enable reproducible build
cristyc0890a62012-07-19 00:18:20 +00001901 --enable-dependency-tracking
1902 do not reject slow dependency extractors
1903 --disable-dependency-tracking
1904 speeds up one-time build
cristy9b86f202012-11-28 21:55:35 +00001905 --enable-ld-version-script
1906 enable linker version script (default is enabled
1907 when possible)
cristya3824692012-03-30 17:22:07 +00001908 --enable-bounds-checking
1909 enable run-time bounds-checking
cristy3ed852e2009-09-05 21:47:34 +00001910 --enable-osx-universal-binary
cristycd4c5312009-11-22 01:19:08 +00001911 build universal binary on OS X [[default=no]]
cristy3ed852e2009-09-05 21:47:34 +00001912 --disable-openmp do not use OpenMP
cristy48794642012-09-02 15:19:08 +00001913 --enable-opencl enable OpenCL support
cristy3ed852e2009-09-05 21:47:34 +00001914 --disable-largefile omit support for large files
cristy73bd4a52010-10-05 11:24:23 +00001915 --enable-shared[=PKGS] build shared libraries [default=yes]
1916 --enable-static[=PKGS] build static libraries [default=yes]
1917 --enable-fast-install[=PKGS]
1918 optimize for fast installation [default=yes]
1919 --disable-libtool-lock avoid locking (might break parallel builds)
cristy3ed852e2009-09-05 21:47:34 +00001920 --enable-delegate-build look for delegate libraries in build directory
1921 --disable-deprecated exclude deprecated methods in MagickCore and
cristy3a75f062012-09-08 23:29:40 +00001922 MagickWand APIs
cristy3ed852e2009-09-05 21:47:34 +00001923 --disable-installed Formally install ImageMagick under PREFIX
1924 --disable-cipher disable enciphering and deciphering image pixels
cristy6e3607c2011-09-13 13:59:17 +00001925 --enable-zero-configuration
1926 enable self-contained, embeddable,
cristy3ed852e2009-09-05 21:47:34 +00001927 zero-configuration ImageMagick
cristyf314dbd2012-11-15 13:35:28 +00001928 --enable-hdri accurately represent the wide range of intensity
cristy3ed852e2009-09-05 21:47:34 +00001929 levels found in real scenes
cristy3ed852e2009-09-05 21:47:34 +00001930 --disable-assert disable assert() statements in build
cristyc0890a62012-07-19 00:18:20 +00001931 --enable-maintainer-mode
1932 enable make rules and dependencies not useful (and
1933 sometimes confusing) to the casual installer
cristy944e51f2013-04-16 18:45:02 +00001934 --enable-hugepages enable 'huge pages' support
cristy3ed852e2009-09-05 21:47:34 +00001935 --enable-ccmalloc enable 'ccmalloc' memory debug support
1936 --enable-efence enable 'efence' memory debug support
1937 --enable-prof enable 'prof' profiling support
1938 --enable-gprof enable 'gprof' profiling support
1939 --enable-gcov enable 'gcov' profiling support
cristy71d8c202012-03-20 17:05:01 +00001940 --enable-legacy-support install legacy command-line utilities (default disabled)
cristya0b81c32010-01-22 02:54:33 +00001941 --disable-assert turn off assertions
cristydd17feb2014-03-05 02:06:32 +00001942 --disable-docs disable building of documentation
cristy3ed852e2009-09-05 21:47:34 +00001943
1944Optional Packages:
1945 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1946 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
cristy73bd4a52010-10-05 11:24:23 +00001947 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
cristy7247bba2012-02-05 16:37:27 +00001948 --with-dmalloc use dmalloc, as in http://www.dmalloc.com
cristya0459972013-11-03 18:09:35 +00001949 --with-gcc-arch=<arch> use architecture <arch> for gcc -march/-mtune,
1950 instead of guessing
cristy670aa3c2011-11-03 00:54:00 +00001951 --includearch-dir=DIR ARCH specific include directory
1952 --sharearch-dir=DIR ARCH specific config directory
cristy2ec87cc2013-02-18 17:46:50 +00001953 --with-pkgconfigdir=DIR Path to the pkgconfig directory [LIBDIR/pkgconfig]
cristy3ed852e2009-09-05 21:47:34 +00001954 --without-threads disable threads support
cristy99bd5232011-12-07 14:38:20 +00001955 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
cristy73bd4a52010-10-05 11:24:23 +00001956 both]
cristyda16f162011-02-19 23:52:17 +00001957 --with-sysroot=DIR Search for dependent libraries within DIR
1958 (or the compiler's sysroot if not specified).
cristy3ed852e2009-09-05 21:47:34 +00001959 --with-modules enable building dynamically loadable modules
1960 --with-method-prefix=PREFIX
1961 prefix MagickCore API methods
1962 --with-quantum-depth=DEPTH
1963 number of bits in a pixel quantum (default 16)
1964 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1965 memory)
1966 --with-frozenpaths freeze delegate paths
1967 --without-magick-plus-plus
1968 disable build/install of Magick++
cristy3a75f062012-09-08 23:29:40 +00001969 --with-package-release-name=NAME
1970 encode this name into the shared library
cristy3ed852e2009-09-05 21:47:34 +00001971 --with-perl enable build/install of PerlMagick
1972 --with-perl-options=OPTIONS
1973 options to pass on command-line when generating
cristyfc3d0222012-02-07 15:05:57 +00001974 PerlMagick build file
cristy3b0097d2014-11-04 15:34:47 +00001975 --with-jemalloc enable jemalloc memory allocation library support
cristy3ed852e2009-09-05 21:47:34 +00001976 --with-umem enable umem memory allocation library support
1977 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1978 --without-bzlib disable BZLIB support
cristyc7083c12009-10-14 03:16:55 +00001979 --with-x use the X Window System
cristy3ed852e2009-09-05 21:47:34 +00001980 --without-zlib disable ZLIB support
cristy5a3dc992014-12-05 19:50:04 +00001981 --with-apple-font-dir=DIR
1982 Apple font directory
cristy3ed852e2009-09-05 21:47:34 +00001983 --with-autotrace enable autotrace support
1984 --without-dps disable Display Postscript support
cristy430a7312010-01-21 20:44:04 +00001985 --with-dejavu-font-dir=DIR
1986 DejaVu font directory
cristy3ed852e2009-09-05 21:47:34 +00001987 --without-fftw disable FFTW support
1988 --without-fpx disable FlashPIX support
cristy853d9902014-08-21 18:50:43 +00001989 --without-djvu disable DjVu support
cristy3ed852e2009-09-05 21:47:34 +00001990 --without-fontconfig disable fontconfig support
cristy81beccd2011-10-03 18:17:24 +00001991 --without-freetype disable Freetype support
cristybdabdd62013-03-04 17:43:36 +00001992 --with-gslib enable Ghostscript library support
cristy3ed852e2009-09-05 21:47:34 +00001993 --with-fontpath=DIR prepend to default font search path
1994 --with-gs-font-dir=DIR Ghostscript font directory
cristybdabdd62013-03-04 17:43:36 +00001995 --with-gvc enable GVC support
cristy3ed852e2009-09-05 21:47:34 +00001996 --without-jbig disable JBIG support
1997 --without-jpeg disable JPEG support
cristy71203402010-06-18 13:12:03 +00001998 --without-lcms disable lcms (v1.1X) support
cristy99db3872014-01-01 15:11:34 +00001999 --without-openjp2 disable OpenJP2 support
cristyf0c78232010-03-15 12:53:40 +00002000 --without-lqr disable Liquid Rescale support
cristyfbb0ef02010-12-19 02:32:11 +00002001 --without-lzma disable LZMA support
cristy3ed852e2009-09-05 21:47:34 +00002002 --without-openexr disable OpenEXR support
cristy41cbe8a2011-10-27 01:35:18 +00002003 --without-pango disable PANGO support
cristy3ed852e2009-09-05 21:47:34 +00002004 --without-png disable PNG support
cristy51633f52013-04-23 14:03:19 +00002005 --with-rsvg enable RSVG support
cristy3ed852e2009-09-05 21:47:34 +00002006 --without-tiff disable TIFF support
cristyb1860752011-03-14 00:27:46 +00002007 --without-webp disable WEBP support
cristy3ed852e2009-09-05 21:47:34 +00002008 --with-windows-font-dir=DIR
cristy5a3dc992014-12-05 19:50:04 +00002009 Windows font directory
cristyde3fc5d2012-02-12 15:40:47 +00002010 --with-wmf enable WMF support
cristy3ed852e2009-09-05 21:47:34 +00002011 --without-xml disable XML support
2012
2013Some influential environment variables:
2014 CC C compiler command
2015 CFLAGS C compiler flags
2016 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2017 nonstandard directory <lib dir>
2018 LIBS libraries to pass to the linker, e.g. -l<library>
cristycd4c5312009-11-22 01:19:08 +00002019 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cristy3ed852e2009-09-05 21:47:34 +00002020 you have headers in a nonstandard directory <include dir>
cristya0b81c32010-01-22 02:54:33 +00002021 CPP C preprocessor
cristy3ed852e2009-09-05 21:47:34 +00002022 CXX C++ compiler command
2023 CXXFLAGS C++ compiler flags
cristy73bd4a52010-10-05 11:24:23 +00002024 PKG_CONFIG path to pkg-config utility
cristy146497a2015-05-17 22:46:16 +00002025 PKG_CONFIG_PATH
2026 directories to add to pkg-config's search path
2027 PKG_CONFIG_LIBDIR
2028 path overriding pkg-config's built-in search path
nicolas6237c462010-10-05 06:11:49 +00002029 CXXCPP C++ preprocessor
cristy73bd4a52010-10-05 11:24:23 +00002030 XMKMF Path to xmkmf, Makefile generator for X Window System
cristy32f75d42015-06-05 18:46:23 +00002031 ZLIB_CFLAGS C compiler flags for ZLIB, overriding pkg-config
2032 ZLIB_LIBS linker flags for ZLIB, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00002033 AUTOTRACE_CFLAGS
2034 C compiler flags for AUTOTRACE, overriding pkg-config
2035 AUTOTRACE_LIBS
2036 linker flags for AUTOTRACE, overriding pkg-config
cristy32f75d42015-06-05 18:46:23 +00002037 fftw3_CFLAGS
2038 C compiler flags for fftw3, overriding pkg-config
2039 fftw3_LIBS linker flags for fftw3, overriding pkg-config
2040 ddjvuapi_CFLAGS
2041 C compiler flags for ddjvuapi, overriding pkg-config
2042 ddjvuapi_LIBS
2043 linker flags for ddjvuapi, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00002044 FONTCONFIG_CFLAGS
2045 C compiler flags for FONTCONFIG, overriding pkg-config
2046 FONTCONFIG_LIBS
2047 linker flags for FONTCONFIG, overriding pkg-config
cristy03f187e2013-01-24 00:22:19 +00002048 FREETYPE_CFLAGS
2049 C compiler flags for FREETYPE, overriding pkg-config
2050 FREETYPE_LIBS
2051 linker flags for FREETYPE, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00002052 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
2053 GVC_LIBS linker flags for GVC, overriding pkg-config
cristyb054e072015-06-05 20:35:43 +00002054 LCMS2_CFLAGS
2055 C compiler flags for LCMS2, overriding pkg-config
2056 LCMS2_LIBS linker flags for LCMS2, overriding pkg-config
cristy32f75d42015-06-05 18:46:23 +00002057 LCMS_CFLAGS C compiler flags for LCMS, overriding pkg-config
2058 LCMS_LIBS linker flags for LCMS, overriding pkg-config
cristy99db3872014-01-01 15:11:34 +00002059 LIBOPENJP2_CFLAGS
2060 C compiler flags for LIBOPENJP2, overriding pkg-config
2061 LIBOPENJP2_LIBS
2062 linker flags for LIBOPENJP2, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00002063 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
2064 LQR_LIBS linker flags for LQR, overriding pkg-config
cristyb94e5002011-11-14 13:20:10 +00002065 LZMA_CFLAGS C compiler flags for LZMA, overriding pkg-config
2066 LZMA_LIBS linker flags for LZMA, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00002067 OPENEXR_CFLAGS
2068 C compiler flags for OPENEXR, overriding pkg-config
2069 OPENEXR_LIBS
2070 linker flags for OPENEXR, overriding pkg-config
cristy41cbe8a2011-10-27 01:35:18 +00002071 PANGO_CFLAGS
2072 C compiler flags for PANGO, overriding pkg-config
2073 PANGO_LIBS linker flags for PANGO, overriding pkg-config
cristy32f75d42015-06-05 18:46:23 +00002074 PNG_CFLAGS C compiler flags for PNG, overriding pkg-config
2075 PNG_LIBS linker flags for PNG, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00002076 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
2077 RSVG_LIBS linker flags for RSVG, overriding pkg-config
2078 CAIRO_SVG_CFLAGS
2079 C compiler flags for CAIRO_SVG, overriding pkg-config
2080 CAIRO_SVG_LIBS
2081 linker flags for CAIRO_SVG, overriding pkg-config
cristy32f75d42015-06-05 18:46:23 +00002082 XML_CFLAGS C compiler flags for XML, overriding pkg-config
2083 XML_LIBS linker flags for XML, overriding pkg-config
cristy3ed852e2009-09-05 21:47:34 +00002084
2085Use these variables to override the choices made by `configure' or to help
2086it to find libraries and programs with nonstandard names/locations.
2087
2088Report bugs to <http://www.imagemagick.org>.
2089_ACEOF
2090ac_status=$?
2091fi
2092
2093if test "$ac_init_help" = "recursive"; then
2094 # If there are subdirs, report their specific --help.
2095 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2096 test -d "$ac_dir" ||
2097 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2098 continue
2099 ac_builddir=.
2100
2101case "$ac_dir" in
2102.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2103*)
2104 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2105 # A ".." for each directory in $ac_dir_suffix.
2106 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2107 case $ac_top_builddir_sub in
2108 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2109 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2110 esac ;;
2111esac
2112ac_abs_top_builddir=$ac_pwd
2113ac_abs_builddir=$ac_pwd$ac_dir_suffix
2114# for backward compatibility:
2115ac_top_builddir=$ac_top_build_prefix
2116
2117case $srcdir in
2118 .) # We are building in place.
2119 ac_srcdir=.
2120 ac_top_srcdir=$ac_top_builddir_sub
2121 ac_abs_top_srcdir=$ac_pwd ;;
2122 [\\/]* | ?:[\\/]* ) # Absolute name.
2123 ac_srcdir=$srcdir$ac_dir_suffix;
2124 ac_top_srcdir=$srcdir
2125 ac_abs_top_srcdir=$srcdir ;;
2126 *) # Relative name.
2127 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2128 ac_top_srcdir=$ac_top_build_prefix$srcdir
2129 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2130esac
2131ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2132
2133 cd "$ac_dir" || { ac_status=$?; continue; }
2134 # Check for guested configure.
2135 if test -f "$ac_srcdir/configure.gnu"; then
2136 echo &&
2137 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2138 elif test -f "$ac_srcdir/configure"; then
2139 echo &&
2140 $SHELL "$ac_srcdir/configure" --help=recursive
2141 else
2142 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2143 fi || ac_status=$?
2144 cd "$ac_pwd" || { ac_status=$?; break; }
2145 done
2146fi
2147
2148test -n "$ac_init_help" && exit $ac_status
2149if $ac_init_version; then
2150 cat <<\_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00002151ImageMagick configure 7.0.0-0
cristy14fefe52012-05-21 00:59:18 +00002152generated by GNU Autoconf 2.69
cristy3ed852e2009-09-05 21:47:34 +00002153
cristy14fefe52012-05-21 00:59:18 +00002154Copyright (C) 2012 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +00002155This configure script is free software; the Free Software Foundation
2156gives unlimited permission to copy, distribute and modify it.
2157_ACEOF
2158 exit
2159fi
cristy8b350f62009-11-15 23:12:43 +00002160
2161## ------------------------ ##
2162## Autoconf initialization. ##
2163## ------------------------ ##
2164
2165# ac_fn_c_try_compile LINENO
2166# --------------------------
2167# Try to compile conftest.$ac_ext, and return whether this succeeded.
2168ac_fn_c_try_compile ()
2169{
2170 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2171 rm -f conftest.$ac_objext
2172 if { { ac_try="$ac_compile"
2173case "(($ac_try" in
2174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2175 *) ac_try_echo=$ac_try;;
2176esac
2177eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2178$as_echo "$ac_try_echo"; } >&5
2179 (eval "$ac_compile") 2>conftest.err
2180 ac_status=$?
2181 if test -s conftest.err; then
2182 grep -v '^ *+' conftest.err >conftest.er1
2183 cat conftest.er1 >&5
2184 mv -f conftest.er1 conftest.err
2185 fi
2186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2187 test $ac_status = 0; } && {
2188 test -z "$ac_c_werror_flag" ||
2189 test ! -s conftest.err
2190 } && test -s conftest.$ac_objext; then :
2191 ac_retval=0
2192else
2193 $as_echo "$as_me: failed program was:" >&5
2194sed 's/^/| /' conftest.$ac_ext >&5
2195
2196 ac_retval=1
2197fi
cristyda16f162011-02-19 23:52:17 +00002198 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002199 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002200
2201} # ac_fn_c_try_compile
2202
cristy95646052009-11-28 23:05:30 +00002203# ac_fn_c_try_cpp LINENO
2204# ----------------------
2205# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2206ac_fn_c_try_cpp ()
2207{
2208 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2209 if { { ac_try="$ac_cpp conftest.$ac_ext"
2210case "(($ac_try" in
2211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2212 *) ac_try_echo=$ac_try;;
2213esac
2214eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2215$as_echo "$ac_try_echo"; } >&5
2216 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2217 ac_status=$?
2218 if test -s conftest.err; then
2219 grep -v '^ *+' conftest.err >conftest.er1
2220 cat conftest.er1 >&5
2221 mv -f conftest.er1 conftest.err
2222 fi
2223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002224 test $ac_status = 0; } > conftest.i && {
cristy95646052009-11-28 23:05:30 +00002225 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2226 test ! -s conftest.err
2227 }; then :
2228 ac_retval=0
2229else
2230 $as_echo "$as_me: failed program was:" >&5
2231sed 's/^/| /' conftest.$ac_ext >&5
2232
2233 ac_retval=1
2234fi
cristyda16f162011-02-19 23:52:17 +00002235 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy95646052009-11-28 23:05:30 +00002236 as_fn_set_status $ac_retval
2237
2238} # ac_fn_c_try_cpp
2239
cristy8b350f62009-11-15 23:12:43 +00002240# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2241# -------------------------------------------------------
2242# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2243# the include files in INCLUDES and setting the cache variable VAR
2244# accordingly.
2245ac_fn_c_check_header_mongrel ()
2246{
2247 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00002248 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2250$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002251if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002252 $as_echo_n "(cached) " >&6
2253fi
2254eval ac_res=\$$3
2255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2256$as_echo "$ac_res" >&6; }
2257else
2258 # Is the header compilable?
2259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2260$as_echo_n "checking $2 usability... " >&6; }
2261cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2262/* end confdefs.h. */
2263$4
2264#include <$2>
2265_ACEOF
2266if ac_fn_c_try_compile "$LINENO"; then :
2267 ac_header_compiler=yes
2268else
2269 ac_header_compiler=no
2270fi
2271rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2273$as_echo "$ac_header_compiler" >&6; }
2274
2275# Is the header present?
2276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2277$as_echo_n "checking $2 presence... " >&6; }
2278cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2279/* end confdefs.h. */
2280#include <$2>
2281_ACEOF
2282if ac_fn_c_try_cpp "$LINENO"; then :
2283 ac_header_preproc=yes
2284else
2285 ac_header_preproc=no
2286fi
cristyda16f162011-02-19 23:52:17 +00002287rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00002288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2289$as_echo "$ac_header_preproc" >&6; }
2290
2291# So? What about this header?
2292case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2293 yes:no: )
2294 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2295$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2297$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2298 ;;
2299 no:yes:* )
2300 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2301$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2303$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2305$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2306 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2307$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2309$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00002310( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00002311## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00002312## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00002313 ) | sed "s/^/$as_me: WARNING: /" >&2
2314 ;;
2315esac
2316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2317$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002318if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002319 $as_echo_n "(cached) " >&6
2320else
2321 eval "$3=\$ac_header_compiler"
2322fi
2323eval ac_res=\$$3
2324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2325$as_echo "$ac_res" >&6; }
2326fi
cristyda16f162011-02-19 23:52:17 +00002327 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002328
2329} # ac_fn_c_check_header_mongrel
2330
2331# ac_fn_c_try_run LINENO
2332# ----------------------
2333# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2334# that executables *can* be run.
2335ac_fn_c_try_run ()
2336{
2337 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2338 if { { ac_try="$ac_link"
2339case "(($ac_try" in
2340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2341 *) ac_try_echo=$ac_try;;
2342esac
2343eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2344$as_echo "$ac_try_echo"; } >&5
2345 (eval "$ac_link") 2>&5
2346 ac_status=$?
2347 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2348 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2349 { { case "(($ac_try" in
2350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2351 *) ac_try_echo=$ac_try;;
2352esac
2353eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2354$as_echo "$ac_try_echo"; } >&5
2355 (eval "$ac_try") 2>&5
2356 ac_status=$?
2357 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2358 test $ac_status = 0; }; }; then :
2359 ac_retval=0
2360else
2361 $as_echo "$as_me: program exited with status $ac_status" >&5
2362 $as_echo "$as_me: failed program was:" >&5
2363sed 's/^/| /' conftest.$ac_ext >&5
2364
2365 ac_retval=$ac_status
2366fi
2367 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002368 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002369 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002370
2371} # ac_fn_c_try_run
2372
2373# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2374# -------------------------------------------------------
2375# Tests whether HEADER exists and can be compiled using the include files in
2376# INCLUDES, setting the cache variable VAR accordingly.
2377ac_fn_c_check_header_compile ()
2378{
2379 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2381$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002382if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002383 $as_echo_n "(cached) " >&6
2384else
2385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2386/* end confdefs.h. */
2387$4
2388#include <$2>
2389_ACEOF
2390if ac_fn_c_try_compile "$LINENO"; then :
2391 eval "$3=yes"
2392else
2393 eval "$3=no"
2394fi
2395rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2396fi
2397eval ac_res=\$$3
2398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2399$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002400 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002401
2402} # ac_fn_c_check_header_compile
2403
cristya0b81c32010-01-22 02:54:33 +00002404# ac_fn_cxx_try_compile LINENO
2405# ----------------------------
2406# Try to compile conftest.$ac_ext, and return whether this succeeded.
2407ac_fn_cxx_try_compile ()
2408{
2409 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2410 rm -f conftest.$ac_objext
2411 if { { ac_try="$ac_compile"
2412case "(($ac_try" in
2413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2414 *) ac_try_echo=$ac_try;;
2415esac
2416eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2417$as_echo "$ac_try_echo"; } >&5
2418 (eval "$ac_compile") 2>conftest.err
2419 ac_status=$?
2420 if test -s conftest.err; then
2421 grep -v '^ *+' conftest.err >conftest.er1
2422 cat conftest.er1 >&5
2423 mv -f conftest.er1 conftest.err
2424 fi
2425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2426 test $ac_status = 0; } && {
2427 test -z "$ac_cxx_werror_flag" ||
2428 test ! -s conftest.err
2429 } && test -s conftest.$ac_objext; then :
2430 ac_retval=0
2431else
2432 $as_echo "$as_me: failed program was:" >&5
2433sed 's/^/| /' conftest.$ac_ext >&5
2434
2435 ac_retval=1
2436fi
cristyda16f162011-02-19 23:52:17 +00002437 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristya0b81c32010-01-22 02:54:33 +00002438 as_fn_set_status $ac_retval
2439
2440} # ac_fn_cxx_try_compile
2441
cristyd95b7a52013-10-23 13:12:53 +00002442# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2443# --------------------------------------------
2444# Tries to find the compile-time value of EXPR in a program that includes
2445# INCLUDES, setting VAR accordingly. Returns whether the value could be
2446# computed
2447ac_fn_c_compute_int ()
2448{
2449 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2450 if test "$cross_compiling" = yes; then
2451 # Depending upon the size, compute the lo and hi bounds.
2452cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2453/* end confdefs.h. */
2454$4
2455int
2456main ()
2457{
2458static int test_array [1 - 2 * !(($2) >= 0)];
2459test_array [0] = 0;
2460return test_array [0];
2461
2462 ;
2463 return 0;
2464}
2465_ACEOF
2466if ac_fn_c_try_compile "$LINENO"; then :
2467 ac_lo=0 ac_mid=0
2468 while :; do
2469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2470/* end confdefs.h. */
2471$4
2472int
2473main ()
2474{
2475static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2476test_array [0] = 0;
2477return test_array [0];
2478
2479 ;
2480 return 0;
2481}
2482_ACEOF
2483if ac_fn_c_try_compile "$LINENO"; then :
2484 ac_hi=$ac_mid; break
2485else
2486 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2487 if test $ac_lo -le $ac_mid; then
2488 ac_lo= ac_hi=
2489 break
2490 fi
2491 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2492fi
2493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2494 done
2495else
2496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2497/* end confdefs.h. */
2498$4
2499int
2500main ()
2501{
2502static int test_array [1 - 2 * !(($2) < 0)];
2503test_array [0] = 0;
2504return test_array [0];
2505
2506 ;
2507 return 0;
2508}
2509_ACEOF
2510if ac_fn_c_try_compile "$LINENO"; then :
2511 ac_hi=-1 ac_mid=-1
2512 while :; do
2513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2514/* end confdefs.h. */
2515$4
2516int
2517main ()
2518{
2519static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2520test_array [0] = 0;
2521return test_array [0];
2522
2523 ;
2524 return 0;
2525}
2526_ACEOF
2527if ac_fn_c_try_compile "$LINENO"; then :
2528 ac_lo=$ac_mid; break
2529else
2530 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2531 if test $ac_mid -le $ac_hi; then
2532 ac_lo= ac_hi=
2533 break
2534 fi
2535 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2536fi
2537rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2538 done
2539else
2540 ac_lo= ac_hi=
2541fi
2542rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2543fi
2544rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2545# Binary search between lo and hi bounds.
2546while test "x$ac_lo" != "x$ac_hi"; do
2547 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2549/* end confdefs.h. */
2550$4
2551int
2552main ()
2553{
2554static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2555test_array [0] = 0;
2556return test_array [0];
2557
2558 ;
2559 return 0;
2560}
2561_ACEOF
2562if ac_fn_c_try_compile "$LINENO"; then :
2563 ac_hi=$ac_mid
2564else
2565 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2566fi
2567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2568done
2569case $ac_lo in #((
2570?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2571'') ac_retval=1 ;;
2572esac
2573 else
2574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2575/* end confdefs.h. */
2576$4
2577static long int longval () { return $2; }
2578static unsigned long int ulongval () { return $2; }
2579#include <stdio.h>
2580#include <stdlib.h>
2581int
2582main ()
2583{
2584
2585 FILE *f = fopen ("conftest.val", "w");
2586 if (! f)
2587 return 1;
2588 if (($2) < 0)
2589 {
2590 long int i = longval ();
2591 if (i != ($2))
2592 return 1;
2593 fprintf (f, "%ld", i);
2594 }
2595 else
2596 {
2597 unsigned long int i = ulongval ();
2598 if (i != ($2))
2599 return 1;
2600 fprintf (f, "%lu", i);
2601 }
2602 /* Do not output a trailing newline, as this causes \r\n confusion
2603 on some platforms. */
2604 return ferror (f) || fclose (f) != 0;
2605
2606 ;
2607 return 0;
2608}
2609_ACEOF
2610if ac_fn_c_try_run "$LINENO"; then :
2611 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2612else
2613 ac_retval=1
2614fi
2615rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2616 conftest.$ac_objext conftest.beam conftest.$ac_ext
2617rm -f conftest.val
2618
2619 fi
2620 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2621 as_fn_set_status $ac_retval
2622
2623} # ac_fn_c_compute_int
2624
cristy8b350f62009-11-15 23:12:43 +00002625# ac_fn_c_try_link LINENO
2626# -----------------------
2627# Try to link conftest.$ac_ext, and return whether this succeeded.
2628ac_fn_c_try_link ()
2629{
2630 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2631 rm -f conftest.$ac_objext conftest$ac_exeext
2632 if { { ac_try="$ac_link"
2633case "(($ac_try" in
2634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2635 *) ac_try_echo=$ac_try;;
2636esac
2637eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2638$as_echo "$ac_try_echo"; } >&5
2639 (eval "$ac_link") 2>conftest.err
2640 ac_status=$?
2641 if test -s conftest.err; then
2642 grep -v '^ *+' conftest.err >conftest.er1
2643 cat conftest.er1 >&5
2644 mv -f conftest.er1 conftest.err
2645 fi
2646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2647 test $ac_status = 0; } && {
2648 test -z "$ac_c_werror_flag" ||
2649 test ! -s conftest.err
2650 } && test -s conftest$ac_exeext && {
2651 test "$cross_compiling" = yes ||
cristy14fefe52012-05-21 00:59:18 +00002652 test -x conftest$ac_exeext
cristy8b350f62009-11-15 23:12:43 +00002653 }; then :
2654 ac_retval=0
2655else
2656 $as_echo "$as_me: failed program was:" >&5
2657sed 's/^/| /' conftest.$ac_ext >&5
2658
2659 ac_retval=1
2660fi
2661 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2662 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2663 # interfere with the next link command; also delete a directory that is
2664 # left behind by Apple's compiler. We do this before executing the actions.
2665 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002666 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002667 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002668
2669} # ac_fn_c_try_link
2670
cristy73bd4a52010-10-05 11:24:23 +00002671# ac_fn_c_check_func LINENO FUNC VAR
2672# ----------------------------------
2673# Tests whether FUNC exists, setting the cache variable VAR accordingly
2674ac_fn_c_check_func ()
2675{
2676 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2678$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002679if eval \${$3+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00002680 $as_echo_n "(cached) " >&6
2681else
2682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2683/* end confdefs.h. */
2684/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2685 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2686#define $2 innocuous_$2
2687
2688/* System header to define __stub macros and hopefully few prototypes,
2689 which can conflict with char $2 (); below.
2690 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2691 <limits.h> exists even on freestanding compilers. */
2692
2693#ifdef __STDC__
2694# include <limits.h>
2695#else
2696# include <assert.h>
2697#endif
2698
2699#undef $2
2700
2701/* Override any GCC internal prototype to avoid an error.
2702 Use char because int might match the return type of a GCC
2703 builtin and then its argument prototype would still apply. */
2704#ifdef __cplusplus
2705extern "C"
2706#endif
2707char $2 ();
2708/* The GNU C library defines this for functions which it implements
2709 to always fail with ENOSYS. Some functions are actually named
2710 something starting with __ and the normal name is an alias. */
2711#if defined __stub_$2 || defined __stub___$2
2712choke me
2713#endif
2714
2715int
2716main ()
2717{
2718return $2 ();
2719 ;
2720 return 0;
2721}
2722_ACEOF
2723if ac_fn_c_try_link "$LINENO"; then :
2724 eval "$3=yes"
2725else
2726 eval "$3=no"
2727fi
2728rm -f core conftest.err conftest.$ac_objext \
2729 conftest$ac_exeext conftest.$ac_ext
2730fi
2731eval ac_res=\$$3
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2733$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002734 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002735
2736} # ac_fn_c_check_func
2737
2738# ac_fn_cxx_try_cpp LINENO
2739# ------------------------
2740# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2741ac_fn_cxx_try_cpp ()
2742{
2743 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2744 if { { ac_try="$ac_cpp conftest.$ac_ext"
2745case "(($ac_try" in
2746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2747 *) ac_try_echo=$ac_try;;
2748esac
2749eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2750$as_echo "$ac_try_echo"; } >&5
2751 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2752 ac_status=$?
2753 if test -s conftest.err; then
2754 grep -v '^ *+' conftest.err >conftest.er1
2755 cat conftest.er1 >&5
2756 mv -f conftest.er1 conftest.err
2757 fi
2758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002759 test $ac_status = 0; } > conftest.i && {
cristy73bd4a52010-10-05 11:24:23 +00002760 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2761 test ! -s conftest.err
2762 }; 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
cristyda16f162011-02-19 23:52:17 +00002770 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002771 as_fn_set_status $ac_retval
2772
2773} # ac_fn_cxx_try_cpp
2774
2775# ac_fn_cxx_try_link LINENO
2776# -------------------------
2777# Try to link conftest.$ac_ext, and return whether this succeeded.
2778ac_fn_cxx_try_link ()
2779{
2780 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2781 rm -f conftest.$ac_objext conftest$ac_exeext
2782 if { { ac_try="$ac_link"
2783case "(($ac_try" in
2784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2785 *) ac_try_echo=$ac_try;;
2786esac
2787eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2788$as_echo "$ac_try_echo"; } >&5
2789 (eval "$ac_link") 2>conftest.err
2790 ac_status=$?
2791 if test -s conftest.err; then
2792 grep -v '^ *+' conftest.err >conftest.er1
2793 cat conftest.er1 >&5
2794 mv -f conftest.er1 conftest.err
2795 fi
2796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2797 test $ac_status = 0; } && {
2798 test -z "$ac_cxx_werror_flag" ||
2799 test ! -s conftest.err
2800 } && test -s conftest$ac_exeext && {
2801 test "$cross_compiling" = yes ||
cristy14fefe52012-05-21 00:59:18 +00002802 test -x conftest$ac_exeext
cristy73bd4a52010-10-05 11:24:23 +00002803 }; then :
2804 ac_retval=0
2805else
2806 $as_echo "$as_me: failed program was:" >&5
2807sed 's/^/| /' conftest.$ac_ext >&5
2808
2809 ac_retval=1
2810fi
2811 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2812 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2813 # interfere with the next link command; also delete a directory that is
2814 # left behind by Apple's compiler. We do this before executing the actions.
2815 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002816 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002817 as_fn_set_status $ac_retval
2818
2819} # ac_fn_cxx_try_link
2820
cristy8b350f62009-11-15 23:12:43 +00002821# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2822# -------------------------------------------
2823# Tests whether TYPE exists after having included INCLUDES, setting cache
2824# variable VAR accordingly.
2825ac_fn_c_check_type ()
2826{
2827 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2829$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002830if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002831 $as_echo_n "(cached) " >&6
2832else
2833 eval "$3=no"
2834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2835/* end confdefs.h. */
2836$4
2837int
2838main ()
2839{
2840if (sizeof ($2))
2841 return 0;
2842 ;
2843 return 0;
2844}
2845_ACEOF
2846if ac_fn_c_try_compile "$LINENO"; then :
2847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2848/* end confdefs.h. */
2849$4
2850int
2851main ()
2852{
2853if (sizeof (($2)))
2854 return 0;
2855 ;
2856 return 0;
2857}
2858_ACEOF
2859if ac_fn_c_try_compile "$LINENO"; then :
2860
2861else
2862 eval "$3=yes"
2863fi
2864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2865fi
2866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2867fi
2868eval ac_res=\$$3
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2870$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002871 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002872
2873} # ac_fn_c_check_type
2874
cristy92703d82010-04-26 00:18:18 +00002875# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2876# ----------------------------------------------------
2877# Tries to find if the field MEMBER exists in type AGGR, after including
2878# INCLUDES, setting cache variable VAR accordingly.
2879ac_fn_c_check_member ()
2880{
2881 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2883$as_echo_n "checking for $2.$3... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002884if eval \${$4+:} false; then :
cristy92703d82010-04-26 00:18:18 +00002885 $as_echo_n "(cached) " >&6
2886else
2887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2888/* end confdefs.h. */
2889$5
2890int
2891main ()
2892{
2893static $2 ac_aggr;
2894if (ac_aggr.$3)
2895return 0;
2896 ;
2897 return 0;
2898}
2899_ACEOF
2900if ac_fn_c_try_compile "$LINENO"; then :
2901 eval "$4=yes"
2902else
2903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2904/* end confdefs.h. */
2905$5
2906int
2907main ()
2908{
2909static $2 ac_aggr;
2910if (sizeof ac_aggr.$3)
2911return 0;
2912 ;
2913 return 0;
2914}
2915_ACEOF
2916if ac_fn_c_try_compile "$LINENO"; then :
2917 eval "$4=yes"
2918else
2919 eval "$4=no"
2920fi
2921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2922fi
2923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2924fi
2925eval ac_res=\$$4
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2927$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002928 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy92703d82010-04-26 00:18:18 +00002929
2930} # ac_fn_c_check_member
2931
cristy5eef09f2012-10-16 12:08:28 +00002932# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2933# ---------------------------------------------
2934# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2935# accordingly.
2936ac_fn_c_check_decl ()
2937{
2938 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2939 as_decl_name=`echo $2|sed 's/ *(.*//'`
2940 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2942$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2943if eval \${$3+:} false; then :
2944 $as_echo_n "(cached) " >&6
2945else
2946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2947/* end confdefs.h. */
2948$4
2949int
2950main ()
2951{
2952#ifndef $as_decl_name
2953#ifdef __cplusplus
2954 (void) $as_decl_use;
2955#else
2956 (void) $as_decl_name;
2957#endif
2958#endif
2959
2960 ;
2961 return 0;
2962}
2963_ACEOF
2964if ac_fn_c_try_compile "$LINENO"; then :
2965 eval "$3=yes"
2966else
2967 eval "$3=no"
2968fi
2969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2970fi
2971eval ac_res=\$$3
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2973$as_echo "$ac_res" >&6; }
2974 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2975
2976} # ac_fn_c_check_decl
2977
cristy501c8042011-05-26 17:46:28 +00002978# ac_fn_c_find_intX_t LINENO BITS VAR
2979# -----------------------------------
2980# Finds a signed integer type with width BITS, setting cache variable VAR
2981# accordingly.
2982ac_fn_c_find_intX_t ()
2983{
2984 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2986$as_echo_n "checking for int$2_t... " >&6; }
2987if eval \${$3+:} false; then :
2988 $as_echo_n "(cached) " >&6
2989else
2990 eval "$3=no"
2991 # Order is important - never check a type that is potentially smaller
2992 # than half of the expected target width.
2993 for ac_type in int$2_t 'int' 'long int' \
2994 'long long int' 'short int' 'signed char'; do
2995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2996/* end confdefs.h. */
2997$ac_includes_default
2998 enum { N = $2 / 2 - 1 };
2999int
3000main ()
3001{
3002static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
cristy14fefe52012-05-21 00:59:18 +00003003test_array [0] = 0;
3004return test_array [0];
cristy501c8042011-05-26 17:46:28 +00003005
3006 ;
3007 return 0;
3008}
3009_ACEOF
3010if ac_fn_c_try_compile "$LINENO"; then :
3011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3012/* end confdefs.h. */
3013$ac_includes_default
3014 enum { N = $2 / 2 - 1 };
3015int
3016main ()
3017{
3018static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
3019 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
cristy14fefe52012-05-21 00:59:18 +00003020test_array [0] = 0;
3021return test_array [0];
cristy501c8042011-05-26 17:46:28 +00003022
3023 ;
3024 return 0;
3025}
3026_ACEOF
3027if ac_fn_c_try_compile "$LINENO"; then :
3028
3029else
3030 case $ac_type in #(
3031 int$2_t) :
3032 eval "$3=yes" ;; #(
3033 *) :
3034 eval "$3=\$ac_type" ;;
3035esac
3036fi
3037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3038fi
3039rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3040 if eval test \"x\$"$3"\" = x"no"; then :
3041
3042else
3043 break
3044fi
3045 done
3046fi
3047eval ac_res=\$$3
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3049$as_echo "$ac_res" >&6; }
3050 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3051
3052} # ac_fn_c_find_intX_t
3053
3054# ac_fn_c_find_uintX_t LINENO BITS VAR
3055# ------------------------------------
3056# Finds an unsigned integer type with width BITS, setting cache variable VAR
3057# accordingly.
3058ac_fn_c_find_uintX_t ()
3059{
3060 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
3062$as_echo_n "checking for uint$2_t... " >&6; }
3063if eval \${$3+:} false; then :
3064 $as_echo_n "(cached) " >&6
3065else
3066 eval "$3=no"
3067 # Order is important - never check a type that is potentially smaller
3068 # than half of the expected target width.
3069 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
3070 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
3071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3072/* end confdefs.h. */
3073$ac_includes_default
3074int
3075main ()
3076{
3077static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
cristy14fefe52012-05-21 00:59:18 +00003078test_array [0] = 0;
3079return test_array [0];
cristy501c8042011-05-26 17:46:28 +00003080
3081 ;
3082 return 0;
3083}
3084_ACEOF
3085if ac_fn_c_try_compile "$LINENO"; then :
3086 case $ac_type in #(
3087 uint$2_t) :
3088 eval "$3=yes" ;; #(
3089 *) :
3090 eval "$3=\$ac_type" ;;
3091esac
3092fi
3093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3094 if eval test \"x\$"$3"\" = x"no"; then :
3095
3096else
3097 break
3098fi
3099 done
3100fi
3101eval ac_res=\$$3
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3103$as_echo "$ac_res" >&6; }
3104 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3105
3106} # ac_fn_c_find_uintX_t
3107
cristy8b350f62009-11-15 23:12:43 +00003108# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
3109# ---------------------------------------------------------
3110# Tests whether HEADER exists, giving a warning if it cannot be compiled using
3111# the include files in INCLUDES and setting the cache variable VAR
3112# accordingly.
3113ac_fn_cxx_check_header_mongrel ()
3114{
3115 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00003116 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3118$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003119if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003120 $as_echo_n "(cached) " >&6
3121fi
3122eval ac_res=\$$3
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3124$as_echo "$ac_res" >&6; }
3125else
3126 # Is the header compilable?
3127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
3128$as_echo_n "checking $2 usability... " >&6; }
3129cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3130/* end confdefs.h. */
3131$4
3132#include <$2>
3133_ACEOF
3134if ac_fn_cxx_try_compile "$LINENO"; then :
3135 ac_header_compiler=yes
3136else
3137 ac_header_compiler=no
3138fi
3139rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
3141$as_echo "$ac_header_compiler" >&6; }
3142
3143# Is the header present?
3144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
3145$as_echo_n "checking $2 presence... " >&6; }
3146cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3147/* end confdefs.h. */
3148#include <$2>
3149_ACEOF
3150if ac_fn_cxx_try_cpp "$LINENO"; then :
3151 ac_header_preproc=yes
3152else
3153 ac_header_preproc=no
3154fi
cristyda16f162011-02-19 23:52:17 +00003155rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00003156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
3157$as_echo "$ac_header_preproc" >&6; }
3158
3159# So? What about this header?
3160case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
3161 yes:no: )
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
3163$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3165$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3166 ;;
3167 no:yes:* )
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
3169$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
3171$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
3173$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
3175$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3177$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003178( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00003179## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00003180## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00003181 ) | sed "s/^/$as_me: WARNING: /" >&2
3182 ;;
3183esac
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3185$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003186if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003187 $as_echo_n "(cached) " >&6
3188else
3189 eval "$3=\$ac_header_compiler"
3190fi
3191eval ac_res=\$$3
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3193$as_echo "$ac_res" >&6; }
3194fi
cristyda16f162011-02-19 23:52:17 +00003195 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00003196
3197} # ac_fn_cxx_check_header_mongrel
cristy3ed852e2009-09-05 21:47:34 +00003198cat >config.log <<_ACEOF
3199This file contains any messages produced by compilers while
3200running configure, to aid debugging if configure makes a mistake.
3201
cristy29eb34e2011-10-16 00:46:08 +00003202It was created by ImageMagick $as_me 7.0.0-0, which was
cristy14fefe52012-05-21 00:59:18 +00003203generated by GNU Autoconf 2.69. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +00003204
3205 $ $0 $@
3206
3207_ACEOF
3208exec 5>>config.log
3209{
3210cat <<_ASUNAME
3211## --------- ##
3212## Platform. ##
3213## --------- ##
3214
3215hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3216uname -m = `(uname -m) 2>/dev/null || echo unknown`
3217uname -r = `(uname -r) 2>/dev/null || echo unknown`
3218uname -s = `(uname -s) 2>/dev/null || echo unknown`
3219uname -v = `(uname -v) 2>/dev/null || echo unknown`
3220
3221/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3222/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3223
3224/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3225/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3226/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3227/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3228/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3229/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3230/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3231
3232_ASUNAME
3233
3234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3235for as_dir in $PATH
3236do
3237 IFS=$as_save_IFS
3238 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003239 $as_echo "PATH: $as_dir"
3240 done
cristy3ed852e2009-09-05 21:47:34 +00003241IFS=$as_save_IFS
3242
3243} >&5
3244
3245cat >&5 <<_ACEOF
3246
3247
3248## ----------- ##
3249## Core tests. ##
3250## ----------- ##
3251
3252_ACEOF
3253
3254
3255# Keep a trace of the command line.
3256# Strip out --no-create and --no-recursion so they do not pile up.
3257# Strip out --silent because we don't want to record it for future runs.
3258# Also quote any args containing shell meta-characters.
3259# Make two passes to allow for proper duplicate-argument suppression.
3260ac_configure_args=
3261ac_configure_args0=
3262ac_configure_args1=
3263ac_must_keep_next=false
3264for ac_pass in 1 2
3265do
3266 for ac_arg
3267 do
3268 case $ac_arg in
3269 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3270 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3271 | -silent | --silent | --silen | --sile | --sil)
3272 continue ;;
3273 *\'*)
3274 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3275 esac
3276 case $ac_pass in
cristy8b350f62009-11-15 23:12:43 +00003277 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003278 2)
cristy8b350f62009-11-15 23:12:43 +00003279 as_fn_append ac_configure_args1 " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003280 if test $ac_must_keep_next = true; then
3281 ac_must_keep_next=false # Got value, back to normal.
3282 else
3283 case $ac_arg in
3284 *=* | --config-cache | -C | -disable-* | --disable-* \
3285 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3286 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3287 | -with-* | --with-* | -without-* | --without-* | --x)
3288 case "$ac_configure_args0 " in
3289 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3290 esac
3291 ;;
3292 -* ) ac_must_keep_next=true ;;
3293 esac
3294 fi
cristy8b350f62009-11-15 23:12:43 +00003295 as_fn_append ac_configure_args " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003296 ;;
3297 esac
3298 done
3299done
cristy8b350f62009-11-15 23:12:43 +00003300{ ac_configure_args0=; unset ac_configure_args0;}
3301{ ac_configure_args1=; unset ac_configure_args1;}
cristy3ed852e2009-09-05 21:47:34 +00003302
3303# When interrupted or exit'd, cleanup temporary files, and complete
3304# config.log. We remove comments because anyway the quotes in there
3305# would cause problems or look ugly.
3306# WARNING: Use '\'' to represent an apostrophe within the trap.
3307# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3308trap 'exit_status=$?
3309 # Save into config.log some information that might help in debugging.
3310 {
3311 echo
3312
cristy98dddb52010-11-04 00:30:15 +00003313 $as_echo "## ---------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003314## Cache variables. ##
cristy98dddb52010-11-04 00:30:15 +00003315## ---------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003316 echo
3317 # The following way of writing the cache mishandles newlines in values,
3318(
3319 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3320 eval ac_val=\$$ac_var
3321 case $ac_val in #(
3322 *${as_nl}*)
3323 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +00003324 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +00003325$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3326 esac
3327 case $ac_var in #(
3328 _ | IFS | as_nl) ;; #(
3329 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +00003330 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +00003331 esac ;;
3332 esac
3333 done
3334 (set) 2>&1 |
3335 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3336 *${as_nl}ac_space=\ *)
3337 sed -n \
3338 "s/'\''/'\''\\\\'\'''\''/g;
3339 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3340 ;; #(
3341 *)
3342 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3343 ;;
3344 esac |
3345 sort
3346)
3347 echo
3348
cristy98dddb52010-11-04 00:30:15 +00003349 $as_echo "## ----------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003350## Output variables. ##
cristy98dddb52010-11-04 00:30:15 +00003351## ----------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003352 echo
3353 for ac_var in $ac_subst_vars
3354 do
3355 eval ac_val=\$$ac_var
3356 case $ac_val in
3357 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3358 esac
3359 $as_echo "$ac_var='\''$ac_val'\''"
3360 done | sort
3361 echo
3362
3363 if test -n "$ac_subst_files"; then
cristy98dddb52010-11-04 00:30:15 +00003364 $as_echo "## ------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003365## File substitutions. ##
cristy98dddb52010-11-04 00:30:15 +00003366## ------------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003367 echo
3368 for ac_var in $ac_subst_files
3369 do
3370 eval ac_val=\$$ac_var
3371 case $ac_val in
3372 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3373 esac
3374 $as_echo "$ac_var='\''$ac_val'\''"
3375 done | sort
3376 echo
3377 fi
3378
3379 if test -s confdefs.h; then
cristy98dddb52010-11-04 00:30:15 +00003380 $as_echo "## ----------- ##
cristy3ed852e2009-09-05 21:47:34 +00003381## confdefs.h. ##
cristy98dddb52010-11-04 00:30:15 +00003382## ----------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003383 echo
3384 cat confdefs.h
3385 echo
3386 fi
3387 test "$ac_signal" != 0 &&
3388 $as_echo "$as_me: caught signal $ac_signal"
3389 $as_echo "$as_me: exit $exit_status"
3390 } >&5
3391 rm -f core *.core core.conftest.* &&
3392 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3393 exit $exit_status
3394' 0
3395for ac_signal in 1 2 13 15; do
cristy8b350f62009-11-15 23:12:43 +00003396 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cristy3ed852e2009-09-05 21:47:34 +00003397done
3398ac_signal=0
3399
3400# confdefs.h avoids OS command line length limits that DEFS can exceed.
3401rm -f -r conftest* confdefs.h
3402
cristy8b350f62009-11-15 23:12:43 +00003403$as_echo "/* confdefs.h */" > confdefs.h
3404
cristy3ed852e2009-09-05 21:47:34 +00003405# Predefined preprocessor variables.
3406
3407cat >>confdefs.h <<_ACEOF
3408#define PACKAGE_NAME "$PACKAGE_NAME"
3409_ACEOF
3410
cristy3ed852e2009-09-05 21:47:34 +00003411cat >>confdefs.h <<_ACEOF
3412#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3413_ACEOF
3414
cristy3ed852e2009-09-05 21:47:34 +00003415cat >>confdefs.h <<_ACEOF
3416#define PACKAGE_VERSION "$PACKAGE_VERSION"
3417_ACEOF
3418
cristy3ed852e2009-09-05 21:47:34 +00003419cat >>confdefs.h <<_ACEOF
3420#define PACKAGE_STRING "$PACKAGE_STRING"
3421_ACEOF
3422
cristy3ed852e2009-09-05 21:47:34 +00003423cat >>confdefs.h <<_ACEOF
3424#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3425_ACEOF
3426
cristy8b350f62009-11-15 23:12:43 +00003427cat >>confdefs.h <<_ACEOF
3428#define PACKAGE_URL "$PACKAGE_URL"
3429_ACEOF
3430
cristy3ed852e2009-09-05 21:47:34 +00003431
3432# Let the site file select an alternate cache file if it wants to.
3433# Prefer an explicitly selected file to automatically selected ones.
3434ac_site_file1=NONE
3435ac_site_file2=NONE
3436if test -n "$CONFIG_SITE"; then
cristy98dddb52010-11-04 00:30:15 +00003437 # We do not want a PATH search for config.site.
3438 case $CONFIG_SITE in #((
3439 -*) ac_site_file1=./$CONFIG_SITE;;
3440 */*) ac_site_file1=$CONFIG_SITE;;
3441 *) ac_site_file1=./$CONFIG_SITE;;
3442 esac
cristy3ed852e2009-09-05 21:47:34 +00003443elif test "x$prefix" != xNONE; then
3444 ac_site_file1=$prefix/share/config.site
3445 ac_site_file2=$prefix/etc/config.site
3446else
3447 ac_site_file1=$ac_default_prefix/share/config.site
3448 ac_site_file2=$ac_default_prefix/etc/config.site
3449fi
3450for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3451do
3452 test "x$ac_site_file" = xNONE && continue
cristycd4c5312009-11-22 01:19:08 +00003453 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cristy8b350f62009-11-15 23:12:43 +00003454 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003455$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3456 sed 's/^/| /' "$ac_site_file" >&5
cristy98dddb52010-11-04 00:30:15 +00003457 . "$ac_site_file" \
3458 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3459$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3460as_fn_error $? "failed to load site script $ac_site_file
3461See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00003462 fi
3463done
3464
3465if test -r "$cache_file"; then
cristycd4c5312009-11-22 01:19:08 +00003466 # Some versions of bash will fail to source /dev/null (special files
3467 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3468 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cristy8b350f62009-11-15 23:12:43 +00003469 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003470$as_echo "$as_me: loading cache $cache_file" >&6;}
3471 case $cache_file in
3472 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3473 *) . "./$cache_file";;
3474 esac
3475 fi
3476else
cristy8b350f62009-11-15 23:12:43 +00003477 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003478$as_echo "$as_me: creating cache $cache_file" >&6;}
3479 >$cache_file
3480fi
3481
cristycd4c5312009-11-22 01:19:08 +00003482as_fn_append ac_header_list " stdlib.h"
3483as_fn_append ac_header_list " unistd.h"
3484as_fn_append ac_header_list " sys/param.h"
cristy3ed852e2009-09-05 21:47:34 +00003485# Check that the precious variables saved in the cache have kept the same
3486# value.
3487ac_cache_corrupted=false
3488for ac_var in $ac_precious_vars; do
3489 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3490 eval ac_new_set=\$ac_env_${ac_var}_set
3491 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3492 eval ac_new_val=\$ac_env_${ac_var}_value
3493 case $ac_old_set,$ac_new_set in
3494 set,)
cristy8b350f62009-11-15 23:12:43 +00003495 { $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 +00003496$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3497 ac_cache_corrupted=: ;;
3498 ,set)
cristy8b350f62009-11-15 23:12:43 +00003499 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003500$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3501 ac_cache_corrupted=: ;;
3502 ,);;
3503 *)
3504 if test "x$ac_old_val" != "x$ac_new_val"; then
3505 # differences in whitespace do not lead to failure.
3506 ac_old_val_w=`echo x $ac_old_val`
3507 ac_new_val_w=`echo x $ac_new_val`
3508 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cristy8b350f62009-11-15 23:12:43 +00003509 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003510$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3511 ac_cache_corrupted=:
3512 else
cristy8b350f62009-11-15 23:12:43 +00003513 { $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 +00003514$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3515 eval $ac_var=\$ac_old_val
3516 fi
cristy8b350f62009-11-15 23:12:43 +00003517 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003518$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003519 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003520$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3521 fi;;
3522 esac
3523 # Pass precious variables to config.status.
3524 if test "$ac_new_set" = set; then
3525 case $ac_new_val in
3526 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3527 *) ac_arg=$ac_var=$ac_new_val ;;
3528 esac
3529 case " $ac_configure_args " in
3530 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cristy8b350f62009-11-15 23:12:43 +00003531 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003532 esac
3533 fi
3534done
3535if $ac_cache_corrupted; then
cristy8b350f62009-11-15 23:12:43 +00003536 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00003537$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003538 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003539$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003540 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003541fi
cristy8b350f62009-11-15 23:12:43 +00003542## -------------------- ##
3543## Main body of script. ##
3544## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003545
3546ac_ext=c
3547ac_cpp='$CPP $CPPFLAGS'
3548ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3549ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3550ac_compiler_gnu=$ac_cv_c_compiler_gnu
3551
3552
3553
3554ac_aux_dir=
3555for ac_dir in config "$srcdir"/config; do
cristy98dddb52010-11-04 00:30:15 +00003556 if test -f "$ac_dir/install-sh"; then
3557 ac_aux_dir=$ac_dir
3558 ac_install_sh="$ac_aux_dir/install-sh -c"
3559 break
3560 elif test -f "$ac_dir/install.sh"; then
3561 ac_aux_dir=$ac_dir
3562 ac_install_sh="$ac_aux_dir/install.sh -c"
3563 break
3564 elif test -f "$ac_dir/shtool"; then
3565 ac_aux_dir=$ac_dir
3566 ac_install_sh="$ac_aux_dir/shtool install -c"
3567 break
3568 fi
cristy3ed852e2009-09-05 21:47:34 +00003569done
3570if test -z "$ac_aux_dir"; then
cristy98dddb52010-11-04 00:30:15 +00003571 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003572fi
3573
3574# These three variables are undocumented and unsupported,
3575# and are intended to be withdrawn in a future Autoconf release.
3576# They can cause serious problems if a builder's source tree is in a directory
3577# whose full name contains unusual characters.
3578ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3579ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3580ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3581
3582
3583
3584
3585ac_config_headers="$ac_config_headers config/config.h"
3586
cristy24fc1fe2010-10-23 21:13:01 +00003587
cristy01ff9f32012-12-01 18:15:29 +00003588ac_config_commands="$ac_config_commands MagickCore/magick-baseconfig.h"
cristy73bd4a52010-10-05 11:24:23 +00003589
cristy3ed852e2009-09-05 21:47:34 +00003590# Make sure we can run config.sub.
3591$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cristy98dddb52010-11-04 00:30:15 +00003592 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003593
cristy8b350f62009-11-15 23:12:43 +00003594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003595$as_echo_n "checking build system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003596if ${ac_cv_build+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003597 $as_echo_n "(cached) " >&6
3598else
3599 ac_build_alias=$build_alias
3600test "x$ac_build_alias" = x &&
3601 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3602test "x$ac_build_alias" = x &&
cristy98dddb52010-11-04 00:30:15 +00003603 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003604ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003605 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003606
3607fi
cristy8b350f62009-11-15 23:12:43 +00003608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003609$as_echo "$ac_cv_build" >&6; }
3610case $ac_cv_build in
3611*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003612*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003613esac
3614build=$ac_cv_build
3615ac_save_IFS=$IFS; IFS='-'
3616set x $ac_cv_build
3617shift
3618build_cpu=$1
3619build_vendor=$2
3620shift; shift
3621# Remember, the first character of IFS is used to create $*,
3622# except with old shells:
3623build_os=$*
3624IFS=$ac_save_IFS
3625case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3626
3627
cristy8b350f62009-11-15 23:12:43 +00003628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003629$as_echo_n "checking host system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003630if ${ac_cv_host+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003631 $as_echo_n "(cached) " >&6
3632else
3633 if test "x$host_alias" = x; then
3634 ac_cv_host=$ac_cv_build
3635else
3636 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003637 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003638fi
3639
3640fi
cristy8b350f62009-11-15 23:12:43 +00003641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
cristy3ed852e2009-09-05 21:47:34 +00003642$as_echo "$ac_cv_host" >&6; }
3643case $ac_cv_host in
3644*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003645*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003646esac
3647host=$ac_cv_host
3648ac_save_IFS=$IFS; IFS='-'
3649set x $ac_cv_host
3650shift
3651host_cpu=$1
3652host_vendor=$2
3653shift; shift
3654# Remember, the first character of IFS is used to create $*,
3655# except with old shells:
3656host_os=$*
3657IFS=$ac_save_IFS
3658case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3659
3660
cristy8b350f62009-11-15 23:12:43 +00003661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003662$as_echo_n "checking target system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003663if ${ac_cv_target+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003664 $as_echo_n "(cached) " >&6
3665else
3666 if test "x$target_alias" = x; then
3667 ac_cv_target=$ac_cv_host
3668else
3669 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003670 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003671fi
3672
3673fi
cristy8b350f62009-11-15 23:12:43 +00003674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
cristy3ed852e2009-09-05 21:47:34 +00003675$as_echo "$ac_cv_target" >&6; }
3676case $ac_cv_target in
3677*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003678*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003679esac
3680target=$ac_cv_target
3681ac_save_IFS=$IFS; IFS='-'
3682set x $ac_cv_target
3683shift
3684target_cpu=$1
3685target_vendor=$2
3686shift; shift
3687# Remember, the first character of IFS is used to create $*,
3688# except with old shells:
3689target_os=$*
3690IFS=$ac_save_IFS
3691case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3692
3693
3694# The aliases save the names the user supplied, while $host etc.
3695# will get canonicalized.
3696test -n "$target_alias" &&
3697 test "$program_prefix$program_suffix$program_transform_name" = \
3698 NONENONEs,x,x, &&
3699 program_prefix=${target_alias}-
3700
cristy837d6dc2010-02-27 01:16:57 +00003701
cristyead532a2015-06-05 00:49:30 +00003702am__api_version='1.15'
cristy73bd4a52010-10-05 11:24:23 +00003703
3704# Find a good install program. We prefer a C program (faster),
3705# so one script is as good as another. But avoid the broken or
3706# incompatible versions:
3707# SysV /etc/install, /usr/sbin/install
3708# SunOS /usr/etc/install
3709# IRIX /sbin/install
3710# AIX /bin/install
3711# AmigaOS /C/install, which installs bootblocks on floppy discs
3712# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3713# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3714# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3715# OS/2's system install, which has a completely different semantic
3716# ./install, which can be erroneously created by make from ./install.sh.
3717# Reject install programs that cannot install multiple files.
3718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3719$as_echo_n "checking for a BSD-compatible install... " >&6; }
3720if test -z "$INSTALL"; then
cristyda16f162011-02-19 23:52:17 +00003721if ${ac_cv_path_install+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003722 $as_echo_n "(cached) " >&6
3723else
3724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3725for as_dir in $PATH
3726do
3727 IFS=$as_save_IFS
3728 test -z "$as_dir" && as_dir=.
3729 # Account for people who put trailing slashes in PATH elements.
3730case $as_dir/ in #((
3731 ./ | .// | /[cC]/* | \
3732 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3733 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3734 /usr/ucb/* ) ;;
3735 *)
3736 # OSF1 and SCO ODT 3.0 have their own names for install.
3737 # Don't use installbsd from OSF since it installs stuff as root
3738 # by default.
3739 for ac_prog in ginstall scoinst install; do
3740 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003741 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003742 if test $ac_prog = install &&
3743 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3744 # AIX install. It has an incompatible calling convention.
3745 :
3746 elif test $ac_prog = install &&
3747 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3748 # program-specific install script used by HP pwplus--don't use.
3749 :
3750 else
3751 rm -rf conftest.one conftest.two conftest.dir
3752 echo one > conftest.one
3753 echo two > conftest.two
3754 mkdir conftest.dir
3755 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3756 test -s conftest.one && test -s conftest.two &&
3757 test -s conftest.dir/conftest.one &&
3758 test -s conftest.dir/conftest.two
3759 then
3760 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3761 break 3
3762 fi
3763 fi
3764 fi
3765 done
3766 done
3767 ;;
3768esac
3769
3770 done
3771IFS=$as_save_IFS
3772
3773rm -rf conftest.one conftest.two conftest.dir
3774
3775fi
3776 if test "${ac_cv_path_install+set}" = set; then
3777 INSTALL=$ac_cv_path_install
3778 else
3779 # As a last resort, use the slow shell script. Don't cache a
3780 # value for INSTALL within a source directory, because that will
3781 # break other packages using the cache if that directory is
3782 # removed, or if the value is a relative name.
3783 INSTALL=$ac_install_sh
3784 fi
3785fi
3786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3787$as_echo "$INSTALL" >&6; }
3788
3789# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3790# It thinks the first close brace ends the variable substitution.
3791test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3792
3793test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3794
3795test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3796
cristy9af1cbf2014-12-28 22:03:09 +00003797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3798$as_echo_n "checking whether build environment is sane... " >&6; }
3799# Reject unsafe characters in $srcdir or the absolute working directory
3800# name. Accept space and tab only in the latter.
3801am_lf='
3802'
3803case `pwd` in
3804 *[\\\"\#\$\&\'\`$am_lf]*)
3805 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3806esac
3807case $srcdir in
3808 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3809 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3810esac
3811
3812# Do 'set' in a subshell so we don't clobber the current shell's
3813# arguments. Must try -L first in case configure is actually a
3814# symlink; some systems play weird games with the mod time of symlinks
3815# (eg FreeBSD returns the mod time of the symlink's containing
3816# directory).
3817if (
3818 am_has_slept=no
3819 for am_try in 1 2; do
3820 echo "timestamp, slept: $am_has_slept" > conftest.file
3821 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3822 if test "$*" = "X"; then
3823 # -L didn't work.
3824 set X `ls -t "$srcdir/configure" conftest.file`
3825 fi
3826 if test "$*" != "X $srcdir/configure conftest.file" \
3827 && test "$*" != "X conftest.file $srcdir/configure"; then
3828
3829 # If neither matched, then we have a broken ls. This can happen
3830 # if, for instance, CONFIG_SHELL is bash and it inherits a
3831 # broken ls alias from the environment. This has actually
3832 # happened. Such a system could not be considered "sane".
3833 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3834 alias in your environment" "$LINENO" 5
3835 fi
3836 if test "$2" = conftest.file || test $am_try -eq 2; then
3837 break
3838 fi
3839 # Just in case.
3840 sleep 1
3841 am_has_slept=yes
3842 done
3843 test "$2" = conftest.file
3844 )
3845then
3846 # Ok.
3847 :
3848else
3849 as_fn_error $? "newly created file is older than distributed files!
3850Check your system clock" "$LINENO" 5
3851fi
3852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3853$as_echo "yes" >&6; }
3854# If we didn't sleep, we still need to ensure time stamps of config.status and
3855# generated files are strictly newer.
3856am_sleep_pid=
3857if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3858 ( sleep 1 ) &
3859 am_sleep_pid=$!
3860fi
3861
3862rm -f conftest.file
3863
cristy73bd4a52010-10-05 11:24:23 +00003864test "$program_prefix" != NONE &&
3865 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3866# Use a double $ so make ignores it.
3867test "$program_suffix" != NONE &&
3868 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3869# Double any \ or $.
3870# By default was `s,x,x', remove it if useless.
3871ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3872program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3873
cristyead532a2015-06-05 00:49:30 +00003874# Expand $ac_aux_dir to an absolute path.
3875am_aux_dir=`cd "$ac_aux_dir" && pwd`
cristy73bd4a52010-10-05 11:24:23 +00003876
3877if test x"${MISSING+set}" != xset; then
3878 case $am_aux_dir in
3879 *\ * | *\ *)
3880 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3881 *)
3882 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3883 esac
3884fi
3885# Use eval to expand $SHELL
cristy58d34aa2013-01-24 15:11:54 +00003886if eval "$MISSING --is-lightweight"; then
3887 am_missing_run="$MISSING "
cristy73bd4a52010-10-05 11:24:23 +00003888else
3889 am_missing_run=
cristyc0890a62012-07-19 00:18:20 +00003890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3891$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
cristy73bd4a52010-10-05 11:24:23 +00003892fi
3893
cristyead532a2015-06-05 00:49:30 +00003894if test x"${install_sh+set}" != xset; then
cristy73bd4a52010-10-05 11:24:23 +00003895 case $am_aux_dir in
3896 *\ * | *\ *)
3897 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3898 *)
3899 install_sh="\${SHELL} $am_aux_dir/install-sh"
3900 esac
3901fi
3902
cristyc0890a62012-07-19 00:18:20 +00003903# Installed binaries are usually stripped using 'strip' when the user
3904# run "make install-strip". However 'strip' might not be the right
cristy73bd4a52010-10-05 11:24:23 +00003905# tool to use in cross-compilation environments, therefore Automake
cristyc0890a62012-07-19 00:18:20 +00003906# will honor the 'STRIP' environment variable to overrule this program.
cristy73bd4a52010-10-05 11:24:23 +00003907if test "$cross_compiling" != no; then
3908 if test -n "$ac_tool_prefix"; then
3909 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3910set dummy ${ac_tool_prefix}strip; ac_word=$2
3911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3912$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003913if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003914 $as_echo_n "(cached) " >&6
3915else
3916 if test -n "$STRIP"; then
3917 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3918else
3919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3920for as_dir in $PATH
3921do
3922 IFS=$as_save_IFS
3923 test -z "$as_dir" && as_dir=.
3924 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003926 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3928 break 2
3929 fi
3930done
3931 done
3932IFS=$as_save_IFS
3933
3934fi
3935fi
3936STRIP=$ac_cv_prog_STRIP
3937if test -n "$STRIP"; then
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3939$as_echo "$STRIP" >&6; }
3940else
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3942$as_echo "no" >&6; }
3943fi
3944
3945
3946fi
3947if test -z "$ac_cv_prog_STRIP"; then
3948 ac_ct_STRIP=$STRIP
3949 # Extract the first word of "strip", so it can be a program name with args.
3950set dummy strip; ac_word=$2
3951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3952$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003953if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003954 $as_echo_n "(cached) " >&6
3955else
3956 if test -n "$ac_ct_STRIP"; then
3957 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3958else
3959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3960for as_dir in $PATH
3961do
3962 IFS=$as_save_IFS
3963 test -z "$as_dir" && as_dir=.
3964 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003965 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003966 ac_cv_prog_ac_ct_STRIP="strip"
3967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3968 break 2
3969 fi
3970done
3971 done
3972IFS=$as_save_IFS
3973
3974fi
3975fi
3976ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3977if test -n "$ac_ct_STRIP"; then
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3979$as_echo "$ac_ct_STRIP" >&6; }
3980else
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3982$as_echo "no" >&6; }
3983fi
3984
3985 if test "x$ac_ct_STRIP" = x; then
3986 STRIP=":"
3987 else
3988 case $cross_compiling:$ac_tool_warned in
3989yes:)
3990{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3991$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3992ac_tool_warned=yes ;;
3993esac
3994 STRIP=$ac_ct_STRIP
3995 fi
3996else
3997 STRIP="$ac_cv_prog_STRIP"
3998fi
3999
4000fi
4001INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4002
4003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4004$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4005if test -z "$MKDIR_P"; then
cristyda16f162011-02-19 23:52:17 +00004006 if ${ac_cv_path_mkdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004007 $as_echo_n "(cached) " >&6
4008else
4009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4010for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4011do
4012 IFS=$as_save_IFS
4013 test -z "$as_dir" && as_dir=.
4014 for ac_prog in mkdir gmkdir; do
4015 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004016 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
cristy73bd4a52010-10-05 11:24:23 +00004017 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4018 'mkdir (GNU coreutils) '* | \
4019 'mkdir (coreutils) '* | \
4020 'mkdir (fileutils) '4.1*)
4021 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4022 break 3;;
4023 esac
4024 done
4025 done
4026 done
4027IFS=$as_save_IFS
4028
4029fi
4030
4031 test -d ./--version && rmdir ./--version
4032 if test "${ac_cv_path_mkdir+set}" = set; then
4033 MKDIR_P="$ac_cv_path_mkdir -p"
4034 else
4035 # As a last resort, use the slow shell script. Don't cache a
4036 # value for MKDIR_P within a source directory, because that will
4037 # break other packages using the cache if that directory is
4038 # removed, or if the value is a relative name.
4039 MKDIR_P="$ac_install_sh -d"
4040 fi
4041fi
4042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4043$as_echo "$MKDIR_P" >&6; }
4044
cristy73bd4a52010-10-05 11:24:23 +00004045for ac_prog in gawk mawk nawk awk
4046do
4047 # Extract the first word of "$ac_prog", so it can be a program name with args.
4048set dummy $ac_prog; ac_word=$2
4049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4050$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004051if ${ac_cv_prog_AWK+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004052 $as_echo_n "(cached) " >&6
4053else
4054 if test -n "$AWK"; then
4055 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4056else
4057as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4058for as_dir in $PATH
4059do
4060 IFS=$as_save_IFS
4061 test -z "$as_dir" && as_dir=.
4062 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004063 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00004064 ac_cv_prog_AWK="$ac_prog"
4065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4066 break 2
4067 fi
4068done
4069 done
4070IFS=$as_save_IFS
4071
4072fi
4073fi
4074AWK=$ac_cv_prog_AWK
4075if test -n "$AWK"; then
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4077$as_echo "$AWK" >&6; }
4078else
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4080$as_echo "no" >&6; }
4081fi
4082
4083
4084 test -n "$AWK" && break
4085done
4086
4087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4088$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4089set x ${MAKE-make}
4090ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00004091if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004092 $as_echo_n "(cached) " >&6
4093else
4094 cat >conftest.make <<\_ACEOF
4095SHELL = /bin/sh
4096all:
4097 @echo '@@@%%%=$(MAKE)=@@@%%%'
4098_ACEOF
cristy98dddb52010-11-04 00:30:15 +00004099# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristy73bd4a52010-10-05 11:24:23 +00004100case `${MAKE-make} -f conftest.make 2>/dev/null` in
4101 *@@@%%%=?*=@@@%%%*)
4102 eval ac_cv_prog_make_${ac_make}_set=yes;;
4103 *)
4104 eval ac_cv_prog_make_${ac_make}_set=no;;
4105esac
4106rm -f conftest.make
4107fi
4108if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4110$as_echo "yes" >&6; }
4111 SET_MAKE=
4112else
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4114$as_echo "no" >&6; }
4115 SET_MAKE="MAKE=${MAKE-make}"
4116fi
4117
4118rm -rf .tst 2>/dev/null
4119mkdir .tst 2>/dev/null
4120if test -d .tst; then
4121 am__leading_dot=.
4122else
4123 am__leading_dot=_
4124fi
4125rmdir .tst 2>/dev/null
4126
cristya448bd22011-10-14 12:38:13 +00004127# Check whether --enable-silent-rules was given.
4128if test "${enable_silent_rules+set}" = set; then :
4129 enableval=$enable_silent_rules;
4130fi
4131
cristyc0890a62012-07-19 00:18:20 +00004132case $enable_silent_rules in # (((
4133 yes) AM_DEFAULT_VERBOSITY=0;;
4134 no) AM_DEFAULT_VERBOSITY=1;;
4135 *) AM_DEFAULT_VERBOSITY=1;;
cristya448bd22011-10-14 12:38:13 +00004136esac
cristyc3fb77b2012-02-06 01:49:41 +00004137am_make=${MAKE-make}
4138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4139$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4140if ${am_cv_make_support_nested_variables+:} false; then :
4141 $as_echo_n "(cached) " >&6
4142else
4143 if $as_echo 'TRUE=$(BAR$(V))
4144BAR0=false
4145BAR1=true
4146V=1
4147am__doit:
4148 @$(TRUE)
4149.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4150 am_cv_make_support_nested_variables=yes
4151else
4152 am_cv_make_support_nested_variables=no
4153fi
4154fi
4155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4156$as_echo "$am_cv_make_support_nested_variables" >&6; }
4157if test $am_cv_make_support_nested_variables = yes; then
4158 AM_V='$(V)'
4159 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4160else
4161 AM_V=$AM_DEFAULT_VERBOSITY
4162 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4163fi
cristya448bd22011-10-14 12:38:13 +00004164AM_BACKSLASH='\'
4165
cristy73bd4a52010-10-05 11:24:23 +00004166if test "`cd $srcdir && pwd`" != "`pwd`"; then
4167 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4168 # is not polluted with repeated "-I."
4169 am__isrc=' -I$(srcdir)'
4170 # test to see if srcdir already configured
4171 if test -f $srcdir/config.status; then
cristy98dddb52010-11-04 00:30:15 +00004172 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00004173 fi
4174fi
4175
4176# test whether we have cygpath
4177if test -z "$CYGPATH_W"; then
4178 if (cygpath --version) >/dev/null 2>/dev/null; then
4179 CYGPATH_W='cygpath -w'
4180 else
4181 CYGPATH_W=echo
4182 fi
4183fi
4184
4185
4186# Define the identity of the package.
cristy09b53e12011-10-14 12:47:22 +00004187 PACKAGE='ImageMagick'
cristy29eb34e2011-10-16 00:46:08 +00004188 VERSION='7.0.0-0'
cristy73bd4a52010-10-05 11:24:23 +00004189
4190
cristya448bd22011-10-14 12:38:13 +00004191cat >>confdefs.h <<_ACEOF
4192#define PACKAGE "$PACKAGE"
4193_ACEOF
4194
4195
4196cat >>confdefs.h <<_ACEOF
4197#define VERSION "$VERSION"
4198_ACEOF
4199
cristy73bd4a52010-10-05 11:24:23 +00004200# Some tools Automake needs.
4201
4202ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4203
4204
4205AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4206
4207
4208AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4209
4210
4211AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4212
4213
4214MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4215
cristyc0890a62012-07-19 00:18:20 +00004216# For better backward compatibility. To be removed once Automake 1.9.x
4217# dies out for good. For more background, see:
4218# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4219# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4220mkdir_p='$(MKDIR_P)'
4221
cristyead532a2015-06-05 00:49:30 +00004222# We need awk for the "check" target (and possibly the TAP driver). The
4223# system "awk" is bad on some platforms.
cristyc3fb77b2012-02-06 01:49:41 +00004224# Always define AMTAR for backward compatibility. Yes, it's still used
4225# in the wild :-( We should find a proper way to deprecate it ...
4226AMTAR='$${TAR-tar}'
cristy73bd4a52010-10-05 11:24:23 +00004227
cristye69bdbe2013-05-03 21:40:44 +00004228
4229# We'll loop over all known methods to create a tar archive until one works.
4230_am_tools='gnutar pax cpio none'
4231
cristyc3fb77b2012-02-06 01:49:41 +00004232am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
cristy73bd4a52010-10-05 11:24:23 +00004233
4234
4235
4236
4237
cristy3ed852e2009-09-05 21:47:34 +00004238
cristya5bda012013-11-03 18:05:38 +00004239# POSIX will say in a future version that running "rm -f" with no argument
4240# is OK; and we want to be able to make that assumption in our Makefile
4241# recipes. So use an aggressive probe to check that the usage we want is
4242# actually supported "in the wild" to an acceptable degree.
4243# See automake bug#10828.
4244# To make any issue more visible, cause the running configure to be aborted
4245# by default if the 'rm' program in use doesn't match our expectations; the
4246# user can still override this though.
4247if rm -f && rm -fr && rm -rf; then : OK; else
4248 cat >&2 <<'END'
4249Oops!
4250
4251Your 'rm' program seems unable to run without file operands specified
4252on the command line, even when the '-f' option is present. This is contrary
4253to the behaviour of most rm programs out there, and not conforming with
4254the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4255
4256Please tell bug-automake@gnu.org about your system, including the value
4257of your $PATH and any error possibly output before this message. This
4258can help us improve future automake versions.
4259
4260END
4261 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4262 echo 'Configuration will proceed anyway, since you have set the' >&2
4263 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4264 echo >&2
4265 else
4266 cat >&2 <<'END'
4267Aborting the configuration process, to ensure you take notice of the issue.
4268
4269You can download and install GNU coreutils to get an 'rm' implementation
4270that behaves properly: <http://www.gnu.org/software/coreutils/>.
4271
4272If you want to complete the configuration process using your problematic
4273'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4274to "yes", and re-run configure.
4275
4276END
4277 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4278 fi
4279fi
cristyead532a2015-06-05 00:49:30 +00004280
cristy73bd4a52010-10-05 11:24:23 +00004281# Check whether --enable-silent-rules was given.
4282if test "${enable_silent_rules+set}" = set; then :
4283 enableval=$enable_silent_rules;
4284fi
4285
cristyc0890a62012-07-19 00:18:20 +00004286case $enable_silent_rules in # (((
4287 yes) AM_DEFAULT_VERBOSITY=0;;
4288 no) AM_DEFAULT_VERBOSITY=1;;
4289 *) AM_DEFAULT_VERBOSITY=0;;
cristy73bd4a52010-10-05 11:24:23 +00004290esac
cristyc3fb77b2012-02-06 01:49:41 +00004291am_make=${MAKE-make}
4292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4293$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4294if ${am_cv_make_support_nested_variables+:} false; then :
4295 $as_echo_n "(cached) " >&6
4296else
4297 if $as_echo 'TRUE=$(BAR$(V))
4298BAR0=false
4299BAR1=true
4300V=1
4301am__doit:
4302 @$(TRUE)
4303.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4304 am_cv_make_support_nested_variables=yes
4305else
4306 am_cv_make_support_nested_variables=no
4307fi
4308fi
4309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4310$as_echo "$am_cv_make_support_nested_variables" >&6; }
4311if test $am_cv_make_support_nested_variables = yes; then
4312 AM_V='$(V)'
4313 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4314else
4315 AM_V=$AM_DEFAULT_VERBOSITY
4316 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4317fi
cristy73bd4a52010-10-05 11:24:23 +00004318AM_BACKSLASH='\'
4319
cristy3ed852e2009-09-05 21:47:34 +00004320
cristy9af1cbf2014-12-28 22:03:09 +00004321#
4322# Save initial user-tunable values
4323#
4324USER_LIBS=$LIBS
4325for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
4326 eval isset=\${$var+set}
4327 if test "$isset" = 'set'; then
4328 eval val=$`echo $var`
4329 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
4330 fi
4331done
4332
4333
4334CONFIGURE_ARGS="$0 ${ac_configure_args}"
4335
4336
cristy187791c2015-05-03 22:17:00 +00004337# Check whether --enable-reproducible-build was given.
4338if test "${enable_reproducible_build+set}" = set; then :
4339 enableval=$enable_reproducible_build; enable_reproducible_build=$enableval
4340else
4341 enable_reproducible_build='no'
4342fi
4343
4344
cristy9af1cbf2014-12-28 22:03:09 +00004345# Source file containing package/library versioning information.
4346. ${srcdir}/version.sh
4347
4348echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
4349
4350MAGICK_TARGET_CPU=$host_cpu
4351
4352
4353cat >>confdefs.h <<_ACEOF
4354#define MAGICK_TARGET_CPU $MAGICK_TARGET_CPU
4355_ACEOF
4356
4357
4358MAGICK_TARGET_VENDOR=$host_vendor
4359
4360
4361cat >>confdefs.h <<_ACEOF
4362#define MAGICK_TARGET_VENDOR $MAGICK_TARGET_VENDOR
4363_ACEOF
4364
4365
4366MAGICK_TARGET_OS=$host_os
4367
4368
4369cat >>confdefs.h <<_ACEOF
4370#define MAGICK_TARGET_OS $MAGICK_TARGET_OS
4371_ACEOF
4372
4373
4374
4375# Substitute versioning
4376MAGICK_MAJOR_VERSION=7
4377
4378MAGICK_MINOR_VERSION=0
4379
4380MAGICK_MICRO_VERSION=0
4381
4382MAGICK_PATCHLEVEL_VERSION=0
4383
4384MAGICK_VERSION=7.0.0-0
4385
cristyebc8f692015-06-16 10:36:30 +00004386MAGICK_SVN_REVISION=18910M
cristy9af1cbf2014-12-28 22:03:09 +00004387
4388
4389# Substitute library versioning
4390MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
4391
4392MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
4393
4394
4395MAGICKPP_LIBRARY_CURRENT_MIN=`expr $MAGICKPP_LIBRARY_CURRENT - $MAGICKPP_LIBRARY_AGE`
4396
4397MAGICKPP_LIBRARY_VERSION_INFO=$MAGICKPP_LIBRARY_CURRENT:$MAGICKPP_LIBRARY_REVISION:$MAGICKPP_LIBRARY_AGE
4398
4399
cristy187791c2015-05-03 22:17:00 +00004400if test X$enable_reproducible_build = Xyes; then :
4401 PACKAGE_RELEASE_DATE=$PACKAGE_RELEASE_DATE_REPRODUCIBLE
4402elif PACKAGE_RELEASE_DATE=$PACKAGE_RELEASE_DATE_RAW; then :
4403
4404fi
4405
cristy9af1cbf2014-12-28 22:03:09 +00004406
4407# Ensure that make can run correctly
4408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4409$as_echo_n "checking whether build environment is sane... " >&6; }
4410# Reject unsafe characters in $srcdir or the absolute working directory
4411# name. Accept space and tab only in the latter.
4412am_lf='
4413'
4414case `pwd` in
4415 *[\\\"\#\$\&\'\`$am_lf]*)
4416 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4417esac
4418case $srcdir in
4419 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4420 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4421esac
4422
4423# Do 'set' in a subshell so we don't clobber the current shell's
4424# arguments. Must try -L first in case configure is actually a
4425# symlink; some systems play weird games with the mod time of symlinks
4426# (eg FreeBSD returns the mod time of the symlink's containing
4427# directory).
4428if (
4429 am_has_slept=no
4430 for am_try in 1 2; do
4431 echo "timestamp, slept: $am_has_slept" > conftest.file
4432 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4433 if test "$*" = "X"; then
4434 # -L didn't work.
4435 set X `ls -t "$srcdir/configure" conftest.file`
4436 fi
4437 if test "$*" != "X $srcdir/configure conftest.file" \
4438 && test "$*" != "X conftest.file $srcdir/configure"; then
4439
4440 # If neither matched, then we have a broken ls. This can happen
4441 # if, for instance, CONFIG_SHELL is bash and it inherits a
4442 # broken ls alias from the environment. This has actually
4443 # happened. Such a system could not be considered "sane".
4444 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4445 alias in your environment" "$LINENO" 5
4446 fi
4447 if test "$2" = conftest.file || test $am_try -eq 2; then
4448 break
4449 fi
4450 # Just in case.
4451 sleep 1
4452 am_has_slept=yes
4453 done
4454 test "$2" = conftest.file
4455 )
4456then
4457 # Ok.
4458 :
4459else
4460 as_fn_error $? "newly created file is older than distributed files!
4461Check your system clock" "$LINENO" 5
4462fi
4463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4464$as_echo "yes" >&6; }
4465# If we didn't sleep, we still need to ensure time stamps of config.status and
4466# generated files are strictly newer.
4467am_sleep_pid=
4468if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4469 ( sleep 1 ) &
4470 am_sleep_pid=$!
4471fi
4472
4473rm -f conftest.file
4474
4475
cristyf279b692014-08-13 12:01:27 +00004476# versioning of library
cristy3ed852e2009-09-05 21:47:34 +00004477MAGICK_LIB_VERSION="0x"
4478if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
4479 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4480fi
4481MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
4482if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
4483 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4484fi
4485MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
4486if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
4487 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4488fi
4489MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
4490
4491
4492# Definition used to define MagickLibVersionText in version.h
4493MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4494
4495
4496# Definition used to define MagickLibVersionNumber in version.h
4497MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4498
4499
cristy5ed9c6e2013-07-14 21:20:31 +00004500MAGICKPP_LIB_VERSION="0x"
4501if test ${MAGICKPP_LIBRARY_CURRENT} -lt 10 ; then
4502 MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0
4503fi
4504MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_CURRENT}
4505if test ${MAGICKPP_LIBRARY_AGE} -lt 10 ; then
4506 MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0
4507fi
4508MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_AGE}
4509if test ${MAGICKPP_LIBRARY_REVISION} -lt 10 ; then
4510 MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0
4511fi
4512MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_REVISION}
4513
4514
4515# Definition used to define MagickLibVersionText in version.h
4516MAGICKPP_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4517
4518
4519# Definition used to define MagickLibVersionNumber in version.h
4520MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4521
4522
4523
4524
cristy3ed852e2009-09-05 21:47:34 +00004525# Regenerate config.status if ChangeLog or version.sh is updated.
4526CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
4527
4528
4529PERLMAINCC=$CC
4530
4531MAGICK_CFLAGS=''
4532MAGICK_CPPFLAGS=$CPPFLAGS_USER
4533MAGICK_PCFLAGS=$CPPFLAGS_USER
4534MAGICK_LDFLAGS=''
4535MAGICK_LIBS=''
cristyfd9dcd42010-08-08 18:07:02 +00004536MAGICK_FEATURES=''
cristy3ed852e2009-09-05 21:47:34 +00004537
4538#
4539# Evaluate shell variable equivalents to Makefile directory variables
4540#
4541if test "x$prefix" = xNONE; then
4542 prefix=$ac_default_prefix
4543fi
4544# Let make expand exec_prefix.
4545if test "x$exec_prefix" = xNONE; then
4546 exec_prefix='${prefix}'
4547fi
4548
4549#
4550eval "eval PREFIX_DIR=${prefix}"
4551
4552eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4553
4554eval "eval BIN_DIR=$bindir"
4555
4556eval "eval SBIN_DIR=$sbindir"
4557
4558eval "eval LIBEXEC_DIR=$libexecdir"
4559
4560eval "eval DATA_DIR=$datadir"
4561
cristy4e65ec22012-04-08 01:33:27 +00004562eval "eval DOC_DIR=$datadir/doc"
cristyd55889c2011-03-27 00:50:24 +00004563
cristy3ed852e2009-09-05 21:47:34 +00004564eval "eval SYSCONF_DIR=$sysconfdir"
4565
4566eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4567
4568eval "eval LOCALSTATE_DIR=$localstatedir"
4569
4570eval "eval LIB_DIR=$libdir"
4571
4572eval "eval INCLUDE_DIR=$includedir"
4573
4574eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4575
4576eval "eval INFO_DIR=$infodir"
4577
4578eval "eval MAN_DIR=$mandir"
4579
4580
4581# Get full paths to source and build directories
4582srcdirfull="`cd $srcdir && pwd`"
4583builddir="`pwd`"
4584
4585#
4586# Compute variables useful for running uninstalled software.
4587#
4588MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4589MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4590MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4591MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4592DIRSEP=':'
4593case "${build_os}" in
4594 mingw* )
4595 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4596 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4597 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4598 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4599 DIRSEP=';'
4600 ;;
4601esac
4602case "${host_os}" in
4603 mingw* )
4604 DIRSEP=';'
4605 ;;
4606esac
4607
4608
4609
4610
4611
4612
cristya0b81c32010-01-22 02:54:33 +00004613
4614#
4615# Enable OS features.
4616#
cristy73bd4a52010-10-05 11:24:23 +00004617DEPDIR="${am__leading_dot}deps"
4618
4619ac_config_commands="$ac_config_commands depfiles"
4620
4621
4622am_make=${MAKE-make}
4623cat > confinc << 'END'
4624am__doit:
4625 @echo this is the am__doit target
4626.PHONY: am__doit
4627END
4628# If we don't find an include directive, just comment out the code.
4629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4630$as_echo_n "checking for style of include used by $am_make... " >&6; }
4631am__include="#"
4632am__quote=
4633_am_result=none
4634# First try GNU make style include.
4635echo "include confinc" > confmf
cristyc0890a62012-07-19 00:18:20 +00004636# Ignore all kinds of additional output from 'make'.
cristy73bd4a52010-10-05 11:24:23 +00004637case `$am_make -s -f confmf 2> /dev/null` in #(
4638*the\ am__doit\ target*)
4639 am__include=include
4640 am__quote=
4641 _am_result=GNU
4642 ;;
4643esac
4644# Now try BSD make style include.
4645if test "$am__include" = "#"; then
4646 echo '.include "confinc"' > confmf
4647 case `$am_make -s -f confmf 2> /dev/null` in #(
4648 *the\ am__doit\ target*)
4649 am__include=.include
4650 am__quote="\""
4651 _am_result=BSD
4652 ;;
4653 esac
4654fi
4655
4656
4657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4658$as_echo "$_am_result" >&6; }
4659rm -f confinc confmf
4660
4661# Check whether --enable-dependency-tracking was given.
4662if test "${enable_dependency_tracking+set}" = set; then :
4663 enableval=$enable_dependency_tracking;
4664fi
4665
4666if test "x$enable_dependency_tracking" != xno; then
4667 am_depcomp="$ac_aux_dir/depcomp"
4668 AMDEPBACKSLASH='\'
cristy7247bba2012-02-05 16:37:27 +00004669 am__nodep='_no'
cristy73bd4a52010-10-05 11:24:23 +00004670fi
4671 if test "x$enable_dependency_tracking" != xno; then
4672 AMDEP_TRUE=
4673 AMDEP_FALSE='#'
4674else
4675 AMDEP_TRUE='#'
4676 AMDEP_FALSE=
4677fi
4678
4679
cristy3ed852e2009-09-05 21:47:34 +00004680ac_ext=c
4681ac_cpp='$CPP $CPPFLAGS'
4682ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4683ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4684ac_compiler_gnu=$ac_cv_c_compiler_gnu
4685if test -n "$ac_tool_prefix"; then
4686 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4687set dummy ${ac_tool_prefix}gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004689$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004690if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004691 $as_echo_n "(cached) " >&6
4692else
4693 if test -n "$CC"; then
4694 ac_cv_prog_CC="$CC" # Let the user override the test.
4695else
4696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4697for as_dir in $PATH
4698do
4699 IFS=$as_save_IFS
4700 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004701 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004702 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004703 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cristy8b350f62009-11-15 23:12:43 +00004704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004705 break 2
4706 fi
4707done
cristy8b350f62009-11-15 23:12:43 +00004708 done
cristy3ed852e2009-09-05 21:47:34 +00004709IFS=$as_save_IFS
4710
4711fi
4712fi
4713CC=$ac_cv_prog_CC
4714if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004716$as_echo "$CC" >&6; }
4717else
cristy8b350f62009-11-15 23:12:43 +00004718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004719$as_echo "no" >&6; }
4720fi
4721
4722
4723fi
4724if test -z "$ac_cv_prog_CC"; then
4725 ac_ct_CC=$CC
4726 # Extract the first word of "gcc", so it can be a program name with args.
4727set dummy gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004729$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004730if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004731 $as_echo_n "(cached) " >&6
4732else
4733 if test -n "$ac_ct_CC"; then
4734 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4735else
4736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4737for as_dir in $PATH
4738do
4739 IFS=$as_save_IFS
4740 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004741 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004742 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004743 ac_cv_prog_ac_ct_CC="gcc"
cristy8b350f62009-11-15 23:12:43 +00004744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004745 break 2
4746 fi
4747done
cristy8b350f62009-11-15 23:12:43 +00004748 done
cristy3ed852e2009-09-05 21:47:34 +00004749IFS=$as_save_IFS
4750
4751fi
4752fi
4753ac_ct_CC=$ac_cv_prog_ac_ct_CC
4754if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004756$as_echo "$ac_ct_CC" >&6; }
4757else
cristy8b350f62009-11-15 23:12:43 +00004758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004759$as_echo "no" >&6; }
4760fi
4761
4762 if test "x$ac_ct_CC" = x; then
4763 CC=""
4764 else
4765 case $cross_compiling:$ac_tool_warned in
4766yes:)
cristy8b350f62009-11-15 23:12:43 +00004767{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004768$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4769ac_tool_warned=yes ;;
4770esac
4771 CC=$ac_ct_CC
4772 fi
4773else
4774 CC="$ac_cv_prog_CC"
4775fi
4776
4777if test -z "$CC"; then
4778 if test -n "$ac_tool_prefix"; then
4779 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4780set dummy ${ac_tool_prefix}cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004782$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004783if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004784 $as_echo_n "(cached) " >&6
4785else
4786 if test -n "$CC"; then
4787 ac_cv_prog_CC="$CC" # Let the user override the test.
4788else
4789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4790for as_dir in $PATH
4791do
4792 IFS=$as_save_IFS
4793 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004794 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004795 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004796 ac_cv_prog_CC="${ac_tool_prefix}cc"
cristy8b350f62009-11-15 23:12:43 +00004797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004798 break 2
4799 fi
4800done
cristy8b350f62009-11-15 23:12:43 +00004801 done
cristy3ed852e2009-09-05 21:47:34 +00004802IFS=$as_save_IFS
4803
4804fi
4805fi
4806CC=$ac_cv_prog_CC
4807if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004809$as_echo "$CC" >&6; }
4810else
cristy8b350f62009-11-15 23:12:43 +00004811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004812$as_echo "no" >&6; }
4813fi
4814
4815
4816 fi
4817fi
4818if test -z "$CC"; then
4819 # Extract the first word of "cc", so it can be a program name with args.
4820set dummy cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004822$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004823if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004824 $as_echo_n "(cached) " >&6
4825else
4826 if test -n "$CC"; then
4827 ac_cv_prog_CC="$CC" # Let the user override the test.
4828else
4829 ac_prog_rejected=no
4830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4831for as_dir in $PATH
4832do
4833 IFS=$as_save_IFS
4834 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004835 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004836 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004837 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4838 ac_prog_rejected=yes
4839 continue
4840 fi
4841 ac_cv_prog_CC="cc"
cristy8b350f62009-11-15 23:12:43 +00004842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004843 break 2
4844 fi
4845done
cristy8b350f62009-11-15 23:12:43 +00004846 done
cristy3ed852e2009-09-05 21:47:34 +00004847IFS=$as_save_IFS
4848
4849if test $ac_prog_rejected = yes; then
4850 # We found a bogon in the path, so make sure we never use it.
4851 set dummy $ac_cv_prog_CC
4852 shift
4853 if test $# != 0; then
4854 # We chose a different compiler from the bogus one.
4855 # However, it has the same basename, so the bogon will be chosen
4856 # first if we set CC to just the basename; use the full file name.
4857 shift
4858 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4859 fi
4860fi
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
4873fi
4874if test -z "$CC"; then
4875 if test -n "$ac_tool_prefix"; then
4876 for ac_prog in cl.exe
4877 do
4878 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4879set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004881$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004882if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004883 $as_echo_n "(cached) " >&6
4884else
4885 if test -n "$CC"; then
4886 ac_cv_prog_CC="$CC" # Let the user override the test.
4887else
4888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4889for as_dir in $PATH
4890do
4891 IFS=$as_save_IFS
4892 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004893 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004894 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004895 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004897 break 2
4898 fi
4899done
cristy8b350f62009-11-15 23:12:43 +00004900 done
cristy3ed852e2009-09-05 21:47:34 +00004901IFS=$as_save_IFS
4902
4903fi
4904fi
4905CC=$ac_cv_prog_CC
4906if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004908$as_echo "$CC" >&6; }
4909else
cristy8b350f62009-11-15 23:12:43 +00004910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004911$as_echo "no" >&6; }
4912fi
4913
4914
4915 test -n "$CC" && break
4916 done
4917fi
4918if test -z "$CC"; then
4919 ac_ct_CC=$CC
4920 for ac_prog in cl.exe
4921do
4922 # Extract the first word of "$ac_prog", so it can be a program name with args.
4923set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004925$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004926if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004927 $as_echo_n "(cached) " >&6
4928else
4929 if test -n "$ac_ct_CC"; then
4930 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4931else
4932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4933for as_dir in $PATH
4934do
4935 IFS=$as_save_IFS
4936 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004937 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004938 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004939 ac_cv_prog_ac_ct_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004941 break 2
4942 fi
4943done
cristy8b350f62009-11-15 23:12:43 +00004944 done
cristy3ed852e2009-09-05 21:47:34 +00004945IFS=$as_save_IFS
4946
4947fi
4948fi
4949ac_ct_CC=$ac_cv_prog_ac_ct_CC
4950if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004952$as_echo "$ac_ct_CC" >&6; }
4953else
cristy8b350f62009-11-15 23:12:43 +00004954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004955$as_echo "no" >&6; }
4956fi
4957
4958
4959 test -n "$ac_ct_CC" && break
4960done
4961
4962 if test "x$ac_ct_CC" = x; then
4963 CC=""
4964 else
4965 case $cross_compiling:$ac_tool_warned in
4966yes:)
cristy8b350f62009-11-15 23:12:43 +00004967{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004968$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4969ac_tool_warned=yes ;;
4970esac
4971 CC=$ac_ct_CC
4972 fi
4973fi
4974
4975fi
4976
4977
cristy8b350f62009-11-15 23:12:43 +00004978test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004979$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004980as_fn_error $? "no acceptable C compiler found in \$PATH
4981See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004982
4983# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00004984$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00004985set X $ac_compile
4986ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00004987for ac_option in --version -v -V -qversion; do
4988 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00004989case "(($ac_try" in
4990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4991 *) ac_try_echo=$ac_try;;
4992esac
cristy8b350f62009-11-15 23:12:43 +00004993eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4994$as_echo "$ac_try_echo"; } >&5
4995 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00004996 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004997 if test -s conftest.err; then
4998 sed '10a\
4999... rest of stderr output deleted ...
5000 10q' conftest.err >conftest.er1
5001 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +00005002 fi
cristycd4c5312009-11-22 01:19:08 +00005003 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +00005004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5005 test $ac_status = 0; }
5006done
cristy3ed852e2009-09-05 21:47:34 +00005007
cristy8b350f62009-11-15 23:12:43 +00005008cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005009/* end confdefs.h. */
cristycd4c5312009-11-22 01:19:08 +00005010
cristy3ed852e2009-09-05 21:47:34 +00005011int
5012main ()
5013{
5014
5015 ;
5016 return 0;
5017}
5018_ACEOF
5019ac_clean_files_save=$ac_clean_files
cristycd4c5312009-11-22 01:19:08 +00005020ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cristy3ed852e2009-09-05 21:47:34 +00005021# Try to create an executable without -o first, disregard a.out.
5022# It will help us diagnose broken compilers, and finding out an intuition
5023# of exeext.
cristycd4c5312009-11-22 01:19:08 +00005024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5025$as_echo_n "checking whether the C compiler works... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +00005026ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5027
5028# The possible output files:
5029ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5030
5031ac_rmfiles=
5032for ac_file in $ac_files
5033do
5034 case $ac_file in
5035 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5036 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5037 esac
5038done
5039rm -f $ac_rmfiles
5040
cristy8b350f62009-11-15 23:12:43 +00005041if { { ac_try="$ac_link_default"
cristy3ed852e2009-09-05 21:47:34 +00005042case "(($ac_try" in
5043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5044 *) ac_try_echo=$ac_try;;
5045esac
cristy8b350f62009-11-15 23:12:43 +00005046eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5047$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00005048 (eval "$ac_link_default") 2>&5
5049 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00005050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5051 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00005052 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5053# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5054# in a Makefile. We should not override ac_cv_exeext if it was cached,
5055# so that the user can short-circuit this test for compilers unknown to
5056# Autoconf.
5057for ac_file in $ac_files ''
5058do
5059 test -f "$ac_file" || continue
5060 case $ac_file in
5061 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5062 ;;
5063 [ab].out )
5064 # We found the default executable, but exeext='' is most
5065 # certainly right.
5066 break;;
5067 *.* )
cristy8b350f62009-11-15 23:12:43 +00005068 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cristy3ed852e2009-09-05 21:47:34 +00005069 then :; else
5070 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5071 fi
5072 # We set ac_cv_exeext here because the later test for it is not
5073 # safe: cross compilers may not add the suffix if given an `-o'
5074 # argument, so we may need to know it at that point already.
5075 # Even if this section looks crufty: it has the advantage of
5076 # actually working.
5077 break;;
5078 * )
5079 break;;
5080 esac
5081done
5082test "$ac_cv_exeext" = no && ac_cv_exeext=
5083
5084else
5085 ac_file=''
5086fi
cristy8b350f62009-11-15 23:12:43 +00005087if test -z "$ac_file"; then :
cristycd4c5312009-11-22 01:19:08 +00005088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5089$as_echo "no" >&6; }
5090$as_echo "$as_me: failed program was:" >&5
cristy3ed852e2009-09-05 21:47:34 +00005091sed 's/^/| /' conftest.$ac_ext >&5
5092
cristy8b350f62009-11-15 23:12:43 +00005093{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00005094$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005095as_fn_error 77 "C compiler cannot create executables
5096See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00005097else
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5099$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00005100fi
cristycd4c5312009-11-22 01:19:08 +00005101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5102$as_echo_n "checking for C compiler default output file name... " >&6; }
5103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5104$as_echo "$ac_file" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00005105ac_exeext=$ac_cv_exeext
5106
cristycd4c5312009-11-22 01:19:08 +00005107rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cristy3ed852e2009-09-05 21:47:34 +00005108ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00005109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cristy3ed852e2009-09-05 21:47:34 +00005110$as_echo_n "checking for suffix of executables... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00005111if { { ac_try="$ac_link"
cristy3ed852e2009-09-05 21:47:34 +00005112case "(($ac_try" in
5113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5114 *) ac_try_echo=$ac_try;;
5115esac
cristy8b350f62009-11-15 23:12:43 +00005116eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5117$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00005118 (eval "$ac_link") 2>&5
5119 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00005120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5121 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00005122 # If both `conftest.exe' and `conftest' are `present' (well, observable)
5123# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
5124# work properly (i.e., refer to `conftest.exe'), while it won't with
5125# `rm'.
5126for ac_file in conftest.exe conftest conftest.*; do
5127 test -f "$ac_file" || continue
5128 case $ac_file in
5129 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5130 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5131 break;;
5132 * ) break;;
5133 esac
5134done
5135else
cristy8b350f62009-11-15 23:12:43 +00005136 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00005137$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005138as_fn_error $? "cannot compute suffix of executables: cannot compile and link
5139See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00005140fi
cristycd4c5312009-11-22 01:19:08 +00005141rm -f conftest conftest$ac_cv_exeext
cristy8b350f62009-11-15 23:12:43 +00005142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cristy3ed852e2009-09-05 21:47:34 +00005143$as_echo "$ac_cv_exeext" >&6; }
5144
5145rm -f conftest.$ac_ext
5146EXEEXT=$ac_cv_exeext
5147ac_exeext=$EXEEXT
cristycd4c5312009-11-22 01:19:08 +00005148cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5149/* end confdefs.h. */
5150#include <stdio.h>
5151int
5152main ()
5153{
5154FILE *f = fopen ("conftest.out", "w");
5155 return ferror (f) || fclose (f) != 0;
5156
5157 ;
5158 return 0;
5159}
5160_ACEOF
5161ac_clean_files="$ac_clean_files conftest.out"
5162# Check that the compiler produces executables we can run. If not, either
5163# the compiler is broken, or we cross compile.
5164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5165$as_echo_n "checking whether we are cross compiling... " >&6; }
5166if test "$cross_compiling" != yes; then
5167 { { ac_try="$ac_link"
5168case "(($ac_try" in
5169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5170 *) ac_try_echo=$ac_try;;
5171esac
5172eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5173$as_echo "$ac_try_echo"; } >&5
5174 (eval "$ac_link") 2>&5
5175 ac_status=$?
5176 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5177 test $ac_status = 0; }
5178 if { ac_try='./conftest$ac_cv_exeext'
5179 { { case "(($ac_try" in
5180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5181 *) ac_try_echo=$ac_try;;
5182esac
5183eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5184$as_echo "$ac_try_echo"; } >&5
5185 (eval "$ac_try") 2>&5
5186 ac_status=$?
5187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5188 test $ac_status = 0; }; }; then
5189 cross_compiling=no
5190 else
5191 if test "$cross_compiling" = maybe; then
5192 cross_compiling=yes
5193 else
5194 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5195$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005196as_fn_error $? "cannot run C compiled programs.
cristycd4c5312009-11-22 01:19:08 +00005197If you meant to cross compile, use \`--host'.
cristy98dddb52010-11-04 00:30:15 +00005198See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00005199 fi
5200 fi
5201fi
5202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5203$as_echo "$cross_compiling" >&6; }
5204
5205rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5206ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00005207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00005208$as_echo_n "checking for suffix of object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005209if ${ac_cv_objext+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005210 $as_echo_n "(cached) " >&6
5211else
cristy8b350f62009-11-15 23:12:43 +00005212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005213/* end confdefs.h. */
5214
5215int
5216main ()
5217{
5218
5219 ;
5220 return 0;
5221}
5222_ACEOF
5223rm -f conftest.o conftest.obj
cristy8b350f62009-11-15 23:12:43 +00005224if { { ac_try="$ac_compile"
cristy3ed852e2009-09-05 21:47:34 +00005225case "(($ac_try" in
5226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5227 *) ac_try_echo=$ac_try;;
5228esac
cristy8b350f62009-11-15 23:12:43 +00005229eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5230$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00005231 (eval "$ac_compile") 2>&5
5232 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00005233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5234 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00005235 for ac_file in conftest.o conftest.obj conftest.*; do
5236 test -f "$ac_file" || continue;
5237 case $ac_file in
5238 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5239 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5240 break;;
5241 esac
5242done
5243else
5244 $as_echo "$as_me: failed program was:" >&5
5245sed 's/^/| /' conftest.$ac_ext >&5
5246
cristy8b350f62009-11-15 23:12:43 +00005247{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00005248$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005249as_fn_error $? "cannot compute suffix of object files: cannot compile
5250See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00005251fi
cristy3ed852e2009-09-05 21:47:34 +00005252rm -f conftest.$ac_cv_objext conftest.$ac_ext
5253fi
cristy8b350f62009-11-15 23:12:43 +00005254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +00005255$as_echo "$ac_cv_objext" >&6; }
5256OBJEXT=$ac_cv_objext
5257ac_objext=$OBJEXT
cristy8b350f62009-11-15 23:12:43 +00005258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00005259$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005260if ${ac_cv_c_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005261 $as_echo_n "(cached) " >&6
5262else
cristy8b350f62009-11-15 23:12:43 +00005263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005264/* end confdefs.h. */
5265
5266int
5267main ()
5268{
5269#ifndef __GNUC__
5270 choke me
5271#endif
5272
5273 ;
5274 return 0;
5275}
5276_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005277if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005278 ac_compiler_gnu=yes
5279else
cristy8b350f62009-11-15 23:12:43 +00005280 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00005281fi
cristy3ed852e2009-09-05 21:47:34 +00005282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5283ac_cv_c_compiler_gnu=$ac_compiler_gnu
5284
5285fi
cristy8b350f62009-11-15 23:12:43 +00005286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00005287$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5288if test $ac_compiler_gnu = yes; then
5289 GCC=yes
5290else
5291 GCC=
5292fi
5293ac_test_CFLAGS=${CFLAGS+set}
5294ac_save_CFLAGS=$CFLAGS
cristy8b350f62009-11-15 23:12:43 +00005295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00005296$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005297if ${ac_cv_prog_cc_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005298 $as_echo_n "(cached) " >&6
5299else
5300 ac_save_c_werror_flag=$ac_c_werror_flag
5301 ac_c_werror_flag=yes
5302 ac_cv_prog_cc_g=no
5303 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00005304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005305/* end confdefs.h. */
5306
5307int
5308main ()
5309{
5310
5311 ;
5312 return 0;
5313}
5314_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005315if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005316 ac_cv_prog_cc_g=yes
5317else
cristy8b350f62009-11-15 23:12:43 +00005318 CFLAGS=""
5319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005320/* end confdefs.h. */
5321
5322int
5323main ()
5324{
5325
5326 ;
5327 return 0;
5328}
5329_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005330if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005331
cristy8b350f62009-11-15 23:12:43 +00005332else
5333 ac_c_werror_flag=$ac_save_c_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00005334 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00005335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005336/* end confdefs.h. */
5337
5338int
5339main ()
5340{
5341
5342 ;
5343 return 0;
5344}
5345_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005346if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005347 ac_cv_prog_cc_g=yes
cristy3ed852e2009-09-05 21:47:34 +00005348fi
cristy3ed852e2009-09-05 21:47:34 +00005349rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5350fi
cristy3ed852e2009-09-05 21:47:34 +00005351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5352fi
cristy3ed852e2009-09-05 21:47:34 +00005353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5354 ac_c_werror_flag=$ac_save_c_werror_flag
5355fi
cristy8b350f62009-11-15 23:12:43 +00005356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00005357$as_echo "$ac_cv_prog_cc_g" >&6; }
5358if test "$ac_test_CFLAGS" = set; then
5359 CFLAGS=$ac_save_CFLAGS
5360elif test $ac_cv_prog_cc_g = yes; then
5361 if test "$GCC" = yes; then
5362 CFLAGS="-g -O2"
5363 else
5364 CFLAGS="-g"
5365 fi
5366else
5367 if test "$GCC" = yes; then
5368 CFLAGS="-O2"
5369 else
5370 CFLAGS=
5371 fi
5372fi
cristy8b350f62009-11-15 23:12:43 +00005373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005374$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005375if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005376 $as_echo_n "(cached) " >&6
5377else
5378 ac_cv_prog_cc_c89=no
5379ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00005380cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005381/* end confdefs.h. */
5382#include <stdarg.h>
5383#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00005384struct stat;
cristy3ed852e2009-09-05 21:47:34 +00005385/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5386struct buf { int x; };
5387FILE * (*rcsopen) (struct buf *, struct stat *, int);
5388static char *e (p, i)
5389 char **p;
5390 int i;
5391{
5392 return p[i];
5393}
5394static char *f (char * (*g) (char **, int), char **p, ...)
5395{
5396 char *s;
5397 va_list v;
5398 va_start (v,p);
5399 s = g (p, va_arg (v,int));
5400 va_end (v);
5401 return s;
5402}
5403
5404/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5405 function prototypes and stuff, but not '\xHH' hex character constants.
5406 These don't provoke an error unfortunately, instead are silently treated
5407 as 'x'. The following induces an error, until -std is added to get
5408 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5409 array size at least. It's necessary to write '\x00'==0 to get something
5410 that's true only with -std. */
5411int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5412
5413/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5414 inside strings and character constants. */
5415#define FOO(x) 'x'
5416int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5417
5418int test (int i, double x);
5419struct s1 {int (*f) (int a);};
5420struct s2 {int (*f) (double a);};
5421int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5422int argc;
5423char **argv;
5424int
5425main ()
5426{
5427return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5428 ;
5429 return 0;
5430}
5431_ACEOF
5432for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5433 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5434do
5435 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00005436 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005437 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00005438fi
cristy3ed852e2009-09-05 21:47:34 +00005439rm -f core conftest.err conftest.$ac_objext
5440 test "x$ac_cv_prog_cc_c89" != "xno" && break
5441done
5442rm -f conftest.$ac_ext
5443CC=$ac_save_CC
5444
5445fi
5446# AC_CACHE_VAL
5447case "x$ac_cv_prog_cc_c89" in
5448 x)
cristy8b350f62009-11-15 23:12:43 +00005449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00005450$as_echo "none needed" >&6; } ;;
5451 xno)
cristy8b350f62009-11-15 23:12:43 +00005452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00005453$as_echo "unsupported" >&6; } ;;
5454 *)
5455 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00005456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005457$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5458esac
cristy8b350f62009-11-15 23:12:43 +00005459if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00005460
cristy8b350f62009-11-15 23:12:43 +00005461fi
cristy3ed852e2009-09-05 21:47:34 +00005462
5463ac_ext=c
5464ac_cpp='$CPP $CPPFLAGS'
5465ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5466ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5467ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00005468
cristya5bda012013-11-03 18:05:38 +00005469ac_ext=c
5470ac_cpp='$CPP $CPPFLAGS'
5471ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5472ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5473ac_compiler_gnu=$ac_cv_c_compiler_gnu
5474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5475$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5476if ${am_cv_prog_cc_c_o+:} false; then :
5477 $as_echo_n "(cached) " >&6
5478else
5479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5480/* end confdefs.h. */
5481
5482int
5483main ()
5484{
5485
5486 ;
5487 return 0;
5488}
5489_ACEOF
5490 # Make sure it works both with $CC and with simple cc.
5491 # Following AC_PROG_CC_C_O, we do the test twice because some
5492 # compilers refuse to overwrite an existing .o file with -o,
5493 # though they will create one.
5494 am_cv_prog_cc_c_o=yes
5495 for am_i in 1 2; do
5496 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5497 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5498 ac_status=$?
5499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5500 (exit $ac_status); } \
5501 && test -f conftest2.$ac_objext; then
5502 : OK
5503 else
5504 am_cv_prog_cc_c_o=no
5505 break
5506 fi
5507 done
5508 rm -f core conftest*
5509 unset am_i
5510fi
5511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5512$as_echo "$am_cv_prog_cc_c_o" >&6; }
5513if test "$am_cv_prog_cc_c_o" != yes; then
5514 # Losing compiler, so override with the script.
5515 # FIXME: It is wrong to rewrite CC.
5516 # But if we don't then we get into trouble of one sort or another.
5517 # A longer-term fix would be to have automake use am__CC in this case,
5518 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5519 CC="$am_aux_dir/compile $CC"
5520fi
5521ac_ext=c
5522ac_cpp='$CPP $CPPFLAGS'
5523ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5524ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5525ac_compiler_gnu=$ac_cv_c_compiler_gnu
5526
5527
cristy73bd4a52010-10-05 11:24:23 +00005528depcc="$CC" am_compiler_list=
5529
5530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5531$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005532if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00005533 $as_echo_n "(cached) " >&6
5534else
5535 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5536 # We make a subdir and do the tests there. Otherwise we can end up
5537 # making bogus files that we don't know about and never remove. For
5538 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00005539 # making a dummy file named 'D' -- because '-MD' means "put the output
5540 # in D".
cristy7247bba2012-02-05 16:37:27 +00005541 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00005542 mkdir conftest.dir
5543 # Copy depcomp to subdir because otherwise we won't find it if we're
5544 # using a relative directory.
5545 cp "$am_depcomp" conftest.dir
5546 cd conftest.dir
5547 # We will build objects and dependencies in a subdirectory because
5548 # it helps to detect inapplicable dependency modes. For instance
5549 # both Tru64's cc and ICC support -MD to output dependencies as a
5550 # side effect of compilation, but ICC will put the dependencies in
5551 # the current directory while Tru64 will put them in the object
5552 # directory.
5553 mkdir sub
5554
5555 am_cv_CC_dependencies_compiler_type=none
5556 if test "$am_compiler_list" = ""; then
5557 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5558 fi
5559 am__universal=false
5560 case " $depcc " in #(
5561 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5562 esac
5563
5564 for depmode in $am_compiler_list; do
5565 # Setup a source with many dependencies, because some compilers
5566 # like to wrap large dependency lists on column 80 (with \), and
5567 # we should not choose a depcomp mode which is confused by this.
5568 #
5569 # We need to recreate these files for each test, as the compiler may
5570 # overwrite some of them when testing with obscure command lines.
5571 # This happens at least with the AIX C compiler.
5572 : > sub/conftest.c
5573 for i in 1 2 3 4 5 6; do
5574 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00005575 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5576 # Solaris 10 /bin/sh.
5577 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00005578 done
5579 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5580
cristyc0890a62012-07-19 00:18:20 +00005581 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00005582 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00005583 # handle '-M -o', and we need to detect this. Also, some Intel
5584 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00005585 am__obj=sub/conftest.${OBJEXT-o}
5586 am__minus_obj="-o $am__obj"
5587 case $depmode in
5588 gcc)
5589 # This depmode causes a compiler race in universal mode.
5590 test "$am__universal" = false || continue
5591 ;;
5592 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00005593 # After this tag, mechanisms are not by side-effect, so they'll
5594 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00005595 if test "x$enable_dependency_tracking" = xyes; then
5596 continue
5597 else
5598 break
5599 fi
5600 ;;
cristy7247bba2012-02-05 16:37:27 +00005601 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00005602 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00005603 # not run yet. These depmodes are late enough in the game, and
5604 # so weak that their functioning should not be impacted.
5605 am__obj=conftest.${OBJEXT-o}
5606 am__minus_obj=
5607 ;;
5608 none) break ;;
5609 esac
5610 if depmode=$depmode \
5611 source=sub/conftest.c object=$am__obj \
5612 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5613 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5614 >/dev/null 2>conftest.err &&
5615 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5616 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5617 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5618 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5619 # icc doesn't choke on unknown options, it will just issue warnings
5620 # or remarks (even with -Werror). So we grep stderr for any message
5621 # that says an option was ignored or not supported.
5622 # When given -MP, icc 7.0 and 7.1 complain thusly:
5623 # icc: Command line warning: ignoring option '-M'; no argument required
5624 # The diagnosis changed in icc 8.0:
5625 # icc: Command line remark: option '-MP' not supported
5626 if (grep 'ignoring option' conftest.err ||
5627 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5628 am_cv_CC_dependencies_compiler_type=$depmode
5629 break
5630 fi
5631 fi
5632 done
5633
5634 cd ..
5635 rm -rf conftest.dir
5636else
5637 am_cv_CC_dependencies_compiler_type=none
5638fi
5639
5640fi
5641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5642$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5643CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5644
5645 if
5646 test "x$enable_dependency_tracking" != xno \
5647 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5648 am__fastdepCC_TRUE=
5649 am__fastdepCC_FALSE='#'
5650else
5651 am__fastdepCC_TRUE='#'
5652 am__fastdepCC_FALSE=
5653fi
5654
5655
cristy3ed852e2009-09-05 21:47:34 +00005656
cristya0b81c32010-01-22 02:54:33 +00005657ac_ext=c
5658ac_cpp='$CPP $CPPFLAGS'
5659ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5660ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5661ac_compiler_gnu=$ac_cv_c_compiler_gnu
5662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5663$as_echo_n "checking how to run the C preprocessor... " >&6; }
5664# On Suns, sometimes $CPP names a directory.
5665if test -n "$CPP" && test -d "$CPP"; then
5666 CPP=
5667fi
5668if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00005669 if ${ac_cv_prog_CPP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005670 $as_echo_n "(cached) " >&6
5671else
5672 # Double quotes because CPP needs to be expanded
5673 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5674 do
5675 ac_preproc_ok=false
5676for ac_c_preproc_warn_flag in '' yes
5677do
5678 # Use a header file that comes with gcc, so configuring glibc
5679 # with a fresh cross-compiler works.
5680 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5681 # <limits.h> exists even on freestanding compilers.
5682 # On the NeXT, cc -E runs the code through the compiler's parser,
5683 # not just through cpp. "Syntax error" is here to catch this case.
5684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5685/* end confdefs.h. */
5686#ifdef __STDC__
5687# include <limits.h>
5688#else
5689# include <assert.h>
5690#endif
5691 Syntax error
5692_ACEOF
5693if ac_fn_c_try_cpp "$LINENO"; then :
5694
5695else
5696 # Broken: fails on valid input.
5697continue
5698fi
cristyda16f162011-02-19 23:52:17 +00005699rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005700
5701 # OK, works on sane cases. Now check whether nonexistent headers
5702 # can be detected and how.
5703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5704/* end confdefs.h. */
5705#include <ac_nonexistent.h>
5706_ACEOF
5707if ac_fn_c_try_cpp "$LINENO"; then :
5708 # Broken: success on invalid input.
5709continue
5710else
5711 # Passes both tests.
5712ac_preproc_ok=:
5713break
5714fi
cristyda16f162011-02-19 23:52:17 +00005715rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005716
5717done
5718# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005719rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005720if $ac_preproc_ok; then :
5721 break
5722fi
5723
5724 done
5725 ac_cv_prog_CPP=$CPP
5726
5727fi
5728 CPP=$ac_cv_prog_CPP
5729else
5730 ac_cv_prog_CPP=$CPP
5731fi
5732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5733$as_echo "$CPP" >&6; }
5734ac_preproc_ok=false
5735for ac_c_preproc_warn_flag in '' yes
5736do
5737 # Use a header file that comes with gcc, so configuring glibc
5738 # with a fresh cross-compiler works.
5739 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5740 # <limits.h> exists even on freestanding compilers.
5741 # On the NeXT, cc -E runs the code through the compiler's parser,
5742 # not just through cpp. "Syntax error" is here to catch this case.
5743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5744/* end confdefs.h. */
5745#ifdef __STDC__
5746# include <limits.h>
5747#else
5748# include <assert.h>
5749#endif
5750 Syntax error
5751_ACEOF
5752if ac_fn_c_try_cpp "$LINENO"; then :
5753
5754else
5755 # Broken: fails on valid input.
5756continue
5757fi
cristyda16f162011-02-19 23:52:17 +00005758rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005759
5760 # OK, works on sane cases. Now check whether nonexistent headers
5761 # can be detected and how.
5762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5763/* end confdefs.h. */
5764#include <ac_nonexistent.h>
5765_ACEOF
5766if ac_fn_c_try_cpp "$LINENO"; then :
5767 # Broken: success on invalid input.
5768continue
5769else
5770 # Passes both tests.
5771ac_preproc_ok=:
5772break
5773fi
cristyda16f162011-02-19 23:52:17 +00005774rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005775
5776done
5777# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005778rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005779if $ac_preproc_ok; then :
5780
5781else
5782 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5783$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005784as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5785See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005786fi
5787
5788ac_ext=c
5789ac_cpp='$CPP $CPPFLAGS'
5790ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5791ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5792ac_compiler_gnu=$ac_cv_c_compiler_gnu
5793
5794
5795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5796$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005797if ${ac_cv_path_GREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005798 $as_echo_n "(cached) " >&6
5799else
5800 if test -z "$GREP"; then
5801 ac_path_GREP_found=false
5802 # Loop through the user's path and test for each of PROGNAME-LIST
5803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5804for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5805do
5806 IFS=$as_save_IFS
5807 test -z "$as_dir" && as_dir=.
5808 for ac_prog in grep ggrep; do
5809 for ac_exec_ext in '' $ac_executable_extensions; do
5810 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00005811 as_fn_executable_p "$ac_path_GREP" || continue
cristya0b81c32010-01-22 02:54:33 +00005812# Check for GNU ac_path_GREP and select it if it is found.
5813 # Check for GNU $ac_path_GREP
5814case `"$ac_path_GREP" --version 2>&1` in
5815*GNU*)
5816 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5817*)
5818 ac_count=0
5819 $as_echo_n 0123456789 >"conftest.in"
5820 while :
5821 do
5822 cat "conftest.in" "conftest.in" >"conftest.tmp"
5823 mv "conftest.tmp" "conftest.in"
5824 cp "conftest.in" "conftest.nl"
5825 $as_echo 'GREP' >> "conftest.nl"
5826 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5827 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5828 as_fn_arith $ac_count + 1 && ac_count=$as_val
5829 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5830 # Best one so far, save it but keep looking for a better one
5831 ac_cv_path_GREP="$ac_path_GREP"
5832 ac_path_GREP_max=$ac_count
5833 fi
5834 # 10*(2^10) chars as input seems more than enough
5835 test $ac_count -gt 10 && break
5836 done
5837 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5838esac
5839
5840 $ac_path_GREP_found && break 3
5841 done
5842 done
5843 done
5844IFS=$as_save_IFS
5845 if test -z "$ac_cv_path_GREP"; then
cristy98dddb52010-11-04 00:30:15 +00005846 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005847 fi
5848else
5849 ac_cv_path_GREP=$GREP
5850fi
5851
5852fi
5853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5854$as_echo "$ac_cv_path_GREP" >&6; }
5855 GREP="$ac_cv_path_GREP"
5856
5857
5858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5859$as_echo_n "checking for egrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005860if ${ac_cv_path_EGREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005861 $as_echo_n "(cached) " >&6
5862else
5863 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5864 then ac_cv_path_EGREP="$GREP -E"
5865 else
5866 if test -z "$EGREP"; then
5867 ac_path_EGREP_found=false
5868 # Loop through the user's path and test for each of PROGNAME-LIST
5869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5870for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5871do
5872 IFS=$as_save_IFS
5873 test -z "$as_dir" && as_dir=.
5874 for ac_prog in egrep; do
5875 for ac_exec_ext in '' $ac_executable_extensions; do
5876 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00005877 as_fn_executable_p "$ac_path_EGREP" || continue
cristya0b81c32010-01-22 02:54:33 +00005878# Check for GNU ac_path_EGREP and select it if it is found.
5879 # Check for GNU $ac_path_EGREP
5880case `"$ac_path_EGREP" --version 2>&1` in
5881*GNU*)
5882 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5883*)
5884 ac_count=0
5885 $as_echo_n 0123456789 >"conftest.in"
5886 while :
5887 do
5888 cat "conftest.in" "conftest.in" >"conftest.tmp"
5889 mv "conftest.tmp" "conftest.in"
5890 cp "conftest.in" "conftest.nl"
5891 $as_echo 'EGREP' >> "conftest.nl"
5892 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5893 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5894 as_fn_arith $ac_count + 1 && ac_count=$as_val
5895 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5896 # Best one so far, save it but keep looking for a better one
5897 ac_cv_path_EGREP="$ac_path_EGREP"
5898 ac_path_EGREP_max=$ac_count
5899 fi
5900 # 10*(2^10) chars as input seems more than enough
5901 test $ac_count -gt 10 && break
5902 done
5903 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5904esac
5905
5906 $ac_path_EGREP_found && break 3
5907 done
5908 done
5909 done
5910IFS=$as_save_IFS
5911 if test -z "$ac_cv_path_EGREP"; then
cristy98dddb52010-11-04 00:30:15 +00005912 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005913 fi
5914else
5915 ac_cv_path_EGREP=$EGREP
5916fi
5917
5918 fi
5919fi
5920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5921$as_echo "$ac_cv_path_EGREP" >&6; }
5922 EGREP="$ac_cv_path_EGREP"
5923
5924
5925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5926$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005927if ${ac_cv_header_stdc+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005928 $as_echo_n "(cached) " >&6
5929else
5930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5931/* end confdefs.h. */
5932#include <stdlib.h>
5933#include <stdarg.h>
5934#include <string.h>
5935#include <float.h>
5936
5937int
5938main ()
5939{
5940
5941 ;
5942 return 0;
5943}
5944_ACEOF
5945if ac_fn_c_try_compile "$LINENO"; then :
5946 ac_cv_header_stdc=yes
5947else
5948 ac_cv_header_stdc=no
5949fi
5950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5951
5952if test $ac_cv_header_stdc = yes; then
5953 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5955/* end confdefs.h. */
5956#include <string.h>
5957
5958_ACEOF
5959if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5960 $EGREP "memchr" >/dev/null 2>&1; then :
5961
5962else
5963 ac_cv_header_stdc=no
5964fi
5965rm -f conftest*
5966
5967fi
5968
5969if test $ac_cv_header_stdc = yes; then
5970 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5972/* end confdefs.h. */
5973#include <stdlib.h>
5974
5975_ACEOF
5976if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5977 $EGREP "free" >/dev/null 2>&1; then :
5978
5979else
5980 ac_cv_header_stdc=no
5981fi
5982rm -f conftest*
5983
5984fi
5985
5986if test $ac_cv_header_stdc = yes; then
5987 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5988 if test "$cross_compiling" = yes; then :
5989 :
5990else
5991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5992/* end confdefs.h. */
5993#include <ctype.h>
5994#include <stdlib.h>
5995#if ((' ' & 0x0FF) == 0x020)
5996# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5997# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5998#else
5999# define ISLOWER(c) \
6000 (('a' <= (c) && (c) <= 'i') \
6001 || ('j' <= (c) && (c) <= 'r') \
6002 || ('s' <= (c) && (c) <= 'z'))
6003# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6004#endif
6005
6006#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6007int
6008main ()
6009{
6010 int i;
6011 for (i = 0; i < 256; i++)
6012 if (XOR (islower (i), ISLOWER (i))
6013 || toupper (i) != TOUPPER (i))
6014 return 2;
6015 return 0;
6016}
6017_ACEOF
6018if ac_fn_c_try_run "$LINENO"; then :
6019
6020else
6021 ac_cv_header_stdc=no
6022fi
6023rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6024 conftest.$ac_objext conftest.beam conftest.$ac_ext
6025fi
6026
6027fi
6028fi
6029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6030$as_echo "$ac_cv_header_stdc" >&6; }
6031if test $ac_cv_header_stdc = yes; then
6032
6033$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6034
6035fi
6036
6037# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6038for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6039 inttypes.h stdint.h unistd.h
6040do :
6041 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6042ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6043"
cristy98dddb52010-11-04 00:30:15 +00006044if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristya0b81c32010-01-22 02:54:33 +00006045 cat >>confdefs.h <<_ACEOF
6046#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6047_ACEOF
6048
6049fi
6050
6051done
6052
6053
6054
6055 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 +00006056if test "x$ac_cv_header_minix_config_h" = xyes; then :
cristya0b81c32010-01-22 02:54:33 +00006057 MINIX=yes
6058else
6059 MINIX=
6060fi
6061
6062
6063 if test "$MINIX" = yes; then
6064
6065$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6066
6067
6068$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6069
6070
6071$as_echo "#define _MINIX 1" >>confdefs.h
6072
6073 fi
6074
6075
6076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6077$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006078if ${ac_cv_safe_to_define___extensions__+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006079 $as_echo_n "(cached) " >&6
6080else
6081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6082/* end confdefs.h. */
6083
cristy14fefe52012-05-21 00:59:18 +00006084# define __EXTENSIONS__ 1
6085 $ac_includes_default
cristya0b81c32010-01-22 02:54:33 +00006086int
6087main ()
6088{
6089
6090 ;
6091 return 0;
6092}
6093_ACEOF
6094if ac_fn_c_try_compile "$LINENO"; then :
6095 ac_cv_safe_to_define___extensions__=yes
6096else
6097 ac_cv_safe_to_define___extensions__=no
6098fi
6099rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6100fi
6101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6102$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6103 test $ac_cv_safe_to_define___extensions__ = yes &&
6104 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6105
6106 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6107
6108 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6109
6110 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6111
6112 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6113
6114
6115
cristy9af1cbf2014-12-28 22:03:09 +00006116# ==============================================================================
6117# Find required base packages
6118# ==============================================================================
cristy9e007fe2015-01-03 16:05:07 +00006119if test -n "$ac_tool_prefix"; then
6120 for ac_prog in ar lib "link -lib"
6121 do
6122 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6123set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6125$as_echo_n "checking for $ac_word... " >&6; }
6126if ${ac_cv_prog_AR+:} false; then :
6127 $as_echo_n "(cached) " >&6
6128else
6129 if test -n "$AR"; then
6130 ac_cv_prog_AR="$AR" # Let the user override the test.
6131else
6132as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6133for as_dir in $PATH
6134do
6135 IFS=$as_save_IFS
6136 test -z "$as_dir" && as_dir=.
6137 for ac_exec_ext in '' $ac_executable_extensions; do
6138 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6139 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6141 break 2
6142 fi
6143done
6144 done
6145IFS=$as_save_IFS
6146
6147fi
6148fi
6149AR=$ac_cv_prog_AR
6150if test -n "$AR"; then
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6152$as_echo "$AR" >&6; }
6153else
6154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6155$as_echo "no" >&6; }
6156fi
6157
6158
6159 test -n "$AR" && break
6160 done
6161fi
6162if test -z "$AR"; then
6163 ac_ct_AR=$AR
6164 for ac_prog in ar lib "link -lib"
6165do
6166 # Extract the first word of "$ac_prog", so it can be a program name with args.
6167set dummy $ac_prog; ac_word=$2
6168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6169$as_echo_n "checking for $ac_word... " >&6; }
6170if ${ac_cv_prog_ac_ct_AR+:} false; then :
6171 $as_echo_n "(cached) " >&6
6172else
6173 if test -n "$ac_ct_AR"; then
6174 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6175else
6176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6177for as_dir in $PATH
6178do
6179 IFS=$as_save_IFS
6180 test -z "$as_dir" && as_dir=.
6181 for ac_exec_ext in '' $ac_executable_extensions; do
6182 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6183 ac_cv_prog_ac_ct_AR="$ac_prog"
6184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6185 break 2
6186 fi
6187done
6188 done
6189IFS=$as_save_IFS
6190
6191fi
6192fi
6193ac_ct_AR=$ac_cv_prog_ac_ct_AR
6194if test -n "$ac_ct_AR"; then
6195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6196$as_echo "$ac_ct_AR" >&6; }
6197else
6198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6199$as_echo "no" >&6; }
6200fi
6201
6202
6203 test -n "$ac_ct_AR" && break
6204done
6205
6206 if test "x$ac_ct_AR" = x; then
6207 AR="false"
6208 else
6209 case $cross_compiling:$ac_tool_warned in
6210yes:)
6211{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6212$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6213ac_tool_warned=yes ;;
6214esac
6215 AR=$ac_ct_AR
6216 fi
6217fi
6218
6219: ${AR=ar}
6220
6221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
6222$as_echo_n "checking the archiver ($AR) interface... " >&6; }
6223if ${am_cv_ar_interface+:} false; then :
6224 $as_echo_n "(cached) " >&6
6225else
6226 ac_ext=c
6227ac_cpp='$CPP $CPPFLAGS'
6228ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6229ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6230ac_compiler_gnu=$ac_cv_c_compiler_gnu
6231
6232 am_cv_ar_interface=ar
6233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6234/* end confdefs.h. */
6235int some_variable = 0;
6236_ACEOF
6237if ac_fn_c_try_compile "$LINENO"; then :
6238 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
6239 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
6240 (eval $am_ar_try) 2>&5
6241 ac_status=$?
6242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6243 test $ac_status = 0; }
6244 if test "$ac_status" -eq 0; then
6245 am_cv_ar_interface=ar
6246 else
6247 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
6248 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
6249 (eval $am_ar_try) 2>&5
6250 ac_status=$?
6251 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6252 test $ac_status = 0; }
6253 if test "$ac_status" -eq 0; then
6254 am_cv_ar_interface=lib
6255 else
6256 am_cv_ar_interface=unknown
6257 fi
6258 fi
6259 rm -f conftest.lib libconftest.a
6260
6261fi
6262rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6263 ac_ext=c
6264ac_cpp='$CPP $CPPFLAGS'
6265ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6266ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6267ac_compiler_gnu=$ac_cv_c_compiler_gnu
6268
6269fi
6270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
6271$as_echo "$am_cv_ar_interface" >&6; }
6272
6273case $am_cv_ar_interface in
6274ar)
6275 ;;
6276lib)
6277 # Microsoft lib, so override with the ar-lib wrapper script.
6278 # FIXME: It is wrong to rewrite AR.
6279 # But if we don't then we get into trouble of one sort or another.
6280 # A longer-term fix would be to have automake use am__AR in this case,
6281 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
6282 # similar.
6283 AR="$am_aux_dir/ar-lib $AR"
6284 ;;
6285unknown)
6286 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
6287 ;;
6288esac
cristy9af1cbf2014-12-28 22:03:09 +00006289
cristya0b81c32010-01-22 02:54:33 +00006290ac_ext=c
6291ac_cpp='$CPP $CPPFLAGS'
6292ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6293ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6294ac_compiler_gnu=$ac_cv_c_compiler_gnu
6295if test -n "$ac_tool_prefix"; then
6296 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
6297set dummy ${ac_tool_prefix}gcc; ac_word=$2
6298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6299$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006300if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006301 $as_echo_n "(cached) " >&6
6302else
6303 if test -n "$CC"; then
6304 ac_cv_prog_CC="$CC" # Let the user override the test.
6305else
6306as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6307for as_dir in $PATH
6308do
6309 IFS=$as_save_IFS
6310 test -z "$as_dir" && as_dir=.
6311 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006312 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006313 ac_cv_prog_CC="${ac_tool_prefix}gcc"
6314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6315 break 2
6316 fi
6317done
6318 done
6319IFS=$as_save_IFS
6320
6321fi
6322fi
6323CC=$ac_cv_prog_CC
6324if test -n "$CC"; then
6325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6326$as_echo "$CC" >&6; }
6327else
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6329$as_echo "no" >&6; }
6330fi
6331
6332
6333fi
6334if test -z "$ac_cv_prog_CC"; then
6335 ac_ct_CC=$CC
6336 # Extract the first word of "gcc", so it can be a program name with args.
6337set dummy gcc; ac_word=$2
6338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6339$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006340if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006341 $as_echo_n "(cached) " >&6
6342else
6343 if test -n "$ac_ct_CC"; then
6344 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6345else
6346as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6347for as_dir in $PATH
6348do
6349 IFS=$as_save_IFS
6350 test -z "$as_dir" && as_dir=.
6351 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006353 ac_cv_prog_ac_ct_CC="gcc"
6354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6355 break 2
6356 fi
6357done
6358 done
6359IFS=$as_save_IFS
6360
6361fi
6362fi
6363ac_ct_CC=$ac_cv_prog_ac_ct_CC
6364if test -n "$ac_ct_CC"; then
6365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6366$as_echo "$ac_ct_CC" >&6; }
6367else
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6369$as_echo "no" >&6; }
6370fi
6371
6372 if test "x$ac_ct_CC" = x; then
6373 CC=""
6374 else
6375 case $cross_compiling:$ac_tool_warned in
6376yes:)
6377{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6378$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6379ac_tool_warned=yes ;;
6380esac
6381 CC=$ac_ct_CC
6382 fi
6383else
6384 CC="$ac_cv_prog_CC"
6385fi
6386
6387if test -z "$CC"; then
6388 if test -n "$ac_tool_prefix"; then
6389 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6390set dummy ${ac_tool_prefix}cc; ac_word=$2
6391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6392$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006393if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006394 $as_echo_n "(cached) " >&6
6395else
6396 if test -n "$CC"; then
6397 ac_cv_prog_CC="$CC" # Let the user override the test.
6398else
6399as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6400for as_dir in $PATH
6401do
6402 IFS=$as_save_IFS
6403 test -z "$as_dir" && as_dir=.
6404 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006405 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006406 ac_cv_prog_CC="${ac_tool_prefix}cc"
6407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6408 break 2
6409 fi
6410done
6411 done
6412IFS=$as_save_IFS
6413
6414fi
6415fi
6416CC=$ac_cv_prog_CC
6417if test -n "$CC"; then
6418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6419$as_echo "$CC" >&6; }
6420else
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6422$as_echo "no" >&6; }
6423fi
6424
6425
6426 fi
6427fi
6428if test -z "$CC"; then
6429 # Extract the first word of "cc", so it can be a program name with args.
6430set dummy cc; ac_word=$2
6431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6432$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006433if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006434 $as_echo_n "(cached) " >&6
6435else
6436 if test -n "$CC"; then
6437 ac_cv_prog_CC="$CC" # Let the user override the test.
6438else
6439 ac_prog_rejected=no
6440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6441for as_dir in $PATH
6442do
6443 IFS=$as_save_IFS
6444 test -z "$as_dir" && as_dir=.
6445 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006446 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006447 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6448 ac_prog_rejected=yes
6449 continue
6450 fi
6451 ac_cv_prog_CC="cc"
6452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6453 break 2
6454 fi
6455done
6456 done
6457IFS=$as_save_IFS
6458
6459if test $ac_prog_rejected = yes; then
6460 # We found a bogon in the path, so make sure we never use it.
6461 set dummy $ac_cv_prog_CC
6462 shift
6463 if test $# != 0; then
6464 # We chose a different compiler from the bogus one.
6465 # However, it has the same basename, so the bogon will be chosen
6466 # first if we set CC to just the basename; use the full file name.
6467 shift
6468 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6469 fi
6470fi
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
6483fi
6484if test -z "$CC"; then
6485 if test -n "$ac_tool_prefix"; then
6486 for ac_prog in cl.exe
6487 do
6488 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6489set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6491$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006492if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006493 $as_echo_n "(cached) " >&6
6494else
6495 if test -n "$CC"; then
6496 ac_cv_prog_CC="$CC" # Let the user override the test.
6497else
6498as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6499for as_dir in $PATH
6500do
6501 IFS=$as_save_IFS
6502 test -z "$as_dir" && as_dir=.
6503 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006504 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006505 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6507 break 2
6508 fi
6509done
6510 done
6511IFS=$as_save_IFS
6512
6513fi
6514fi
6515CC=$ac_cv_prog_CC
6516if test -n "$CC"; then
6517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6518$as_echo "$CC" >&6; }
6519else
6520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6521$as_echo "no" >&6; }
6522fi
6523
6524
6525 test -n "$CC" && break
6526 done
6527fi
6528if test -z "$CC"; then
6529 ac_ct_CC=$CC
6530 for ac_prog in cl.exe
6531do
6532 # Extract the first word of "$ac_prog", so it can be a program name with args.
6533set dummy $ac_prog; ac_word=$2
6534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6535$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006536if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006537 $as_echo_n "(cached) " >&6
6538else
6539 if test -n "$ac_ct_CC"; then
6540 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6541else
6542as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6543for as_dir in $PATH
6544do
6545 IFS=$as_save_IFS
6546 test -z "$as_dir" && as_dir=.
6547 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006548 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006549 ac_cv_prog_ac_ct_CC="$ac_prog"
6550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6551 break 2
6552 fi
6553done
6554 done
6555IFS=$as_save_IFS
6556
6557fi
6558fi
6559ac_ct_CC=$ac_cv_prog_ac_ct_CC
6560if test -n "$ac_ct_CC"; then
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6562$as_echo "$ac_ct_CC" >&6; }
6563else
6564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6565$as_echo "no" >&6; }
6566fi
6567
6568
6569 test -n "$ac_ct_CC" && break
6570done
6571
6572 if test "x$ac_ct_CC" = x; then
6573 CC=""
6574 else
6575 case $cross_compiling:$ac_tool_warned in
6576yes:)
6577{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6578$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6579ac_tool_warned=yes ;;
6580esac
6581 CC=$ac_ct_CC
6582 fi
6583fi
6584
6585fi
6586
6587
6588test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6589$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00006590as_fn_error $? "no acceptable C compiler found in \$PATH
6591See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00006592
6593# Provide some information about the compiler.
6594$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6595set X $ac_compile
6596ac_compiler=$2
6597for ac_option in --version -v -V -qversion; do
6598 { { ac_try="$ac_compiler $ac_option >&5"
6599case "(($ac_try" in
6600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6601 *) ac_try_echo=$ac_try;;
6602esac
6603eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6604$as_echo "$ac_try_echo"; } >&5
6605 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6606 ac_status=$?
6607 if test -s conftest.err; then
6608 sed '10a\
6609... rest of stderr output deleted ...
6610 10q' conftest.err >conftest.er1
6611 cat conftest.er1 >&5
6612 fi
6613 rm -f conftest.er1 conftest.err
6614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6615 test $ac_status = 0; }
6616done
6617
6618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6619$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006620if ${ac_cv_c_compiler_gnu+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006621 $as_echo_n "(cached) " >&6
6622else
6623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6624/* end confdefs.h. */
6625
6626int
6627main ()
6628{
6629#ifndef __GNUC__
6630 choke me
6631#endif
6632
6633 ;
6634 return 0;
6635}
6636_ACEOF
6637if ac_fn_c_try_compile "$LINENO"; then :
6638 ac_compiler_gnu=yes
6639else
6640 ac_compiler_gnu=no
6641fi
6642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6643ac_cv_c_compiler_gnu=$ac_compiler_gnu
6644
6645fi
6646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6647$as_echo "$ac_cv_c_compiler_gnu" >&6; }
6648if test $ac_compiler_gnu = yes; then
6649 GCC=yes
6650else
6651 GCC=
6652fi
6653ac_test_CFLAGS=${CFLAGS+set}
6654ac_save_CFLAGS=$CFLAGS
6655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6656$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006657if ${ac_cv_prog_cc_g+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006658 $as_echo_n "(cached) " >&6
6659else
6660 ac_save_c_werror_flag=$ac_c_werror_flag
6661 ac_c_werror_flag=yes
6662 ac_cv_prog_cc_g=no
6663 CFLAGS="-g"
6664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6665/* end confdefs.h. */
6666
6667int
6668main ()
6669{
6670
6671 ;
6672 return 0;
6673}
6674_ACEOF
6675if ac_fn_c_try_compile "$LINENO"; then :
6676 ac_cv_prog_cc_g=yes
6677else
6678 CFLAGS=""
6679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6680/* end confdefs.h. */
6681
6682int
6683main ()
6684{
6685
6686 ;
6687 return 0;
6688}
6689_ACEOF
6690if ac_fn_c_try_compile "$LINENO"; then :
6691
6692else
6693 ac_c_werror_flag=$ac_save_c_werror_flag
6694 CFLAGS="-g"
6695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6696/* end confdefs.h. */
6697
6698int
6699main ()
6700{
6701
6702 ;
6703 return 0;
6704}
6705_ACEOF
6706if ac_fn_c_try_compile "$LINENO"; then :
6707 ac_cv_prog_cc_g=yes
6708fi
6709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6710fi
6711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6712fi
6713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6714 ac_c_werror_flag=$ac_save_c_werror_flag
6715fi
6716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6717$as_echo "$ac_cv_prog_cc_g" >&6; }
6718if test "$ac_test_CFLAGS" = set; then
6719 CFLAGS=$ac_save_CFLAGS
6720elif test $ac_cv_prog_cc_g = yes; then
6721 if test "$GCC" = yes; then
6722 CFLAGS="-g -O2"
6723 else
6724 CFLAGS="-g"
6725 fi
6726else
6727 if test "$GCC" = yes; then
6728 CFLAGS="-O2"
6729 else
6730 CFLAGS=
6731 fi
6732fi
6733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6734$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006735if ${ac_cv_prog_cc_c89+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006736 $as_echo_n "(cached) " >&6
6737else
6738 ac_cv_prog_cc_c89=no
6739ac_save_CC=$CC
6740cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6741/* end confdefs.h. */
6742#include <stdarg.h>
6743#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00006744struct stat;
cristya0b81c32010-01-22 02:54:33 +00006745/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6746struct buf { int x; };
6747FILE * (*rcsopen) (struct buf *, struct stat *, int);
6748static char *e (p, i)
6749 char **p;
6750 int i;
6751{
6752 return p[i];
6753}
6754static char *f (char * (*g) (char **, int), char **p, ...)
6755{
6756 char *s;
6757 va_list v;
6758 va_start (v,p);
6759 s = g (p, va_arg (v,int));
6760 va_end (v);
6761 return s;
6762}
6763
6764/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6765 function prototypes and stuff, but not '\xHH' hex character constants.
6766 These don't provoke an error unfortunately, instead are silently treated
6767 as 'x'. The following induces an error, until -std is added to get
6768 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6769 array size at least. It's necessary to write '\x00'==0 to get something
6770 that's true only with -std. */
6771int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6772
6773/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6774 inside strings and character constants. */
6775#define FOO(x) 'x'
6776int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6777
6778int test (int i, double x);
6779struct s1 {int (*f) (int a);};
6780struct s2 {int (*f) (double a);};
6781int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6782int argc;
6783char **argv;
6784int
6785main ()
6786{
6787return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6788 ;
6789 return 0;
6790}
6791_ACEOF
6792for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6793 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6794do
6795 CC="$ac_save_CC $ac_arg"
6796 if ac_fn_c_try_compile "$LINENO"; then :
6797 ac_cv_prog_cc_c89=$ac_arg
6798fi
6799rm -f core conftest.err conftest.$ac_objext
6800 test "x$ac_cv_prog_cc_c89" != "xno" && break
6801done
6802rm -f conftest.$ac_ext
6803CC=$ac_save_CC
6804
6805fi
6806# AC_CACHE_VAL
6807case "x$ac_cv_prog_cc_c89" in
6808 x)
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6810$as_echo "none needed" >&6; } ;;
6811 xno)
6812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6813$as_echo "unsupported" >&6; } ;;
6814 *)
6815 CC="$CC $ac_cv_prog_cc_c89"
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6817$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6818esac
6819if test "x$ac_cv_prog_cc_c89" != xno; then :
6820
6821fi
6822
6823ac_ext=c
6824ac_cpp='$CPP $CPPFLAGS'
6825ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6826ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6827ac_compiler_gnu=$ac_cv_c_compiler_gnu
6828
cristya5bda012013-11-03 18:05:38 +00006829ac_ext=c
6830ac_cpp='$CPP $CPPFLAGS'
6831ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6832ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6833ac_compiler_gnu=$ac_cv_c_compiler_gnu
6834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6835$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
6836if ${am_cv_prog_cc_c_o+:} false; then :
6837 $as_echo_n "(cached) " >&6
6838else
6839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6840/* end confdefs.h. */
6841
6842int
6843main ()
6844{
6845
6846 ;
6847 return 0;
6848}
6849_ACEOF
6850 # Make sure it works both with $CC and with simple cc.
6851 # Following AC_PROG_CC_C_O, we do the test twice because some
6852 # compilers refuse to overwrite an existing .o file with -o,
6853 # though they will create one.
6854 am_cv_prog_cc_c_o=yes
6855 for am_i in 1 2; do
6856 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6857 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6858 ac_status=$?
6859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6860 (exit $ac_status); } \
6861 && test -f conftest2.$ac_objext; then
6862 : OK
6863 else
6864 am_cv_prog_cc_c_o=no
6865 break
6866 fi
6867 done
6868 rm -f core conftest*
6869 unset am_i
6870fi
6871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6872$as_echo "$am_cv_prog_cc_c_o" >&6; }
6873if test "$am_cv_prog_cc_c_o" != yes; then
6874 # Losing compiler, so override with the script.
6875 # FIXME: It is wrong to rewrite CC.
6876 # But if we don't then we get into trouble of one sort or another.
6877 # A longer-term fix would be to have automake use am__CC in this case,
6878 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6879 CC="$am_aux_dir/compile $CC"
6880fi
6881ac_ext=c
6882ac_cpp='$CPP $CPPFLAGS'
6883ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6884ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6885ac_compiler_gnu=$ac_cv_c_compiler_gnu
6886
6887
cristy73bd4a52010-10-05 11:24:23 +00006888depcc="$CC" am_compiler_list=
6889
6890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6891$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006892if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006893 $as_echo_n "(cached) " >&6
6894else
6895 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6896 # We make a subdir and do the tests there. Otherwise we can end up
6897 # making bogus files that we don't know about and never remove. For
6898 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00006899 # making a dummy file named 'D' -- because '-MD' means "put the output
6900 # in D".
cristy7247bba2012-02-05 16:37:27 +00006901 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00006902 mkdir conftest.dir
6903 # Copy depcomp to subdir because otherwise we won't find it if we're
6904 # using a relative directory.
6905 cp "$am_depcomp" conftest.dir
6906 cd conftest.dir
6907 # We will build objects and dependencies in a subdirectory because
6908 # it helps to detect inapplicable dependency modes. For instance
6909 # both Tru64's cc and ICC support -MD to output dependencies as a
6910 # side effect of compilation, but ICC will put the dependencies in
6911 # the current directory while Tru64 will put them in the object
6912 # directory.
6913 mkdir sub
6914
6915 am_cv_CC_dependencies_compiler_type=none
6916 if test "$am_compiler_list" = ""; then
6917 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6918 fi
6919 am__universal=false
6920 case " $depcc " in #(
6921 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6922 esac
6923
6924 for depmode in $am_compiler_list; do
6925 # Setup a source with many dependencies, because some compilers
6926 # like to wrap large dependency lists on column 80 (with \), and
6927 # we should not choose a depcomp mode which is confused by this.
6928 #
6929 # We need to recreate these files for each test, as the compiler may
6930 # overwrite some of them when testing with obscure command lines.
6931 # This happens at least with the AIX C compiler.
6932 : > sub/conftest.c
6933 for i in 1 2 3 4 5 6; do
6934 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00006935 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6936 # Solaris 10 /bin/sh.
6937 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00006938 done
6939 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6940
cristyc0890a62012-07-19 00:18:20 +00006941 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00006942 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00006943 # handle '-M -o', and we need to detect this. Also, some Intel
6944 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00006945 am__obj=sub/conftest.${OBJEXT-o}
6946 am__minus_obj="-o $am__obj"
6947 case $depmode in
6948 gcc)
6949 # This depmode causes a compiler race in universal mode.
6950 test "$am__universal" = false || continue
6951 ;;
6952 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00006953 # After this tag, mechanisms are not by side-effect, so they'll
6954 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00006955 if test "x$enable_dependency_tracking" = xyes; then
6956 continue
6957 else
6958 break
6959 fi
6960 ;;
cristy7247bba2012-02-05 16:37:27 +00006961 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00006962 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00006963 # not run yet. These depmodes are late enough in the game, and
6964 # so weak that their functioning should not be impacted.
6965 am__obj=conftest.${OBJEXT-o}
6966 am__minus_obj=
6967 ;;
6968 none) break ;;
6969 esac
6970 if depmode=$depmode \
6971 source=sub/conftest.c object=$am__obj \
6972 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6973 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6974 >/dev/null 2>conftest.err &&
6975 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6976 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6977 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6978 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6979 # icc doesn't choke on unknown options, it will just issue warnings
6980 # or remarks (even with -Werror). So we grep stderr for any message
6981 # that says an option was ignored or not supported.
6982 # When given -MP, icc 7.0 and 7.1 complain thusly:
6983 # icc: Command line warning: ignoring option '-M'; no argument required
6984 # The diagnosis changed in icc 8.0:
6985 # icc: Command line remark: option '-MP' not supported
6986 if (grep 'ignoring option' conftest.err ||
6987 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6988 am_cv_CC_dependencies_compiler_type=$depmode
6989 break
6990 fi
6991 fi
6992 done
6993
6994 cd ..
6995 rm -rf conftest.dir
6996else
6997 am_cv_CC_dependencies_compiler_type=none
6998fi
6999
7000fi
7001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
7002$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
7003CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
7004
7005 if
7006 test "x$enable_dependency_tracking" != xno \
7007 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
7008 am__fastdepCC_TRUE=
7009 am__fastdepCC_FALSE='#'
7010else
7011 am__fastdepCC_TRUE='#'
7012 am__fastdepCC_FALSE=
7013fi
7014
7015
cristy95646052009-11-28 23:05:30 +00007016ac_ext=cpp
7017ac_cpp='$CXXCPP $CPPFLAGS'
7018ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7019ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7020ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7021if test -z "$CXX"; then
7022 if test -n "$CCC"; then
7023 CXX=$CCC
7024 else
7025 if test -n "$ac_tool_prefix"; then
7026 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7027 do
7028 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7029set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7031$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007032if ${ac_cv_prog_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00007033 $as_echo_n "(cached) " >&6
7034else
7035 if test -n "$CXX"; then
7036 ac_cv_prog_CXX="$CXX" # Let the user override the test.
7037else
7038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7039for as_dir in $PATH
7040do
7041 IFS=$as_save_IFS
7042 test -z "$as_dir" && as_dir=.
7043 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00007044 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy95646052009-11-28 23:05:30 +00007045 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7047 break 2
7048 fi
7049done
7050 done
7051IFS=$as_save_IFS
7052
7053fi
7054fi
7055CXX=$ac_cv_prog_CXX
7056if test -n "$CXX"; then
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
7058$as_echo "$CXX" >&6; }
7059else
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7061$as_echo "no" >&6; }
7062fi
7063
7064
7065 test -n "$CXX" && break
7066 done
7067fi
7068if test -z "$CXX"; then
7069 ac_ct_CXX=$CXX
7070 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7071do
7072 # Extract the first word of "$ac_prog", so it can be a program name with args.
7073set dummy $ac_prog; ac_word=$2
7074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7075$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007076if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00007077 $as_echo_n "(cached) " >&6
7078else
7079 if test -n "$ac_ct_CXX"; then
7080 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7081else
7082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7083for as_dir in $PATH
7084do
7085 IFS=$as_save_IFS
7086 test -z "$as_dir" && as_dir=.
7087 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00007088 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy95646052009-11-28 23:05:30 +00007089 ac_cv_prog_ac_ct_CXX="$ac_prog"
7090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7091 break 2
7092 fi
7093done
7094 done
7095IFS=$as_save_IFS
7096
7097fi
7098fi
7099ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7100if test -n "$ac_ct_CXX"; then
7101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
7102$as_echo "$ac_ct_CXX" >&6; }
7103else
7104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7105$as_echo "no" >&6; }
7106fi
7107
7108
7109 test -n "$ac_ct_CXX" && break
7110done
7111
7112 if test "x$ac_ct_CXX" = x; then
7113 CXX="g++"
7114 else
7115 case $cross_compiling:$ac_tool_warned in
7116yes:)
7117{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7118$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7119ac_tool_warned=yes ;;
7120esac
7121 CXX=$ac_ct_CXX
7122 fi
7123fi
7124
7125 fi
7126fi
7127# Provide some information about the compiler.
7128$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
7129set X $ac_compile
7130ac_compiler=$2
7131for ac_option in --version -v -V -qversion; do
7132 { { ac_try="$ac_compiler $ac_option >&5"
7133case "(($ac_try" in
7134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7135 *) ac_try_echo=$ac_try;;
7136esac
7137eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7138$as_echo "$ac_try_echo"; } >&5
7139 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7140 ac_status=$?
7141 if test -s conftest.err; then
7142 sed '10a\
7143... rest of stderr output deleted ...
7144 10q' conftest.err >conftest.er1
7145 cat conftest.er1 >&5
7146 fi
7147 rm -f conftest.er1 conftest.err
7148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7149 test $ac_status = 0; }
7150done
7151
7152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
7153$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007154if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy95646052009-11-28 23:05:30 +00007155 $as_echo_n "(cached) " >&6
7156else
7157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7158/* end confdefs.h. */
7159
7160int
7161main ()
7162{
7163#ifndef __GNUC__
7164 choke me
7165#endif
7166
7167 ;
7168 return 0;
7169}
7170_ACEOF
7171if ac_fn_cxx_try_compile "$LINENO"; then :
7172 ac_compiler_gnu=yes
7173else
7174 ac_compiler_gnu=no
7175fi
7176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7177ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7178
7179fi
7180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
7181$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
7182if test $ac_compiler_gnu = yes; then
7183 GXX=yes
7184else
7185 GXX=
7186fi
7187ac_test_CXXFLAGS=${CXXFLAGS+set}
7188ac_save_CXXFLAGS=$CXXFLAGS
7189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
7190$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007191if ${ac_cv_prog_cxx_g+:} false; then :
cristy95646052009-11-28 23:05:30 +00007192 $as_echo_n "(cached) " >&6
7193else
7194 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
7195 ac_cxx_werror_flag=yes
7196 ac_cv_prog_cxx_g=no
7197 CXXFLAGS="-g"
7198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7199/* end confdefs.h. */
7200
7201int
7202main ()
7203{
7204
7205 ;
7206 return 0;
7207}
7208_ACEOF
7209if ac_fn_cxx_try_compile "$LINENO"; then :
7210 ac_cv_prog_cxx_g=yes
7211else
7212 CXXFLAGS=""
7213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7214/* end confdefs.h. */
7215
7216int
7217main ()
7218{
7219
7220 ;
7221 return 0;
7222}
7223_ACEOF
7224if ac_fn_cxx_try_compile "$LINENO"; then :
7225
7226else
7227 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7228 CXXFLAGS="-g"
7229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7230/* end confdefs.h. */
7231
7232int
7233main ()
7234{
7235
7236 ;
7237 return 0;
7238}
7239_ACEOF
7240if ac_fn_cxx_try_compile "$LINENO"; then :
7241 ac_cv_prog_cxx_g=yes
7242fi
7243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7244fi
7245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7246fi
7247rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7248 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7249fi
7250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
7251$as_echo "$ac_cv_prog_cxx_g" >&6; }
7252if test "$ac_test_CXXFLAGS" = set; then
7253 CXXFLAGS=$ac_save_CXXFLAGS
7254elif test $ac_cv_prog_cxx_g = yes; then
7255 if test "$GXX" = yes; then
7256 CXXFLAGS="-g -O2"
7257 else
7258 CXXFLAGS="-g"
7259 fi
7260else
7261 if test "$GXX" = yes; then
7262 CXXFLAGS="-O2"
7263 else
7264 CXXFLAGS=
7265 fi
7266fi
7267ac_ext=c
7268ac_cpp='$CPP $CPPFLAGS'
7269ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7270ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7271ac_compiler_gnu=$ac_cv_c_compiler_gnu
7272
cristy73bd4a52010-10-05 11:24:23 +00007273depcc="$CXX" am_compiler_list=
7274
7275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7276$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007277if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007278 $as_echo_n "(cached) " >&6
7279else
7280 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7281 # We make a subdir and do the tests there. Otherwise we can end up
7282 # making bogus files that we don't know about and never remove. For
7283 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00007284 # making a dummy file named 'D' -- because '-MD' means "put the output
7285 # in D".
cristy7247bba2012-02-05 16:37:27 +00007286 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00007287 mkdir conftest.dir
7288 # Copy depcomp to subdir because otherwise we won't find it if we're
7289 # using a relative directory.
7290 cp "$am_depcomp" conftest.dir
7291 cd conftest.dir
7292 # We will build objects and dependencies in a subdirectory because
7293 # it helps to detect inapplicable dependency modes. For instance
7294 # both Tru64's cc and ICC support -MD to output dependencies as a
7295 # side effect of compilation, but ICC will put the dependencies in
7296 # the current directory while Tru64 will put them in the object
7297 # directory.
7298 mkdir sub
7299
7300 am_cv_CXX_dependencies_compiler_type=none
7301 if test "$am_compiler_list" = ""; then
7302 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7303 fi
7304 am__universal=false
7305 case " $depcc " in #(
7306 *\ -arch\ *\ -arch\ *) am__universal=true ;;
7307 esac
7308
7309 for depmode in $am_compiler_list; do
7310 # Setup a source with many dependencies, because some compilers
7311 # like to wrap large dependency lists on column 80 (with \), and
7312 # we should not choose a depcomp mode which is confused by this.
7313 #
7314 # We need to recreate these files for each test, as the compiler may
7315 # overwrite some of them when testing with obscure command lines.
7316 # This happens at least with the AIX C compiler.
7317 : > sub/conftest.c
7318 for i in 1 2 3 4 5 6; do
7319 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00007320 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
7321 # Solaris 10 /bin/sh.
7322 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00007323 done
7324 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7325
cristyc0890a62012-07-19 00:18:20 +00007326 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00007327 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00007328 # handle '-M -o', and we need to detect this. Also, some Intel
7329 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00007330 am__obj=sub/conftest.${OBJEXT-o}
7331 am__minus_obj="-o $am__obj"
7332 case $depmode in
7333 gcc)
7334 # This depmode causes a compiler race in universal mode.
7335 test "$am__universal" = false || continue
7336 ;;
7337 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00007338 # After this tag, mechanisms are not by side-effect, so they'll
7339 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00007340 if test "x$enable_dependency_tracking" = xyes; then
7341 continue
7342 else
7343 break
7344 fi
7345 ;;
cristy7247bba2012-02-05 16:37:27 +00007346 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00007347 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00007348 # not run yet. These depmodes are late enough in the game, and
7349 # so weak that their functioning should not be impacted.
7350 am__obj=conftest.${OBJEXT-o}
7351 am__minus_obj=
7352 ;;
7353 none) break ;;
7354 esac
7355 if depmode=$depmode \
7356 source=sub/conftest.c object=$am__obj \
7357 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7358 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7359 >/dev/null 2>conftest.err &&
7360 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7361 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7362 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7363 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7364 # icc doesn't choke on unknown options, it will just issue warnings
7365 # or remarks (even with -Werror). So we grep stderr for any message
7366 # that says an option was ignored or not supported.
7367 # When given -MP, icc 7.0 and 7.1 complain thusly:
7368 # icc: Command line warning: ignoring option '-M'; no argument required
7369 # The diagnosis changed in icc 8.0:
7370 # icc: Command line remark: option '-MP' not supported
7371 if (grep 'ignoring option' conftest.err ||
7372 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7373 am_cv_CXX_dependencies_compiler_type=$depmode
7374 break
7375 fi
7376 fi
7377 done
7378
7379 cd ..
7380 rm -rf conftest.dir
7381else
7382 am_cv_CXX_dependencies_compiler_type=none
7383fi
7384
7385fi
7386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
7387$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
7388CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7389
7390 if
7391 test "x$enable_dependency_tracking" != xno \
7392 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7393 am__fastdepCXX_TRUE=
7394 am__fastdepCXX_FALSE='#'
7395else
7396 am__fastdepCXX_TRUE='#'
7397 am__fastdepCXX_FALSE=
7398fi
7399
7400
cristy8b350f62009-11-15 23:12:43 +00007401 case $ac_cv_prog_cc_stdc in #(
7402 no) :
7403 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
7404 *) :
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cristy3ed852e2009-09-05 21:47:34 +00007406$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007407if ${ac_cv_prog_cc_c99+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007408 $as_echo_n "(cached) " >&6
7409else
7410 ac_cv_prog_cc_c99=no
7411ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00007412cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007413/* end confdefs.h. */
7414#include <stdarg.h>
7415#include <stdbool.h>
7416#include <stdlib.h>
7417#include <wchar.h>
7418#include <stdio.h>
7419
7420// Check varargs macros. These examples are taken from C99 6.10.3.5.
7421#define debug(...) fprintf (stderr, __VA_ARGS__)
7422#define showlist(...) puts (#__VA_ARGS__)
7423#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7424static void
7425test_varargs_macros (void)
7426{
7427 int x = 1234;
7428 int y = 5678;
7429 debug ("Flag");
7430 debug ("X = %d\n", x);
7431 showlist (The first, second, and third items.);
7432 report (x>y, "x is %d but y is %d", x, y);
7433}
7434
7435// Check long long types.
7436#define BIG64 18446744073709551615ull
7437#define BIG32 4294967295ul
7438#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7439#if !BIG_OK
7440 your preprocessor is broken;
7441#endif
7442#if BIG_OK
7443#else
7444 your preprocessor is broken;
7445#endif
7446static long long int bignum = -9223372036854775807LL;
7447static unsigned long long int ubignum = BIG64;
7448
7449struct incomplete_array
7450{
7451 int datasize;
7452 double data[];
7453};
7454
7455struct named_init {
7456 int number;
7457 const wchar_t *name;
7458 double average;
7459};
7460
7461typedef const char *ccp;
7462
7463static inline int
7464test_restrict (ccp restrict text)
7465{
7466 // See if C++-style comments work.
7467 // Iterate through items via the restricted pointer.
7468 // Also check for declarations in for loops.
7469 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7470 continue;
7471 return 0;
7472}
7473
7474// Check varargs and va_copy.
7475static void
7476test_varargs (const char *format, ...)
7477{
7478 va_list args;
7479 va_start (args, format);
7480 va_list args_copy;
7481 va_copy (args_copy, args);
7482
7483 const char *str;
7484 int number;
7485 float fnumber;
7486
7487 while (*format)
7488 {
7489 switch (*format++)
7490 {
7491 case 's': // string
7492 str = va_arg (args_copy, const char *);
7493 break;
7494 case 'd': // int
7495 number = va_arg (args_copy, int);
7496 break;
7497 case 'f': // float
7498 fnumber = va_arg (args_copy, double);
7499 break;
7500 default:
7501 break;
7502 }
7503 }
7504 va_end (args_copy);
7505 va_end (args);
7506}
7507
7508int
7509main ()
7510{
7511
7512 // Check bool.
7513 _Bool success = false;
7514
7515 // Check restrict.
7516 if (test_restrict ("String literal") == 0)
7517 success = true;
7518 char *restrict newvar = "Another string";
7519
7520 // Check varargs.
7521 test_varargs ("s, d' f .", "string", 65, 34.234);
7522 test_varargs_macros ();
7523
7524 // Check flexible array members.
7525 struct incomplete_array *ia =
7526 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7527 ia->datasize = 10;
7528 for (int i = 0; i < ia->datasize; ++i)
7529 ia->data[i] = i * 1.234;
7530
7531 // Check named initializers.
7532 struct named_init ni = {
7533 .number = 34,
7534 .name = L"Test wide string",
7535 .average = 543.34343,
7536 };
7537
7538 ni.number = 58;
7539
7540 int dynamic_array[ni.number];
7541 dynamic_array[ni.number - 1] = 543;
7542
7543 // work around unused variable warnings
7544 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7545 || dynamic_array[ni.number - 1] != 543);
7546
7547 ;
7548 return 0;
7549}
7550_ACEOF
cristy14fefe52012-05-21 00:59:18 +00007551for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
cristy3ed852e2009-09-05 21:47:34 +00007552do
7553 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00007554 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007555 ac_cv_prog_cc_c99=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00007556fi
cristy3ed852e2009-09-05 21:47:34 +00007557rm -f core conftest.err conftest.$ac_objext
7558 test "x$ac_cv_prog_cc_c99" != "xno" && break
7559done
7560rm -f conftest.$ac_ext
7561CC=$ac_save_CC
7562
7563fi
7564# AC_CACHE_VAL
7565case "x$ac_cv_prog_cc_c99" in
7566 x)
cristy8b350f62009-11-15 23:12:43 +00007567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00007568$as_echo "none needed" >&6; } ;;
7569 xno)
cristy8b350f62009-11-15 23:12:43 +00007570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00007571$as_echo "unsupported" >&6; } ;;
7572 *)
7573 CC="$CC $ac_cv_prog_cc_c99"
cristy8b350f62009-11-15 23:12:43 +00007574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cristy3ed852e2009-09-05 21:47:34 +00007575$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7576esac
cristy8b350f62009-11-15 23:12:43 +00007577if test "x$ac_cv_prog_cc_c99" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00007578 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
7579else
cristy8b350f62009-11-15 23:12:43 +00007580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00007581$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007582if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007583 $as_echo_n "(cached) " >&6
7584else
7585 ac_cv_prog_cc_c89=no
7586ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00007587cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007588/* end confdefs.h. */
7589#include <stdarg.h>
7590#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00007591struct stat;
cristy3ed852e2009-09-05 21:47:34 +00007592/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7593struct buf { int x; };
7594FILE * (*rcsopen) (struct buf *, struct stat *, int);
7595static char *e (p, i)
7596 char **p;
7597 int i;
7598{
7599 return p[i];
7600}
7601static char *f (char * (*g) (char **, int), char **p, ...)
7602{
7603 char *s;
7604 va_list v;
7605 va_start (v,p);
7606 s = g (p, va_arg (v,int));
7607 va_end (v);
7608 return s;
7609}
7610
7611/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7612 function prototypes and stuff, but not '\xHH' hex character constants.
7613 These don't provoke an error unfortunately, instead are silently treated
7614 as 'x'. The following induces an error, until -std is added to get
7615 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7616 array size at least. It's necessary to write '\x00'==0 to get something
7617 that's true only with -std. */
7618int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7619
7620/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7621 inside strings and character constants. */
7622#define FOO(x) 'x'
7623int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7624
7625int test (int i, double x);
7626struct s1 {int (*f) (int a);};
7627struct s2 {int (*f) (double a);};
7628int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7629int argc;
7630char **argv;
7631int
7632main ()
7633{
7634return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7635 ;
7636 return 0;
7637}
7638_ACEOF
7639for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7640 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7641do
7642 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00007643 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007644 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00007645fi
cristy3ed852e2009-09-05 21:47:34 +00007646rm -f core conftest.err conftest.$ac_objext
7647 test "x$ac_cv_prog_cc_c89" != "xno" && break
7648done
7649rm -f conftest.$ac_ext
7650CC=$ac_save_CC
7651
7652fi
7653# AC_CACHE_VAL
7654case "x$ac_cv_prog_cc_c89" in
7655 x)
cristy8b350f62009-11-15 23:12:43 +00007656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00007657$as_echo "none needed" >&6; } ;;
7658 xno)
cristy8b350f62009-11-15 23:12:43 +00007659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00007660$as_echo "unsupported" >&6; } ;;
7661 *)
7662 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00007663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00007664$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7665esac
cristy8b350f62009-11-15 23:12:43 +00007666if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00007667 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
7668else
7669 ac_cv_prog_cc_stdc=no
7670fi
7671
cristy3ed852e2009-09-05 21:47:34 +00007672fi
cristy3ed852e2009-09-05 21:47:34 +00007673 ;;
7674esac
cristy8b350f62009-11-15 23:12:43 +00007675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
cristy3ed852e2009-09-05 21:47:34 +00007676$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007677 if ${ac_cv_prog_cc_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007678 $as_echo_n "(cached) " >&6
7679fi
7680
cristy8b350f62009-11-15 23:12:43 +00007681 case $ac_cv_prog_cc_stdc in #(
7682 no) :
7683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7684$as_echo "unsupported" >&6; } ;; #(
7685 '') :
7686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7687$as_echo "none needed" >&6; } ;; #(
7688 *) :
7689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00007690$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
7691esac
7692
cristy3ed852e2009-09-05 21:47:34 +00007693ac_ext=c
7694ac_cpp='$CPP $CPPFLAGS'
7695ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7696ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7697ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy8b350f62009-11-15 23:12:43 +00007698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cristy3ed852e2009-09-05 21:47:34 +00007699$as_echo_n "checking how to run the C preprocessor... " >&6; }
7700# On Suns, sometimes $CPP names a directory.
7701if test -n "$CPP" && test -d "$CPP"; then
7702 CPP=
7703fi
7704if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00007705 if ${ac_cv_prog_CPP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007706 $as_echo_n "(cached) " >&6
7707else
7708 # Double quotes because CPP needs to be expanded
7709 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7710 do
7711 ac_preproc_ok=false
7712for ac_c_preproc_warn_flag in '' yes
7713do
7714 # Use a header file that comes with gcc, so configuring glibc
7715 # with a fresh cross-compiler works.
7716 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7717 # <limits.h> exists even on freestanding compilers.
7718 # On the NeXT, cc -E runs the code through the compiler's parser,
7719 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007721/* end confdefs.h. */
7722#ifdef __STDC__
7723# include <limits.h>
7724#else
7725# include <assert.h>
7726#endif
7727 Syntax error
7728_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007729if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007730
cristy8b350f62009-11-15 23:12:43 +00007731else
cristy3ed852e2009-09-05 21:47:34 +00007732 # Broken: fails on valid input.
7733continue
7734fi
cristyda16f162011-02-19 23:52:17 +00007735rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007736
7737 # OK, works on sane cases. Now check whether nonexistent headers
7738 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007740/* end confdefs.h. */
7741#include <ac_nonexistent.h>
7742_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007743if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007744 # Broken: success on invalid input.
7745continue
7746else
cristy3ed852e2009-09-05 21:47:34 +00007747 # Passes both tests.
7748ac_preproc_ok=:
7749break
7750fi
cristyda16f162011-02-19 23:52:17 +00007751rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007752
7753done
7754# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007755rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007756if $ac_preproc_ok; then :
cristy3ed852e2009-09-05 21:47:34 +00007757 break
7758fi
7759
7760 done
7761 ac_cv_prog_CPP=$CPP
7762
7763fi
7764 CPP=$ac_cv_prog_CPP
7765else
7766 ac_cv_prog_CPP=$CPP
7767fi
cristy8b350f62009-11-15 23:12:43 +00007768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cristy3ed852e2009-09-05 21:47:34 +00007769$as_echo "$CPP" >&6; }
7770ac_preproc_ok=false
7771for ac_c_preproc_warn_flag in '' yes
7772do
7773 # Use a header file that comes with gcc, so configuring glibc
7774 # with a fresh cross-compiler works.
7775 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7776 # <limits.h> exists even on freestanding compilers.
7777 # On the NeXT, cc -E runs the code through the compiler's parser,
7778 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007780/* end confdefs.h. */
7781#ifdef __STDC__
7782# include <limits.h>
7783#else
7784# include <assert.h>
7785#endif
7786 Syntax error
7787_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007788if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007789
cristy8b350f62009-11-15 23:12:43 +00007790else
cristy3ed852e2009-09-05 21:47:34 +00007791 # Broken: fails on valid input.
7792continue
7793fi
cristyda16f162011-02-19 23:52:17 +00007794rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007795
7796 # OK, works on sane cases. Now check whether nonexistent headers
7797 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007799/* end confdefs.h. */
7800#include <ac_nonexistent.h>
7801_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007802if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007803 # Broken: success on invalid input.
7804continue
7805else
cristy3ed852e2009-09-05 21:47:34 +00007806 # Passes both tests.
7807ac_preproc_ok=:
7808break
7809fi
cristyda16f162011-02-19 23:52:17 +00007810rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007811
7812done
7813# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007814rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007815if $ac_preproc_ok; then :
7816
cristy3ed852e2009-09-05 21:47:34 +00007817else
cristy8b350f62009-11-15 23:12:43 +00007818 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00007819$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00007820as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7821See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00007822fi
7823
7824ac_ext=c
7825ac_cpp='$CPP $CPPFLAGS'
7826ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7827ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7828ac_compiler_gnu=$ac_cv_c_compiler_gnu
7829
cristy73bd4a52010-10-05 11:24:23 +00007830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7831$as_echo_n "checking for a sed that does not truncate output... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007832if ${ac_cv_path_SED+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007833 $as_echo_n "(cached) " >&6
7834else
7835 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7836 for ac_i in 1 2 3 4 5 6 7; do
7837 ac_script="$ac_script$as_nl$ac_script"
7838 done
7839 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7840 { ac_script=; unset ac_script;}
7841 if test -z "$SED"; then
7842 ac_path_SED_found=false
7843 # Loop through the user's path and test for each of PROGNAME-LIST
7844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7845for as_dir in $PATH
7846do
7847 IFS=$as_save_IFS
7848 test -z "$as_dir" && as_dir=.
7849 for ac_prog in sed gsed; do
7850 for ac_exec_ext in '' $ac_executable_extensions; do
7851 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00007852 as_fn_executable_p "$ac_path_SED" || continue
cristy73bd4a52010-10-05 11:24:23 +00007853# Check for GNU ac_path_SED and select it if it is found.
7854 # Check for GNU $ac_path_SED
7855case `"$ac_path_SED" --version 2>&1` in
7856*GNU*)
7857 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7858*)
7859 ac_count=0
7860 $as_echo_n 0123456789 >"conftest.in"
7861 while :
7862 do
7863 cat "conftest.in" "conftest.in" >"conftest.tmp"
7864 mv "conftest.tmp" "conftest.in"
7865 cp "conftest.in" "conftest.nl"
7866 $as_echo '' >> "conftest.nl"
7867 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7868 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7869 as_fn_arith $ac_count + 1 && ac_count=$as_val
7870 if test $ac_count -gt ${ac_path_SED_max-0}; then
7871 # Best one so far, save it but keep looking for a better one
7872 ac_cv_path_SED="$ac_path_SED"
7873 ac_path_SED_max=$ac_count
7874 fi
7875 # 10*(2^10) chars as input seems more than enough
7876 test $ac_count -gt 10 && break
7877 done
7878 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7879esac
7880
7881 $ac_path_SED_found && break 3
7882 done
7883 done
7884 done
7885IFS=$as_save_IFS
7886 if test -z "$ac_cv_path_SED"; then
cristy98dddb52010-11-04 00:30:15 +00007887 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007888 fi
7889else
7890 ac_cv_path_SED=$SED
7891fi
7892
7893fi
7894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7895$as_echo "$ac_cv_path_SED" >&6; }
7896 SED="$ac_cv_path_SED"
7897 rm -f conftest.sed
7898
7899test -z "$SED" && SED=sed
7900Xsed="$SED -e 1s/^X//"
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7913$as_echo_n "checking for fgrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007914if ${ac_cv_path_FGREP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007915 $as_echo_n "(cached) " >&6
7916else
7917 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7918 then ac_cv_path_FGREP="$GREP -F"
7919 else
7920 if test -z "$FGREP"; then
7921 ac_path_FGREP_found=false
7922 # Loop through the user's path and test for each of PROGNAME-LIST
7923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7924for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7925do
7926 IFS=$as_save_IFS
7927 test -z "$as_dir" && as_dir=.
7928 for ac_prog in fgrep; do
7929 for ac_exec_ext in '' $ac_executable_extensions; do
7930 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00007931 as_fn_executable_p "$ac_path_FGREP" || continue
cristy73bd4a52010-10-05 11:24:23 +00007932# Check for GNU ac_path_FGREP and select it if it is found.
7933 # Check for GNU $ac_path_FGREP
7934case `"$ac_path_FGREP" --version 2>&1` in
7935*GNU*)
7936 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7937*)
7938 ac_count=0
7939 $as_echo_n 0123456789 >"conftest.in"
7940 while :
7941 do
7942 cat "conftest.in" "conftest.in" >"conftest.tmp"
7943 mv "conftest.tmp" "conftest.in"
7944 cp "conftest.in" "conftest.nl"
7945 $as_echo 'FGREP' >> "conftest.nl"
7946 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7947 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7948 as_fn_arith $ac_count + 1 && ac_count=$as_val
7949 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7950 # Best one so far, save it but keep looking for a better one
7951 ac_cv_path_FGREP="$ac_path_FGREP"
7952 ac_path_FGREP_max=$ac_count
7953 fi
7954 # 10*(2^10) chars as input seems more than enough
7955 test $ac_count -gt 10 && break
7956 done
7957 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7958esac
7959
7960 $ac_path_FGREP_found && break 3
7961 done
7962 done
7963 done
7964IFS=$as_save_IFS
7965 if test -z "$ac_cv_path_FGREP"; then
cristy98dddb52010-11-04 00:30:15 +00007966 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007967 fi
7968else
7969 ac_cv_path_FGREP=$FGREP
7970fi
7971
7972 fi
7973fi
7974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7975$as_echo "$ac_cv_path_FGREP" >&6; }
7976 FGREP="$ac_cv_path_FGREP"
7977
7978
7979test -z "$GREP" && GREP=grep
7980
7981
7982
7983
7984
7985
7986
7987
7988
7989
7990
7991
7992
7993
7994
7995
7996
cristy0c60a692010-11-04 01:09:47 +00007997ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7998ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7999ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
8000
8001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
8002$as_echo_n "checking how to print strings... " >&6; }
8003# Test print first, because it will be a builtin if present.
cristyda16f162011-02-19 23:52:17 +00008004if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
cristy0c60a692010-11-04 01:09:47 +00008005 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
8006 ECHO='print -r --'
8007elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
8008 ECHO='printf %s\n'
8009else
8010 # Use this function as a fallback that always works.
8011 func_fallback_echo ()
8012 {
8013 eval 'cat <<_LTECHO_EOF
8014$1
8015_LTECHO_EOF'
8016 }
8017 ECHO='func_fallback_echo'
8018fi
8019
8020# func_echo_all arg...
8021# Invoke $ECHO with all args, space-separated.
8022func_echo_all ()
8023{
8024 $ECHO ""
8025}
8026
8027case "$ECHO" in
8028 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
8029$as_echo "printf" >&6; } ;;
8030 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
8031$as_echo "print -r" >&6; } ;;
8032 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
8033$as_echo "cat" >&6; } ;;
8034esac
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
cristy73bd4a52010-10-05 11:24:23 +00008049
8050
8051# Check whether --with-gnu-ld was given.
8052if test "${with_gnu_ld+set}" = set; then :
8053 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8054else
8055 with_gnu_ld=no
8056fi
8057
8058ac_prog=ld
8059if test "$GCC" = yes; then
8060 # Check if gcc -print-prog-name=ld gives a path.
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
8062$as_echo_n "checking for ld used by $CC... " >&6; }
8063 case $host in
8064 *-*-mingw*)
8065 # gcc leaves a trailing carriage return which upsets mingw
8066 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8067 *)
8068 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8069 esac
8070 case $ac_prog in
8071 # Accept absolute paths.
8072 [\\/]* | ?:[\\/]*)
8073 re_direlt='/[^/][^/]*/\.\./'
8074 # Canonicalize the pathname of ld
8075 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
8076 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
8077 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
8078 done
8079 test -z "$LD" && LD="$ac_prog"
8080 ;;
8081 "")
8082 # If it fails, then pretend we aren't using GCC.
8083 ac_prog=ld
8084 ;;
8085 *)
8086 # If it is relative, then search for the first ld in PATH.
8087 with_gnu_ld=unknown
8088 ;;
8089 esac
8090elif test "$with_gnu_ld" = yes; then
8091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8092$as_echo_n "checking for GNU ld... " >&6; }
8093else
8094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8095$as_echo_n "checking for non-GNU ld... " >&6; }
8096fi
cristyda16f162011-02-19 23:52:17 +00008097if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008098 $as_echo_n "(cached) " >&6
8099else
8100 if test -z "$LD"; then
8101 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8102 for ac_dir in $PATH; do
8103 IFS="$lt_save_ifs"
8104 test -z "$ac_dir" && ac_dir=.
8105 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8106 lt_cv_path_LD="$ac_dir/$ac_prog"
8107 # Check to see if the program is GNU ld. I'd rather use --version,
8108 # but apparently some variants of GNU ld only accept -v.
8109 # Break only if it was the GNU/non-GNU ld that we prefer.
8110 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
8111 *GNU* | *'with BFD'*)
8112 test "$with_gnu_ld" != no && break
8113 ;;
8114 *)
8115 test "$with_gnu_ld" != yes && break
8116 ;;
8117 esac
8118 fi
8119 done
8120 IFS="$lt_save_ifs"
8121else
8122 lt_cv_path_LD="$LD" # Let the user override the test with a path.
8123fi
8124fi
8125
8126LD="$lt_cv_path_LD"
8127if test -n "$LD"; then
8128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8129$as_echo "$LD" >&6; }
8130else
8131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8132$as_echo "no" >&6; }
8133fi
cristy98dddb52010-11-04 00:30:15 +00008134test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00008135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8136$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008137if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008138 $as_echo_n "(cached) " >&6
8139else
8140 # I'd rather use --version here, but apparently some GNU lds only accept -v.
8141case `$LD -v 2>&1 </dev/null` in
8142*GNU* | *'with BFD'*)
8143 lt_cv_prog_gnu_ld=yes
8144 ;;
8145*)
8146 lt_cv_prog_gnu_ld=no
8147 ;;
8148esac
8149fi
8150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
8151$as_echo "$lt_cv_prog_gnu_ld" >&6; }
8152with_gnu_ld=$lt_cv_prog_gnu_ld
8153
8154
8155
8156
8157
8158
8159
8160
8161
cristy3ed852e2009-09-05 21:47:34 +00008162
cristy837d6dc2010-02-27 01:16:57 +00008163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
8164$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008165if ${ac_cv_prog_cc_c99+:} false; then :
cristy837d6dc2010-02-27 01:16:57 +00008166 $as_echo_n "(cached) " >&6
8167else
8168 ac_cv_prog_cc_c99=no
8169ac_save_CC=$CC
8170cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8171/* end confdefs.h. */
8172#include <stdarg.h>
8173#include <stdbool.h>
8174#include <stdlib.h>
8175#include <wchar.h>
8176#include <stdio.h>
8177
8178// Check varargs macros. These examples are taken from C99 6.10.3.5.
8179#define debug(...) fprintf (stderr, __VA_ARGS__)
8180#define showlist(...) puts (#__VA_ARGS__)
8181#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
8182static void
8183test_varargs_macros (void)
8184{
8185 int x = 1234;
8186 int y = 5678;
8187 debug ("Flag");
8188 debug ("X = %d\n", x);
8189 showlist (The first, second, and third items.);
8190 report (x>y, "x is %d but y is %d", x, y);
8191}
8192
8193// Check long long types.
8194#define BIG64 18446744073709551615ull
8195#define BIG32 4294967295ul
8196#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
8197#if !BIG_OK
8198 your preprocessor is broken;
8199#endif
8200#if BIG_OK
8201#else
8202 your preprocessor is broken;
8203#endif
8204static long long int bignum = -9223372036854775807LL;
8205static unsigned long long int ubignum = BIG64;
8206
8207struct incomplete_array
8208{
8209 int datasize;
8210 double data[];
8211};
8212
8213struct named_init {
8214 int number;
8215 const wchar_t *name;
8216 double average;
8217};
8218
8219typedef const char *ccp;
8220
8221static inline int
8222test_restrict (ccp restrict text)
8223{
8224 // See if C++-style comments work.
8225 // Iterate through items via the restricted pointer.
8226 // Also check for declarations in for loops.
8227 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
8228 continue;
8229 return 0;
8230}
8231
8232// Check varargs and va_copy.
8233static void
8234test_varargs (const char *format, ...)
8235{
8236 va_list args;
8237 va_start (args, format);
8238 va_list args_copy;
8239 va_copy (args_copy, args);
8240
8241 const char *str;
8242 int number;
8243 float fnumber;
8244
8245 while (*format)
8246 {
8247 switch (*format++)
8248 {
8249 case 's': // string
8250 str = va_arg (args_copy, const char *);
8251 break;
8252 case 'd': // int
8253 number = va_arg (args_copy, int);
8254 break;
8255 case 'f': // float
8256 fnumber = va_arg (args_copy, double);
8257 break;
8258 default:
8259 break;
8260 }
8261 }
8262 va_end (args_copy);
8263 va_end (args);
8264}
8265
8266int
8267main ()
8268{
8269
8270 // Check bool.
8271 _Bool success = false;
8272
8273 // Check restrict.
8274 if (test_restrict ("String literal") == 0)
8275 success = true;
8276 char *restrict newvar = "Another string";
8277
8278 // Check varargs.
8279 test_varargs ("s, d' f .", "string", 65, 34.234);
8280 test_varargs_macros ();
8281
8282 // Check flexible array members.
8283 struct incomplete_array *ia =
8284 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
8285 ia->datasize = 10;
8286 for (int i = 0; i < ia->datasize; ++i)
8287 ia->data[i] = i * 1.234;
8288
8289 // Check named initializers.
8290 struct named_init ni = {
8291 .number = 34,
8292 .name = L"Test wide string",
8293 .average = 543.34343,
8294 };
8295
8296 ni.number = 58;
8297
8298 int dynamic_array[ni.number];
8299 dynamic_array[ni.number - 1] = 543;
8300
8301 // work around unused variable warnings
8302 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
8303 || dynamic_array[ni.number - 1] != 543);
8304
8305 ;
8306 return 0;
8307}
8308_ACEOF
cristy14fefe52012-05-21 00:59:18 +00008309for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
cristy837d6dc2010-02-27 01:16:57 +00008310do
8311 CC="$ac_save_CC $ac_arg"
8312 if ac_fn_c_try_compile "$LINENO"; then :
8313 ac_cv_prog_cc_c99=$ac_arg
8314fi
8315rm -f core conftest.err conftest.$ac_objext
8316 test "x$ac_cv_prog_cc_c99" != "xno" && break
8317done
8318rm -f conftest.$ac_ext
8319CC=$ac_save_CC
8320
8321fi
8322# AC_CACHE_VAL
8323case "x$ac_cv_prog_cc_c99" in
8324 x)
8325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
8326$as_echo "none needed" >&6; } ;;
8327 xno)
8328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
8329$as_echo "unsupported" >&6; } ;;
8330 *)
8331 CC="$CC $ac_cv_prog_cc_c99"
8332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
8333$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
8334esac
8335if test "x$ac_cv_prog_cc_c99" != xno; then :
8336
8337fi
8338
8339
cristy73bd4a52010-10-05 11:24:23 +00008340
cristy17491be2014-06-24 01:10:53 +00008341ac_ext=c
8342ac_cpp='$CPP $CPPFLAGS'
8343ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8344ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8345ac_compiler_gnu=$ac_cv_c_compiler_gnu
8346
cristy73bd4a52010-10-05 11:24:23 +00008347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
8348$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008349if ${ac_cv_cflags_warn_all+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008350 $as_echo_n "(cached) " >&6
8351else
8352 ac_cv_cflags_warn_all="no, unknown"
cristy17491be2014-06-24 01:10:53 +00008353ac_save_CFLAGS="$CFLAGS"
8354for 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 +00008355do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
8356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8357/* end confdefs.h. */
8358
8359int
8360main ()
8361{
cristy24fc1fe2010-10-23 21:13:01 +00008362
cristy73bd4a52010-10-05 11:24:23 +00008363 ;
8364 return 0;
8365}
8366_ACEOF
8367if ac_fn_c_try_compile "$LINENO"; then :
8368 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
8369fi
8370rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8371done
cristy17491be2014-06-24 01:10:53 +00008372CFLAGS="$ac_save_CFLAGS"
8373
8374fi
8375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
8376$as_echo "$ac_cv_cflags_warn_all" >&6; }
8377
8378
8379case ".$ac_cv_cflags_warn_all" in
8380 .ok|.ok,*) ;;
8381 .|.no|.no,*) ;;
cristy146497a2015-05-17 22:46:16 +00008382 *)
8383if ${CFLAGS+:} false; then :
8384
8385 case " $CFLAGS " in #(
8386 *" $ac_cv_cflags_warn_all "*) :
8387 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$ac_cv_cflags_warn_all"; } >&5
cristy17491be2014-06-24 01:10:53 +00008388 (: CFLAGS already contains $ac_cv_cflags_warn_all) 2>&5
8389 ac_status=$?
8390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristy146497a2015-05-17 22:46:16 +00008391 test $ac_status = 0; } ;; #(
8392 *) :
8393
8394 as_fn_append CFLAGS " $ac_cv_cflags_warn_all"
8395 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
8396 (: CFLAGS="$CFLAGS") 2>&5
cristy17491be2014-06-24 01:10:53 +00008397 ac_status=$?
8398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8399 test $ac_status = 0; }
cristy146497a2015-05-17 22:46:16 +00008400 ;;
8401esac
8402
cristy17491be2014-06-24 01:10:53 +00008403else
cristy146497a2015-05-17 22:46:16 +00008404
8405 CFLAGS=$ac_cv_cflags_warn_all
8406 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
8407 (: CFLAGS="$CFLAGS") 2>&5
8408 ac_status=$?
8409 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8410 test $ac_status = 0; }
8411
cristy17491be2014-06-24 01:10:53 +00008412fi
8413 ;;
8414esac
8415
8416ac_ext=c
cristy73bd4a52010-10-05 11:24:23 +00008417ac_cpp='$CPP $CPPFLAGS'
8418ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8419ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8420ac_compiler_gnu=$ac_cv_c_compiler_gnu
8421
8422
cristya0b81c32010-01-22 02:54:33 +00008423
8424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8425$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8426set x ${MAKE-make}
8427ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00008428if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00008429 $as_echo_n "(cached) " >&6
8430else
8431 cat >conftest.make <<\_ACEOF
8432SHELL = /bin/sh
8433all:
8434 @echo '@@@%%%=$(MAKE)=@@@%%%'
8435_ACEOF
cristy98dddb52010-11-04 00:30:15 +00008436# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristya0b81c32010-01-22 02:54:33 +00008437case `${MAKE-make} -f conftest.make 2>/dev/null` in
8438 *@@@%%%=?*=@@@%%%*)
8439 eval ac_cv_prog_make_${ac_make}_set=yes;;
8440 *)
8441 eval ac_cv_prog_make_${ac_make}_set=no;;
8442esac
8443rm -f conftest.make
8444fi
8445if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8447$as_echo "yes" >&6; }
8448 SET_MAKE=
8449else
8450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8451$as_echo "no" >&6; }
8452 SET_MAKE="MAKE=${MAKE-make}"
8453fi
8454
cristy8b350f62009-11-15 23:12:43 +00008455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00008456$as_echo_n "checking whether ln -s works... " >&6; }
8457LN_S=$as_ln_s
8458if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00008459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00008460$as_echo "yes" >&6; }
8461else
cristy8b350f62009-11-15 23:12:43 +00008462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00008463$as_echo "no, using $LN_S" >&6; }
8464fi
8465
cristy8d0ff762013-03-10 20:33:28 +00008466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8467$as_echo_n "checking for a sed that does not truncate output... " >&6; }
8468if ${ac_cv_path_SED+:} false; then :
8469 $as_echo_n "(cached) " >&6
8470else
8471 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
8472 for ac_i in 1 2 3 4 5 6 7; do
8473 ac_script="$ac_script$as_nl$ac_script"
8474 done
8475 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
8476 { ac_script=; unset ac_script;}
8477 if test -z "$SED"; then
8478 ac_path_SED_found=false
8479 # Loop through the user's path and test for each of PROGNAME-LIST
8480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8481for as_dir in $PATH
8482do
8483 IFS=$as_save_IFS
8484 test -z "$as_dir" && as_dir=.
8485 for ac_prog in sed gsed; do
8486 for ac_exec_ext in '' $ac_executable_extensions; do
8487 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
8488 as_fn_executable_p "$ac_path_SED" || continue
8489# Check for GNU ac_path_SED and select it if it is found.
8490 # Check for GNU $ac_path_SED
8491case `"$ac_path_SED" --version 2>&1` in
8492*GNU*)
8493 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
8494*)
8495 ac_count=0
8496 $as_echo_n 0123456789 >"conftest.in"
8497 while :
8498 do
8499 cat "conftest.in" "conftest.in" >"conftest.tmp"
8500 mv "conftest.tmp" "conftest.in"
8501 cp "conftest.in" "conftest.nl"
8502 $as_echo '' >> "conftest.nl"
8503 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
8504 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8505 as_fn_arith $ac_count + 1 && ac_count=$as_val
8506 if test $ac_count -gt ${ac_path_SED_max-0}; then
8507 # Best one so far, save it but keep looking for a better one
8508 ac_cv_path_SED="$ac_path_SED"
8509 ac_path_SED_max=$ac_count
8510 fi
8511 # 10*(2^10) chars as input seems more than enough
8512 test $ac_count -gt 10 && break
8513 done
8514 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8515esac
8516
8517 $ac_path_SED_found && break 3
8518 done
8519 done
8520 done
8521IFS=$as_save_IFS
8522 if test -z "$ac_cv_path_SED"; then
8523 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
8524 fi
8525else
8526 ac_cv_path_SED=$SED
8527fi
8528
8529fi
8530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8531$as_echo "$ac_cv_path_SED" >&6; }
8532 SED="$ac_cv_path_SED"
8533 rm -f conftest.sed
8534
cristybc556452012-08-17 19:44:03 +00008535for ac_prog in gawk mawk nawk awk
8536do
8537 # Extract the first word of "$ac_prog", so it can be a program name with args.
8538set dummy $ac_prog; ac_word=$2
8539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8540$as_echo_n "checking for $ac_word... " >&6; }
8541if ${ac_cv_prog_AWK+:} false; then :
8542 $as_echo_n "(cached) " >&6
8543else
8544 if test -n "$AWK"; then
8545 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8546else
8547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8548for as_dir in $PATH
8549do
8550 IFS=$as_save_IFS
8551 test -z "$as_dir" && as_dir=.
8552 for ac_exec_ext in '' $ac_executable_extensions; do
8553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8554 ac_cv_prog_AWK="$ac_prog"
8555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8556 break 2
8557 fi
8558done
8559 done
8560IFS=$as_save_IFS
8561
8562fi
8563fi
8564AWK=$ac_cv_prog_AWK
8565if test -n "$AWK"; then
8566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8567$as_echo "$AWK" >&6; }
8568else
8569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8570$as_echo "no" >&6; }
8571fi
8572
8573
8574 test -n "$AWK" && break
8575done
8576
cristy73bd4a52010-10-05 11:24:23 +00008577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
8578$as_echo_n "checking if malloc debugging is wanted... " >&6; }
8579
8580# Check whether --with-dmalloc was given.
8581if test "${with_dmalloc+set}" = set; then :
8582 withval=$with_dmalloc; if test "$withval" = yes; then
8583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8584$as_echo "yes" >&6; }
8585
8586$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
8587
8588 LIBS="$LIBS -ldmalloc"
8589 LDFLAGS="$LDFLAGS -g"
8590else
8591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8592$as_echo "no" >&6; }
8593fi
8594else
8595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8596$as_echo "no" >&6; }
8597fi
8598
8599
8600
8601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
8602$as_echo_n "checking for __attribute__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008603if ${ax_cv___attribute__+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008604 $as_echo_n "(cached) " >&6
8605else
8606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8607/* end confdefs.h. */
8608#include <stdlib.h>
cristy146497a2015-05-17 22:46:16 +00008609 static void foo(void) __attribute__ ((unused));
cristy73bd4a52010-10-05 11:24:23 +00008610 static void
8611 foo(void) {
8612 exit(1);
8613 }
8614
8615int
8616main ()
8617{
8618
8619 ;
8620 return 0;
8621}
8622_ACEOF
8623if ac_fn_c_try_compile "$LINENO"; then :
8624 ax_cv___attribute__=yes
8625else
8626 ax_cv___attribute__=no
8627
8628fi
8629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8630
8631fi
8632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
8633$as_echo "$ax_cv___attribute__" >&6; }
8634 if test "$ax_cv___attribute__" = "yes"; then
8635
8636$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
8637
8638 fi
8639
cristy146497a2015-05-17 22:46:16 +00008640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
8641$as_echo_n "checking for C compiler vendor... " >&6; }
8642if ${ax_cv_c_compiler_vendor+:} false; then :
8643 $as_echo_n "(cached) " >&6
8644else
8645 # note: don't check for gcc first since some other compilers define __GNUC__
8646 vendors="intel: __ICC,__ECC,__INTEL_COMPILER
8647 ibm: __xlc__,__xlC__,__IBMC__,__IBMCPP__
8648 pathscale: __PATHCC__,__PATHSCALE__
8649 clang: __clang__
8650 cray: _CRAYC
8651 fujitsu: __FUJITSU
8652 gnu: __GNUC__
8653 sun: __SUNPRO_C,__SUNPRO_CC
8654 hp: __HP_cc,__HP_aCC
8655 dec: __DECC,__DECCXX,__DECC_VER,__DECCXX_VER
8656 borland: __BORLANDC__,__CODEGEARC__,__TURBOC__
8657 comeau: __COMO__
8658 kai: __KCC
8659 lcc: __LCC__
8660 sgi: __sgi,sgi
8661 microsoft: _MSC_VER
8662 metrowerks: __MWERKS__
8663 watcom: __WATCOMC__
8664 portland: __PGI
8665 tcc: __TINYC__
8666 unknown: UNKNOWN"
8667 for ventest in $vendors; do
8668 case $ventest in
8669 *:) vendor=$ventest; continue ;;
8670 *) vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" ;;
8671 esac
8672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8673/* end confdefs.h. */
8674
8675int
8676main ()
8677{
8678
8679 #if !($vencpp)
8680 thisisanerror;
8681 #endif
8682
8683 ;
8684 return 0;
8685}
8686_ACEOF
8687if ac_fn_c_try_compile "$LINENO"; then :
8688 break
8689fi
8690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8691 done
8692 ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1`
8693
8694fi
8695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5
8696$as_echo "$ax_cv_c_compiler_vendor" >&6; }
8697
8698
cristy73bd4a52010-10-05 11:24:23 +00008699
8700
cristya0459972013-11-03 18:09:35 +00008701
8702
cristy17491be2014-06-24 01:10:53 +00008703
cristya0459972013-11-03 18:09:35 +00008704# Check whether --with-gcc-arch was given.
8705if test "${with_gcc_arch+set}" = set; then :
8706 withval=$with_gcc_arch; ax_gcc_arch=$withval
8707else
cristy17491be2014-06-24 01:10:53 +00008708 ax_gcc_arch=yes
cristya0459972013-11-03 18:09:35 +00008709fi
8710
8711
8712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8713$as_echo_n "checking for gcc architecture flag... " >&6; }
8714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
8715$as_echo "" >&6; }
8716if ${ax_cv_gcc_archflag+:} false; then :
8717 $as_echo_n "(cached) " >&6
8718else
8719
8720ax_cv_gcc_archflag="unknown"
8721
8722if test "$GCC" = yes; then
8723
8724if test "x$ax_gcc_arch" = xyes; then
8725ax_gcc_arch=""
8726if test "$cross_compiling" = no; then
8727case $host_cpu in
cristy17491be2014-06-24 01:10:53 +00008728 i[3456]86*|x86_64*|amd64*) # use cpuid codes
cristya0459972013-11-03 18:09:35 +00008729
8730ac_ext=c
8731ac_cpp='$CPP $CPPFLAGS'
8732ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8733ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8734ac_compiler_gnu=$ac_cv_c_compiler_gnu
8735
8736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5
8737$as_echo_n "checking for x86 cpuid 0 output... " >&6; }
8738if ${ax_cv_gcc_x86_cpuid_0+:} false; then :
8739 $as_echo_n "(cached) " >&6
8740else
8741 if test "$cross_compiling" = yes; then :
8742 ax_cv_gcc_x86_cpuid_0=unknown
8743else
8744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8745/* end confdefs.h. */
8746#include <stdio.h>
8747int
8748main ()
8749{
8750
8751 int op = 0, eax, ebx, ecx, edx;
8752 FILE *f;
8753 __asm__("cpuid"
8754 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8755 : "a" (op));
8756 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8757 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8758 fclose(f);
8759 return 0;
8760
8761 ;
8762 return 0;
8763}
8764_ACEOF
8765if ac_fn_c_try_run "$LINENO"; then :
8766 ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid
8767else
8768 ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid
8769fi
8770rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8771 conftest.$ac_objext conftest.beam conftest.$ac_ext
8772fi
8773
8774fi
8775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5
8776$as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; }
8777ac_ext=c
8778ac_cpp='$CPP $CPPFLAGS'
8779ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8780ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8781ac_compiler_gnu=$ac_cv_c_compiler_gnu
8782
8783
8784
8785ac_ext=c
8786ac_cpp='$CPP $CPPFLAGS'
8787ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8788ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8789ac_compiler_gnu=$ac_cv_c_compiler_gnu
8790
8791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5
8792$as_echo_n "checking for x86 cpuid 1 output... " >&6; }
8793if ${ax_cv_gcc_x86_cpuid_1+:} false; then :
8794 $as_echo_n "(cached) " >&6
8795else
8796 if test "$cross_compiling" = yes; then :
8797 ax_cv_gcc_x86_cpuid_1=unknown
8798else
8799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8800/* end confdefs.h. */
8801#include <stdio.h>
8802int
8803main ()
8804{
8805
8806 int op = 1, eax, ebx, ecx, edx;
8807 FILE *f;
8808 __asm__("cpuid"
8809 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8810 : "a" (op));
8811 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8812 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8813 fclose(f);
8814 return 0;
8815
8816 ;
8817 return 0;
8818}
8819_ACEOF
8820if ac_fn_c_try_run "$LINENO"; then :
8821 ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid
8822else
8823 ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid
8824fi
8825rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8826 conftest.$ac_objext conftest.beam conftest.$ac_ext
8827fi
8828
8829fi
8830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5
8831$as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; }
8832ac_ext=c
8833ac_cpp='$CPP $CPPFLAGS'
8834ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8835ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8836ac_compiler_gnu=$ac_cv_c_compiler_gnu
8837
8838
8839 case $ax_cv_gcc_x86_cpuid_0 in
cristy146497a2015-05-17 22:46:16 +00008840 *:756e6547:6c65746e:49656e69) # Intel
cristya0459972013-11-03 18:09:35 +00008841 case $ax_cv_gcc_x86_cpuid_1 in
cristy146497a2015-05-17 22:46:16 +00008842 *5[4578]?:*:*:*) ax_gcc_arch="pentium-mmx pentium" ;;
8843 *5[123]?:*:*:*) ax_gcc_arch=pentium ;;
8844 *0?61?:*:*:*|?61?:*:*:*|61?:*:*:*) ax_gcc_arch=pentiumpro ;;
8845 *0?6[356]?:*:*:*|?6[356]?:*:*:*|6[356]?:*:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8846 *0?6[78ab]?:*:*:*|?6[78ab]?:*:*:*|6[78ab]?:*:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8847 *0?6[9d]?:*:*:*|?6[9d]?:*:*:*|6[9d]?:*:*:*|*1?65?:*:*:*) ax_gcc_arch="pentium-m pentium3 pentiumpro" ;;
8848 *0?6e?:*:*:*|?6e?:*:*:*|6e?:*:*:*) ax_gcc_arch="yonah pentium-m pentium3 pentiumpro" ;;
8849 *0?6f?:*:*:*|?6f?:*:*:*|6f?:*:*:*|*1?66?:*:*:*) ax_gcc_arch="core2 pentium-m pentium3 pentiumpro" ;;
cristya0459972013-11-03 18:09:35 +00008850 *1?6[7d]?:*:*:*) ax_gcc_arch="penryn core2 pentium-m pentium3 pentiumpro" ;;
cristy146497a2015-05-17 22:46:16 +00008851 *1?6[aef]?:*:*:*|*2?6e?:*:*:*) ax_gcc_arch="nehalem corei7 core2 pentium-m pentium3 pentiumpro" ;;
8852 *2?6[5cf]?:*:*:*) ax_gcc_arch="westmere corei7 core2 pentium-m pentium3 pentiumpro" ;;
8853 *2?6[ad]?:*:*:*) ax_gcc_arch="sandybridge corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
8854 *3?6[ae]?:*:*:*) ax_gcc_arch="ivybridge core-avx-i corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
8855 *3?6[cf]?:*:*:*|*4?6[56]?:*:*:*) ax_gcc_arch="haswell core-avx2 core-avx-i corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
8856 *3?6d?:*:*:*) ax_gcc_arch="broadwell core-avx2 core-avx-i corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
8857 *1?6c?:*:*:*|*2?6[67]?:*:*:*|*3?6[56]?:*:*:*) ax_gcc_arch="bonnell atom core2 pentium-m pentium3 pentiumpro" ;;
8858 *3?67?:*:*:*|*[45]?6[ad]?:*:*:*) ax_gcc_arch="silvermont atom core2 pentium-m pentium3 pentiumpro" ;;
8859 *000?f[012]?:*:*:*|?f[012]?:*:*:*|f[012]?:*:*:*) ax_gcc_arch="pentium4 pentiumpro" ;;
8860 *000?f[346]?:*:*:*|?f[346]?:*:*:*|f[346]?:*:*:*) ax_gcc_arch="nocona prescott pentium4 pentiumpro" ;;
8861 # fallback
8862 *5??:*:*:*) ax_gcc_arch=pentium ;;
8863 *??6??:*:*:*) ax_gcc_arch="core2 pentiumpro" ;;
cristy17491be2014-06-24 01:10:53 +00008864 *6??:*:*:*) ax_gcc_arch=pentiumpro ;;
cristy146497a2015-05-17 22:46:16 +00008865 *00??f??:*:*:*|??f??:*:*:*|?f??:*:*:*|f??:*:*:*) ax_gcc_arch="pentium4 pentiumpro" ;;
cristya0459972013-11-03 18:09:35 +00008866 esac ;;
cristy146497a2015-05-17 22:46:16 +00008867 *:68747541:444d4163:69746e65) # AMD
cristya0459972013-11-03 18:09:35 +00008868 case $ax_cv_gcc_x86_cpuid_1 in
8869 *5[67]?:*:*:*) ax_gcc_arch=k6 ;;
cristy146497a2015-05-17 22:46:16 +00008870 *5[8]?:*:*:*) ax_gcc_arch="k6-2 k6" ;;
8871 *5[9d]?:*:*:*) ax_gcc_arch="k6-3 k6" ;;
cristya0459972013-11-03 18:09:35 +00008872 *6[12]?:*:*:*) ax_gcc_arch="athlon k7" ;;
8873 *6[34]?:*:*:*) ax_gcc_arch="athlon-tbird k7" ;;
cristy146497a2015-05-17 22:46:16 +00008874 *6[678a]?:*:*:*) ax_gcc_arch="athlon-xp athlon-4 athlon k7" ;;
8875 *000?f[4578bcef]?:*:*:*|?f[4578bcef]?:*:*:*|f[4578bcef]?:*:*:*|*001?f[4578bcf]?:*:*:*|1?f[4578bcf]?:*:*:*) ax_gcc_arch="athlon64 k8" ;;
8876 *002?f[13457bcf]?:*:*:*|2?f[13457bcf]?:*:*:*|*004?f[138bcf]?:*:*:*|4?f[138bcf]?:*:*:*|*005?f[df]?:*:*:*|5?f[df]?:*:*:*|*006?f[8bcf]?:*:*:*|6?f[8bcf]?:*:*:*|*007?f[cf]?:*:*:*|7?f[cf]?:*:*:*|*00c?f1?:*:*:*|c?f1?:*:*:*|*020?f3?:*:*:*|20?f3?:*:*:*) ax_gcc_arch="athlon64-sse3 k8-sse3 athlon64 k8" ;;
8877 *010?f[245689a]?:*:*:*|10?f[245689a]?:*:*:*|*030?f1?:*:*:*|30?f1?:*:*:*) ax_gcc_arch="barcelona amdfam10 k8" ;;
8878 *050?f[12]?:*:*:*|50?f[12]?:*:*:*) ax_gcc_arch="btver1 amdfam10 k8" ;;
8879 *060?f1?:*:*:*|60?f1?:*:*:*) ax_gcc_arch="bdver1 amdfam10 k8" ;;
8880 *060?f2?:*:*:*|60?f2?:*:*:*|*061?f[03]?:*:*:*|61?f[03]?:*:*:*) ax_gcc_arch="bdver2 bdver1 amdfam10 k8" ;;
8881 *063?f0?:*:*:*|63?f0?:*:*:*) ax_gcc_arch="bdver3 bdver2 bdver1 amdfam10 k8" ;;
8882 *07[03]?f0?:*:*:*|7[03]?f0?:*:*:*) ax_gcc_arch="btver2 btver1 amdfam10 k8" ;;
8883 # fallback
8884 *0[13]??f??:*:*:*|[13]??f??:*:*:*) ax_gcc_arch="barcelona amdfam10 k8" ;;
8885 *020?f??:*:*:*|20?f??:*:*:*) ax_gcc_arch="athlon64-sse3 k8-sse3 athlon64 k8" ;;
8886 *05??f??:*:*:*|5??f??:*:*:*) ax_gcc_arch="btver1 amdfam10 k8" ;;
8887 *060?f??:*:*:*|60?f??:*:*:*) ax_gcc_arch="bdver1 amdfam10 k8" ;;
8888 *061?f??:*:*:*|61?f??:*:*:*) ax_gcc_arch="bdver2 bdver1 amdfam10 k8" ;;
8889 *06??f??:*:*:*|6??f??:*:*:*) ax_gcc_arch="bdver3 bdver2 bdver1 amdfam10 k8" ;;
8890 *070?f??:*:*:*|70?f??:*:*:*) ax_gcc_arch="btver2 btver1 amdfam10 k8" ;;
8891 *???f??:*:*:*) ax_gcc_arch="amdfam10 k8" ;;
cristya0459972013-11-03 18:09:35 +00008892 esac ;;
cristy146497a2015-05-17 22:46:16 +00008893 *:746e6543:736c7561:48727561) # IDT / VIA (Centaur)
cristya0459972013-11-03 18:09:35 +00008894 case $ax_cv_gcc_x86_cpuid_1 in
8895 *54?:*:*:*) ax_gcc_arch=winchip-c6 ;;
cristy146497a2015-05-17 22:46:16 +00008896 *5[89]?:*:*:*) ax_gcc_arch=winchip2 ;;
8897 *66?:*:*:*) ax_gcc_arch=winchip2 ;;
cristya0459972013-11-03 18:09:35 +00008898 *6[78]?:*:*:*) ax_gcc_arch=c3 ;;
cristy146497a2015-05-17 22:46:16 +00008899 *6[9adf]?:*:*:*) ax_gcc_arch="c3-2 c3" ;;
cristya0459972013-11-03 18:09:35 +00008900 esac ;;
8901 esac
8902 if test x"$ax_gcc_arch" = x; then # fallback
8903 case $host_cpu in
8904 i586*) ax_gcc_arch=pentium ;;
8905 i686*) ax_gcc_arch=pentiumpro ;;
8906 esac
8907 fi
8908 ;;
8909
8910 sparc*)
8911 # Extract the first word of "prtdiag", so it can be a program name with args.
8912set dummy prtdiag; ac_word=$2
8913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8914$as_echo_n "checking for $ac_word... " >&6; }
8915if ${ac_cv_path_PRTDIAG+:} false; then :
8916 $as_echo_n "(cached) " >&6
8917else
8918 case $PRTDIAG in
8919 [\\/]* | ?:[\\/]*)
8920 ac_cv_path_PRTDIAG="$PRTDIAG" # Let the user override the test with a path.
8921 ;;
8922 *)
8923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8924as_dummy="$PATH:/usr/platform/`uname -i`/sbin/:/usr/platform/`uname -m`/sbin/"
8925for as_dir in $as_dummy
8926do
8927 IFS=$as_save_IFS
8928 test -z "$as_dir" && as_dir=.
8929 for ac_exec_ext in '' $ac_executable_extensions; do
8930 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8931 ac_cv_path_PRTDIAG="$as_dir/$ac_word$ac_exec_ext"
8932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8933 break 2
8934 fi
8935done
8936 done
8937IFS=$as_save_IFS
8938
8939 test -z "$ac_cv_path_PRTDIAG" && ac_cv_path_PRTDIAG="prtdiag"
8940 ;;
8941esac
8942fi
8943PRTDIAG=$ac_cv_path_PRTDIAG
8944if test -n "$PRTDIAG"; then
8945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRTDIAG" >&5
8946$as_echo "$PRTDIAG" >&6; }
8947else
8948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8949$as_echo "no" >&6; }
8950fi
8951
8952
8953 cputype=`(((grep cpu /proc/cpuinfo | cut -d: -f2) ; ($PRTDIAG -v |grep -i sparc) ; grep -i cpu /var/run/dmesg.boot ) | head -n 1) 2> /dev/null`
cristy17491be2014-06-24 01:10:53 +00008954 cputype=`echo "$cputype" | tr -d ' -' | $SED 's/SPARCIIi/SPARCII/' |tr $as_cr_LETTERS $as_cr_letters`
cristya0459972013-11-03 18:09:35 +00008955 case $cputype in
8956 *ultrasparciv*) ax_gcc_arch="ultrasparc4 ultrasparc3 ultrasparc v9" ;;
8957 *ultrasparciii*) ax_gcc_arch="ultrasparc3 ultrasparc v9" ;;
8958 *ultrasparc*) ax_gcc_arch="ultrasparc v9" ;;
8959 *supersparc*|*tms390z5[05]*) ax_gcc_arch="supersparc v8" ;;
8960 *hypersparc*|*rt62[056]*) ax_gcc_arch="hypersparc v8" ;;
8961 *cypress*) ax_gcc_arch=cypress ;;
8962 esac ;;
8963
8964 alphaev5) ax_gcc_arch=ev5 ;;
8965 alphaev56) ax_gcc_arch=ev56 ;;
8966 alphapca56) ax_gcc_arch="pca56 ev56" ;;
8967 alphapca57) ax_gcc_arch="pca57 pca56 ev56" ;;
8968 alphaev6) ax_gcc_arch=ev6 ;;
8969 alphaev67) ax_gcc_arch=ev67 ;;
8970 alphaev68) ax_gcc_arch="ev68 ev67" ;;
8971 alphaev69) ax_gcc_arch="ev69 ev68 ev67" ;;
8972 alphaev7) ax_gcc_arch="ev7 ev69 ev68 ev67" ;;
8973 alphaev79) ax_gcc_arch="ev79 ev7 ev69 ev68 ev67" ;;
8974
8975 powerpc*)
cristy17491be2014-06-24 01:10:53 +00008976 cputype=`((grep cpu /proc/cpuinfo | head -n 1 | cut -d: -f2 | cut -d, -f1 | $SED 's/ //g') ; /usr/bin/machine ; /bin/machine; grep CPU /var/run/dmesg.boot | head -n 1 | cut -d" " -f2) 2> /dev/null`
8977 cputype=`echo $cputype | $SED -e 's/ppc//g;s/ *//g'`
cristya0459972013-11-03 18:09:35 +00008978 case $cputype in
8979 *750*) ax_gcc_arch="750 G3" ;;
8980 *740[0-9]*) ax_gcc_arch="$cputype 7400 G4" ;;
8981 *74[4-5][0-9]*) ax_gcc_arch="$cputype 7450 G4" ;;
8982 *74[0-9][0-9]*) ax_gcc_arch="$cputype G4" ;;
8983 *970*) ax_gcc_arch="970 G5 power4";;
8984 *POWER4*|*power4*|*gq*) ax_gcc_arch="power4 970";;
8985 *POWER5*|*power5*|*gr*|*gs*) ax_gcc_arch="power5 power4 970";;
8986 603ev|8240) ax_gcc_arch="$cputype 603e 603";;
8987 *) ax_gcc_arch=$cputype ;;
8988 esac
8989 ax_gcc_arch="$ax_gcc_arch powerpc"
8990 ;;
8991esac
8992fi # not cross-compiling
8993fi # guess arch
8994
8995if test "x$ax_gcc_arch" != x -a "x$ax_gcc_arch" != xno; then
cristy146497a2015-05-17 22:46:16 +00008996if test "xyes" = xyes; then # if we require portable code
8997 flag_prefixes="-mtune="
8998 if test "x$ax_cv_c_compiler_vendor" = xclang; then flag_prefixes="-march="; fi
8999 # -mcpu=$arch and m$arch generate nonportable code on every arch except
9000 # x86. And some other arches (e.g. Alpha) don't accept -mtune. Grrr.
9001 case $host_cpu in i*86|x86_64*|amd64*) flag_prefixes="$flag_prefixes -mcpu= -m";; esac
9002else
9003 flag_prefixes="-march= -mcpu= -m"
9004fi
9005for flag_prefix in $flag_prefixes; do
9006 for arch in $ax_gcc_arch; do
9007 flag="$flag_prefix$arch"
cristya0459972013-11-03 18:09:35 +00009008 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
9009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
9010$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
9011if eval \${$as_CACHEVAR+:} false; then :
9012 $as_echo_n "(cached) " >&6
9013else
9014
9015 ax_check_save_flags=$CFLAGS
9016 CFLAGS="$CFLAGS $flag"
9017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9018/* end confdefs.h. */
9019
9020int
9021main ()
9022{
9023
9024 ;
9025 return 0;
9026}
9027_ACEOF
9028if ac_fn_c_try_compile "$LINENO"; then :
9029 eval "$as_CACHEVAR=yes"
9030else
9031 eval "$as_CACHEVAR=no"
9032fi
9033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9034 CFLAGS=$ax_check_save_flags
9035fi
9036eval ac_res=\$$as_CACHEVAR
9037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9038$as_echo "$ac_res" >&6; }
cristy146497a2015-05-17 22:46:16 +00009039if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
9040 if test "x$ax_cv_c_compiler_vendor" = xclang; then
9041 if test "xyes" = xyes; then
9042 if test "x$flag" = "x-march=$arch"; then flag=-mtune=$arch; fi
9043 fi
9044 fi; ax_cv_gcc_archflag=$flag; break
cristya0459972013-11-03 18:09:35 +00009045else
9046 :
9047fi
9048
9049 done
9050 test "x$ax_cv_gcc_archflag" = xunknown || break
9051done
9052fi
9053
9054fi # $GCC=yes
9055
9056fi
9057
9058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
9059$as_echo_n "checking for gcc architecture flag... " >&6; }
9060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_archflag" >&5
9061$as_echo "$ax_cv_gcc_archflag" >&6; }
9062if test "x$ax_cv_gcc_archflag" = xunknown; then
9063 :
9064else
9065 CFLAGS="$CFLAGS $ax_cv_gcc_archflag"
9066fi
9067
9068
9069
cristy146497a2015-05-17 22:46:16 +00009070
9071
9072
9073
9074
cristy73bd4a52010-10-05 11:24:23 +00009075if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
9076 if test -n "$ac_tool_prefix"; then
9077 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
9078set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
9079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9080$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009081if ${ac_cv_path_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009082 $as_echo_n "(cached) " >&6
9083else
9084 case $PKG_CONFIG in
9085 [\\/]* | ?:[\\/]*)
9086 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9087 ;;
9088 *)
9089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9090for as_dir in $PATH
9091do
9092 IFS=$as_save_IFS
9093 test -z "$as_dir" && as_dir=.
9094 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009095 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009096 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9098 break 2
9099 fi
9100done
9101 done
9102IFS=$as_save_IFS
9103
9104 ;;
9105esac
9106fi
9107PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9108if test -n "$PKG_CONFIG"; then
9109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9110$as_echo "$PKG_CONFIG" >&6; }
9111else
9112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9113$as_echo "no" >&6; }
9114fi
9115
9116
9117fi
9118if test -z "$ac_cv_path_PKG_CONFIG"; then
9119 ac_pt_PKG_CONFIG=$PKG_CONFIG
9120 # Extract the first word of "pkg-config", so it can be a program name with args.
9121set dummy pkg-config; ac_word=$2
9122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9123$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009124if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009125 $as_echo_n "(cached) " >&6
9126else
9127 case $ac_pt_PKG_CONFIG in
9128 [\\/]* | ?:[\\/]*)
9129 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
9130 ;;
9131 *)
9132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9133for as_dir in $PATH
9134do
9135 IFS=$as_save_IFS
9136 test -z "$as_dir" && as_dir=.
9137 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009138 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009139 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9141 break 2
9142 fi
9143done
9144 done
9145IFS=$as_save_IFS
9146
9147 ;;
9148esac
9149fi
9150ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
9151if test -n "$ac_pt_PKG_CONFIG"; then
9152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
9153$as_echo "$ac_pt_PKG_CONFIG" >&6; }
9154else
9155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9156$as_echo "no" >&6; }
9157fi
9158
9159 if test "x$ac_pt_PKG_CONFIG" = x; then
9160 PKG_CONFIG=""
9161 else
9162 case $cross_compiling:$ac_tool_warned in
9163yes:)
9164{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9165$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9166ac_tool_warned=yes ;;
9167esac
9168 PKG_CONFIG=$ac_pt_PKG_CONFIG
9169 fi
9170else
9171 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
9172fi
9173
9174fi
9175if test -n "$PKG_CONFIG"; then
9176 _pkg_min_version=0.9.0
9177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
9178$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
9179 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
9180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9181$as_echo "yes" >&6; }
9182 else
9183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9184$as_echo "no" >&6; }
9185 PKG_CONFIG=""
9186 fi
cristy73bd4a52010-10-05 11:24:23 +00009187fi
cristy3ed852e2009-09-05 21:47:34 +00009188
cristy9af1cbf2014-12-28 22:03:09 +00009189
9190
cristyd95b7a52013-10-23 13:12:53 +00009191# Test for 64-bit build.
9192# The cast to long int works around a bug in the HP C Compiler
9193# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9194# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9195# This bug is HP SR number 8606223364.
9196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
9197$as_echo_n "checking size of size_t... " >&6; }
9198if ${ac_cv_sizeof_size_t+:} false; then :
9199 $as_echo_n "(cached) " >&6
9200else
9201 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
9202
9203else
9204 if test "$ac_cv_type_size_t" = yes; then
9205 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9206$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9207as_fn_error 77 "cannot compute sizeof (size_t)
9208See \`config.log' for more details" "$LINENO" 5; }
9209 else
9210 ac_cv_sizeof_size_t=0
9211 fi
9212fi
9213
9214fi
9215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
9216$as_echo "$ac_cv_sizeof_size_t" >&6; }
9217
9218
9219
9220cat >>confdefs.h <<_ACEOF
9221#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
9222_ACEOF
9223
9224
9225
9226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
9227$as_echo_n "checking for C compiler vendor... " >&6; }
9228if ${ax_cv_c_compiler_vendor+:} false; then :
9229 $as_echo_n "(cached) " >&6
9230else
cristy146497a2015-05-17 22:46:16 +00009231 # note: don't check for gcc first since some other compilers define __GNUC__
cristyd95b7a52013-10-23 13:12:53 +00009232 vendors="intel: __ICC,__ECC,__INTEL_COMPILER
9233 ibm: __xlc__,__xlC__,__IBMC__,__IBMCPP__
9234 pathscale: __PATHCC__,__PATHSCALE__
9235 clang: __clang__
cristy146497a2015-05-17 22:46:16 +00009236 cray: _CRAYC
cristy17491be2014-06-24 01:10:53 +00009237 fujitsu: __FUJITSU
cristyd95b7a52013-10-23 13:12:53 +00009238 gnu: __GNUC__
9239 sun: __SUNPRO_C,__SUNPRO_CC
9240 hp: __HP_cc,__HP_aCC
9241 dec: __DECC,__DECCXX,__DECC_VER,__DECCXX_VER
cristy146497a2015-05-17 22:46:16 +00009242 borland: __BORLANDC__,__CODEGEARC__,__TURBOC__
cristyd95b7a52013-10-23 13:12:53 +00009243 comeau: __COMO__
cristyd95b7a52013-10-23 13:12:53 +00009244 kai: __KCC
9245 lcc: __LCC__
9246 sgi: __sgi,sgi
9247 microsoft: _MSC_VER
9248 metrowerks: __MWERKS__
9249 watcom: __WATCOMC__
9250 portland: __PGI
cristy146497a2015-05-17 22:46:16 +00009251 tcc: __TINYC__
cristyd95b7a52013-10-23 13:12:53 +00009252 unknown: UNKNOWN"
9253 for ventest in $vendors; do
9254 case $ventest in
9255 *:) vendor=$ventest; continue ;;
9256 *) vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" ;;
9257 esac
9258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9259/* end confdefs.h. */
9260
9261int
9262main ()
9263{
9264
9265 #if !($vencpp)
9266 thisisanerror;
9267 #endif
9268
9269 ;
9270 return 0;
9271}
9272_ACEOF
9273if ac_fn_c_try_compile "$LINENO"; then :
9274 break
9275fi
9276rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9277 done
9278 ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1`
9279
9280fi
9281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5
9282$as_echo "$ax_cv_c_compiler_vendor" >&6; }
9283
cristyd95b7a52013-10-23 13:12:53 +00009284# The AX_CFLAGS_WARN_ALL macro doesn't currently work for sunpro
9285# compiler.
9286if test "$ax_cv_c_compiler_vendor" != "sun"; then
cristy17491be2014-06-24 01:10:53 +00009287 ac_ext=c
cristyd95b7a52013-10-23 13:12:53 +00009288ac_cpp='$CPP $CPPFLAGS'
9289ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9290ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9291ac_compiler_gnu=$ac_cv_c_compiler_gnu
9292
cristy17491be2014-06-24 01:10:53 +00009293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
9294$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
9295if ${ac_cv_cflags_warn_all+:} false; then :
9296 $as_echo_n "(cached) " >&6
9297else
9298 ac_cv_cflags_warn_all="no, unknown"
9299ac_save_CFLAGS="$CFLAGS"
9300for ac_arg in "-warn all % -warn all" "-pedantic % -Wall" "-xstrconst % -v" "-std1 % -verbose -w0 -warnprotos" "-qlanglvl=ansi % -qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd" "-ansi -ansiE % -fullwarn" "+ESlit % +w1" "-Xc % -pvctl,fullmsg" "-h conform % -h msglevel 2" #
cristyd95b7a52013-10-23 13:12:53 +00009301do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
9302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9303/* end confdefs.h. */
9304
9305int
9306main ()
9307{
9308
9309 ;
9310 return 0;
9311}
9312_ACEOF
9313if ac_fn_c_try_compile "$LINENO"; then :
9314 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
9315fi
9316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9317done
cristy17491be2014-06-24 01:10:53 +00009318CFLAGS="$ac_save_CFLAGS"
9319
9320fi
9321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
9322$as_echo "$ac_cv_cflags_warn_all" >&6; }
9323
9324
9325case ".$ac_cv_cflags_warn_all" in
9326 .ok|.ok,*) ;;
9327 .|.no|.no,*) ;;
cristy146497a2015-05-17 22:46:16 +00009328 *)
9329if ${CFLAGS+:} false; then :
9330
9331 case " $CFLAGS " in #(
9332 *" $ac_cv_cflags_warn_all "*) :
9333 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$ac_cv_cflags_warn_all"; } >&5
cristy17491be2014-06-24 01:10:53 +00009334 (: CFLAGS already contains $ac_cv_cflags_warn_all) 2>&5
9335 ac_status=$?
9336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristy146497a2015-05-17 22:46:16 +00009337 test $ac_status = 0; } ;; #(
9338 *) :
9339
9340 as_fn_append CFLAGS " $ac_cv_cflags_warn_all"
9341 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
9342 (: CFLAGS="$CFLAGS") 2>&5
cristy17491be2014-06-24 01:10:53 +00009343 ac_status=$?
9344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9345 test $ac_status = 0; }
cristy146497a2015-05-17 22:46:16 +00009346 ;;
9347esac
9348
cristy17491be2014-06-24 01:10:53 +00009349else
cristy146497a2015-05-17 22:46:16 +00009350
9351 CFLAGS=$ac_cv_cflags_warn_all
9352 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
9353 (: CFLAGS="$CFLAGS") 2>&5
9354 ac_status=$?
9355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9356 test $ac_status = 0; }
9357
cristy17491be2014-06-24 01:10:53 +00009358fi
9359 ;;
9360esac
9361
9362ac_ext=c
cristyd95b7a52013-10-23 13:12:53 +00009363ac_cpp='$CPP $CPPFLAGS'
9364ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9365ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9366ac_compiler_gnu=$ac_cv_c_compiler_gnu
9367
9368
9369fi
cristyd95b7a52013-10-23 13:12:53 +00009370
9371if test "x$GCC" = "xyes"; then
9372 CFLAGS="$CFLAGS -fexceptions"
9373 touch local.exp
9374else
9375 cat > local.exp <<EOF
9376set CC_FOR_TARGET "$CC"
9377EOF
9378fi
9379
cristy9b86f202012-11-28 21:55:35 +00009380# Check for linker script support
9381
9382 # Check whether --enable-ld-version-script was given.
9383if test "${enable_ld_version_script+set}" = set; then :
9384 enableval=$enable_ld_version_script; have_ld_version_script=$enableval
9385fi
9386
9387 if test -z "$have_ld_version_script"; then
9388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5
9389$as_echo_n "checking if LD -Wl,--version-script works... " >&6; }
9390 save_LDFLAGS="$LDFLAGS"
9391 LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
9392 cat > conftest.map <<EOF
9393foo
9394EOF
9395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9396/* end confdefs.h. */
9397
9398int
9399main ()
9400{
9401
9402 ;
9403 return 0;
9404}
9405_ACEOF
9406if ac_fn_c_try_link "$LINENO"; then :
9407 accepts_syntax_errors=yes
9408else
9409 accepts_syntax_errors=no
9410fi
9411rm -f core conftest.err conftest.$ac_objext \
9412 conftest$ac_exeext conftest.$ac_ext
9413 if test "$accepts_syntax_errors" = no; then
9414 cat > conftest.map <<EOF
9415VERS_1 {
9416 global: sym;
9417};
9418
9419VERS_2 {
9420 global: sym;
9421} VERS_1;
9422EOF
9423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9424/* end confdefs.h. */
9425
9426int
9427main ()
9428{
9429
9430 ;
9431 return 0;
9432}
9433_ACEOF
9434if ac_fn_c_try_link "$LINENO"; then :
9435 have_ld_version_script=yes
9436else
9437 have_ld_version_script=no
9438fi
9439rm -f core conftest.err conftest.$ac_objext \
9440 conftest$ac_exeext conftest.$ac_ext
9441 else
9442 have_ld_version_script=no
9443 fi
9444 rm -f conftest.map
9445 LDFLAGS="$save_LDFLAGS"
9446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ld_version_script" >&5
9447$as_echo "$have_ld_version_script" >&6; }
9448 fi
9449 if test "$have_ld_version_script" = "yes"; then
9450 HAVE_LD_VERSION_SCRIPT_TRUE=
9451 HAVE_LD_VERSION_SCRIPT_FALSE='#'
9452else
9453 HAVE_LD_VERSION_SCRIPT_TRUE='#'
9454 HAVE_LD_VERSION_SCRIPT_FALSE=
9455fi
9456
9457
9458
cristy3ed852e2009-09-05 21:47:34 +00009459#
cristy3ed852e2009-09-05 21:47:34 +00009460# Enable run-time checking.
9461#
9462# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00009463if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009464 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
9465else
9466 enable_bounds_checking='no'
9467fi
9468
9469
9470if test "$enable_bounds_checking" = yes; then
9471
cristy8b350f62009-11-15 23:12:43 +00009472$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009473
9474fi
9475
9476#
9477# Tests for Windows
9478#
9479
9480
9481
9482GDI32_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00009483native_win32_build='no'
9484cygwin_build='no'
9485case "${host_os}" in
9486 cygwin* )
cristy3ed852e2009-09-05 21:47:34 +00009487 cygwin_build='yes'
9488 GDI32_LIBS='-lgdi32'
9489 ;;
9490 mingw* )
cristy3ed852e2009-09-05 21:47:34 +00009491 native_win32_build='yes'
9492 GDI32_LIBS='-lgdi32'
9493 ;;
9494esac
9495if test "${GDI32_LIBS}x" != 'x'; then
9496
cristy8b350f62009-11-15 23:12:43 +00009497$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009498
9499fi
9500
cristy73bd4a52010-10-05 11:24:23 +00009501 if test "${GDI32_LIBS}x" != 'x' ; then
9502 WINGDI32_DELEGATE_TRUE=
9503 WINGDI32_DELEGATE_FALSE='#'
9504else
9505 WINGDI32_DELEGATE_TRUE='#'
9506 WINGDI32_DELEGATE_FALSE=
9507fi
9508
9509 if test "${native_win32_build}" = 'yes' ; then
9510 WIN32_NATIVE_BUILD_TRUE=
9511 WIN32_NATIVE_BUILD_FALSE='#'
9512else
9513 WIN32_NATIVE_BUILD_TRUE='#'
9514 WIN32_NATIVE_BUILD_FALSE=
9515fi
9516
9517 if test "${cygwin_build}" = 'yes' ; then
9518 CYGWIN_BUILD_TRUE=
9519 CYGWIN_BUILD_FALSE='#'
9520else
9521 CYGWIN_BUILD_TRUE='#'
9522 CYGWIN_BUILD_FALSE=
9523fi
9524
9525 if test "x${CC}" = 'xcl.exe' ; then
9526 USING_CL_TRUE=
9527 USING_CL_FALSE='#'
9528else
9529 USING_CL_TRUE='#'
9530 USING_CL_FALSE=
9531fi
9532
cristy3ed852e2009-09-05 21:47:34 +00009533
9534WinPathScript="${srcdirfull}/winpath.sh"
9535
9536
9537#
9538# Compiler flags tweaks
9539#
9540if test "${GCC}" != "yes"; then
9541 case "${host}" in
9542 *-*-hpux* )
9543 # aCC: HP ANSI C++ B3910B A.03.34
9544 CFLAGS="${CFLAGS} -Wp,-H30000"
9545 if test -n "${CXXFLAGS}"; then
9546 CXXFLAGS='-AA'
9547 else
9548 CXXFLAGS="${CXXFLAGS} -AA"
9549 fi
9550 ;;
9551 *-dec-osf5.* )
9552 # Compaq alphaev68-dec-osf5.1 compiler
9553 if test -n "${CXXFLAGS}"; then
9554 CXXFLAGS='-std strict_ansi -noimplicit_include'
9555 else
9556 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
9557 fi
9558 esac
9559fi
9560
9561# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00009562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00009563$as_echo_n "checking for linker lazyload option... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009564if ${im_cv_ld_lazyload+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009565 $as_echo_n "(cached) " >&6
9566else
9567
9568im_cv_ld_lazyload='none'
9569case "${host}" in
9570 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
9571 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
9572 im_cv_ld_lazyload='-Wl,-zlazyload'
9573 fi
9574 ;;
9575esac
9576
9577fi
cristy8b350f62009-11-15 23:12:43 +00009578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00009579$as_echo "$im_cv_ld_lazyload" >&6; }
9580if test "${im_cv_ld_lazyload}" != 'none' ; then
9581 if test -z "${LDFLAGS}" ; then
9582 LDFLAGS="${im_cv_ld_lazyload}"
9583 else
9584 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
9585 fi
9586fi
9587
9588case "$host" in
cristyc37574e2013-02-16 01:04:55 +00009589 *darwin* | *-macos10*)
cristyb3b90d32013-02-16 15:44:08 +00009590 CFLAGS="${CFLAGS} -D_FORTIFY_SOURCE=0"
cristyc37574e2013-02-16 01:04:55 +00009591 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00009592if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009593 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
9594else
9595 build_osxuniversal=no
9596fi
9597
9598
cristyc37574e2013-02-16 01:04:55 +00009599 if test "${build_osxuniversal}" != no ; then
9600 if test "$enable_dependency_tracking" != no ; then
9601 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00009602Please re-run configure with these options:
9603 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00009604 " "$LINENO" 5
cristyc37574e2013-02-16 01:04:55 +00009605 fi
9606 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
9607 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
9608 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
cristy3ed852e2009-09-05 21:47:34 +00009609 fi
9610 ;;
9611esac
9612
cristy0151ae12011-10-28 16:32:29 +00009613#
9614# ARCH specific include directory
9615#
9616
cristy670aa3c2011-11-03 00:54:00 +00009617# Check whether --with-includearch-dir was given.
9618if test "${with_includearch_dir+set}" = set; then :
9619 withval=$with_includearch_dir; includearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00009620else
cristy670aa3c2011-11-03 00:54:00 +00009621 includearch_dir=$INCLUDE_DIR
cristy0151ae12011-10-28 16:32:29 +00009622fi
9623
9624
cristyd286fd72013-02-24 19:25:33 +00009625eval "eval INCLUDEARCH_DIR=$includearch_dir"
cristyac9041a2011-10-28 16:52:32 +00009626
cristy0151ae12011-10-28 16:32:29 +00009627
9628#
9629# ARCH specific configuration directory
9630#
9631
cristy670aa3c2011-11-03 00:54:00 +00009632# Check whether --with-sharearch-dir was given.
9633if test "${with_sharearch_dir+set}" = set; then :
9634 withval=$with_sharearch_dir; sharearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00009635else
cristy408ebcd2011-11-14 01:36:57 +00009636 sharearch_dir="${LIB_DIR}"
cristy0151ae12011-10-28 16:32:29 +00009637fi
9638
9639
cristy670aa3c2011-11-03 00:54:00 +00009640eval "eval SHAREARCH_DIR=$sharearch_dir"
cristyac9041a2011-10-28 16:52:32 +00009641
cristy0151ae12011-10-28 16:32:29 +00009642
cristy2ec87cc2013-02-18 17:46:50 +00009643# Path to the pkgconfig folder
9644
9645# Check whether --with-pkgconfigdir was given.
9646if test "${with_pkgconfigdir+set}" = set; then :
9647 withval=$with_pkgconfigdir; pkgconfigdir="$withval"
9648else
9649 pkgconfigdir='${libdir}/pkgconfig'
9650fi
9651
9652
9653
cristy0151ae12011-10-28 16:32:29 +00009654#
cristy3ed852e2009-09-05 21:47:34 +00009655# Enable support for threads
cristy1ae5c992013-07-30 14:55:07 +00009656#
9657# Find Posix threads library
9658#
cristy3ed852e2009-09-05 21:47:34 +00009659
9660# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00009661if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009662 withval=$with_threads; with_threads=$withval
9663else
9664 with_threads='yes'
9665fi
9666
9667
cristy1ae5c992013-07-30 14:55:07 +00009668THREAD_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00009669have_threads=no
9670if test "$with_threads" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +00009671
9672
cristy73bd4a52010-10-05 11:24:23 +00009673ac_ext=c
9674ac_cpp='$CPP $CPPFLAGS'
9675ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9676ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9677ac_compiler_gnu=$ac_cv_c_compiler_gnu
9678
9679ax_pthread_ok=no
9680
9681# We used to check for pthread.h first, but this fails if pthread.h
9682# requires special compiler flags (e.g. on True64 or Sequent).
9683# It gets checked for in the link test anyway.
9684
9685# First of all, check if the user has set any of the PTHREAD_LIBS,
9686# etcetera environment variables, and if threads linking works using
9687# them:
9688if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
9689 save_CFLAGS="$CFLAGS"
9690 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9691 save_LIBS="$LIBS"
9692 LIBS="$PTHREAD_LIBS $LIBS"
9693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
9694$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
9695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9696/* end confdefs.h. */
9697
9698/* Override any GCC internal prototype to avoid an error.
9699 Use char because int might match the return type of a GCC
9700 builtin and then its argument prototype would still apply. */
9701#ifdef __cplusplus
9702extern "C"
9703#endif
9704char pthread_join ();
9705int
9706main ()
9707{
9708return pthread_join ();
9709 ;
9710 return 0;
9711}
9712_ACEOF
9713if ac_fn_c_try_link "$LINENO"; then :
9714 ax_pthread_ok=yes
9715fi
9716rm -f core conftest.err conftest.$ac_objext \
9717 conftest$ac_exeext conftest.$ac_ext
9718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9719$as_echo "$ax_pthread_ok" >&6; }
9720 if test x"$ax_pthread_ok" = xno; then
9721 PTHREAD_LIBS=""
9722 PTHREAD_CFLAGS=""
9723 fi
9724 LIBS="$save_LIBS"
9725 CFLAGS="$save_CFLAGS"
9726fi
9727
9728# We must check for the threads library under a number of different
9729# names; the ordering is very important because some systems
9730# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
9731# libraries is broken (non-POSIX).
9732
9733# Create a list of thread flags to try. Items starting with a "-" are
9734# C compiler flags, and other items are library names, except for "none"
9735# which indicates that we try without any flags at all, and "pthread-config"
9736# which is a program returning the flags for the Pth emulation library.
9737
cristy2ec87cc2013-02-18 17:46:50 +00009738ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
cristy73bd4a52010-10-05 11:24:23 +00009739
9740# The ordering *is* (sometimes) important. Some notes on the
9741# individual items follow:
9742
9743# pthreads: AIX (must check this before -lpthread)
9744# none: in case threads are in libc; should be tried before -Kthread and
9745# other compiler flags to prevent continual compiler warnings
9746# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
9747# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
9748# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
9749# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
9750# -pthreads: Solaris/gcc
9751# -mthreads: Mingw32/gcc, Lynx/gcc
9752# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
9753# doesn't hurt to check since this sometimes defines pthreads too;
9754# also defines -D_REENTRANT)
9755# ... -mt is also the pthreads flag for HP/aCC
9756# pthread: Linux, etcetera
9757# --thread-safe: KAI C++
9758# pthread-config: use pthread-config program (for GNU Pth library)
9759
cristy2ec87cc2013-02-18 17:46:50 +00009760case ${host_os} in
9761 solaris*)
cristy73bd4a52010-10-05 11:24:23 +00009762
9763 # On Solaris (at least, for some versions), libc contains stubbed
9764 # (non-functional) versions of the pthreads routines, so link-based
9765 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
9766 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
9767 # a function called by this macro, so we could check for that, but
9768 # who knows whether they'll stub that too in a future libc.) So,
9769 # we'll just look for -pthreads and -lpthread first:
9770
9771 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
9772 ;;
9773
cristy2ec87cc2013-02-18 17:46:50 +00009774 darwin*)
cristya316db12011-10-24 00:49:45 +00009775 ax_pthread_flags="-pthread $ax_pthread_flags"
9776 ;;
cristy73bd4a52010-10-05 11:24:23 +00009777esac
9778
cristy17491be2014-06-24 01:10:53 +00009779# Clang doesn't consider unrecognized options an error unless we specify
9780# -Werror. We throw in some extra Clang-specific options to ensure that
9781# this doesn't happen for GCC, which also accepts -Werror.
9782
9783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5
9784$as_echo_n "checking if compiler needs -Werror to reject unknown flags... " >&6; }
9785save_CFLAGS="$CFLAGS"
9786ax_pthread_extra_flags="-Werror"
9787CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument"
9788cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9789/* end confdefs.h. */
9790int foo(void);
9791int
9792main ()
9793{
9794foo()
9795 ;
9796 return 0;
9797}
9798_ACEOF
9799if ac_fn_c_try_compile "$LINENO"; then :
9800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9801$as_echo "yes" >&6; }
9802else
9803 ax_pthread_extra_flags=
9804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9805$as_echo "no" >&6; }
9806fi
9807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9808CFLAGS="$save_CFLAGS"
9809
cristy73bd4a52010-10-05 11:24:23 +00009810if test x"$ax_pthread_ok" = xno; then
9811for flag in $ax_pthread_flags; do
9812
9813 case $flag in
9814 none)
9815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9816$as_echo_n "checking whether pthreads work without any flags... " >&6; }
9817 ;;
9818
9819 -*)
9820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
9821$as_echo_n "checking whether pthreads work with $flag... " >&6; }
9822 PTHREAD_CFLAGS="$flag"
9823 ;;
9824
cristya316db12011-10-24 00:49:45 +00009825 pthread-config)
9826 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00009827set dummy pthread-config; ac_word=$2
9828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9829$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009830if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009831 $as_echo_n "(cached) " >&6
9832else
9833 if test -n "$ax_pthread_config"; then
9834 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
9835else
9836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9837for as_dir in $PATH
9838do
9839 IFS=$as_save_IFS
9840 test -z "$as_dir" && as_dir=.
9841 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009842 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009843 ac_cv_prog_ax_pthread_config="yes"
9844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9845 break 2
9846 fi
9847done
9848 done
9849IFS=$as_save_IFS
9850
9851 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9852fi
9853fi
9854ax_pthread_config=$ac_cv_prog_ax_pthread_config
9855if test -n "$ax_pthread_config"; then
9856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9857$as_echo "$ax_pthread_config" >&6; }
9858else
9859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9860$as_echo "no" >&6; }
9861fi
9862
9863
cristya316db12011-10-24 00:49:45 +00009864 if test x"$ax_pthread_config" = xno; then continue; fi
9865 PTHREAD_CFLAGS="`pthread-config --cflags`"
9866 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9867 ;;
cristy73bd4a52010-10-05 11:24:23 +00009868
9869 *)
9870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
9871$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
9872 PTHREAD_LIBS="-l$flag"
9873 ;;
9874 esac
9875
9876 save_LIBS="$LIBS"
9877 save_CFLAGS="$CFLAGS"
9878 LIBS="$PTHREAD_LIBS $LIBS"
cristy17491be2014-06-24 01:10:53 +00009879 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags"
cristy73bd4a52010-10-05 11:24:23 +00009880
9881 # Check for various functions. We must include pthread.h,
9882 # since some functions may be macros. (On the Sequent, we
9883 # need a special flag -Kthread to make this header compile.)
9884 # We check for pthread_join because it is in -lpthread on IRIX
9885 # while pthread_create is in libc. We check for pthread_attr_init
9886 # due to DEC craziness with -lpthreads. We check for
9887 # pthread_cleanup_push because it is one of the few pthread
9888 # functions on Solaris that doesn't have a non-functional libc stub.
9889 # We try pthread_create on general principles.
9890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9891/* end confdefs.h. */
9892#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00009893 static void routine(void *a) { a = 0; }
9894 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00009895int
9896main ()
9897{
9898pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00009899 pthread_create(&th, 0, start_routine, 0);
9900 pthread_join(th, 0);
9901 pthread_attr_init(&attr);
9902 pthread_cleanup_push(routine, 0);
9903 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009904 ;
9905 return 0;
9906}
9907_ACEOF
9908if ac_fn_c_try_link "$LINENO"; then :
9909 ax_pthread_ok=yes
9910fi
9911rm -f core conftest.err conftest.$ac_objext \
9912 conftest$ac_exeext conftest.$ac_ext
9913
9914 LIBS="$save_LIBS"
9915 CFLAGS="$save_CFLAGS"
9916
9917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9918$as_echo "$ax_pthread_ok" >&6; }
9919 if test "x$ax_pthread_ok" = xyes; then
9920 break;
9921 fi
9922
9923 PTHREAD_LIBS=""
9924 PTHREAD_CFLAGS=""
9925done
9926fi
9927
9928# Various other checks:
9929if test "x$ax_pthread_ok" = xyes; then
9930 save_LIBS="$LIBS"
9931 LIBS="$PTHREAD_LIBS $LIBS"
9932 save_CFLAGS="$CFLAGS"
9933 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9934
9935 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00009936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00009937$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00009938 attr_name=unknown
9939 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00009941/* end confdefs.h. */
9942#include <pthread.h>
9943int
9944main ()
9945{
cristya316db12011-10-24 00:49:45 +00009946int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009947 ;
9948 return 0;
9949}
9950_ACEOF
9951if ac_fn_c_try_link "$LINENO"; then :
9952 attr_name=$attr; break
9953fi
9954rm -f core conftest.err conftest.$ac_objext \
9955 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00009956 done
cristy73bd4a52010-10-05 11:24:23 +00009957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
9958$as_echo "$attr_name" >&6; }
9959 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
9960
9961cat >>confdefs.h <<_ACEOF
9962#define PTHREAD_CREATE_JOINABLE $attr_name
9963_ACEOF
9964
9965 fi
9966
9967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
9968$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
9969 flag=no
cristy2ec87cc2013-02-18 17:46:50 +00009970 case ${host_os} in
9971 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
9972 osf* | hpux*) flag="-D_REENTRANT";;
9973 solaris*)
9974 if test "$GCC" = "yes"; then
9975 flag="-D_REENTRANT"
9976 else
cristy17491be2014-06-24 01:10:53 +00009977 # TODO: What about Clang on Solaris?
cristy2ec87cc2013-02-18 17:46:50 +00009978 flag="-mt -D_REENTRANT"
9979 fi
9980 ;;
cristy73bd4a52010-10-05 11:24:23 +00009981 esac
cristy17491be2014-06-24 01:10:53 +00009982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag" >&5
9983$as_echo "$flag" >&6; }
cristy73bd4a52010-10-05 11:24:23 +00009984 if test "x$flag" != xno; then
9985 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
9986 fi
9987
cristya316db12011-10-24 00:49:45 +00009988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9989$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9990if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9991 $as_echo_n "(cached) " >&6
9992else
9993
9994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9995/* end confdefs.h. */
cristy17491be2014-06-24 01:10:53 +00009996#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00009997int
9998main ()
9999{
10000int i = PTHREAD_PRIO_INHERIT;
10001 ;
10002 return 0;
10003}
10004_ACEOF
10005if ac_fn_c_try_link "$LINENO"; then :
10006 ax_cv_PTHREAD_PRIO_INHERIT=yes
10007else
10008 ax_cv_PTHREAD_PRIO_INHERIT=no
10009fi
10010rm -f core conftest.err conftest.$ac_objext \
10011 conftest$ac_exeext conftest.$ac_ext
10012
10013fi
10014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
10015$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
10016 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
10017
10018$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
10019
10020fi
10021
cristy73bd4a52010-10-05 11:24:23 +000010022 LIBS="$save_LIBS"
10023 CFLAGS="$save_CFLAGS"
10024
cristy23493c42013-04-11 16:04:59 +000010025 # More AIX lossage: compile with *_r variant
10026 if test "x$GCC" != xyes; then
10027 case $host_os in
10028 aix*)
10029 case "x/$CC" in #(
10030 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
10031 #handle absolute path differently from PATH based program lookup
10032 case "x$CC" in #(
10033 x/*) :
10034 if as_fn_executable_p ${CC}_r; then :
10035 PTHREAD_CC="${CC}_r"
10036fi ;; #(
10037 *) :
10038 for ac_prog in ${CC}_r
cristy73bd4a52010-10-05 11:24:23 +000010039do
10040 # Extract the first word of "$ac_prog", so it can be a program name with args.
10041set dummy $ac_prog; ac_word=$2
10042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10043$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010044if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010045 $as_echo_n "(cached) " >&6
10046else
10047 if test -n "$PTHREAD_CC"; then
10048 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
10049else
10050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10051for as_dir in $PATH
10052do
10053 IFS=$as_save_IFS
10054 test -z "$as_dir" && as_dir=.
10055 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010056 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010057 ac_cv_prog_PTHREAD_CC="$ac_prog"
10058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10059 break 2
10060 fi
10061done
10062 done
10063IFS=$as_save_IFS
10064
10065fi
10066fi
10067PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
10068if test -n "$PTHREAD_CC"; then
10069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
10070$as_echo "$PTHREAD_CC" >&6; }
10071else
10072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10073$as_echo "no" >&6; }
10074fi
10075
10076
10077 test -n "$PTHREAD_CC" && break
10078done
cristy23493c42013-04-11 16:04:59 +000010079test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
10080 ;;
10081esac ;; #(
10082 *) :
10083 ;;
10084esac
10085 ;;
10086 esac
cristya316db12011-10-24 00:49:45 +000010087 fi
cristy73bd4a52010-10-05 11:24:23 +000010088fi
10089
cristy23493c42013-04-11 16:04:59 +000010090test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
10091
cristy73bd4a52010-10-05 11:24:23 +000010092
10093
10094
10095
10096# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
10097if test x"$ax_pthread_ok" = xyes; then
10098
10099$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
10100
10101 :
10102else
10103 ax_pthread_ok=no
10104
10105fi
10106ac_ext=c
10107ac_cpp='$CPP $CPPFLAGS'
10108ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10109ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10110ac_compiler_gnu=$ac_cv_c_compiler_gnu
10111
10112
cristy7acf8fb2010-09-23 19:58:53 +000010113 if test "$ax_pthread_ok" = yes; then
cristy3ed852e2009-09-05 21:47:34 +000010114 have_threads=yes
10115 DEF_THREAD="$PTHREAD_CFLAGS"
10116 CFLAGS="$CFLAGS $DEF_THREAD"
10117 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
cristy1ae5c992013-07-30 14:55:07 +000010118 THREAD_LIBS="$PTHREAD_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000010119 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +000010120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&5
cristy3ed852e2009-09-05 21:47:34 +000010121$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
10122 CC="$PTHREAD_CC"
10123 fi
cristy55bf91c2010-09-24 00:29:41 +000010124
10125$as_echo "#define THREAD_SUPPORT 1" >>confdefs.h
10126
cristy3ed852e2009-09-05 21:47:34 +000010127 fi
10128fi
cristy1ae5c992013-07-30 14:55:07 +000010129LIBS="$LIBS $THREAD_LIBS"
10130
cristy3ed852e2009-09-05 21:47:34 +000010131
10132# Enable support for OpenMP
10133if test "$have_threads" != 'yes'; then
10134 ac_cv_prog_c_openmp=unsupported
10135fi
10136
10137 OPENMP_CFLAGS=
10138 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000010139if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010140 enableval=$enable_openmp;
10141fi
10142
10143 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +000010144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +000010145$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010146if ${ac_cv_prog_c_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010147 $as_echo_n "(cached) " >&6
10148else
cristy8b350f62009-11-15 23:12:43 +000010149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10150/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000010151
10152#ifndef _OPENMP
10153 choke me
10154#endif
10155#include <omp.h>
10156int main () { return omp_get_num_threads (); }
10157
10158_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010159if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010160 ac_cv_prog_c_openmp='none needed'
10161else
cristy8b350f62009-11-15 23:12:43 +000010162 ac_cv_prog_c_openmp='unsupported'
cristy14fefe52012-05-21 00:59:18 +000010163 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
10164 -Popenmp --openmp; do
cristy3ed852e2009-09-05 21:47:34 +000010165 ac_save_CFLAGS=$CFLAGS
10166 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000010167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10168/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000010169
10170#ifndef _OPENMP
10171 choke me
10172#endif
10173#include <omp.h>
10174int main () { return omp_get_num_threads (); }
10175
10176_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010177if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010178 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000010179fi
cristy8b350f62009-11-15 23:12:43 +000010180rm -f core conftest.err conftest.$ac_objext \
10181 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010182 CFLAGS=$ac_save_CFLAGS
10183 if test "$ac_cv_prog_c_openmp" != unsupported; then
10184 break
10185 fi
10186 done
10187fi
cristy8b350f62009-11-15 23:12:43 +000010188rm -f core conftest.err conftest.$ac_objext \
10189 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010190fi
cristy8b350f62009-11-15 23:12:43 +000010191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000010192$as_echo "$ac_cv_prog_c_openmp" >&6; }
10193 case $ac_cv_prog_c_openmp in #(
10194 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000010195 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000010196 *)
cristy8b350f62009-11-15 23:12:43 +000010197 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000010198 esac
10199 fi
10200
10201
10202CFLAGS="$OPENMP_CFLAGS $CFLAGS"
10203MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
10204
cristy391f1ce2010-09-09 17:23:28 +000010205if test "$enable_openmp" != no; then
10206 if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
10207 MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
10208 fi
10209fi
cristy3ed852e2009-09-05 21:47:34 +000010210
cristy736173a2009-09-20 21:18:22 +000010211# Enable support for OpenCL
cristy73bd4a52010-10-05 11:24:23 +000010212
10213
cristy73bd4a52010-10-05 11:24:23 +000010214ac_ext=c
10215ac_cpp='$CPP $CPPFLAGS'
10216ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10217ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10218ac_compiler_gnu=$ac_cv_c_compiler_gnu
10219
10220ax_pthread_ok=no
10221
10222# We used to check for pthread.h first, but this fails if pthread.h
10223# requires special compiler flags (e.g. on True64 or Sequent).
10224# It gets checked for in the link test anyway.
10225
10226# First of all, check if the user has set any of the PTHREAD_LIBS,
10227# etcetera environment variables, and if threads linking works using
10228# them:
10229if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
10230 save_CFLAGS="$CFLAGS"
10231 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
10232 save_LIBS="$LIBS"
10233 LIBS="$PTHREAD_LIBS $LIBS"
10234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
10235$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
10236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10237/* end confdefs.h. */
10238
10239/* Override any GCC internal prototype to avoid an error.
10240 Use char because int might match the return type of a GCC
10241 builtin and then its argument prototype would still apply. */
10242#ifdef __cplusplus
10243extern "C"
10244#endif
10245char pthread_join ();
10246int
10247main ()
10248{
10249return pthread_join ();
10250 ;
10251 return 0;
10252}
10253_ACEOF
10254if ac_fn_c_try_link "$LINENO"; then :
10255 ax_pthread_ok=yes
10256fi
10257rm -f core conftest.err conftest.$ac_objext \
10258 conftest$ac_exeext conftest.$ac_ext
10259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
10260$as_echo "$ax_pthread_ok" >&6; }
10261 if test x"$ax_pthread_ok" = xno; then
10262 PTHREAD_LIBS=""
10263 PTHREAD_CFLAGS=""
10264 fi
10265 LIBS="$save_LIBS"
10266 CFLAGS="$save_CFLAGS"
10267fi
10268
10269# We must check for the threads library under a number of different
10270# names; the ordering is very important because some systems
10271# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
10272# libraries is broken (non-POSIX).
10273
10274# Create a list of thread flags to try. Items starting with a "-" are
10275# C compiler flags, and other items are library names, except for "none"
10276# which indicates that we try without any flags at all, and "pthread-config"
10277# which is a program returning the flags for the Pth emulation library.
10278
cristy2ec87cc2013-02-18 17:46:50 +000010279ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
cristy73bd4a52010-10-05 11:24:23 +000010280
10281# The ordering *is* (sometimes) important. Some notes on the
10282# individual items follow:
10283
10284# pthreads: AIX (must check this before -lpthread)
10285# none: in case threads are in libc; should be tried before -Kthread and
10286# other compiler flags to prevent continual compiler warnings
10287# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
10288# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
10289# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
10290# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
10291# -pthreads: Solaris/gcc
10292# -mthreads: Mingw32/gcc, Lynx/gcc
10293# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
10294# doesn't hurt to check since this sometimes defines pthreads too;
10295# also defines -D_REENTRANT)
10296# ... -mt is also the pthreads flag for HP/aCC
10297# pthread: Linux, etcetera
10298# --thread-safe: KAI C++
10299# pthread-config: use pthread-config program (for GNU Pth library)
10300
cristy2ec87cc2013-02-18 17:46:50 +000010301case ${host_os} in
10302 solaris*)
cristy73bd4a52010-10-05 11:24:23 +000010303
10304 # On Solaris (at least, for some versions), libc contains stubbed
10305 # (non-functional) versions of the pthreads routines, so link-based
10306 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
10307 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
10308 # a function called by this macro, so we could check for that, but
10309 # who knows whether they'll stub that too in a future libc.) So,
10310 # we'll just look for -pthreads and -lpthread first:
10311
10312 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
10313 ;;
10314
cristy2ec87cc2013-02-18 17:46:50 +000010315 darwin*)
cristya316db12011-10-24 00:49:45 +000010316 ax_pthread_flags="-pthread $ax_pthread_flags"
10317 ;;
cristy73bd4a52010-10-05 11:24:23 +000010318esac
10319
cristy17491be2014-06-24 01:10:53 +000010320# Clang doesn't consider unrecognized options an error unless we specify
10321# -Werror. We throw in some extra Clang-specific options to ensure that
10322# this doesn't happen for GCC, which also accepts -Werror.
10323
10324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5
10325$as_echo_n "checking if compiler needs -Werror to reject unknown flags... " >&6; }
10326save_CFLAGS="$CFLAGS"
10327ax_pthread_extra_flags="-Werror"
10328CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument"
10329cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10330/* end confdefs.h. */
10331int foo(void);
10332int
10333main ()
10334{
10335foo()
10336 ;
10337 return 0;
10338}
10339_ACEOF
10340if ac_fn_c_try_compile "$LINENO"; then :
10341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10342$as_echo "yes" >&6; }
10343else
10344 ax_pthread_extra_flags=
10345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10346$as_echo "no" >&6; }
10347fi
10348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10349CFLAGS="$save_CFLAGS"
10350
cristy73bd4a52010-10-05 11:24:23 +000010351if test x"$ax_pthread_ok" = xno; then
10352for flag in $ax_pthread_flags; do
10353
10354 case $flag in
10355 none)
10356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
10357$as_echo_n "checking whether pthreads work without any flags... " >&6; }
10358 ;;
10359
10360 -*)
10361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
10362$as_echo_n "checking whether pthreads work with $flag... " >&6; }
10363 PTHREAD_CFLAGS="$flag"
10364 ;;
10365
cristya316db12011-10-24 00:49:45 +000010366 pthread-config)
10367 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +000010368set dummy pthread-config; ac_word=$2
10369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10370$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010371if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010372 $as_echo_n "(cached) " >&6
10373else
10374 if test -n "$ax_pthread_config"; then
10375 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
10376else
10377as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10378for as_dir in $PATH
10379do
10380 IFS=$as_save_IFS
10381 test -z "$as_dir" && as_dir=.
10382 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010383 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010384 ac_cv_prog_ax_pthread_config="yes"
10385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10386 break 2
10387 fi
10388done
10389 done
10390IFS=$as_save_IFS
10391
10392 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
10393fi
10394fi
10395ax_pthread_config=$ac_cv_prog_ax_pthread_config
10396if test -n "$ax_pthread_config"; then
10397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
10398$as_echo "$ax_pthread_config" >&6; }
10399else
10400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10401$as_echo "no" >&6; }
10402fi
10403
10404
cristya316db12011-10-24 00:49:45 +000010405 if test x"$ax_pthread_config" = xno; then continue; fi
10406 PTHREAD_CFLAGS="`pthread-config --cflags`"
10407 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
10408 ;;
cristy73bd4a52010-10-05 11:24:23 +000010409
10410 *)
10411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
10412$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
10413 PTHREAD_LIBS="-l$flag"
10414 ;;
10415 esac
10416
10417 save_LIBS="$LIBS"
10418 save_CFLAGS="$CFLAGS"
10419 LIBS="$PTHREAD_LIBS $LIBS"
cristy17491be2014-06-24 01:10:53 +000010420 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags"
cristy73bd4a52010-10-05 11:24:23 +000010421
10422 # Check for various functions. We must include pthread.h,
10423 # since some functions may be macros. (On the Sequent, we
10424 # need a special flag -Kthread to make this header compile.)
10425 # We check for pthread_join because it is in -lpthread on IRIX
10426 # while pthread_create is in libc. We check for pthread_attr_init
10427 # due to DEC craziness with -lpthreads. We check for
10428 # pthread_cleanup_push because it is one of the few pthread
10429 # functions on Solaris that doesn't have a non-functional libc stub.
10430 # We try pthread_create on general principles.
10431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10432/* end confdefs.h. */
10433#include <pthread.h>
cristya316db12011-10-24 00:49:45 +000010434 static void routine(void *a) { a = 0; }
10435 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +000010436int
10437main ()
10438{
10439pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +000010440 pthread_create(&th, 0, start_routine, 0);
10441 pthread_join(th, 0);
10442 pthread_attr_init(&attr);
10443 pthread_cleanup_push(routine, 0);
10444 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +000010445 ;
10446 return 0;
10447}
10448_ACEOF
10449if ac_fn_c_try_link "$LINENO"; then :
10450 ax_pthread_ok=yes
10451fi
10452rm -f core conftest.err conftest.$ac_objext \
10453 conftest$ac_exeext conftest.$ac_ext
10454
10455 LIBS="$save_LIBS"
10456 CFLAGS="$save_CFLAGS"
10457
10458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
10459$as_echo "$ax_pthread_ok" >&6; }
10460 if test "x$ax_pthread_ok" = xyes; then
10461 break;
10462 fi
10463
10464 PTHREAD_LIBS=""
10465 PTHREAD_CFLAGS=""
10466done
10467fi
10468
10469# Various other checks:
10470if test "x$ax_pthread_ok" = xyes; then
10471 save_LIBS="$LIBS"
10472 LIBS="$PTHREAD_LIBS $LIBS"
10473 save_CFLAGS="$CFLAGS"
10474 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
10475
10476 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +000010477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +000010478$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +000010479 attr_name=unknown
10480 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
10481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000010482/* end confdefs.h. */
10483#include <pthread.h>
10484int
10485main ()
10486{
cristya316db12011-10-24 00:49:45 +000010487int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +000010488 ;
10489 return 0;
10490}
10491_ACEOF
10492if ac_fn_c_try_link "$LINENO"; then :
10493 attr_name=$attr; break
10494fi
10495rm -f core conftest.err conftest.$ac_objext \
10496 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +000010497 done
cristy73bd4a52010-10-05 11:24:23 +000010498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
10499$as_echo "$attr_name" >&6; }
10500 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
10501
10502cat >>confdefs.h <<_ACEOF
10503#define PTHREAD_CREATE_JOINABLE $attr_name
10504_ACEOF
10505
10506 fi
10507
10508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
10509$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
10510 flag=no
cristy2ec87cc2013-02-18 17:46:50 +000010511 case ${host_os} in
10512 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
10513 osf* | hpux*) flag="-D_REENTRANT";;
10514 solaris*)
10515 if test "$GCC" = "yes"; then
10516 flag="-D_REENTRANT"
10517 else
cristy17491be2014-06-24 01:10:53 +000010518 # TODO: What about Clang on Solaris?
cristy2ec87cc2013-02-18 17:46:50 +000010519 flag="-mt -D_REENTRANT"
10520 fi
10521 ;;
cristy73bd4a52010-10-05 11:24:23 +000010522 esac
cristy17491be2014-06-24 01:10:53 +000010523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag" >&5
10524$as_echo "$flag" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000010525 if test "x$flag" != xno; then
10526 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
10527 fi
10528
cristya316db12011-10-24 00:49:45 +000010529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
10530$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
10531if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
10532 $as_echo_n "(cached) " >&6
10533else
10534
10535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10536/* end confdefs.h. */
cristy17491be2014-06-24 01:10:53 +000010537#include <pthread.h>
cristya316db12011-10-24 00:49:45 +000010538int
10539main ()
10540{
10541int i = PTHREAD_PRIO_INHERIT;
10542 ;
10543 return 0;
10544}
10545_ACEOF
10546if ac_fn_c_try_link "$LINENO"; then :
10547 ax_cv_PTHREAD_PRIO_INHERIT=yes
10548else
10549 ax_cv_PTHREAD_PRIO_INHERIT=no
10550fi
10551rm -f core conftest.err conftest.$ac_objext \
10552 conftest$ac_exeext conftest.$ac_ext
10553
10554fi
10555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
10556$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
10557 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
10558
10559$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
10560
10561fi
10562
cristy73bd4a52010-10-05 11:24:23 +000010563 LIBS="$save_LIBS"
10564 CFLAGS="$save_CFLAGS"
10565
cristy23493c42013-04-11 16:04:59 +000010566 # More AIX lossage: compile with *_r variant
10567 if test "x$GCC" != xyes; then
10568 case $host_os in
10569 aix*)
10570 case "x/$CC" in #(
10571 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
10572 #handle absolute path differently from PATH based program lookup
10573 case "x$CC" in #(
10574 x/*) :
10575 if as_fn_executable_p ${CC}_r; then :
10576 PTHREAD_CC="${CC}_r"
10577fi ;; #(
10578 *) :
10579 for ac_prog in ${CC}_r
cristy73bd4a52010-10-05 11:24:23 +000010580do
10581 # Extract the first word of "$ac_prog", so it can be a program name with args.
10582set dummy $ac_prog; ac_word=$2
10583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10584$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010585if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010586 $as_echo_n "(cached) " >&6
10587else
10588 if test -n "$PTHREAD_CC"; then
10589 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
10590else
10591as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10592for as_dir in $PATH
10593do
10594 IFS=$as_save_IFS
10595 test -z "$as_dir" && as_dir=.
10596 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010597 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010598 ac_cv_prog_PTHREAD_CC="$ac_prog"
10599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10600 break 2
10601 fi
10602done
10603 done
10604IFS=$as_save_IFS
10605
10606fi
10607fi
10608PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
10609if test -n "$PTHREAD_CC"; then
10610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
10611$as_echo "$PTHREAD_CC" >&6; }
10612else
10613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10614$as_echo "no" >&6; }
10615fi
10616
10617
10618 test -n "$PTHREAD_CC" && break
10619done
cristy23493c42013-04-11 16:04:59 +000010620test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
10621 ;;
10622esac ;; #(
10623 *) :
10624 ;;
10625esac
10626 ;;
10627 esac
cristya316db12011-10-24 00:49:45 +000010628 fi
cristy73bd4a52010-10-05 11:24:23 +000010629fi
10630
cristy23493c42013-04-11 16:04:59 +000010631test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
10632
cristy73bd4a52010-10-05 11:24:23 +000010633
10634
10635
10636
10637# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
10638if test x"$ax_pthread_ok" = xyes; then
10639
10640$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
10641
10642 :
10643else
10644 ax_pthread_ok=no
10645
10646fi
10647ac_ext=c
10648ac_cpp='$CPP $CPPFLAGS'
10649ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10650ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10651ac_compiler_gnu=$ac_cv_c_compiler_gnu
10652
10653
10654
10655# Check whether --enable-opencl was given.
10656if test "${enable_opencl+set}" = set; then :
cristy48794642012-09-02 15:19:08 +000010657 enableval=$enable_opencl; enable_opencl=$enableval
cristy73bd4a52010-10-05 11:24:23 +000010658else
cristy48794642012-09-02 15:19:08 +000010659 enable_opencl='no'
cristy73bd4a52010-10-05 11:24:23 +000010660fi
10661
10662
cristy48794642012-09-02 15:19:08 +000010663if test "$enable_opencl" = 'yes'; then
cristy73bd4a52010-10-05 11:24:23 +000010664 ac_ext=c
10665ac_cpp='$CPP $CPPFLAGS'
10666ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10667ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10668ac_compiler_gnu=$ac_cv_c_compiler_gnu
10669
cristy75314cc2012-09-15 23:08:29 +000010670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
10671$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
10672if ${ax_cv_c_compiler_ms+:} false; then :
10673 $as_echo_n "(cached) " >&6
10674else
10675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10676/* end confdefs.h. */
10677
10678int
10679main ()
10680{
10681#ifndef _MSC_VER
10682 choke me
10683#endif
10684
10685 ;
10686 return 0;
10687}
10688_ACEOF
10689if ac_fn_c_try_compile "$LINENO"; then :
10690 ax_compiler_ms=yes
10691else
10692 ax_compiler_ms=no
10693fi
10694rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10695ax_cv_c_compiler_ms=$ax_compiler_ms
10696
10697fi
10698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
10699$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000010700 if test X$ax_compiler_ms = Xno; then :
10701 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
10702fi
10703
10704 ax_save_CPPFLAGS=$CPPFLAGS
cristyfdc7d122013-08-17 20:46:45 +000010705 ax_save_CL_CFLAGS=$CL_CFLAGS
10706
10707 found_opencl_header='no'
cristy73bd4a52010-10-05 11:24:23 +000010708 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
10709 for ac_header in CL/cl.h OpenCL/cl.h
10710do :
10711 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10712ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000010713if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000010714 cat >>confdefs.h <<_ACEOF
10715#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10716_ACEOF
cristyfdc7d122013-08-17 20:46:45 +000010717 found_opencl_header='yes'
10718 break;
10719else
10720 found_opencl_header='no'
cristy73bd4a52010-10-05 11:24:23 +000010721fi
10722
10723done
10724
cristyfdc7d122013-08-17 20:46:45 +000010725
10726 if test X$found_opencl_header = Xno; then :
10727 { ac_cv_header_CL_cl_h=; unset ac_cv_header_CL_cl_h;}
10728 { ac_cv_header_OpenCL_cl_h=; unset ac_cv_header_OpenCL_cl_h;}
10729 CL_CFLAGS="-I$AMDAPPSDKROOT/include"
10730 CPPFLAGS="$ax_save_CPPFLAGS $CL_CFLAGS"
10731 for ac_header in CL/cl.h OpenCL/cl.h
10732do :
10733 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10734ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10735if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10736 cat >>confdefs.h <<_ACEOF
10737#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10738_ACEOF
10739 found_opencl_header='yes'
10740 break;
10741else
10742 found_opencl_header='no'
10743fi
10744
10745done
10746
10747
10748fi
10749
10750 CPPFLAGS="$ax_save_CPPFLAGS"
cristy73bd4a52010-10-05 11:24:23 +000010751
10752 for ac_header in windows.h
10753do :
10754 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000010755if test "x$ac_cv_header_windows_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000010756 cat >>confdefs.h <<_ACEOF
10757#define HAVE_WINDOWS_H 1
10758_ACEOF
10759
10760fi
10761
10762done
10763
10764
10765
10766
10767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
10768$as_echo_n "checking for OpenCL library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010769if ${ax_cv_check_cl_libcl+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010770 $as_echo_n "(cached) " >&6
10771else
10772 ax_cv_check_cl_libcl=no
10773 case $host_cpu in
cristyfdc7d122013-08-17 20:46:45 +000010774 x86_64) ax_check_cl_libdir=lib64
10775 ax_check_cl_amd_libdir=x86_64
10776 ;;
10777 *) ax_check_cl_libdir=lib
10778 ax_check_cl_amd_libdir=x86
10779 ;;
cristy73bd4a52010-10-05 11:24:23 +000010780 esac
10781 ax_save_CPPFLAGS=$CPPFLAGS
10782 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
10783 ax_save_LIBS=$LIBS
10784 LIBS=""
10785 ax_check_libs="-lOpenCL -lCL -lclparser"
10786 for ax_lib in $ax_check_libs; do
10787 if test X$ax_compiler_ms = Xyes; then :
10788 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
10789else
10790 ax_try_lib=$ax_lib
10791fi
10792 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
10793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10794/* end confdefs.h. */
10795
10796 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10797 # include <windows.h>
10798 # endif
10799 # ifdef HAVE_CL_CL_H
10800 # include <CL/cl.h>
10801 # elif defined(HAVE_OPENCL_CL_H)
10802 # include <OpenCL/cl.h>
10803 # else
10804 # error no CL.h
10805 # endif
10806int
10807main ()
10808{
10809clCreateContextFromType(0,0,0,0,0)
10810 ;
10811 return 0;
10812}
10813_ACEOF
10814if ac_fn_c_try_link "$LINENO"; then :
10815 ax_cv_check_cl_libcl=$ax_try_lib; break
10816else
10817 ax_check_cl_nvidia_flags="-L/usr/$ax_check_cl_libdir/nvidia" LIBS="$ax_try_lib $ax_check_cl_nvidia_flags $CL_LIBS $ax_save_LIBS"
10818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10819/* end confdefs.h. */
10820
10821 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10822 # include <windows.h>
10823 # endif
10824 # ifdef HAVE_CL_CL_H
10825 # include <CL/cl.h>
10826 # elif defined(HAVE_OPENCL_CL_H)
10827 # include <OpenCL/cl.h>
10828 # else
10829 # error no CL.h
10830 # endif
10831int
10832main ()
10833{
10834clCreateContextFromType(0,0,0,0,0)
10835 ;
10836 return 0;
10837}
10838_ACEOF
10839if ac_fn_c_try_link "$LINENO"; then :
10840 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
10841else
cristy78c5a0c2010-12-04 20:00:59 +000010842 ax_check_cl_dylib_flag='-Wl,-framework,OpenCL -L/System/Library/Frameworks/OpenCL.framework/Versions/A/Libraries' LIBS="$ax_try_lib $ax_check_cl_dylib_flag $CL_LIBS $ax_save_LIBS"
cristy73bd4a52010-10-05 11:24:23 +000010843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10844/* end confdefs.h. */
10845
10846 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10847 # include <windows.h>
10848 # endif
10849 # ifdef HAVE_CL_CL_H
10850 # include <CL/cl.h>
10851 # elif defined(HAVE_OPENCL_CL_H)
10852 # include <OpenCL/cl.h>
10853 # else
10854 # error no CL.h
10855 # endif
10856int
10857main ()
10858{
10859clCreateContextFromType(0,0,0,0,0)
10860 ;
10861 return 0;
10862}
10863_ACEOF
10864if ac_fn_c_try_link "$LINENO"; then :
10865 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
cristyfdc7d122013-08-17 20:46:45 +000010866else
10867 ax_check_cl_amd_flags="-L$AMDAPPSDKROOT/lib/$ax_check_cl_amd_libdir" LIBS="$ax_try_lib $ax_check_cl_amd_flags $CL_LIBS $ax_save_LIBS"
10868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10869/* end confdefs.h. */
10870
10871 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10872 # include <windows.h>
10873 # endif
10874 # ifdef HAVE_CL_CL_H
10875 # include <CL/cl.h>
10876 # elif defined(HAVE_OPENCL_CL_H)
10877 # include <OpenCL/cl.h>
10878 # else
10879 # error no CL.h
10880 # endif
10881int
10882main ()
10883{
10884clCreateContextFromType(0,0,0,0,0)
10885 ;
10886 return 0;
10887}
10888_ACEOF
10889if ac_fn_c_try_link "$LINENO"; then :
10890 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_amd_flags"; break
10891
10892fi
10893rm -f core conftest.err conftest.$ac_objext \
10894 conftest$ac_exeext conftest.$ac_ext
10895
10896
cristy73bd4a52010-10-05 11:24:23 +000010897fi
10898rm -f core conftest.err conftest.$ac_objext \
10899 conftest$ac_exeext conftest.$ac_ext
10900fi
10901rm -f core conftest.err conftest.$ac_objext \
10902 conftest$ac_exeext conftest.$ac_ext
10903fi
10904rm -f core conftest.err conftest.$ac_objext \
10905 conftest$ac_exeext conftest.$ac_ext
10906 done
10907
cristyc3f8b8e2011-12-22 14:55:16 +000010908 if test "X$ax_cv_check_cl_libcl" = Xno; then :
cristy78c5a0c2010-12-04 20:00:59 +000010909 LIBS='-Wl,-framework,OpenCL'
cristy73bd4a52010-10-05 11:24:23 +000010910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10911/* end confdefs.h. */
10912
10913 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10914 # include <windows.h>
10915 # endif
10916 # ifdef HAVE_CL_CL_H
10917 # include <CL/cl.h>
10918 # elif defined(HAVE_OPENCL_CL_H)
10919 # include <OpenCL/cl.h>
10920 # else
10921 # error no CL.h
10922 # endif
10923int
10924main ()
10925{
10926clCreateContextFromType(0,0,0,0,0)
10927 ;
10928 return 0;
10929}
10930_ACEOF
10931if ac_fn_c_try_link "$LINENO"; then :
10932 ax_cv_check_cl_libcl=$LIBS
10933fi
10934rm -f core conftest.err conftest.$ac_objext \
10935 conftest$ac_exeext conftest.$ac_ext
10936fi
10937
10938 LIBS=$ax_save_LIBS
10939 CPPFLAGS=$ax_save_CPPFLAGS
10940fi
10941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
10942$as_echo "$ax_cv_check_cl_libcl" >&6; }
10943
10944 if test "X$ax_cv_check_cl_libcl" = Xno; then :
10945 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
10946else
10947 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
10948$as_echo "#define _OPENCL 1" >>confdefs.h
10949
10950fi
10951 ac_ext=c
10952ac_cpp='$CPP $CPPFLAGS'
10953ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10954ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10955ac_compiler_gnu=$ac_cv_c_compiler_gnu
10956
10957fi
10958
10959
10960
cristy0c832c62014-03-07 22:21:04 +000010961#remove static link on Linux
10962CL_LIBS=`echo $CL_LIBS | $SED -e 's/-lOpenCL //'`
10963
cristy73bd4a52010-10-05 11:24:23 +000010964
cristyc7083c12009-10-14 03:16:55 +000010965CFLAGS="$CL_CFLAGS $CFLAGS"
cristyfdc7d122013-08-17 20:46:45 +000010966CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
cristyc7083c12009-10-14 03:16:55 +000010967LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +000010968
cristy391f1ce2010-09-09 17:23:28 +000010969if test "$enable_opencl" != no; then
cristy6e3607c2011-09-13 13:59:17 +000010970 if test "X$ax_cv_check_cl_libcl" != Xno; then :
cristy391f1ce2010-09-09 17:23:28 +000010971 MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
10972 fi
cristyfd9dcd42010-08-08 18:07:02 +000010973fi
cristy2e8b51d2009-10-17 18:26:15 +000010974
cristy3ed852e2009-09-05 21:47:34 +000010975########
10976#
10977# Check for large file support
10978#
10979########
10980# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +000010981if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010982 enableval=$enable_largefile;
10983fi
10984
10985if test "$enable_largefile" != no; then
10986
cristy8b350f62009-11-15 23:12:43 +000010987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010988$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010989if ${ac_cv_sys_largefile_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010990 $as_echo_n "(cached) " >&6
10991else
10992 ac_cv_sys_largefile_CC=no
10993 if test "$GCC" != yes; then
10994 ac_save_CC=$CC
10995 while :; do
10996 # IRIX 6.2 and later do not support large files by default,
10997 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +000010998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010999/* end confdefs.h. */
11000#include <sys/types.h>
11001 /* Check that off_t can represent 2**63 - 1 correctly.
11002 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11003 since some C++ compilers masquerading as C compilers
11004 incorrectly reject 9223372036854775807. */
11005#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11006 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11007 && LARGE_OFF_T % 2147483647 == 1)
11008 ? 1 : -1];
11009int
11010main ()
11011{
11012
11013 ;
11014 return 0;
11015}
11016_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011017 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011018 break
cristy3ed852e2009-09-05 21:47:34 +000011019fi
cristy3ed852e2009-09-05 21:47:34 +000011020rm -f core conftest.err conftest.$ac_objext
11021 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +000011022 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011023 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +000011024fi
cristy3ed852e2009-09-05 21:47:34 +000011025rm -f core conftest.err conftest.$ac_objext
11026 break
11027 done
11028 CC=$ac_save_CC
11029 rm -f conftest.$ac_ext
11030 fi
11031fi
cristy8b350f62009-11-15 23:12:43 +000011032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +000011033$as_echo "$ac_cv_sys_largefile_CC" >&6; }
11034 if test "$ac_cv_sys_largefile_CC" != no; then
11035 CC=$CC$ac_cv_sys_largefile_CC
11036 fi
11037
cristy8b350f62009-11-15 23:12:43 +000011038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000011039$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011040if ${ac_cv_sys_file_offset_bits+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000011041 $as_echo_n "(cached) " >&6
11042else
11043 while :; do
cristy8b350f62009-11-15 23:12:43 +000011044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011045/* end confdefs.h. */
11046#include <sys/types.h>
11047 /* Check that off_t can represent 2**63 - 1 correctly.
11048 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11049 since some C++ compilers masquerading as C compilers
11050 incorrectly reject 9223372036854775807. */
11051#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11052 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11053 && LARGE_OFF_T % 2147483647 == 1)
11054 ? 1 : -1];
11055int
11056main ()
11057{
11058
11059 ;
11060 return 0;
11061}
11062_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011063if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011064 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +000011065fi
cristy3ed852e2009-09-05 21:47:34 +000011066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000011067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011068/* end confdefs.h. */
11069#define _FILE_OFFSET_BITS 64
11070#include <sys/types.h>
11071 /* Check that off_t can represent 2**63 - 1 correctly.
11072 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11073 since some C++ compilers masquerading as C compilers
11074 incorrectly reject 9223372036854775807. */
11075#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11076 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11077 && LARGE_OFF_T % 2147483647 == 1)
11078 ? 1 : -1];
11079int
11080main ()
11081{
11082
11083 ;
11084 return 0;
11085}
11086_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011087if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011088 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +000011089fi
cristy3ed852e2009-09-05 21:47:34 +000011090rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11091 ac_cv_sys_file_offset_bits=unknown
11092 break
11093done
11094fi
cristy8b350f62009-11-15 23:12:43 +000011095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +000011096$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
11097case $ac_cv_sys_file_offset_bits in #(
11098 no | unknown) ;;
11099 *)
11100cat >>confdefs.h <<_ACEOF
11101#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
11102_ACEOF
11103;;
11104esac
11105rm -rf conftest*
11106 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +000011107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000011108$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011109if ${ac_cv_sys_large_files+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000011110 $as_echo_n "(cached) " >&6
11111else
11112 while :; do
cristy8b350f62009-11-15 23:12:43 +000011113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011114/* end confdefs.h. */
11115#include <sys/types.h>
11116 /* Check that off_t can represent 2**63 - 1 correctly.
11117 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11118 since some C++ compilers masquerading as C compilers
11119 incorrectly reject 9223372036854775807. */
11120#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11121 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11122 && LARGE_OFF_T % 2147483647 == 1)
11123 ? 1 : -1];
11124int
11125main ()
11126{
11127
11128 ;
11129 return 0;
11130}
11131_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011132if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011133 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +000011134fi
cristy3ed852e2009-09-05 21:47:34 +000011135rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000011136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011137/* end confdefs.h. */
11138#define _LARGE_FILES 1
11139#include <sys/types.h>
11140 /* Check that off_t can represent 2**63 - 1 correctly.
11141 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11142 since some C++ compilers masquerading as C compilers
11143 incorrectly reject 9223372036854775807. */
11144#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11145 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11146 && LARGE_OFF_T % 2147483647 == 1)
11147 ? 1 : -1];
11148int
11149main ()
11150{
11151
11152 ;
11153 return 0;
11154}
11155_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011156if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011157 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +000011158fi
cristy3ed852e2009-09-05 21:47:34 +000011159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11160 ac_cv_sys_large_files=unknown
11161 break
11162done
11163fi
cristy8b350f62009-11-15 23:12:43 +000011164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +000011165$as_echo "$ac_cv_sys_large_files" >&6; }
11166case $ac_cv_sys_large_files in #(
11167 no | unknown) ;;
11168 *)
11169cat >>confdefs.h <<_ACEOF
11170#define _LARGE_FILES $ac_cv_sys_large_files
11171_ACEOF
11172;;
11173esac
11174rm -rf conftest*
11175 fi
cristy14fefe52012-05-21 00:59:18 +000011176
11177
cristy3ed852e2009-09-05 21:47:34 +000011178fi
11179
cristy8b350f62009-11-15 23:12:43 +000011180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000011181$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011182if ${ac_cv_sys_largefile_source+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000011183 $as_echo_n "(cached) " >&6
11184else
11185 while :; do
cristy8b350f62009-11-15 23:12:43 +000011186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011187/* end confdefs.h. */
11188#include <sys/types.h> /* for off_t */
11189 #include <stdio.h>
11190int
11191main ()
11192{
11193int (*fp) (FILE *, off_t, int) = fseeko;
11194 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
11195 ;
11196 return 0;
11197}
11198_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011199if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011200 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +000011201fi
cristy8b350f62009-11-15 23:12:43 +000011202rm -f core conftest.err conftest.$ac_objext \
11203 conftest$ac_exeext conftest.$ac_ext
11204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011205/* end confdefs.h. */
11206#define _LARGEFILE_SOURCE 1
11207#include <sys/types.h> /* for off_t */
11208 #include <stdio.h>
11209int
11210main ()
11211{
11212int (*fp) (FILE *, off_t, int) = fseeko;
11213 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
11214 ;
11215 return 0;
11216}
11217_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011218if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011219 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +000011220fi
cristy8b350f62009-11-15 23:12:43 +000011221rm -f core conftest.err conftest.$ac_objext \
11222 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011223 ac_cv_sys_largefile_source=unknown
11224 break
11225done
11226fi
cristy8b350f62009-11-15 23:12:43 +000011227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +000011228$as_echo "$ac_cv_sys_largefile_source" >&6; }
11229case $ac_cv_sys_largefile_source in #(
11230 no | unknown) ;;
11231 *)
11232cat >>confdefs.h <<_ACEOF
11233#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
11234_ACEOF
11235;;
11236esac
11237rm -rf conftest*
11238
11239# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
11240# in glibc 2.1.3, but that breaks too many other things.
11241# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
11242if test $ac_cv_sys_largefile_source != unknown; then
11243
cristy8b350f62009-11-15 23:12:43 +000011244$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000011245
11246fi
11247
11248LFS_CPPFLAGS=''
11249if test "$enable_largefile" != no; then
cristyc1e0cc12011-09-21 16:41:16 +000011250 case $ac_cv_sys_file_offset_bits in
11251 no)
11252 # nothing to do here as the host supports LFS fine
11253 ;;
11254 unknown)
cristy8b350f62009-11-15 23:12:43 +000011255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +000011256$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011257 if test "$cross_compiling" = yes; then :
11258 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000011259$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000011260as_fn_error $? "cannot run test program while cross compiling
11261See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000011262else
cristy8b350f62009-11-15 23:12:43 +000011263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11264/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000011265#include <unistd.h>
11266 main () {
11267 exit(!(sizeof(off_t) == 8));
11268 }
cristyda16f162011-02-19 23:52:17 +000011269int
11270main ()
11271{
11272
11273 ;
11274 return 0;
11275}
cristy3ed852e2009-09-05 21:47:34 +000011276_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011277if ac_fn_c_try_run "$LINENO"; then :
11278 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000011279
cristyad38abe2012-12-23 23:03:21 +000011280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11281$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000011282else
cristyad38abe2012-12-23 23:03:21 +000011283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11284$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000011285fi
cristy8b350f62009-11-15 23:12:43 +000011286rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11287 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011288fi
11289
cristyc1e0cc12011-09-21 16:41:16 +000011290 ;;
11291 *)
11292 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
11293 ;;
11294 esac
cristy3ed852e2009-09-05 21:47:34 +000011295 if test "$ac_cv_sys_large_files" != 'no'; then
11296 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
11297 fi
11298 if test "$ac_cv_sys_largefile_source" != 'no'; then
11299 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
11300 fi
11301fi
11302
11303
cristy3ed852e2009-09-05 21:47:34 +000011304# Configure libtool
cristy73bd4a52010-10-05 11:24:23 +000011305enable_dlopen=yes
11306
11307
11308
11309case `pwd` in
11310 *\ * | *\ *)
11311 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11312$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11313esac
11314
11315
11316
cristy99bd5232011-12-07 14:38:20 +000011317macro_version='2.4.2'
11318macro_revision='1.3337'
cristy73bd4a52010-10-05 11:24:23 +000011319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332ltmain="$ac_aux_dir/ltmain.sh"
11333
cristy0c60a692010-11-04 01:09:47 +000011334# Backslashify metacharacters that are still active within
11335# double-quoted strings.
11336sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11337
11338# Same as above, but do not quote variable references.
11339double_quote_subst='s/\(["`\\]\)/\\\1/g'
11340
11341# Sed substitution to delay expansion of an escaped shell variable in a
11342# double_quote_subst'ed string.
11343delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11344
11345# Sed substitution to delay expansion of an escaped single quote.
11346delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11347
11348# Sed substitution to avoid accidental globbing in evaled expressions
11349no_glob_subst='s/\*/\\\*/g'
11350
cristy73bd4a52010-10-05 11:24:23 +000011351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11352$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011353if ${lt_cv_path_NM+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011354 $as_echo_n "(cached) " >&6
11355else
11356 if test -n "$NM"; then
11357 # Let the user override the test.
11358 lt_cv_path_NM="$NM"
11359else
11360 lt_nm_to_check="${ac_tool_prefix}nm"
11361 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11362 lt_nm_to_check="$lt_nm_to_check nm"
11363 fi
11364 for lt_tmp_nm in $lt_nm_to_check; do
11365 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11366 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11367 IFS="$lt_save_ifs"
11368 test -z "$ac_dir" && ac_dir=.
11369 tmp_nm="$ac_dir/$lt_tmp_nm"
11370 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
11371 # Check to see if the nm accepts a BSD-compat flag.
11372 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
11373 # nm: unknown option "B" ignored
11374 # Tru64's nm complains that /dev/null is an invalid object file
11375 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
11376 */dev/null* | *'Invalid file or object type'*)
11377 lt_cv_path_NM="$tmp_nm -B"
11378 break
11379 ;;
11380 *)
11381 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11382 */dev/null*)
11383 lt_cv_path_NM="$tmp_nm -p"
11384 break
11385 ;;
11386 *)
11387 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11388 continue # so that we can try to find one that supports BSD flags
11389 ;;
11390 esac
11391 ;;
11392 esac
11393 fi
11394 done
11395 IFS="$lt_save_ifs"
11396 done
11397 : ${lt_cv_path_NM=no}
11398fi
11399fi
11400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11401$as_echo "$lt_cv_path_NM" >&6; }
11402if test "$lt_cv_path_NM" != "no"; then
11403 NM="$lt_cv_path_NM"
11404else
11405 # Didn't find any BSD compatible name lister, look for dumpbin.
cristy0c60a692010-11-04 01:09:47 +000011406 if test -n "$DUMPBIN"; then :
11407 # Let the user override the test.
11408 else
11409 if test -n "$ac_tool_prefix"; then
11410 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000011411 do
11412 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11413set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11415$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011416if ${ac_cv_prog_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011417 $as_echo_n "(cached) " >&6
11418else
11419 if test -n "$DUMPBIN"; then
11420 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11421else
11422as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11423for as_dir in $PATH
11424do
11425 IFS=$as_save_IFS
11426 test -z "$as_dir" && as_dir=.
11427 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011428 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011429 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11431 break 2
11432 fi
11433done
11434 done
11435IFS=$as_save_IFS
11436
11437fi
11438fi
11439DUMPBIN=$ac_cv_prog_DUMPBIN
11440if test -n "$DUMPBIN"; then
11441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11442$as_echo "$DUMPBIN" >&6; }
11443else
11444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11445$as_echo "no" >&6; }
11446fi
11447
11448
11449 test -n "$DUMPBIN" && break
11450 done
11451fi
11452if test -z "$DUMPBIN"; then
11453 ac_ct_DUMPBIN=$DUMPBIN
cristy0c60a692010-11-04 01:09:47 +000011454 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000011455do
11456 # Extract the first word of "$ac_prog", so it can be a program name with args.
11457set dummy $ac_prog; ac_word=$2
11458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11459$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011460if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011461 $as_echo_n "(cached) " >&6
11462else
11463 if test -n "$ac_ct_DUMPBIN"; then
11464 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11465else
11466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11467for as_dir in $PATH
11468do
11469 IFS=$as_save_IFS
11470 test -z "$as_dir" && as_dir=.
11471 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011472 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011473 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11475 break 2
11476 fi
11477done
11478 done
11479IFS=$as_save_IFS
11480
11481fi
11482fi
11483ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11484if test -n "$ac_ct_DUMPBIN"; then
11485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11486$as_echo "$ac_ct_DUMPBIN" >&6; }
11487else
11488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11489$as_echo "no" >&6; }
11490fi
11491
11492
11493 test -n "$ac_ct_DUMPBIN" && break
11494done
11495
11496 if test "x$ac_ct_DUMPBIN" = x; then
11497 DUMPBIN=":"
11498 else
11499 case $cross_compiling:$ac_tool_warned in
11500yes:)
11501{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11502$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11503ac_tool_warned=yes ;;
11504esac
11505 DUMPBIN=$ac_ct_DUMPBIN
11506 fi
11507fi
11508
cristy0c60a692010-11-04 01:09:47 +000011509 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
11510 *COFF*)
11511 DUMPBIN="$DUMPBIN -symbols"
11512 ;;
11513 *)
11514 DUMPBIN=:
11515 ;;
11516 esac
11517 fi
cristy73bd4a52010-10-05 11:24:23 +000011518
11519 if test "$DUMPBIN" != ":"; then
11520 NM="$DUMPBIN"
11521 fi
11522fi
11523test -z "$NM" && NM=nm
11524
11525
11526
11527
11528
11529
11530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11531$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011532if ${lt_cv_nm_interface+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011533 $as_echo_n "(cached) " >&6
11534else
11535 lt_cv_nm_interface="BSD nm"
11536 echo "int some_variable = 0;" > conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000011537 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000011538 (eval "$ac_compile" 2>conftest.err)
11539 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000011540 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000011541 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11542 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000011543 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000011544 cat conftest.out >&5
11545 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11546 lt_cv_nm_interface="MS dumpbin"
11547 fi
11548 rm -f conftest*
11549fi
11550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11551$as_echo "$lt_cv_nm_interface" >&6; }
11552
11553# find the maximum length of command line arguments
11554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11555$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011556if ${lt_cv_sys_max_cmd_len+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011557 $as_echo_n "(cached) " >&6
11558else
11559 i=0
11560 teststring="ABCD"
11561
11562 case $build_os in
11563 msdosdjgpp*)
11564 # On DJGPP, this test can blow up pretty badly due to problems in libc
11565 # (any single argument exceeding 2000 bytes causes a buffer overrun
11566 # during glob expansion). Even if it were fixed, the result of this
11567 # check would be larger than it should be.
11568 lt_cv_sys_max_cmd_len=12288; # 12K is about right
11569 ;;
11570
11571 gnu*)
11572 # Under GNU Hurd, this test is not required because there is
11573 # no limit to the length of command line arguments.
11574 # Libtool will interpret -1 as no limit whatsoever
11575 lt_cv_sys_max_cmd_len=-1;
11576 ;;
11577
11578 cygwin* | mingw* | cegcc*)
11579 # On Win9x/ME, this test blows up -- it succeeds, but takes
11580 # about 5 minutes as the teststring grows exponentially.
11581 # Worse, since 9x/ME are not pre-emptively multitasking,
11582 # you end up with a "frozen" computer, even though with patience
11583 # the test eventually succeeds (with a max line length of 256k).
11584 # Instead, let's just punt: use the minimum linelength reported by
11585 # all of the supported platforms: 8192 (on NT/2K/XP).
11586 lt_cv_sys_max_cmd_len=8192;
11587 ;;
11588
cristy0c60a692010-11-04 01:09:47 +000011589 mint*)
11590 # On MiNT this can take a long time and run out of memory.
11591 lt_cv_sys_max_cmd_len=8192;
11592 ;;
11593
cristy73bd4a52010-10-05 11:24:23 +000011594 amigaos*)
11595 # On AmigaOS with pdksh, this test takes hours, literally.
11596 # So we just punt and use a minimum line length of 8192.
11597 lt_cv_sys_max_cmd_len=8192;
11598 ;;
11599
11600 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
11601 # This has been around since 386BSD, at least. Likely further.
11602 if test -x /sbin/sysctl; then
11603 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11604 elif test -x /usr/sbin/sysctl; then
11605 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11606 else
11607 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
11608 fi
11609 # And add a safety zone
11610 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11611 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11612 ;;
11613
11614 interix*)
11615 # We know the value 262144 and hardcode it with a safety zone (like BSD)
11616 lt_cv_sys_max_cmd_len=196608
11617 ;;
11618
cristy99bd5232011-12-07 14:38:20 +000011619 os2*)
11620 # The test takes a long time on OS/2.
11621 lt_cv_sys_max_cmd_len=8192
11622 ;;
11623
cristy73bd4a52010-10-05 11:24:23 +000011624 osf*)
11625 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11626 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11627 # nice to cause kernel panics so lets avoid the loop below.
11628 # First set a reasonable default.
11629 lt_cv_sys_max_cmd_len=16384
11630 #
11631 if test -x /sbin/sysconfig; then
11632 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11633 *1*) lt_cv_sys_max_cmd_len=-1 ;;
11634 esac
11635 fi
11636 ;;
11637 sco3.2v5*)
11638 lt_cv_sys_max_cmd_len=102400
11639 ;;
11640 sysv5* | sco5v6* | sysv4.2uw2*)
11641 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11642 if test -n "$kargmax"; then
11643 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
11644 else
11645 lt_cv_sys_max_cmd_len=32768
11646 fi
11647 ;;
11648 *)
11649 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11650 if test -n "$lt_cv_sys_max_cmd_len"; then
11651 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11652 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11653 else
11654 # Make teststring a little bigger before we do anything with it.
11655 # a 1K string should be a reasonable start.
11656 for i in 1 2 3 4 5 6 7 8 ; do
11657 teststring=$teststring$teststring
11658 done
11659 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11660 # If test is not a shell built-in, we'll probably end up computing a
11661 # maximum length that is only half of the actual maximum length, but
11662 # we can't tell.
cristy99bd5232011-12-07 14:38:20 +000011663 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
cristy0c60a692010-11-04 01:09:47 +000011664 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
cristy73bd4a52010-10-05 11:24:23 +000011665 test $i != 17 # 1/2 MB should be enough
11666 do
11667 i=`expr $i + 1`
11668 teststring=$teststring$teststring
11669 done
11670 # Only check the string length outside the loop.
11671 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11672 teststring=
11673 # Add a significant safety factor because C++ compilers can tack on
11674 # massive amounts of additional arguments before passing them to the
11675 # linker. It appears as though 1/2 is a usable value.
11676 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11677 fi
11678 ;;
11679 esac
11680
11681fi
11682
11683if test -n $lt_cv_sys_max_cmd_len ; then
11684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11685$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11686else
11687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11688$as_echo "none" >&6; }
11689fi
11690max_cmd_len=$lt_cv_sys_max_cmd_len
11691
11692
11693
11694
11695
11696
11697: ${CP="cp -f"}
11698: ${MV="mv -f"}
11699: ${RM="rm -f"}
11700
11701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
11702$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
11703# Try some XSI features
11704xsi_shell=no
11705( _lt_dummy="a/b/c"
cristyda16f162011-02-19 23:52:17 +000011706 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
11707 = c,a/b,b/c, \
cristy73bd4a52010-10-05 11:24:23 +000011708 && eval 'test $(( 1 + 1 )) -eq 2 \
11709 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
11710 && xsi_shell=yes
11711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
11712$as_echo "$xsi_shell" >&6; }
11713
11714
11715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
11716$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
11717lt_shell_append=no
11718( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
11719 >/dev/null 2>&1 \
11720 && lt_shell_append=yes
11721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
11722$as_echo "$lt_shell_append" >&6; }
11723
11724
11725if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11726 lt_unset=unset
11727else
11728 lt_unset=false
11729fi
11730
11731
11732
11733
11734
11735# test EBCDIC or ASCII
11736case `echo X|tr X '\101'` in
11737 A) # ASCII based system
11738 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11739 lt_SP2NL='tr \040 \012'
11740 lt_NL2SP='tr \015\012 \040\040'
11741 ;;
11742 *) # EBCDIC based system
11743 lt_SP2NL='tr \100 \n'
11744 lt_NL2SP='tr \r\n \100\100'
11745 ;;
11746esac
11747
11748
11749
11750
11751
11752
11753
11754
11755
cristyda16f162011-02-19 23:52:17 +000011756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
11757$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
11758if ${lt_cv_to_host_file_cmd+:} false; then :
11759 $as_echo_n "(cached) " >&6
11760else
11761 case $host in
11762 *-*-mingw* )
11763 case $build in
11764 *-*-mingw* ) # actually msys
11765 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
11766 ;;
11767 *-*-cygwin* )
11768 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
11769 ;;
11770 * ) # otherwise, assume *nix
11771 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
11772 ;;
11773 esac
11774 ;;
11775 *-*-cygwin* )
11776 case $build in
11777 *-*-mingw* ) # actually msys
11778 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
11779 ;;
11780 *-*-cygwin* )
11781 lt_cv_to_host_file_cmd=func_convert_file_noop
11782 ;;
11783 * ) # otherwise, assume *nix
11784 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
11785 ;;
11786 esac
11787 ;;
11788 * ) # unhandled hosts (and "normal" native builds)
11789 lt_cv_to_host_file_cmd=func_convert_file_noop
11790 ;;
11791esac
11792
11793fi
11794
11795to_host_file_cmd=$lt_cv_to_host_file_cmd
11796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
11797$as_echo "$lt_cv_to_host_file_cmd" >&6; }
11798
11799
11800
11801
11802
11803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
11804$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
11805if ${lt_cv_to_tool_file_cmd+:} false; then :
11806 $as_echo_n "(cached) " >&6
11807else
11808 #assume ordinary cross tools, or native build.
11809lt_cv_to_tool_file_cmd=func_convert_file_noop
11810case $host in
11811 *-*-mingw* )
11812 case $build in
11813 *-*-mingw* ) # actually msys
11814 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
11815 ;;
11816 esac
11817 ;;
11818esac
11819
11820fi
11821
11822to_tool_file_cmd=$lt_cv_to_tool_file_cmd
11823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
11824$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
11825
11826
11827
11828
11829
cristy73bd4a52010-10-05 11:24:23 +000011830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11831$as_echo_n "checking for $LD option to reload object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011832if ${lt_cv_ld_reload_flag+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011833 $as_echo_n "(cached) " >&6
11834else
11835 lt_cv_ld_reload_flag='-r'
11836fi
11837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11838$as_echo "$lt_cv_ld_reload_flag" >&6; }
11839reload_flag=$lt_cv_ld_reload_flag
11840case $reload_flag in
11841"" | " "*) ;;
11842*) reload_flag=" $reload_flag" ;;
11843esac
11844reload_cmds='$LD$reload_flag -o $output$reload_objs'
11845case $host_os in
cristyda16f162011-02-19 23:52:17 +000011846 cygwin* | mingw* | pw32* | cegcc*)
11847 if test "$GCC" != yes; then
11848 reload_cmds=false
11849 fi
11850 ;;
cristy73bd4a52010-10-05 11:24:23 +000011851 darwin*)
11852 if test "$GCC" = yes; then
11853 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
11854 else
11855 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11856 fi
11857 ;;
11858esac
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868if test -n "$ac_tool_prefix"; then
11869 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11870set dummy ${ac_tool_prefix}objdump; ac_word=$2
11871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11872$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011873if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011874 $as_echo_n "(cached) " >&6
11875else
11876 if test -n "$OBJDUMP"; then
11877 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11878else
11879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11880for as_dir in $PATH
11881do
11882 IFS=$as_save_IFS
11883 test -z "$as_dir" && as_dir=.
11884 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011885 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011886 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11888 break 2
11889 fi
11890done
11891 done
11892IFS=$as_save_IFS
11893
11894fi
11895fi
11896OBJDUMP=$ac_cv_prog_OBJDUMP
11897if test -n "$OBJDUMP"; then
11898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11899$as_echo "$OBJDUMP" >&6; }
11900else
11901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11902$as_echo "no" >&6; }
11903fi
11904
11905
11906fi
11907if test -z "$ac_cv_prog_OBJDUMP"; then
11908 ac_ct_OBJDUMP=$OBJDUMP
11909 # Extract the first word of "objdump", so it can be a program name with args.
11910set dummy objdump; ac_word=$2
11911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11912$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011913if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011914 $as_echo_n "(cached) " >&6
11915else
11916 if test -n "$ac_ct_OBJDUMP"; then
11917 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11918else
11919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11920for as_dir in $PATH
11921do
11922 IFS=$as_save_IFS
11923 test -z "$as_dir" && as_dir=.
11924 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011926 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11928 break 2
11929 fi
11930done
11931 done
11932IFS=$as_save_IFS
11933
11934fi
11935fi
11936ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11937if test -n "$ac_ct_OBJDUMP"; then
11938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11939$as_echo "$ac_ct_OBJDUMP" >&6; }
11940else
11941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11942$as_echo "no" >&6; }
11943fi
11944
11945 if test "x$ac_ct_OBJDUMP" = x; then
11946 OBJDUMP="false"
11947 else
11948 case $cross_compiling:$ac_tool_warned in
11949yes:)
11950{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11951$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11952ac_tool_warned=yes ;;
11953esac
11954 OBJDUMP=$ac_ct_OBJDUMP
11955 fi
11956else
11957 OBJDUMP="$ac_cv_prog_OBJDUMP"
11958fi
11959
11960test -z "$OBJDUMP" && OBJDUMP=objdump
11961
11962
11963
11964
11965
11966
11967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11968$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011969if ${lt_cv_deplibs_check_method+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011970 $as_echo_n "(cached) " >&6
11971else
11972 lt_cv_file_magic_cmd='$MAGIC_CMD'
11973lt_cv_file_magic_test_file=
11974lt_cv_deplibs_check_method='unknown'
11975# Need to set the preceding variable on all platforms that support
11976# interlibrary dependencies.
11977# 'none' -- dependencies not supported.
11978# `unknown' -- same as none, but documents that we really don't know.
11979# 'pass_all' -- all dependencies passed with no checks.
11980# 'test_compile' -- check by making test program.
11981# 'file_magic [[regex]]' -- check by looking for files in library path
11982# which responds to the $file_magic_cmd with a given extended regex.
11983# If you have `file' or equivalent on your system and you're not sure
11984# whether `pass_all' will *always* work, you probably want this one.
11985
11986case $host_os in
11987aix[4-9]*)
11988 lt_cv_deplibs_check_method=pass_all
11989 ;;
11990
11991beos*)
11992 lt_cv_deplibs_check_method=pass_all
11993 ;;
11994
11995bsdi[45]*)
11996 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11997 lt_cv_file_magic_cmd='/usr/bin/file -L'
11998 lt_cv_file_magic_test_file=/shlib/libc.so
11999 ;;
12000
12001cygwin*)
12002 # func_win32_libid is a shell function defined in ltmain.sh
12003 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12004 lt_cv_file_magic_cmd='func_win32_libid'
12005 ;;
12006
12007mingw* | pw32*)
12008 # Base MSYS/MinGW do not provide the 'file' command needed by
12009 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12010 # unless we find 'file', for example because we are cross-compiling.
cristy0c60a692010-11-04 01:09:47 +000012011 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12012 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
cristy73bd4a52010-10-05 11:24:23 +000012013 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12014 lt_cv_file_magic_cmd='func_win32_libid'
12015 else
cristy0c60a692010-11-04 01:09:47 +000012016 # Keep this pattern in sync with the one in func_win32_libid.
12017 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
cristy73bd4a52010-10-05 11:24:23 +000012018 lt_cv_file_magic_cmd='$OBJDUMP -f'
12019 fi
12020 ;;
12021
cristy0c60a692010-11-04 01:09:47 +000012022cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000012023 # use the weaker test based on 'objdump'. See mingw*.
12024 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12025 lt_cv_file_magic_cmd='$OBJDUMP -f'
12026 ;;
12027
12028darwin* | rhapsody*)
12029 lt_cv_deplibs_check_method=pass_all
12030 ;;
12031
12032freebsd* | dragonfly*)
12033 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12034 case $host_cpu in
12035 i*86 )
12036 # Not sure whether the presence of OpenBSD here was a mistake.
12037 # Let's accept both of them until this is cleared up.
12038 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12039 lt_cv_file_magic_cmd=/usr/bin/file
12040 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12041 ;;
12042 esac
12043 else
12044 lt_cv_deplibs_check_method=pass_all
12045 fi
12046 ;;
12047
12048gnu*)
12049 lt_cv_deplibs_check_method=pass_all
12050 ;;
12051
cristy0c60a692010-11-04 01:09:47 +000012052haiku*)
12053 lt_cv_deplibs_check_method=pass_all
12054 ;;
12055
cristy73bd4a52010-10-05 11:24:23 +000012056hpux10.20* | hpux11*)
12057 lt_cv_file_magic_cmd=/usr/bin/file
12058 case $host_cpu in
12059 ia64*)
12060 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12061 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12062 ;;
12063 hppa*64*)
cristy0c60a692010-11-04 01:09:47 +000012064 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
cristy73bd4a52010-10-05 11:24:23 +000012065 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12066 ;;
12067 *)
cristy0c60a692010-11-04 01:09:47 +000012068 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
cristy73bd4a52010-10-05 11:24:23 +000012069 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12070 ;;
12071 esac
12072 ;;
12073
12074interix[3-9]*)
12075 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12076 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12077 ;;
12078
12079irix5* | irix6* | nonstopux*)
12080 case $LD in
12081 *-32|*"-32 ") libmagic=32-bit;;
12082 *-n32|*"-n32 ") libmagic=N32;;
12083 *-64|*"-64 ") libmagic=64-bit;;
12084 *) libmagic=never-match;;
12085 esac
12086 lt_cv_deplibs_check_method=pass_all
12087 ;;
12088
cristy99bd5232011-12-07 14:38:20 +000012089# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000012090linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000012091 lt_cv_deplibs_check_method=pass_all
12092 ;;
12093
12094netbsd*)
12095 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12096 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12097 else
12098 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12099 fi
12100 ;;
12101
12102newos6*)
12103 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12104 lt_cv_file_magic_cmd=/usr/bin/file
12105 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12106 ;;
12107
12108*nto* | *qnx*)
12109 lt_cv_deplibs_check_method=pass_all
12110 ;;
12111
12112openbsd*)
12113 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12114 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12115 else
12116 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12117 fi
12118 ;;
12119
12120osf3* | osf4* | osf5*)
12121 lt_cv_deplibs_check_method=pass_all
12122 ;;
12123
12124rdos*)
12125 lt_cv_deplibs_check_method=pass_all
12126 ;;
12127
12128solaris*)
12129 lt_cv_deplibs_check_method=pass_all
12130 ;;
12131
12132sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12133 lt_cv_deplibs_check_method=pass_all
12134 ;;
12135
12136sysv4 | sysv4.3*)
12137 case $host_vendor in
12138 motorola)
12139 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
12140 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12141 ;;
12142 ncr)
12143 lt_cv_deplibs_check_method=pass_all
12144 ;;
12145 sequent)
12146 lt_cv_file_magic_cmd='/bin/file'
12147 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12148 ;;
12149 sni)
12150 lt_cv_file_magic_cmd='/bin/file'
12151 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12152 lt_cv_file_magic_test_file=/lib/libc.so
12153 ;;
12154 siemens)
12155 lt_cv_deplibs_check_method=pass_all
12156 ;;
12157 pc)
12158 lt_cv_deplibs_check_method=pass_all
12159 ;;
12160 esac
12161 ;;
12162
12163tpf*)
12164 lt_cv_deplibs_check_method=pass_all
12165 ;;
12166esac
12167
12168fi
12169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12170$as_echo "$lt_cv_deplibs_check_method" >&6; }
cristyda16f162011-02-19 23:52:17 +000012171
12172file_magic_glob=
12173want_nocaseglob=no
12174if test "$build" = "$host"; then
12175 case $host_os in
12176 mingw* | pw32*)
12177 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
12178 want_nocaseglob=yes
12179 else
12180 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
12181 fi
12182 ;;
12183 esac
12184fi
12185
cristy73bd4a52010-10-05 11:24:23 +000012186file_magic_cmd=$lt_cv_file_magic_cmd
12187deplibs_check_method=$lt_cv_deplibs_check_method
12188test -z "$deplibs_check_method" && deplibs_check_method=unknown
12189
12190
12191
12192
12193
12194
12195
12196
12197
12198
12199
12200
cristyda16f162011-02-19 23:52:17 +000012201
12202
12203
12204
12205
12206
12207
12208
12209
12210
cristy73bd4a52010-10-05 11:24:23 +000012211if test -n "$ac_tool_prefix"; then
cristyda16f162011-02-19 23:52:17 +000012212 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12213set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000012214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12215$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012216if ${ac_cv_prog_DLLTOOL+:} false; then :
12217 $as_echo_n "(cached) " >&6
12218else
12219 if test -n "$DLLTOOL"; then
12220 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12221else
12222as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12223for as_dir in $PATH
12224do
12225 IFS=$as_save_IFS
12226 test -z "$as_dir" && as_dir=.
12227 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012228 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012229 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12231 break 2
12232 fi
12233done
12234 done
12235IFS=$as_save_IFS
12236
12237fi
12238fi
12239DLLTOOL=$ac_cv_prog_DLLTOOL
12240if test -n "$DLLTOOL"; then
12241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12242$as_echo "$DLLTOOL" >&6; }
12243else
12244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12245$as_echo "no" >&6; }
12246fi
12247
12248
12249fi
12250if test -z "$ac_cv_prog_DLLTOOL"; then
12251 ac_ct_DLLTOOL=$DLLTOOL
12252 # Extract the first word of "dlltool", so it can be a program name with args.
12253set dummy dlltool; ac_word=$2
12254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12255$as_echo_n "checking for $ac_word... " >&6; }
12256if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
12257 $as_echo_n "(cached) " >&6
12258else
12259 if test -n "$ac_ct_DLLTOOL"; then
12260 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12261else
12262as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12263for as_dir in $PATH
12264do
12265 IFS=$as_save_IFS
12266 test -z "$as_dir" && as_dir=.
12267 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012268 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012269 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12271 break 2
12272 fi
12273done
12274 done
12275IFS=$as_save_IFS
12276
12277fi
12278fi
12279ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12280if test -n "$ac_ct_DLLTOOL"; then
12281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12282$as_echo "$ac_ct_DLLTOOL" >&6; }
12283else
12284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12285$as_echo "no" >&6; }
12286fi
12287
12288 if test "x$ac_ct_DLLTOOL" = x; then
12289 DLLTOOL="false"
12290 else
12291 case $cross_compiling:$ac_tool_warned in
12292yes:)
12293{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12294$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12295ac_tool_warned=yes ;;
12296esac
12297 DLLTOOL=$ac_ct_DLLTOOL
12298 fi
12299else
12300 DLLTOOL="$ac_cv_prog_DLLTOOL"
12301fi
12302
12303test -z "$DLLTOOL" && DLLTOOL=dlltool
12304
12305
12306
12307
12308
12309
12310
12311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
12312$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
12313if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
12314 $as_echo_n "(cached) " >&6
12315else
12316 lt_cv_sharedlib_from_linklib_cmd='unknown'
12317
12318case $host_os in
12319cygwin* | mingw* | pw32* | cegcc*)
12320 # two different shell functions defined in ltmain.sh
12321 # decide which to use based on capabilities of $DLLTOOL
12322 case `$DLLTOOL --help 2>&1` in
12323 *--identify-strict*)
12324 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
12325 ;;
12326 *)
12327 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
12328 ;;
12329 esac
12330 ;;
12331*)
12332 # fallback: assume linklib IS sharedlib
12333 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
12334 ;;
12335esac
12336
12337fi
12338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
12339$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
12340sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
12341test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
12342
12343
12344
12345
12346
12347
12348
12349if test -n "$ac_tool_prefix"; then
12350 for ac_prog in ar
12351 do
12352 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12353set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12355$as_echo_n "checking for $ac_word... " >&6; }
12356if ${ac_cv_prog_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012357 $as_echo_n "(cached) " >&6
12358else
12359 if test -n "$AR"; then
12360 ac_cv_prog_AR="$AR" # Let the user override the test.
12361else
12362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12363for as_dir in $PATH
12364do
12365 IFS=$as_save_IFS
12366 test -z "$as_dir" && as_dir=.
12367 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012368 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012369 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000012370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12371 break 2
12372 fi
12373done
12374 done
12375IFS=$as_save_IFS
12376
12377fi
12378fi
12379AR=$ac_cv_prog_AR
12380if test -n "$AR"; then
12381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12382$as_echo "$AR" >&6; }
12383else
12384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12385$as_echo "no" >&6; }
12386fi
12387
12388
cristyda16f162011-02-19 23:52:17 +000012389 test -n "$AR" && break
12390 done
cristy73bd4a52010-10-05 11:24:23 +000012391fi
cristyda16f162011-02-19 23:52:17 +000012392if test -z "$AR"; then
cristy73bd4a52010-10-05 11:24:23 +000012393 ac_ct_AR=$AR
cristyda16f162011-02-19 23:52:17 +000012394 for ac_prog in ar
12395do
12396 # Extract the first word of "$ac_prog", so it can be a program name with args.
12397set dummy $ac_prog; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000012398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12399$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012400if ${ac_cv_prog_ac_ct_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012401 $as_echo_n "(cached) " >&6
12402else
12403 if test -n "$ac_ct_AR"; then
12404 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12405else
12406as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12407for as_dir in $PATH
12408do
12409 IFS=$as_save_IFS
12410 test -z "$as_dir" && as_dir=.
12411 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012412 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012413 ac_cv_prog_ac_ct_AR="$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000012414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12415 break 2
12416 fi
12417done
12418 done
12419IFS=$as_save_IFS
12420
12421fi
12422fi
12423ac_ct_AR=$ac_cv_prog_ac_ct_AR
12424if test -n "$ac_ct_AR"; then
12425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12426$as_echo "$ac_ct_AR" >&6; }
12427else
12428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12429$as_echo "no" >&6; }
12430fi
12431
cristyda16f162011-02-19 23:52:17 +000012432
12433 test -n "$ac_ct_AR" && break
12434done
12435
cristy73bd4a52010-10-05 11:24:23 +000012436 if test "x$ac_ct_AR" = x; then
12437 AR="false"
12438 else
12439 case $cross_compiling:$ac_tool_warned in
12440yes:)
12441{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12442$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12443ac_tool_warned=yes ;;
12444esac
12445 AR=$ac_ct_AR
12446 fi
cristy73bd4a52010-10-05 11:24:23 +000012447fi
12448
cristyda16f162011-02-19 23:52:17 +000012449: ${AR=ar}
12450: ${AR_FLAGS=cru}
cristy73bd4a52010-10-05 11:24:23 +000012451
12452
12453
12454
12455
12456
12457
12458
12459
12460
12461
cristyda16f162011-02-19 23:52:17 +000012462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
12463$as_echo_n "checking for archiver @FILE support... " >&6; }
12464if ${lt_cv_ar_at_file+:} false; then :
12465 $as_echo_n "(cached) " >&6
12466else
12467 lt_cv_ar_at_file=no
12468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12469/* end confdefs.h. */
12470
12471int
12472main ()
12473{
12474
12475 ;
12476 return 0;
12477}
12478_ACEOF
12479if ac_fn_c_try_compile "$LINENO"; then :
12480 echo conftest.$ac_objext > conftest.lst
12481 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
12482 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12483 (eval $lt_ar_try) 2>&5
12484 ac_status=$?
12485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12486 test $ac_status = 0; }
12487 if test "$ac_status" -eq 0; then
12488 # Ensure the archiver fails upon bogus file names.
12489 rm -f conftest.$ac_objext libconftest.a
12490 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12491 (eval $lt_ar_try) 2>&5
12492 ac_status=$?
12493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12494 test $ac_status = 0; }
12495 if test "$ac_status" -ne 0; then
12496 lt_cv_ar_at_file=@
12497 fi
12498 fi
12499 rm -f conftest.* libconftest.a
12500
12501fi
12502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12503
12504fi
12505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
12506$as_echo "$lt_cv_ar_at_file" >&6; }
12507
12508if test "x$lt_cv_ar_at_file" = xno; then
12509 archiver_list_spec=
12510else
12511 archiver_list_spec=$lt_cv_ar_at_file
12512fi
12513
12514
12515
12516
12517
12518
12519
cristy73bd4a52010-10-05 11:24:23 +000012520if test -n "$ac_tool_prefix"; then
12521 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12522set dummy ${ac_tool_prefix}strip; ac_word=$2
12523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12524$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012525if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012526 $as_echo_n "(cached) " >&6
12527else
12528 if test -n "$STRIP"; then
12529 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12530else
12531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12532for as_dir in $PATH
12533do
12534 IFS=$as_save_IFS
12535 test -z "$as_dir" && as_dir=.
12536 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012537 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012538 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12540 break 2
12541 fi
12542done
12543 done
12544IFS=$as_save_IFS
12545
12546fi
12547fi
12548STRIP=$ac_cv_prog_STRIP
12549if test -n "$STRIP"; then
12550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12551$as_echo "$STRIP" >&6; }
12552else
12553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12554$as_echo "no" >&6; }
12555fi
12556
12557
12558fi
12559if test -z "$ac_cv_prog_STRIP"; then
12560 ac_ct_STRIP=$STRIP
12561 # Extract the first word of "strip", so it can be a program name with args.
12562set dummy strip; ac_word=$2
12563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12564$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012565if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012566 $as_echo_n "(cached) " >&6
12567else
12568 if test -n "$ac_ct_STRIP"; then
12569 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12570else
12571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12572for as_dir in $PATH
12573do
12574 IFS=$as_save_IFS
12575 test -z "$as_dir" && as_dir=.
12576 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012577 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012578 ac_cv_prog_ac_ct_STRIP="strip"
12579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12580 break 2
12581 fi
12582done
12583 done
12584IFS=$as_save_IFS
12585
12586fi
12587fi
12588ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12589if test -n "$ac_ct_STRIP"; then
12590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12591$as_echo "$ac_ct_STRIP" >&6; }
12592else
12593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12594$as_echo "no" >&6; }
12595fi
12596
12597 if test "x$ac_ct_STRIP" = x; then
12598 STRIP=":"
12599 else
12600 case $cross_compiling:$ac_tool_warned in
12601yes:)
12602{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12603$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12604ac_tool_warned=yes ;;
12605esac
12606 STRIP=$ac_ct_STRIP
12607 fi
12608else
12609 STRIP="$ac_cv_prog_STRIP"
12610fi
12611
12612test -z "$STRIP" && STRIP=:
12613
12614
12615
12616
12617
12618
12619if test -n "$ac_tool_prefix"; then
12620 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12621set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12623$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012624if ${ac_cv_prog_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012625 $as_echo_n "(cached) " >&6
12626else
12627 if test -n "$RANLIB"; then
12628 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12629else
12630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12631for as_dir in $PATH
12632do
12633 IFS=$as_save_IFS
12634 test -z "$as_dir" && as_dir=.
12635 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012637 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12639 break 2
12640 fi
12641done
12642 done
12643IFS=$as_save_IFS
12644
12645fi
12646fi
12647RANLIB=$ac_cv_prog_RANLIB
12648if test -n "$RANLIB"; then
12649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12650$as_echo "$RANLIB" >&6; }
12651else
12652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12653$as_echo "no" >&6; }
12654fi
12655
12656
12657fi
12658if test -z "$ac_cv_prog_RANLIB"; then
12659 ac_ct_RANLIB=$RANLIB
12660 # Extract the first word of "ranlib", so it can be a program name with args.
12661set dummy ranlib; ac_word=$2
12662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12663$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012664if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012665 $as_echo_n "(cached) " >&6
12666else
12667 if test -n "$ac_ct_RANLIB"; then
12668 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12669else
12670as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12671for as_dir in $PATH
12672do
12673 IFS=$as_save_IFS
12674 test -z "$as_dir" && as_dir=.
12675 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012677 ac_cv_prog_ac_ct_RANLIB="ranlib"
12678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12679 break 2
12680 fi
12681done
12682 done
12683IFS=$as_save_IFS
12684
12685fi
12686fi
12687ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12688if test -n "$ac_ct_RANLIB"; then
12689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12690$as_echo "$ac_ct_RANLIB" >&6; }
12691else
12692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12693$as_echo "no" >&6; }
12694fi
12695
12696 if test "x$ac_ct_RANLIB" = x; then
12697 RANLIB=":"
12698 else
12699 case $cross_compiling:$ac_tool_warned in
12700yes:)
12701{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12702$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12703ac_tool_warned=yes ;;
12704esac
12705 RANLIB=$ac_ct_RANLIB
12706 fi
12707else
12708 RANLIB="$ac_cv_prog_RANLIB"
12709fi
12710
12711test -z "$RANLIB" && RANLIB=:
12712
12713
12714
12715
12716
12717
12718# Determine commands to create old-style static archives.
12719old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12720old_postinstall_cmds='chmod 644 $oldlib'
12721old_postuninstall_cmds=
12722
12723if test -n "$RANLIB"; then
12724 case $host_os in
12725 openbsd*)
cristy99bd5232011-12-07 14:38:20 +000012726 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000012727 ;;
12728 *)
cristy99bd5232011-12-07 14:38:20 +000012729 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000012730 ;;
12731 esac
cristy99bd5232011-12-07 14:38:20 +000012732 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000012733fi
12734
cristy0c60a692010-11-04 01:09:47 +000012735case $host_os in
12736 darwin*)
12737 lock_old_archive_extraction=yes ;;
12738 *)
12739 lock_old_archive_extraction=no ;;
12740esac
12741
12742
12743
12744
12745
12746
cristy73bd4a52010-10-05 11:24:23 +000012747
12748
12749
12750
12751
12752
12753
12754
12755
12756
12757
12758
12759
12760
12761
12762
12763
12764
12765
12766
12767
12768
12769
12770
12771
12772
12773
12774
12775
12776
12777
12778
12779
12780# If no C compiler was specified, use CC.
12781LTCC=${LTCC-"$CC"}
12782
12783# If no C compiler flags were specified, use CFLAGS.
12784LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12785
12786# Allow CC to be a program name with arguments.
12787compiler=$CC
12788
12789
12790# Check for command to grab the raw symbol name followed by C symbol from nm.
12791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12792$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012793if ${lt_cv_sys_global_symbol_pipe+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012794 $as_echo_n "(cached) " >&6
12795else
12796
12797# These are sane defaults that work on at least a few old systems.
12798# [They come from Ultrix. What could be older than Ultrix?!! ;)]
12799
12800# Character class describing NM global symbol codes.
12801symcode='[BCDEGRST]'
12802
12803# Regexp to match symbols that can be accessed directly from C.
12804sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12805
12806# Define system-specific variables.
12807case $host_os in
12808aix*)
12809 symcode='[BCDT]'
12810 ;;
12811cygwin* | mingw* | pw32* | cegcc*)
12812 symcode='[ABCDGISTW]'
12813 ;;
12814hpux*)
12815 if test "$host_cpu" = ia64; then
12816 symcode='[ABCDEGRST]'
12817 fi
12818 ;;
12819irix* | nonstopux*)
12820 symcode='[BCDEGRST]'
12821 ;;
12822osf*)
12823 symcode='[BCDEGQRST]'
12824 ;;
12825solaris*)
12826 symcode='[BDRT]'
12827 ;;
12828sco3.2v5*)
12829 symcode='[DT]'
12830 ;;
12831sysv4.2uw2*)
12832 symcode='[DT]'
12833 ;;
12834sysv5* | sco5v6* | unixware* | OpenUNIX*)
12835 symcode='[ABDT]'
12836 ;;
12837sysv4)
12838 symcode='[DFNSTU]'
12839 ;;
12840esac
12841
12842# If we're using GNU nm, then use its standard symbol codes.
12843case `$NM -V 2>&1` in
12844*GNU* | *'with BFD'*)
12845 symcode='[ABCDGIRSTW]' ;;
12846esac
12847
12848# Transform an extracted symbol line into a proper C declaration.
12849# Some systems (esp. on ia64) link data and code symbols differently,
12850# so use this general approach.
12851lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12852
12853# Transform an extracted symbol line into symbol name and symbol address
cristyda16f162011-02-19 23:52:17 +000012854lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
12855lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
cristy73bd4a52010-10-05 11:24:23 +000012856
12857# Handle CRLF in mingw tool chain
12858opt_cr=
12859case $build_os in
12860mingw*)
12861 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12862 ;;
12863esac
12864
12865# Try without a prefix underscore, then with it.
12866for ac_symprfx in "" "_"; do
12867
12868 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12869 symxfrm="\\1 $ac_symprfx\\2 \\2"
12870
12871 # Write the raw and C identifiers.
12872 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12873 # Fake it for dumpbin and say T for any non-static function
12874 # and D for any global variable.
12875 # Also find C++ and __fastcall symbols from MSVC++,
12876 # which start with @ or ?.
12877 lt_cv_sys_global_symbol_pipe="$AWK '"\
12878" {last_section=section; section=\$ 3};"\
cristy99bd5232011-12-07 14:38:20 +000012879" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
cristy73bd4a52010-10-05 11:24:23 +000012880" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12881" \$ 0!~/External *\|/{next};"\
12882" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12883" {if(hide[section]) next};"\
12884" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12885" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12886" s[1]~/^[@?]/{print s[1], s[1]; next};"\
12887" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12888" ' prfx=^$ac_symprfx"
12889 else
12890 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12891 fi
cristyda16f162011-02-19 23:52:17 +000012892 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
cristy73bd4a52010-10-05 11:24:23 +000012893
12894 # Check to see that the pipe works correctly.
12895 pipe_works=no
12896
12897 rm -f conftest*
12898 cat > conftest.$ac_ext <<_LT_EOF
12899#ifdef __cplusplus
12900extern "C" {
12901#endif
12902char nm_test_var;
12903void nm_test_func(void);
12904void nm_test_func(void){}
12905#ifdef __cplusplus
12906}
12907#endif
12908int main(){nm_test_var='a';nm_test_func();return(0);}
12909_LT_EOF
12910
12911 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12912 (eval $ac_compile) 2>&5
12913 ac_status=$?
12914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12915 test $ac_status = 0; }; then
12916 # Now try to grab the symbols.
12917 nlist=conftest.nm
cristy0c60a692010-11-04 01:09:47 +000012918 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12919 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
cristy73bd4a52010-10-05 11:24:23 +000012920 ac_status=$?
12921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12922 test $ac_status = 0; } && test -s "$nlist"; then
12923 # Try sorting and uniquifying the output.
12924 if sort "$nlist" | uniq > "$nlist"T; then
12925 mv -f "$nlist"T "$nlist"
12926 else
12927 rm -f "$nlist"T
12928 fi
12929
12930 # Make sure that we snagged all the symbols we need.
12931 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12932 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12933 cat <<_LT_EOF > conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000012934/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
12935#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
12936/* DATA imports from DLLs on WIN32 con't be const, because runtime
12937 relocations are performed -- see ld's documentation on pseudo-relocs. */
12938# define LT_DLSYM_CONST
12939#elif defined(__osf__)
12940/* This system does not cope well with relocations in const data. */
12941# define LT_DLSYM_CONST
12942#else
12943# define LT_DLSYM_CONST const
12944#endif
12945
cristy73bd4a52010-10-05 11:24:23 +000012946#ifdef __cplusplus
12947extern "C" {
12948#endif
12949
12950_LT_EOF
12951 # Now generate the symbol file.
12952 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12953
12954 cat <<_LT_EOF >> conftest.$ac_ext
12955
12956/* The mapping between symbol names and symbols. */
cristyda16f162011-02-19 23:52:17 +000012957LT_DLSYM_CONST struct {
cristy73bd4a52010-10-05 11:24:23 +000012958 const char *name;
12959 void *address;
12960}
12961lt__PROGRAM__LTX_preloaded_symbols[] =
12962{
12963 { "@PROGRAM@", (void *) 0 },
12964_LT_EOF
12965 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12966 cat <<\_LT_EOF >> conftest.$ac_ext
12967 {0, (void *) 0}
12968};
12969
12970/* This works around a problem in FreeBSD linker */
12971#ifdef FREEBSD_WORKAROUND
12972static const void *lt_preloaded_setup() {
12973 return lt__PROGRAM__LTX_preloaded_symbols;
12974}
12975#endif
12976
12977#ifdef __cplusplus
12978}
12979#endif
12980_LT_EOF
12981 # Now try linking the two files.
12982 mv conftest.$ac_objext conftstm.$ac_objext
cristyda16f162011-02-19 23:52:17 +000012983 lt_globsym_save_LIBS=$LIBS
12984 lt_globsym_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000012985 LIBS="conftstm.$ac_objext"
12986 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12987 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12988 (eval $ac_link) 2>&5
12989 ac_status=$?
12990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12991 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12992 pipe_works=yes
12993 fi
cristyda16f162011-02-19 23:52:17 +000012994 LIBS=$lt_globsym_save_LIBS
12995 CFLAGS=$lt_globsym_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000012996 else
12997 echo "cannot find nm_test_func in $nlist" >&5
12998 fi
12999 else
13000 echo "cannot find nm_test_var in $nlist" >&5
13001 fi
13002 else
13003 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13004 fi
13005 else
13006 echo "$progname: failed program was:" >&5
13007 cat conftest.$ac_ext >&5
13008 fi
13009 rm -rf conftest* conftst*
13010
13011 # Do not use the global_symbol_pipe unless it works.
13012 if test "$pipe_works" = yes; then
13013 break
13014 else
13015 lt_cv_sys_global_symbol_pipe=
13016 fi
13017done
13018
13019fi
13020
13021if test -z "$lt_cv_sys_global_symbol_pipe"; then
13022 lt_cv_sys_global_symbol_to_cdecl=
13023fi
13024if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13026$as_echo "failed" >&6; }
13027else
13028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13029$as_echo "ok" >&6; }
13030fi
13031
cristyda16f162011-02-19 23:52:17 +000013032# Response file support.
13033if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13034 nm_file_list_spec='@'
13035elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
13036 nm_file_list_spec='@'
13037fi
cristy73bd4a52010-10-05 11:24:23 +000013038
13039
13040
13041
13042
13043
13044
13045
13046
13047
13048
13049
13050
13051
13052
13053
13054
13055
13056
13057
13058
cristyda16f162011-02-19 23:52:17 +000013059
13060
13061
13062
13063
13064
13065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
13066$as_echo_n "checking for sysroot... " >&6; }
13067
13068# Check whether --with-sysroot was given.
13069if test "${with_sysroot+set}" = set; then :
13070 withval=$with_sysroot;
13071else
13072 with_sysroot=no
13073fi
13074
13075
13076lt_sysroot=
13077case ${with_sysroot} in #(
13078 yes)
13079 if test "$GCC" = yes; then
13080 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
13081 fi
13082 ;; #(
13083 /*)
13084 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
13085 ;; #(
13086 no|'')
13087 ;; #(
13088 *)
13089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
13090$as_echo "${with_sysroot}" >&6; }
13091 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
13092 ;;
13093esac
13094
13095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
13096$as_echo "${lt_sysroot:-no}" >&6; }
13097
13098
13099
13100
13101
cristy73bd4a52010-10-05 11:24:23 +000013102# Check whether --enable-libtool-lock was given.
13103if test "${enable_libtool_lock+set}" = set; then :
13104 enableval=$enable_libtool_lock;
13105fi
13106
13107test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13108
13109# Some flags need to be propagated to the compiler or linker for good
13110# libtool support.
13111case $host in
13112ia64-*-hpux*)
13113 # Find out which ABI we are using.
13114 echo 'int i;' > conftest.$ac_ext
13115 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13116 (eval $ac_compile) 2>&5
13117 ac_status=$?
13118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13119 test $ac_status = 0; }; then
13120 case `/usr/bin/file conftest.$ac_objext` in
13121 *ELF-32*)
13122 HPUX_IA64_MODE="32"
13123 ;;
13124 *ELF-64*)
13125 HPUX_IA64_MODE="64"
13126 ;;
13127 esac
13128 fi
13129 rm -rf conftest*
13130 ;;
13131*-*-irix6*)
13132 # Find out which ABI we are using.
cristy0c60a692010-11-04 01:09:47 +000013133 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000013134 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13135 (eval $ac_compile) 2>&5
13136 ac_status=$?
13137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13138 test $ac_status = 0; }; then
13139 if test "$lt_cv_prog_gnu_ld" = yes; then
13140 case `/usr/bin/file conftest.$ac_objext` in
13141 *32-bit*)
13142 LD="${LD-ld} -melf32bsmip"
13143 ;;
13144 *N32*)
13145 LD="${LD-ld} -melf32bmipn32"
13146 ;;
13147 *64-bit*)
13148 LD="${LD-ld} -melf64bmip"
13149 ;;
13150 esac
13151 else
13152 case `/usr/bin/file conftest.$ac_objext` in
13153 *32-bit*)
13154 LD="${LD-ld} -32"
13155 ;;
13156 *N32*)
13157 LD="${LD-ld} -n32"
13158 ;;
13159 *64-bit*)
13160 LD="${LD-ld} -64"
13161 ;;
13162 esac
13163 fi
13164 fi
13165 rm -rf conftest*
13166 ;;
13167
cristyd95b7a52013-10-23 13:12:53 +000013168x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
cristy73bd4a52010-10-05 11:24:23 +000013169s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13170 # Find out which ABI we are using.
13171 echo 'int i;' > conftest.$ac_ext
13172 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13173 (eval $ac_compile) 2>&5
13174 ac_status=$?
13175 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13176 test $ac_status = 0; }; then
13177 case `/usr/bin/file conftest.o` in
13178 *32-bit*)
13179 case $host in
13180 x86_64-*kfreebsd*-gnu)
13181 LD="${LD-ld} -m elf_i386_fbsd"
13182 ;;
13183 x86_64-*linux*)
13184 LD="${LD-ld} -m elf_i386"
13185 ;;
cristya5bda012013-11-03 18:05:38 +000013186 powerpc64le-*linux*)
cristyd95b7a52013-10-23 13:12:53 +000013187 LD="${LD-ld} -m elf32lppclinux"
13188 ;;
cristya5bda012013-11-03 18:05:38 +000013189 powerpc64-*linux*)
cristy73bd4a52010-10-05 11:24:23 +000013190 LD="${LD-ld} -m elf32ppclinux"
13191 ;;
13192 s390x-*linux*)
13193 LD="${LD-ld} -m elf_s390"
13194 ;;
13195 sparc64-*linux*)
13196 LD="${LD-ld} -m elf32_sparc"
13197 ;;
13198 esac
13199 ;;
13200 *64-bit*)
13201 case $host in
13202 x86_64-*kfreebsd*-gnu)
13203 LD="${LD-ld} -m elf_x86_64_fbsd"
13204 ;;
13205 x86_64-*linux*)
13206 LD="${LD-ld} -m elf_x86_64"
13207 ;;
cristyd95b7a52013-10-23 13:12:53 +000013208 powerpcle-*linux*)
13209 LD="${LD-ld} -m elf64lppc"
13210 ;;
13211 powerpc-*linux*)
cristy73bd4a52010-10-05 11:24:23 +000013212 LD="${LD-ld} -m elf64ppc"
13213 ;;
13214 s390*-*linux*|s390*-*tpf*)
13215 LD="${LD-ld} -m elf64_s390"
13216 ;;
13217 sparc*-*linux*)
13218 LD="${LD-ld} -m elf64_sparc"
13219 ;;
13220 esac
13221 ;;
13222 esac
13223 fi
13224 rm -rf conftest*
13225 ;;
13226
13227*-*-sco3.2v5*)
13228 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13229 SAVE_CFLAGS="$CFLAGS"
13230 CFLAGS="$CFLAGS -belf"
13231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13232$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013233if ${lt_cv_cc_needs_belf+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013234 $as_echo_n "(cached) " >&6
13235else
13236 ac_ext=c
13237ac_cpp='$CPP $CPPFLAGS'
13238ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13239ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13240ac_compiler_gnu=$ac_cv_c_compiler_gnu
13241
13242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13243/* end confdefs.h. */
13244
13245int
13246main ()
13247{
13248
13249 ;
13250 return 0;
13251}
13252_ACEOF
13253if ac_fn_c_try_link "$LINENO"; then :
13254 lt_cv_cc_needs_belf=yes
13255else
13256 lt_cv_cc_needs_belf=no
13257fi
13258rm -f core conftest.err conftest.$ac_objext \
13259 conftest$ac_exeext conftest.$ac_ext
13260 ac_ext=c
13261ac_cpp='$CPP $CPPFLAGS'
13262ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13263ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13264ac_compiler_gnu=$ac_cv_c_compiler_gnu
13265
13266fi
13267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13268$as_echo "$lt_cv_cc_needs_belf" >&6; }
13269 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13270 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13271 CFLAGS="$SAVE_CFLAGS"
13272 fi
13273 ;;
cristy99bd5232011-12-07 14:38:20 +000013274*-*solaris*)
cristy73bd4a52010-10-05 11:24:23 +000013275 # Find out which ABI we are using.
13276 echo 'int i;' > conftest.$ac_ext
13277 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13278 (eval $ac_compile) 2>&5
13279 ac_status=$?
13280 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13281 test $ac_status = 0; }; then
13282 case `/usr/bin/file conftest.o` in
13283 *64-bit*)
13284 case $lt_cv_prog_gnu_ld in
cristy99bd5232011-12-07 14:38:20 +000013285 yes*)
13286 case $host in
13287 i?86-*-solaris*)
13288 LD="${LD-ld} -m elf_x86_64"
13289 ;;
13290 sparc*-*-solaris*)
13291 LD="${LD-ld} -m elf64_sparc"
13292 ;;
13293 esac
13294 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
13295 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
13296 LD="${LD-ld}_sol2"
13297 fi
13298 ;;
cristy73bd4a52010-10-05 11:24:23 +000013299 *)
13300 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13301 LD="${LD-ld} -64"
13302 fi
13303 ;;
13304 esac
13305 ;;
13306 esac
13307 fi
13308 rm -rf conftest*
13309 ;;
13310esac
13311
13312need_locks="$enable_libtool_lock"
13313
cristyda16f162011-02-19 23:52:17 +000013314if test -n "$ac_tool_prefix"; then
13315 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
13316set dummy ${ac_tool_prefix}mt; ac_word=$2
13317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13318$as_echo_n "checking for $ac_word... " >&6; }
13319if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
13320 $as_echo_n "(cached) " >&6
13321else
13322 if test -n "$MANIFEST_TOOL"; then
13323 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
13324else
13325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13326for as_dir in $PATH
13327do
13328 IFS=$as_save_IFS
13329 test -z "$as_dir" && as_dir=.
13330 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013331 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000013332 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
13333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13334 break 2
13335 fi
13336done
13337 done
13338IFS=$as_save_IFS
13339
13340fi
13341fi
13342MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
13343if test -n "$MANIFEST_TOOL"; then
13344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
13345$as_echo "$MANIFEST_TOOL" >&6; }
13346else
13347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13348$as_echo "no" >&6; }
13349fi
13350
13351
13352fi
13353if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
13354 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
13355 # Extract the first word of "mt", so it can be a program name with args.
13356set dummy mt; ac_word=$2
13357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13358$as_echo_n "checking for $ac_word... " >&6; }
13359if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
13360 $as_echo_n "(cached) " >&6
13361else
13362 if test -n "$ac_ct_MANIFEST_TOOL"; then
13363 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
13364else
13365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13366for as_dir in $PATH
13367do
13368 IFS=$as_save_IFS
13369 test -z "$as_dir" && as_dir=.
13370 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013371 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000013372 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
13373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13374 break 2
13375 fi
13376done
13377 done
13378IFS=$as_save_IFS
13379
13380fi
13381fi
13382ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
13383if test -n "$ac_ct_MANIFEST_TOOL"; then
13384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
13385$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
13386else
13387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13388$as_echo "no" >&6; }
13389fi
13390
13391 if test "x$ac_ct_MANIFEST_TOOL" = x; then
13392 MANIFEST_TOOL=":"
13393 else
13394 case $cross_compiling:$ac_tool_warned in
13395yes:)
13396{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13397$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13398ac_tool_warned=yes ;;
13399esac
13400 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
13401 fi
13402else
13403 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
13404fi
13405
13406test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
13407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
13408$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
13409if ${lt_cv_path_mainfest_tool+:} false; then :
13410 $as_echo_n "(cached) " >&6
13411else
13412 lt_cv_path_mainfest_tool=no
13413 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
13414 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
13415 cat conftest.err >&5
13416 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
13417 lt_cv_path_mainfest_tool=yes
13418 fi
13419 rm -f conftest*
13420fi
13421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
13422$as_echo "$lt_cv_path_mainfest_tool" >&6; }
13423if test "x$lt_cv_path_mainfest_tool" != xyes; then
13424 MANIFEST_TOOL=:
13425fi
13426
13427
13428
13429
13430
cristy73bd4a52010-10-05 11:24:23 +000013431
13432 case $host_os in
13433 rhapsody* | darwin*)
13434 if test -n "$ac_tool_prefix"; then
13435 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13436set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13438$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013439if ${ac_cv_prog_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013440 $as_echo_n "(cached) " >&6
13441else
13442 if test -n "$DSYMUTIL"; then
13443 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13444else
13445as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13446for as_dir in $PATH
13447do
13448 IFS=$as_save_IFS
13449 test -z "$as_dir" && as_dir=.
13450 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013451 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013452 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13454 break 2
13455 fi
13456done
13457 done
13458IFS=$as_save_IFS
13459
13460fi
13461fi
13462DSYMUTIL=$ac_cv_prog_DSYMUTIL
13463if test -n "$DSYMUTIL"; then
13464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13465$as_echo "$DSYMUTIL" >&6; }
13466else
13467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13468$as_echo "no" >&6; }
13469fi
13470
13471
13472fi
13473if test -z "$ac_cv_prog_DSYMUTIL"; then
13474 ac_ct_DSYMUTIL=$DSYMUTIL
13475 # Extract the first word of "dsymutil", so it can be a program name with args.
13476set dummy dsymutil; ac_word=$2
13477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13478$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013479if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013480 $as_echo_n "(cached) " >&6
13481else
13482 if test -n "$ac_ct_DSYMUTIL"; then
13483 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13484else
13485as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13486for as_dir in $PATH
13487do
13488 IFS=$as_save_IFS
13489 test -z "$as_dir" && as_dir=.
13490 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013491 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013492 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13494 break 2
13495 fi
13496done
13497 done
13498IFS=$as_save_IFS
13499
13500fi
13501fi
13502ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13503if test -n "$ac_ct_DSYMUTIL"; then
13504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13505$as_echo "$ac_ct_DSYMUTIL" >&6; }
13506else
13507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13508$as_echo "no" >&6; }
13509fi
13510
13511 if test "x$ac_ct_DSYMUTIL" = x; then
13512 DSYMUTIL=":"
13513 else
13514 case $cross_compiling:$ac_tool_warned in
13515yes:)
13516{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13517$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13518ac_tool_warned=yes ;;
13519esac
13520 DSYMUTIL=$ac_ct_DSYMUTIL
13521 fi
13522else
13523 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13524fi
13525
13526 if test -n "$ac_tool_prefix"; then
13527 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13528set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13530$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013531if ${ac_cv_prog_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013532 $as_echo_n "(cached) " >&6
13533else
13534 if test -n "$NMEDIT"; then
13535 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13536else
13537as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13538for as_dir in $PATH
13539do
13540 IFS=$as_save_IFS
13541 test -z "$as_dir" && as_dir=.
13542 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013543 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013544 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13546 break 2
13547 fi
13548done
13549 done
13550IFS=$as_save_IFS
13551
13552fi
13553fi
13554NMEDIT=$ac_cv_prog_NMEDIT
13555if test -n "$NMEDIT"; then
13556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13557$as_echo "$NMEDIT" >&6; }
13558else
13559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13560$as_echo "no" >&6; }
13561fi
13562
13563
13564fi
13565if test -z "$ac_cv_prog_NMEDIT"; then
13566 ac_ct_NMEDIT=$NMEDIT
13567 # Extract the first word of "nmedit", so it can be a program name with args.
13568set dummy nmedit; ac_word=$2
13569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13570$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013571if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013572 $as_echo_n "(cached) " >&6
13573else
13574 if test -n "$ac_ct_NMEDIT"; then
13575 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13576else
13577as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13578for as_dir in $PATH
13579do
13580 IFS=$as_save_IFS
13581 test -z "$as_dir" && as_dir=.
13582 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013584 ac_cv_prog_ac_ct_NMEDIT="nmedit"
13585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13586 break 2
13587 fi
13588done
13589 done
13590IFS=$as_save_IFS
13591
13592fi
13593fi
13594ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13595if test -n "$ac_ct_NMEDIT"; then
13596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13597$as_echo "$ac_ct_NMEDIT" >&6; }
13598else
13599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13600$as_echo "no" >&6; }
13601fi
13602
13603 if test "x$ac_ct_NMEDIT" = x; then
13604 NMEDIT=":"
13605 else
13606 case $cross_compiling:$ac_tool_warned in
13607yes:)
13608{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13609$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13610ac_tool_warned=yes ;;
13611esac
13612 NMEDIT=$ac_ct_NMEDIT
13613 fi
13614else
13615 NMEDIT="$ac_cv_prog_NMEDIT"
13616fi
13617
13618 if test -n "$ac_tool_prefix"; then
13619 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13620set dummy ${ac_tool_prefix}lipo; ac_word=$2
13621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13622$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013623if ${ac_cv_prog_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013624 $as_echo_n "(cached) " >&6
13625else
13626 if test -n "$LIPO"; then
13627 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13628else
13629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13630for as_dir in $PATH
13631do
13632 IFS=$as_save_IFS
13633 test -z "$as_dir" && as_dir=.
13634 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013635 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013636 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13638 break 2
13639 fi
13640done
13641 done
13642IFS=$as_save_IFS
13643
13644fi
13645fi
13646LIPO=$ac_cv_prog_LIPO
13647if test -n "$LIPO"; then
13648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13649$as_echo "$LIPO" >&6; }
13650else
13651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13652$as_echo "no" >&6; }
13653fi
13654
13655
13656fi
13657if test -z "$ac_cv_prog_LIPO"; then
13658 ac_ct_LIPO=$LIPO
13659 # Extract the first word of "lipo", so it can be a program name with args.
13660set dummy lipo; ac_word=$2
13661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13662$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013663if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013664 $as_echo_n "(cached) " >&6
13665else
13666 if test -n "$ac_ct_LIPO"; then
13667 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13668else
13669as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13670for as_dir in $PATH
13671do
13672 IFS=$as_save_IFS
13673 test -z "$as_dir" && as_dir=.
13674 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013675 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013676 ac_cv_prog_ac_ct_LIPO="lipo"
13677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13678 break 2
13679 fi
13680done
13681 done
13682IFS=$as_save_IFS
13683
13684fi
13685fi
13686ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13687if test -n "$ac_ct_LIPO"; then
13688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13689$as_echo "$ac_ct_LIPO" >&6; }
13690else
13691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13692$as_echo "no" >&6; }
13693fi
13694
13695 if test "x$ac_ct_LIPO" = x; then
13696 LIPO=":"
13697 else
13698 case $cross_compiling:$ac_tool_warned in
13699yes:)
13700{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13701$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13702ac_tool_warned=yes ;;
13703esac
13704 LIPO=$ac_ct_LIPO
13705 fi
13706else
13707 LIPO="$ac_cv_prog_LIPO"
13708fi
13709
13710 if test -n "$ac_tool_prefix"; then
13711 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13712set dummy ${ac_tool_prefix}otool; ac_word=$2
13713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13714$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013715if ${ac_cv_prog_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013716 $as_echo_n "(cached) " >&6
13717else
13718 if test -n "$OTOOL"; then
13719 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13720else
13721as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13722for as_dir in $PATH
13723do
13724 IFS=$as_save_IFS
13725 test -z "$as_dir" && as_dir=.
13726 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013727 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013728 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13730 break 2
13731 fi
13732done
13733 done
13734IFS=$as_save_IFS
13735
13736fi
13737fi
13738OTOOL=$ac_cv_prog_OTOOL
13739if test -n "$OTOOL"; then
13740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13741$as_echo "$OTOOL" >&6; }
13742else
13743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13744$as_echo "no" >&6; }
13745fi
13746
13747
13748fi
13749if test -z "$ac_cv_prog_OTOOL"; then
13750 ac_ct_OTOOL=$OTOOL
13751 # Extract the first word of "otool", so it can be a program name with args.
13752set dummy otool; ac_word=$2
13753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13754$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013755if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013756 $as_echo_n "(cached) " >&6
13757else
13758 if test -n "$ac_ct_OTOOL"; then
13759 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13760else
13761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13762for as_dir in $PATH
13763do
13764 IFS=$as_save_IFS
13765 test -z "$as_dir" && as_dir=.
13766 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013768 ac_cv_prog_ac_ct_OTOOL="otool"
13769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13770 break 2
13771 fi
13772done
13773 done
13774IFS=$as_save_IFS
13775
13776fi
13777fi
13778ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13779if test -n "$ac_ct_OTOOL"; then
13780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13781$as_echo "$ac_ct_OTOOL" >&6; }
13782else
13783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13784$as_echo "no" >&6; }
13785fi
13786
13787 if test "x$ac_ct_OTOOL" = x; then
13788 OTOOL=":"
13789 else
13790 case $cross_compiling:$ac_tool_warned in
13791yes:)
13792{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13793$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13794ac_tool_warned=yes ;;
13795esac
13796 OTOOL=$ac_ct_OTOOL
13797 fi
13798else
13799 OTOOL="$ac_cv_prog_OTOOL"
13800fi
13801
13802 if test -n "$ac_tool_prefix"; then
13803 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13804set dummy ${ac_tool_prefix}otool64; ac_word=$2
13805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13806$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013807if ${ac_cv_prog_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013808 $as_echo_n "(cached) " >&6
13809else
13810 if test -n "$OTOOL64"; then
13811 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13812else
13813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13814for as_dir in $PATH
13815do
13816 IFS=$as_save_IFS
13817 test -z "$as_dir" && as_dir=.
13818 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013819 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013820 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13822 break 2
13823 fi
13824done
13825 done
13826IFS=$as_save_IFS
13827
13828fi
13829fi
13830OTOOL64=$ac_cv_prog_OTOOL64
13831if test -n "$OTOOL64"; then
13832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13833$as_echo "$OTOOL64" >&6; }
13834else
13835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13836$as_echo "no" >&6; }
13837fi
13838
13839
13840fi
13841if test -z "$ac_cv_prog_OTOOL64"; then
13842 ac_ct_OTOOL64=$OTOOL64
13843 # Extract the first word of "otool64", so it can be a program name with args.
13844set dummy otool64; ac_word=$2
13845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13846$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013847if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013848 $as_echo_n "(cached) " >&6
13849else
13850 if test -n "$ac_ct_OTOOL64"; then
13851 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13852else
13853as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13854for as_dir in $PATH
13855do
13856 IFS=$as_save_IFS
13857 test -z "$as_dir" && as_dir=.
13858 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013859 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013860 ac_cv_prog_ac_ct_OTOOL64="otool64"
13861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13862 break 2
13863 fi
13864done
13865 done
13866IFS=$as_save_IFS
13867
13868fi
13869fi
13870ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13871if test -n "$ac_ct_OTOOL64"; then
13872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13873$as_echo "$ac_ct_OTOOL64" >&6; }
13874else
13875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13876$as_echo "no" >&6; }
13877fi
13878
13879 if test "x$ac_ct_OTOOL64" = x; then
13880 OTOOL64=":"
13881 else
13882 case $cross_compiling:$ac_tool_warned in
13883yes:)
13884{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13885$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13886ac_tool_warned=yes ;;
13887esac
13888 OTOOL64=$ac_ct_OTOOL64
13889 fi
13890else
13891 OTOOL64="$ac_cv_prog_OTOOL64"
13892fi
13893
13894
13895
13896
13897
13898
13899
13900
13901
13902
13903
13904
13905
13906
13907
13908
13909
13910
13911
13912
13913
13914
13915
13916
13917
13918
13919
13920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13921$as_echo_n "checking for -single_module linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013922if ${lt_cv_apple_cc_single_mod+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013923 $as_echo_n "(cached) " >&6
13924else
13925 lt_cv_apple_cc_single_mod=no
13926 if test -z "${LT_MULTI_MODULE}"; then
13927 # By default we will add the -single_module flag. You can override
13928 # by either setting the environment variable LT_MULTI_MODULE
13929 # non-empty at configure time, or by adding -multi_module to the
13930 # link flags.
13931 rm -rf libconftest.dylib*
13932 echo "int foo(void){return 1;}" > conftest.c
13933 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13934-dynamiclib -Wl,-single_module conftest.c" >&5
13935 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13936 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13937 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000013938 # If there is a non-empty error log, and "single_module"
13939 # appears in it, assume the flag caused a linker warning
13940 if test -s conftest.err && $GREP single_module conftest.err; then
13941 cat conftest.err >&5
13942 # Otherwise, if the output was created with a 0 exit code from
13943 # the compiler, it worked.
13944 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
cristy73bd4a52010-10-05 11:24:23 +000013945 lt_cv_apple_cc_single_mod=yes
13946 else
13947 cat conftest.err >&5
13948 fi
13949 rm -rf libconftest.dylib*
13950 rm -f conftest.*
13951 fi
13952fi
13953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13954$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
cristy99bd5232011-12-07 14:38:20 +000013955
cristy73bd4a52010-10-05 11:24:23 +000013956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13957$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013958if ${lt_cv_ld_exported_symbols_list+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013959 $as_echo_n "(cached) " >&6
13960else
13961 lt_cv_ld_exported_symbols_list=no
13962 save_LDFLAGS=$LDFLAGS
13963 echo "_main" > conftest.sym
13964 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13966/* end confdefs.h. */
13967
13968int
13969main ()
13970{
13971
13972 ;
13973 return 0;
13974}
13975_ACEOF
13976if ac_fn_c_try_link "$LINENO"; then :
13977 lt_cv_ld_exported_symbols_list=yes
13978else
13979 lt_cv_ld_exported_symbols_list=no
13980fi
13981rm -f core conftest.err conftest.$ac_objext \
13982 conftest$ac_exeext conftest.$ac_ext
13983 LDFLAGS="$save_LDFLAGS"
13984
13985fi
13986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13987$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
cristy99bd5232011-12-07 14:38:20 +000013988
cristy0c60a692010-11-04 01:09:47 +000013989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13990$as_echo_n "checking for -force_load linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013991if ${lt_cv_ld_force_load+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000013992 $as_echo_n "(cached) " >&6
13993else
13994 lt_cv_ld_force_load=no
13995 cat > conftest.c << _LT_EOF
13996int forced_loaded() { return 2;}
13997_LT_EOF
13998 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13999 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14000 echo "$AR cru libconftest.a conftest.o" >&5
14001 $AR cru libconftest.a conftest.o 2>&5
14002 echo "$RANLIB libconftest.a" >&5
14003 $RANLIB libconftest.a 2>&5
14004 cat > conftest.c << _LT_EOF
14005int main() { return 0;}
14006_LT_EOF
14007 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14008 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14009 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000014010 if test -s conftest.err && $GREP force_load conftest.err; then
14011 cat conftest.err >&5
14012 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
cristy0c60a692010-11-04 01:09:47 +000014013 lt_cv_ld_force_load=yes
14014 else
14015 cat conftest.err >&5
14016 fi
14017 rm -f conftest.err libconftest.a conftest conftest.c
14018 rm -rf conftest.dSYM
14019
14020fi
14021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14022$as_echo "$lt_cv_ld_force_load" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000014023 case $host_os in
14024 rhapsody* | darwin1.[012])
14025 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14026 darwin1.*)
14027 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14028 darwin*) # darwin 5.x on
14029 # if running on 10.5 or later, the deployment target defaults
14030 # to the OS version, if on x86, and 10.4, the deployment
14031 # target defaults to 10.4. Don't you love it?
14032 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14033 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14034 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14035 10.[012]*)
14036 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14037 10.*)
14038 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14039 esac
14040 ;;
14041 esac
14042 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14043 _lt_dar_single_mod='$single_module'
14044 fi
14045 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14046 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14047 else
14048 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14049 fi
cristy0c60a692010-11-04 01:09:47 +000014050 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
cristy73bd4a52010-10-05 11:24:23 +000014051 _lt_dsymutil='~$DSYMUTIL $lib || :'
14052 else
14053 _lt_dsymutil=
14054 fi
14055 ;;
14056 esac
14057
14058for ac_header in dlfcn.h
14059do :
14060 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
14061"
cristyda16f162011-02-19 23:52:17 +000014062if test "x$ac_cv_header_dlfcn_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000014063 cat >>confdefs.h <<_ACEOF
14064#define HAVE_DLFCN_H 1
14065_ACEOF
14066
14067fi
14068
14069done
14070
14071
14072
cristy73bd4a52010-10-05 11:24:23 +000014073
cristyda16f162011-02-19 23:52:17 +000014074func_stripname_cnf ()
14075{
14076 case ${2} in
14077 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
14078 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
14079 esac
14080} # func_stripname_cnf
14081
14082
14083
cristy73bd4a52010-10-05 11:24:23 +000014084
14085
14086# Set options
14087enable_win32_dll=yes
14088
14089case $host in
cristy0c60a692010-11-04 01:09:47 +000014090*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000014091 if test -n "$ac_tool_prefix"; then
14092 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
14093set dummy ${ac_tool_prefix}as; ac_word=$2
14094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14095$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014096if ${ac_cv_prog_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014097 $as_echo_n "(cached) " >&6
14098else
14099 if test -n "$AS"; then
14100 ac_cv_prog_AS="$AS" # Let the user override the test.
14101else
14102as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14103for as_dir in $PATH
14104do
14105 IFS=$as_save_IFS
14106 test -z "$as_dir" && as_dir=.
14107 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000014108 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000014109 ac_cv_prog_AS="${ac_tool_prefix}as"
14110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14111 break 2
14112 fi
14113done
14114 done
14115IFS=$as_save_IFS
14116
14117fi
14118fi
14119AS=$ac_cv_prog_AS
14120if test -n "$AS"; then
14121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
14122$as_echo "$AS" >&6; }
14123else
14124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14125$as_echo "no" >&6; }
14126fi
14127
14128
14129fi
14130if test -z "$ac_cv_prog_AS"; then
14131 ac_ct_AS=$AS
14132 # Extract the first word of "as", so it can be a program name with args.
14133set dummy as; ac_word=$2
14134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14135$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014136if ${ac_cv_prog_ac_ct_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014137 $as_echo_n "(cached) " >&6
14138else
14139 if test -n "$ac_ct_AS"; then
14140 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
14141else
14142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14143for as_dir in $PATH
14144do
14145 IFS=$as_save_IFS
14146 test -z "$as_dir" && as_dir=.
14147 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000014148 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000014149 ac_cv_prog_ac_ct_AS="as"
14150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14151 break 2
14152 fi
14153done
14154 done
14155IFS=$as_save_IFS
14156
14157fi
14158fi
14159ac_ct_AS=$ac_cv_prog_ac_ct_AS
14160if test -n "$ac_ct_AS"; then
14161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
14162$as_echo "$ac_ct_AS" >&6; }
14163else
14164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14165$as_echo "no" >&6; }
14166fi
14167
14168 if test "x$ac_ct_AS" = x; then
14169 AS="false"
14170 else
14171 case $cross_compiling:$ac_tool_warned in
14172yes:)
14173{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14174$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14175ac_tool_warned=yes ;;
14176esac
14177 AS=$ac_ct_AS
14178 fi
14179else
14180 AS="$ac_cv_prog_AS"
14181fi
14182
14183 if test -n "$ac_tool_prefix"; then
14184 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
14185set dummy ${ac_tool_prefix}dlltool; ac_word=$2
14186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14187$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014188if ${ac_cv_prog_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014189 $as_echo_n "(cached) " >&6
14190else
14191 if test -n "$DLLTOOL"; then
14192 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
14193else
14194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14195for as_dir in $PATH
14196do
14197 IFS=$as_save_IFS
14198 test -z "$as_dir" && as_dir=.
14199 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000014200 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000014201 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
14202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14203 break 2
14204 fi
14205done
14206 done
14207IFS=$as_save_IFS
14208
14209fi
14210fi
14211DLLTOOL=$ac_cv_prog_DLLTOOL
14212if test -n "$DLLTOOL"; then
14213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
14214$as_echo "$DLLTOOL" >&6; }
14215else
14216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14217$as_echo "no" >&6; }
14218fi
14219
14220
14221fi
14222if test -z "$ac_cv_prog_DLLTOOL"; then
14223 ac_ct_DLLTOOL=$DLLTOOL
14224 # Extract the first word of "dlltool", so it can be a program name with args.
14225set dummy dlltool; ac_word=$2
14226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14227$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014228if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014229 $as_echo_n "(cached) " >&6
14230else
14231 if test -n "$ac_ct_DLLTOOL"; then
14232 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
14233else
14234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14235for as_dir in $PATH
14236do
14237 IFS=$as_save_IFS
14238 test -z "$as_dir" && as_dir=.
14239 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000014240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000014241 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
14242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14243 break 2
14244 fi
14245done
14246 done
14247IFS=$as_save_IFS
14248
14249fi
14250fi
14251ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
14252if test -n "$ac_ct_DLLTOOL"; then
14253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
14254$as_echo "$ac_ct_DLLTOOL" >&6; }
14255else
14256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14257$as_echo "no" >&6; }
14258fi
14259
14260 if test "x$ac_ct_DLLTOOL" = x; then
14261 DLLTOOL="false"
14262 else
14263 case $cross_compiling:$ac_tool_warned in
14264yes:)
14265{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14266$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14267ac_tool_warned=yes ;;
14268esac
14269 DLLTOOL=$ac_ct_DLLTOOL
14270 fi
14271else
14272 DLLTOOL="$ac_cv_prog_DLLTOOL"
14273fi
14274
14275 if test -n "$ac_tool_prefix"; then
14276 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
14277set dummy ${ac_tool_prefix}objdump; ac_word=$2
14278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14279$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014280if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014281 $as_echo_n "(cached) " >&6
14282else
14283 if test -n "$OBJDUMP"; then
14284 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
14285else
14286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14287for as_dir in $PATH
14288do
14289 IFS=$as_save_IFS
14290 test -z "$as_dir" && as_dir=.
14291 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000014292 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000014293 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
14294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14295 break 2
14296 fi
14297done
14298 done
14299IFS=$as_save_IFS
14300
14301fi
14302fi
14303OBJDUMP=$ac_cv_prog_OBJDUMP
14304if test -n "$OBJDUMP"; then
14305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
14306$as_echo "$OBJDUMP" >&6; }
14307else
14308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14309$as_echo "no" >&6; }
14310fi
14311
14312
14313fi
14314if test -z "$ac_cv_prog_OBJDUMP"; then
14315 ac_ct_OBJDUMP=$OBJDUMP
14316 # Extract the first word of "objdump", so it can be a program name with args.
14317set dummy objdump; ac_word=$2
14318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14319$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014320if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014321 $as_echo_n "(cached) " >&6
14322else
14323 if test -n "$ac_ct_OBJDUMP"; then
14324 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
14325else
14326as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14327for as_dir in $PATH
14328do
14329 IFS=$as_save_IFS
14330 test -z "$as_dir" && as_dir=.
14331 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000014332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000014333 ac_cv_prog_ac_ct_OBJDUMP="objdump"
14334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14335 break 2
14336 fi
14337done
14338 done
14339IFS=$as_save_IFS
14340
14341fi
14342fi
14343ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
14344if test -n "$ac_ct_OBJDUMP"; then
14345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
14346$as_echo "$ac_ct_OBJDUMP" >&6; }
14347else
14348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14349$as_echo "no" >&6; }
14350fi
14351
14352 if test "x$ac_ct_OBJDUMP" = x; then
14353 OBJDUMP="false"
14354 else
14355 case $cross_compiling:$ac_tool_warned in
14356yes:)
14357{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14358$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14359ac_tool_warned=yes ;;
14360esac
14361 OBJDUMP=$ac_ct_OBJDUMP
14362 fi
14363else
14364 OBJDUMP="$ac_cv_prog_OBJDUMP"
14365fi
14366
14367 ;;
14368esac
14369
14370test -z "$AS" && AS=as
14371
14372
14373
14374
14375
14376test -z "$DLLTOOL" && DLLTOOL=dlltool
14377
14378
14379
14380
14381
14382test -z "$OBJDUMP" && OBJDUMP=objdump
14383
14384
14385
14386
14387
14388
14389
14390
14391
14392 # Check whether --enable-shared was given.
14393if test "${enable_shared+set}" = set; then :
14394 enableval=$enable_shared; p=${PACKAGE-default}
14395 case $enableval in
14396 yes) enable_shared=yes ;;
14397 no) enable_shared=no ;;
14398 *)
14399 enable_shared=no
14400 # Look at the argument we got. We use all the common list separators.
14401 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14402 for pkg in $enableval; do
14403 IFS="$lt_save_ifs"
14404 if test "X$pkg" = "X$p"; then
14405 enable_shared=yes
14406 fi
14407 done
14408 IFS="$lt_save_ifs"
14409 ;;
14410 esac
14411else
14412 enable_shared=yes
14413fi
14414
14415
14416
14417
14418
14419
14420
14421
14422
14423 # Check whether --enable-static was given.
14424if test "${enable_static+set}" = set; then :
14425 enableval=$enable_static; p=${PACKAGE-default}
14426 case $enableval in
14427 yes) enable_static=yes ;;
14428 no) enable_static=no ;;
14429 *)
14430 enable_static=no
14431 # Look at the argument we got. We use all the common list separators.
14432 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14433 for pkg in $enableval; do
14434 IFS="$lt_save_ifs"
14435 if test "X$pkg" = "X$p"; then
14436 enable_static=yes
14437 fi
14438 done
14439 IFS="$lt_save_ifs"
14440 ;;
14441 esac
14442else
14443 enable_static=yes
14444fi
14445
14446
14447
14448
14449
14450
14451
14452
14453
14454
14455# Check whether --with-pic was given.
14456if test "${with_pic+set}" = set; then :
cristy99bd5232011-12-07 14:38:20 +000014457 withval=$with_pic; lt_p=${PACKAGE-default}
14458 case $withval in
14459 yes|no) pic_mode=$withval ;;
14460 *)
14461 pic_mode=default
14462 # Look at the argument we got. We use all the common list separators.
14463 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14464 for lt_pkg in $withval; do
14465 IFS="$lt_save_ifs"
14466 if test "X$lt_pkg" = "X$lt_p"; then
14467 pic_mode=yes
14468 fi
14469 done
14470 IFS="$lt_save_ifs"
14471 ;;
14472 esac
cristy73bd4a52010-10-05 11:24:23 +000014473else
14474 pic_mode=default
14475fi
14476
14477
14478test -z "$pic_mode" && pic_mode=default
14479
14480
14481
14482
14483
14484
14485
14486 # Check whether --enable-fast-install was given.
14487if test "${enable_fast_install+set}" = set; then :
14488 enableval=$enable_fast_install; p=${PACKAGE-default}
14489 case $enableval in
14490 yes) enable_fast_install=yes ;;
14491 no) enable_fast_install=no ;;
14492 *)
14493 enable_fast_install=no
14494 # Look at the argument we got. We use all the common list separators.
14495 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14496 for pkg in $enableval; do
14497 IFS="$lt_save_ifs"
14498 if test "X$pkg" = "X$p"; then
14499 enable_fast_install=yes
14500 fi
14501 done
14502 IFS="$lt_save_ifs"
14503 ;;
14504 esac
14505else
14506 enable_fast_install=yes
14507fi
14508
14509
14510
14511
14512
14513
14514
14515
14516
14517
14518
14519# This can be used to rebuild libtool when needed
14520LIBTOOL_DEPS="$ltmain"
14521
14522# Always use our own libtool.
14523LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14524
14525
14526
14527
14528
14529
14530
14531
14532
14533
14534
14535
14536
14537
14538
14539
14540
14541
14542
14543
14544
14545
14546
14547
14548
cristy0c60a692010-11-04 01:09:47 +000014549
cristy99bd5232011-12-07 14:38:20 +000014550
14551
14552
14553
cristy73bd4a52010-10-05 11:24:23 +000014554test -z "$LN_S" && LN_S="ln -s"
14555
14556
14557
14558
14559
14560
14561
14562
14563
14564
14565
14566
14567
14568
14569if test -n "${ZSH_VERSION+set}" ; then
14570 setopt NO_GLOB_SUBST
14571fi
14572
14573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14574$as_echo_n "checking for objdir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014575if ${lt_cv_objdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014576 $as_echo_n "(cached) " >&6
14577else
14578 rm -f .libs 2>/dev/null
14579mkdir .libs 2>/dev/null
14580if test -d .libs; then
14581 lt_cv_objdir=.libs
14582else
14583 # MS-DOS does not allow filenames that begin with a dot.
14584 lt_cv_objdir=_libs
14585fi
14586rmdir .libs 2>/dev/null
14587fi
14588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14589$as_echo "$lt_cv_objdir" >&6; }
14590objdir=$lt_cv_objdir
14591
14592
14593
14594
14595
14596cat >>confdefs.h <<_ACEOF
14597#define LT_OBJDIR "$lt_cv_objdir/"
14598_ACEOF
14599
14600
14601
14602
cristy73bd4a52010-10-05 11:24:23 +000014603case $host_os in
14604aix3*)
14605 # AIX sometimes has problems with the GCC collect2 program. For some
14606 # reason, if we set the COLLECT_NAMES environment variable, the problems
14607 # vanish in a puff of smoke.
14608 if test "X${COLLECT_NAMES+set}" != Xset; then
14609 COLLECT_NAMES=
14610 export COLLECT_NAMES
14611 fi
14612 ;;
14613esac
14614
cristy73bd4a52010-10-05 11:24:23 +000014615# Global variables:
14616ofile=libtool
14617can_build_shared=yes
14618
14619# All known linkers require a `.a' archive for static linking (except MSVC,
14620# which needs '.lib').
14621libext=a
14622
14623with_gnu_ld="$lt_cv_prog_gnu_ld"
14624
14625old_CC="$CC"
14626old_CFLAGS="$CFLAGS"
14627
14628# Set sane defaults for various variables
14629test -z "$CC" && CC=cc
14630test -z "$LTCC" && LTCC=$CC
14631test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14632test -z "$LD" && LD=ld
14633test -z "$ac_objext" && ac_objext=o
14634
14635for cc_temp in $compiler""; do
14636 case $cc_temp in
14637 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14638 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14639 \-*) ;;
14640 *) break;;
14641 esac
14642done
cristy0c60a692010-11-04 01:09:47 +000014643cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000014644
14645
14646# Only perform the check for file, if the check method requires it
14647test -z "$MAGIC_CMD" && MAGIC_CMD=file
14648case $deplibs_check_method in
14649file_magic*)
14650 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14652$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014653if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014654 $as_echo_n "(cached) " >&6
14655else
14656 case $MAGIC_CMD in
14657[\\/*] | ?:[\\/]*)
14658 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14659 ;;
14660*)
14661 lt_save_MAGIC_CMD="$MAGIC_CMD"
14662 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14663 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14664 for ac_dir in $ac_dummy; do
14665 IFS="$lt_save_ifs"
14666 test -z "$ac_dir" && ac_dir=.
14667 if test -f $ac_dir/${ac_tool_prefix}file; then
14668 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14669 if test -n "$file_magic_test_file"; then
14670 case $deplibs_check_method in
14671 "file_magic "*)
14672 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14673 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14674 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14675 $EGREP "$file_magic_regex" > /dev/null; then
14676 :
14677 else
14678 cat <<_LT_EOF 1>&2
14679
14680*** Warning: the command libtool uses to detect shared libraries,
14681*** $file_magic_cmd, produces output that libtool cannot recognize.
14682*** The result is that libtool may fail to recognize shared libraries
14683*** as such. This will affect the creation of libtool libraries that
14684*** depend on shared libraries, but programs linked with such libtool
14685*** libraries will work regardless of this problem. Nevertheless, you
14686*** may want to report the problem to your system manager and/or to
14687*** bug-libtool@gnu.org
14688
14689_LT_EOF
14690 fi ;;
14691 esac
14692 fi
14693 break
14694 fi
14695 done
14696 IFS="$lt_save_ifs"
14697 MAGIC_CMD="$lt_save_MAGIC_CMD"
14698 ;;
14699esac
14700fi
14701
14702MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14703if test -n "$MAGIC_CMD"; then
14704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14705$as_echo "$MAGIC_CMD" >&6; }
14706else
14707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14708$as_echo "no" >&6; }
14709fi
14710
14711
14712
14713
14714
14715if test -z "$lt_cv_path_MAGIC_CMD"; then
14716 if test -n "$ac_tool_prefix"; then
14717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14718$as_echo_n "checking for file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014719if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014720 $as_echo_n "(cached) " >&6
14721else
14722 case $MAGIC_CMD in
14723[\\/*] | ?:[\\/]*)
14724 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14725 ;;
14726*)
14727 lt_save_MAGIC_CMD="$MAGIC_CMD"
14728 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14729 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14730 for ac_dir in $ac_dummy; do
14731 IFS="$lt_save_ifs"
14732 test -z "$ac_dir" && ac_dir=.
14733 if test -f $ac_dir/file; then
14734 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14735 if test -n "$file_magic_test_file"; then
14736 case $deplibs_check_method in
14737 "file_magic "*)
14738 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14739 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14740 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14741 $EGREP "$file_magic_regex" > /dev/null; then
14742 :
14743 else
14744 cat <<_LT_EOF 1>&2
14745
14746*** Warning: the command libtool uses to detect shared libraries,
14747*** $file_magic_cmd, produces output that libtool cannot recognize.
14748*** The result is that libtool may fail to recognize shared libraries
14749*** as such. This will affect the creation of libtool libraries that
14750*** depend on shared libraries, but programs linked with such libtool
14751*** libraries will work regardless of this problem. Nevertheless, you
14752*** may want to report the problem to your system manager and/or to
14753*** bug-libtool@gnu.org
14754
14755_LT_EOF
14756 fi ;;
14757 esac
14758 fi
14759 break
14760 fi
14761 done
14762 IFS="$lt_save_ifs"
14763 MAGIC_CMD="$lt_save_MAGIC_CMD"
14764 ;;
14765esac
14766fi
14767
14768MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14769if test -n "$MAGIC_CMD"; then
14770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14771$as_echo "$MAGIC_CMD" >&6; }
14772else
14773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14774$as_echo "no" >&6; }
14775fi
14776
14777
14778 else
14779 MAGIC_CMD=:
14780 fi
14781fi
14782
14783 fi
14784 ;;
14785esac
14786
14787# Use C for the default configuration in the libtool script
14788
14789lt_save_CC="$CC"
14790ac_ext=c
14791ac_cpp='$CPP $CPPFLAGS'
14792ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14793ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14794ac_compiler_gnu=$ac_cv_c_compiler_gnu
14795
14796
14797# Source file extension for C test sources.
14798ac_ext=c
14799
14800# Object file extension for compiled C test sources.
14801objext=o
14802objext=$objext
14803
14804# Code to be used in simple compile tests
14805lt_simple_compile_test_code="int some_variable = 0;"
14806
14807# Code to be used in simple link tests
14808lt_simple_link_test_code='int main(){return(0);}'
14809
14810
14811
14812
14813
14814
14815
14816# If no C compiler was specified, use CC.
14817LTCC=${LTCC-"$CC"}
14818
14819# If no C compiler flags were specified, use CFLAGS.
14820LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14821
14822# Allow CC to be a program name with arguments.
14823compiler=$CC
14824
14825# Save the default compiler, since it gets overwritten when the other
14826# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14827compiler_DEFAULT=$CC
14828
14829# save warnings/boilerplate of simple test code
14830ac_outfile=conftest.$ac_objext
14831echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14832eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14833_lt_compiler_boilerplate=`cat conftest.err`
14834$RM conftest*
14835
14836ac_outfile=conftest.$ac_objext
14837echo "$lt_simple_link_test_code" >conftest.$ac_ext
14838eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14839_lt_linker_boilerplate=`cat conftest.err`
14840$RM -r conftest*
14841
14842
14843## CAVEAT EMPTOR:
14844## There is no encapsulation within the following macros, do not change
14845## the running order or otherwise move them around unless you know exactly
14846## what you are doing...
14847if test -n "$compiler"; then
14848
14849lt_prog_compiler_no_builtin_flag=
14850
14851if test "$GCC" = yes; then
cristy0c60a692010-11-04 01:09:47 +000014852 case $cc_basename in
14853 nvcc*)
14854 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14855 *)
14856 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14857 esac
cristy73bd4a52010-10-05 11:24:23 +000014858
14859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14860$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014861if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014862 $as_echo_n "(cached) " >&6
14863else
14864 lt_cv_prog_compiler_rtti_exceptions=no
14865 ac_outfile=conftest.$ac_objext
14866 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14867 lt_compiler_flag="-fno-rtti -fno-exceptions"
14868 # Insert the option either (1) after the last *FLAGS variable, or
14869 # (2) before a word containing "conftest.", or (3) at the end.
14870 # Note that $ac_compile itself does not contain backslashes and begins
14871 # with a dollar sign (not a hyphen), so the echo should work correctly.
14872 # The option is referenced via a variable to avoid confusing sed.
14873 lt_compile=`echo "$ac_compile" | $SED \
14874 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14875 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14876 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014877 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014878 (eval "$lt_compile" 2>conftest.err)
14879 ac_status=$?
14880 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014882 if (exit $ac_status) && test -s "$ac_outfile"; then
14883 # The compiler can only warn and ignore the option if not recognized
14884 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000014885 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014886 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14887 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14888 lt_cv_prog_compiler_rtti_exceptions=yes
14889 fi
14890 fi
14891 $RM conftest*
14892
14893fi
14894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14895$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14896
14897if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14898 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14899else
14900 :
14901fi
14902
14903fi
14904
14905
14906
14907
14908
14909
14910 lt_prog_compiler_wl=
14911lt_prog_compiler_pic=
14912lt_prog_compiler_static=
14913
cristy73bd4a52010-10-05 11:24:23 +000014914
14915 if test "$GCC" = yes; then
14916 lt_prog_compiler_wl='-Wl,'
14917 lt_prog_compiler_static='-static'
14918
14919 case $host_os in
14920 aix*)
14921 # All AIX code is PIC.
14922 if test "$host_cpu" = ia64; then
14923 # AIX 5 now supports IA64 processor
14924 lt_prog_compiler_static='-Bstatic'
14925 fi
14926 ;;
14927
14928 amigaos*)
14929 case $host_cpu in
14930 powerpc)
14931 # see comment about AmigaOS4 .so support
14932 lt_prog_compiler_pic='-fPIC'
14933 ;;
14934 m68k)
14935 # FIXME: we need at least 68020 code to build shared libraries, but
14936 # adding the `-m68020' flag to GCC prevents building anything better,
14937 # like `-m68040'.
14938 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14939 ;;
14940 esac
14941 ;;
14942
14943 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14944 # PIC is the default for these OSes.
14945 ;;
14946
14947 mingw* | cygwin* | pw32* | os2* | cegcc*)
14948 # This hack is so that the source file can tell whether it is being
14949 # built for inclusion in a dll (and should export symbols for example).
14950 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14951 # (--disable-auto-import) libraries
14952 lt_prog_compiler_pic='-DDLL_EXPORT'
14953 ;;
14954
14955 darwin* | rhapsody*)
14956 # PIC is the default on this platform
14957 # Common symbols not allowed in MH_DYLIB files
14958 lt_prog_compiler_pic='-fno-common'
14959 ;;
14960
cristy0c60a692010-11-04 01:09:47 +000014961 haiku*)
14962 # PIC is the default for Haiku.
14963 # The "-static" flag exists, but is broken.
14964 lt_prog_compiler_static=
14965 ;;
14966
cristy73bd4a52010-10-05 11:24:23 +000014967 hpux*)
14968 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14969 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14970 # sets the default TLS model and affects inlining.
14971 case $host_cpu in
14972 hppa*64*)
14973 # +Z the default
14974 ;;
14975 *)
14976 lt_prog_compiler_pic='-fPIC'
14977 ;;
14978 esac
14979 ;;
14980
14981 interix[3-9]*)
14982 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14983 # Instead, we relocate shared libraries at runtime.
14984 ;;
14985
14986 msdosdjgpp*)
14987 # Just because we use GCC doesn't mean we suddenly get shared libraries
14988 # on systems that don't support them.
14989 lt_prog_compiler_can_build_shared=no
14990 enable_shared=no
14991 ;;
14992
14993 *nto* | *qnx*)
14994 # QNX uses GNU C++, but need to define -shared option too, otherwise
14995 # it will coredump.
14996 lt_prog_compiler_pic='-fPIC -shared'
14997 ;;
14998
14999 sysv4*MP*)
15000 if test -d /usr/nec; then
15001 lt_prog_compiler_pic=-Kconform_pic
15002 fi
15003 ;;
15004
15005 *)
15006 lt_prog_compiler_pic='-fPIC'
15007 ;;
15008 esac
cristy0c60a692010-11-04 01:09:47 +000015009
15010 case $cc_basename in
15011 nvcc*) # Cuda Compiler Driver 2.2
15012 lt_prog_compiler_wl='-Xlinker '
cristy99bd5232011-12-07 14:38:20 +000015013 if test -n "$lt_prog_compiler_pic"; then
15014 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
15015 fi
cristy0c60a692010-11-04 01:09:47 +000015016 ;;
15017 esac
cristy73bd4a52010-10-05 11:24:23 +000015018 else
15019 # PORTME Check for flag to pass linker flags through the system compiler.
15020 case $host_os in
15021 aix*)
15022 lt_prog_compiler_wl='-Wl,'
15023 if test "$host_cpu" = ia64; then
15024 # AIX 5 now supports IA64 processor
15025 lt_prog_compiler_static='-Bstatic'
15026 else
15027 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15028 fi
15029 ;;
15030
15031 mingw* | cygwin* | pw32* | os2* | cegcc*)
15032 # This hack is so that the source file can tell whether it is being
15033 # built for inclusion in a dll (and should export symbols for example).
15034 lt_prog_compiler_pic='-DDLL_EXPORT'
15035 ;;
15036
15037 hpux9* | hpux10* | hpux11*)
15038 lt_prog_compiler_wl='-Wl,'
15039 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15040 # not for PA HP-UX.
15041 case $host_cpu in
15042 hppa*64*|ia64*)
15043 # +Z the default
15044 ;;
15045 *)
15046 lt_prog_compiler_pic='+Z'
15047 ;;
15048 esac
15049 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15050 lt_prog_compiler_static='${wl}-a ${wl}archive'
15051 ;;
15052
15053 irix5* | irix6* | nonstopux*)
15054 lt_prog_compiler_wl='-Wl,'
15055 # PIC (with -KPIC) is the default.
15056 lt_prog_compiler_static='-non_shared'
15057 ;;
15058
cristy0c60a692010-11-04 01:09:47 +000015059 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000015060 case $cc_basename in
15061 # old Intel for x86_64 which still supported -KPIC.
15062 ecc*)
15063 lt_prog_compiler_wl='-Wl,'
15064 lt_prog_compiler_pic='-KPIC'
15065 lt_prog_compiler_static='-static'
15066 ;;
15067 # icc used to be incompatible with GCC.
15068 # ICC 10 doesn't accept -KPIC any more.
15069 icc* | ifort*)
15070 lt_prog_compiler_wl='-Wl,'
15071 lt_prog_compiler_pic='-fPIC'
15072 lt_prog_compiler_static='-static'
15073 ;;
15074 # Lahey Fortran 8.1.
15075 lf95*)
15076 lt_prog_compiler_wl='-Wl,'
15077 lt_prog_compiler_pic='--shared'
15078 lt_prog_compiler_static='--static'
15079 ;;
cristyda16f162011-02-19 23:52:17 +000015080 nagfor*)
15081 # NAG Fortran compiler
15082 lt_prog_compiler_wl='-Wl,-Wl,,'
15083 lt_prog_compiler_pic='-PIC'
15084 lt_prog_compiler_static='-Bstatic'
15085 ;;
cristy0c60a692010-11-04 01:09:47 +000015086 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
cristy73bd4a52010-10-05 11:24:23 +000015087 # Portland Group compilers (*not* the Pentium gcc compiler,
15088 # which looks to be a dead project)
15089 lt_prog_compiler_wl='-Wl,'
15090 lt_prog_compiler_pic='-fpic'
15091 lt_prog_compiler_static='-Bstatic'
15092 ;;
15093 ccc*)
15094 lt_prog_compiler_wl='-Wl,'
15095 # All Alpha code is PIC.
15096 lt_prog_compiler_static='-non_shared'
15097 ;;
cristy0c60a692010-11-04 01:09:47 +000015098 xl* | bgxl* | bgf* | mpixl*)
15099 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000015100 lt_prog_compiler_wl='-Wl,'
15101 lt_prog_compiler_pic='-qpic'
15102 lt_prog_compiler_static='-qstaticlink'
15103 ;;
15104 *)
15105 case `$CC -V 2>&1 | sed 5q` in
cristy99bd5232011-12-07 14:38:20 +000015106 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
cristy0c60a692010-11-04 01:09:47 +000015107 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15108 lt_prog_compiler_pic='-KPIC'
15109 lt_prog_compiler_static='-Bstatic'
15110 lt_prog_compiler_wl=''
15111 ;;
cristy99bd5232011-12-07 14:38:20 +000015112 *Sun\ F* | *Sun*Fortran*)
15113 lt_prog_compiler_pic='-KPIC'
15114 lt_prog_compiler_static='-Bstatic'
15115 lt_prog_compiler_wl='-Qoption ld '
15116 ;;
cristy73bd4a52010-10-05 11:24:23 +000015117 *Sun\ C*)
15118 # Sun C 5.9
15119 lt_prog_compiler_pic='-KPIC'
15120 lt_prog_compiler_static='-Bstatic'
15121 lt_prog_compiler_wl='-Wl,'
15122 ;;
cristy99bd5232011-12-07 14:38:20 +000015123 *Intel*\ [CF]*Compiler*)
15124 lt_prog_compiler_wl='-Wl,'
15125 lt_prog_compiler_pic='-fPIC'
15126 lt_prog_compiler_static='-static'
15127 ;;
15128 *Portland\ Group*)
15129 lt_prog_compiler_wl='-Wl,'
15130 lt_prog_compiler_pic='-fpic'
15131 lt_prog_compiler_static='-Bstatic'
15132 ;;
cristy73bd4a52010-10-05 11:24:23 +000015133 esac
15134 ;;
15135 esac
15136 ;;
15137
15138 newsos6)
15139 lt_prog_compiler_pic='-KPIC'
15140 lt_prog_compiler_static='-Bstatic'
15141 ;;
15142
15143 *nto* | *qnx*)
15144 # QNX uses GNU C++, but need to define -shared option too, otherwise
15145 # it will coredump.
15146 lt_prog_compiler_pic='-fPIC -shared'
15147 ;;
15148
15149 osf3* | osf4* | osf5*)
15150 lt_prog_compiler_wl='-Wl,'
15151 # All OSF/1 code is PIC.
15152 lt_prog_compiler_static='-non_shared'
15153 ;;
15154
15155 rdos*)
15156 lt_prog_compiler_static='-non_shared'
15157 ;;
15158
15159 solaris*)
15160 lt_prog_compiler_pic='-KPIC'
15161 lt_prog_compiler_static='-Bstatic'
15162 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000015163 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
cristy73bd4a52010-10-05 11:24:23 +000015164 lt_prog_compiler_wl='-Qoption ld ';;
15165 *)
15166 lt_prog_compiler_wl='-Wl,';;
15167 esac
15168 ;;
15169
15170 sunos4*)
15171 lt_prog_compiler_wl='-Qoption ld '
15172 lt_prog_compiler_pic='-PIC'
15173 lt_prog_compiler_static='-Bstatic'
15174 ;;
15175
15176 sysv4 | sysv4.2uw2* | sysv4.3*)
15177 lt_prog_compiler_wl='-Wl,'
15178 lt_prog_compiler_pic='-KPIC'
15179 lt_prog_compiler_static='-Bstatic'
15180 ;;
15181
15182 sysv4*MP*)
15183 if test -d /usr/nec ;then
15184 lt_prog_compiler_pic='-Kconform_pic'
15185 lt_prog_compiler_static='-Bstatic'
15186 fi
15187 ;;
15188
15189 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15190 lt_prog_compiler_wl='-Wl,'
15191 lt_prog_compiler_pic='-KPIC'
15192 lt_prog_compiler_static='-Bstatic'
15193 ;;
15194
15195 unicos*)
15196 lt_prog_compiler_wl='-Wl,'
15197 lt_prog_compiler_can_build_shared=no
15198 ;;
15199
15200 uts4*)
15201 lt_prog_compiler_pic='-pic'
15202 lt_prog_compiler_static='-Bstatic'
15203 ;;
15204
15205 *)
15206 lt_prog_compiler_can_build_shared=no
15207 ;;
15208 esac
15209 fi
15210
15211case $host_os in
15212 # For platforms which do not support PIC, -DPIC is meaningless:
15213 *djgpp*)
15214 lt_prog_compiler_pic=
15215 ;;
15216 *)
15217 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15218 ;;
15219esac
cristy73bd4a52010-10-05 11:24:23 +000015220
cristyda16f162011-02-19 23:52:17 +000015221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15222$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15223if ${lt_cv_prog_compiler_pic+:} false; then :
15224 $as_echo_n "(cached) " >&6
15225else
15226 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
15227fi
15228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
15229$as_echo "$lt_cv_prog_compiler_pic" >&6; }
15230lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
cristy73bd4a52010-10-05 11:24:23 +000015231
15232#
15233# Check to make sure the PIC flag actually works.
15234#
15235if test -n "$lt_prog_compiler_pic"; then
15236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15237$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015238if ${lt_cv_prog_compiler_pic_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000015239 $as_echo_n "(cached) " >&6
15240else
15241 lt_cv_prog_compiler_pic_works=no
15242 ac_outfile=conftest.$ac_objext
15243 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15244 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15245 # Insert the option either (1) after the last *FLAGS variable, or
15246 # (2) before a word containing "conftest.", or (3) at the end.
15247 # Note that $ac_compile itself does not contain backslashes and begins
15248 # with a dollar sign (not a hyphen), so the echo should work correctly.
15249 # The option is referenced via a variable to avoid confusing sed.
15250 lt_compile=`echo "$ac_compile" | $SED \
15251 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15252 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15253 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000015254 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000015255 (eval "$lt_compile" 2>conftest.err)
15256 ac_status=$?
15257 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000015258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000015259 if (exit $ac_status) && test -s "$ac_outfile"; then
15260 # The compiler can only warn and ignore the option if not recognized
15261 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000015262 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000015263 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15264 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15265 lt_cv_prog_compiler_pic_works=yes
15266 fi
15267 fi
15268 $RM conftest*
15269
15270fi
15271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15272$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15273
15274if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15275 case $lt_prog_compiler_pic in
15276 "" | " "*) ;;
15277 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15278 esac
15279else
15280 lt_prog_compiler_pic=
15281 lt_prog_compiler_can_build_shared=no
15282fi
15283
15284fi
15285
15286
15287
15288
15289
15290
cristyda16f162011-02-19 23:52:17 +000015291
15292
15293
15294
15295
cristy73bd4a52010-10-05 11:24:23 +000015296#
15297# Check to make sure the static flag actually works.
15298#
15299wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15301$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015302if ${lt_cv_prog_compiler_static_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000015303 $as_echo_n "(cached) " >&6
15304else
15305 lt_cv_prog_compiler_static_works=no
15306 save_LDFLAGS="$LDFLAGS"
15307 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15308 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15309 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15310 # The linker can only warn and ignore the option if not recognized
15311 # So say no if there are warnings
15312 if test -s conftest.err; then
15313 # Append any errors to the config.log.
15314 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000015315 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000015316 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15317 if diff conftest.exp conftest.er2 >/dev/null; then
15318 lt_cv_prog_compiler_static_works=yes
15319 fi
15320 else
15321 lt_cv_prog_compiler_static_works=yes
15322 fi
15323 fi
15324 $RM -r conftest*
15325 LDFLAGS="$save_LDFLAGS"
15326
15327fi
15328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15329$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15330
15331if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15332 :
15333else
15334 lt_prog_compiler_static=
15335fi
15336
15337
15338
15339
15340
15341
15342
15343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15344$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015345if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000015346 $as_echo_n "(cached) " >&6
15347else
15348 lt_cv_prog_compiler_c_o=no
15349 $RM -r conftest 2>/dev/null
15350 mkdir conftest
15351 cd conftest
15352 mkdir out
15353 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15354
15355 lt_compiler_flag="-o out/conftest2.$ac_objext"
15356 # Insert the option either (1) after the last *FLAGS variable, or
15357 # (2) before a word containing "conftest.", or (3) at the end.
15358 # Note that $ac_compile itself does not contain backslashes and begins
15359 # with a dollar sign (not a hyphen), so the echo should work correctly.
15360 lt_compile=`echo "$ac_compile" | $SED \
15361 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15362 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15363 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000015364 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000015365 (eval "$lt_compile" 2>out/conftest.err)
15366 ac_status=$?
15367 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000015368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000015369 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15370 then
15371 # The compiler can only warn and ignore the option if not recognized
15372 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000015373 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000015374 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15375 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15376 lt_cv_prog_compiler_c_o=yes
15377 fi
15378 fi
15379 chmod u+w . 2>&5
15380 $RM conftest*
15381 # SGI C++ compiler will create directory out/ii_files/ for
15382 # template instantiation
15383 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15384 $RM out/* && rmdir out
15385 cd ..
15386 $RM -r conftest
15387 $RM conftest*
15388
15389fi
15390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15391$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15392
15393
15394
15395
15396
15397
15398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15399$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015400if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000015401 $as_echo_n "(cached) " >&6
15402else
15403 lt_cv_prog_compiler_c_o=no
15404 $RM -r conftest 2>/dev/null
15405 mkdir conftest
15406 cd conftest
15407 mkdir out
15408 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15409
15410 lt_compiler_flag="-o out/conftest2.$ac_objext"
15411 # Insert the option either (1) after the last *FLAGS variable, or
15412 # (2) before a word containing "conftest.", or (3) at the end.
15413 # Note that $ac_compile itself does not contain backslashes and begins
15414 # with a dollar sign (not a hyphen), so the echo should work correctly.
15415 lt_compile=`echo "$ac_compile" | $SED \
15416 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15417 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15418 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000015419 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000015420 (eval "$lt_compile" 2>out/conftest.err)
15421 ac_status=$?
15422 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000015423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000015424 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15425 then
15426 # The compiler can only warn and ignore the option if not recognized
15427 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000015428 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000015429 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15430 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15431 lt_cv_prog_compiler_c_o=yes
15432 fi
15433 fi
15434 chmod u+w . 2>&5
15435 $RM conftest*
15436 # SGI C++ compiler will create directory out/ii_files/ for
15437 # template instantiation
15438 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15439 $RM out/* && rmdir out
15440 cd ..
15441 $RM -r conftest
15442 $RM conftest*
15443
15444fi
15445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15446$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15447
15448
15449
15450
15451hard_links="nottested"
15452if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15453 # do not overwrite the value of need_locks provided by the user
15454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15455$as_echo_n "checking if we can lock with hard links... " >&6; }
15456 hard_links=yes
15457 $RM conftest*
15458 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15459 touch conftest.a
15460 ln conftest.a conftest.b 2>&5 || hard_links=no
15461 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15463$as_echo "$hard_links" >&6; }
15464 if test "$hard_links" = no; then
15465 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15466$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15467 need_locks=warn
15468 fi
15469else
15470 need_locks=no
15471fi
15472
15473
15474
15475
15476
15477
15478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15479$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15480
15481 runpath_var=
15482 allow_undefined_flag=
15483 always_export_symbols=no
15484 archive_cmds=
15485 archive_expsym_cmds=
15486 compiler_needs_object=no
15487 enable_shared_with_static_runtimes=no
15488 export_dynamic_flag_spec=
15489 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15490 hardcode_automatic=no
15491 hardcode_direct=no
15492 hardcode_direct_absolute=no
15493 hardcode_libdir_flag_spec=
cristy73bd4a52010-10-05 11:24:23 +000015494 hardcode_libdir_separator=
15495 hardcode_minus_L=no
15496 hardcode_shlibpath_var=unsupported
15497 inherit_rpath=no
15498 link_all_deplibs=unknown
15499 module_cmds=
15500 module_expsym_cmds=
15501 old_archive_from_new_cmds=
15502 old_archive_from_expsyms_cmds=
15503 thread_safe_flag_spec=
15504 whole_archive_flag_spec=
15505 # include_expsyms should be a list of space-separated symbols to be *always*
15506 # included in the symbol list
15507 include_expsyms=
15508 # exclude_expsyms can be an extended regexp of symbols to exclude
15509 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15510 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15511 # as well as any symbol that contains `d'.
15512 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15513 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15514 # platforms (ab)use it in PIC code, but their linkers get confused if
15515 # the symbol is explicitly referenced. Since portable code cannot
15516 # rely on this symbol name, it's probably fine to never include it in
15517 # preloaded symbol tables.
15518 # Exclude shared library initialization/finalization symbols.
15519 extract_expsyms_cmds=
15520
15521 case $host_os in
15522 cygwin* | mingw* | pw32* | cegcc*)
15523 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15524 # When not using gcc, we currently assume that we are using
15525 # Microsoft Visual C++.
15526 if test "$GCC" != yes; then
15527 with_gnu_ld=no
15528 fi
15529 ;;
15530 interix*)
15531 # we just hope/assume this is gcc and not c89 (= MSVC++)
15532 with_gnu_ld=yes
15533 ;;
15534 openbsd*)
15535 with_gnu_ld=no
15536 ;;
15537 esac
15538
15539 ld_shlibs=yes
cristy0c60a692010-11-04 01:09:47 +000015540
15541 # On some targets, GNU ld is compatible enough with the native linker
15542 # that we're better off using the native interface for both.
15543 lt_use_gnu_ld_interface=no
cristy73bd4a52010-10-05 11:24:23 +000015544 if test "$with_gnu_ld" = yes; then
cristy0c60a692010-11-04 01:09:47 +000015545 case $host_os in
15546 aix*)
15547 # The AIX port of GNU ld has always aspired to compatibility
15548 # with the native linker. However, as the warning in the GNU ld
15549 # block says, versions before 2.19.5* couldn't really create working
15550 # shared libraries, regardless of the interface used.
15551 case `$LD -v 2>&1` in
15552 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15553 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15554 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15555 *)
15556 lt_use_gnu_ld_interface=yes
15557 ;;
15558 esac
15559 ;;
15560 *)
15561 lt_use_gnu_ld_interface=yes
15562 ;;
15563 esac
15564 fi
15565
15566 if test "$lt_use_gnu_ld_interface" = yes; then
cristy73bd4a52010-10-05 11:24:23 +000015567 # If archive_cmds runs LD, not CC, wlarc should be empty
15568 wlarc='${wl}'
15569
15570 # Set some defaults for GNU ld with shared library support. These
15571 # are reset later if shared libraries are not supported. Putting them
15572 # here allows them to be overridden if necessary.
15573 runpath_var=LD_RUN_PATH
15574 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15575 export_dynamic_flag_spec='${wl}--export-dynamic'
15576 # ancient GNU ld didn't support --whole-archive et. al.
15577 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15578 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15579 else
15580 whole_archive_flag_spec=
15581 fi
15582 supports_anon_versioning=no
15583 case `$LD -v 2>&1` in
cristy0c60a692010-11-04 01:09:47 +000015584 *GNU\ gold*) supports_anon_versioning=yes ;;
cristy73bd4a52010-10-05 11:24:23 +000015585 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15586 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15587 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15588 *\ 2.11.*) ;; # other 2.11 versions
15589 *) supports_anon_versioning=yes ;;
15590 esac
15591
15592 # See if GNU ld supports shared libraries.
15593 case $host_os in
15594 aix[3-9]*)
15595 # On AIX/PPC, the GNU linker is very broken
15596 if test "$host_cpu" != ia64; then
15597 ld_shlibs=no
15598 cat <<_LT_EOF 1>&2
15599
cristy0c60a692010-11-04 01:09:47 +000015600*** Warning: the GNU linker, at least up to release 2.19, is reported
cristy73bd4a52010-10-05 11:24:23 +000015601*** to be unable to reliably create shared libraries on AIX.
15602*** Therefore, libtool is disabling shared libraries support. If you
cristy0c60a692010-11-04 01:09:47 +000015603*** really care for shared libraries, you may want to install binutils
15604*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15605*** You will then need to restart the configuration process.
cristy73bd4a52010-10-05 11:24:23 +000015606
15607_LT_EOF
15608 fi
15609 ;;
15610
15611 amigaos*)
15612 case $host_cpu in
15613 powerpc)
15614 # see comment about AmigaOS4 .so support
15615 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15616 archive_expsym_cmds=''
15617 ;;
15618 m68k)
15619 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
15620 hardcode_libdir_flag_spec='-L$libdir'
15621 hardcode_minus_L=yes
15622 ;;
15623 esac
15624 ;;
15625
15626 beos*)
15627 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15628 allow_undefined_flag=unsupported
15629 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15630 # support --undefined. This deserves some investigation. FIXME
15631 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15632 else
15633 ld_shlibs=no
15634 fi
15635 ;;
15636
15637 cygwin* | mingw* | pw32* | cegcc*)
15638 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15639 # as there is no search path for DLLs.
15640 hardcode_libdir_flag_spec='-L$libdir'
cristy0c60a692010-11-04 01:09:47 +000015641 export_dynamic_flag_spec='${wl}--export-all-symbols'
cristy73bd4a52010-10-05 11:24:23 +000015642 allow_undefined_flag=unsupported
15643 always_export_symbols=no
15644 enable_shared_with_static_runtimes=yes
cristyda16f162011-02-19 23:52:17 +000015645 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
15646 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
cristy73bd4a52010-10-05 11:24:23 +000015647
15648 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15649 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15650 # If the export-symbols file already is a .def file (1st line
15651 # is EXPORTS), use it as is; otherwise, prepend...
15652 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15653 cp $export_symbols $output_objdir/$soname.def;
15654 else
15655 echo EXPORTS > $output_objdir/$soname.def;
15656 cat $export_symbols >> $output_objdir/$soname.def;
15657 fi~
15658 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15659 else
15660 ld_shlibs=no
15661 fi
15662 ;;
15663
cristy0c60a692010-11-04 01:09:47 +000015664 haiku*)
15665 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15666 link_all_deplibs=yes
15667 ;;
15668
cristy73bd4a52010-10-05 11:24:23 +000015669 interix[3-9]*)
15670 hardcode_direct=no
15671 hardcode_shlibpath_var=no
15672 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15673 export_dynamic_flag_spec='${wl}-E'
15674 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15675 # Instead, shared libraries are loaded at an image base (0x10000000 by
15676 # default) and relocated if they conflict, which is a slow very memory
15677 # consuming and fragmenting process. To avoid this, we pick a random,
15678 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15679 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15680 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15681 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15682 ;;
15683
cristy0c60a692010-11-04 01:09:47 +000015684 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000015685 tmp_diet=no
15686 if test "$host_os" = linux-dietlibc; then
15687 case $cc_basename in
15688 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15689 esac
15690 fi
15691 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15692 && test "$tmp_diet" = no
15693 then
cristyda16f162011-02-19 23:52:17 +000015694 tmp_addflag=' $pic_flag'
cristy73bd4a52010-10-05 11:24:23 +000015695 tmp_sharedflag='-shared'
15696 case $cc_basename,$host_cpu in
15697 pgcc*) # Portland Group C compiler
cristy0c60a692010-11-04 01:09:47 +000015698 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
cristy73bd4a52010-10-05 11:24:23 +000015699 tmp_addflag=' $pic_flag'
15700 ;;
cristy0c60a692010-11-04 01:09:47 +000015701 pgf77* | pgf90* | pgf95* | pgfortran*)
15702 # Portland Group f77 and f90 compilers
15703 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
cristy73bd4a52010-10-05 11:24:23 +000015704 tmp_addflag=' $pic_flag -Mnomain' ;;
15705 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15706 tmp_addflag=' -i_dynamic' ;;
15707 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15708 tmp_addflag=' -i_dynamic -nofor_main' ;;
15709 ifc* | ifort*) # Intel Fortran compiler
15710 tmp_addflag=' -nofor_main' ;;
15711 lf95*) # Lahey Fortran 8.1
15712 whole_archive_flag_spec=
15713 tmp_sharedflag='--shared' ;;
cristy0c60a692010-11-04 01:09:47 +000015714 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cristy73bd4a52010-10-05 11:24:23 +000015715 tmp_sharedflag='-qmkshrobj'
15716 tmp_addflag= ;;
cristy0c60a692010-11-04 01:09:47 +000015717 nvcc*) # Cuda Compiler Driver 2.2
15718 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
15719 compiler_needs_object=yes
15720 ;;
cristy73bd4a52010-10-05 11:24:23 +000015721 esac
15722 case `$CC -V 2>&1 | sed 5q` in
15723 *Sun\ C*) # Sun C 5.9
cristy0c60a692010-11-04 01:09:47 +000015724 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
cristy73bd4a52010-10-05 11:24:23 +000015725 compiler_needs_object=yes
15726 tmp_sharedflag='-G' ;;
15727 *Sun\ F*) # Sun Fortran 8.3
15728 tmp_sharedflag='-G' ;;
15729 esac
15730 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15731
15732 if test "x$supports_anon_versioning" = xyes; then
15733 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15734 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15735 echo "local: *; };" >> $output_objdir/$libname.ver~
15736 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15737 fi
15738
15739 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000015740 xlf* | bgf* | bgxlf* | mpixlf*)
cristy73bd4a52010-10-05 11:24:23 +000015741 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15742 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
cristy99bd5232011-12-07 14:38:20 +000015743 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
cristy0c60a692010-11-04 01:09:47 +000015744 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000015745 if test "x$supports_anon_versioning" = xyes; then
15746 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15747 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15748 echo "local: *; };" >> $output_objdir/$libname.ver~
cristy0c60a692010-11-04 01:09:47 +000015749 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000015750 fi
15751 ;;
15752 esac
15753 else
15754 ld_shlibs=no
15755 fi
15756 ;;
15757
15758 netbsd*)
15759 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15760 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15761 wlarc=
15762 else
cristyda16f162011-02-19 23:52:17 +000015763 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15764 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000015765 fi
15766 ;;
15767
15768 solaris*)
15769 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15770 ld_shlibs=no
15771 cat <<_LT_EOF 1>&2
15772
15773*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15774*** create shared libraries on Solaris systems. Therefore, libtool
15775*** is disabling shared libraries support. We urge you to upgrade GNU
15776*** binutils to release 2.9.1 or newer. Another option is to modify
15777*** your PATH or compiler configuration so that the native linker is
15778*** used, and then restart.
15779
15780_LT_EOF
15781 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000015782 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15783 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000015784 else
15785 ld_shlibs=no
15786 fi
15787 ;;
15788
15789 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15790 case `$LD -v 2>&1` in
15791 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15792 ld_shlibs=no
15793 cat <<_LT_EOF 1>&2
15794
15795*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15796*** reliably create shared libraries on SCO systems. Therefore, libtool
15797*** is disabling shared libraries support. We urge you to upgrade GNU
15798*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15799*** your PATH or compiler configuration so that the native linker is
15800*** used, and then restart.
15801
15802_LT_EOF
15803 ;;
15804 *)
15805 # For security reasons, it is highly recommended that you always
15806 # use absolute paths for naming shared libraries, and exclude the
15807 # DT_RUNPATH tag from executables and libraries. But doing so
15808 # requires that you compile everything twice, which is a pain.
15809 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15810 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15811 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15812 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15813 else
15814 ld_shlibs=no
15815 fi
15816 ;;
15817 esac
15818 ;;
15819
15820 sunos4*)
15821 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15822 wlarc=
15823 hardcode_direct=yes
15824 hardcode_shlibpath_var=no
15825 ;;
15826
15827 *)
15828 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000015829 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15830 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000015831 else
15832 ld_shlibs=no
15833 fi
15834 ;;
15835 esac
15836
15837 if test "$ld_shlibs" = no; then
15838 runpath_var=
15839 hardcode_libdir_flag_spec=
15840 export_dynamic_flag_spec=
15841 whole_archive_flag_spec=
15842 fi
15843 else
15844 # PORTME fill in a description of your system's linker (not GNU ld)
15845 case $host_os in
15846 aix3*)
15847 allow_undefined_flag=unsupported
15848 always_export_symbols=yes
15849 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
15850 # Note: this linker hardcodes the directories in LIBPATH if there
15851 # are no directories specified by -L.
15852 hardcode_minus_L=yes
15853 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15854 # Neither direct hardcoding nor static linking is supported with a
15855 # broken collect2.
15856 hardcode_direct=unsupported
15857 fi
15858 ;;
15859
15860 aix[4-9]*)
15861 if test "$host_cpu" = ia64; then
15862 # On IA64, the linker does run time linking by default, so we don't
15863 # have to do anything special.
15864 aix_use_runtimelinking=no
15865 exp_sym_flag='-Bexport'
15866 no_entry_flag=""
15867 else
15868 # If we're using GNU nm, then we don't want the "-C" option.
15869 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000015870 # Also, AIX nm treats weak defined symbols like other global
15871 # defined symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000015872 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000015873 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
cristy73bd4a52010-10-05 11:24:23 +000015874 else
15875 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15876 fi
15877 aix_use_runtimelinking=no
15878
15879 # Test if we are trying to use run time linking or normal
15880 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15881 # need to do runtime linking.
15882 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15883 for ld_flag in $LDFLAGS; do
15884 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15885 aix_use_runtimelinking=yes
15886 break
15887 fi
15888 done
15889 ;;
15890 esac
15891
15892 exp_sym_flag='-bexport'
15893 no_entry_flag='-bnoentry'
15894 fi
15895
15896 # When large executables or shared objects are built, AIX ld can
15897 # have problems creating the table of contents. If linking a library
15898 # or program results in "error TOC overflow" add -mminimal-toc to
15899 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15900 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15901
15902 archive_cmds=''
15903 hardcode_direct=yes
15904 hardcode_direct_absolute=yes
15905 hardcode_libdir_separator=':'
15906 link_all_deplibs=yes
15907 file_list_spec='${wl}-f,'
15908
15909 if test "$GCC" = yes; then
15910 case $host_os in aix4.[012]|aix4.[012].*)
15911 # We only want to do this on AIX 4.2 and lower, the check
15912 # below for broken collect2 doesn't work under 4.3+
15913 collect2name=`${CC} -print-prog-name=collect2`
15914 if test -f "$collect2name" &&
15915 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15916 then
15917 # We have reworked collect2
15918 :
15919 else
15920 # We have old collect2
15921 hardcode_direct=unsupported
15922 # It fails to find uninstalled libraries when the uninstalled
15923 # path is not listed in the libpath. Setting hardcode_minus_L
15924 # to unsupported forces relinking
15925 hardcode_minus_L=yes
15926 hardcode_libdir_flag_spec='-L$libdir'
15927 hardcode_libdir_separator=
15928 fi
15929 ;;
15930 esac
15931 shared_flag='-shared'
15932 if test "$aix_use_runtimelinking" = yes; then
15933 shared_flag="$shared_flag "'${wl}-G'
15934 fi
15935 else
15936 # not using gcc
15937 if test "$host_cpu" = ia64; then
15938 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15939 # chokes on -Wl,-G. The following line is correct:
15940 shared_flag='-G'
15941 else
15942 if test "$aix_use_runtimelinking" = yes; then
15943 shared_flag='${wl}-G'
15944 else
15945 shared_flag='${wl}-bM:SRE'
15946 fi
15947 fi
15948 fi
15949
15950 export_dynamic_flag_spec='${wl}-bexpall'
15951 # It seems that -bexpall does not export symbols beginning with
15952 # underscore (_), so it is better to generate a list of symbols to export.
15953 always_export_symbols=yes
15954 if test "$aix_use_runtimelinking" = yes; then
15955 # Warning - without using the other runtime loading flags (-brtl),
15956 # -berok will link without error, but may produce a broken library.
15957 allow_undefined_flag='-berok'
15958 # Determine the default libpath from the value encoded in an
15959 # empty executable.
cristyda16f162011-02-19 23:52:17 +000015960 if test "${lt_cv_aix_libpath+set}" = set; then
15961 aix_libpath=$lt_cv_aix_libpath
15962else
15963 if ${lt_cv_aix_libpath_+:} false; then :
15964 $as_echo_n "(cached) " >&6
15965else
15966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015967/* end confdefs.h. */
15968
15969int
15970main ()
15971{
15972
15973 ;
15974 return 0;
15975}
15976_ACEOF
15977if ac_fn_c_try_link "$LINENO"; then :
15978
cristyda16f162011-02-19 23:52:17 +000015979 lt_aix_libpath_sed='
15980 /Import File Strings/,/^$/ {
15981 /^0/ {
15982 s/^0 *\([^ ]*\) *$/\1/
15983 p
15984 }
15985 }'
15986 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15987 # Check for a 64-bit object if we didn't find anything.
15988 if test -z "$lt_cv_aix_libpath_"; then
15989 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15990 fi
cristy73bd4a52010-10-05 11:24:23 +000015991fi
15992rm -f core conftest.err conftest.$ac_objext \
15993 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015994 if test -z "$lt_cv_aix_libpath_"; then
15995 lt_cv_aix_libpath_="/usr/lib:/lib"
15996 fi
15997
15998fi
15999
16000 aix_libpath=$lt_cv_aix_libpath_
16001fi
cristy73bd4a52010-10-05 11:24:23 +000016002
16003 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cristy0c60a692010-11-04 01:09:47 +000016004 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
cristy73bd4a52010-10-05 11:24:23 +000016005 else
16006 if test "$host_cpu" = ia64; then
16007 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
16008 allow_undefined_flag="-z nodefs"
16009 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
16010 else
16011 # Determine the default libpath from the value encoded in an
16012 # empty executable.
cristyda16f162011-02-19 23:52:17 +000016013 if test "${lt_cv_aix_libpath+set}" = set; then
16014 aix_libpath=$lt_cv_aix_libpath
16015else
16016 if ${lt_cv_aix_libpath_+:} false; then :
16017 $as_echo_n "(cached) " >&6
16018else
16019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000016020/* end confdefs.h. */
16021
16022int
16023main ()
16024{
16025
16026 ;
16027 return 0;
16028}
16029_ACEOF
16030if ac_fn_c_try_link "$LINENO"; then :
16031
cristyda16f162011-02-19 23:52:17 +000016032 lt_aix_libpath_sed='
16033 /Import File Strings/,/^$/ {
16034 /^0/ {
16035 s/^0 *\([^ ]*\) *$/\1/
16036 p
16037 }
16038 }'
16039 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16040 # Check for a 64-bit object if we didn't find anything.
16041 if test -z "$lt_cv_aix_libpath_"; then
16042 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16043 fi
cristy73bd4a52010-10-05 11:24:23 +000016044fi
16045rm -f core conftest.err conftest.$ac_objext \
16046 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000016047 if test -z "$lt_cv_aix_libpath_"; then
16048 lt_cv_aix_libpath_="/usr/lib:/lib"
16049 fi
16050
16051fi
16052
16053 aix_libpath=$lt_cv_aix_libpath_
16054fi
cristy73bd4a52010-10-05 11:24:23 +000016055
16056 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16057 # Warning - without using the other run time loading flags,
16058 # -berok will link without error, but may produce a broken library.
16059 no_undefined_flag=' ${wl}-bernotok'
16060 allow_undefined_flag=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000016061 if test "$with_gnu_ld" = yes; then
16062 # We only use this code for GNU lds that support --whole-archive.
16063 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16064 else
16065 # Exported symbols can be pulled into shared objects from archives
16066 whole_archive_flag_spec='$convenience'
16067 fi
cristy73bd4a52010-10-05 11:24:23 +000016068 archive_cmds_need_lc=yes
16069 # This is similar to how AIX traditionally builds its shared libraries.
16070 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16071 fi
16072 fi
16073 ;;
16074
16075 amigaos*)
16076 case $host_cpu in
16077 powerpc)
16078 # see comment about AmigaOS4 .so support
16079 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16080 archive_expsym_cmds=''
16081 ;;
16082 m68k)
16083 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
16084 hardcode_libdir_flag_spec='-L$libdir'
16085 hardcode_minus_L=yes
16086 ;;
16087 esac
16088 ;;
16089
16090 bsdi[45]*)
16091 export_dynamic_flag_spec=-rdynamic
16092 ;;
16093
16094 cygwin* | mingw* | pw32* | cegcc*)
16095 # When not using gcc, we currently assume that we are using
16096 # Microsoft Visual C++.
16097 # hardcode_libdir_flag_spec is actually meaningless, as there is
16098 # no search path for DLLs.
cristyda16f162011-02-19 23:52:17 +000016099 case $cc_basename in
16100 cl*)
16101 # Native MSVC
16102 hardcode_libdir_flag_spec=' '
16103 allow_undefined_flag=unsupported
16104 always_export_symbols=yes
16105 file_list_spec='@'
16106 # Tell ltmain to make .lib files, not .a files.
16107 libext=lib
16108 # Tell ltmain to make .dll files, not .so files.
16109 shrext_cmds=".dll"
16110 # FIXME: Setting linknames here is a bad hack.
16111 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
16112 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16113 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
16114 else
16115 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
16116 fi~
16117 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
16118 linknames='
16119 # The linker will not automatically build a static lib if we build a DLL.
16120 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
16121 enable_shared_with_static_runtimes=yes
cristy99bd5232011-12-07 14:38:20 +000016122 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
cristyda16f162011-02-19 23:52:17 +000016123 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16124 # Don't use ranlib
16125 old_postinstall_cmds='chmod 644 $oldlib'
16126 postlink_cmds='lt_outputfile="@OUTPUT@"~
16127 lt_tool_outputfile="@TOOL_OUTPUT@"~
16128 case $lt_outputfile in
16129 *.exe|*.EXE) ;;
16130 *)
16131 lt_outputfile="$lt_outputfile.exe"
16132 lt_tool_outputfile="$lt_tool_outputfile.exe"
16133 ;;
16134 esac~
16135 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
16136 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
16137 $RM "$lt_outputfile.manifest";
16138 fi'
16139 ;;
16140 *)
16141 # Assume MSVC wrapper
16142 hardcode_libdir_flag_spec=' '
16143 allow_undefined_flag=unsupported
16144 # Tell ltmain to make .lib files, not .a files.
16145 libext=lib
16146 # Tell ltmain to make .dll files, not .so files.
16147 shrext_cmds=".dll"
16148 # FIXME: Setting linknames here is a bad hack.
16149 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16150 # The linker will automatically build a .lib file if we build a DLL.
16151 old_archive_from_new_cmds='true'
16152 # FIXME: Should let the user specify the lib program.
16153 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16154 enable_shared_with_static_runtimes=yes
16155 ;;
16156 esac
cristy73bd4a52010-10-05 11:24:23 +000016157 ;;
16158
16159 darwin* | rhapsody*)
16160
16161
16162 archive_cmds_need_lc=no
16163 hardcode_direct=no
16164 hardcode_automatic=yes
16165 hardcode_shlibpath_var=unsupported
cristy0c60a692010-11-04 01:09:47 +000016166 if test "$lt_cv_ld_force_load" = "yes"; then
16167 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
cristy99bd5232011-12-07 14:38:20 +000016168
cristy0c60a692010-11-04 01:09:47 +000016169 else
16170 whole_archive_flag_spec=''
16171 fi
cristy73bd4a52010-10-05 11:24:23 +000016172 link_all_deplibs=yes
16173 allow_undefined_flag="$_lt_dar_allow_undefined"
16174 case $cc_basename in
16175 ifort*) _lt_dar_can_shared=yes ;;
16176 *) _lt_dar_can_shared=$GCC ;;
16177 esac
16178 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000016179 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000016180 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16181 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16182 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
16183 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
16184
16185 else
16186 ld_shlibs=no
16187 fi
16188
16189 ;;
16190
16191 dgux*)
16192 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16193 hardcode_libdir_flag_spec='-L$libdir'
16194 hardcode_shlibpath_var=no
16195 ;;
16196
cristy73bd4a52010-10-05 11:24:23 +000016197 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16198 # support. Future versions do this automatically, but an explicit c++rt0.o
16199 # does not break anything, and helps significantly (at the cost of a little
16200 # extra space).
16201 freebsd2.2*)
16202 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16203 hardcode_libdir_flag_spec='-R$libdir'
16204 hardcode_direct=yes
16205 hardcode_shlibpath_var=no
16206 ;;
16207
16208 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
cristy99bd5232011-12-07 14:38:20 +000016209 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000016210 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16211 hardcode_direct=yes
16212 hardcode_minus_L=yes
16213 hardcode_shlibpath_var=no
16214 ;;
16215
16216 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16217 freebsd* | dragonfly*)
cristyda16f162011-02-19 23:52:17 +000016218 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000016219 hardcode_libdir_flag_spec='-R$libdir'
16220 hardcode_direct=yes
16221 hardcode_shlibpath_var=no
16222 ;;
16223
16224 hpux9*)
16225 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000016226 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
cristy73bd4a52010-10-05 11:24:23 +000016227 else
16228 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16229 fi
16230 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16231 hardcode_libdir_separator=:
16232 hardcode_direct=yes
16233
16234 # hardcode_minus_L: Not really in the search PATH,
16235 # but as the default location of the library.
16236 hardcode_minus_L=yes
16237 export_dynamic_flag_spec='${wl}-E'
16238 ;;
16239
16240 hpux10*)
cristy0c60a692010-11-04 01:09:47 +000016241 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000016242 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000016243 else
16244 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16245 fi
16246 if test "$with_gnu_ld" = no; then
16247 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
cristy73bd4a52010-10-05 11:24:23 +000016248 hardcode_libdir_separator=:
16249 hardcode_direct=yes
16250 hardcode_direct_absolute=yes
16251 export_dynamic_flag_spec='${wl}-E'
16252 # hardcode_minus_L: Not really in the search PATH,
16253 # but as the default location of the library.
16254 hardcode_minus_L=yes
16255 fi
16256 ;;
16257
16258 hpux11*)
cristy0c60a692010-11-04 01:09:47 +000016259 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristy73bd4a52010-10-05 11:24:23 +000016260 case $host_cpu in
16261 hppa*64*)
16262 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16263 ;;
16264 ia64*)
cristyda16f162011-02-19 23:52:17 +000016265 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000016266 ;;
16267 *)
cristyda16f162011-02-19 23:52:17 +000016268 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000016269 ;;
16270 esac
16271 else
16272 case $host_cpu in
16273 hppa*64*)
16274 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16275 ;;
16276 ia64*)
16277 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16278 ;;
16279 *)
cristy0c60a692010-11-04 01:09:47 +000016280
16281 # Older versions of the 11.00 compiler do not understand -b yet
16282 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16284$as_echo_n "checking if $CC understands -b... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016285if ${lt_cv_prog_compiler__b+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000016286 $as_echo_n "(cached) " >&6
16287else
16288 lt_cv_prog_compiler__b=no
16289 save_LDFLAGS="$LDFLAGS"
16290 LDFLAGS="$LDFLAGS -b"
16291 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16292 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16293 # The linker can only warn and ignore the option if not recognized
16294 # So say no if there are warnings
16295 if test -s conftest.err; then
16296 # Append any errors to the config.log.
16297 cat conftest.err 1>&5
16298 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16299 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16300 if diff conftest.exp conftest.er2 >/dev/null; then
16301 lt_cv_prog_compiler__b=yes
16302 fi
16303 else
16304 lt_cv_prog_compiler__b=yes
16305 fi
16306 fi
16307 $RM -r conftest*
16308 LDFLAGS="$save_LDFLAGS"
16309
16310fi
16311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16312$as_echo "$lt_cv_prog_compiler__b" >&6; }
16313
16314if test x"$lt_cv_prog_compiler__b" = xyes; then
16315 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16316else
16317 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16318fi
16319
cristy73bd4a52010-10-05 11:24:23 +000016320 ;;
16321 esac
16322 fi
16323 if test "$with_gnu_ld" = no; then
16324 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16325 hardcode_libdir_separator=:
16326
16327 case $host_cpu in
16328 hppa*64*|ia64*)
16329 hardcode_direct=no
16330 hardcode_shlibpath_var=no
16331 ;;
16332 *)
16333 hardcode_direct=yes
16334 hardcode_direct_absolute=yes
16335 export_dynamic_flag_spec='${wl}-E'
16336
16337 # hardcode_minus_L: Not really in the search PATH,
16338 # but as the default location of the library.
16339 hardcode_minus_L=yes
16340 ;;
16341 esac
16342 fi
16343 ;;
16344
16345 irix5* | irix6* | nonstopux*)
16346 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000016347 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000016348 # Try to use the -exported_symbol ld option, if it does not
16349 # work, assume that -exports_file does not work either and
16350 # implicitly export all symbols.
cristyda16f162011-02-19 23:52:17 +000016351 # This should be the same for all languages, so no per-tag cache variable.
16352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
16353$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
16354if ${lt_cv_irix_exported_symbol+:} false; then :
16355 $as_echo_n "(cached) " >&6
16356else
16357 save_LDFLAGS="$LDFLAGS"
16358 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000016360/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000016361int foo (void) { return 0; }
cristy73bd4a52010-10-05 11:24:23 +000016362_ACEOF
16363if ac_fn_c_try_link "$LINENO"; then :
cristyda16f162011-02-19 23:52:17 +000016364 lt_cv_irix_exported_symbol=yes
16365else
16366 lt_cv_irix_exported_symbol=no
cristy73bd4a52010-10-05 11:24:23 +000016367fi
16368rm -f core conftest.err conftest.$ac_objext \
16369 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000016370 LDFLAGS="$save_LDFLAGS"
16371fi
16372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
16373$as_echo "$lt_cv_irix_exported_symbol" >&6; }
16374 if test "$lt_cv_irix_exported_symbol" = yes; then
16375 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
16376 fi
cristy73bd4a52010-10-05 11:24:23 +000016377 else
cristy0c60a692010-11-04 01:09:47 +000016378 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
16379 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000016380 fi
16381 archive_cmds_need_lc='no'
16382 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16383 hardcode_libdir_separator=:
16384 inherit_rpath=yes
16385 link_all_deplibs=yes
16386 ;;
16387
16388 netbsd*)
16389 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16390 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16391 else
16392 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16393 fi
16394 hardcode_libdir_flag_spec='-R$libdir'
16395 hardcode_direct=yes
16396 hardcode_shlibpath_var=no
16397 ;;
16398
16399 newsos6)
16400 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16401 hardcode_direct=yes
16402 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16403 hardcode_libdir_separator=:
16404 hardcode_shlibpath_var=no
16405 ;;
16406
16407 *nto* | *qnx*)
16408 ;;
16409
16410 openbsd*)
16411 if test -f /usr/libexec/ld.so; then
16412 hardcode_direct=yes
16413 hardcode_shlibpath_var=no
16414 hardcode_direct_absolute=yes
16415 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16416 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16417 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16418 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16419 export_dynamic_flag_spec='${wl}-E'
16420 else
16421 case $host_os in
16422 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16423 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16424 hardcode_libdir_flag_spec='-R$libdir'
16425 ;;
16426 *)
16427 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16428 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16429 ;;
16430 esac
16431 fi
16432 else
16433 ld_shlibs=no
16434 fi
16435 ;;
16436
16437 os2*)
16438 hardcode_libdir_flag_spec='-L$libdir'
16439 hardcode_minus_L=yes
16440 allow_undefined_flag=unsupported
cristy0c60a692010-11-04 01:09:47 +000016441 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
cristy73bd4a52010-10-05 11:24:23 +000016442 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16443 ;;
16444
16445 osf3*)
16446 if test "$GCC" = yes; then
16447 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000016448 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000016449 else
16450 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000016451 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000016452 fi
16453 archive_cmds_need_lc='no'
16454 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16455 hardcode_libdir_separator=:
16456 ;;
16457
16458 osf4* | osf5*) # as osf3* with the addition of -msym flag
16459 if test "$GCC" = yes; then
16460 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristyda16f162011-02-19 23:52:17 +000016461 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000016462 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16463 else
16464 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000016465 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000016466 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
cristy0c60a692010-11-04 01:09:47 +000016467 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
cristy73bd4a52010-10-05 11:24:23 +000016468
16469 # Both c and cxx compiler support -rpath directly
16470 hardcode_libdir_flag_spec='-rpath $libdir'
16471 fi
16472 archive_cmds_need_lc='no'
16473 hardcode_libdir_separator=:
16474 ;;
16475
16476 solaris*)
16477 no_undefined_flag=' -z defs'
16478 if test "$GCC" = yes; then
16479 wlarc='${wl}'
cristyda16f162011-02-19 23:52:17 +000016480 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000016481 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
cristyda16f162011-02-19 23:52:17 +000016482 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
cristy73bd4a52010-10-05 11:24:23 +000016483 else
16484 case `$CC -V 2>&1` in
16485 *"Compilers 5.0"*)
16486 wlarc=''
16487 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16488 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16489 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16490 ;;
16491 *)
16492 wlarc='${wl}'
16493 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16494 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16495 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16496 ;;
16497 esac
16498 fi
16499 hardcode_libdir_flag_spec='-R$libdir'
16500 hardcode_shlibpath_var=no
16501 case $host_os in
16502 solaris2.[0-5] | solaris2.[0-5].*) ;;
16503 *)
16504 # The compiler driver will combine and reorder linker options,
16505 # but understands `-z linker_flag'. GCC discards it without `$wl',
16506 # but is careful enough not to reorder.
16507 # Supported since Solaris 2.6 (maybe 2.5.1?)
16508 if test "$GCC" = yes; then
16509 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16510 else
16511 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16512 fi
16513 ;;
16514 esac
16515 link_all_deplibs=yes
16516 ;;
16517
16518 sunos4*)
16519 if test "x$host_vendor" = xsequent; then
16520 # Use $CC to link under sequent, because it throws in some extra .o
16521 # files that make .init and .fini sections work.
16522 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16523 else
16524 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16525 fi
16526 hardcode_libdir_flag_spec='-L$libdir'
16527 hardcode_direct=yes
16528 hardcode_minus_L=yes
16529 hardcode_shlibpath_var=no
16530 ;;
16531
16532 sysv4)
16533 case $host_vendor in
16534 sni)
16535 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16536 hardcode_direct=yes # is this really true???
16537 ;;
16538 siemens)
16539 ## LD is ld it makes a PLAMLIB
16540 ## CC just makes a GrossModule.
16541 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16542 reload_cmds='$CC -r -o $output$reload_objs'
16543 hardcode_direct=no
16544 ;;
16545 motorola)
16546 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16547 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16548 ;;
16549 esac
16550 runpath_var='LD_RUN_PATH'
16551 hardcode_shlibpath_var=no
16552 ;;
16553
16554 sysv4.3*)
16555 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16556 hardcode_shlibpath_var=no
16557 export_dynamic_flag_spec='-Bexport'
16558 ;;
16559
16560 sysv4*MP*)
16561 if test -d /usr/nec; then
16562 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16563 hardcode_shlibpath_var=no
16564 runpath_var=LD_RUN_PATH
16565 hardcode_runpath_var=yes
16566 ld_shlibs=yes
16567 fi
16568 ;;
16569
16570 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16571 no_undefined_flag='${wl}-z,text'
16572 archive_cmds_need_lc=no
16573 hardcode_shlibpath_var=no
16574 runpath_var='LD_RUN_PATH'
16575
16576 if test "$GCC" = yes; then
16577 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16578 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16579 else
16580 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16581 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16582 fi
16583 ;;
16584
16585 sysv5* | sco3.2v5* | sco5v6*)
16586 # Note: We can NOT use -z defs as we might desire, because we do not
16587 # link with -lc, and that would cause any symbols used from libc to
16588 # always be unresolved, which means just about no library would
16589 # ever link correctly. If we're not using GNU ld we use -z text
16590 # though, which does catch some bad symbols but isn't as heavy-handed
16591 # as -z defs.
16592 no_undefined_flag='${wl}-z,text'
16593 allow_undefined_flag='${wl}-z,nodefs'
16594 archive_cmds_need_lc=no
16595 hardcode_shlibpath_var=no
16596 hardcode_libdir_flag_spec='${wl}-R,$libdir'
16597 hardcode_libdir_separator=':'
16598 link_all_deplibs=yes
16599 export_dynamic_flag_spec='${wl}-Bexport'
16600 runpath_var='LD_RUN_PATH'
16601
16602 if test "$GCC" = yes; then
16603 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16604 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16605 else
16606 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16607 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16608 fi
16609 ;;
16610
16611 uts4*)
16612 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16613 hardcode_libdir_flag_spec='-L$libdir'
16614 hardcode_shlibpath_var=no
16615 ;;
16616
16617 *)
16618 ld_shlibs=no
16619 ;;
16620 esac
16621
16622 if test x$host_vendor = xsni; then
16623 case $host in
16624 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16625 export_dynamic_flag_spec='${wl}-Blargedynsym'
16626 ;;
16627 esac
16628 fi
16629 fi
16630
16631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16632$as_echo "$ld_shlibs" >&6; }
16633test "$ld_shlibs" = no && can_build_shared=no
16634
16635with_gnu_ld=$with_gnu_ld
16636
16637
16638
16639
16640
16641
16642
16643
16644
16645
16646
16647
16648
16649
16650
16651#
16652# Do we need to explicitly link libc?
16653#
16654case "x$archive_cmds_need_lc" in
16655x|xyes)
16656 # Assume -lc should be added
16657 archive_cmds_need_lc=yes
16658
16659 if test "$enable_shared" = yes && test "$GCC" = yes; then
16660 case $archive_cmds in
16661 *'~'*)
16662 # FIXME: we may have to deal with multi-command sequences.
16663 ;;
16664 '$CC '*)
16665 # Test whether the compiler implicitly links with -lc since on some
16666 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16667 # to ld, don't add -lc before -lgcc.
16668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16669$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016670if ${lt_cv_archive_cmds_need_lc+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000016671 $as_echo_n "(cached) " >&6
16672else
16673 $RM conftest*
16674 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000016675
cristy0c60a692010-11-04 01:09:47 +000016676 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000016677 (eval $ac_compile) 2>&5
16678 ac_status=$?
16679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16680 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000016681 soname=conftest
16682 lib=conftest
16683 libobjs=conftest.$ac_objext
16684 deplibs=
16685 wl=$lt_prog_compiler_wl
16686 pic_flag=$lt_prog_compiler_pic
16687 compiler_flags=-v
16688 linker_flags=-v
16689 verstring=
16690 output_objdir=.
16691 libname=conftest
16692 lt_save_allow_undefined_flag=$allow_undefined_flag
16693 allow_undefined_flag=
16694 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000016695 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16696 ac_status=$?
16697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16698 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000016699 then
16700 lt_cv_archive_cmds_need_lc=no
16701 else
16702 lt_cv_archive_cmds_need_lc=yes
16703 fi
16704 allow_undefined_flag=$lt_save_allow_undefined_flag
16705 else
16706 cat conftest.err 1>&5
16707 fi
16708 $RM conftest*
16709
16710fi
16711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16712$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16713 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
cristy73bd4a52010-10-05 11:24:23 +000016714 ;;
16715 esac
16716 fi
16717 ;;
16718esac
16719
16720
16721
16722
16723
16724
16725
16726
16727
16728
16729
16730
16731
16732
16733
16734
16735
16736
16737
16738
16739
16740
16741
16742
16743
16744
16745
16746
16747
16748
16749
16750
16751
16752
16753
16754
16755
16756
16757
16758
16759
16760
16761
16762
16763
16764
16765
16766
16767
16768
16769
16770
16771
16772
16773
16774
16775
16776
16777
16778
16779
16780
16781
16782
16783
16784
16785
16786
16787
16788
16789
16790
16791
16792
16793
16794
16795
16796
16797
16798
16799
16800
16801
16802
16803
16804
16805
16806
16807
16808
16809
16810
16811
16812
16813
16814
16815
16816
16817
16818
16819
16820
16821
16822
16823
16824
16825
16826
16827
16828
16829
16830
16831
16832
16833
16834
16835
16836
16837
16838
16839
16840
16841
16842
16843
16844
16845
16846
16847
16848
16849
16850
16851
16852
16853
16854
16855
16856
16857
16858
16859
16860
16861
16862
16863
16864
16865
16866
16867
16868
16869
16870
cristy73bd4a52010-10-05 11:24:23 +000016871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16872$as_echo_n "checking dynamic linker characteristics... " >&6; }
16873
16874if test "$GCC" = yes; then
16875 case $host_os in
16876 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16877 *) lt_awk_arg="/^libraries:/" ;;
16878 esac
cristy0c60a692010-11-04 01:09:47 +000016879 case $host_os in
16880 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16881 *) lt_sed_strip_eq="s,=/,/,g" ;;
16882 esac
16883 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16884 case $lt_search_path_spec in
16885 *\;*)
cristy73bd4a52010-10-05 11:24:23 +000016886 # if the path contains ";" then we assume it to be the separator
16887 # otherwise default to the standard path separator (i.e. ":") - it is
16888 # assumed that no part of a normal pathname contains ";" but that should
16889 # okay in the real world where ";" in dirpaths is itself problematic.
cristy0c60a692010-11-04 01:09:47 +000016890 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16891 ;;
16892 *)
16893 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16894 ;;
16895 esac
cristy73bd4a52010-10-05 11:24:23 +000016896 # Ok, now we have the path, separated by spaces, we can step through it
16897 # and add multilib dir if necessary.
16898 lt_tmp_lt_search_path_spec=
16899 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16900 for lt_sys_path in $lt_search_path_spec; do
16901 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16902 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16903 else
16904 test -d "$lt_sys_path" && \
16905 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16906 fi
16907 done
cristy0c60a692010-11-04 01:09:47 +000016908 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
cristy73bd4a52010-10-05 11:24:23 +000016909BEGIN {RS=" "; FS="/|\n";} {
16910 lt_foo="";
16911 lt_count=0;
16912 for (lt_i = NF; lt_i > 0; lt_i--) {
16913 if ($lt_i != "" && $lt_i != ".") {
16914 if ($lt_i == "..") {
16915 lt_count++;
16916 } else {
16917 if (lt_count == 0) {
16918 lt_foo="/" $lt_i lt_foo;
16919 } else {
16920 lt_count--;
16921 }
16922 }
16923 }
16924 }
16925 if (lt_foo != "") { lt_freq[lt_foo]++; }
16926 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16927}'`
cristy0c60a692010-11-04 01:09:47 +000016928 # AWK program above erroneously prepends '/' to C:/dos/paths
16929 # for these hosts.
16930 case $host_os in
16931 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16932 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16933 esac
16934 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
cristy73bd4a52010-10-05 11:24:23 +000016935else
16936 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16937fi
16938library_names_spec=
16939libname_spec='lib$name'
16940soname_spec=
16941shrext_cmds=".so"
16942postinstall_cmds=
16943postuninstall_cmds=
16944finish_cmds=
16945finish_eval=
16946shlibpath_var=
16947shlibpath_overrides_runpath=unknown
16948version_type=none
16949dynamic_linker="$host_os ld.so"
16950sys_lib_dlsearch_path_spec="/lib /usr/lib"
16951need_lib_prefix=unknown
16952hardcode_into_libs=no
16953
16954# when you set need_version to no, make sure it does not cause -set_version
16955# flags to be left without arguments
16956need_version=unknown
16957
16958case $host_os in
16959aix3*)
cristy99bd5232011-12-07 14:38:20 +000016960 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016961 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16962 shlibpath_var=LIBPATH
16963
16964 # AIX 3 has no versioning support, so we append a major version to the name.
16965 soname_spec='${libname}${release}${shared_ext}$major'
16966 ;;
16967
16968aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000016969 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016970 need_lib_prefix=no
16971 need_version=no
16972 hardcode_into_libs=yes
16973 if test "$host_cpu" = ia64; then
16974 # AIX 5 supports IA64
16975 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16976 shlibpath_var=LD_LIBRARY_PATH
16977 else
16978 # With GCC up to 2.95.x, collect2 would create an import file
16979 # for dependence libraries. The import file would start with
16980 # the line `#! .'. This would cause the generated library to
16981 # depend on `.', always an invalid library. This was fixed in
16982 # development snapshots of GCC prior to 3.0.
16983 case $host_os in
16984 aix4 | aix4.[01] | aix4.[01].*)
16985 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16986 echo ' yes '
16987 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16988 :
16989 else
16990 can_build_shared=no
16991 fi
16992 ;;
16993 esac
16994 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16995 # soname into executable. Probably we can add versioning support to
16996 # collect2, so additional links can be useful in future.
16997 if test "$aix_use_runtimelinking" = yes; then
16998 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16999 # instead of lib<name>.a to let people know that these are not
17000 # typical AIX shared libraries.
17001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17002 else
17003 # We preserve .a as extension for shared libraries through AIX4.2
17004 # and later when we are not doing run time linking.
17005 library_names_spec='${libname}${release}.a $libname.a'
17006 soname_spec='${libname}${release}${shared_ext}$major'
17007 fi
17008 shlibpath_var=LIBPATH
17009 fi
17010 ;;
17011
17012amigaos*)
17013 case $host_cpu in
17014 powerpc)
17015 # Since July 2007 AmigaOS4 officially supports .so libraries.
17016 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17018 ;;
17019 m68k)
17020 library_names_spec='$libname.ixlibrary $libname.a'
17021 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000017022 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
cristy73bd4a52010-10-05 11:24:23 +000017023 ;;
17024 esac
17025 ;;
17026
17027beos*)
17028 library_names_spec='${libname}${shared_ext}'
17029 dynamic_linker="$host_os ld.so"
17030 shlibpath_var=LIBRARY_PATH
17031 ;;
17032
17033bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000017034 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017035 need_version=no
17036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17037 soname_spec='${libname}${release}${shared_ext}$major'
17038 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17039 shlibpath_var=LD_LIBRARY_PATH
17040 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17041 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17042 # the default ld.so.conf also contains /usr/contrib/lib and
17043 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17044 # libtool to hard-code these into programs
17045 ;;
17046
17047cygwin* | mingw* | pw32* | cegcc*)
17048 version_type=windows
17049 shrext_cmds=".dll"
17050 need_version=no
17051 need_lib_prefix=no
17052
cristyda16f162011-02-19 23:52:17 +000017053 case $GCC,$cc_basename in
17054 yes,*)
17055 # gcc
cristy73bd4a52010-10-05 11:24:23 +000017056 library_names_spec='$libname.dll.a'
17057 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17058 postinstall_cmds='base_file=`basename \${file}`~
17059 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17060 dldir=$destdir/`dirname \$dlpath`~
17061 test -d \$dldir || mkdir -p \$dldir~
17062 $install_prog $dir/$dlname \$dldir/$dlname~
17063 chmod a+x \$dldir/$dlname~
17064 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17065 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17066 fi'
17067 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17068 dlpath=$dir/\$dldll~
17069 $RM \$dlpath'
17070 shlibpath_overrides_runpath=yes
17071
17072 case $host_os in
17073 cygwin*)
17074 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17075 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000017076
17077 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
cristy73bd4a52010-10-05 11:24:23 +000017078 ;;
17079 mingw* | cegcc*)
17080 # MinGW DLLs use traditional 'lib' prefix
17081 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000017082 ;;
17083 pw32*)
17084 # pw32 DLLs use 'pw' prefix rather than 'lib'
17085 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17086 ;;
17087 esac
cristyda16f162011-02-19 23:52:17 +000017088 dynamic_linker='Win32 ld.exe'
17089 ;;
17090
17091 *,cl*)
17092 # Native MSVC
17093 libname_spec='$name'
17094 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17095 library_names_spec='${libname}.dll.lib'
17096
17097 case $build_os in
17098 mingw*)
17099 sys_lib_search_path_spec=
17100 lt_save_ifs=$IFS
17101 IFS=';'
17102 for lt_path in $LIB
17103 do
17104 IFS=$lt_save_ifs
17105 # Let DOS variable expansion print the short 8.3 style file name.
17106 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17107 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17108 done
17109 IFS=$lt_save_ifs
17110 # Convert to MSYS style.
17111 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17112 ;;
17113 cygwin*)
17114 # Convert to unix form, then to dos form, then back to unix form
17115 # but this time dos style (no spaces!) so that the unix form looks
17116 # like /cygdrive/c/PROGRA~1:/cygdr...
17117 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17118 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17119 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17120 ;;
17121 *)
17122 sys_lib_search_path_spec="$LIB"
17123 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17124 # It is most probably a Windows format PATH.
17125 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17126 else
17127 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17128 fi
17129 # FIXME: find the short name or the path components, as spaces are
17130 # common. (e.g. "Program Files" -> "PROGRA~1")
17131 ;;
17132 esac
17133
17134 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17135 postinstall_cmds='base_file=`basename \${file}`~
17136 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17137 dldir=$destdir/`dirname \$dlpath`~
17138 test -d \$dldir || mkdir -p \$dldir~
17139 $install_prog $dir/$dlname \$dldir/$dlname'
17140 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17141 dlpath=$dir/\$dldll~
17142 $RM \$dlpath'
17143 shlibpath_overrides_runpath=yes
17144 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000017145 ;;
17146
17147 *)
cristyda16f162011-02-19 23:52:17 +000017148 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000017149 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000017150 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000017151 ;;
17152 esac
cristy73bd4a52010-10-05 11:24:23 +000017153 # FIXME: first we should search . and the directory the executable is in
17154 shlibpath_var=PATH
17155 ;;
17156
17157darwin* | rhapsody*)
17158 dynamic_linker="$host_os dyld"
17159 version_type=darwin
17160 need_lib_prefix=no
17161 need_version=no
17162 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17163 soname_spec='${libname}${release}${major}$shared_ext'
17164 shlibpath_overrides_runpath=yes
17165 shlibpath_var=DYLD_LIBRARY_PATH
17166 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17167
17168 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17169 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17170 ;;
17171
17172dgux*)
cristy99bd5232011-12-07 14:38:20 +000017173 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017174 need_lib_prefix=no
17175 need_version=no
17176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17177 soname_spec='${libname}${release}${shared_ext}$major'
17178 shlibpath_var=LD_LIBRARY_PATH
17179 ;;
17180
cristy73bd4a52010-10-05 11:24:23 +000017181freebsd* | dragonfly*)
17182 # DragonFly does not have aout. When/if they implement a new
17183 # versioning mechanism, adjust this.
17184 if test -x /usr/bin/objformat; then
17185 objformat=`/usr/bin/objformat`
17186 else
17187 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000017188 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000017189 *) objformat=elf ;;
17190 esac
17191 fi
17192 version_type=freebsd-$objformat
17193 case $version_type in
17194 freebsd-elf*)
17195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17196 need_version=no
17197 need_lib_prefix=no
17198 ;;
17199 freebsd-*)
17200 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17201 need_version=yes
17202 ;;
17203 esac
17204 shlibpath_var=LD_LIBRARY_PATH
17205 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000017206 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000017207 shlibpath_overrides_runpath=yes
17208 ;;
17209 freebsd3.[01]* | freebsdelf3.[01]*)
17210 shlibpath_overrides_runpath=yes
17211 hardcode_into_libs=yes
17212 ;;
17213 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17214 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17215 shlibpath_overrides_runpath=no
17216 hardcode_into_libs=yes
17217 ;;
17218 *) # from 4.6 on, and DragonFly
17219 shlibpath_overrides_runpath=yes
17220 hardcode_into_libs=yes
17221 ;;
17222 esac
17223 ;;
17224
17225gnu*)
cristy99bd5232011-12-07 14:38:20 +000017226 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017227 need_lib_prefix=no
17228 need_version=no
17229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17230 soname_spec='${libname}${release}${shared_ext}$major'
17231 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000017232 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000017233 hardcode_into_libs=yes
17234 ;;
17235
cristy0c60a692010-11-04 01:09:47 +000017236haiku*)
cristy99bd5232011-12-07 14:38:20 +000017237 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000017238 need_lib_prefix=no
17239 need_version=no
17240 dynamic_linker="$host_os runtime_loader"
17241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17242 soname_spec='${libname}${release}${shared_ext}$major'
17243 shlibpath_var=LIBRARY_PATH
17244 shlibpath_overrides_runpath=yes
17245 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
17246 hardcode_into_libs=yes
17247 ;;
17248
cristy73bd4a52010-10-05 11:24:23 +000017249hpux9* | hpux10* | hpux11*)
17250 # Give a soname corresponding to the major version so that dld.sl refuses to
17251 # link against other versions.
17252 version_type=sunos
17253 need_lib_prefix=no
17254 need_version=no
17255 case $host_cpu in
17256 ia64*)
17257 shrext_cmds='.so'
17258 hardcode_into_libs=yes
17259 dynamic_linker="$host_os dld.so"
17260 shlibpath_var=LD_LIBRARY_PATH
17261 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17263 soname_spec='${libname}${release}${shared_ext}$major'
17264 if test "X$HPUX_IA64_MODE" = X32; then
17265 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17266 else
17267 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17268 fi
17269 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17270 ;;
17271 hppa*64*)
17272 shrext_cmds='.sl'
17273 hardcode_into_libs=yes
17274 dynamic_linker="$host_os dld.sl"
17275 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17276 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17278 soname_spec='${libname}${release}${shared_ext}$major'
17279 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17280 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17281 ;;
17282 *)
17283 shrext_cmds='.sl'
17284 dynamic_linker="$host_os dld.sl"
17285 shlibpath_var=SHLIB_PATH
17286 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17288 soname_spec='${libname}${release}${shared_ext}$major'
17289 ;;
17290 esac
cristy0c60a692010-11-04 01:09:47 +000017291 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000017292 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000017293 # or fails outright, so override atomically:
17294 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000017295 ;;
17296
17297interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000017298 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017299 need_lib_prefix=no
17300 need_version=no
17301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17302 soname_spec='${libname}${release}${shared_ext}$major'
17303 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17304 shlibpath_var=LD_LIBRARY_PATH
17305 shlibpath_overrides_runpath=no
17306 hardcode_into_libs=yes
17307 ;;
17308
17309irix5* | irix6* | nonstopux*)
17310 case $host_os in
17311 nonstopux*) version_type=nonstopux ;;
17312 *)
17313 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000017314 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017315 else
17316 version_type=irix
17317 fi ;;
17318 esac
17319 need_lib_prefix=no
17320 need_version=no
17321 soname_spec='${libname}${release}${shared_ext}$major'
17322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17323 case $host_os in
17324 irix5* | nonstopux*)
17325 libsuff= shlibsuff=
17326 ;;
17327 *)
17328 case $LD in # libtool.m4 will add one of these switches to LD
17329 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17330 libsuff= shlibsuff= libmagic=32-bit;;
17331 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17332 libsuff=32 shlibsuff=N32 libmagic=N32;;
17333 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17334 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17335 *) libsuff= shlibsuff= libmagic=never-match;;
17336 esac
17337 ;;
17338 esac
17339 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17340 shlibpath_overrides_runpath=no
17341 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17342 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17343 hardcode_into_libs=yes
17344 ;;
17345
17346# No shared lib support for Linux oldld, aout, or coff.
17347linux*oldld* | linux*aout* | linux*coff*)
17348 dynamic_linker=no
17349 ;;
17350
cristy99bd5232011-12-07 14:38:20 +000017351# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000017352linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000017353 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017354 need_lib_prefix=no
17355 need_version=no
17356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17357 soname_spec='${libname}${release}${shared_ext}$major'
17358 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17359 shlibpath_var=LD_LIBRARY_PATH
17360 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000017361
cristy73bd4a52010-10-05 11:24:23 +000017362 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000017363 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000017364 $as_echo_n "(cached) " >&6
17365else
17366 lt_cv_shlibpath_overrides_runpath=no
17367 save_LDFLAGS=$LDFLAGS
17368 save_libdir=$libdir
17369 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17370 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000017372/* end confdefs.h. */
17373
17374int
17375main ()
17376{
17377
17378 ;
17379 return 0;
17380}
17381_ACEOF
17382if ac_fn_c_try_link "$LINENO"; then :
17383 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000017384 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000017385fi
17386fi
17387rm -f core conftest.err conftest.$ac_objext \
17388 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017389 LDFLAGS=$save_LDFLAGS
17390 libdir=$save_libdir
17391
17392fi
17393
17394 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000017395
17396 # This implies no fast_install, which is unacceptable.
17397 # Some rework will be needed to allow for fast_install
17398 # before this can be enabled.
17399 hardcode_into_libs=yes
17400
17401 # Add ABI-specific directories to the system library path.
17402 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
17403
17404 # Append ld.so.conf contents to the search path
17405 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000017406 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
cristy73bd4a52010-10-05 11:24:23 +000017407 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000017408
cristy73bd4a52010-10-05 11:24:23 +000017409 fi
17410
17411 # We used to test for /lib/ld.so.1 and disable shared libraries on
17412 # powerpc, because MkLinux only supported shared libraries with the
17413 # GNU dynamic linker. Since this was broken with cross compilers,
17414 # most powerpc-linux boxes support dynamic linking these days and
17415 # people can always --disable-shared, the test was removed, and we
17416 # assume the GNU/Linux dynamic linker is in use.
17417 dynamic_linker='GNU/Linux ld.so'
17418 ;;
17419
17420netbsd*)
17421 version_type=sunos
17422 need_lib_prefix=no
17423 need_version=no
17424 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17426 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17427 dynamic_linker='NetBSD (a.out) ld.so'
17428 else
17429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17430 soname_spec='${libname}${release}${shared_ext}$major'
17431 dynamic_linker='NetBSD ld.elf_so'
17432 fi
17433 shlibpath_var=LD_LIBRARY_PATH
17434 shlibpath_overrides_runpath=yes
17435 hardcode_into_libs=yes
17436 ;;
17437
17438newsos6)
cristy99bd5232011-12-07 14:38:20 +000017439 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17441 shlibpath_var=LD_LIBRARY_PATH
17442 shlibpath_overrides_runpath=yes
17443 ;;
17444
17445*nto* | *qnx*)
17446 version_type=qnx
17447 need_lib_prefix=no
17448 need_version=no
17449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17450 soname_spec='${libname}${release}${shared_ext}$major'
17451 shlibpath_var=LD_LIBRARY_PATH
17452 shlibpath_overrides_runpath=no
17453 hardcode_into_libs=yes
17454 dynamic_linker='ldqnx.so'
17455 ;;
17456
17457openbsd*)
17458 version_type=sunos
17459 sys_lib_dlsearch_path_spec="/usr/lib"
17460 need_lib_prefix=no
17461 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17462 case $host_os in
17463 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17464 *) need_version=no ;;
17465 esac
17466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17467 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17468 shlibpath_var=LD_LIBRARY_PATH
17469 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17470 case $host_os in
17471 openbsd2.[89] | openbsd2.[89].*)
17472 shlibpath_overrides_runpath=no
17473 ;;
17474 *)
17475 shlibpath_overrides_runpath=yes
17476 ;;
17477 esac
17478 else
17479 shlibpath_overrides_runpath=yes
17480 fi
17481 ;;
17482
17483os2*)
17484 libname_spec='$name'
17485 shrext_cmds=".dll"
17486 need_lib_prefix=no
17487 library_names_spec='$libname${shared_ext} $libname.a'
17488 dynamic_linker='OS/2 ld.exe'
17489 shlibpath_var=LIBPATH
17490 ;;
17491
17492osf3* | osf4* | osf5*)
17493 version_type=osf
17494 need_lib_prefix=no
17495 need_version=no
17496 soname_spec='${libname}${release}${shared_ext}$major'
17497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17498 shlibpath_var=LD_LIBRARY_PATH
17499 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17500 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17501 ;;
17502
17503rdos*)
17504 dynamic_linker=no
17505 ;;
17506
17507solaris*)
cristy99bd5232011-12-07 14:38:20 +000017508 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017509 need_lib_prefix=no
17510 need_version=no
17511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17512 soname_spec='${libname}${release}${shared_ext}$major'
17513 shlibpath_var=LD_LIBRARY_PATH
17514 shlibpath_overrides_runpath=yes
17515 hardcode_into_libs=yes
17516 # ldd complains unless libraries are executable
17517 postinstall_cmds='chmod +x $lib'
17518 ;;
17519
17520sunos4*)
17521 version_type=sunos
17522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17523 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17524 shlibpath_var=LD_LIBRARY_PATH
17525 shlibpath_overrides_runpath=yes
17526 if test "$with_gnu_ld" = yes; then
17527 need_lib_prefix=no
17528 fi
17529 need_version=yes
17530 ;;
17531
17532sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000017533 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17535 soname_spec='${libname}${release}${shared_ext}$major'
17536 shlibpath_var=LD_LIBRARY_PATH
17537 case $host_vendor in
17538 sni)
17539 shlibpath_overrides_runpath=no
17540 need_lib_prefix=no
17541 runpath_var=LD_RUN_PATH
17542 ;;
17543 siemens)
17544 need_lib_prefix=no
17545 ;;
17546 motorola)
17547 need_lib_prefix=no
17548 need_version=no
17549 shlibpath_overrides_runpath=no
17550 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17551 ;;
17552 esac
17553 ;;
17554
17555sysv4*MP*)
17556 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000017557 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017558 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17559 soname_spec='$libname${shared_ext}.$major'
17560 shlibpath_var=LD_LIBRARY_PATH
17561 fi
17562 ;;
17563
17564sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17565 version_type=freebsd-elf
17566 need_lib_prefix=no
17567 need_version=no
17568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17569 soname_spec='${libname}${release}${shared_ext}$major'
17570 shlibpath_var=LD_LIBRARY_PATH
17571 shlibpath_overrides_runpath=yes
17572 hardcode_into_libs=yes
17573 if test "$with_gnu_ld" = yes; then
17574 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17575 else
17576 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17577 case $host_os in
17578 sco3.2v5*)
17579 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17580 ;;
17581 esac
17582 fi
17583 sys_lib_dlsearch_path_spec='/usr/lib'
17584 ;;
17585
17586tpf*)
17587 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000017588 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017589 need_lib_prefix=no
17590 need_version=no
17591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17592 shlibpath_var=LD_LIBRARY_PATH
17593 shlibpath_overrides_runpath=no
17594 hardcode_into_libs=yes
17595 ;;
17596
17597uts4*)
cristy99bd5232011-12-07 14:38:20 +000017598 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17600 soname_spec='${libname}${release}${shared_ext}$major'
17601 shlibpath_var=LD_LIBRARY_PATH
17602 ;;
17603
17604*)
17605 dynamic_linker=no
17606 ;;
17607esac
17608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17609$as_echo "$dynamic_linker" >&6; }
17610test "$dynamic_linker" = no && can_build_shared=no
17611
17612variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17613if test "$GCC" = yes; then
17614 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17615fi
17616
17617if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17618 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17619fi
17620if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17621 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17622fi
17623
17624
17625
17626
17627
17628
17629
17630
17631
17632
17633
17634
17635
17636
17637
17638
17639
17640
17641
17642
17643
17644
17645
17646
17647
17648
17649
17650
17651
17652
17653
17654
17655
17656
17657
17658
17659
17660
17661
17662
17663
17664
17665
17666
17667
17668
17669
17670
17671
17672
17673
17674
17675
17676
17677
17678
17679
17680
17681
17682
17683
17684
17685
17686
17687
17688
17689
17690
17691
17692
17693
17694
17695
17696
17697
17698
17699
17700
17701
17702
17703
17704
17705
17706
17707
17708
17709
cristy0c60a692010-11-04 01:09:47 +000017710
17711
17712
17713
17714
cristy73bd4a52010-10-05 11:24:23 +000017715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17716$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17717hardcode_action=
17718if test -n "$hardcode_libdir_flag_spec" ||
17719 test -n "$runpath_var" ||
17720 test "X$hardcode_automatic" = "Xyes" ; then
17721
17722 # We can hardcode non-existent directories.
17723 if test "$hardcode_direct" != no &&
17724 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17725 # have to relink, otherwise we might link with an installed library
17726 # when we should be linking with a yet-to-be-installed one
17727 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17728 test "$hardcode_minus_L" != no; then
17729 # Linking always hardcodes the temporary library directory.
17730 hardcode_action=relink
17731 else
17732 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17733 hardcode_action=immediate
17734 fi
17735else
17736 # We cannot hardcode anything, or else we can only hardcode existing
17737 # directories.
17738 hardcode_action=unsupported
17739fi
17740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17741$as_echo "$hardcode_action" >&6; }
17742
17743if test "$hardcode_action" = relink ||
17744 test "$inherit_rpath" = yes; then
17745 # Fast installation is not supported
17746 enable_fast_install=no
17747elif test "$shlibpath_overrides_runpath" = yes ||
17748 test "$enable_shared" = no; then
17749 # Fast installation is not necessary
17750 enable_fast_install=needless
17751fi
17752
17753
17754
17755
17756
17757
17758 if test "x$enable_dlopen" != xyes; then
17759 enable_dlopen=unknown
17760 enable_dlopen_self=unknown
17761 enable_dlopen_self_static=unknown
17762else
17763 lt_cv_dlopen=no
17764 lt_cv_dlopen_libs=
17765
17766 case $host_os in
17767 beos*)
17768 lt_cv_dlopen="load_add_on"
17769 lt_cv_dlopen_libs=
17770 lt_cv_dlopen_self=yes
17771 ;;
17772
17773 mingw* | pw32* | cegcc*)
17774 lt_cv_dlopen="LoadLibrary"
17775 lt_cv_dlopen_libs=
17776 ;;
17777
17778 cygwin*)
17779 lt_cv_dlopen="dlopen"
17780 lt_cv_dlopen_libs=
17781 ;;
17782
17783 darwin*)
17784 # if libdl is installed we need to link against it
17785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17786$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017787if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017788 $as_echo_n "(cached) " >&6
17789else
17790 ac_check_lib_save_LIBS=$LIBS
17791LIBS="-ldl $LIBS"
17792cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17793/* end confdefs.h. */
17794
17795/* Override any GCC internal prototype to avoid an error.
17796 Use char because int might match the return type of a GCC
17797 builtin and then its argument prototype would still apply. */
17798#ifdef __cplusplus
17799extern "C"
17800#endif
17801char dlopen ();
17802int
17803main ()
17804{
17805return dlopen ();
17806 ;
17807 return 0;
17808}
17809_ACEOF
17810if ac_fn_c_try_link "$LINENO"; then :
17811 ac_cv_lib_dl_dlopen=yes
17812else
17813 ac_cv_lib_dl_dlopen=no
17814fi
17815rm -f core conftest.err conftest.$ac_objext \
17816 conftest$ac_exeext conftest.$ac_ext
17817LIBS=$ac_check_lib_save_LIBS
17818fi
17819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17820$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000017821if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017822 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17823else
17824
17825 lt_cv_dlopen="dyld"
17826 lt_cv_dlopen_libs=
17827 lt_cv_dlopen_self=yes
17828
17829fi
17830
17831 ;;
17832
17833 *)
17834 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000017835if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017836 lt_cv_dlopen="shl_load"
17837else
17838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17839$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017840if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017841 $as_echo_n "(cached) " >&6
17842else
17843 ac_check_lib_save_LIBS=$LIBS
17844LIBS="-ldld $LIBS"
17845cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17846/* end confdefs.h. */
17847
17848/* Override any GCC internal prototype to avoid an error.
17849 Use char because int might match the return type of a GCC
17850 builtin and then its argument prototype would still apply. */
17851#ifdef __cplusplus
17852extern "C"
17853#endif
17854char shl_load ();
17855int
17856main ()
17857{
17858return shl_load ();
17859 ;
17860 return 0;
17861}
17862_ACEOF
17863if ac_fn_c_try_link "$LINENO"; then :
17864 ac_cv_lib_dld_shl_load=yes
17865else
17866 ac_cv_lib_dld_shl_load=no
17867fi
17868rm -f core conftest.err conftest.$ac_objext \
17869 conftest$ac_exeext conftest.$ac_ext
17870LIBS=$ac_check_lib_save_LIBS
17871fi
17872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17873$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000017874if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017875 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17876else
17877 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
cristyda16f162011-02-19 23:52:17 +000017878if test "x$ac_cv_func_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017879 lt_cv_dlopen="dlopen"
17880else
17881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17882$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017883if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017884 $as_echo_n "(cached) " >&6
17885else
17886 ac_check_lib_save_LIBS=$LIBS
17887LIBS="-ldl $LIBS"
17888cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17889/* end confdefs.h. */
17890
17891/* Override any GCC internal prototype to avoid an error.
17892 Use char because int might match the return type of a GCC
17893 builtin and then its argument prototype would still apply. */
17894#ifdef __cplusplus
17895extern "C"
17896#endif
17897char dlopen ();
17898int
17899main ()
17900{
17901return dlopen ();
17902 ;
17903 return 0;
17904}
17905_ACEOF
17906if ac_fn_c_try_link "$LINENO"; then :
17907 ac_cv_lib_dl_dlopen=yes
17908else
17909 ac_cv_lib_dl_dlopen=no
17910fi
17911rm -f core conftest.err conftest.$ac_objext \
17912 conftest$ac_exeext conftest.$ac_ext
17913LIBS=$ac_check_lib_save_LIBS
17914fi
17915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17916$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000017917if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017918 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17919else
17920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17921$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017922if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017923 $as_echo_n "(cached) " >&6
17924else
17925 ac_check_lib_save_LIBS=$LIBS
17926LIBS="-lsvld $LIBS"
17927cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17928/* end confdefs.h. */
17929
17930/* Override any GCC internal prototype to avoid an error.
17931 Use char because int might match the return type of a GCC
17932 builtin and then its argument prototype would still apply. */
17933#ifdef __cplusplus
17934extern "C"
17935#endif
17936char dlopen ();
17937int
17938main ()
17939{
17940return dlopen ();
17941 ;
17942 return 0;
17943}
17944_ACEOF
17945if ac_fn_c_try_link "$LINENO"; then :
17946 ac_cv_lib_svld_dlopen=yes
17947else
17948 ac_cv_lib_svld_dlopen=no
17949fi
17950rm -f core conftest.err conftest.$ac_objext \
17951 conftest$ac_exeext conftest.$ac_ext
17952LIBS=$ac_check_lib_save_LIBS
17953fi
17954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17955$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000017956if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017957 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17958else
17959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17960$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017961if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017962 $as_echo_n "(cached) " >&6
17963else
17964 ac_check_lib_save_LIBS=$LIBS
17965LIBS="-ldld $LIBS"
17966cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17967/* end confdefs.h. */
17968
17969/* Override any GCC internal prototype to avoid an error.
17970 Use char because int might match the return type of a GCC
17971 builtin and then its argument prototype would still apply. */
17972#ifdef __cplusplus
17973extern "C"
17974#endif
17975char dld_link ();
17976int
17977main ()
17978{
17979return dld_link ();
17980 ;
17981 return 0;
17982}
17983_ACEOF
17984if ac_fn_c_try_link "$LINENO"; then :
17985 ac_cv_lib_dld_dld_link=yes
17986else
17987 ac_cv_lib_dld_dld_link=no
17988fi
17989rm -f core conftest.err conftest.$ac_objext \
17990 conftest$ac_exeext conftest.$ac_ext
17991LIBS=$ac_check_lib_save_LIBS
17992fi
17993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17994$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000017995if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017996 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17997fi
17998
17999
18000fi
18001
18002
18003fi
18004
18005
18006fi
18007
18008
18009fi
18010
18011
18012fi
18013
18014 ;;
18015 esac
18016
18017 if test "x$lt_cv_dlopen" != xno; then
18018 enable_dlopen=yes
18019 else
18020 enable_dlopen=no
18021 fi
18022
18023 case $lt_cv_dlopen in
18024 dlopen)
18025 save_CPPFLAGS="$CPPFLAGS"
18026 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18027
18028 save_LDFLAGS="$LDFLAGS"
18029 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18030
18031 save_LIBS="$LIBS"
18032 LIBS="$lt_cv_dlopen_libs $LIBS"
18033
18034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18035$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018036if ${lt_cv_dlopen_self+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018037 $as_echo_n "(cached) " >&6
18038else
18039 if test "$cross_compiling" = yes; then :
18040 lt_cv_dlopen_self=cross
18041else
18042 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18043 lt_status=$lt_dlunknown
18044 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000018045#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000018046#include "confdefs.h"
18047
18048#if HAVE_DLFCN_H
18049#include <dlfcn.h>
18050#endif
18051
18052#include <stdio.h>
18053
18054#ifdef RTLD_GLOBAL
18055# define LT_DLGLOBAL RTLD_GLOBAL
18056#else
18057# ifdef DL_GLOBAL
18058# define LT_DLGLOBAL DL_GLOBAL
18059# else
18060# define LT_DLGLOBAL 0
18061# endif
18062#endif
18063
18064/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18065 find out it does not work in some platform. */
18066#ifndef LT_DLLAZY_OR_NOW
18067# ifdef RTLD_LAZY
18068# define LT_DLLAZY_OR_NOW RTLD_LAZY
18069# else
18070# ifdef DL_LAZY
18071# define LT_DLLAZY_OR_NOW DL_LAZY
18072# else
18073# ifdef RTLD_NOW
18074# define LT_DLLAZY_OR_NOW RTLD_NOW
18075# else
18076# ifdef DL_NOW
18077# define LT_DLLAZY_OR_NOW DL_NOW
18078# else
18079# define LT_DLLAZY_OR_NOW 0
18080# endif
18081# endif
18082# endif
18083# endif
18084#endif
18085
cristy0c60a692010-11-04 01:09:47 +000018086/* When -fvisbility=hidden is used, assume the code has been annotated
18087 correspondingly for the symbols needed. */
18088#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000018089int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000018090#endif
18091
cristyda16f162011-02-19 23:52:17 +000018092int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000018093int main ()
18094{
18095 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18096 int status = $lt_dlunknown;
18097
18098 if (self)
18099 {
18100 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000018101 else
18102 {
18103 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18104 else puts (dlerror ());
18105 }
cristy73bd4a52010-10-05 11:24:23 +000018106 /* dlclose (self); */
18107 }
18108 else
18109 puts (dlerror ());
18110
18111 return status;
18112}
18113_LT_EOF
18114 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18115 (eval $ac_link) 2>&5
18116 ac_status=$?
18117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18118 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18119 (./conftest; exit; ) >&5 2>/dev/null
18120 lt_status=$?
18121 case x$lt_status in
18122 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18123 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18124 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18125 esac
18126 else :
18127 # compilation failed
18128 lt_cv_dlopen_self=no
18129 fi
18130fi
18131rm -fr conftest*
18132
18133
18134fi
18135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18136$as_echo "$lt_cv_dlopen_self" >&6; }
18137
18138 if test "x$lt_cv_dlopen_self" = xyes; then
18139 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18141$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018142if ${lt_cv_dlopen_self_static+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018143 $as_echo_n "(cached) " >&6
18144else
18145 if test "$cross_compiling" = yes; then :
18146 lt_cv_dlopen_self_static=cross
18147else
18148 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18149 lt_status=$lt_dlunknown
18150 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000018151#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000018152#include "confdefs.h"
18153
18154#if HAVE_DLFCN_H
18155#include <dlfcn.h>
18156#endif
18157
18158#include <stdio.h>
18159
18160#ifdef RTLD_GLOBAL
18161# define LT_DLGLOBAL RTLD_GLOBAL
18162#else
18163# ifdef DL_GLOBAL
18164# define LT_DLGLOBAL DL_GLOBAL
18165# else
18166# define LT_DLGLOBAL 0
18167# endif
18168#endif
18169
18170/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18171 find out it does not work in some platform. */
18172#ifndef LT_DLLAZY_OR_NOW
18173# ifdef RTLD_LAZY
18174# define LT_DLLAZY_OR_NOW RTLD_LAZY
18175# else
18176# ifdef DL_LAZY
18177# define LT_DLLAZY_OR_NOW DL_LAZY
18178# else
18179# ifdef RTLD_NOW
18180# define LT_DLLAZY_OR_NOW RTLD_NOW
18181# else
18182# ifdef DL_NOW
18183# define LT_DLLAZY_OR_NOW DL_NOW
18184# else
18185# define LT_DLLAZY_OR_NOW 0
18186# endif
18187# endif
18188# endif
18189# endif
18190#endif
18191
cristy0c60a692010-11-04 01:09:47 +000018192/* When -fvisbility=hidden is used, assume the code has been annotated
18193 correspondingly for the symbols needed. */
18194#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000018195int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000018196#endif
18197
cristyda16f162011-02-19 23:52:17 +000018198int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000018199int main ()
18200{
18201 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18202 int status = $lt_dlunknown;
18203
18204 if (self)
18205 {
18206 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000018207 else
18208 {
18209 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18210 else puts (dlerror ());
18211 }
cristy73bd4a52010-10-05 11:24:23 +000018212 /* dlclose (self); */
18213 }
18214 else
18215 puts (dlerror ());
18216
18217 return status;
18218}
18219_LT_EOF
18220 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18221 (eval $ac_link) 2>&5
18222 ac_status=$?
18223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18224 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18225 (./conftest; exit; ) >&5 2>/dev/null
18226 lt_status=$?
18227 case x$lt_status in
18228 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18229 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18230 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18231 esac
18232 else :
18233 # compilation failed
18234 lt_cv_dlopen_self_static=no
18235 fi
18236fi
18237rm -fr conftest*
18238
18239
18240fi
18241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18242$as_echo "$lt_cv_dlopen_self_static" >&6; }
18243 fi
18244
18245 CPPFLAGS="$save_CPPFLAGS"
18246 LDFLAGS="$save_LDFLAGS"
18247 LIBS="$save_LIBS"
18248 ;;
18249 esac
18250
18251 case $lt_cv_dlopen_self in
18252 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18253 *) enable_dlopen_self=unknown ;;
18254 esac
18255
18256 case $lt_cv_dlopen_self_static in
18257 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18258 *) enable_dlopen_self_static=unknown ;;
18259 esac
18260fi
18261
18262
18263
18264
18265
18266
18267
18268
18269
18270
18271
18272
18273
18274
18275
18276
18277
18278striplib=
18279old_striplib=
18280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18281$as_echo_n "checking whether stripping libraries is possible... " >&6; }
18282if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18283 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18284 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18286$as_echo "yes" >&6; }
18287else
18288# FIXME - insert some real tests, host_os isn't really good enough
18289 case $host_os in
18290 darwin*)
18291 if test -n "$STRIP" ; then
18292 striplib="$STRIP -x"
18293 old_striplib="$STRIP -S"
18294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18295$as_echo "yes" >&6; }
18296 else
18297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18298$as_echo "no" >&6; }
18299 fi
18300 ;;
18301 *)
18302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18303$as_echo "no" >&6; }
18304 ;;
18305 esac
18306fi
18307
18308
18309
18310
18311
18312
18313
18314
18315
18316
18317
18318
18319 # Report which library types will actually be built
18320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18321$as_echo_n "checking if libtool supports shared libraries... " >&6; }
18322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18323$as_echo "$can_build_shared" >&6; }
18324
18325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18326$as_echo_n "checking whether to build shared libraries... " >&6; }
18327 test "$can_build_shared" = "no" && enable_shared=no
18328
18329 # On AIX, shared libraries and static libraries use the same namespace, and
18330 # are all built from PIC.
18331 case $host_os in
18332 aix3*)
18333 test "$enable_shared" = yes && enable_static=no
18334 if test -n "$RANLIB"; then
18335 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18336 postinstall_cmds='$RANLIB $lib'
18337 fi
18338 ;;
18339
18340 aix[4-9]*)
18341 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18342 test "$enable_shared" = yes && enable_static=no
18343 fi
18344 ;;
18345 esac
18346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18347$as_echo "$enable_shared" >&6; }
18348
18349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18350$as_echo_n "checking whether to build static libraries... " >&6; }
18351 # Make sure either enable_shared or enable_static is yes.
18352 test "$enable_shared" = yes || enable_static=yes
18353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18354$as_echo "$enable_static" >&6; }
18355
18356
18357
18358
18359fi
18360ac_ext=c
18361ac_cpp='$CPP $CPPFLAGS'
18362ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18363ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18364ac_compiler_gnu=$ac_cv_c_compiler_gnu
18365
18366CC="$lt_save_CC"
18367
cristy0c60a692010-11-04 01:09:47 +000018368 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18369 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18370 (test "X$CXX" != "Xg++"))) ; then
18371 ac_ext=cpp
18372ac_cpp='$CXXCPP $CPPFLAGS'
18373ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18374ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18375ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18377$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18378if test -z "$CXXCPP"; then
cristyda16f162011-02-19 23:52:17 +000018379 if ${ac_cv_prog_CXXCPP+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000018380 $as_echo_n "(cached) " >&6
18381else
18382 # Double quotes because CXXCPP needs to be expanded
18383 for CXXCPP in "$CXX -E" "/lib/cpp"
18384 do
18385 ac_preproc_ok=false
18386for ac_cxx_preproc_warn_flag in '' yes
18387do
18388 # Use a header file that comes with gcc, so configuring glibc
18389 # with a fresh cross-compiler works.
18390 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18391 # <limits.h> exists even on freestanding compilers.
18392 # On the NeXT, cc -E runs the code through the compiler's parser,
18393 # not just through cpp. "Syntax error" is here to catch this case.
18394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18395/* end confdefs.h. */
18396#ifdef __STDC__
18397# include <limits.h>
18398#else
18399# include <assert.h>
18400#endif
18401 Syntax error
18402_ACEOF
18403if ac_fn_cxx_try_cpp "$LINENO"; then :
18404
18405else
18406 # Broken: fails on valid input.
18407continue
18408fi
cristyda16f162011-02-19 23:52:17 +000018409rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018410
18411 # OK, works on sane cases. Now check whether nonexistent headers
18412 # can be detected and how.
18413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18414/* end confdefs.h. */
18415#include <ac_nonexistent.h>
18416_ACEOF
18417if ac_fn_cxx_try_cpp "$LINENO"; then :
18418 # Broken: success on invalid input.
18419continue
18420else
18421 # Passes both tests.
18422ac_preproc_ok=:
18423break
18424fi
cristyda16f162011-02-19 23:52:17 +000018425rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018426
18427done
18428# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000018429rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018430if $ac_preproc_ok; then :
18431 break
18432fi
18433
18434 done
18435 ac_cv_prog_CXXCPP=$CXXCPP
18436
18437fi
18438 CXXCPP=$ac_cv_prog_CXXCPP
18439else
18440 ac_cv_prog_CXXCPP=$CXXCPP
18441fi
18442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18443$as_echo "$CXXCPP" >&6; }
18444ac_preproc_ok=false
18445for ac_cxx_preproc_warn_flag in '' yes
18446do
18447 # Use a header file that comes with gcc, so configuring glibc
18448 # with a fresh cross-compiler works.
18449 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18450 # <limits.h> exists even on freestanding compilers.
18451 # On the NeXT, cc -E runs the code through the compiler's parser,
18452 # not just through cpp. "Syntax error" is here to catch this case.
18453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18454/* end confdefs.h. */
18455#ifdef __STDC__
18456# include <limits.h>
18457#else
18458# include <assert.h>
18459#endif
18460 Syntax error
18461_ACEOF
18462if ac_fn_cxx_try_cpp "$LINENO"; then :
18463
18464else
18465 # Broken: fails on valid input.
18466continue
18467fi
cristyda16f162011-02-19 23:52:17 +000018468rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018469
18470 # OK, works on sane cases. Now check whether nonexistent headers
18471 # can be detected and how.
18472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18473/* end confdefs.h. */
18474#include <ac_nonexistent.h>
18475_ACEOF
18476if ac_fn_cxx_try_cpp "$LINENO"; then :
18477 # Broken: success on invalid input.
18478continue
18479else
18480 # Passes both tests.
18481ac_preproc_ok=:
18482break
18483fi
cristyda16f162011-02-19 23:52:17 +000018484rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018485
18486done
18487# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000018488rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018489if $ac_preproc_ok; then :
18490
18491else
18492 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18493$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18494as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
18495See \`config.log' for more details" "$LINENO" 5; }
18496fi
18497
18498ac_ext=c
18499ac_cpp='$CPP $CPPFLAGS'
18500ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18501ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18502ac_compiler_gnu=$ac_cv_c_compiler_gnu
18503
18504else
18505 _lt_caught_CXX_error=yes
18506fi
cristy73bd4a52010-10-05 11:24:23 +000018507
18508ac_ext=cpp
18509ac_cpp='$CXXCPP $CPPFLAGS'
18510ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18511ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18512ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18513
18514archive_cmds_need_lc_CXX=no
18515allow_undefined_flag_CXX=
18516always_export_symbols_CXX=no
18517archive_expsym_cmds_CXX=
18518compiler_needs_object_CXX=no
18519export_dynamic_flag_spec_CXX=
18520hardcode_direct_CXX=no
18521hardcode_direct_absolute_CXX=no
18522hardcode_libdir_flag_spec_CXX=
cristy73bd4a52010-10-05 11:24:23 +000018523hardcode_libdir_separator_CXX=
18524hardcode_minus_L_CXX=no
18525hardcode_shlibpath_var_CXX=unsupported
18526hardcode_automatic_CXX=no
18527inherit_rpath_CXX=no
18528module_cmds_CXX=
18529module_expsym_cmds_CXX=
18530link_all_deplibs_CXX=unknown
18531old_archive_cmds_CXX=$old_archive_cmds
cristy0c60a692010-11-04 01:09:47 +000018532reload_flag_CXX=$reload_flag
18533reload_cmds_CXX=$reload_cmds
cristy73bd4a52010-10-05 11:24:23 +000018534no_undefined_flag_CXX=
18535whole_archive_flag_spec_CXX=
18536enable_shared_with_static_runtimes_CXX=no
18537
18538# Source file extension for C++ test sources.
18539ac_ext=cpp
18540
18541# Object file extension for compiled C++ test sources.
18542objext=o
18543objext_CXX=$objext
18544
18545# No sense in running all these tests if we already determined that
18546# the CXX compiler isn't working. Some variables (like enable_shared)
18547# are currently assumed to apply to all compilers on this platform,
18548# and will be corrupted by setting them based on a non-working compiler.
18549if test "$_lt_caught_CXX_error" != yes; then
18550 # Code to be used in simple compile tests
18551 lt_simple_compile_test_code="int some_variable = 0;"
18552
18553 # Code to be used in simple link tests
18554 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18555
18556 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18557
18558
18559
18560
18561
18562
18563# If no C compiler was specified, use CC.
18564LTCC=${LTCC-"$CC"}
18565
18566# If no C compiler flags were specified, use CFLAGS.
18567LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18568
18569# Allow CC to be a program name with arguments.
18570compiler=$CC
18571
18572
18573 # save warnings/boilerplate of simple test code
18574 ac_outfile=conftest.$ac_objext
18575echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18576eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18577_lt_compiler_boilerplate=`cat conftest.err`
18578$RM conftest*
18579
18580 ac_outfile=conftest.$ac_objext
18581echo "$lt_simple_link_test_code" >conftest.$ac_ext
18582eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18583_lt_linker_boilerplate=`cat conftest.err`
18584$RM -r conftest*
18585
18586
18587 # Allow CC to be a program name with arguments.
18588 lt_save_CC=$CC
cristyda16f162011-02-19 23:52:17 +000018589 lt_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000018590 lt_save_LD=$LD
18591 lt_save_GCC=$GCC
18592 GCC=$GXX
18593 lt_save_with_gnu_ld=$with_gnu_ld
18594 lt_save_path_LD=$lt_cv_path_LD
18595 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18596 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18597 else
18598 $as_unset lt_cv_prog_gnu_ld
18599 fi
18600 if test -n "${lt_cv_path_LDCXX+set}"; then
18601 lt_cv_path_LD=$lt_cv_path_LDCXX
18602 else
18603 $as_unset lt_cv_path_LD
18604 fi
18605 test -z "${LDCXX+set}" || LD=$LDCXX
18606 CC=${CXX-"c++"}
cristyda16f162011-02-19 23:52:17 +000018607 CFLAGS=$CXXFLAGS
cristy73bd4a52010-10-05 11:24:23 +000018608 compiler=$CC
18609 compiler_CXX=$CC
18610 for cc_temp in $compiler""; do
18611 case $cc_temp in
18612 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18613 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18614 \-*) ;;
18615 *) break;;
18616 esac
18617done
cristy0c60a692010-11-04 01:09:47 +000018618cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000018619
18620
18621 if test -n "$compiler"; then
18622 # We don't want -fno-exception when compiling C++ code, so set the
18623 # no_builtin_flag separately
18624 if test "$GXX" = yes; then
18625 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18626 else
18627 lt_prog_compiler_no_builtin_flag_CXX=
18628 fi
18629
18630 if test "$GXX" = yes; then
18631 # Set up default GNU C++ configuration
18632
18633
18634
18635# Check whether --with-gnu-ld was given.
18636if test "${with_gnu_ld+set}" = set; then :
18637 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18638else
18639 with_gnu_ld=no
18640fi
18641
18642ac_prog=ld
18643if test "$GCC" = yes; then
18644 # Check if gcc -print-prog-name=ld gives a path.
18645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18646$as_echo_n "checking for ld used by $CC... " >&6; }
18647 case $host in
18648 *-*-mingw*)
18649 # gcc leaves a trailing carriage return which upsets mingw
18650 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18651 *)
18652 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18653 esac
18654 case $ac_prog in
18655 # Accept absolute paths.
18656 [\\/]* | ?:[\\/]*)
18657 re_direlt='/[^/][^/]*/\.\./'
18658 # Canonicalize the pathname of ld
18659 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18660 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18661 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18662 done
18663 test -z "$LD" && LD="$ac_prog"
18664 ;;
18665 "")
18666 # If it fails, then pretend we aren't using GCC.
18667 ac_prog=ld
18668 ;;
18669 *)
18670 # If it is relative, then search for the first ld in PATH.
18671 with_gnu_ld=unknown
18672 ;;
18673 esac
18674elif test "$with_gnu_ld" = yes; then
18675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18676$as_echo_n "checking for GNU ld... " >&6; }
18677else
18678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18679$as_echo_n "checking for non-GNU ld... " >&6; }
18680fi
cristyda16f162011-02-19 23:52:17 +000018681if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018682 $as_echo_n "(cached) " >&6
18683else
18684 if test -z "$LD"; then
18685 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18686 for ac_dir in $PATH; do
18687 IFS="$lt_save_ifs"
18688 test -z "$ac_dir" && ac_dir=.
18689 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18690 lt_cv_path_LD="$ac_dir/$ac_prog"
18691 # Check to see if the program is GNU ld. I'd rather use --version,
18692 # but apparently some variants of GNU ld only accept -v.
18693 # Break only if it was the GNU/non-GNU ld that we prefer.
18694 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18695 *GNU* | *'with BFD'*)
18696 test "$with_gnu_ld" != no && break
18697 ;;
18698 *)
18699 test "$with_gnu_ld" != yes && break
18700 ;;
18701 esac
18702 fi
18703 done
18704 IFS="$lt_save_ifs"
18705else
18706 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18707fi
18708fi
18709
18710LD="$lt_cv_path_LD"
18711if test -n "$LD"; then
18712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18713$as_echo "$LD" >&6; }
18714else
18715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18716$as_echo "no" >&6; }
18717fi
cristy98dddb52010-11-04 00:30:15 +000018718test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000018719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18720$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018721if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018722 $as_echo_n "(cached) " >&6
18723else
18724 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18725case `$LD -v 2>&1 </dev/null` in
18726*GNU* | *'with BFD'*)
18727 lt_cv_prog_gnu_ld=yes
18728 ;;
18729*)
18730 lt_cv_prog_gnu_ld=no
18731 ;;
18732esac
18733fi
18734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18735$as_echo "$lt_cv_prog_gnu_ld" >&6; }
18736with_gnu_ld=$lt_cv_prog_gnu_ld
18737
18738
18739
18740
18741
18742
18743
18744 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18745 # archiving commands below assume that GNU ld is being used.
18746 if test "$with_gnu_ld" = yes; then
cristyda16f162011-02-19 23:52:17 +000018747 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18748 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000018749
18750 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18751 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18752
18753 # If archive_cmds runs LD, not CC, wlarc should be empty
18754 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18755 # investigate it a little bit more. (MM)
18756 wlarc='${wl}'
18757
18758 # ancient GNU ld didn't support --whole-archive et. al.
18759 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18760 $GREP 'no-whole-archive' > /dev/null; then
18761 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18762 else
18763 whole_archive_flag_spec_CXX=
18764 fi
18765 else
18766 with_gnu_ld=no
18767 wlarc=
18768
18769 # A generic and very simple default shared library creation
18770 # command for GNU C++ for the case where it uses the native
18771 # linker, instead of GNU ld. If possible, this setting should
18772 # overridden to take advantage of the native linker features on
18773 # the platform it is being used on.
18774 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18775 fi
18776
18777 # Commands to make compiler produce verbose output that lists
18778 # what "hidden" libraries, object files and flags are used when
18779 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018780 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018781
18782 else
18783 GXX=no
18784 with_gnu_ld=no
18785 wlarc=
18786 fi
18787
18788 # PORTME: fill in a description of your system's C++ link characteristics
18789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18790$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18791 ld_shlibs_CXX=yes
18792 case $host_os in
18793 aix3*)
18794 # FIXME: insert proper C++ library support
18795 ld_shlibs_CXX=no
18796 ;;
18797 aix[4-9]*)
18798 if test "$host_cpu" = ia64; then
18799 # On IA64, the linker does run time linking by default, so we don't
18800 # have to do anything special.
18801 aix_use_runtimelinking=no
18802 exp_sym_flag='-Bexport'
18803 no_entry_flag=""
18804 else
18805 aix_use_runtimelinking=no
18806
18807 # Test if we are trying to use run time linking or normal
18808 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18809 # need to do runtime linking.
18810 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18811 for ld_flag in $LDFLAGS; do
18812 case $ld_flag in
18813 *-brtl*)
18814 aix_use_runtimelinking=yes
18815 break
18816 ;;
18817 esac
18818 done
18819 ;;
18820 esac
18821
18822 exp_sym_flag='-bexport'
18823 no_entry_flag='-bnoentry'
18824 fi
18825
18826 # When large executables or shared objects are built, AIX ld can
18827 # have problems creating the table of contents. If linking a library
18828 # or program results in "error TOC overflow" add -mminimal-toc to
18829 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18830 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18831
18832 archive_cmds_CXX=''
18833 hardcode_direct_CXX=yes
18834 hardcode_direct_absolute_CXX=yes
18835 hardcode_libdir_separator_CXX=':'
18836 link_all_deplibs_CXX=yes
18837 file_list_spec_CXX='${wl}-f,'
18838
18839 if test "$GXX" = yes; then
18840 case $host_os in aix4.[012]|aix4.[012].*)
18841 # We only want to do this on AIX 4.2 and lower, the check
18842 # below for broken collect2 doesn't work under 4.3+
18843 collect2name=`${CC} -print-prog-name=collect2`
18844 if test -f "$collect2name" &&
18845 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18846 then
18847 # We have reworked collect2
18848 :
18849 else
18850 # We have old collect2
18851 hardcode_direct_CXX=unsupported
18852 # It fails to find uninstalled libraries when the uninstalled
18853 # path is not listed in the libpath. Setting hardcode_minus_L
18854 # to unsupported forces relinking
18855 hardcode_minus_L_CXX=yes
18856 hardcode_libdir_flag_spec_CXX='-L$libdir'
18857 hardcode_libdir_separator_CXX=
18858 fi
18859 esac
18860 shared_flag='-shared'
18861 if test "$aix_use_runtimelinking" = yes; then
18862 shared_flag="$shared_flag "'${wl}-G'
18863 fi
18864 else
18865 # not using gcc
18866 if test "$host_cpu" = ia64; then
18867 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18868 # chokes on -Wl,-G. The following line is correct:
18869 shared_flag='-G'
18870 else
18871 if test "$aix_use_runtimelinking" = yes; then
18872 shared_flag='${wl}-G'
18873 else
18874 shared_flag='${wl}-bM:SRE'
18875 fi
18876 fi
18877 fi
18878
18879 export_dynamic_flag_spec_CXX='${wl}-bexpall'
18880 # It seems that -bexpall does not export symbols beginning with
18881 # underscore (_), so it is better to generate a list of symbols to
18882 # export.
18883 always_export_symbols_CXX=yes
18884 if test "$aix_use_runtimelinking" = yes; then
18885 # Warning - without using the other runtime loading flags (-brtl),
18886 # -berok will link without error, but may produce a broken library.
18887 allow_undefined_flag_CXX='-berok'
18888 # Determine the default libpath from the value encoded in an empty
18889 # executable.
cristyda16f162011-02-19 23:52:17 +000018890 if test "${lt_cv_aix_libpath+set}" = set; then
18891 aix_libpath=$lt_cv_aix_libpath
18892else
18893 if ${lt_cv_aix_libpath__CXX+:} false; then :
18894 $as_echo_n "(cached) " >&6
18895else
18896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000018897/* end confdefs.h. */
18898
18899int
18900main ()
18901{
18902
18903 ;
18904 return 0;
18905}
18906_ACEOF
18907if ac_fn_cxx_try_link "$LINENO"; then :
18908
cristyda16f162011-02-19 23:52:17 +000018909 lt_aix_libpath_sed='
18910 /Import File Strings/,/^$/ {
18911 /^0/ {
18912 s/^0 *\([^ ]*\) *$/\1/
18913 p
18914 }
18915 }'
18916 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18917 # Check for a 64-bit object if we didn't find anything.
18918 if test -z "$lt_cv_aix_libpath__CXX"; then
18919 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18920 fi
cristy73bd4a52010-10-05 11:24:23 +000018921fi
18922rm -f core conftest.err conftest.$ac_objext \
18923 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000018924 if test -z "$lt_cv_aix_libpath__CXX"; then
18925 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
18926 fi
18927
18928fi
18929
18930 aix_libpath=$lt_cv_aix_libpath__CXX
18931fi
cristy73bd4a52010-10-05 11:24:23 +000018932
18933 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18934
cristy0c60a692010-11-04 01:09:47 +000018935 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
cristy73bd4a52010-10-05 11:24:23 +000018936 else
18937 if test "$host_cpu" = ia64; then
18938 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18939 allow_undefined_flag_CXX="-z nodefs"
18940 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
18941 else
18942 # Determine the default libpath from the value encoded in an
18943 # empty executable.
cristyda16f162011-02-19 23:52:17 +000018944 if test "${lt_cv_aix_libpath+set}" = set; then
18945 aix_libpath=$lt_cv_aix_libpath
18946else
18947 if ${lt_cv_aix_libpath__CXX+:} false; then :
18948 $as_echo_n "(cached) " >&6
18949else
18950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000018951/* end confdefs.h. */
18952
18953int
18954main ()
18955{
18956
18957 ;
18958 return 0;
18959}
18960_ACEOF
18961if ac_fn_cxx_try_link "$LINENO"; then :
18962
cristyda16f162011-02-19 23:52:17 +000018963 lt_aix_libpath_sed='
18964 /Import File Strings/,/^$/ {
18965 /^0/ {
18966 s/^0 *\([^ ]*\) *$/\1/
18967 p
18968 }
18969 }'
18970 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18971 # Check for a 64-bit object if we didn't find anything.
18972 if test -z "$lt_cv_aix_libpath__CXX"; then
18973 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18974 fi
cristy73bd4a52010-10-05 11:24:23 +000018975fi
18976rm -f core conftest.err conftest.$ac_objext \
18977 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000018978 if test -z "$lt_cv_aix_libpath__CXX"; then
18979 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
18980 fi
18981
18982fi
18983
18984 aix_libpath=$lt_cv_aix_libpath__CXX
18985fi
cristy73bd4a52010-10-05 11:24:23 +000018986
18987 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18988 # Warning - without using the other run time loading flags,
18989 # -berok will link without error, but may produce a broken library.
18990 no_undefined_flag_CXX=' ${wl}-bernotok'
18991 allow_undefined_flag_CXX=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000018992 if test "$with_gnu_ld" = yes; then
18993 # We only use this code for GNU lds that support --whole-archive.
18994 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18995 else
18996 # Exported symbols can be pulled into shared objects from archives
18997 whole_archive_flag_spec_CXX='$convenience'
18998 fi
cristy73bd4a52010-10-05 11:24:23 +000018999 archive_cmds_need_lc_CXX=yes
19000 # This is similar to how AIX traditionally builds its shared
19001 # libraries.
19002 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
19003 fi
19004 fi
19005 ;;
19006
19007 beos*)
19008 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19009 allow_undefined_flag_CXX=unsupported
19010 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19011 # support --undefined. This deserves some investigation. FIXME
19012 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19013 else
19014 ld_shlibs_CXX=no
19015 fi
19016 ;;
19017
19018 chorus*)
19019 case $cc_basename in
19020 *)
19021 # FIXME: insert proper C++ library support
19022 ld_shlibs_CXX=no
19023 ;;
19024 esac
19025 ;;
19026
19027 cygwin* | mingw* | pw32* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000019028 case $GXX,$cc_basename in
19029 ,cl* | no,cl*)
19030 # Native MSVC
19031 # hardcode_libdir_flag_spec is actually meaningless, as there is
19032 # no search path for DLLs.
19033 hardcode_libdir_flag_spec_CXX=' '
19034 allow_undefined_flag_CXX=unsupported
19035 always_export_symbols_CXX=yes
19036 file_list_spec_CXX='@'
19037 # Tell ltmain to make .lib files, not .a files.
19038 libext=lib
19039 # Tell ltmain to make .dll files, not .so files.
19040 shrext_cmds=".dll"
19041 # FIXME: Setting linknames here is a bad hack.
19042 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
19043 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19044 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
19045 else
19046 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
19047 fi~
19048 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
19049 linknames='
19050 # The linker will not automatically build a static lib if we build a DLL.
19051 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
19052 enable_shared_with_static_runtimes_CXX=yes
19053 # Don't use ranlib
19054 old_postinstall_cmds_CXX='chmod 644 $oldlib'
19055 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
19056 lt_tool_outputfile="@TOOL_OUTPUT@"~
19057 case $lt_outputfile in
19058 *.exe|*.EXE) ;;
19059 *)
19060 lt_outputfile="$lt_outputfile.exe"
19061 lt_tool_outputfile="$lt_tool_outputfile.exe"
19062 ;;
19063 esac~
19064 func_to_tool_file "$lt_outputfile"~
19065 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
19066 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
19067 $RM "$lt_outputfile.manifest";
19068 fi'
19069 ;;
19070 *)
19071 # g++
19072 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19073 # as there is no search path for DLLs.
19074 hardcode_libdir_flag_spec_CXX='-L$libdir'
19075 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
19076 allow_undefined_flag_CXX=unsupported
19077 always_export_symbols_CXX=no
19078 enable_shared_with_static_runtimes_CXX=yes
cristy73bd4a52010-10-05 11:24:23 +000019079
cristyda16f162011-02-19 23:52:17 +000019080 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19081 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
19082 # If the export-symbols file already is a .def file (1st line
19083 # is EXPORTS), use it as is; otherwise, prepend...
19084 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19085 cp $export_symbols $output_objdir/$soname.def;
19086 else
19087 echo EXPORTS > $output_objdir/$soname.def;
19088 cat $export_symbols >> $output_objdir/$soname.def;
19089 fi~
19090 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
19091 else
19092 ld_shlibs_CXX=no
19093 fi
19094 ;;
19095 esac
19096 ;;
cristy73bd4a52010-10-05 11:24:23 +000019097 darwin* | rhapsody*)
19098
19099
19100 archive_cmds_need_lc_CXX=no
19101 hardcode_direct_CXX=no
19102 hardcode_automatic_CXX=yes
19103 hardcode_shlibpath_var_CXX=unsupported
cristy0c60a692010-11-04 01:09:47 +000019104 if test "$lt_cv_ld_force_load" = "yes"; then
19105 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
cristy99bd5232011-12-07 14:38:20 +000019106
cristy0c60a692010-11-04 01:09:47 +000019107 else
19108 whole_archive_flag_spec_CXX=''
19109 fi
cristy73bd4a52010-10-05 11:24:23 +000019110 link_all_deplibs_CXX=yes
19111 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
19112 case $cc_basename in
19113 ifort*) _lt_dar_can_shared=yes ;;
19114 *) _lt_dar_can_shared=$GCC ;;
19115 esac
19116 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000019117 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000019118 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
19119 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19120 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
19121 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
19122 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19123 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
19124 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
19125 fi
19126
19127 else
19128 ld_shlibs_CXX=no
19129 fi
19130
19131 ;;
19132
19133 dgux*)
19134 case $cc_basename in
19135 ec++*)
19136 # FIXME: insert proper C++ library support
19137 ld_shlibs_CXX=no
19138 ;;
19139 ghcx*)
19140 # Green Hills C++ Compiler
19141 # FIXME: insert proper C++ library support
19142 ld_shlibs_CXX=no
19143 ;;
19144 *)
19145 # FIXME: insert proper C++ library support
19146 ld_shlibs_CXX=no
19147 ;;
19148 esac
19149 ;;
19150
cristy99bd5232011-12-07 14:38:20 +000019151 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000019152 # C++ shared libraries reported to be fairly broken before
19153 # switch to ELF
19154 ld_shlibs_CXX=no
19155 ;;
19156
19157 freebsd-elf*)
19158 archive_cmds_need_lc_CXX=no
19159 ;;
19160
19161 freebsd* | dragonfly*)
19162 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19163 # conventions
19164 ld_shlibs_CXX=yes
19165 ;;
19166
19167 gnu*)
19168 ;;
19169
cristy0c60a692010-11-04 01:09:47 +000019170 haiku*)
19171 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19172 link_all_deplibs_CXX=yes
19173 ;;
19174
cristy73bd4a52010-10-05 11:24:23 +000019175 hpux9*)
19176 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19177 hardcode_libdir_separator_CXX=:
19178 export_dynamic_flag_spec_CXX='${wl}-E'
19179 hardcode_direct_CXX=yes
19180 hardcode_minus_L_CXX=yes # Not in the search PATH,
19181 # but as the default
19182 # location of the library.
19183
19184 case $cc_basename in
19185 CC*)
19186 # FIXME: insert proper C++ library support
19187 ld_shlibs_CXX=no
19188 ;;
19189 aCC*)
19190 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
19191 # Commands to make compiler produce verbose output that lists
19192 # what "hidden" libraries, object files and flags are used when
19193 # linking a shared library.
19194 #
19195 # There doesn't appear to be a way to prevent this compiler from
19196 # explicitly linking system object files so we need to strip them
19197 # from the output so that they don't get included in the library
19198 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000019199 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
cristy73bd4a52010-10-05 11:24:23 +000019200 ;;
19201 *)
19202 if test "$GXX" = yes; then
cristyda16f162011-02-19 23:52:17 +000019203 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
cristy73bd4a52010-10-05 11:24:23 +000019204 else
19205 # FIXME: insert proper C++ library support
19206 ld_shlibs_CXX=no
19207 fi
19208 ;;
19209 esac
19210 ;;
19211
19212 hpux10*|hpux11*)
19213 if test $with_gnu_ld = no; then
19214 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19215 hardcode_libdir_separator_CXX=:
19216
19217 case $host_cpu in
19218 hppa*64*|ia64*)
19219 ;;
19220 *)
19221 export_dynamic_flag_spec_CXX='${wl}-E'
19222 ;;
19223 esac
19224 fi
19225 case $host_cpu in
19226 hppa*64*|ia64*)
19227 hardcode_direct_CXX=no
19228 hardcode_shlibpath_var_CXX=no
19229 ;;
19230 *)
19231 hardcode_direct_CXX=yes
19232 hardcode_direct_absolute_CXX=yes
19233 hardcode_minus_L_CXX=yes # Not in the search PATH,
19234 # but as the default
19235 # location of the library.
19236 ;;
19237 esac
19238
19239 case $cc_basename in
19240 CC*)
19241 # FIXME: insert proper C++ library support
19242 ld_shlibs_CXX=no
19243 ;;
19244 aCC*)
19245 case $host_cpu in
19246 hppa*64*)
19247 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19248 ;;
19249 ia64*)
19250 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19251 ;;
19252 *)
19253 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19254 ;;
19255 esac
19256 # Commands to make compiler produce verbose output that lists
19257 # what "hidden" libraries, object files and flags are used when
19258 # linking a shared library.
19259 #
19260 # There doesn't appear to be a way to prevent this compiler from
19261 # explicitly linking system object files so we need to strip them
19262 # from the output so that they don't get included in the library
19263 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000019264 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
cristy73bd4a52010-10-05 11:24:23 +000019265 ;;
19266 *)
19267 if test "$GXX" = yes; then
19268 if test $with_gnu_ld = no; then
19269 case $host_cpu in
19270 hppa*64*)
19271 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19272 ;;
19273 ia64*)
cristyda16f162011-02-19 23:52:17 +000019274 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000019275 ;;
19276 *)
cristyda16f162011-02-19 23:52:17 +000019277 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000019278 ;;
19279 esac
19280 fi
19281 else
19282 # FIXME: insert proper C++ library support
19283 ld_shlibs_CXX=no
19284 fi
19285 ;;
19286 esac
19287 ;;
19288
19289 interix[3-9]*)
19290 hardcode_direct_CXX=no
19291 hardcode_shlibpath_var_CXX=no
19292 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19293 export_dynamic_flag_spec_CXX='${wl}-E'
19294 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19295 # Instead, shared libraries are loaded at an image base (0x10000000 by
19296 # default) and relocated if they conflict, which is a slow very memory
19297 # consuming and fragmenting process. To avoid this, we pick a random,
19298 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19299 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19300 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
19301 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
19302 ;;
19303 irix5* | irix6*)
19304 case $cc_basename in
19305 CC*)
19306 # SGI C++
cristy0c60a692010-11-04 01:09:47 +000019307 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000019308
19309 # Archives containing C++ object files must be created using
19310 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19311 # necessary to make sure instantiated templates are included
19312 # in the archive.
19313 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19314 ;;
19315 *)
19316 if test "$GXX" = yes; then
19317 if test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000019318 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000019319 else
cristyda16f162011-02-19 23:52:17 +000019320 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000019321 fi
19322 fi
19323 link_all_deplibs_CXX=yes
19324 ;;
19325 esac
19326 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19327 hardcode_libdir_separator_CXX=:
19328 inherit_rpath_CXX=yes
19329 ;;
19330
cristy0c60a692010-11-04 01:09:47 +000019331 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000019332 case $cc_basename in
19333 KCC*)
19334 # Kuck and Associates, Inc. (KAI) C++ Compiler
19335
19336 # KCC will only create a shared library if the output file
19337 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19338 # to its proper name (with version) after linking.
19339 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
19340 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
19341 # Commands to make compiler produce verbose output that lists
19342 # what "hidden" libraries, object files and flags are used when
19343 # linking a shared library.
19344 #
19345 # There doesn't appear to be a way to prevent this compiler from
19346 # explicitly linking system object files so we need to strip them
19347 # from the output so that they don't get included in the library
19348 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000019349 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
cristy73bd4a52010-10-05 11:24:23 +000019350
19351 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19352 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19353
19354 # Archives containing C++ object files must be created using
19355 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19356 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19357 ;;
19358 icpc* | ecpc* )
19359 # Intel C++
19360 with_gnu_ld=yes
19361 # version 8.0 and above of icpc choke on multiply defined symbols
19362 # if we add $predep_objects and $postdep_objects, however 7.1 and
19363 # earlier do not add the objects themselves.
19364 case `$CC -V 2>&1` in
19365 *"Version 7."*)
19366 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19367 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19368 ;;
19369 *) # Version 8.0 or newer
19370 tmp_idyn=
19371 case $host_cpu in
19372 ia64*) tmp_idyn=' -i_dynamic';;
19373 esac
19374 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19375 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19376 ;;
19377 esac
19378 archive_cmds_need_lc_CXX=no
19379 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19380 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19381 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19382 ;;
19383 pgCC* | pgcpp*)
19384 # Portland Group C++ compiler
19385 case `$CC -V` in
cristy0c60a692010-11-04 01:09:47 +000019386 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
cristy73bd4a52010-10-05 11:24:23 +000019387 prelink_cmds_CXX='tpldir=Template.dir~
19388 rm -rf $tpldir~
19389 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
cristy0c60a692010-11-04 01:09:47 +000019390 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
cristy73bd4a52010-10-05 11:24:23 +000019391 old_archive_cmds_CXX='tpldir=Template.dir~
19392 rm -rf $tpldir~
19393 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
cristy0c60a692010-11-04 01:09:47 +000019394 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
cristy73bd4a52010-10-05 11:24:23 +000019395 $RANLIB $oldlib'
19396 archive_cmds_CXX='tpldir=Template.dir~
19397 rm -rf $tpldir~
19398 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000019399 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000019400 archive_expsym_cmds_CXX='tpldir=Template.dir~
19401 rm -rf $tpldir~
19402 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000019403 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000019404 ;;
cristy0c60a692010-11-04 01:09:47 +000019405 *) # Version 6 and above use weak symbols
cristy73bd4a52010-10-05 11:24:23 +000019406 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19407 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
19408 ;;
19409 esac
19410
19411 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19412 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cristy0c60a692010-11-04 01:09:47 +000019413 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
cristy73bd4a52010-10-05 11:24:23 +000019414 ;;
19415 cxx*)
19416 # Compaq C++
19417 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19418 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
19419
19420 runpath_var=LD_RUN_PATH
19421 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19422 hardcode_libdir_separator_CXX=:
19423
19424 # Commands to make compiler produce verbose output that lists
19425 # what "hidden" libraries, object files and flags are used when
19426 # linking a shared library.
19427 #
19428 # There doesn't appear to be a way to prevent this compiler from
19429 # explicitly linking system object files so we need to strip them
19430 # from the output so that they don't get included in the library
19431 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000019432 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
cristy73bd4a52010-10-05 11:24:23 +000019433 ;;
cristy0c60a692010-11-04 01:09:47 +000019434 xl* | mpixl* | bgxl*)
cristy73bd4a52010-10-05 11:24:23 +000019435 # IBM XL 8.0 on PPC, with GNU ld
19436 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19437 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19438 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19439 if test "x$supports_anon_versioning" = xyes; then
19440 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19441 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19442 echo "local: *; };" >> $output_objdir/$libname.ver~
19443 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19444 fi
19445 ;;
19446 *)
19447 case `$CC -V 2>&1 | sed 5q` in
19448 *Sun\ C*)
19449 # Sun C++ 5.9
19450 no_undefined_flag_CXX=' -zdefs'
19451 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19452 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
19453 hardcode_libdir_flag_spec_CXX='-R$libdir'
cristy0c60a692010-11-04 01:09:47 +000019454 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
cristy73bd4a52010-10-05 11:24:23 +000019455 compiler_needs_object_CXX=yes
19456
19457 # Not sure whether something based on
19458 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19459 # would be better.
cristy0c60a692010-11-04 01:09:47 +000019460 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000019461
19462 # Archives containing C++ object files must be created using
19463 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19464 # necessary to make sure instantiated templates are included
19465 # in the archive.
19466 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19467 ;;
19468 esac
19469 ;;
19470 esac
19471 ;;
19472
19473 lynxos*)
19474 # FIXME: insert proper C++ library support
19475 ld_shlibs_CXX=no
19476 ;;
19477
19478 m88k*)
19479 # FIXME: insert proper C++ library support
19480 ld_shlibs_CXX=no
19481 ;;
19482
19483 mvs*)
19484 case $cc_basename in
19485 cxx*)
19486 # FIXME: insert proper C++ library support
19487 ld_shlibs_CXX=no
19488 ;;
19489 *)
19490 # FIXME: insert proper C++ library support
19491 ld_shlibs_CXX=no
19492 ;;
19493 esac
19494 ;;
19495
19496 netbsd*)
19497 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19498 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19499 wlarc=
19500 hardcode_libdir_flag_spec_CXX='-R$libdir'
19501 hardcode_direct_CXX=yes
19502 hardcode_shlibpath_var_CXX=no
19503 fi
19504 # Workaround some broken pre-1.5 toolchains
19505 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19506 ;;
19507
19508 *nto* | *qnx*)
19509 ld_shlibs_CXX=yes
19510 ;;
19511
19512 openbsd2*)
19513 # C++ shared libraries are fairly broken
19514 ld_shlibs_CXX=no
19515 ;;
19516
19517 openbsd*)
19518 if test -f /usr/libexec/ld.so; then
19519 hardcode_direct_CXX=yes
19520 hardcode_shlibpath_var_CXX=no
19521 hardcode_direct_absolute_CXX=yes
19522 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19523 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19524 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19525 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19526 export_dynamic_flag_spec_CXX='${wl}-E'
19527 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19528 fi
cristy0c60a692010-11-04 01:09:47 +000019529 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000019530 else
19531 ld_shlibs_CXX=no
19532 fi
19533 ;;
19534
19535 osf3* | osf4* | osf5*)
19536 case $cc_basename in
19537 KCC*)
19538 # Kuck and Associates, Inc. (KAI) C++ Compiler
19539
19540 # KCC will only create a shared library if the output file
19541 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19542 # to its proper name (with version) after linking.
19543 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
19544
19545 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19546 hardcode_libdir_separator_CXX=:
19547
19548 # Archives containing C++ object files must be created using
19549 # the KAI C++ compiler.
19550 case $host in
19551 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19552 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19553 esac
19554 ;;
19555 RCC*)
19556 # Rational C++ 2.4.1
19557 # FIXME: insert proper C++ library support
19558 ld_shlibs_CXX=no
19559 ;;
19560 cxx*)
19561 case $host in
19562 osf3*)
19563 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000019564 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000019565 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19566 ;;
19567 *)
19568 allow_undefined_flag_CXX=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000019569 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000019570 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19571 echo "-hidden">> $lib.exp~
cristy0c60a692010-11-04 01:09:47 +000019572 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
cristy73bd4a52010-10-05 11:24:23 +000019573 $RM $lib.exp'
19574 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19575 ;;
19576 esac
19577
19578 hardcode_libdir_separator_CXX=:
19579
19580 # Commands to make compiler produce verbose output that lists
19581 # what "hidden" libraries, object files and flags are used when
19582 # linking a shared library.
19583 #
19584 # There doesn't appear to be a way to prevent this compiler from
19585 # explicitly linking system object files so we need to strip them
19586 # from the output so that they don't get included in the library
19587 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000019588 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
cristy73bd4a52010-10-05 11:24:23 +000019589 ;;
19590 *)
19591 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19592 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19593 case $host in
19594 osf3*)
cristy0c60a692010-11-04 01:09:47 +000019595 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000019596 ;;
19597 *)
cristyda16f162011-02-19 23:52:17 +000019598 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000019599 ;;
19600 esac
19601
19602 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19603 hardcode_libdir_separator_CXX=:
19604
19605 # Commands to make compiler produce verbose output that lists
19606 # what "hidden" libraries, object files and flags are used when
19607 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000019608 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000019609
19610 else
19611 # FIXME: insert proper C++ library support
19612 ld_shlibs_CXX=no
19613 fi
19614 ;;
19615 esac
19616 ;;
19617
19618 psos*)
19619 # FIXME: insert proper C++ library support
19620 ld_shlibs_CXX=no
19621 ;;
19622
19623 sunos4*)
19624 case $cc_basename in
19625 CC*)
19626 # Sun C++ 4.x
19627 # FIXME: insert proper C++ library support
19628 ld_shlibs_CXX=no
19629 ;;
19630 lcc*)
19631 # Lucid
19632 # FIXME: insert proper C++ library support
19633 ld_shlibs_CXX=no
19634 ;;
19635 *)
19636 # FIXME: insert proper C++ library support
19637 ld_shlibs_CXX=no
19638 ;;
19639 esac
19640 ;;
19641
19642 solaris*)
19643 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000019644 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000019645 # Sun C++ 4.2, 5.x and Centerline C++
19646 archive_cmds_need_lc_CXX=yes
19647 no_undefined_flag_CXX=' -zdefs'
19648 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19649 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19650 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19651
19652 hardcode_libdir_flag_spec_CXX='-R$libdir'
19653 hardcode_shlibpath_var_CXX=no
19654 case $host_os in
19655 solaris2.[0-5] | solaris2.[0-5].*) ;;
19656 *)
19657 # The compiler driver will combine and reorder linker options,
19658 # but understands `-z linker_flag'.
19659 # Supported since Solaris 2.6 (maybe 2.5.1?)
19660 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19661 ;;
19662 esac
19663 link_all_deplibs_CXX=yes
19664
cristy0c60a692010-11-04 01:09:47 +000019665 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000019666
19667 # Archives containing C++ object files must be created using
19668 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19669 # necessary to make sure instantiated templates are included
19670 # in the archive.
19671 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19672 ;;
19673 gcx*)
19674 # Green Hills C++ Compiler
19675 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19676
19677 # The C++ compiler must be used to create the archive.
19678 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19679 ;;
19680 *)
19681 # GNU C++ compiler with Solaris linker
19682 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19683 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19684 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000019685 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000019686 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
cristyda16f162011-02-19 23:52:17 +000019687 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
cristy73bd4a52010-10-05 11:24:23 +000019688
19689 # Commands to make compiler produce verbose output that lists
19690 # what "hidden" libraries, object files and flags are used when
19691 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000019692 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000019693 else
19694 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19695 # platform.
19696 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19697 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19698 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19699
19700 # Commands to make compiler produce verbose output that lists
19701 # what "hidden" libraries, object files and flags are used when
19702 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000019703 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000019704 fi
19705
19706 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19707 case $host_os in
19708 solaris2.[0-5] | solaris2.[0-5].*) ;;
19709 *)
19710 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19711 ;;
19712 esac
19713 fi
19714 ;;
19715 esac
19716 ;;
19717
19718 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19719 no_undefined_flag_CXX='${wl}-z,text'
19720 archive_cmds_need_lc_CXX=no
19721 hardcode_shlibpath_var_CXX=no
19722 runpath_var='LD_RUN_PATH'
19723
19724 case $cc_basename in
19725 CC*)
19726 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19727 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19728 ;;
19729 *)
19730 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19731 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19732 ;;
19733 esac
19734 ;;
19735
19736 sysv5* | sco3.2v5* | sco5v6*)
19737 # Note: We can NOT use -z defs as we might desire, because we do not
19738 # link with -lc, and that would cause any symbols used from libc to
19739 # always be unresolved, which means just about no library would
19740 # ever link correctly. If we're not using GNU ld we use -z text
19741 # though, which does catch some bad symbols but isn't as heavy-handed
19742 # as -z defs.
19743 no_undefined_flag_CXX='${wl}-z,text'
19744 allow_undefined_flag_CXX='${wl}-z,nodefs'
19745 archive_cmds_need_lc_CXX=no
19746 hardcode_shlibpath_var_CXX=no
19747 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19748 hardcode_libdir_separator_CXX=':'
19749 link_all_deplibs_CXX=yes
19750 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19751 runpath_var='LD_RUN_PATH'
19752
19753 case $cc_basename in
19754 CC*)
19755 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19756 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
cristy0c60a692010-11-04 01:09:47 +000019757 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19758 '"$old_archive_cmds_CXX"
19759 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19760 '"$reload_cmds_CXX"
cristy73bd4a52010-10-05 11:24:23 +000019761 ;;
19762 *)
19763 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19764 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19765 ;;
19766 esac
19767 ;;
19768
19769 tandem*)
19770 case $cc_basename in
19771 NCC*)
19772 # NonStop-UX NCC 3.20
19773 # FIXME: insert proper C++ library support
19774 ld_shlibs_CXX=no
19775 ;;
19776 *)
19777 # FIXME: insert proper C++ library support
19778 ld_shlibs_CXX=no
19779 ;;
19780 esac
19781 ;;
19782
19783 vxworks*)
19784 # FIXME: insert proper C++ library support
19785 ld_shlibs_CXX=no
19786 ;;
19787
19788 *)
19789 # FIXME: insert proper C++ library support
19790 ld_shlibs_CXX=no
19791 ;;
19792 esac
19793
19794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19795$as_echo "$ld_shlibs_CXX" >&6; }
19796 test "$ld_shlibs_CXX" = no && can_build_shared=no
19797
19798 GCC_CXX="$GXX"
19799 LD_CXX="$LD"
19800
19801 ## CAVEAT EMPTOR:
19802 ## There is no encapsulation within the following macros, do not change
19803 ## the running order or otherwise move them around unless you know exactly
19804 ## what you are doing...
19805 # Dependencies to place before and after the object being linked:
19806predep_objects_CXX=
19807postdep_objects_CXX=
19808predeps_CXX=
19809postdeps_CXX=
19810compiler_lib_search_path_CXX=
19811
19812cat > conftest.$ac_ext <<_LT_EOF
19813class Foo
19814{
19815public:
19816 Foo (void) { a = 0; }
19817private:
19818 int a;
19819};
19820_LT_EOF
19821
cristyda16f162011-02-19 23:52:17 +000019822
19823_lt_libdeps_save_CFLAGS=$CFLAGS
19824case "$CC $CFLAGS " in #(
19825*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
19826*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
cristy99bd5232011-12-07 14:38:20 +000019827*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
cristyda16f162011-02-19 23:52:17 +000019828esac
19829
cristy73bd4a52010-10-05 11:24:23 +000019830if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19831 (eval $ac_compile) 2>&5
19832 ac_status=$?
19833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19834 test $ac_status = 0; }; then
19835 # Parse the compiler output and extract the necessary
19836 # objects, libraries and library flags.
19837
19838 # Sentinel used to keep track of whether or not we are before
19839 # the conftest object file.
19840 pre_test_object_deps_done=no
19841
19842 for p in `eval "$output_verbose_link_cmd"`; do
cristyda16f162011-02-19 23:52:17 +000019843 case ${prev}${p} in
cristy73bd4a52010-10-05 11:24:23 +000019844
19845 -L* | -R* | -l*)
19846 # Some compilers place space between "-{L,R}" and the path.
19847 # Remove the space.
19848 if test $p = "-L" ||
19849 test $p = "-R"; then
19850 prev=$p
19851 continue
cristy73bd4a52010-10-05 11:24:23 +000019852 fi
19853
cristyda16f162011-02-19 23:52:17 +000019854 # Expand the sysroot to ease extracting the directories later.
19855 if test -z "$prev"; then
19856 case $p in
19857 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
19858 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
19859 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
19860 esac
19861 fi
19862 case $p in
19863 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
19864 esac
cristy73bd4a52010-10-05 11:24:23 +000019865 if test "$pre_test_object_deps_done" = no; then
cristyda16f162011-02-19 23:52:17 +000019866 case ${prev} in
19867 -L | -R)
cristy73bd4a52010-10-05 11:24:23 +000019868 # Internal compiler library paths should come after those
19869 # provided the user. The postdeps already come after the
19870 # user supplied libs so there is no need to process them.
19871 if test -z "$compiler_lib_search_path_CXX"; then
19872 compiler_lib_search_path_CXX="${prev}${p}"
19873 else
19874 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19875 fi
19876 ;;
19877 # The "-l" case would never come before the object being
19878 # linked, so don't bother handling this case.
19879 esac
19880 else
19881 if test -z "$postdeps_CXX"; then
19882 postdeps_CXX="${prev}${p}"
19883 else
19884 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19885 fi
19886 fi
cristyda16f162011-02-19 23:52:17 +000019887 prev=
cristy73bd4a52010-10-05 11:24:23 +000019888 ;;
19889
cristyda16f162011-02-19 23:52:17 +000019890 *.lto.$objext) ;; # Ignore GCC LTO objects
cristy73bd4a52010-10-05 11:24:23 +000019891 *.$objext)
19892 # This assumes that the test object file only shows up
19893 # once in the compiler output.
19894 if test "$p" = "conftest.$objext"; then
19895 pre_test_object_deps_done=yes
19896 continue
19897 fi
19898
19899 if test "$pre_test_object_deps_done" = no; then
19900 if test -z "$predep_objects_CXX"; then
19901 predep_objects_CXX="$p"
19902 else
19903 predep_objects_CXX="$predep_objects_CXX $p"
19904 fi
19905 else
19906 if test -z "$postdep_objects_CXX"; then
19907 postdep_objects_CXX="$p"
19908 else
19909 postdep_objects_CXX="$postdep_objects_CXX $p"
19910 fi
19911 fi
19912 ;;
19913
19914 *) ;; # Ignore the rest.
19915
19916 esac
19917 done
19918
19919 # Clean up.
19920 rm -f a.out a.exe
19921else
19922 echo "libtool.m4: error: problem compiling CXX test program"
19923fi
19924
19925$RM -f confest.$objext
cristyda16f162011-02-19 23:52:17 +000019926CFLAGS=$_lt_libdeps_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000019927
19928# PORTME: override above test on systems where it is broken
19929case $host_os in
19930interix[3-9]*)
19931 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19932 # hack all around it, let's just trust "g++" to DTRT.
19933 predep_objects_CXX=
19934 postdep_objects_CXX=
19935 postdeps_CXX=
19936 ;;
19937
19938linux*)
19939 case `$CC -V 2>&1 | sed 5q` in
19940 *Sun\ C*)
19941 # Sun C++ 5.9
19942
19943 # The more standards-conforming stlport4 library is
19944 # incompatible with the Cstd library. Avoid specifying
19945 # it if it's in CXXFLAGS. Ignore libCrun as
19946 # -library=stlport4 depends on it.
19947 case " $CXX $CXXFLAGS " in
19948 *" -library=stlport4 "*)
19949 solaris_use_stlport4=yes
19950 ;;
19951 esac
19952
19953 if test "$solaris_use_stlport4" != yes; then
19954 postdeps_CXX='-library=Cstd -library=Crun'
19955 fi
19956 ;;
19957 esac
19958 ;;
19959
19960solaris*)
19961 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000019962 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000019963 # The more standards-conforming stlport4 library is
19964 # incompatible with the Cstd library. Avoid specifying
19965 # it if it's in CXXFLAGS. Ignore libCrun as
19966 # -library=stlport4 depends on it.
19967 case " $CXX $CXXFLAGS " in
19968 *" -library=stlport4 "*)
19969 solaris_use_stlport4=yes
19970 ;;
19971 esac
19972
19973 # Adding this requires a known-good setup of shared libraries for
19974 # Sun compiler versions before 5.6, else PIC objects from an old
19975 # archive will be linked into the output, leading to subtle bugs.
19976 if test "$solaris_use_stlport4" != yes; then
19977 postdeps_CXX='-library=Cstd -library=Crun'
19978 fi
19979 ;;
19980 esac
19981 ;;
19982esac
19983
19984
19985case " $postdeps_CXX " in
19986*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19987esac
19988 compiler_lib_search_dirs_CXX=
19989if test -n "${compiler_lib_search_path_CXX}"; then
19990 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19991fi
19992
19993
19994
19995
19996
19997
19998
19999
20000
20001
20002
20003
20004
20005
20006
20007
20008
20009
20010
20011
20012
20013
20014
20015
20016
20017
20018
20019
20020
20021
20022
20023 lt_prog_compiler_wl_CXX=
20024lt_prog_compiler_pic_CXX=
20025lt_prog_compiler_static_CXX=
20026
cristy73bd4a52010-10-05 11:24:23 +000020027
20028 # C++ specific cases for pic, static, wl, etc.
20029 if test "$GXX" = yes; then
20030 lt_prog_compiler_wl_CXX='-Wl,'
20031 lt_prog_compiler_static_CXX='-static'
20032
20033 case $host_os in
20034 aix*)
20035 # All AIX code is PIC.
20036 if test "$host_cpu" = ia64; then
20037 # AIX 5 now supports IA64 processor
20038 lt_prog_compiler_static_CXX='-Bstatic'
20039 fi
20040 ;;
20041
20042 amigaos*)
20043 case $host_cpu in
20044 powerpc)
20045 # see comment about AmigaOS4 .so support
20046 lt_prog_compiler_pic_CXX='-fPIC'
20047 ;;
20048 m68k)
20049 # FIXME: we need at least 68020 code to build shared libraries, but
20050 # adding the `-m68020' flag to GCC prevents building anything better,
20051 # like `-m68040'.
20052 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
20053 ;;
20054 esac
20055 ;;
20056
20057 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20058 # PIC is the default for these OSes.
20059 ;;
20060 mingw* | cygwin* | os2* | pw32* | cegcc*)
20061 # This hack is so that the source file can tell whether it is being
20062 # built for inclusion in a dll (and should export symbols for example).
20063 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20064 # (--disable-auto-import) libraries
20065 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20066 ;;
20067 darwin* | rhapsody*)
20068 # PIC is the default on this platform
20069 # Common symbols not allowed in MH_DYLIB files
20070 lt_prog_compiler_pic_CXX='-fno-common'
20071 ;;
20072 *djgpp*)
20073 # DJGPP does not support shared libraries at all
20074 lt_prog_compiler_pic_CXX=
20075 ;;
cristy0c60a692010-11-04 01:09:47 +000020076 haiku*)
20077 # PIC is the default for Haiku.
20078 # The "-static" flag exists, but is broken.
20079 lt_prog_compiler_static_CXX=
20080 ;;
cristy73bd4a52010-10-05 11:24:23 +000020081 interix[3-9]*)
20082 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20083 # Instead, we relocate shared libraries at runtime.
20084 ;;
20085 sysv4*MP*)
20086 if test -d /usr/nec; then
20087 lt_prog_compiler_pic_CXX=-Kconform_pic
20088 fi
20089 ;;
20090 hpux*)
20091 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20092 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20093 # sets the default TLS model and affects inlining.
20094 case $host_cpu in
20095 hppa*64*)
20096 ;;
20097 *)
20098 lt_prog_compiler_pic_CXX='-fPIC'
20099 ;;
20100 esac
20101 ;;
20102 *qnx* | *nto*)
20103 # QNX uses GNU C++, but need to define -shared option too, otherwise
20104 # it will coredump.
20105 lt_prog_compiler_pic_CXX='-fPIC -shared'
20106 ;;
20107 *)
20108 lt_prog_compiler_pic_CXX='-fPIC'
20109 ;;
20110 esac
20111 else
20112 case $host_os in
20113 aix[4-9]*)
20114 # All AIX code is PIC.
20115 if test "$host_cpu" = ia64; then
20116 # AIX 5 now supports IA64 processor
20117 lt_prog_compiler_static_CXX='-Bstatic'
20118 else
20119 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
20120 fi
20121 ;;
20122 chorus*)
20123 case $cc_basename in
20124 cxch68*)
20125 # Green Hills C++ Compiler
20126 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
20127 ;;
20128 esac
20129 ;;
cristyda16f162011-02-19 23:52:17 +000020130 mingw* | cygwin* | os2* | pw32* | cegcc*)
20131 # This hack is so that the source file can tell whether it is being
20132 # built for inclusion in a dll (and should export symbols for example).
20133 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20134 ;;
cristy73bd4a52010-10-05 11:24:23 +000020135 dgux*)
20136 case $cc_basename in
20137 ec++*)
20138 lt_prog_compiler_pic_CXX='-KPIC'
20139 ;;
20140 ghcx*)
20141 # Green Hills C++ Compiler
20142 lt_prog_compiler_pic_CXX='-pic'
20143 ;;
20144 *)
20145 ;;
20146 esac
20147 ;;
20148 freebsd* | dragonfly*)
20149 # FreeBSD uses GNU C++
20150 ;;
20151 hpux9* | hpux10* | hpux11*)
20152 case $cc_basename in
20153 CC*)
20154 lt_prog_compiler_wl_CXX='-Wl,'
20155 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20156 if test "$host_cpu" != ia64; then
20157 lt_prog_compiler_pic_CXX='+Z'
20158 fi
20159 ;;
20160 aCC*)
20161 lt_prog_compiler_wl_CXX='-Wl,'
20162 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20163 case $host_cpu in
20164 hppa*64*|ia64*)
20165 # +Z the default
20166 ;;
20167 *)
20168 lt_prog_compiler_pic_CXX='+Z'
20169 ;;
20170 esac
20171 ;;
20172 *)
20173 ;;
20174 esac
20175 ;;
20176 interix*)
20177 # This is c89, which is MS Visual C++ (no shared libs)
20178 # Anyone wants to do a port?
20179 ;;
20180 irix5* | irix6* | nonstopux*)
20181 case $cc_basename in
20182 CC*)
20183 lt_prog_compiler_wl_CXX='-Wl,'
20184 lt_prog_compiler_static_CXX='-non_shared'
20185 # CC pic flag -KPIC is the default.
20186 ;;
20187 *)
20188 ;;
20189 esac
20190 ;;
cristy0c60a692010-11-04 01:09:47 +000020191 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000020192 case $cc_basename in
20193 KCC*)
20194 # KAI C++ Compiler
20195 lt_prog_compiler_wl_CXX='--backend -Wl,'
20196 lt_prog_compiler_pic_CXX='-fPIC'
20197 ;;
20198 ecpc* )
20199 # old Intel C++ for x86_64 which still supported -KPIC.
20200 lt_prog_compiler_wl_CXX='-Wl,'
20201 lt_prog_compiler_pic_CXX='-KPIC'
20202 lt_prog_compiler_static_CXX='-static'
20203 ;;
20204 icpc* )
20205 # Intel C++, used to be incompatible with GCC.
20206 # ICC 10 doesn't accept -KPIC any more.
20207 lt_prog_compiler_wl_CXX='-Wl,'
20208 lt_prog_compiler_pic_CXX='-fPIC'
20209 lt_prog_compiler_static_CXX='-static'
20210 ;;
20211 pgCC* | pgcpp*)
20212 # Portland Group C++ compiler
20213 lt_prog_compiler_wl_CXX='-Wl,'
20214 lt_prog_compiler_pic_CXX='-fpic'
20215 lt_prog_compiler_static_CXX='-Bstatic'
20216 ;;
20217 cxx*)
20218 # Compaq C++
20219 # Make sure the PIC flag is empty. It appears that all Alpha
20220 # Linux and Compaq Tru64 Unix objects are PIC.
20221 lt_prog_compiler_pic_CXX=
20222 lt_prog_compiler_static_CXX='-non_shared'
20223 ;;
cristy0c60a692010-11-04 01:09:47 +000020224 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
20225 # IBM XL 8.0, 9.0 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000020226 lt_prog_compiler_wl_CXX='-Wl,'
20227 lt_prog_compiler_pic_CXX='-qpic'
20228 lt_prog_compiler_static_CXX='-qstaticlink'
20229 ;;
20230 *)
20231 case `$CC -V 2>&1 | sed 5q` in
20232 *Sun\ C*)
20233 # Sun C++ 5.9
20234 lt_prog_compiler_pic_CXX='-KPIC'
20235 lt_prog_compiler_static_CXX='-Bstatic'
20236 lt_prog_compiler_wl_CXX='-Qoption ld '
20237 ;;
20238 esac
20239 ;;
20240 esac
20241 ;;
20242 lynxos*)
20243 ;;
20244 m88k*)
20245 ;;
20246 mvs*)
20247 case $cc_basename in
20248 cxx*)
20249 lt_prog_compiler_pic_CXX='-W c,exportall'
20250 ;;
20251 *)
20252 ;;
20253 esac
20254 ;;
20255 netbsd*)
20256 ;;
20257 *qnx* | *nto*)
20258 # QNX uses GNU C++, but need to define -shared option too, otherwise
20259 # it will coredump.
20260 lt_prog_compiler_pic_CXX='-fPIC -shared'
20261 ;;
20262 osf3* | osf4* | osf5*)
20263 case $cc_basename in
20264 KCC*)
20265 lt_prog_compiler_wl_CXX='--backend -Wl,'
20266 ;;
20267 RCC*)
20268 # Rational C++ 2.4.1
20269 lt_prog_compiler_pic_CXX='-pic'
20270 ;;
20271 cxx*)
20272 # Digital/Compaq C++
20273 lt_prog_compiler_wl_CXX='-Wl,'
20274 # Make sure the PIC flag is empty. It appears that all Alpha
20275 # Linux and Compaq Tru64 Unix objects are PIC.
20276 lt_prog_compiler_pic_CXX=
20277 lt_prog_compiler_static_CXX='-non_shared'
20278 ;;
20279 *)
20280 ;;
20281 esac
20282 ;;
20283 psos*)
20284 ;;
20285 solaris*)
20286 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000020287 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000020288 # Sun C++ 4.2, 5.x and Centerline C++
20289 lt_prog_compiler_pic_CXX='-KPIC'
20290 lt_prog_compiler_static_CXX='-Bstatic'
20291 lt_prog_compiler_wl_CXX='-Qoption ld '
20292 ;;
20293 gcx*)
20294 # Green Hills C++ Compiler
20295 lt_prog_compiler_pic_CXX='-PIC'
20296 ;;
20297 *)
20298 ;;
20299 esac
20300 ;;
20301 sunos4*)
20302 case $cc_basename in
20303 CC*)
20304 # Sun C++ 4.x
20305 lt_prog_compiler_pic_CXX='-pic'
20306 lt_prog_compiler_static_CXX='-Bstatic'
20307 ;;
20308 lcc*)
20309 # Lucid
20310 lt_prog_compiler_pic_CXX='-pic'
20311 ;;
20312 *)
20313 ;;
20314 esac
20315 ;;
20316 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20317 case $cc_basename in
20318 CC*)
20319 lt_prog_compiler_wl_CXX='-Wl,'
20320 lt_prog_compiler_pic_CXX='-KPIC'
20321 lt_prog_compiler_static_CXX='-Bstatic'
20322 ;;
20323 esac
20324 ;;
20325 tandem*)
20326 case $cc_basename in
20327 NCC*)
20328 # NonStop-UX NCC 3.20
20329 lt_prog_compiler_pic_CXX='-KPIC'
20330 ;;
20331 *)
20332 ;;
20333 esac
20334 ;;
20335 vxworks*)
20336 ;;
20337 *)
20338 lt_prog_compiler_can_build_shared_CXX=no
20339 ;;
20340 esac
20341 fi
20342
20343case $host_os in
20344 # For platforms which do not support PIC, -DPIC is meaningless:
20345 *djgpp*)
20346 lt_prog_compiler_pic_CXX=
20347 ;;
20348 *)
20349 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20350 ;;
20351esac
cristy73bd4a52010-10-05 11:24:23 +000020352
cristyda16f162011-02-19 23:52:17 +000020353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20354$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20355if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
20356 $as_echo_n "(cached) " >&6
20357else
20358 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
20359fi
20360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
20361$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
20362lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
cristy73bd4a52010-10-05 11:24:23 +000020363
20364#
20365# Check to make sure the PIC flag actually works.
20366#
20367if test -n "$lt_prog_compiler_pic_CXX"; then
20368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20369$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020370if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020371 $as_echo_n "(cached) " >&6
20372else
20373 lt_cv_prog_compiler_pic_works_CXX=no
20374 ac_outfile=conftest.$ac_objext
20375 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20376 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20377 # Insert the option either (1) after the last *FLAGS variable, or
20378 # (2) before a word containing "conftest.", or (3) at the end.
20379 # Note that $ac_compile itself does not contain backslashes and begins
20380 # with a dollar sign (not a hyphen), so the echo should work correctly.
20381 # The option is referenced via a variable to avoid confusing sed.
20382 lt_compile=`echo "$ac_compile" | $SED \
20383 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20384 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20385 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000020386 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000020387 (eval "$lt_compile" 2>conftest.err)
20388 ac_status=$?
20389 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000020390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000020391 if (exit $ac_status) && test -s "$ac_outfile"; then
20392 # The compiler can only warn and ignore the option if not recognized
20393 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000020394 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000020395 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20396 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20397 lt_cv_prog_compiler_pic_works_CXX=yes
20398 fi
20399 fi
20400 $RM conftest*
20401
20402fi
20403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20404$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20405
20406if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20407 case $lt_prog_compiler_pic_CXX in
20408 "" | " "*) ;;
20409 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20410 esac
20411else
20412 lt_prog_compiler_pic_CXX=
20413 lt_prog_compiler_can_build_shared_CXX=no
20414fi
20415
20416fi
20417
20418
20419
cristyda16f162011-02-19 23:52:17 +000020420
20421
cristy73bd4a52010-10-05 11:24:23 +000020422#
20423# Check to make sure the static flag actually works.
20424#
20425wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20427$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020428if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020429 $as_echo_n "(cached) " >&6
20430else
20431 lt_cv_prog_compiler_static_works_CXX=no
20432 save_LDFLAGS="$LDFLAGS"
20433 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20434 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20435 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20436 # The linker can only warn and ignore the option if not recognized
20437 # So say no if there are warnings
20438 if test -s conftest.err; then
20439 # Append any errors to the config.log.
20440 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000020441 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000020442 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20443 if diff conftest.exp conftest.er2 >/dev/null; then
20444 lt_cv_prog_compiler_static_works_CXX=yes
20445 fi
20446 else
20447 lt_cv_prog_compiler_static_works_CXX=yes
20448 fi
20449 fi
20450 $RM -r conftest*
20451 LDFLAGS="$save_LDFLAGS"
20452
20453fi
20454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20455$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20456
20457if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20458 :
20459else
20460 lt_prog_compiler_static_CXX=
20461fi
20462
20463
20464
20465
20466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20467$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020468if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020469 $as_echo_n "(cached) " >&6
20470else
20471 lt_cv_prog_compiler_c_o_CXX=no
20472 $RM -r conftest 2>/dev/null
20473 mkdir conftest
20474 cd conftest
20475 mkdir out
20476 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20477
20478 lt_compiler_flag="-o out/conftest2.$ac_objext"
20479 # Insert the option either (1) after the last *FLAGS variable, or
20480 # (2) before a word containing "conftest.", or (3) at the end.
20481 # Note that $ac_compile itself does not contain backslashes and begins
20482 # with a dollar sign (not a hyphen), so the echo should work correctly.
20483 lt_compile=`echo "$ac_compile" | $SED \
20484 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20485 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20486 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000020487 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000020488 (eval "$lt_compile" 2>out/conftest.err)
20489 ac_status=$?
20490 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000020491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000020492 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20493 then
20494 # The compiler can only warn and ignore the option if not recognized
20495 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000020496 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000020497 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20498 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20499 lt_cv_prog_compiler_c_o_CXX=yes
20500 fi
20501 fi
20502 chmod u+w . 2>&5
20503 $RM conftest*
20504 # SGI C++ compiler will create directory out/ii_files/ for
20505 # template instantiation
20506 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20507 $RM out/* && rmdir out
20508 cd ..
20509 $RM -r conftest
20510 $RM conftest*
20511
20512fi
20513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20514$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20515
20516
20517
20518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20519$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020520if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020521 $as_echo_n "(cached) " >&6
20522else
20523 lt_cv_prog_compiler_c_o_CXX=no
20524 $RM -r conftest 2>/dev/null
20525 mkdir conftest
20526 cd conftest
20527 mkdir out
20528 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20529
20530 lt_compiler_flag="-o out/conftest2.$ac_objext"
20531 # Insert the option either (1) after the last *FLAGS variable, or
20532 # (2) before a word containing "conftest.", or (3) at the end.
20533 # Note that $ac_compile itself does not contain backslashes and begins
20534 # with a dollar sign (not a hyphen), so the echo should work correctly.
20535 lt_compile=`echo "$ac_compile" | $SED \
20536 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20537 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20538 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000020539 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000020540 (eval "$lt_compile" 2>out/conftest.err)
20541 ac_status=$?
20542 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000020543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000020544 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20545 then
20546 # The compiler can only warn and ignore the option if not recognized
20547 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000020548 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000020549 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20550 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20551 lt_cv_prog_compiler_c_o_CXX=yes
20552 fi
20553 fi
20554 chmod u+w . 2>&5
20555 $RM conftest*
20556 # SGI C++ compiler will create directory out/ii_files/ for
20557 # template instantiation
20558 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20559 $RM out/* && rmdir out
20560 cd ..
20561 $RM -r conftest
20562 $RM conftest*
20563
20564fi
20565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20566$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20567
20568
20569
20570
20571hard_links="nottested"
20572if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20573 # do not overwrite the value of need_locks provided by the user
20574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20575$as_echo_n "checking if we can lock with hard links... " >&6; }
20576 hard_links=yes
20577 $RM conftest*
20578 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20579 touch conftest.a
20580 ln conftest.a conftest.b 2>&5 || hard_links=no
20581 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20583$as_echo "$hard_links" >&6; }
20584 if test "$hard_links" = no; then
20585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20586$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20587 need_locks=warn
20588 fi
20589else
20590 need_locks=no
20591fi
20592
20593
20594
20595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20596$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20597
20598 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000020599 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
cristy73bd4a52010-10-05 11:24:23 +000020600 case $host_os in
20601 aix[4-9]*)
20602 # If we're using GNU nm, then we don't want the "-C" option.
20603 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000020604 # Also, AIX nm treats weak defined symbols like other global defined
20605 # symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000020606 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000020607 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
cristy73bd4a52010-10-05 11:24:23 +000020608 else
20609 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
20610 fi
20611 ;;
20612 pw32*)
20613 export_symbols_cmds_CXX="$ltdll_cmds"
cristyda16f162011-02-19 23:52:17 +000020614 ;;
cristy73bd4a52010-10-05 11:24:23 +000020615 cygwin* | mingw* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000020616 case $cc_basename in
cristy99bd5232011-12-07 14:38:20 +000020617 cl*)
20618 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
20619 ;;
cristyda16f162011-02-19 23:52:17 +000020620 *)
20621 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
20622 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
20623 ;;
20624 esac
20625 ;;
cristy73bd4a52010-10-05 11:24:23 +000020626 *)
20627 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000020628 ;;
cristy73bd4a52010-10-05 11:24:23 +000020629 esac
cristy73bd4a52010-10-05 11:24:23 +000020630
20631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20632$as_echo "$ld_shlibs_CXX" >&6; }
20633test "$ld_shlibs_CXX" = no && can_build_shared=no
20634
20635with_gnu_ld_CXX=$with_gnu_ld
20636
20637
20638
20639
20640
20641
20642#
20643# Do we need to explicitly link libc?
20644#
20645case "x$archive_cmds_need_lc_CXX" in
20646x|xyes)
20647 # Assume -lc should be added
20648 archive_cmds_need_lc_CXX=yes
20649
20650 if test "$enable_shared" = yes && test "$GCC" = yes; then
20651 case $archive_cmds_CXX in
20652 *'~'*)
20653 # FIXME: we may have to deal with multi-command sequences.
20654 ;;
20655 '$CC '*)
20656 # Test whether the compiler implicitly links with -lc since on some
20657 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20658 # to ld, don't add -lc before -lgcc.
20659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20660$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020661if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000020662 $as_echo_n "(cached) " >&6
20663else
20664 $RM conftest*
20665 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000020666
cristy0c60a692010-11-04 01:09:47 +000020667 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000020668 (eval $ac_compile) 2>&5
20669 ac_status=$?
20670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20671 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000020672 soname=conftest
20673 lib=conftest
20674 libobjs=conftest.$ac_objext
20675 deplibs=
20676 wl=$lt_prog_compiler_wl_CXX
20677 pic_flag=$lt_prog_compiler_pic_CXX
20678 compiler_flags=-v
20679 linker_flags=-v
20680 verstring=
20681 output_objdir=.
20682 libname=conftest
20683 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20684 allow_undefined_flag_CXX=
20685 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000020686 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20687 ac_status=$?
20688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20689 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000020690 then
20691 lt_cv_archive_cmds_need_lc_CXX=no
20692 else
20693 lt_cv_archive_cmds_need_lc_CXX=yes
20694 fi
20695 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20696 else
20697 cat conftest.err 1>&5
20698 fi
20699 $RM conftest*
20700
20701fi
20702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20703$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20704 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
cristy73bd4a52010-10-05 11:24:23 +000020705 ;;
20706 esac
20707 fi
20708 ;;
20709esac
20710
20711
20712
20713
20714
20715
20716
20717
20718
20719
20720
20721
20722
20723
20724
20725
20726
20727
20728
20729
20730
20731
20732
20733
20734
20735
20736
20737
20738
20739
20740
20741
20742
20743
20744
20745
20746
20747
20748
20749
20750
20751
20752
20753
20754
20755
20756
20757
20758
20759
20760
20761
20762
20763
20764
20765
20766
20767
20768
20769
20770
20771
cristy73bd4a52010-10-05 11:24:23 +000020772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20773$as_echo_n "checking dynamic linker characteristics... " >&6; }
20774
20775library_names_spec=
20776libname_spec='lib$name'
20777soname_spec=
20778shrext_cmds=".so"
20779postinstall_cmds=
20780postuninstall_cmds=
20781finish_cmds=
20782finish_eval=
20783shlibpath_var=
20784shlibpath_overrides_runpath=unknown
20785version_type=none
20786dynamic_linker="$host_os ld.so"
20787sys_lib_dlsearch_path_spec="/lib /usr/lib"
20788need_lib_prefix=unknown
20789hardcode_into_libs=no
20790
20791# when you set need_version to no, make sure it does not cause -set_version
20792# flags to be left without arguments
20793need_version=unknown
20794
20795case $host_os in
20796aix3*)
cristy99bd5232011-12-07 14:38:20 +000020797 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020798 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20799 shlibpath_var=LIBPATH
20800
20801 # AIX 3 has no versioning support, so we append a major version to the name.
20802 soname_spec='${libname}${release}${shared_ext}$major'
20803 ;;
20804
20805aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000020806 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020807 need_lib_prefix=no
20808 need_version=no
20809 hardcode_into_libs=yes
20810 if test "$host_cpu" = ia64; then
20811 # AIX 5 supports IA64
20812 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20813 shlibpath_var=LD_LIBRARY_PATH
20814 else
20815 # With GCC up to 2.95.x, collect2 would create an import file
20816 # for dependence libraries. The import file would start with
20817 # the line `#! .'. This would cause the generated library to
20818 # depend on `.', always an invalid library. This was fixed in
20819 # development snapshots of GCC prior to 3.0.
20820 case $host_os in
20821 aix4 | aix4.[01] | aix4.[01].*)
20822 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20823 echo ' yes '
20824 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20825 :
20826 else
20827 can_build_shared=no
20828 fi
20829 ;;
20830 esac
20831 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20832 # soname into executable. Probably we can add versioning support to
20833 # collect2, so additional links can be useful in future.
20834 if test "$aix_use_runtimelinking" = yes; then
20835 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20836 # instead of lib<name>.a to let people know that these are not
20837 # typical AIX shared libraries.
20838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20839 else
20840 # We preserve .a as extension for shared libraries through AIX4.2
20841 # and later when we are not doing run time linking.
20842 library_names_spec='${libname}${release}.a $libname.a'
20843 soname_spec='${libname}${release}${shared_ext}$major'
20844 fi
20845 shlibpath_var=LIBPATH
20846 fi
20847 ;;
20848
20849amigaos*)
20850 case $host_cpu in
20851 powerpc)
20852 # Since July 2007 AmigaOS4 officially supports .so libraries.
20853 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20855 ;;
20856 m68k)
20857 library_names_spec='$libname.ixlibrary $libname.a'
20858 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000020859 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
cristy73bd4a52010-10-05 11:24:23 +000020860 ;;
20861 esac
20862 ;;
20863
20864beos*)
20865 library_names_spec='${libname}${shared_ext}'
20866 dynamic_linker="$host_os ld.so"
20867 shlibpath_var=LIBRARY_PATH
20868 ;;
20869
20870bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000020871 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020872 need_version=no
20873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20874 soname_spec='${libname}${release}${shared_ext}$major'
20875 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20876 shlibpath_var=LD_LIBRARY_PATH
20877 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20878 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20879 # the default ld.so.conf also contains /usr/contrib/lib and
20880 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20881 # libtool to hard-code these into programs
20882 ;;
20883
20884cygwin* | mingw* | pw32* | cegcc*)
20885 version_type=windows
20886 shrext_cmds=".dll"
20887 need_version=no
20888 need_lib_prefix=no
20889
cristyda16f162011-02-19 23:52:17 +000020890 case $GCC,$cc_basename in
20891 yes,*)
20892 # gcc
cristy73bd4a52010-10-05 11:24:23 +000020893 library_names_spec='$libname.dll.a'
20894 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20895 postinstall_cmds='base_file=`basename \${file}`~
20896 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20897 dldir=$destdir/`dirname \$dlpath`~
20898 test -d \$dldir || mkdir -p \$dldir~
20899 $install_prog $dir/$dlname \$dldir/$dlname~
20900 chmod a+x \$dldir/$dlname~
20901 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20902 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20903 fi'
20904 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20905 dlpath=$dir/\$dldll~
20906 $RM \$dlpath'
20907 shlibpath_overrides_runpath=yes
20908
20909 case $host_os in
20910 cygwin*)
20911 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20912 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000020913
cristy73bd4a52010-10-05 11:24:23 +000020914 ;;
20915 mingw* | cegcc*)
20916 # MinGW DLLs use traditional 'lib' prefix
20917 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000020918 ;;
20919 pw32*)
20920 # pw32 DLLs use 'pw' prefix rather than 'lib'
20921 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20922 ;;
20923 esac
cristyda16f162011-02-19 23:52:17 +000020924 dynamic_linker='Win32 ld.exe'
20925 ;;
20926
20927 *,cl*)
20928 # Native MSVC
20929 libname_spec='$name'
20930 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20931 library_names_spec='${libname}.dll.lib'
20932
20933 case $build_os in
20934 mingw*)
20935 sys_lib_search_path_spec=
20936 lt_save_ifs=$IFS
20937 IFS=';'
20938 for lt_path in $LIB
20939 do
20940 IFS=$lt_save_ifs
20941 # Let DOS variable expansion print the short 8.3 style file name.
20942 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
20943 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
20944 done
20945 IFS=$lt_save_ifs
20946 # Convert to MSYS style.
20947 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
20948 ;;
20949 cygwin*)
20950 # Convert to unix form, then to dos form, then back to unix form
20951 # but this time dos style (no spaces!) so that the unix form looks
20952 # like /cygdrive/c/PROGRA~1:/cygdr...
20953 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
20954 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
20955 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20956 ;;
20957 *)
20958 sys_lib_search_path_spec="$LIB"
20959 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
20960 # It is most probably a Windows format PATH.
20961 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20962 else
20963 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20964 fi
20965 # FIXME: find the short name or the path components, as spaces are
20966 # common. (e.g. "Program Files" -> "PROGRA~1")
20967 ;;
20968 esac
20969
20970 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20971 postinstall_cmds='base_file=`basename \${file}`~
20972 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20973 dldir=$destdir/`dirname \$dlpath`~
20974 test -d \$dldir || mkdir -p \$dldir~
20975 $install_prog $dir/$dlname \$dldir/$dlname'
20976 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20977 dlpath=$dir/\$dldll~
20978 $RM \$dlpath'
20979 shlibpath_overrides_runpath=yes
20980 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000020981 ;;
20982
20983 *)
cristyda16f162011-02-19 23:52:17 +000020984 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000020985 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000020986 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000020987 ;;
20988 esac
cristy73bd4a52010-10-05 11:24:23 +000020989 # FIXME: first we should search . and the directory the executable is in
20990 shlibpath_var=PATH
20991 ;;
20992
20993darwin* | rhapsody*)
20994 dynamic_linker="$host_os dyld"
20995 version_type=darwin
20996 need_lib_prefix=no
20997 need_version=no
20998 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20999 soname_spec='${libname}${release}${major}$shared_ext'
21000 shlibpath_overrides_runpath=yes
21001 shlibpath_var=DYLD_LIBRARY_PATH
21002 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
21003
21004 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
21005 ;;
21006
21007dgux*)
cristy99bd5232011-12-07 14:38:20 +000021008 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021009 need_lib_prefix=no
21010 need_version=no
21011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21012 soname_spec='${libname}${release}${shared_ext}$major'
21013 shlibpath_var=LD_LIBRARY_PATH
21014 ;;
21015
cristy73bd4a52010-10-05 11:24:23 +000021016freebsd* | dragonfly*)
21017 # DragonFly does not have aout. When/if they implement a new
21018 # versioning mechanism, adjust this.
21019 if test -x /usr/bin/objformat; then
21020 objformat=`/usr/bin/objformat`
21021 else
21022 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000021023 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000021024 *) objformat=elf ;;
21025 esac
21026 fi
21027 version_type=freebsd-$objformat
21028 case $version_type in
21029 freebsd-elf*)
21030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21031 need_version=no
21032 need_lib_prefix=no
21033 ;;
21034 freebsd-*)
21035 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21036 need_version=yes
21037 ;;
21038 esac
21039 shlibpath_var=LD_LIBRARY_PATH
21040 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000021041 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000021042 shlibpath_overrides_runpath=yes
21043 ;;
21044 freebsd3.[01]* | freebsdelf3.[01]*)
21045 shlibpath_overrides_runpath=yes
21046 hardcode_into_libs=yes
21047 ;;
21048 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
21049 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
21050 shlibpath_overrides_runpath=no
21051 hardcode_into_libs=yes
21052 ;;
21053 *) # from 4.6 on, and DragonFly
21054 shlibpath_overrides_runpath=yes
21055 hardcode_into_libs=yes
21056 ;;
21057 esac
21058 ;;
21059
21060gnu*)
cristy99bd5232011-12-07 14:38:20 +000021061 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021062 need_lib_prefix=no
21063 need_version=no
21064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21065 soname_spec='${libname}${release}${shared_ext}$major'
21066 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000021067 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000021068 hardcode_into_libs=yes
21069 ;;
21070
cristy0c60a692010-11-04 01:09:47 +000021071haiku*)
cristy99bd5232011-12-07 14:38:20 +000021072 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000021073 need_lib_prefix=no
21074 need_version=no
21075 dynamic_linker="$host_os runtime_loader"
21076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21077 soname_spec='${libname}${release}${shared_ext}$major'
21078 shlibpath_var=LIBRARY_PATH
21079 shlibpath_overrides_runpath=yes
21080 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
21081 hardcode_into_libs=yes
21082 ;;
21083
cristy73bd4a52010-10-05 11:24:23 +000021084hpux9* | hpux10* | hpux11*)
21085 # Give a soname corresponding to the major version so that dld.sl refuses to
21086 # link against other versions.
21087 version_type=sunos
21088 need_lib_prefix=no
21089 need_version=no
21090 case $host_cpu in
21091 ia64*)
21092 shrext_cmds='.so'
21093 hardcode_into_libs=yes
21094 dynamic_linker="$host_os dld.so"
21095 shlibpath_var=LD_LIBRARY_PATH
21096 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21098 soname_spec='${libname}${release}${shared_ext}$major'
21099 if test "X$HPUX_IA64_MODE" = X32; then
21100 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21101 else
21102 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21103 fi
21104 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21105 ;;
21106 hppa*64*)
21107 shrext_cmds='.sl'
21108 hardcode_into_libs=yes
21109 dynamic_linker="$host_os dld.sl"
21110 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21111 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21113 soname_spec='${libname}${release}${shared_ext}$major'
21114 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21115 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21116 ;;
21117 *)
21118 shrext_cmds='.sl'
21119 dynamic_linker="$host_os dld.sl"
21120 shlibpath_var=SHLIB_PATH
21121 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21123 soname_spec='${libname}${release}${shared_ext}$major'
21124 ;;
21125 esac
cristy0c60a692010-11-04 01:09:47 +000021126 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000021127 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000021128 # or fails outright, so override atomically:
21129 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000021130 ;;
21131
21132interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000021133 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021134 need_lib_prefix=no
21135 need_version=no
21136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21137 soname_spec='${libname}${release}${shared_ext}$major'
21138 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21139 shlibpath_var=LD_LIBRARY_PATH
21140 shlibpath_overrides_runpath=no
21141 hardcode_into_libs=yes
21142 ;;
21143
21144irix5* | irix6* | nonstopux*)
21145 case $host_os in
21146 nonstopux*) version_type=nonstopux ;;
21147 *)
21148 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000021149 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021150 else
21151 version_type=irix
21152 fi ;;
21153 esac
21154 need_lib_prefix=no
21155 need_version=no
21156 soname_spec='${libname}${release}${shared_ext}$major'
21157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21158 case $host_os in
21159 irix5* | nonstopux*)
21160 libsuff= shlibsuff=
21161 ;;
21162 *)
21163 case $LD in # libtool.m4 will add one of these switches to LD
21164 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21165 libsuff= shlibsuff= libmagic=32-bit;;
21166 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21167 libsuff=32 shlibsuff=N32 libmagic=N32;;
21168 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21169 libsuff=64 shlibsuff=64 libmagic=64-bit;;
21170 *) libsuff= shlibsuff= libmagic=never-match;;
21171 esac
21172 ;;
21173 esac
21174 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21175 shlibpath_overrides_runpath=no
21176 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21177 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21178 hardcode_into_libs=yes
21179 ;;
21180
21181# No shared lib support for Linux oldld, aout, or coff.
21182linux*oldld* | linux*aout* | linux*coff*)
21183 dynamic_linker=no
21184 ;;
21185
cristy99bd5232011-12-07 14:38:20 +000021186# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000021187linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000021188 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021189 need_lib_prefix=no
21190 need_version=no
21191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21192 soname_spec='${libname}${release}${shared_ext}$major'
21193 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21194 shlibpath_var=LD_LIBRARY_PATH
21195 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000021196
cristy73bd4a52010-10-05 11:24:23 +000021197 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000021198 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000021199 $as_echo_n "(cached) " >&6
21200else
21201 lt_cv_shlibpath_overrides_runpath=no
21202 save_LDFLAGS=$LDFLAGS
21203 save_libdir=$libdir
21204 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21205 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000021207/* end confdefs.h. */
21208
21209int
21210main ()
21211{
21212
21213 ;
21214 return 0;
21215}
21216_ACEOF
21217if ac_fn_cxx_try_link "$LINENO"; then :
21218 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000021219 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000021220fi
21221fi
21222rm -f core conftest.err conftest.$ac_objext \
21223 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000021224 LDFLAGS=$save_LDFLAGS
21225 libdir=$save_libdir
21226
21227fi
21228
21229 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000021230
21231 # This implies no fast_install, which is unacceptable.
21232 # Some rework will be needed to allow for fast_install
21233 # before this can be enabled.
21234 hardcode_into_libs=yes
21235
21236 # Add ABI-specific directories to the system library path.
21237 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
21238
21239 # Append ld.so.conf contents to the search path
21240 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000021241 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
cristy73bd4a52010-10-05 11:24:23 +000021242 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000021243
cristy73bd4a52010-10-05 11:24:23 +000021244 fi
21245
21246 # We used to test for /lib/ld.so.1 and disable shared libraries on
21247 # powerpc, because MkLinux only supported shared libraries with the
21248 # GNU dynamic linker. Since this was broken with cross compilers,
21249 # most powerpc-linux boxes support dynamic linking these days and
21250 # people can always --disable-shared, the test was removed, and we
21251 # assume the GNU/Linux dynamic linker is in use.
21252 dynamic_linker='GNU/Linux ld.so'
21253 ;;
21254
21255netbsd*)
21256 version_type=sunos
21257 need_lib_prefix=no
21258 need_version=no
21259 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21261 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21262 dynamic_linker='NetBSD (a.out) ld.so'
21263 else
21264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21265 soname_spec='${libname}${release}${shared_ext}$major'
21266 dynamic_linker='NetBSD ld.elf_so'
21267 fi
21268 shlibpath_var=LD_LIBRARY_PATH
21269 shlibpath_overrides_runpath=yes
21270 hardcode_into_libs=yes
21271 ;;
21272
21273newsos6)
cristy99bd5232011-12-07 14:38:20 +000021274 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21276 shlibpath_var=LD_LIBRARY_PATH
21277 shlibpath_overrides_runpath=yes
21278 ;;
21279
21280*nto* | *qnx*)
21281 version_type=qnx
21282 need_lib_prefix=no
21283 need_version=no
21284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21285 soname_spec='${libname}${release}${shared_ext}$major'
21286 shlibpath_var=LD_LIBRARY_PATH
21287 shlibpath_overrides_runpath=no
21288 hardcode_into_libs=yes
21289 dynamic_linker='ldqnx.so'
21290 ;;
21291
21292openbsd*)
21293 version_type=sunos
21294 sys_lib_dlsearch_path_spec="/usr/lib"
21295 need_lib_prefix=no
21296 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21297 case $host_os in
21298 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21299 *) need_version=no ;;
21300 esac
21301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21302 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21303 shlibpath_var=LD_LIBRARY_PATH
21304 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21305 case $host_os in
21306 openbsd2.[89] | openbsd2.[89].*)
21307 shlibpath_overrides_runpath=no
21308 ;;
21309 *)
21310 shlibpath_overrides_runpath=yes
21311 ;;
21312 esac
21313 else
21314 shlibpath_overrides_runpath=yes
21315 fi
21316 ;;
21317
21318os2*)
21319 libname_spec='$name'
21320 shrext_cmds=".dll"
21321 need_lib_prefix=no
21322 library_names_spec='$libname${shared_ext} $libname.a'
21323 dynamic_linker='OS/2 ld.exe'
21324 shlibpath_var=LIBPATH
21325 ;;
21326
21327osf3* | osf4* | osf5*)
21328 version_type=osf
21329 need_lib_prefix=no
21330 need_version=no
21331 soname_spec='${libname}${release}${shared_ext}$major'
21332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21333 shlibpath_var=LD_LIBRARY_PATH
21334 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21335 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21336 ;;
21337
21338rdos*)
21339 dynamic_linker=no
21340 ;;
21341
21342solaris*)
cristy99bd5232011-12-07 14:38:20 +000021343 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021344 need_lib_prefix=no
21345 need_version=no
21346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21347 soname_spec='${libname}${release}${shared_ext}$major'
21348 shlibpath_var=LD_LIBRARY_PATH
21349 shlibpath_overrides_runpath=yes
21350 hardcode_into_libs=yes
21351 # ldd complains unless libraries are executable
21352 postinstall_cmds='chmod +x $lib'
21353 ;;
21354
21355sunos4*)
21356 version_type=sunos
21357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21358 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21359 shlibpath_var=LD_LIBRARY_PATH
21360 shlibpath_overrides_runpath=yes
21361 if test "$with_gnu_ld" = yes; then
21362 need_lib_prefix=no
21363 fi
21364 need_version=yes
21365 ;;
21366
21367sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000021368 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21370 soname_spec='${libname}${release}${shared_ext}$major'
21371 shlibpath_var=LD_LIBRARY_PATH
21372 case $host_vendor in
21373 sni)
21374 shlibpath_overrides_runpath=no
21375 need_lib_prefix=no
21376 runpath_var=LD_RUN_PATH
21377 ;;
21378 siemens)
21379 need_lib_prefix=no
21380 ;;
21381 motorola)
21382 need_lib_prefix=no
21383 need_version=no
21384 shlibpath_overrides_runpath=no
21385 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21386 ;;
21387 esac
21388 ;;
21389
21390sysv4*MP*)
21391 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000021392 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021393 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21394 soname_spec='$libname${shared_ext}.$major'
21395 shlibpath_var=LD_LIBRARY_PATH
21396 fi
21397 ;;
21398
21399sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21400 version_type=freebsd-elf
21401 need_lib_prefix=no
21402 need_version=no
21403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21404 soname_spec='${libname}${release}${shared_ext}$major'
21405 shlibpath_var=LD_LIBRARY_PATH
21406 shlibpath_overrides_runpath=yes
21407 hardcode_into_libs=yes
21408 if test "$with_gnu_ld" = yes; then
21409 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21410 else
21411 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21412 case $host_os in
21413 sco3.2v5*)
21414 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21415 ;;
21416 esac
21417 fi
21418 sys_lib_dlsearch_path_spec='/usr/lib'
21419 ;;
21420
21421tpf*)
21422 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000021423 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021424 need_lib_prefix=no
21425 need_version=no
21426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21427 shlibpath_var=LD_LIBRARY_PATH
21428 shlibpath_overrides_runpath=no
21429 hardcode_into_libs=yes
21430 ;;
21431
21432uts4*)
cristy99bd5232011-12-07 14:38:20 +000021433 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21435 soname_spec='${libname}${release}${shared_ext}$major'
21436 shlibpath_var=LD_LIBRARY_PATH
21437 ;;
21438
21439*)
21440 dynamic_linker=no
21441 ;;
21442esac
21443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21444$as_echo "$dynamic_linker" >&6; }
21445test "$dynamic_linker" = no && can_build_shared=no
21446
21447variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21448if test "$GCC" = yes; then
21449 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21450fi
21451
21452if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21453 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21454fi
21455if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21456 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21457fi
21458
21459
21460
21461
21462
21463
21464
21465
21466
21467
21468
21469
21470
21471
21472
21473
21474
21475
21476
21477
21478
21479
21480
21481
21482
21483
21484
21485
21486
21487
21488
21489
21490
21491
21492
21493
cristy0c60a692010-11-04 01:09:47 +000021494
21495
cristy73bd4a52010-10-05 11:24:23 +000021496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21497$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21498hardcode_action_CXX=
21499if test -n "$hardcode_libdir_flag_spec_CXX" ||
21500 test -n "$runpath_var_CXX" ||
21501 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21502
21503 # We can hardcode non-existent directories.
21504 if test "$hardcode_direct_CXX" != no &&
21505 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21506 # have to relink, otherwise we might link with an installed library
21507 # when we should be linking with a yet-to-be-installed one
21508 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21509 test "$hardcode_minus_L_CXX" != no; then
21510 # Linking always hardcodes the temporary library directory.
21511 hardcode_action_CXX=relink
21512 else
21513 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21514 hardcode_action_CXX=immediate
21515 fi
21516else
21517 # We cannot hardcode anything, or else we can only hardcode existing
21518 # directories.
21519 hardcode_action_CXX=unsupported
21520fi
21521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21522$as_echo "$hardcode_action_CXX" >&6; }
21523
21524if test "$hardcode_action_CXX" = relink ||
21525 test "$inherit_rpath_CXX" = yes; then
21526 # Fast installation is not supported
21527 enable_fast_install=no
21528elif test "$shlibpath_overrides_runpath" = yes ||
21529 test "$enable_shared" = no; then
21530 # Fast installation is not necessary
21531 enable_fast_install=needless
21532fi
21533
21534
21535
21536
21537
21538
21539
21540 fi # test -n "$compiler"
21541
21542 CC=$lt_save_CC
cristyda16f162011-02-19 23:52:17 +000021543 CFLAGS=$lt_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000021544 LDCXX=$LD
21545 LD=$lt_save_LD
21546 GCC=$lt_save_GCC
21547 with_gnu_ld=$lt_save_with_gnu_ld
21548 lt_cv_path_LDCXX=$lt_cv_path_LD
21549 lt_cv_path_LD=$lt_save_path_LD
21550 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21551 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21552fi # test "$_lt_caught_CXX_error" != yes
21553
21554ac_ext=c
21555ac_cpp='$CPP $CPPFLAGS'
21556ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21557ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21558ac_compiler_gnu=$ac_cv_c_compiler_gnu
21559
21560
21561
21562
21563
21564
21565
21566
21567
21568
21569
21570
21571
cristy99bd5232011-12-07 14:38:20 +000021572
21573
cristy73bd4a52010-10-05 11:24:23 +000021574 ac_config_commands="$ac_config_commands libtool"
21575
21576
21577
21578
21579# Only expand once:
21580
21581
21582
cristy3ed852e2009-09-05 21:47:34 +000021583
21584
cristy3ed852e2009-09-05 21:47:34 +000021585# Check to see if building shared libraries
21586libtool_build_shared_libs='no'
21587if test "$enable_shared" = 'yes'; then
21588 libtool_build_shared_libs='yes'
21589fi
21590
21591# Check to see if building static libraries
21592libtool_build_static_libs='no'
21593if test "$enable_static" = 'yes'; then
21594 libtool_build_static_libs='yes'
21595fi
21596
cristy73bd4a52010-10-05 11:24:23 +000021597 if test "${libtool_build_shared_libs}" = 'yes'; then
21598 WITH_SHARED_LIBS_TRUE=
21599 WITH_SHARED_LIBS_FALSE='#'
21600else
21601 WITH_SHARED_LIBS_TRUE='#'
21602 WITH_SHARED_LIBS_FALSE=
21603fi
21604
cristy3ed852e2009-09-05 21:47:34 +000021605#
21606# Enable support for building loadable modules
21607#
cristyaf4cbf32012-10-16 23:47:41 +000021608build_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000021609
21610# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000021611if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021612 withval=$with_modules; with_modules=$withval
21613else
cristy5a1cefd2010-01-06 20:42:35 +000021614 with_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000021615fi
21616
21617
21618# Only allow building loadable modules if we are building shared libraries
21619if test "$with_modules" != 'no' ; then
21620 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000021621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Modules may only be built if building shared libraries is enabled." >&5
cristy3ed852e2009-09-05 21:47:34 +000021622$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
cristyc6722092012-10-14 00:19:31 +000021623 build_modules='no'
21624 else
21625 build_modules='yes'
21626 fi
cristy3ed852e2009-09-05 21:47:34 +000021627fi
cristyc6722092012-10-14 00:19:31 +000021628if test "$build_modules" != 'no' ; then
cristy3ed852e2009-09-05 21:47:34 +000021629
cristy8b350f62009-11-15 23:12:43 +000021630$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021631
cristyfa161182012-12-19 15:45:28 +000021632 MAGICK_FEATURES="$MAGICK_FEATURES Modules"
cristy3ed852e2009-09-05 21:47:34 +000021633fi
cristyc6722092012-10-14 00:19:31 +000021634 if test "$build_modules" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +000021635 WITH_MODULES_TRUE=
21636 WITH_MODULES_FALSE='#'
21637else
21638 WITH_MODULES_TRUE='#'
21639 WITH_MODULES_FALSE=
21640fi
21641
cristy3ed852e2009-09-05 21:47:34 +000021642
cristy3ed852e2009-09-05 21:47:34 +000021643# Enable build using delegate libraries built in subdirectories rather than installed
cristyfbb0ef02010-12-19 02:32:11 +000021644# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms lzma png tiff ttf wmf xml zlib)
cristy3ed852e2009-09-05 21:47:34 +000021645# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000021646if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021647 enableval=$enable_delegate_build; enable_delegate_build=$enableval
21648else
21649 enable_delegate_build='no'
21650fi
21651
21652
21653# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000021654if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021655 enableval=$enable_deprecated; enable_deprecated=$enableval
21656else
21657 enable_deprecated='no'
21658fi
21659
21660
21661if test "$enable_deprecated" = 'yes'; then
21662
cristy8b350f62009-11-15 23:12:43 +000021663$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021664
21665else
21666 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
21667fi
21668
21669# Build a version of ImageMagick which operates uninstalled.
21670# Used to build distributions located via MAGICK_HOME / executable path
21671# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000021672if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021673 enableval=$enable_installed; enable_installed=$enableval
21674else
21675 enable_installed='yes'
21676fi
21677
21678
21679if test "$enable_installed" = 'yes'; then
21680
cristy8b350f62009-11-15 23:12:43 +000021681$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021682
21683else
21684 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
21685fi
21686
21687# Permit enciphering and deciphering image pixels.
21688# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000021689if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021690 enableval=$enable_cipher; enable_cipher=$enableval
21691else
21692 enable_cipher='yes'
21693fi
21694
21695
21696if test "$enable_cipher" = 'yes'; then
21697
cristy8b350f62009-11-15 23:12:43 +000021698$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021699
cristy0f6fc2d2015-05-30 00:49:11 +000021700 MAGICK_FEATURES="Cipher $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000021701fi
21702
cristy6e3607c2011-09-13 13:59:17 +000021703# Build a zero-configuration version of ImageMagick.
21704# Check whether --enable-zero-configuration was given.
21705if test "${enable_zero_configuration+set}" = set; then :
21706 enableval=$enable_zero_configuration; enable_zero_configuration=$enableval
cristy3ed852e2009-09-05 21:47:34 +000021707else
cristy6e3607c2011-09-13 13:59:17 +000021708 enable_zero_configuration='no'
cristy3ed852e2009-09-05 21:47:34 +000021709fi
21710
21711
cristy6e3607c2011-09-13 13:59:17 +000021712if test "$enable_zero_configuration" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000021713
cristy6e3607c2011-09-13 13:59:17 +000021714$as_echo "#define ZERO_CONFIGURATION_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021715
cristy0f6fc2d2015-05-30 00:49:11 +000021716 MAGICK_FEATURES="Zero-configuration $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000021717fi
21718
21719# Build a high dynamic range version of ImageMagick.
21720# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000021721if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021722 enableval=$enable_hdri; enable_hdri=$enableval
21723else
cristy191c0b72012-08-12 16:29:52 +000021724 enable_hdri='yes'
cristy3ed852e2009-09-05 21:47:34 +000021725fi
21726
21727
21728MAGICK_HDRI=""
21729if test "$enable_hdri" = 'yes'; then
21730 MAGICK_HDRI="HDRI"
cristye52f12f2012-12-31 15:32:36 +000021731 magick_hdri_enable='1';
cristyfd9dcd42010-08-08 18:07:02 +000021732 MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
cristye52f12f2012-12-31 15:32:36 +000021733else
21734 magick_hdri_enable='0'
cristy3ed852e2009-09-05 21:47:34 +000021735fi
21736
cristye52f12f2012-12-31 15:32:36 +000021737cat >>confdefs.h <<_ACEOF
21738#define HDRI_ENABLE_OBSOLETE_IN_H $magick_hdri_enable
21739_ACEOF
21740
21741MAGICK_PCFLAGS="$MAGICK_PCFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
21742CFLAGS="$CFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
cristy72062382012-12-31 16:49:52 +000021743CPPFLAGS="$CPPFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
cristye52f12f2012-12-31 15:32:36 +000021744
cristy3ed852e2009-09-05 21:47:34 +000021745# Build a version of ImageMagick with assert statements.
21746# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000021747if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021748 enableval=$enable_assert; enable_assert=$enableval
21749else
21750 enable_assert='yes'
21751fi
21752
21753
21754if test "$enable_assert" = 'no'; then
21755
cristy8b350f62009-11-15 23:12:43 +000021756$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021757
21758fi
21759
cristya448bd22011-10-14 12:38:13 +000021760# Don't emit "rebuild rules" for configure, Makefile.ins, etc.
cristy73bd4a52010-10-05 11:24:23 +000021761
21762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
21763$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
21764 # Check whether --enable-maintainer-mode was given.
21765if test "${enable_maintainer_mode+set}" = set; then :
21766 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
21767else
21768 USE_MAINTAINER_MODE=no
21769fi
21770
21771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
21772$as_echo "$USE_MAINTAINER_MODE" >&6; }
21773 if test $USE_MAINTAINER_MODE = yes; then
21774 MAINTAINER_MODE_TRUE=
21775 MAINTAINER_MODE_FALSE='#'
21776else
21777 MAINTAINER_MODE_TRUE='#'
21778 MAINTAINER_MODE_FALSE=
21779fi
21780
21781 MAINT=$MAINTAINER_MODE_TRUE
21782
21783
cristy3ed852e2009-09-05 21:47:34 +000021784
cristy944e51f2013-04-16 18:45:02 +000021785# Enable hugepages support
21786# Check whether --enable-hugepages was given.
21787if test "${enable_hugepages+set}" = set; then :
21788 enableval=$enable_hugepages; enable_hugepages=$enableval
21789else
21790 enable_hugepages='no'
21791fi
21792
21793
cristy3ed852e2009-09-05 21:47:34 +000021794# Enable ccmalloc memory debugging support
21795# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000021796if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021797 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
21798else
21799 enable_ccmalloc='no'
21800fi
21801
21802
21803# Enable Electric Fence memory debugging support
21804# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000021805if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021806 enableval=$enable_efence; enable_efence=$enableval
21807else
21808 enable_efence='no'
21809fi
21810
21811
21812# Enable prof-based profiling support
21813# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000021814if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021815 enableval=$enable_prof; enable_prof=$enableval
21816else
21817 enable_prof='no'
21818fi
21819
21820
21821# Enable gprof-based profiling support
21822# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000021823if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021824 enableval=$enable_gprof; enable_gprof=$enableval
21825else
21826 enable_gprof='no'
21827fi
21828
21829
21830# Enable gcov-based profiling support
21831# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000021832if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021833 enableval=$enable_gcov; enable_gcov=$enableval
21834else
21835 enable_gcov='no'
21836fi
21837
21838
21839enable_profiling='no'
21840if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
21841 enable_profiling='yes'
21842 if test "$libtool_build_shared_libs" = 'yes'; then
21843 echo "Warning: Can not profile code using shared libraries"
21844 fi
21845fi
21846
21847# Magick API method prefix
21848
21849# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000021850if test "${with_method_prefix+set}" = set; then :
cristyfc3d0222012-02-07 15:05:57 +000021851 withval=$with_method_prefix; with_method_prefix=$withval
cristy3ed852e2009-09-05 21:47:34 +000021852else
cristyfc3d0222012-02-07 15:05:57 +000021853 with_method_prefix='no'
cristy3ed852e2009-09-05 21:47:34 +000021854fi
21855
21856
cristyfc3d0222012-02-07 15:05:57 +000021857if test "$with_method_prefix" != 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000021858
21859cat >>confdefs.h <<_ACEOF
21860#define NAMESPACE_PREFIX $with_method_prefix
21861_ACEOF
21862
cristyfc3d0222012-02-07 15:05:57 +000021863 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-method-prefix "
cristy3ed852e2009-09-05 21:47:34 +000021864fi
21865
cristy71d8c202012-03-20 17:05:01 +000021866# Enable legacy support (default no)
21867# Check whether --enable-legacy-support was given.
21868if test "${enable_legacy_support+set}" = set; then :
21869 enableval=$enable_legacy_support; with_legacy_support=$enableval
21870else
21871 with_legacy_support='no'
21872fi
21873
21874 if test "$with_legacy_support" != 'no'; then
21875 LEGACY_SUPPORT_TRUE=
21876 LEGACY_SUPPORT_FALSE='#'
21877else
21878 LEGACY_SUPPORT_TRUE='#'
21879 LEGACY_SUPPORT_FALSE=
21880fi
21881
21882
cristy3ed852e2009-09-05 21:47:34 +000021883# Number of bits in a Quantum
21884
21885# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000021886if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021887 withval=$with_quantum_depth; with_quantum_depth=$withval
21888else
21889 with_quantum_depth=16
21890fi
21891
21892
21893if test "$with_quantum_depth" != '8'; then
21894 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
21895fi
21896
21897case "${with_quantum_depth}" in
21898 8 ) ;;
21899 16 ) ;;
21900 32 ) ;;
21901 64 ) ;;
cristy98dddb52010-11-04 00:30:15 +000021902 * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000021903esac
21904QUANTUM_DEPTH="$with_quantum_depth"
21905
21906cat >>confdefs.h <<_ACEOF
cristye52f12f2012-12-31 15:32:36 +000021907#define QUANTUM_DEPTH_OBSOLETE_IN_H $QUANTUM_DEPTH
cristy3ed852e2009-09-05 21:47:34 +000021908_ACEOF
21909
cristya371edf2013-02-06 13:42:17 +000021910MAGICK_PCFLAGS="$MAGICK_PCFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristye52f12f2012-12-31 15:32:36 +000021911CFLAGS="$CFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristy72062382012-12-31 16:49:52 +000021912CPPFLAGS="$CPPFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristy3ed852e2009-09-05 21:47:34 +000021913
cristy01ff9f32012-12-01 18:15:29 +000021914# define a lib suffix for abi purpose
cristy7a26abd2012-12-03 00:18:59 +000021915MAGICK_ABI_SUFFIX="Q${QUANTUM_DEPTH}"
cristye386d192012-12-01 21:05:20 +000021916if test "$enable_hdri" = 'yes'; then
cristy7a26abd2012-12-03 00:18:59 +000021917 MAGICK_ABI_SUFFIX="Q${QUANTUM_DEPTH}${MAGICK_HDRI}"
cristye386d192012-12-01 21:05:20 +000021918fi
cristy01ff9f32012-12-01 18:15:29 +000021919
21920
cristy3ed852e2009-09-05 21:47:34 +000021921# Set pixel cache threshold
21922
21923# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000021924if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021925 withval=$with_cache; with_cache=$withval
21926else
21927 with_cache=''
21928fi
21929
21930
21931if test "$with_cache" != ''; then
21932
21933cat >>confdefs.h <<_ACEOF
21934#define PixelCacheThreshold $with_cache
21935_ACEOF
21936
21937 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
21938fi
21939
21940# Disable/Enable support for full delegate paths
21941
21942# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000021943if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021944 withval=$with_frozenpaths; with_frozenpaths=$withval
21945else
21946 with_frozenpaths='no'
21947fi
21948
21949
21950# Enable build/install of Magick++
21951
21952# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000021953if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021954 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
21955else
21956 with_magick_plus_plus='yes'
21957fi
21958
21959
cristy3a75f062012-09-08 23:29:40 +000021960# Encode the this name into the shared library.
21961
21962# Check whether --with-package-release-name was given.
21963if test "${with_package_release_name+set}" = set; then :
21964 withval=$with_package_release_name; MAGICK_LT_RELEASE_OPTS="-release $withval"
21965fi
21966
21967
21968
cristy3ed852e2009-09-05 21:47:34 +000021969# Disable build/install of PerlMagick.
21970
21971# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000021972if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021973 withval=$with_perl; with_perl=$withval
21974else
cristyb5f4e2f2010-04-25 00:49:11 +000021975 with_perl='no'
cristy3ed852e2009-09-05 21:47:34 +000021976fi
21977
21978
21979# Options to pass when configuring PerlMagick
21980
21981# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000021982if test "${with_perl_options+set}" = set; then :
cristy949301e2010-01-06 01:38:40 +000021983 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
cristy3ed852e2009-09-05 21:47:34 +000021984fi
21985
21986
cristy3ed852e2009-09-05 21:47:34 +000021987
cristy3b0097d2014-11-04 15:34:47 +000021988# Enable jemalloc, object-caching memory allocation library.
21989
21990# Check whether --with-jemalloc was given.
21991if test "${with_jemalloc+set}" = set; then :
21992 withval=$with_jemalloc; with_jemalloc=$withval
21993else
21994 with_jemalloc='no'
21995fi
21996
21997if test "$with_jemalloc" != 'yes' ; then
21998 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jemalloc=$with_jemalloc "
21999fi
22000
cristy3ed852e2009-09-05 21:47:34 +000022001# Enable umem, object-caching memory allocation library.
22002
22003# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000022004if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022005 withval=$with_umem; with_umem=$withval
22006else
22007 with_umem='no'
22008fi
22009
22010if test "$with_umem" != 'yes' ; then
22011 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
22012fi
22013
22014#
22015# Specify path to shared libstdc++ if not in normal location
22016#
22017
22018# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000022019if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022020 withval=$with_libstdc; with_libstdc=$withval
22021else
22022 with_libstdc=''
22023fi
22024
22025
22026if test "$with_libstdc" != ''; then
22027 if test -d "$with_libstdc"; then
22028 LIBSTDCLDFLAGS="-L$with_libstdc"
22029 fi
22030fi
22031
22032
22033# Does gcc required -traditional?
22034if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000022035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000022036$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022037if ${ac_cv_prog_gcc_traditional+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022038 $as_echo_n "(cached) " >&6
22039else
22040 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000022041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022042/* end confdefs.h. */
22043#include <sgtty.h>
22044Autoconf TIOCGETP
22045_ACEOF
22046if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022047 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000022048 ac_cv_prog_gcc_traditional=yes
22049else
22050 ac_cv_prog_gcc_traditional=no
22051fi
22052rm -f conftest*
22053
22054
22055 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000022056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022057/* end confdefs.h. */
22058#include <termio.h>
22059Autoconf TCGETA
22060_ACEOF
22061if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022062 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000022063 ac_cv_prog_gcc_traditional=yes
22064fi
22065rm -f conftest*
22066
22067 fi
22068fi
cristy8b350f62009-11-15 23:12:43 +000022069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000022070$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
22071 if test $ac_cv_prog_gcc_traditional = yes; then
22072 CC="$CC -traditional"
22073 fi
22074fi
22075
22076
22077########
22078#
22079# Set defines required to build DLLs and modules using MinGW
22080#
22081########
22082# These options are set for multi-thread DLL module build
22083# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
22084# module: _DLL
22085# executable/Magick++: _DLL _MAGICKMOD_
22086MODULE_EXTRA_CPPFLAGS=''
22087LIBRARY_EXTRA_CPPFLAGS=''
22088if test "${native_win32_build}" = 'yes'; then
22089 if test "${libtool_build_shared_libs}" = 'yes'; then
22090 CPPFLAGS="$CPPFLAGS -D_DLL"
22091 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
22092 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
22093 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
cristyc6722092012-10-14 00:19:31 +000022094 if test "$build_modules" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000022095 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
22096 else
22097 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
22098 fi
22099 else
22100 CPPFLAGS="$CPPFLAGS -D_LIB"
22101 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
22102 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
22103 fi
22104 if test "$with_threads" = 'yes'; then
22105 CPPFLAGS="$CPPFLAGS -D_MT"
22106 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
22107 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
22108 fi
22109fi
22110
22111
22112
22113# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000022114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000022115$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022116if ${ac_cv_header_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022117 $as_echo_n "(cached) " >&6
22118else
cristy8b350f62009-11-15 23:12:43 +000022119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022120/* end confdefs.h. */
22121#include <stdlib.h>
22122#include <stdarg.h>
22123#include <string.h>
22124#include <float.h>
22125
22126int
22127main ()
22128{
22129
22130 ;
22131 return 0;
22132}
22133_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022134if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022135 ac_cv_header_stdc=yes
22136else
cristy8b350f62009-11-15 23:12:43 +000022137 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000022138fi
cristy3ed852e2009-09-05 21:47:34 +000022139rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22140
22141if test $ac_cv_header_stdc = yes; then
22142 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000022143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022144/* end confdefs.h. */
22145#include <string.h>
22146
22147_ACEOF
22148if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022149 $EGREP "memchr" >/dev/null 2>&1; then :
22150
cristy3ed852e2009-09-05 21:47:34 +000022151else
22152 ac_cv_header_stdc=no
22153fi
22154rm -f conftest*
22155
22156fi
22157
22158if test $ac_cv_header_stdc = yes; then
22159 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000022160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022161/* end confdefs.h. */
22162#include <stdlib.h>
22163
22164_ACEOF
22165if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022166 $EGREP "free" >/dev/null 2>&1; then :
22167
cristy3ed852e2009-09-05 21:47:34 +000022168else
22169 ac_cv_header_stdc=no
22170fi
22171rm -f conftest*
22172
22173fi
22174
22175if test $ac_cv_header_stdc = yes; then
22176 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000022177 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022178 :
22179else
cristy8b350f62009-11-15 23:12:43 +000022180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022181/* end confdefs.h. */
22182#include <ctype.h>
22183#include <stdlib.h>
22184#if ((' ' & 0x0FF) == 0x020)
22185# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
22186# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
22187#else
22188# define ISLOWER(c) \
22189 (('a' <= (c) && (c) <= 'i') \
22190 || ('j' <= (c) && (c) <= 'r') \
22191 || ('s' <= (c) && (c) <= 'z'))
22192# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
22193#endif
22194
22195#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
22196int
22197main ()
22198{
22199 int i;
22200 for (i = 0; i < 256; i++)
22201 if (XOR (islower (i), ISLOWER (i))
22202 || toupper (i) != TOUPPER (i))
22203 return 2;
22204 return 0;
22205}
22206_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022207if ac_fn_c_try_run "$LINENO"; then :
22208
cristy3ed852e2009-09-05 21:47:34 +000022209else
cristy8b350f62009-11-15 23:12:43 +000022210 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000022211fi
cristy8b350f62009-11-15 23:12:43 +000022212rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22213 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022214fi
22215
cristy3ed852e2009-09-05 21:47:34 +000022216fi
22217fi
cristy8b350f62009-11-15 23:12:43 +000022218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000022219$as_echo "$ac_cv_header_stdc" >&6; }
22220if test $ac_cv_header_stdc = yes; then
22221
cristy8b350f62009-11-15 23:12:43 +000022222$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022223
22224fi
22225
22226if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000022227 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure has detected that you do not have the ANSI standard C
cristy3ed852e2009-09-05 21:47:34 +000022228 header files. Compilation cannot proceed. Please install the ANSI C
22229 headers and rerun this script." >&5
22230$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
22231 header files. Compilation cannot proceed. Please install the ANSI C
22232 headers and rerun this script." >&2;};
22233fi
cristya0b81c32010-01-22 02:54:33 +000022234
22235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
22236$as_echo_n "checking whether to enable assertions... " >&6; }
22237 # Check whether --enable-assert was given.
22238if test "${enable_assert+set}" = set; then :
22239 enableval=$enable_assert; ac_enable_assert=$enableval
22240 if test "x$enableval" = xno; then :
22241
22242$as_echo "#define NDEBUG 1" >>confdefs.h
22243
22244elif test "x$enableval" != xyes; then :
22245 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
22246$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
22247 ac_enable_assert=yes
22248fi
22249else
22250 ac_enable_assert=yes
22251fi
22252
22253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
22254$as_echo "$ac_enable_assert" >&6; }
22255
cristy3ed852e2009-09-05 21:47:34 +000022256ac_header_dirent=no
22257for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22258 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000022259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000022260$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022261if eval \${$as_ac_Header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022262 $as_echo_n "(cached) " >&6
22263else
cristy8b350f62009-11-15 23:12:43 +000022264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022265/* end confdefs.h. */
22266#include <sys/types.h>
22267#include <$ac_hdr>
22268
22269int
22270main ()
22271{
22272if ((DIR *) 0)
22273return 0;
22274 ;
22275 return 0;
22276}
22277_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022278if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022279 eval "$as_ac_Header=yes"
22280else
cristy8b350f62009-11-15 23:12:43 +000022281 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000022282fi
cristy3ed852e2009-09-05 21:47:34 +000022283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22284fi
cristy8b350f62009-11-15 23:12:43 +000022285eval ac_res=\$$as_ac_Header
22286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000022287$as_echo "$ac_res" >&6; }
cristy98dddb52010-11-04 00:30:15 +000022288if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000022289 cat >>confdefs.h <<_ACEOF
22290#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22291_ACEOF
22292
22293ac_header_dirent=$ac_hdr; break
22294fi
22295
22296done
22297# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22298if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000022299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000022300$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022301if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022302 $as_echo_n "(cached) " >&6
22303else
22304 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000022305cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022306/* end confdefs.h. */
22307
22308/* Override any GCC internal prototype to avoid an error.
22309 Use char because int might match the return type of a GCC
22310 builtin and then its argument prototype would still apply. */
22311#ifdef __cplusplus
22312extern "C"
22313#endif
22314char opendir ();
22315int
22316main ()
22317{
22318return opendir ();
22319 ;
22320 return 0;
22321}
22322_ACEOF
22323for ac_lib in '' dir; do
22324 if test -z "$ac_lib"; then
22325 ac_res="none required"
22326 else
22327 ac_res=-l$ac_lib
22328 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22329 fi
cristy8b350f62009-11-15 23:12:43 +000022330 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022331 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000022332fi
cristy8b350f62009-11-15 23:12:43 +000022333rm -f core conftest.err conftest.$ac_objext \
22334 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000022335 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022336 break
22337fi
22338done
cristyda16f162011-02-19 23:52:17 +000022339if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000022340
cristy3ed852e2009-09-05 21:47:34 +000022341else
22342 ac_cv_search_opendir=no
22343fi
22344rm conftest.$ac_ext
22345LIBS=$ac_func_search_save_LIBS
22346fi
cristy8b350f62009-11-15 23:12:43 +000022347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000022348$as_echo "$ac_cv_search_opendir" >&6; }
22349ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000022350if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000022351 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22352
22353fi
22354
22355else
cristy8b350f62009-11-15 23:12:43 +000022356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000022357$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022358if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022359 $as_echo_n "(cached) " >&6
22360else
22361 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000022362cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022363/* end confdefs.h. */
22364
22365/* Override any GCC internal prototype to avoid an error.
22366 Use char because int might match the return type of a GCC
22367 builtin and then its argument prototype would still apply. */
22368#ifdef __cplusplus
22369extern "C"
22370#endif
22371char opendir ();
22372int
22373main ()
22374{
22375return opendir ();
22376 ;
22377 return 0;
22378}
22379_ACEOF
22380for ac_lib in '' x; do
22381 if test -z "$ac_lib"; then
22382 ac_res="none required"
22383 else
22384 ac_res=-l$ac_lib
22385 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22386 fi
cristy8b350f62009-11-15 23:12:43 +000022387 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022388 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000022389fi
cristy8b350f62009-11-15 23:12:43 +000022390rm -f core conftest.err conftest.$ac_objext \
22391 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000022392 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022393 break
22394fi
22395done
cristyda16f162011-02-19 23:52:17 +000022396if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000022397
cristy3ed852e2009-09-05 21:47:34 +000022398else
22399 ac_cv_search_opendir=no
22400fi
22401rm conftest.$ac_ext
22402LIBS=$ac_func_search_save_LIBS
22403fi
cristy8b350f62009-11-15 23:12:43 +000022404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000022405$as_echo "$ac_cv_search_opendir" >&6; }
22406ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000022407if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000022408 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22409
22410fi
22411
22412fi
22413
22414
22415# Check additional headers
cristy66988ab2015-05-30 17:20:38 +000022416for ac_header in arm/limits.h arpa/inet.h complex.h errno.h fcntl.h limits.h linux/unistd.h locale.h machine/param.h mach-o/dyld.h netinet/in.h OS.h process.h sun_prefetch.h stdarg.h sys/ipc.h sys/mman.h sys/resource.h sys/sendfile.h sys/socket.h sys/syslimits.h sys/time.h sys/timeb.h sys/times.h sys/wait.h wchar.h xlocale.h
cristy8b350f62009-11-15 23:12:43 +000022417do :
22418 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22419ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000022420if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000022421 cat >>confdefs.h <<_ACEOF
22422#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22423_ACEOF
22424
22425fi
22426
22427done
22428
22429
22430########
22431#
22432# Checks for typedefs, structures, and compiler characteristics.
22433#
22434########
22435
cristy8b350f62009-11-15 23:12:43 +000022436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000022437$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022438if ${ac_cv_header_stdbool_h+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022439 $as_echo_n "(cached) " >&6
22440else
cristy8b350f62009-11-15 23:12:43 +000022441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022442/* end confdefs.h. */
22443
cristy14fefe52012-05-21 00:59:18 +000022444 #include <stdbool.h>
22445 #ifndef bool
22446 "error: bool is not defined"
22447 #endif
22448 #ifndef false
22449 "error: false is not defined"
22450 #endif
22451 #if false
22452 "error: false is not 0"
22453 #endif
22454 #ifndef true
22455 "error: true is not defined"
22456 #endif
22457 #if true != 1
22458 "error: true is not 1"
22459 #endif
22460 #ifndef __bool_true_false_are_defined
22461 "error: __bool_true_false_are_defined is not defined"
22462 #endif
cristy3ed852e2009-09-05 21:47:34 +000022463
cristy14fefe52012-05-21 00:59:18 +000022464 struct s { _Bool s: 1; _Bool t; } s;
cristy3ed852e2009-09-05 21:47:34 +000022465
cristy14fefe52012-05-21 00:59:18 +000022466 char a[true == 1 ? 1 : -1];
22467 char b[false == 0 ? 1 : -1];
22468 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
22469 char d[(bool) 0.5 == true ? 1 : -1];
22470 /* See body of main program for 'e'. */
22471 char f[(_Bool) 0.0 == false ? 1 : -1];
22472 char g[true];
22473 char h[sizeof (_Bool)];
22474 char i[sizeof s.t];
22475 enum { j = false, k = true, l = false * true, m = true * 256 };
22476 /* The following fails for
22477 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
22478 _Bool n[m];
22479 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
22480 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
22481 /* Catch a bug in an HP-UX C compiler. See
22482 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
22483 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
22484 */
22485 _Bool q = true;
22486 _Bool *pq = &q;
cristy3ed852e2009-09-05 21:47:34 +000022487
22488int
22489main ()
22490{
22491
cristy14fefe52012-05-21 00:59:18 +000022492 bool e = &s;
22493 *pq |= q;
22494 *pq |= ! q;
22495 /* Refer to every declared value, to avoid compiler optimizations. */
22496 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
22497 + !m + !n + !o + !p + !q + !pq);
cristy3ed852e2009-09-05 21:47:34 +000022498
22499 ;
22500 return 0;
22501}
22502_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022503if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022504 ac_cv_header_stdbool_h=yes
22505else
cristy8b350f62009-11-15 23:12:43 +000022506 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000022507fi
cristy3ed852e2009-09-05 21:47:34 +000022508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22509fi
cristy8b350f62009-11-15 23:12:43 +000022510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000022511$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy14fefe52012-05-21 00:59:18 +000022512 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000022513if test "x$ac_cv_type__Bool" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000022514
22515cat >>confdefs.h <<_ACEOF
22516#define HAVE__BOOL 1
22517_ACEOF
22518
22519
22520fi
22521
cristy14fefe52012-05-21 00:59:18 +000022522
cristy3ed852e2009-09-05 21:47:34 +000022523if test $ac_cv_header_stdbool_h = yes; then
22524
cristy8b350f62009-11-15 23:12:43 +000022525$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022526
22527fi
22528
cristy8b350f62009-11-15 23:12:43 +000022529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000022530$as_echo_n "checking for working volatile... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022531if ${ac_cv_c_volatile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022532 $as_echo_n "(cached) " >&6
22533else
cristy8b350f62009-11-15 23:12:43 +000022534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022535/* end confdefs.h. */
22536
22537int
22538main ()
22539{
22540
22541volatile int x;
22542int * volatile y = (int *) 0;
22543return !x && !y;
22544 ;
22545 return 0;
22546}
22547_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022548if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022549 ac_cv_c_volatile=yes
22550else
cristy8b350f62009-11-15 23:12:43 +000022551 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000022552fi
cristy3ed852e2009-09-05 21:47:34 +000022553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22554fi
cristy8b350f62009-11-15 23:12:43 +000022555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000022556$as_echo "$ac_cv_c_volatile" >&6; }
22557if test $ac_cv_c_volatile = no; then
22558
cristy8b350f62009-11-15 23:12:43 +000022559$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022560
22561fi
22562
cristy8b350f62009-11-15 23:12:43 +000022563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000022564$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022565if ${ac_cv_c_stringize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022566 $as_echo_n "(cached) " >&6
22567else
cristy8b350f62009-11-15 23:12:43 +000022568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022569/* end confdefs.h. */
22570#define x(y) #y
22571
22572char *s = x(teststring);
22573_ACEOF
22574if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022575 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000022576 ac_cv_c_stringize=no
22577else
22578 ac_cv_c_stringize=yes
22579fi
22580rm -f conftest*
22581
22582fi
cristy8b350f62009-11-15 23:12:43 +000022583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000022584$as_echo "$ac_cv_c_stringize" >&6; }
22585if test $ac_cv_c_stringize = yes; then
22586
cristy8b350f62009-11-15 23:12:43 +000022587$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022588
22589fi
22590
cristy8b350f62009-11-15 23:12:43 +000022591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000022592$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022593if ${ac_cv_header_stat_broken+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022594 $as_echo_n "(cached) " >&6
22595else
cristy8b350f62009-11-15 23:12:43 +000022596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022597/* end confdefs.h. */
22598#include <sys/types.h>
22599#include <sys/stat.h>
22600
22601#if defined S_ISBLK && defined S_IFDIR
22602extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
22603#endif
22604
22605#if defined S_ISBLK && defined S_IFCHR
22606extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
22607#endif
22608
22609#if defined S_ISLNK && defined S_IFREG
22610extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
22611#endif
22612
22613#if defined S_ISSOCK && defined S_IFREG
22614extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
22615#endif
22616
22617_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022618if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022619 ac_cv_header_stat_broken=no
22620else
cristy8b350f62009-11-15 23:12:43 +000022621 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000022622fi
cristy3ed852e2009-09-05 21:47:34 +000022623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22624fi
cristy8b350f62009-11-15 23:12:43 +000022625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000022626$as_echo "$ac_cv_header_stat_broken" >&6; }
22627if test $ac_cv_header_stat_broken = yes; then
22628
cristy8b350f62009-11-15 23:12:43 +000022629$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022630
22631fi
22632
cristy8b350f62009-11-15 23:12:43 +000022633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
cristy3ed852e2009-09-05 21:47:34 +000022634$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022635if ${ac_cv_header_time+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022636 $as_echo_n "(cached) " >&6
22637else
cristy8b350f62009-11-15 23:12:43 +000022638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022639/* end confdefs.h. */
22640#include <sys/types.h>
22641#include <sys/time.h>
22642#include <time.h>
22643
22644int
22645main ()
22646{
22647if ((struct tm *) 0)
22648return 0;
22649 ;
22650 return 0;
22651}
22652_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022653if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022654 ac_cv_header_time=yes
22655else
cristy8b350f62009-11-15 23:12:43 +000022656 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000022657fi
cristy3ed852e2009-09-05 21:47:34 +000022658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22659fi
cristy8b350f62009-11-15 23:12:43 +000022660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000022661$as_echo "$ac_cv_header_time" >&6; }
22662if test $ac_cv_header_time = yes; then
22663
cristy8b350f62009-11-15 23:12:43 +000022664$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022665
22666fi
22667
cristy8b350f62009-11-15 23:12:43 +000022668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
cristy3ed852e2009-09-05 21:47:34 +000022669$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022670if ${ac_cv_struct_tm+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022671 $as_echo_n "(cached) " >&6
22672else
cristy8b350f62009-11-15 23:12:43 +000022673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022674/* end confdefs.h. */
22675#include <sys/types.h>
22676#include <time.h>
22677
22678int
22679main ()
22680{
22681struct tm tm;
22682 int *p = &tm.tm_sec;
22683 return !p;
22684 ;
22685 return 0;
22686}
22687_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022688if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022689 ac_cv_struct_tm=time.h
22690else
cristy8b350f62009-11-15 23:12:43 +000022691 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000022692fi
cristy3ed852e2009-09-05 21:47:34 +000022693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22694fi
cristy8b350f62009-11-15 23:12:43 +000022695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000022696$as_echo "$ac_cv_struct_tm" >&6; }
22697if test $ac_cv_struct_tm = sys/time.h; then
22698
cristy8b350f62009-11-15 23:12:43 +000022699$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022700
22701fi
22702
cristy92703d82010-04-26 00:18:18 +000022703ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
22704#include <$ac_cv_struct_tm>
22705
22706"
cristyda16f162011-02-19 23:52:17 +000022707if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000022708
22709cat >>confdefs.h <<_ACEOF
22710#define HAVE_STRUCT_TM_TM_ZONE 1
22711_ACEOF
22712
22713
22714fi
22715
22716if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
22717
22718$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
22719
22720else
22721 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
22722"
cristyda16f162011-02-19 23:52:17 +000022723if test "x$ac_cv_have_decl_tzname" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000022724 ac_have_decl=1
22725else
22726 ac_have_decl=0
22727fi
22728
22729cat >>confdefs.h <<_ACEOF
22730#define HAVE_DECL_TZNAME $ac_have_decl
22731_ACEOF
22732
22733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
22734$as_echo_n "checking for tzname... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022735if ${ac_cv_var_tzname+:} false; then :
cristy92703d82010-04-26 00:18:18 +000022736 $as_echo_n "(cached) " >&6
22737else
22738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22739/* end confdefs.h. */
22740#include <time.h>
22741#if !HAVE_DECL_TZNAME
22742extern char *tzname[];
22743#endif
22744
22745int
22746main ()
22747{
22748return tzname[0][0];
22749 ;
22750 return 0;
22751}
22752_ACEOF
22753if ac_fn_c_try_link "$LINENO"; then :
22754 ac_cv_var_tzname=yes
22755else
22756 ac_cv_var_tzname=no
22757fi
22758rm -f core conftest.err conftest.$ac_objext \
22759 conftest$ac_exeext conftest.$ac_ext
22760fi
22761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
22762$as_echo "$ac_cv_var_tzname" >&6; }
22763 if test $ac_cv_var_tzname = yes; then
22764
22765$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
22766
22767 fi
22768fi
22769
cristy8b350f62009-11-15 23:12:43 +000022770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000022771$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022772if ${ac_cv_sys_interpreter+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022773 $as_echo_n "(cached) " >&6
22774else
22775 echo '#! /bin/cat
22776exit 69
22777' >conftest
22778chmod u+x conftest
22779(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
22780if test $? -ne 69; then
22781 ac_cv_sys_interpreter=yes
22782else
22783 ac_cv_sys_interpreter=no
22784fi
22785rm -f conftest
22786fi
cristy8b350f62009-11-15 23:12:43 +000022787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000022788$as_echo "$ac_cv_sys_interpreter" >&6; }
22789interpval=$ac_cv_sys_interpreter
22790
22791
cristye80f9cb2013-01-09 01:09:31 +000022792#
22793# Checks for language qualifiers and semantics.
22794#
22795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
22796$as_echo_n "checking whether char is unsigned... " >&6; }
22797if ${ac_cv_c_char_unsigned+:} false; then :
22798 $as_echo_n "(cached) " >&6
22799else
22800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22801/* end confdefs.h. */
22802$ac_includes_default
22803int
22804main ()
22805{
22806static int test_array [1 - 2 * !(((char) -1) < 0)];
22807test_array [0] = 0;
22808return test_array [0];
22809
22810 ;
22811 return 0;
22812}
22813_ACEOF
22814if ac_fn_c_try_compile "$LINENO"; then :
22815 ac_cv_c_char_unsigned=no
22816else
22817 ac_cv_c_char_unsigned=yes
22818fi
22819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22820fi
22821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
22822$as_echo "$ac_cv_c_char_unsigned" >&6; }
22823if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
22824 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
22825
22826fi
22827
22828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
22829$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
22830if ${ac_cv_c_const+:} false; then :
22831 $as_echo_n "(cached) " >&6
22832else
22833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22834/* end confdefs.h. */
22835
22836int
22837main ()
22838{
22839
22840#ifndef __cplusplus
22841 /* Ultrix mips cc rejects this sort of thing. */
22842 typedef int charset[2];
22843 const charset cs = { 0, 0 };
22844 /* SunOS 4.1.1 cc rejects this. */
22845 char const *const *pcpcc;
22846 char **ppc;
22847 /* NEC SVR4.0.2 mips cc rejects this. */
22848 struct point {int x, y;};
22849 static struct point const zero = {0,0};
22850 /* AIX XL C 1.02.0.0 rejects this.
22851 It does not let you subtract one const X* pointer from another in
22852 an arm of an if-expression whose if-part is not a constant
22853 expression */
22854 const char *g = "string";
22855 pcpcc = &g + (g ? g-g : 0);
22856 /* HPUX 7.0 cc rejects these. */
22857 ++pcpcc;
22858 ppc = (char**) pcpcc;
22859 pcpcc = (char const *const *) ppc;
22860 { /* SCO 3.2v4 cc rejects this sort of thing. */
22861 char tx;
22862 char *t = &tx;
22863 char const *s = 0 ? (char *) 0 : (char const *) 0;
22864
22865 *t++ = 0;
22866 if (s) return 0;
22867 }
22868 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
22869 int x[] = {25, 17};
22870 const int *foo = &x[0];
22871 ++foo;
22872 }
22873 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22874 typedef const int *iptr;
22875 iptr p = 0;
22876 ++p;
22877 }
22878 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
22879 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22880 struct s { int j; const int *ap[3]; } bx;
22881 struct s *b = &bx; b->j = 5;
22882 }
22883 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22884 const int foo = 10;
22885 if (!foo) return 0;
22886 }
22887 return !cs[0] && !zero.x;
22888#endif
22889
22890 ;
22891 return 0;
22892}
22893_ACEOF
22894if ac_fn_c_try_compile "$LINENO"; then :
22895 ac_cv_c_const=yes
22896else
22897 ac_cv_c_const=no
22898fi
22899rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22900fi
22901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
22902$as_echo "$ac_cv_c_const" >&6; }
22903if test $ac_cv_c_const = no; then
22904
22905$as_echo "#define const /**/" >>confdefs.h
22906
22907fi
22908
cristy8b350f62009-11-15 23:12:43 +000022909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022910$as_echo_n "checking for inline... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022911if ${ac_cv_c_inline+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022912 $as_echo_n "(cached) " >&6
22913else
22914 ac_cv_c_inline=no
22915for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000022916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022917/* end confdefs.h. */
22918#ifndef __cplusplus
22919typedef int foo_t;
22920static $ac_kw foo_t static_foo () {return 0; }
22921$ac_kw foo_t foo () {return 0; }
22922#endif
22923
22924_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022925if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022926 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022927fi
cristy3ed852e2009-09-05 21:47:34 +000022928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22929 test "$ac_cv_c_inline" != no && break
22930done
22931
22932fi
cristy8b350f62009-11-15 23:12:43 +000022933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022934$as_echo "$ac_cv_c_inline" >&6; }
22935
cristy3ed852e2009-09-05 21:47:34 +000022936case $ac_cv_c_inline in
22937 inline | yes) ;;
22938 *)
22939 case $ac_cv_c_inline in
22940 no) ac_val=;;
22941 *) ac_val=$ac_cv_c_inline;;
22942 esac
22943 cat >>confdefs.h <<_ACEOF
22944#ifndef __cplusplus
22945#define inline $ac_val
22946#endif
22947_ACEOF
22948 ;;
22949esac
22950
cristy8b350f62009-11-15 23:12:43 +000022951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000022952$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022953if ${ac_cv_c_restrict+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022954 $as_echo_n "(cached) " >&6
22955else
22956 ac_cv_c_restrict=no
22957 # The order here caters to the fact that C++ does not require restrict.
22958 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000022959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022960/* end confdefs.h. */
22961typedef int * int_ptr;
22962 int foo (int_ptr $ac_kw ip) {
22963 return ip[0];
22964 }
22965int
22966main ()
22967{
22968int s[1];
22969 int * $ac_kw t = s;
22970 t[0] = 0;
22971 return foo(t)
22972 ;
22973 return 0;
22974}
22975_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022976if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022977 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022978fi
cristy3ed852e2009-09-05 21:47:34 +000022979rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22980 test "$ac_cv_c_restrict" != no && break
22981 done
22982
22983fi
cristy8b350f62009-11-15 23:12:43 +000022984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000022985$as_echo "$ac_cv_c_restrict" >&6; }
22986
cristy3ed852e2009-09-05 21:47:34 +000022987 case $ac_cv_c_restrict in
22988 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000022989 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022990 ;;
22991 *) cat >>confdefs.h <<_ACEOF
22992#define restrict $ac_cv_c_restrict
22993_ACEOF
22994 ;;
22995 esac
22996
cristye80f9cb2013-01-09 01:09:31 +000022997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
22998$as_echo_n "checking for working volatile... " >&6; }
22999if ${ac_cv_c_volatile+:} false; then :
23000 $as_echo_n "(cached) " >&6
23001else
23002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23003/* end confdefs.h. */
23004
23005int
23006main ()
23007{
23008
23009volatile int x;
23010int * volatile y = (int *) 0;
23011return !x && !y;
23012 ;
23013 return 0;
23014}
23015_ACEOF
23016if ac_fn_c_try_compile "$LINENO"; then :
23017 ac_cv_c_volatile=yes
23018else
23019 ac_cv_c_volatile=no
23020fi
23021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23022fi
23023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
23024$as_echo "$ac_cv_c_volatile" >&6; }
23025if test $ac_cv_c_volatile = no; then
23026
23027$as_echo "#define volatile /**/" >>confdefs.h
23028
23029fi
23030
cristy3ed852e2009-09-05 21:47:34 +000023031
23032# If words are stored with the most significant byte first (like
23033# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000023034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000023035$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023036if ${ac_cv_c_bigendian+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023037 $as_echo_n "(cached) " >&6
23038else
23039 ac_cv_c_bigendian=unknown
23040 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000023041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023042/* end confdefs.h. */
23043#ifndef __APPLE_CC__
23044 not a universal capable compiler
23045 #endif
23046 typedef int dummy;
23047
23048_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023049if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023050
23051 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000023052 # there are at least two -arch flags with different values.
23053 ac_arch=
23054 ac_prev=
23055 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
23056 if test -n "$ac_prev"; then
23057 case $ac_word in
23058 i?86 | x86_64 | ppc | ppc64)
23059 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
23060 ac_arch=$ac_word
23061 else
23062 ac_cv_c_bigendian=universal
23063 break
23064 fi
23065 ;;
23066 esac
23067 ac_prev=
23068 elif test "x$ac_word" = "x-arch"; then
23069 ac_prev=arch
23070 fi
23071 done
cristy3ed852e2009-09-05 21:47:34 +000023072fi
cristy3ed852e2009-09-05 21:47:34 +000023073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23074 if test $ac_cv_c_bigendian = unknown; then
23075 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000023076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023077/* end confdefs.h. */
23078#include <sys/types.h>
23079 #include <sys/param.h>
23080
23081int
23082main ()
23083{
23084#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
23085 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
23086 && LITTLE_ENDIAN)
23087 bogus endian macros
23088 #endif
23089
23090 ;
23091 return 0;
23092}
23093_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023094if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023095 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000023096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023097/* end confdefs.h. */
23098#include <sys/types.h>
23099 #include <sys/param.h>
23100
23101int
23102main ()
23103{
23104#if BYTE_ORDER != BIG_ENDIAN
23105 not big endian
23106 #endif
23107
23108 ;
23109 return 0;
23110}
23111_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023112if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023113 ac_cv_c_bigendian=yes
23114else
cristy8b350f62009-11-15 23:12:43 +000023115 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000023116fi
cristy3ed852e2009-09-05 21:47:34 +000023117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023118fi
cristy3ed852e2009-09-05 21:47:34 +000023119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23120 fi
23121 if test $ac_cv_c_bigendian = unknown; then
23122 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000023123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023124/* end confdefs.h. */
23125#include <limits.h>
23126
23127int
23128main ()
23129{
23130#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
23131 bogus endian macros
23132 #endif
23133
23134 ;
23135 return 0;
23136}
23137_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023138if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023139 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000023140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023141/* end confdefs.h. */
23142#include <limits.h>
23143
23144int
23145main ()
23146{
23147#ifndef _BIG_ENDIAN
23148 not big endian
23149 #endif
23150
23151 ;
23152 return 0;
23153}
23154_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023155if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023156 ac_cv_c_bigendian=yes
23157else
cristy8b350f62009-11-15 23:12:43 +000023158 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000023159fi
cristy3ed852e2009-09-05 21:47:34 +000023160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023161fi
cristy3ed852e2009-09-05 21:47:34 +000023162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23163 fi
23164 if test $ac_cv_c_bigendian = unknown; then
23165 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000023166 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023167 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000023168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023169/* end confdefs.h. */
23170short int ascii_mm[] =
23171 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
23172 short int ascii_ii[] =
23173 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
23174 int use_ascii (int i) {
23175 return ascii_mm[i] + ascii_ii[i];
23176 }
23177 short int ebcdic_ii[] =
23178 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
23179 short int ebcdic_mm[] =
23180 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
23181 int use_ebcdic (int i) {
23182 return ebcdic_mm[i] + ebcdic_ii[i];
23183 }
23184 extern int foo;
23185
23186int
23187main ()
23188{
23189return use_ascii (foo) == use_ebcdic (foo);
23190 ;
23191 return 0;
23192}
23193_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023194if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023195 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
23196 ac_cv_c_bigendian=yes
23197 fi
23198 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
23199 if test "$ac_cv_c_bigendian" = unknown; then
23200 ac_cv_c_bigendian=no
23201 else
23202 # finding both strings is unlikely to happen, but who knows?
23203 ac_cv_c_bigendian=unknown
23204 fi
23205 fi
cristy3ed852e2009-09-05 21:47:34 +000023206fi
cristy3ed852e2009-09-05 21:47:34 +000023207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23208else
cristy8b350f62009-11-15 23:12:43 +000023209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023210/* end confdefs.h. */
23211$ac_includes_default
23212int
23213main ()
23214{
23215
23216 /* Are we little or big endian? From Harbison&Steele. */
23217 union
23218 {
23219 long int l;
23220 char c[sizeof (long int)];
23221 } u;
23222 u.l = 1;
23223 return u.c[sizeof (long int) - 1] == 1;
23224
23225 ;
23226 return 0;
23227}
23228_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023229if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023230 ac_cv_c_bigendian=no
23231else
cristy8b350f62009-11-15 23:12:43 +000023232 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000023233fi
cristy8b350f62009-11-15 23:12:43 +000023234rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23235 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023236fi
23237
cristy3ed852e2009-09-05 21:47:34 +000023238 fi
23239fi
cristy8b350f62009-11-15 23:12:43 +000023240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000023241$as_echo "$ac_cv_c_bigendian" >&6; }
23242 case $ac_cv_c_bigendian in #(
23243 yes)
cristy8b350f62009-11-15 23:12:43 +000023244 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023245;; #(
23246 no)
23247 ;; #(
23248 universal)
23249
cristy8b350f62009-11-15 23:12:43 +000023250$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023251
23252 ;; #(
23253 *)
cristy98dddb52010-11-04 00:30:15 +000023254 as_fn_error $? "unknown endianness
cristy8b350f62009-11-15 23:12:43 +000023255 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000023256 esac
23257
23258
cristy501c8042011-05-26 17:46:28 +000023259# Define to a suitable type, if standard headers do not define it.
23260ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
23261case $ac_cv_c_int8_t in #(
23262 no|yes) ;; #(
23263 *)
cristy3ed852e2009-09-05 21:47:34 +000023264
23265cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000023266#define int8_t $ac_cv_c_int8_t
23267_ACEOF
23268;;
23269esac
23270
23271ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
23272case $ac_cv_c_int16_t in #(
23273 no|yes) ;; #(
23274 *)
23275
23276cat >>confdefs.h <<_ACEOF
23277#define int16_t $ac_cv_c_int16_t
23278_ACEOF
23279;;
23280esac
23281
23282ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
23283case $ac_cv_c_int32_t in #(
23284 no|yes) ;; #(
23285 *)
23286
23287cat >>confdefs.h <<_ACEOF
23288#define int32_t $ac_cv_c_int32_t
23289_ACEOF
23290;;
23291esac
23292
23293ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
23294case $ac_cv_c_int64_t in #(
23295 no|yes) ;; #(
23296 *)
23297
23298cat >>confdefs.h <<_ACEOF
23299#define int64_t $ac_cv_c_int64_t
23300_ACEOF
23301;;
23302esac
23303
23304
cristy045228a2013-06-23 11:00:16 +000023305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23306$as_echo_n "checking for unsigned long long int... " >&6; }
23307if ${ac_cv_type_unsigned_long_long_int+:} false; then :
cristy501c8042011-05-26 17:46:28 +000023308 $as_echo_n "(cached) " >&6
23309else
cristy045228a2013-06-23 11:00:16 +000023310 ac_cv_type_unsigned_long_long_int=yes
23311 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
23312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy501c8042011-05-26 17:46:28 +000023313/* end confdefs.h. */
23314
23315 /* For now, do not test the preprocessor; as of 2007 there are too many
cristy5ed9c6e2013-07-14 21:20:31 +000023316 implementations with broken preprocessors. Perhaps this can
23317 be revisited in 2012. In the meantime, code should not expect
23318 #if to work with literals wider than 32 bits. */
cristy501c8042011-05-26 17:46:28 +000023319 /* Test literals. */
23320 long long int ll = 9223372036854775807ll;
23321 long long int nll = -9223372036854775807LL;
23322 unsigned long long int ull = 18446744073709551615ULL;
23323 /* Test constant expressions. */
23324 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
cristy5ed9c6e2013-07-14 21:20:31 +000023325 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000023326 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
cristy5ed9c6e2013-07-14 21:20:31 +000023327 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000023328 int i = 63;
23329int
23330main ()
23331{
23332/* Test availability of runtime routines for shift and division. */
23333 long long int llmax = 9223372036854775807ll;
23334 unsigned long long int ullmax = 18446744073709551615ull;
23335 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
cristy5ed9c6e2013-07-14 21:20:31 +000023336 | (llmax / ll) | (llmax % ll)
23337 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23338 | (ullmax / ull) | (ullmax % ull));
cristy501c8042011-05-26 17:46:28 +000023339 ;
23340 return 0;
23341}
23342
23343_ACEOF
23344if ac_fn_c_try_link "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000023345
23346else
23347 ac_cv_type_unsigned_long_long_int=no
23348fi
23349rm -f core conftest.err conftest.$ac_objext \
23350 conftest$ac_exeext conftest.$ac_ext
23351 fi
23352fi
23353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23354$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23355 if test $ac_cv_type_unsigned_long_long_int = yes; then
23356
23357$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23358
23359 fi
23360
23361
23362
23363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
23364$as_echo_n "checking for long long int... " >&6; }
23365if ${ac_cv_type_long_long_int+:} false; then :
23366 $as_echo_n "(cached) " >&6
23367else
cristy501c8042011-05-26 17:46:28 +000023368 ac_cv_type_long_long_int=yes
cristy045228a2013-06-23 11:00:16 +000023369 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
cristy5ed9c6e2013-07-14 21:20:31 +000023370 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
23371 if test $ac_cv_type_long_long_int = yes; then
23372 if test "$cross_compiling" = yes; then :
cristy045228a2013-06-23 11:00:16 +000023373 :
cristy501c8042011-05-26 17:46:28 +000023374else
23375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23376/* end confdefs.h. */
23377#include <limits.h>
cristy5ed9c6e2013-07-14 21:20:31 +000023378 #ifndef LLONG_MAX
23379 # define HALF \
23380 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
23381 # define LLONG_MAX (HALF - 1 + HALF)
23382 #endif
cristy501c8042011-05-26 17:46:28 +000023383int
23384main ()
23385{
23386long long int n = 1;
cristy5ed9c6e2013-07-14 21:20:31 +000023387 int i;
23388 for (i = 0; ; i++)
23389 {
23390 long long int m = n << i;
23391 if (m >> i != n)
23392 return 1;
23393 if (LLONG_MAX / 2 < m)
23394 break;
23395 }
23396 return 0;
cristy501c8042011-05-26 17:46:28 +000023397 ;
23398 return 0;
23399}
23400_ACEOF
23401if ac_fn_c_try_run "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000023402
cristy501c8042011-05-26 17:46:28 +000023403else
23404 ac_cv_type_long_long_int=no
23405fi
23406rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23407 conftest.$ac_objext conftest.beam conftest.$ac_ext
23408fi
23409
cristy5ed9c6e2013-07-14 21:20:31 +000023410 fi
cristy045228a2013-06-23 11:00:16 +000023411 fi
cristy501c8042011-05-26 17:46:28 +000023412fi
23413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
23414$as_echo "$ac_cv_type_long_long_int" >&6; }
23415 if test $ac_cv_type_long_long_int = yes; then
23416
23417$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
23418
23419 fi
23420
23421
23422
23423 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
23424if test "x$ac_cv_type_intmax_t" = xyes; then :
23425
23426$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
23427
23428else
23429 test $ac_cv_type_long_long_int = yes \
23430 && ac_type='long long int' \
23431 || ac_type='long int'
23432
23433cat >>confdefs.h <<_ACEOF
23434#define intmax_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000023435_ACEOF
23436
23437fi
23438
23439
cristy501c8042011-05-26 17:46:28 +000023440
23441 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
23442if test "x$ac_cv_type_intptr_t" = xyes; then :
23443
23444$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023445
cristy3ed852e2009-09-05 21:47:34 +000023446else
cristy501c8042011-05-26 17:46:28 +000023447 for ac_type in 'int' 'long int' 'long long int'; do
23448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23449/* end confdefs.h. */
23450$ac_includes_default
23451int
23452main ()
23453{
23454static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
cristy14fefe52012-05-21 00:59:18 +000023455test_array [0] = 0;
23456return test_array [0];
cristy501c8042011-05-26 17:46:28 +000023457
23458 ;
23459 return 0;
23460}
23461_ACEOF
23462if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023463
23464cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000023465#define intptr_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000023466_ACEOF
23467
cristy501c8042011-05-26 17:46:28 +000023468 ac_type=
23469fi
23470rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23471 test -z "$ac_type" && break
23472 done
cristy3ed852e2009-09-05 21:47:34 +000023473fi
23474
23475
cristy3ed852e2009-09-05 21:47:34 +000023476
cristy501c8042011-05-26 17:46:28 +000023477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
23478$as_echo_n "checking for long double... " >&6; }
23479if ${ac_cv_type_long_double+:} false; then :
23480 $as_echo_n "(cached) " >&6
cristy3ed852e2009-09-05 21:47:34 +000023481else
cristy501c8042011-05-26 17:46:28 +000023482 if test "$GCC" = yes; then
23483 ac_cv_type_long_double=yes
23484 else
23485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23486/* end confdefs.h. */
23487/* The Stardent Vistra knows sizeof (long double), but does
23488 not support it. */
23489 long double foo = 0.0L;
23490int
23491main ()
23492{
23493static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
23494 sizeof (double) <= sizeof (long double))];
cristy14fefe52012-05-21 00:59:18 +000023495test_array [0] = 0;
23496return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000023497
cristy501c8042011-05-26 17:46:28 +000023498 ;
23499 return 0;
23500}
cristy3ed852e2009-09-05 21:47:34 +000023501_ACEOF
cristy501c8042011-05-26 17:46:28 +000023502if ac_fn_c_try_compile "$LINENO"; then :
23503 ac_cv_type_long_double=yes
cristy3ed852e2009-09-05 21:47:34 +000023504else
cristy501c8042011-05-26 17:46:28 +000023505 ac_cv_type_long_double=no
cristy3ed852e2009-09-05 21:47:34 +000023506fi
cristy501c8042011-05-26 17:46:28 +000023507rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23508 fi
cristy3ed852e2009-09-05 21:47:34 +000023509fi
cristy501c8042011-05-26 17:46:28 +000023510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
23511$as_echo "$ac_cv_type_long_double" >&6; }
23512 if test $ac_cv_type_long_double = yes; then
cristy3ed852e2009-09-05 21:47:34 +000023513
cristy501c8042011-05-26 17:46:28 +000023514$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023515
cristy501c8042011-05-26 17:46:28 +000023516 fi
23517
cristy3ed852e2009-09-05 21:47:34 +000023518
cristy8b350f62009-11-15 23:12:43 +000023519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double with more range or precision than double" >&5
cristy3ed852e2009-09-05 21:47:34 +000023520$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023521if ${ac_cv_type_long_double_wider+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023522 $as_echo_n "(cached) " >&6
23523else
cristy8b350f62009-11-15 23:12:43 +000023524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023525/* end confdefs.h. */
23526#include <float.h>
23527 long double const a[] =
23528 {
23529 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
23530 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
23531 };
23532 long double
23533 f (long double x)
23534 {
23535 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
23536 + (x ? f (x) : 'c'));
23537 }
23538
23539int
23540main ()
23541{
23542static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
23543 + (DBL_MANT_DIG < LDBL_MANT_DIG)
23544 - (LDBL_MAX_EXP < DBL_MAX_EXP)
23545 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
23546 && (int) LDBL_EPSILON == 0
23547 )];
cristy14fefe52012-05-21 00:59:18 +000023548test_array [0] = 0;
23549return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000023550
23551 ;
23552 return 0;
23553}
23554_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023555if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023556 ac_cv_type_long_double_wider=yes
23557else
cristy8b350f62009-11-15 23:12:43 +000023558 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000023559fi
cristy3ed852e2009-09-05 21:47:34 +000023560rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23561fi
cristy8b350f62009-11-15 23:12:43 +000023562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000023563$as_echo "$ac_cv_type_long_double_wider" >&6; }
23564 if test $ac_cv_type_long_double_wider = yes; then
23565
cristy8b350f62009-11-15 23:12:43 +000023566$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023567
23568 fi
23569
23570
cristy045228a2013-06-23 11:00:16 +000023571
cristy501c8042011-05-26 17:46:28 +000023572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
23573$as_echo_n "checking for long long int... " >&6; }
23574if ${ac_cv_type_long_long_int+:} false; then :
23575 $as_echo_n "(cached) " >&6
23576else
cristy501c8042011-05-26 17:46:28 +000023577 ac_cv_type_long_long_int=yes
cristy045228a2013-06-23 11:00:16 +000023578 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
cristy5ed9c6e2013-07-14 21:20:31 +000023579 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
23580 if test $ac_cv_type_long_long_int = yes; then
23581 if test "$cross_compiling" = yes; then :
cristy045228a2013-06-23 11:00:16 +000023582 :
cristy501c8042011-05-26 17:46:28 +000023583else
23584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23585/* end confdefs.h. */
23586#include <limits.h>
cristy5ed9c6e2013-07-14 21:20:31 +000023587 #ifndef LLONG_MAX
23588 # define HALF \
23589 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
23590 # define LLONG_MAX (HALF - 1 + HALF)
23591 #endif
cristy501c8042011-05-26 17:46:28 +000023592int
23593main ()
23594{
23595long long int n = 1;
cristy5ed9c6e2013-07-14 21:20:31 +000023596 int i;
23597 for (i = 0; ; i++)
23598 {
23599 long long int m = n << i;
23600 if (m >> i != n)
23601 return 1;
23602 if (LLONG_MAX / 2 < m)
23603 break;
23604 }
23605 return 0;
cristy501c8042011-05-26 17:46:28 +000023606 ;
23607 return 0;
23608}
23609_ACEOF
23610if ac_fn_c_try_run "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000023611
cristy501c8042011-05-26 17:46:28 +000023612else
23613 ac_cv_type_long_long_int=no
23614fi
23615rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23616 conftest.$ac_objext conftest.beam conftest.$ac_ext
23617fi
23618
cristy5ed9c6e2013-07-14 21:20:31 +000023619 fi
cristy045228a2013-06-23 11:00:16 +000023620 fi
cristy501c8042011-05-26 17:46:28 +000023621fi
23622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
23623$as_echo "$ac_cv_type_long_long_int" >&6; }
23624 if test $ac_cv_type_long_long_int = yes; then
23625
23626$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
23627
23628 fi
23629
23630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
23631$as_echo_n "checking for mbstate_t... " >&6; }
23632if ${ac_cv_type_mbstate_t+:} false; then :
23633 $as_echo_n "(cached) " >&6
23634else
23635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23636/* end confdefs.h. */
23637$ac_includes_default
23638# include <wchar.h>
23639int
23640main ()
23641{
23642mbstate_t x; return sizeof x;
23643 ;
23644 return 0;
23645}
23646_ACEOF
23647if ac_fn_c_try_compile "$LINENO"; then :
23648 ac_cv_type_mbstate_t=yes
23649else
23650 ac_cv_type_mbstate_t=no
23651fi
23652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23653fi
23654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
23655$as_echo "$ac_cv_type_mbstate_t" >&6; }
23656 if test $ac_cv_type_mbstate_t = yes; then
23657
23658$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
23659
23660 else
23661
23662$as_echo "#define mbstate_t int" >>confdefs.h
23663
23664 fi
23665ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
23666if test "x$ac_cv_type_mode_t" = xyes; then :
23667
23668else
23669
23670cat >>confdefs.h <<_ACEOF
23671#define mode_t int
23672_ACEOF
23673
23674fi
23675
23676ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
23677if test "x$ac_cv_type_off_t" = xyes; then :
23678
23679else
23680
23681cat >>confdefs.h <<_ACEOF
23682#define off_t long int
23683_ACEOF
23684
23685fi
23686
23687ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
23688if test "x$ac_cv_type_pid_t" = xyes; then :
23689
23690else
23691
23692cat >>confdefs.h <<_ACEOF
23693#define pid_t int
23694_ACEOF
23695
23696fi
23697
23698ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
23699if test "x$ac_cv_type_size_t" = xyes; then :
23700
23701else
23702
23703cat >>confdefs.h <<_ACEOF
23704#define size_t unsigned int
23705_ACEOF
23706
23707fi
23708
23709ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
23710if test "x$ac_cv_type_ssize_t" = xyes; then :
23711
23712else
23713
23714cat >>confdefs.h <<_ACEOF
23715#define ssize_t int
23716_ACEOF
23717
23718fi
23719
23720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
23721$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
23722if ${ac_cv_type_uid_t+:} false; then :
23723 $as_echo_n "(cached) " >&6
23724else
23725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23726/* end confdefs.h. */
23727#include <sys/types.h>
23728
23729_ACEOF
23730if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23731 $EGREP "uid_t" >/dev/null 2>&1; then :
23732 ac_cv_type_uid_t=yes
23733else
23734 ac_cv_type_uid_t=no
23735fi
23736rm -f conftest*
23737
23738fi
23739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
23740$as_echo "$ac_cv_type_uid_t" >&6; }
23741if test $ac_cv_type_uid_t = no; then
23742
23743$as_echo "#define uid_t int" >>confdefs.h
23744
23745
23746$as_echo "#define gid_t int" >>confdefs.h
23747
23748fi
23749
23750ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
23751case $ac_cv_c_uint8_t in #(
23752 no|yes) ;; #(
23753 *)
23754
23755$as_echo "#define _UINT8_T 1" >>confdefs.h
23756
23757
23758cat >>confdefs.h <<_ACEOF
23759#define uint8_t $ac_cv_c_uint8_t
23760_ACEOF
23761;;
23762 esac
23763
23764ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
23765case $ac_cv_c_uint16_t in #(
23766 no|yes) ;; #(
23767 *)
23768
23769
23770cat >>confdefs.h <<_ACEOF
23771#define uint16_t $ac_cv_c_uint16_t
23772_ACEOF
23773;;
23774 esac
23775
23776ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
23777case $ac_cv_c_uint32_t in #(
23778 no|yes) ;; #(
23779 *)
23780
23781$as_echo "#define _UINT32_T 1" >>confdefs.h
23782
23783
23784cat >>confdefs.h <<_ACEOF
23785#define uint32_t $ac_cv_c_uint32_t
23786_ACEOF
23787;;
23788 esac
23789
23790ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
23791case $ac_cv_c_uint64_t in #(
23792 no|yes) ;; #(
23793 *)
23794
23795$as_echo "#define _UINT64_T 1" >>confdefs.h
23796
23797
23798cat >>confdefs.h <<_ACEOF
23799#define uint64_t $ac_cv_c_uint64_t
23800_ACEOF
23801;;
23802 esac
23803
23804
cristy501c8042011-05-26 17:46:28 +000023805
23806 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
23807if test "x$ac_cv_type_uintmax_t" = xyes; then :
23808
23809$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
23810
23811else
23812 test $ac_cv_type_unsigned_long_long_int = yes \
23813 && ac_type='unsigned long long int' \
23814 || ac_type='unsigned long int'
23815
23816cat >>confdefs.h <<_ACEOF
23817#define uintmax_t $ac_type
23818_ACEOF
23819
23820fi
23821
23822
23823
23824 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
23825if test "x$ac_cv_type_uintptr_t" = xyes; then :
23826
23827$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
23828
23829else
23830 for ac_type in 'unsigned int' 'unsigned long int' \
23831 'unsigned long long int'; do
23832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23833/* end confdefs.h. */
23834$ac_includes_default
23835int
23836main ()
23837{
23838static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
cristy14fefe52012-05-21 00:59:18 +000023839test_array [0] = 0;
23840return test_array [0];
cristy501c8042011-05-26 17:46:28 +000023841
23842 ;
23843 return 0;
23844}
23845_ACEOF
23846if ac_fn_c_try_compile "$LINENO"; then :
23847
23848cat >>confdefs.h <<_ACEOF
23849#define uintptr_t $ac_type
23850_ACEOF
23851
23852 ac_type=
23853fi
23854rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23855 test -z "$ac_type" && break
23856 done
23857fi
23858
23859
23860
23861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23862$as_echo_n "checking for unsigned long long int... " >&6; }
23863if ${ac_cv_type_unsigned_long_long_int+:} false; then :
23864 $as_echo_n "(cached) " >&6
23865else
cristy045228a2013-06-23 11:00:16 +000023866 ac_cv_type_unsigned_long_long_int=yes
23867 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
23868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy501c8042011-05-26 17:46:28 +000023869/* end confdefs.h. */
23870
23871 /* For now, do not test the preprocessor; as of 2007 there are too many
cristy5ed9c6e2013-07-14 21:20:31 +000023872 implementations with broken preprocessors. Perhaps this can
23873 be revisited in 2012. In the meantime, code should not expect
23874 #if to work with literals wider than 32 bits. */
cristy501c8042011-05-26 17:46:28 +000023875 /* Test literals. */
23876 long long int ll = 9223372036854775807ll;
23877 long long int nll = -9223372036854775807LL;
23878 unsigned long long int ull = 18446744073709551615ULL;
23879 /* Test constant expressions. */
23880 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
cristy5ed9c6e2013-07-14 21:20:31 +000023881 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000023882 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
cristy5ed9c6e2013-07-14 21:20:31 +000023883 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000023884 int i = 63;
23885int
23886main ()
23887{
23888/* Test availability of runtime routines for shift and division. */
23889 long long int llmax = 9223372036854775807ll;
23890 unsigned long long int ullmax = 18446744073709551615ull;
23891 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
cristy5ed9c6e2013-07-14 21:20:31 +000023892 | (llmax / ll) | (llmax % ll)
23893 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23894 | (ullmax / ull) | (ullmax % ull));
cristy501c8042011-05-26 17:46:28 +000023895 ;
23896 return 0;
23897}
23898
23899_ACEOF
23900if ac_fn_c_try_link "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000023901
cristy501c8042011-05-26 17:46:28 +000023902else
23903 ac_cv_type_unsigned_long_long_int=no
23904fi
23905rm -f core conftest.err conftest.$ac_objext \
23906 conftest$ac_exeext conftest.$ac_ext
cristy045228a2013-06-23 11:00:16 +000023907 fi
cristy501c8042011-05-26 17:46:28 +000023908fi
23909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23910$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23911 if test $ac_cv_type_unsigned_long_long_int = yes; then
23912
23913$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23914
23915 fi
23916
23917
cristy708922a2015-05-17 02:33:56 +000023918ac_fn_c_check_type "$LINENO" "locale_t" "ac_cv_type_locale_t" "#include <xlocale.h>
23919"
cristy98beafc2015-05-14 19:55:55 +000023920if test "x$ac_cv_type_locale_t" = xyes; then :
23921
23922cat >>confdefs.h <<_ACEOF
23923#define HAVE_LOCALE_T 1
23924_ACEOF
23925
23926
23927fi
23928
23929
cristyfec31822013-05-23 12:32:12 +000023930# Float_t and double_t are intended to be the the most efficient type.
23931ac_fn_c_check_type "$LINENO" "float_t" "ac_cv_type_float_t" "#include <math.h>
23932"
23933if test "x$ac_cv_type_float_t" = xyes; then :
23934
23935cat >>confdefs.h <<_ACEOF
23936#define HAVE_FLOAT_T 1
23937_ACEOF
23938
23939
23940fi
23941
23942ac_fn_c_check_type "$LINENO" "double_t" "ac_cv_type_double_t" "#include <math.h>
23943"
23944if test "x$ac_cv_type_double_t" = xyes; then :
23945
23946cat >>confdefs.h <<_ACEOF
23947#define HAVE_DOUBLE_T 1
23948_ACEOF
23949
23950
23951fi
23952
23953# The cast to long int works around a bug in the HP C Compiler
23954# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23955# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23956# This bug is HP SR number 8606223364.
23957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float_t" >&5
23958$as_echo_n "checking size of float_t... " >&6; }
23959if ${ac_cv_sizeof_float_t+:} false; then :
23960 $as_echo_n "(cached) " >&6
23961else
23962 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float_t))" "ac_cv_sizeof_float_t" "#include <math.h>
23963"; then :
23964
23965else
23966 if test "$ac_cv_type_float_t" = yes; then
23967 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23968$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23969as_fn_error 77 "cannot compute sizeof (float_t)
23970See \`config.log' for more details" "$LINENO" 5; }
23971 else
23972 ac_cv_sizeof_float_t=0
23973 fi
23974fi
23975
23976fi
23977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float_t" >&5
23978$as_echo "$ac_cv_sizeof_float_t" >&6; }
23979
23980
23981
23982cat >>confdefs.h <<_ACEOF
23983#define SIZEOF_FLOAT_T $ac_cv_sizeof_float_t
23984_ACEOF
23985
23986
23987# The cast to long int works around a bug in the HP C Compiler
23988# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23989# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23990# This bug is HP SR number 8606223364.
23991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double_t" >&5
23992$as_echo_n "checking size of double_t... " >&6; }
23993if ${ac_cv_sizeof_double_t+:} false; then :
23994 $as_echo_n "(cached) " >&6
23995else
23996 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double_t))" "ac_cv_sizeof_double_t" "#include <math.h>
23997"; then :
23998
23999else
24000 if test "$ac_cv_type_double_t" = yes; then
24001 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24002$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24003as_fn_error 77 "cannot compute sizeof (double_t)
24004See \`config.log' for more details" "$LINENO" 5; }
24005 else
24006 ac_cv_sizeof_double_t=0
24007 fi
24008fi
24009
24010fi
24011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double_t" >&5
24012$as_echo "$ac_cv_sizeof_double_t" >&6; }
24013
24014
24015
24016cat >>confdefs.h <<_ACEOF
24017#define SIZEOF_DOUBLE_T $ac_cv_sizeof_double_t
24018_ACEOF
24019
24020
24021
cristy9b86f202012-11-28 21:55:35 +000024022# Get size of float, double and long double for comparaison.
24023# The cast to long int works around a bug in the HP C Compiler
24024# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24025# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24026# This bug is HP SR number 8606223364.
24027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
24028$as_echo_n "checking size of float... " >&6; }
24029if ${ac_cv_sizeof_float+:} false; then :
24030 $as_echo_n "(cached) " >&6
24031else
24032 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then :
24033
24034else
24035 if test "$ac_cv_type_float" = yes; then
24036 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24037$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24038as_fn_error 77 "cannot compute sizeof (float)
24039See \`config.log' for more details" "$LINENO" 5; }
24040 else
24041 ac_cv_sizeof_float=0
24042 fi
24043fi
24044
24045fi
24046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
24047$as_echo "$ac_cv_sizeof_float" >&6; }
24048
24049
24050
24051cat >>confdefs.h <<_ACEOF
24052#define SIZEOF_FLOAT $ac_cv_sizeof_float
24053_ACEOF
24054
24055
24056# The cast to long int works around a bug in the HP C Compiler
24057# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24058# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24059# This bug is HP SR number 8606223364.
24060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
24061$as_echo_n "checking size of double... " >&6; }
24062if ${ac_cv_sizeof_double+:} false; then :
24063 $as_echo_n "(cached) " >&6
24064else
24065 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
24066
24067else
24068 if test "$ac_cv_type_double" = yes; then
24069 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24070$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24071as_fn_error 77 "cannot compute sizeof (double)
24072See \`config.log' for more details" "$LINENO" 5; }
24073 else
24074 ac_cv_sizeof_double=0
24075 fi
24076fi
24077
24078fi
24079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
24080$as_echo "$ac_cv_sizeof_double" >&6; }
24081
24082
24083
24084cat >>confdefs.h <<_ACEOF
24085#define SIZEOF_DOUBLE $ac_cv_sizeof_double
24086_ACEOF
24087
24088
cristy9e2b6242014-03-25 11:49:41 +000024089# The cast to long int works around a bug in the HP C Compiler
cristyfec31822013-05-23 12:32:12 +000024090# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24091# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24092# This bug is HP SR number 8606223364.
24093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
24094$as_echo_n "checking size of long double... " >&6; }
24095if ${ac_cv_sizeof_long_double+:} false; then :
24096 $as_echo_n "(cached) " >&6
24097else
24098 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
24099
24100else
24101 if test "$ac_cv_type_long_double" = yes; then
24102 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24103$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24104as_fn_error 77 "cannot compute sizeof (long double)
24105See \`config.log' for more details" "$LINENO" 5; }
24106 else
24107 ac_cv_sizeof_long_double=0
24108 fi
24109fi
24110
24111fi
24112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
24113$as_echo "$ac_cv_sizeof_long_double" >&6; }
24114
24115
24116
24117cat >>confdefs.h <<_ACEOF
24118#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
24119_ACEOF
24120
24121
cristyf0cf9a22012-10-24 12:05:01 +000024122
cristy3ed852e2009-09-05 21:47:34 +000024123# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
24124# The cast to long int works around a bug in the HP C Compiler
24125# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24126# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24127# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000024129$as_echo_n "checking size of signed short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024130if ${ac_cv_sizeof_signed_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024131 $as_echo_n "(cached) " >&6
24132else
cristy8b350f62009-11-15 23:12:43 +000024133 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed short))" "ac_cv_sizeof_signed_short" "$ac_includes_default"; then :
cristy3ed852e2009-09-05 21:47:34 +000024134
cristy3ed852e2009-09-05 21:47:34 +000024135else
cristy8b350f62009-11-15 23:12:43 +000024136 if test "$ac_cv_type_signed_short" = yes; then
24137 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024138$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024139as_fn_error 77 "cannot compute sizeof (signed short)
24140See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024141 else
24142 ac_cv_sizeof_signed_short=0
24143 fi
24144fi
cristy8b350f62009-11-15 23:12:43 +000024145
cristy3ed852e2009-09-05 21:47:34 +000024146fi
cristy8b350f62009-11-15 23:12:43 +000024147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000024148$as_echo "$ac_cv_sizeof_signed_short" >&6; }
24149
24150
24151
24152cat >>confdefs.h <<_ACEOF
24153#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
24154_ACEOF
24155
24156
24157
24158# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
24159# The cast to long int works around a bug in the HP C Compiler
24160# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24161# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24162# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000024164$as_echo_n "checking size of unsigned short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024165if ${ac_cv_sizeof_unsigned_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024166 $as_echo_n "(cached) " >&6
24167else
cristy8b350f62009-11-15 23:12:43 +000024168 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short" "$ac_includes_default"; then :
cristy3ed852e2009-09-05 21:47:34 +000024169
cristy3ed852e2009-09-05 21:47:34 +000024170else
cristy8b350f62009-11-15 23:12:43 +000024171 if test "$ac_cv_type_unsigned_short" = yes; then
24172 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024173$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024174as_fn_error 77 "cannot compute sizeof (unsigned short)
24175See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024176 else
24177 ac_cv_sizeof_unsigned_short=0
24178 fi
24179fi
cristy8b350f62009-11-15 23:12:43 +000024180
cristy3ed852e2009-09-05 21:47:34 +000024181fi
cristy8b350f62009-11-15 23:12:43 +000024182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000024183$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
24184
24185
24186
24187cat >>confdefs.h <<_ACEOF
24188#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
24189_ACEOF
24190
24191
24192
24193# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
24194# The cast to long int works around a bug in the HP C Compiler
24195# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24196# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24197# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000024199$as_echo_n "checking size of signed int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024200if ${ac_cv_sizeof_signed_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024201 $as_echo_n "(cached) " >&6
24202else
cristy8b350f62009-11-15 23:12:43 +000024203 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed int))" "ac_cv_sizeof_signed_int" "$ac_includes_default"; then :
cristy3ed852e2009-09-05 21:47:34 +000024204
cristy3ed852e2009-09-05 21:47:34 +000024205else
cristy8b350f62009-11-15 23:12:43 +000024206 if test "$ac_cv_type_signed_int" = yes; then
24207 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024208$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024209as_fn_error 77 "cannot compute sizeof (signed int)
24210See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024211 else
24212 ac_cv_sizeof_signed_int=0
24213 fi
24214fi
cristy8b350f62009-11-15 23:12:43 +000024215
cristy3ed852e2009-09-05 21:47:34 +000024216fi
cristy8b350f62009-11-15 23:12:43 +000024217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000024218$as_echo "$ac_cv_sizeof_signed_int" >&6; }
24219
24220
24221
24222cat >>confdefs.h <<_ACEOF
24223#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
24224_ACEOF
24225
24226
24227
24228# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
24229# The cast to long int works around a bug in the HP C Compiler
24230# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24231# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24232# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000024234$as_echo_n "checking size of unsigned int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024235if ${ac_cv_sizeof_unsigned_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024236 $as_echo_n "(cached) " >&6
24237else
cristy8b350f62009-11-15 23:12:43 +000024238 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then :
cristy3ed852e2009-09-05 21:47:34 +000024239
cristy3ed852e2009-09-05 21:47:34 +000024240else
cristy8b350f62009-11-15 23:12:43 +000024241 if test "$ac_cv_type_unsigned_int" = yes; then
24242 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024243$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024244as_fn_error 77 "cannot compute sizeof (unsigned int)
24245See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024246 else
24247 ac_cv_sizeof_unsigned_int=0
24248 fi
24249fi
cristy8b350f62009-11-15 23:12:43 +000024250
cristy3ed852e2009-09-05 21:47:34 +000024251fi
cristy8b350f62009-11-15 23:12:43 +000024252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000024253$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
24254
24255
24256
24257cat >>confdefs.h <<_ACEOF
24258#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
24259_ACEOF
24260
24261
24262
24263# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
24264# The cast to long int works around a bug in the HP C Compiler
24265# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24266# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24267# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024269$as_echo_n "checking size of signed long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024270if ${ac_cv_sizeof_signed_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024271 $as_echo_n "(cached) " >&6
24272else
cristy8b350f62009-11-15 23:12:43 +000024273 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long))" "ac_cv_sizeof_signed_long" "$ac_includes_default"; then :
cristy3ed852e2009-09-05 21:47:34 +000024274
cristy3ed852e2009-09-05 21:47:34 +000024275else
cristy8b350f62009-11-15 23:12:43 +000024276 if test "$ac_cv_type_signed_long" = yes; then
24277 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024278$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024279as_fn_error 77 "cannot compute sizeof (signed long)
24280See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024281 else
24282 ac_cv_sizeof_signed_long=0
24283 fi
24284fi
cristy8b350f62009-11-15 23:12:43 +000024285
cristy3ed852e2009-09-05 21:47:34 +000024286fi
cristy8b350f62009-11-15 23:12:43 +000024287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024288$as_echo "$ac_cv_sizeof_signed_long" >&6; }
24289
24290
24291
24292cat >>confdefs.h <<_ACEOF
24293#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
24294_ACEOF
24295
24296
24297
24298# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
24299# The cast to long int works around a bug in the HP C Compiler
24300# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24301# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24302# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024304$as_echo_n "checking size of unsigned long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024305if ${ac_cv_sizeof_unsigned_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024306 $as_echo_n "(cached) " >&6
24307else
cristy8b350f62009-11-15 23:12:43 +000024308 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
cristy3ed852e2009-09-05 21:47:34 +000024309
cristy3ed852e2009-09-05 21:47:34 +000024310else
cristy8b350f62009-11-15 23:12:43 +000024311 if test "$ac_cv_type_unsigned_long" = yes; then
24312 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024313$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024314as_fn_error 77 "cannot compute sizeof (unsigned long)
24315See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024316 else
24317 ac_cv_sizeof_unsigned_long=0
24318 fi
24319fi
cristy8b350f62009-11-15 23:12:43 +000024320
cristy3ed852e2009-09-05 21:47:34 +000024321fi
cristy8b350f62009-11-15 23:12:43 +000024322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024323$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
24324
24325
24326
24327cat >>confdefs.h <<_ACEOF
24328#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
24329_ACEOF
24330
24331
24332
24333# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
24334# 'signed long long' is not supported then the value defined is zero.
24335# The cast to long int works around a bug in the HP C Compiler
24336# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24337# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24338# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024340$as_echo_n "checking size of signed long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024341if ${ac_cv_sizeof_signed_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024342 $as_echo_n "(cached) " >&6
24343else
cristy8b350f62009-11-15 23:12:43 +000024344 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long long))" "ac_cv_sizeof_signed_long_long" "$ac_includes_default"; then :
cristy3ed852e2009-09-05 21:47:34 +000024345
cristy3ed852e2009-09-05 21:47:34 +000024346else
cristy8b350f62009-11-15 23:12:43 +000024347 if test "$ac_cv_type_signed_long_long" = yes; then
24348 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024349$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024350as_fn_error 77 "cannot compute sizeof (signed long long)
24351See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024352 else
24353 ac_cv_sizeof_signed_long_long=0
24354 fi
24355fi
cristy8b350f62009-11-15 23:12:43 +000024356
cristy3ed852e2009-09-05 21:47:34 +000024357fi
cristy8b350f62009-11-15 23:12:43 +000024358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024359$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
24360
24361
24362
24363cat >>confdefs.h <<_ACEOF
24364#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
24365_ACEOF
24366
24367
24368
24369# Obtain size of a 'unsigned long long' and define as
24370# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
24371# supported then the value defined is zero.
24372# The cast to long int works around a bug in the HP C Compiler
24373# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24374# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24375# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024377$as_echo_n "checking size of unsigned long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024378if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024379 $as_echo_n "(cached) " >&6
24380else
cristy8b350f62009-11-15 23:12:43 +000024381 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
cristy3ed852e2009-09-05 21:47:34 +000024382
cristy3ed852e2009-09-05 21:47:34 +000024383else
cristy8b350f62009-11-15 23:12:43 +000024384 if test "$ac_cv_type_unsigned_long_long" = yes; then
24385 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024386$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024387as_fn_error 77 "cannot compute sizeof (unsigned long long)
24388See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024389 else
24390 ac_cv_sizeof_unsigned_long_long=0
24391 fi
24392fi
cristy8b350f62009-11-15 23:12:43 +000024393
cristy3ed852e2009-09-05 21:47:34 +000024394fi
cristy8b350f62009-11-15 23:12:43 +000024395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024396$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
24397
24398
24399
24400cat >>confdefs.h <<_ACEOF
24401#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
24402_ACEOF
24403
24404
24405
cristyfec31822013-05-23 12:32:12 +000024406# Obtain size of off_t and define as SIZEOF_OFF_T
24407# The cast to long int works around a bug in the HP C Compiler
24408# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24409# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24410# This bug is HP SR number 8606223364.
24411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
24412$as_echo_n "checking size of off_t... " >&6; }
24413if ${ac_cv_sizeof_off_t+:} false; then :
24414 $as_echo_n "(cached) " >&6
24415else
24416 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
24417
24418else
24419 if test "$ac_cv_type_off_t" = yes; then
24420 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24421$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24422as_fn_error 77 "cannot compute sizeof (off_t)
24423See \`config.log' for more details" "$LINENO" 5; }
24424 else
24425 ac_cv_sizeof_off_t=0
24426 fi
24427fi
24428
24429fi
24430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
24431$as_echo "$ac_cv_sizeof_off_t" >&6; }
24432
24433
24434
24435cat >>confdefs.h <<_ACEOF
24436#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
24437_ACEOF
24438
24439
24440
24441# Obtain size of size_t and define as SIZEOF_SIZE_T
24442# The cast to long int works around a bug in the HP C Compiler
24443# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24444# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24445# This bug is HP SR number 8606223364.
24446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
24447$as_echo_n "checking size of size_t... " >&6; }
24448if ${ac_cv_sizeof_size_t+:} false; then :
24449 $as_echo_n "(cached) " >&6
24450else
24451 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
24452
24453else
24454 if test "$ac_cv_type_size_t" = yes; then
24455 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24456$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24457as_fn_error 77 "cannot compute sizeof (size_t)
24458See \`config.log' for more details" "$LINENO" 5; }
24459 else
24460 ac_cv_sizeof_size_t=0
24461 fi
24462fi
24463
24464fi
24465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
24466$as_echo "$ac_cv_sizeof_size_t" >&6; }
24467
24468
24469
24470cat >>confdefs.h <<_ACEOF
24471#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
24472_ACEOF
24473
24474
24475
24476# Obtain size of ssize_t and define as SIZEOF_SSIZE_T
24477# The cast to long int works around a bug in the HP C Compiler
24478# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24479# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24480# This bug is HP SR number 8606223364.
24481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
24482$as_echo_n "checking size of ssize_t... " >&6; }
24483if ${ac_cv_sizeof_ssize_t+:} false; then :
24484 $as_echo_n "(cached) " >&6
24485else
24486 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
24487
24488else
24489 if test "$ac_cv_type_ssize_t" = yes; then
24490 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24491$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24492as_fn_error 77 "cannot compute sizeof (ssize_t)
24493See \`config.log' for more details" "$LINENO" 5; }
24494 else
24495 ac_cv_sizeof_ssize_t=0
24496 fi
24497fi
24498
24499fi
24500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
24501$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
24502
24503
24504
24505cat >>confdefs.h <<_ACEOF
24506#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
24507_ACEOF
24508
24509
24510
cristy3ed852e2009-09-05 21:47:34 +000024511# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
24512# The cast to long int works around a bug in the HP C Compiler
24513# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24514# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24515# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000024517$as_echo_n "checking size of unsigned int*... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024518if ${ac_cv_sizeof_unsigned_intp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024519 $as_echo_n "(cached) " >&6
24520else
cristy8b350f62009-11-15 23:12:43 +000024521 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int*))" "ac_cv_sizeof_unsigned_intp" "$ac_includes_default"; then :
cristy3ed852e2009-09-05 21:47:34 +000024522
cristy3ed852e2009-09-05 21:47:34 +000024523else
cristy8b350f62009-11-15 23:12:43 +000024524 if test "$ac_cv_type_unsigned_intp" = yes; then
24525 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024526$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024527as_fn_error 77 "cannot compute sizeof (unsigned int*)
24528See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024529 else
24530 ac_cv_sizeof_unsigned_intp=0
24531 fi
24532fi
cristy8b350f62009-11-15 23:12:43 +000024533
cristy3ed852e2009-09-05 21:47:34 +000024534fi
cristy8b350f62009-11-15 23:12:43 +000024535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024536$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
24537
24538
24539
24540cat >>confdefs.h <<_ACEOF
24541#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
24542_ACEOF
24543
24544
24545
24546#
24547# Compute sized types for current CPU and compiler options.
24548#
24549
cristy8b350f62009-11-15 23:12:43 +000024550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024551$as_echo_n "checking for signed 8-bit type... " >&6; }
24552INT8_T='signed char'
cristyad38abe2012-12-23 23:03:21 +000024553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
24554$as_echo "$INT8_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024555
24556
cristy8b350f62009-11-15 23:12:43 +000024557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024558$as_echo_n "checking for unsigned 8-bit type... " >&6; }
24559UINT8_T='unsigned char'
cristyad38abe2012-12-23 23:03:21 +000024560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
24561$as_echo "$UINT8_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024562
24563
cristy8b350f62009-11-15 23:12:43 +000024564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024565$as_echo_n "checking for signed 16-bit type... " >&6; }
24566INT16_T='signed short'
cristyad38abe2012-12-23 23:03:21 +000024567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
24568$as_echo "$INT16_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024569
24570
cristy8b350f62009-11-15 23:12:43 +000024571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024572$as_echo_n "checking for unsigned 16-bit type... " >&6; }
24573UINT16_T='unsigned short'
cristyad38abe2012-12-23 23:03:21 +000024574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
24575$as_echo "$UINT16_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024576
24577
cristy8b350f62009-11-15 23:12:43 +000024578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024579$as_echo_n "checking for signed 32-bit type... " >&6; }
24580INT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024581INT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024582if test $ac_cv_sizeof_signed_int -eq 4; then
24583 INT32_T='signed int'
cristy6d5e20f2011-04-25 13:48:54 +000024584 INT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000024585elif test $ac_cv_sizeof_signed_long -eq 4; then
24586 INT32_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000024587 INT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024588fi
cristyad38abe2012-12-23 23:03:21 +000024589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
24590$as_echo "$INT32_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024591
24592
cristy6d5e20f2011-04-25 13:48:54 +000024593
cristy8b350f62009-11-15 23:12:43 +000024594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024595$as_echo_n "checking for unsigned 32-bit type... " >&6; }
24596UINT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024597UINT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024598if test $ac_cv_sizeof_unsigned_int -eq 4; then
24599 UINT32_T='unsigned int'
cristy6d5e20f2011-04-25 13:48:54 +000024600 UINT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000024601elif test $ac_cv_sizeof_unsigned_long -eq 4; then
24602 UINT32_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000024603 UINT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024604fi
cristyad38abe2012-12-23 23:03:21 +000024605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
24606$as_echo "$UINT32_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024607
24608
cristy6d5e20f2011-04-25 13:48:54 +000024609
cristy8b350f62009-11-15 23:12:43 +000024610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024611$as_echo_n "checking for signed 64-bit type... " >&6; }
24612INT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024613INT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024614if test $ac_cv_sizeof_signed_long -eq 8; then
24615 INT64_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000024616 INT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024617elif test $ac_cv_sizeof_signed_long_long -eq 8; then
24618 INT64_T='signed long long'
cristy6d5e20f2011-04-25 13:48:54 +000024619 INT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000024620fi
cristy3a99dcf2011-12-17 01:29:40 +000024621case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000024622 mingw* )
24623 INT64_F='"I64"'
24624 ;;
24625esac
cristyad38abe2012-12-23 23:03:21 +000024626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
24627$as_echo "$INT64_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024628
24629
cristy6d5e20f2011-04-25 13:48:54 +000024630
cristy8b350f62009-11-15 23:12:43 +000024631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024632$as_echo_n "checking for unsigned 64-bit type... " >&6; }
24633UINT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024634UINT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024635if test $ac_cv_sizeof_unsigned_long -eq 8; then
24636 UINT64_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000024637 UINT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024638elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
24639 UINT64_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000024640 UINT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000024641fi
cristy3a99dcf2011-12-17 01:29:40 +000024642case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000024643 mingw* )
24644 UINT64_F='"I64"'
24645 ;;
24646esac
cristyad38abe2012-12-23 23:03:21 +000024647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
24648$as_echo "$UINT64_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024649
24650
cristy6d5e20f2011-04-25 13:48:54 +000024651
cristy8b350f62009-11-15 23:12:43 +000024652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024653$as_echo_n "checking for unsigned maximum type... " >&6; }
24654UINTMAX_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024655UINTMAX_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024656if test "$UINT64_T" != 'none'; then
24657 UINTMAX_T=$UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +000024658 UINTMAX_F=$UINT64_F
cristy3ed852e2009-09-05 21:47:34 +000024659elif test "$UINT32_T" != 'none'; then
24660 UINTMAX_T=$UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +000024661 UINTMAX_F=$UINT32_F
cristy3ed852e2009-09-05 21:47:34 +000024662fi
cristyad38abe2012-12-23 23:03:21 +000024663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5
24664$as_echo "$UINTMAX_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024665
24666
cristy6d5e20f2011-04-25 13:48:54 +000024667
cristy8b350f62009-11-15 23:12:43 +000024668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024669$as_echo_n "checking for pointer difference type... " >&6; }
24670UINTPTR_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024671UINTPTR_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024672if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
24673 UINTPTR_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000024674 UINTPTR_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024675elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
24676 UINTPTR_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000024677 UINTPTR_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000024678fi
cristyad38abe2012-12-23 23:03:21 +000024679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5
24680$as_echo "$UINTPTR_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024681
24682
cristy6d5e20f2011-04-25 13:48:54 +000024683
cristy8b350f62009-11-15 23:12:43 +000024684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000024685$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024686cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024687/* end confdefs.h. */
24688
24689int
24690main ()
24691{
24692{ const char *func = __func__; return(func != 0 ? 0 : 1); }
24693 ;
24694 return 0;
24695}
24696_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024697if ac_fn_c_try_compile "$LINENO"; then :
cristyad38abe2012-12-23 23:03:21 +000024698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24699$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024700else
cristyad38abe2012-12-23 23:03:21 +000024701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24702$as_echo "no" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000024704$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024706/* end confdefs.h. */
24707
24708int
24709main ()
24710{
24711{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
24712 ;
24713 return 0;
24714}
24715_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024716if ac_fn_c_try_compile "$LINENO"; then :
cristyad38abe2012-12-23 23:03:21 +000024717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24718$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024719
cristy8b350f62009-11-15 23:12:43 +000024720$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024721
24722else
cristyad38abe2012-12-23 23:03:21 +000024723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24724$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024725
cristy8b350f62009-11-15 23:12:43 +000024726$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024727
24728fi
cristy3ed852e2009-09-05 21:47:34 +000024729rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24730fi
cristy3ed852e2009-09-05 21:47:34 +000024731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24732
24733########
24734#
24735# Check for functions
24736#
24737########
cristy8b350f62009-11-15 23:12:43 +000024738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024739$as_echo_n "checking whether closedir returns void... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024740if ${ac_cv_func_closedir_void+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024741 $as_echo_n "(cached) " >&6
24742else
cristy8b350f62009-11-15 23:12:43 +000024743 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024744 ac_cv_func_closedir_void=yes
24745else
cristy8b350f62009-11-15 23:12:43 +000024746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024747/* end confdefs.h. */
24748$ac_includes_default
24749#include <$ac_header_dirent>
24750#ifndef __cplusplus
24751int closedir ();
24752#endif
24753
24754int
24755main ()
24756{
24757return closedir (opendir (".")) != 0;
24758 ;
24759 return 0;
24760}
24761_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024762if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024763 ac_cv_func_closedir_void=no
24764else
cristy8b350f62009-11-15 23:12:43 +000024765 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000024766fi
cristy8b350f62009-11-15 23:12:43 +000024767rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24768 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024769fi
24770
cristy3ed852e2009-09-05 21:47:34 +000024771fi
cristy8b350f62009-11-15 23:12:43 +000024772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024773$as_echo "$ac_cv_func_closedir_void" >&6; }
24774if test $ac_cv_func_closedir_void = yes; then
24775
cristy8b350f62009-11-15 23:12:43 +000024776$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024777
24778fi
24779
cristycd4c5312009-11-22 01:19:08 +000024780
24781
24782
24783 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000024784do :
24785 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000024786ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
24787"
cristy98dddb52010-11-04 00:30:15 +000024788if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024789 cat >>confdefs.h <<_ACEOF
24790#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24791_ACEOF
24792
24793fi
24794
24795done
24796
cristycd4c5312009-11-22 01:19:08 +000024797
24798
24799
24800
24801
24802
24803
cristy3ed852e2009-09-05 21:47:34 +000024804for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000024805do :
24806 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000024807if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024808 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024809#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000024810_ACEOF
24811
24812fi
24813done
24814
cristy8b350f62009-11-15 23:12:43 +000024815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000024816$as_echo_n "checking for working mmap... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024817if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024818 $as_echo_n "(cached) " >&6
24819else
cristy8b350f62009-11-15 23:12:43 +000024820 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024821 ac_cv_func_mmap_fixed_mapped=no
24822else
cristy8b350f62009-11-15 23:12:43 +000024823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024824/* end confdefs.h. */
24825$ac_includes_default
24826/* malloc might have been renamed as rpl_malloc. */
24827#undef malloc
24828
24829/* Thanks to Mike Haertel and Jim Avera for this test.
24830 Here is a matrix of mmap possibilities:
24831 mmap private not fixed
24832 mmap private fixed at somewhere currently unmapped
24833 mmap private fixed at somewhere already mapped
24834 mmap shared not fixed
24835 mmap shared fixed at somewhere currently unmapped
24836 mmap shared fixed at somewhere already mapped
24837 For private mappings, we should verify that changes cannot be read()
24838 back from the file, nor mmap's back from the file at a different
24839 address. (There have been systems where private was not correctly
24840 implemented like the infamous i386 svr4.0, and systems where the
24841 VM page cache was not coherent with the file system buffer cache
24842 like early versions of FreeBSD and possibly contemporary NetBSD.)
24843 For shared mappings, we should conversely verify that changes get
24844 propagated back to all the places they're supposed to be.
24845
24846 Grep wants private fixed already mapped.
24847 The main things grep needs to know about mmap are:
24848 * does it exist and is it safe to write into the mmap'd area
24849 * how to use it (BSD variants) */
24850
24851#include <fcntl.h>
24852#include <sys/mman.h>
24853
24854#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
24855char *malloc ();
24856#endif
24857
24858/* This mess was copied from the GNU getpagesize.h. */
24859#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000024860# ifdef _SC_PAGESIZE
24861# define getpagesize() sysconf(_SC_PAGESIZE)
24862# else /* no _SC_PAGESIZE */
24863# ifdef HAVE_SYS_PARAM_H
24864# include <sys/param.h>
24865# ifdef EXEC_PAGESIZE
24866# define getpagesize() EXEC_PAGESIZE
24867# else /* no EXEC_PAGESIZE */
24868# ifdef NBPG
24869# define getpagesize() NBPG * CLSIZE
24870# ifndef CLSIZE
24871# define CLSIZE 1
24872# endif /* no CLSIZE */
24873# else /* no NBPG */
24874# ifdef NBPC
24875# define getpagesize() NBPC
24876# else /* no NBPC */
24877# ifdef PAGESIZE
24878# define getpagesize() PAGESIZE
24879# endif /* PAGESIZE */
24880# endif /* no NBPC */
24881# endif /* no NBPG */
24882# endif /* no EXEC_PAGESIZE */
24883# else /* no HAVE_SYS_PARAM_H */
24884# define getpagesize() 8192 /* punt totally */
24885# endif /* no HAVE_SYS_PARAM_H */
24886# endif /* no _SC_PAGESIZE */
24887
24888#endif /* no HAVE_GETPAGESIZE */
24889
24890int
24891main ()
24892{
24893 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000024894 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000024895 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000024896 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000024897
24898 pagesize = getpagesize ();
24899
24900 /* First, make a file with some known garbage in it. */
24901 data = (char *) malloc (pagesize);
24902 if (!data)
24903 return 1;
24904 for (i = 0; i < pagesize; ++i)
24905 *(data + i) = rand ();
24906 umask (0);
24907 fd = creat ("conftest.mmap", 0600);
24908 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024909 return 2;
cristy3ed852e2009-09-05 21:47:34 +000024910 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024911 return 3;
cristy3ed852e2009-09-05 21:47:34 +000024912 close (fd);
24913
cristycd4c5312009-11-22 01:19:08 +000024914 /* Next, check that the tail of a page is zero-filled. File must have
24915 non-zero length, otherwise we risk SIGBUS for entire page. */
24916 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
24917 if (fd2 < 0)
24918 return 4;
cristyc54f5d42009-11-27 21:36:31 +000024919 cdata2 = "";
24920 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000024921 return 5;
cristyc54f5d42009-11-27 21:36:31 +000024922 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000024923 if (data2 == MAP_FAILED)
24924 return 6;
24925 for (i = 0; i < pagesize; ++i)
24926 if (*(data2 + i))
24927 return 7;
24928 close (fd2);
24929 if (munmap (data2, pagesize))
24930 return 8;
24931
cristy3ed852e2009-09-05 21:47:34 +000024932 /* Next, try to mmap the file at a fixed address which already has
24933 something else allocated at it. If we can, also make sure that
24934 we see the same garbage. */
24935 fd = open ("conftest.mmap", O_RDWR);
24936 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024937 return 9;
cristy3ed852e2009-09-05 21:47:34 +000024938 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
24939 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000024940 return 10;
cristy3ed852e2009-09-05 21:47:34 +000024941 for (i = 0; i < pagesize; ++i)
24942 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000024943 return 11;
cristy3ed852e2009-09-05 21:47:34 +000024944
24945 /* Finally, make sure that changes to the mapped area do not
24946 percolate back to the file as seen by read(). (This is a bug on
24947 some variants of i386 svr4.0.) */
24948 for (i = 0; i < pagesize; ++i)
24949 *(data2 + i) = *(data2 + i) + 1;
24950 data3 = (char *) malloc (pagesize);
24951 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000024952 return 12;
cristy3ed852e2009-09-05 21:47:34 +000024953 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024954 return 13;
cristy3ed852e2009-09-05 21:47:34 +000024955 for (i = 0; i < pagesize; ++i)
24956 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000024957 return 14;
cristy3ed852e2009-09-05 21:47:34 +000024958 close (fd);
24959 return 0;
24960}
24961_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024962if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024963 ac_cv_func_mmap_fixed_mapped=yes
24964else
cristy8b350f62009-11-15 23:12:43 +000024965 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000024966fi
cristy8b350f62009-11-15 23:12:43 +000024967rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24968 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024969fi
24970
cristy3ed852e2009-09-05 21:47:34 +000024971fi
cristy8b350f62009-11-15 23:12:43 +000024972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000024973$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
24974if test $ac_cv_func_mmap_fixed_mapped = yes; then
24975
cristy8b350f62009-11-15 23:12:43 +000024976$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024977
24978fi
cristycd4c5312009-11-22 01:19:08 +000024979rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000024980
cristy3ed852e2009-09-05 21:47:34 +000024981for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000024982do :
24983 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000024984if test "x$ac_cv_header_vfork_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024985 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024986#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000024987_ACEOF
24988
24989fi
24990
24991done
24992
cristy3ed852e2009-09-05 21:47:34 +000024993for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000024994do :
24995 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24996ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000024997if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024998 cat >>confdefs.h <<_ACEOF
24999#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25000_ACEOF
25001
25002fi
25003done
25004
25005if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000025006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000025007$as_echo_n "checking for working fork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025008if ${ac_cv_func_fork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025009 $as_echo_n "(cached) " >&6
25010else
cristy8b350f62009-11-15 23:12:43 +000025011 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025012 ac_cv_func_fork_works=cross
25013else
cristy8b350f62009-11-15 23:12:43 +000025014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025015/* end confdefs.h. */
25016$ac_includes_default
25017int
25018main ()
25019{
25020
25021 /* By Ruediger Kuhlmann. */
25022 return fork () < 0;
25023
25024 ;
25025 return 0;
25026}
25027_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025028if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025029 ac_cv_func_fork_works=yes
25030else
cristy8b350f62009-11-15 23:12:43 +000025031 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000025032fi
cristy8b350f62009-11-15 23:12:43 +000025033rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25034 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025035fi
25036
cristy3ed852e2009-09-05 21:47:34 +000025037fi
cristy8b350f62009-11-15 23:12:43 +000025038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000025039$as_echo "$ac_cv_func_fork_works" >&6; }
25040
25041else
25042 ac_cv_func_fork_works=$ac_cv_func_fork
25043fi
25044if test "x$ac_cv_func_fork_works" = xcross; then
25045 case $host in
25046 *-*-amigaos* | *-*-msdosdjgpp*)
25047 # Override, as these systems have only a dummy fork() stub
25048 ac_cv_func_fork_works=no
25049 ;;
25050 *)
25051 ac_cv_func_fork_works=yes
25052 ;;
25053 esac
cristy8b350f62009-11-15 23:12:43 +000025054 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
cristy3ed852e2009-09-05 21:47:34 +000025055$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
25056fi
25057ac_cv_func_vfork_works=$ac_cv_func_vfork
25058if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000025059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000025060$as_echo_n "checking for working vfork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025061if ${ac_cv_func_vfork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025062 $as_echo_n "(cached) " >&6
25063else
cristy8b350f62009-11-15 23:12:43 +000025064 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025065 ac_cv_func_vfork_works=cross
25066else
cristy8b350f62009-11-15 23:12:43 +000025067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025068/* end confdefs.h. */
25069/* Thanks to Paul Eggert for this test. */
25070$ac_includes_default
25071#include <sys/wait.h>
25072#ifdef HAVE_VFORK_H
25073# include <vfork.h>
25074#endif
25075/* On some sparc systems, changes by the child to local and incoming
25076 argument registers are propagated back to the parent. The compiler
25077 is told about this with #include <vfork.h>, but some compilers
25078 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
25079 static variable whose address is put into a register that is
25080 clobbered by the vfork. */
25081static void
25082#ifdef __cplusplus
25083sparc_address_test (int arg)
25084# else
25085sparc_address_test (arg) int arg;
25086#endif
25087{
25088 static pid_t child;
25089 if (!child) {
25090 child = vfork ();
25091 if (child < 0) {
25092 perror ("vfork");
25093 _exit(2);
25094 }
25095 if (!child) {
25096 arg = getpid();
25097 write(-1, "", 0);
25098 _exit (arg);
25099 }
25100 }
25101}
25102
25103int
25104main ()
25105{
25106 pid_t parent = getpid ();
25107 pid_t child;
25108
25109 sparc_address_test (0);
25110
25111 child = vfork ();
25112
25113 if (child == 0) {
25114 /* Here is another test for sparc vfork register problems. This
25115 test uses lots of local variables, at least as many local
25116 variables as main has allocated so far including compiler
25117 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
25118 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
25119 reuse the register of parent for one of the local variables,
25120 since it will think that parent can't possibly be used any more
25121 in this routine. Assigning to the local variable will thus
25122 munge parent in the parent process. */
25123 pid_t
25124 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
25125 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
25126 /* Convince the compiler that p..p7 are live; otherwise, it might
25127 use the same hardware register for all 8 local variables. */
25128 if (p != p1 || p != p2 || p != p3 || p != p4
25129 || p != p5 || p != p6 || p != p7)
25130 _exit(1);
25131
25132 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
25133 from child file descriptors. If the child closes a descriptor
25134 before it execs or exits, this munges the parent's descriptor
25135 as well. Test for this by closing stdout in the child. */
25136 _exit(close(fileno(stdout)) != 0);
25137 } else {
25138 int status;
25139 struct stat st;
25140
25141 while (wait(&status) != child)
25142 ;
25143 return (
25144 /* Was there some problem with vforking? */
25145 child < 0
25146
25147 /* Did the child fail? (This shouldn't happen.) */
25148 || status
25149
25150 /* Did the vfork/compiler bug occur? */
25151 || parent != getpid()
25152
25153 /* Did the file descriptor bug occur? */
25154 || fstat(fileno(stdout), &st) != 0
25155 );
25156 }
25157}
25158_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025159if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025160 ac_cv_func_vfork_works=yes
25161else
cristy8b350f62009-11-15 23:12:43 +000025162 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000025163fi
cristy8b350f62009-11-15 23:12:43 +000025164rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25165 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025166fi
25167
cristy3ed852e2009-09-05 21:47:34 +000025168fi
cristy8b350f62009-11-15 23:12:43 +000025169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000025170$as_echo "$ac_cv_func_vfork_works" >&6; }
25171
25172fi;
25173if test "x$ac_cv_func_fork_works" = xcross; then
25174 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000025175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
cristy3ed852e2009-09-05 21:47:34 +000025176$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
25177fi
25178
25179if test "x$ac_cv_func_vfork_works" = xyes; then
25180
cristy8b350f62009-11-15 23:12:43 +000025181$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025182
25183else
25184
cristy8b350f62009-11-15 23:12:43 +000025185$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025186
25187fi
25188if test "x$ac_cv_func_fork_works" = xyes; then
25189
cristy8b350f62009-11-15 23:12:43 +000025190$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025191
25192fi
25193
cristy8b350f62009-11-15 23:12:43 +000025194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025195$as_echo_n "checking for working memcmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025196if ${ac_cv_func_memcmp_working+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025197 $as_echo_n "(cached) " >&6
25198else
cristy8b350f62009-11-15 23:12:43 +000025199 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025200 ac_cv_func_memcmp_working=no
25201else
cristy8b350f62009-11-15 23:12:43 +000025202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025203/* end confdefs.h. */
25204$ac_includes_default
25205int
25206main ()
25207{
25208
25209 /* Some versions of memcmp are not 8-bit clean. */
25210 char c0 = '\100', c1 = '\200', c2 = '\201';
25211 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
25212 return 1;
25213
25214 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
25215 or more and with at least one buffer not starting on a 4-byte boundary.
25216 William Lewis provided this test program. */
25217 {
25218 char foo[21];
25219 char bar[21];
25220 int i;
25221 for (i = 0; i < 4; i++)
25222 {
25223 char *a = foo + i;
25224 char *b = bar + i;
25225 strcpy (a, "--------01111111");
25226 strcpy (b, "--------10000000");
25227 if (memcmp (a, b, 16) >= 0)
25228 return 1;
25229 }
25230 return 0;
25231 }
25232
25233 ;
25234 return 0;
25235}
25236_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025237if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025238 ac_cv_func_memcmp_working=yes
25239else
cristy8b350f62009-11-15 23:12:43 +000025240 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000025241fi
cristy8b350f62009-11-15 23:12:43 +000025242rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25243 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025244fi
25245
cristy3ed852e2009-09-05 21:47:34 +000025246fi
cristy8b350f62009-11-15 23:12:43 +000025247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000025248$as_echo "$ac_cv_func_memcmp_working" >&6; }
25249test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
25250 *" memcmp.$ac_objext "* ) ;;
25251 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
25252 ;;
25253esac
25254
25255
cristy3ed852e2009-09-05 21:47:34 +000025256for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000025257do :
25258 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25259ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000025260if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000025261 cat >>confdefs.h <<_ACEOF
25262#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25263_ACEOF
25264
25265fi
25266
25267done
25268
cristy8b350f62009-11-15 23:12:43 +000025269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000025270$as_echo_n "checking types of arguments for select... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025271if ${ac_cv_func_select_args+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025272 $as_echo_n "(cached) " >&6
25273else
25274 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
25275 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
25276 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000025277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025278/* end confdefs.h. */
25279$ac_includes_default
25280#ifdef HAVE_SYS_SELECT_H
25281# include <sys/select.h>
25282#endif
25283#ifdef HAVE_SYS_SOCKET_H
25284# include <sys/socket.h>
25285#endif
25286
25287int
25288main ()
25289{
25290extern int select ($ac_arg1,
25291 $ac_arg234, $ac_arg234, $ac_arg234,
25292 $ac_arg5);
25293 ;
25294 return 0;
25295}
25296_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025297if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025298 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000025299fi
cristy3ed852e2009-09-05 21:47:34 +000025300rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25301 done
25302 done
25303done
25304# Provide a safe default value.
cristyda16f162011-02-19 23:52:17 +000025305: "${ac_cv_func_select_args=int,int *,struct timeval *}"
cristy3ed852e2009-09-05 21:47:34 +000025306
25307fi
cristy8b350f62009-11-15 23:12:43 +000025308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000025309$as_echo "$ac_cv_func_select_args" >&6; }
25310ac_save_IFS=$IFS; IFS=','
25311set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
25312IFS=$ac_save_IFS
25313shift
25314
25315cat >>confdefs.h <<_ACEOF
25316#define SELECT_TYPE_ARG1 $1
25317_ACEOF
25318
25319
25320cat >>confdefs.h <<_ACEOF
25321#define SELECT_TYPE_ARG234 ($2)
25322_ACEOF
25323
25324
25325cat >>confdefs.h <<_ACEOF
25326#define SELECT_TYPE_ARG5 ($3)
25327_ACEOF
25328
25329rm -f conftest*
25330
cristyda16f162011-02-19 23:52:17 +000025331if ${ac_cv_func_setvbuf_reversed+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025332 $as_echo_n "(cached) " >&6
25333else
25334 ac_cv_func_setvbuf_reversed=no
25335fi
25336
25337
cristy8b350f62009-11-15 23:12:43 +000025338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000025339$as_echo_n "checking return type of signal handlers... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025340if ${ac_cv_type_signal+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025341 $as_echo_n "(cached) " >&6
25342else
cristy8b350f62009-11-15 23:12:43 +000025343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025344/* end confdefs.h. */
25345#include <sys/types.h>
25346#include <signal.h>
25347
25348int
25349main ()
25350{
25351return *(signal (0, 0)) (0) == 1;
25352 ;
25353 return 0;
25354}
25355_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025356if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025357 ac_cv_type_signal=int
25358else
cristy8b350f62009-11-15 23:12:43 +000025359 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000025360fi
cristy3ed852e2009-09-05 21:47:34 +000025361rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25362fi
cristy8b350f62009-11-15 23:12:43 +000025363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000025364$as_echo "$ac_cv_type_signal" >&6; }
25365
25366cat >>confdefs.h <<_ACEOF
25367#define RETSIGTYPE $ac_cv_type_signal
25368_ACEOF
25369
25370
cristy8b350f62009-11-15 23:12:43 +000025371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000025372$as_echo_n "checking for working strtod... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025373if ${ac_cv_func_strtod+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025374 $as_echo_n "(cached) " >&6
25375else
cristy8b350f62009-11-15 23:12:43 +000025376 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025377 ac_cv_func_strtod=no
25378else
cristy8b350f62009-11-15 23:12:43 +000025379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025380/* end confdefs.h. */
25381
25382$ac_includes_default
25383#ifndef strtod
25384double strtod ();
25385#endif
25386int
25387main()
25388{
25389 {
25390 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
25391 char *string = " +69";
25392 char *term;
25393 double value;
25394 value = strtod (string, &term);
25395 if (value != 69 || term != (string + 4))
25396 return 1;
25397 }
25398
25399 {
25400 /* Under Solaris 2.4, strtod returns the wrong value for the
25401 terminating character under some conditions. */
25402 char *string = "NaN";
25403 char *term;
25404 strtod (string, &term);
25405 if (term != string && *(term - 1) == 0)
25406 return 1;
25407 }
25408 return 0;
25409}
25410
25411_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025412if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025413 ac_cv_func_strtod=yes
25414else
cristy8b350f62009-11-15 23:12:43 +000025415 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000025416fi
cristy8b350f62009-11-15 23:12:43 +000025417rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25418 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025419fi
25420
cristy3ed852e2009-09-05 21:47:34 +000025421fi
cristy8b350f62009-11-15 23:12:43 +000025422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000025423$as_echo "$ac_cv_func_strtod" >&6; }
25424if test $ac_cv_func_strtod = no; then
25425 case " $LIBOBJS " in
25426 *" strtod.$ac_objext "* ) ;;
25427 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
25428 ;;
25429esac
25430
cristy8b350f62009-11-15 23:12:43 +000025431ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
cristyda16f162011-02-19 23:52:17 +000025432if test "x$ac_cv_func_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025433
cristy3ed852e2009-09-05 21:47:34 +000025434fi
25435
cristy3ed852e2009-09-05 21:47:34 +000025436if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000025437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000025438$as_echo_n "checking for pow in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025439if ${ac_cv_lib_m_pow+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025440 $as_echo_n "(cached) " >&6
25441else
25442 ac_check_lib_save_LIBS=$LIBS
25443LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025444cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025445/* end confdefs.h. */
25446
25447/* Override any GCC internal prototype to avoid an error.
25448 Use char because int might match the return type of a GCC
25449 builtin and then its argument prototype would still apply. */
25450#ifdef __cplusplus
25451extern "C"
25452#endif
25453char pow ();
25454int
25455main ()
25456{
25457return pow ();
25458 ;
25459 return 0;
25460}
25461_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025462if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025463 ac_cv_lib_m_pow=yes
25464else
cristy8b350f62009-11-15 23:12:43 +000025465 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000025466fi
cristy8b350f62009-11-15 23:12:43 +000025467rm -f core conftest.err conftest.$ac_objext \
25468 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025469LIBS=$ac_check_lib_save_LIBS
25470fi
cristy8b350f62009-11-15 23:12:43 +000025471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000025472$as_echo "$ac_cv_lib_m_pow" >&6; }
cristyda16f162011-02-19 23:52:17 +000025473if test "x$ac_cv_lib_m_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025474 POW_LIB=-lm
25475else
cristy8b350f62009-11-15 23:12:43 +000025476 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000025477$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
25478fi
25479
25480fi
25481
25482fi
25483
cristy7d4a1d62011-10-13 15:54:12 +000025484ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
25485if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
25486 ac_have_decl=1
25487else
25488 ac_have_decl=0
25489fi
25490
25491cat >>confdefs.h <<_ACEOF
25492#define HAVE_DECL_STRERROR_R $ac_have_decl
25493_ACEOF
25494
25495for ac_func in strerror_r
25496do :
25497 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
25498if test "x$ac_cv_func_strerror_r" = xyes; then :
25499 cat >>confdefs.h <<_ACEOF
25500#define HAVE_STRERROR_R 1
25501_ACEOF
25502
25503fi
25504done
25505
25506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
25507$as_echo_n "checking whether strerror_r returns char *... " >&6; }
25508if ${ac_cv_func_strerror_r_char_p+:} false; then :
25509 $as_echo_n "(cached) " >&6
25510else
25511
25512 ac_cv_func_strerror_r_char_p=no
25513 if test $ac_cv_have_decl_strerror_r = yes; then
25514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25515/* end confdefs.h. */
25516$ac_includes_default
25517int
25518main ()
25519{
25520
25521 char buf[100];
25522 char x = *strerror_r (0, buf, sizeof buf);
25523 char *p = strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000025524 return !p || x;
cristy7d4a1d62011-10-13 15:54:12 +000025525
25526 ;
25527 return 0;
25528}
25529_ACEOF
25530if ac_fn_c_try_compile "$LINENO"; then :
25531 ac_cv_func_strerror_r_char_p=yes
25532fi
25533rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25534 else
25535 # strerror_r is not declared. Choose between
25536 # systems that have relatively inaccessible declarations for the
25537 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
25538 # former has a strerror_r that returns char*, while the latter
25539 # has a strerror_r that returns `int'.
25540 # This test should segfault on the DEC system.
25541 if test "$cross_compiling" = yes; then :
25542 :
25543else
25544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25545/* end confdefs.h. */
25546$ac_includes_default
25547 extern char *strerror_r ();
25548int
25549main ()
25550{
25551char buf[100];
25552 char x = *strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000025553 return ! isalpha (x);
cristy7d4a1d62011-10-13 15:54:12 +000025554 ;
25555 return 0;
25556}
25557_ACEOF
25558if ac_fn_c_try_run "$LINENO"; then :
25559 ac_cv_func_strerror_r_char_p=yes
25560fi
25561rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25562 conftest.$ac_objext conftest.beam conftest.$ac_ext
25563fi
25564
25565 fi
25566
25567fi
25568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
25569$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
25570if test $ac_cv_func_strerror_r_char_p = yes; then
25571
25572$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
25573
25574fi
25575
cristy3ed852e2009-09-05 21:47:34 +000025576for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000025577do :
25578 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
cristyda16f162011-02-19 23:52:17 +000025579if test "x$ac_cv_func_vprintf" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025580 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025581#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000025582_ACEOF
25583
cristy8b350f62009-11-15 23:12:43 +000025584ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
cristyda16f162011-02-19 23:52:17 +000025585if test "x$ac_cv_func__doprnt" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025586
cristy8b350f62009-11-15 23:12:43 +000025587$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025588
25589fi
25590
25591fi
25592done
25593
25594
25595
cristy161b9262010-03-20 19:34:32 +000025596#
25597# Find math library
25598#
25599MATH_LIBS=''
25600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
25601$as_echo_n "checking for sqrt in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025602if ${ac_cv_lib_m_sqrt+:} false; then :
cristy161b9262010-03-20 19:34:32 +000025603 $as_echo_n "(cached) " >&6
25604else
25605 ac_check_lib_save_LIBS=$LIBS
25606LIBS="-lm $LIBS"
25607cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25608/* end confdefs.h. */
25609
25610/* Override any GCC internal prototype to avoid an error.
25611 Use char because int might match the return type of a GCC
25612 builtin and then its argument prototype would still apply. */
25613#ifdef __cplusplus
25614extern "C"
25615#endif
25616char sqrt ();
25617int
25618main ()
25619{
25620return sqrt ();
25621 ;
25622 return 0;
25623}
25624_ACEOF
25625if ac_fn_c_try_link "$LINENO"; then :
25626 ac_cv_lib_m_sqrt=yes
25627else
25628 ac_cv_lib_m_sqrt=no
25629fi
25630rm -f core conftest.err conftest.$ac_objext \
25631 conftest$ac_exeext conftest.$ac_ext
25632LIBS=$ac_check_lib_save_LIBS
25633fi
25634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
25635$as_echo "$ac_cv_lib_m_sqrt" >&6; }
cristyda16f162011-02-19 23:52:17 +000025636if test "x$ac_cv_lib_m_sqrt" = xyes; then :
cristy161b9262010-03-20 19:34:32 +000025637 MATH_LIBS="-lm"
25638fi
25639
25640LIBS="$MATH_LIBS $LIBS"
25641
25642
cristy85572162013-01-04 19:19:32 +000025643#
25644# Find socket library
25645#
cristy8a5d7f42013-01-06 15:24:33 +000025646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
25647$as_echo_n "checking for library containing gethostbyname... " >&6; }
25648if ${ac_cv_search_gethostbyname+:} false; then :
25649 $as_echo_n "(cached) " >&6
25650else
25651 ac_func_search_save_LIBS=$LIBS
25652cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25653/* end confdefs.h. */
25654
25655/* Override any GCC internal prototype to avoid an error.
25656 Use char because int might match the return type of a GCC
25657 builtin and then its argument prototype would still apply. */
25658#ifdef __cplusplus
25659extern "C"
25660#endif
25661char gethostbyname ();
25662int
25663main ()
25664{
25665return gethostbyname ();
25666 ;
25667 return 0;
25668}
25669_ACEOF
25670for ac_lib in '' resolv nsl; do
25671 if test -z "$ac_lib"; then
25672 ac_res="none required"
25673 else
25674 ac_res=-l$ac_lib
25675 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25676 fi
25677 if ac_fn_c_try_link "$LINENO"; then :
25678 ac_cv_search_gethostbyname=$ac_res
25679fi
25680rm -f core conftest.err conftest.$ac_objext \
25681 conftest$ac_exeext
25682 if ${ac_cv_search_gethostbyname+:} false; then :
25683 break
25684fi
25685done
25686if ${ac_cv_search_gethostbyname+:} false; then :
25687
25688else
25689 ac_cv_search_gethostbyname=no
25690fi
25691rm conftest.$ac_ext
25692LIBS=$ac_func_search_save_LIBS
25693fi
25694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
25695$as_echo "$ac_cv_search_gethostbyname" >&6; }
25696ac_res=$ac_cv_search_gethostbyname
25697if test "$ac_res" != no; then :
25698 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25699
25700fi
25701
cristy85572162013-01-04 19:19:32 +000025702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
25703$as_echo_n "checking for library containing socket... " >&6; }
25704if ${ac_cv_search_socket+:} false; then :
25705 $as_echo_n "(cached) " >&6
25706else
25707 ac_func_search_save_LIBS=$LIBS
25708cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25709/* end confdefs.h. */
25710
25711/* Override any GCC internal prototype to avoid an error.
25712 Use char because int might match the return type of a GCC
25713 builtin and then its argument prototype would still apply. */
25714#ifdef __cplusplus
25715extern "C"
25716#endif
25717char socket ();
25718int
25719main ()
25720{
25721return socket ();
25722 ;
25723 return 0;
25724}
25725_ACEOF
25726for ac_lib in '' socket; do
25727 if test -z "$ac_lib"; then
25728 ac_res="none required"
25729 else
25730 ac_res=-l$ac_lib
25731 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25732 fi
25733 if ac_fn_c_try_link "$LINENO"; then :
25734 ac_cv_search_socket=$ac_res
25735fi
25736rm -f core conftest.err conftest.$ac_objext \
25737 conftest$ac_exeext
25738 if ${ac_cv_search_socket+:} false; then :
25739 break
25740fi
25741done
25742if ${ac_cv_search_socket+:} false; then :
25743
25744else
25745 ac_cv_search_socket=no
25746fi
25747rm conftest.$ac_ext
25748LIBS=$ac_func_search_save_LIBS
25749fi
25750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
25751$as_echo "$ac_cv_search_socket" >&6; }
25752ac_res=$ac_cv_search_socket
25753if test "$ac_res" != no; then :
25754 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25755
cristy85572162013-01-04 19:19:32 +000025756
cristy8a5d7f42013-01-06 15:24:33 +000025757$as_echo "#define HAVE_SOCKET 1" >>confdefs.h
cristy85572162013-01-04 19:19:32 +000025758
cristy03f187e2013-01-24 00:22:19 +000025759 MAGICK_FEATURES="DPC $MAGICK_FEATURES"
cristy85572162013-01-04 19:19:32 +000025760
25761fi
25762
25763
cristya29f2b82015-05-30 14:10:30 +000025764for ac_func in acosh _aligned_malloc asinh atanh atoll atexit cabs carg cimag creal clock ctime_r directio _exit execvp fchmod floor fork ftime ftruncate getc_unlocked getcwd getpid getexecname getdtablesize getpagesize getrlimit getrusage gettimeofday gmtime_r isnan j0 j1 lltostr localtime_r lstat memmove memset mkstemp munmap nanosleep newlocale _NSGetExecutablePath pclose _pclose poll popen _popen posix_fadvise posix_fallocate posix_madvise posix_memalign posix_spawnp pow pread pwrite qsort_r raise rand_r readlink readdir_r realpath select seekdir sendfile setlocale socket sqrt setvbuf stat strchr strrchr strcspn strdup strpbrk strspn strstr strtod strtod_l strtol strtoul symlink sysconf sigemptyset sigaction spawnvp strerror strlcat strlcpy strcasecmp strncasecmp telldir tempnam times ulltostr uselocale usleep utime vfprintf vfprintf_l vsprintf vsnprintf vsnprintf_l waitpid _wfopen _wstat
cristy8b350f62009-11-15 23:12:43 +000025765do :
25766 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25767ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025768if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000025769 cat >>confdefs.h <<_ACEOF
25770#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25771_ACEOF
25772
25773fi
25774done
25775
25776
cristye43a45e2009-09-28 14:49:00 +000025777#
25778# Check for clock_gettime().
25779#
cristy8b350f62009-11-15 23:12:43 +000025780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000025781$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025782if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000025783 $as_echo_n "(cached) " >&6
25784else
25785 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000025786cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000025787/* end confdefs.h. */
25788
25789/* Override any GCC internal prototype to avoid an error.
25790 Use char because int might match the return type of a GCC
25791 builtin and then its argument prototype would still apply. */
25792#ifdef __cplusplus
25793extern "C"
25794#endif
25795char clock_gettime ();
25796int
25797main ()
25798{
25799return clock_gettime ();
25800 ;
25801 return 0;
25802}
25803_ACEOF
25804for ac_lib in '' rt; do
25805 if test -z "$ac_lib"; then
25806 ac_res="none required"
25807 else
25808 ac_res=-l$ac_lib
25809 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25810 fi
cristy8b350f62009-11-15 23:12:43 +000025811 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025812 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000025813fi
cristy8b350f62009-11-15 23:12:43 +000025814rm -f core conftest.err conftest.$ac_objext \
25815 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000025816 if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000025817 break
25818fi
25819done
cristyda16f162011-02-19 23:52:17 +000025820if ${ac_cv_search_clock_gettime+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000025821
cristye43a45e2009-09-28 14:49:00 +000025822else
25823 ac_cv_search_clock_gettime=no
25824fi
25825rm conftest.$ac_ext
25826LIBS=$ac_func_search_save_LIBS
25827fi
cristy8b350f62009-11-15 23:12:43 +000025828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000025829$as_echo "$ac_cv_search_clock_gettime" >&6; }
25830ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000025831if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000025832 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25833
25834
cristy8b350f62009-11-15 23:12:43 +000025835$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025836
cristy8b350f62009-11-15 23:12:43 +000025837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000025838$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000025840/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000025841
25842 #include <time.h>
cristye43a45e2009-09-28 14:49:00 +000025843int
25844main ()
25845{
25846clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000025847 ;
25848 return 0;
25849}
25850_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025851if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025852
cristyad38abe2012-12-23 23:03:21 +000025853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25854$as_echo "yes" >&6; }
cristye43a45e2009-09-28 14:49:00 +000025855
cristy8b350f62009-11-15 23:12:43 +000025856$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025857
25858
25859else
cristyad38abe2012-12-23 23:03:21 +000025860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25861$as_echo "no" >&6; }
cristye43a45e2009-09-28 14:49:00 +000025862
25863fi
cristye43a45e2009-09-28 14:49:00 +000025864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25865
25866else
25867
cristy8b350f62009-11-15 23:12:43 +000025868 for ac_func in gettimeofday ftime
25869do :
25870 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25871ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025872if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristye43a45e2009-09-28 14:49:00 +000025873 cat >>confdefs.h <<_ACEOF
25874#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25875_ACEOF
25876 break
25877fi
25878done
25879
25880
25881
25882fi
25883
25884
cristy3ed852e2009-09-05 21:47:34 +000025885########
25886#
25887# Check for function prototypes
25888#
25889########
25890
cristy8b350f62009-11-15 23:12:43 +000025891ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000025892#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025893"
cristyda16f162011-02-19 23:52:17 +000025894if test "x$ac_cv_have_decl_pread" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025895 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025896else
cristy8b350f62009-11-15 23:12:43 +000025897 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025898fi
25899
cristy3ed852e2009-09-05 21:47:34 +000025900cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025901#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025902_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025903ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000025904#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025905"
cristyda16f162011-02-19 23:52:17 +000025906if test "x$ac_cv_have_decl_pwrite" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025907 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025908else
cristy8b350f62009-11-15 23:12:43 +000025909 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025910fi
25911
cristy3ed852e2009-09-05 21:47:34 +000025912cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025913#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025914_ACEOF
25915
25916
cristy8b350f62009-11-15 23:12:43 +000025917ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000025918#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000025919"
cristyda16f162011-02-19 23:52:17 +000025920if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025921 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025922else
cristy8b350f62009-11-15 23:12:43 +000025923 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025924fi
25925
cristy3ed852e2009-09-05 21:47:34 +000025926cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025927#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025928_ACEOF
25929
25930
cristy8b350f62009-11-15 23:12:43 +000025931ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000025932#include <stdio.h>
25933#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000025934"
cristyda16f162011-02-19 23:52:17 +000025935if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025936 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025937else
cristy8b350f62009-11-15 23:12:43 +000025938 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025939fi
25940
cristy3ed852e2009-09-05 21:47:34 +000025941cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025942#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025943_ACEOF
25944
25945
cristy3ed852e2009-09-05 21:47:34 +000025946########
25947#
25948# C++ Support Tests (For Magick++)
25949#
25950########
25951have_magick_plus_plus='no'
25952if test "$with_magick_plus_plus" = 'yes'; then
25953 OLIBS="$LIBS"
25954 LIBS=''
25955 ac_ext=cpp
25956ac_cpp='$CXXCPP $CPPFLAGS'
25957ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25958ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25959ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25960
25961
25962 # Full set of headers used...
25963 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
25964 # functional iomanip iosfwd iostream iterator list string strstream utility
25965 ac_ext=cpp
25966ac_cpp='$CXXCPP $CPPFLAGS'
25967ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25968ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25969ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25970
25971 ac_ext=cpp
25972ac_cpp='$CXXCPP $CPPFLAGS'
25973ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25974ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25975ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25976if test -z "$CXX"; then
25977 if test -n "$CCC"; then
25978 CXX=$CCC
25979 else
25980 if test -n "$ac_tool_prefix"; then
25981 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25982 do
25983 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
25984set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025986$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025987if ${ac_cv_prog_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025988 $as_echo_n "(cached) " >&6
25989else
25990 if test -n "$CXX"; then
25991 ac_cv_prog_CXX="$CXX" # Let the user override the test.
25992else
25993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25994for as_dir in $PATH
25995do
25996 IFS=$as_save_IFS
25997 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025998 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000025999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000026000 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000026001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000026002 break 2
26003 fi
26004done
cristy8b350f62009-11-15 23:12:43 +000026005 done
cristy3ed852e2009-09-05 21:47:34 +000026006IFS=$as_save_IFS
26007
26008fi
26009fi
26010CXX=$ac_cv_prog_CXX
26011if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000026012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000026013$as_echo "$CXX" >&6; }
26014else
cristy8b350f62009-11-15 23:12:43 +000026015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026016$as_echo "no" >&6; }
26017fi
26018
26019
26020 test -n "$CXX" && break
26021 done
26022fi
26023if test -z "$CXX"; then
26024 ac_ct_CXX=$CXX
26025 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
26026do
26027 # Extract the first word of "$ac_prog", so it can be a program name with args.
26028set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000026029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000026030$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026031if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026032 $as_echo_n "(cached) " >&6
26033else
26034 if test -n "$ac_ct_CXX"; then
26035 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
26036else
26037as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26038for as_dir in $PATH
26039do
26040 IFS=$as_save_IFS
26041 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000026042 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000026043 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000026044 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000026045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000026046 break 2
26047 fi
26048done
cristy8b350f62009-11-15 23:12:43 +000026049 done
cristy3ed852e2009-09-05 21:47:34 +000026050IFS=$as_save_IFS
26051
26052fi
26053fi
26054ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
26055if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000026056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000026057$as_echo "$ac_ct_CXX" >&6; }
26058else
cristy8b350f62009-11-15 23:12:43 +000026059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026060$as_echo "no" >&6; }
26061fi
26062
26063
26064 test -n "$ac_ct_CXX" && break
26065done
26066
26067 if test "x$ac_ct_CXX" = x; then
26068 CXX="g++"
26069 else
26070 case $cross_compiling:$ac_tool_warned in
26071yes:)
cristy8b350f62009-11-15 23:12:43 +000026072{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000026073$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26074ac_tool_warned=yes ;;
26075esac
26076 CXX=$ac_ct_CXX
26077 fi
26078fi
26079
26080 fi
26081fi
26082# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000026083$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000026084set X $ac_compile
26085ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000026086for ac_option in --version -v -V -qversion; do
26087 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000026088case "(($ac_try" in
26089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26090 *) ac_try_echo=$ac_try;;
26091esac
cristy8b350f62009-11-15 23:12:43 +000026092eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
26093$as_echo "$ac_try_echo"; } >&5
26094 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000026095 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026096 if test -s conftest.err; then
26097 sed '10a\
26098... rest of stderr output deleted ...
26099 10q' conftest.err >conftest.er1
26100 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000026101 fi
cristycd4c5312009-11-22 01:19:08 +000026102 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000026103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26104 test $ac_status = 0; }
26105done
cristy3ed852e2009-09-05 21:47:34 +000026106
cristy8b350f62009-11-15 23:12:43 +000026107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000026108$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026109if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026110 $as_echo_n "(cached) " >&6
26111else
cristy8b350f62009-11-15 23:12:43 +000026112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026113/* end confdefs.h. */
26114
26115int
26116main ()
26117{
26118#ifndef __GNUC__
26119 choke me
26120#endif
26121
26122 ;
26123 return 0;
26124}
26125_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026126if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026127 ac_compiler_gnu=yes
26128else
cristy8b350f62009-11-15 23:12:43 +000026129 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000026130fi
cristy3ed852e2009-09-05 21:47:34 +000026131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26132ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
26133
26134fi
cristy8b350f62009-11-15 23:12:43 +000026135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000026136$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
26137if test $ac_compiler_gnu = yes; then
26138 GXX=yes
26139else
26140 GXX=
26141fi
26142ac_test_CXXFLAGS=${CXXFLAGS+set}
26143ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000026144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000026145$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026146if ${ac_cv_prog_cxx_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026147 $as_echo_n "(cached) " >&6
26148else
26149 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
26150 ac_cxx_werror_flag=yes
26151 ac_cv_prog_cxx_g=no
26152 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000026153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026154/* end confdefs.h. */
26155
26156int
26157main ()
26158{
26159
26160 ;
26161 return 0;
26162}
26163_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026164if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026165 ac_cv_prog_cxx_g=yes
26166else
cristy8b350f62009-11-15 23:12:43 +000026167 CXXFLAGS=""
26168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026169/* end confdefs.h. */
26170
26171int
26172main ()
26173{
26174
26175 ;
26176 return 0;
26177}
26178_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026179if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026180
cristy8b350f62009-11-15 23:12:43 +000026181else
26182 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000026183 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000026184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026185/* end confdefs.h. */
26186
26187int
26188main ()
26189{
26190
26191 ;
26192 return 0;
26193}
26194_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026195if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026196 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000026197fi
cristy3ed852e2009-09-05 21:47:34 +000026198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26199fi
cristy3ed852e2009-09-05 21:47:34 +000026200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26201fi
cristy3ed852e2009-09-05 21:47:34 +000026202rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26203 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
26204fi
cristy8b350f62009-11-15 23:12:43 +000026205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000026206$as_echo "$ac_cv_prog_cxx_g" >&6; }
26207if test "$ac_test_CXXFLAGS" = set; then
26208 CXXFLAGS=$ac_save_CXXFLAGS
26209elif test $ac_cv_prog_cxx_g = yes; then
26210 if test "$GXX" = yes; then
26211 CXXFLAGS="-g -O2"
26212 else
26213 CXXFLAGS="-g"
26214 fi
26215else
26216 if test "$GXX" = yes; then
26217 CXXFLAGS="-O2"
26218 else
26219 CXXFLAGS=
26220 fi
26221fi
26222ac_ext=cpp
26223ac_cpp='$CXXCPP $CPPFLAGS'
26224ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26225ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26226ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26227
cristy73bd4a52010-10-05 11:24:23 +000026228depcc="$CXX" am_compiler_list=
26229
26230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
26231$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026232if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026233 $as_echo_n "(cached) " >&6
26234else
26235 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
26236 # We make a subdir and do the tests there. Otherwise we can end up
26237 # making bogus files that we don't know about and never remove. For
26238 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +000026239 # making a dummy file named 'D' -- because '-MD' means "put the output
26240 # in D".
cristy7247bba2012-02-05 16:37:27 +000026241 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +000026242 mkdir conftest.dir
26243 # Copy depcomp to subdir because otherwise we won't find it if we're
26244 # using a relative directory.
26245 cp "$am_depcomp" conftest.dir
26246 cd conftest.dir
26247 # We will build objects and dependencies in a subdirectory because
26248 # it helps to detect inapplicable dependency modes. For instance
26249 # both Tru64's cc and ICC support -MD to output dependencies as a
26250 # side effect of compilation, but ICC will put the dependencies in
26251 # the current directory while Tru64 will put them in the object
26252 # directory.
26253 mkdir sub
26254
26255 am_cv_CXX_dependencies_compiler_type=none
26256 if test "$am_compiler_list" = ""; then
26257 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
26258 fi
26259 am__universal=false
26260 case " $depcc " in #(
26261 *\ -arch\ *\ -arch\ *) am__universal=true ;;
26262 esac
26263
26264 for depmode in $am_compiler_list; do
26265 # Setup a source with many dependencies, because some compilers
26266 # like to wrap large dependency lists on column 80 (with \), and
26267 # we should not choose a depcomp mode which is confused by this.
26268 #
26269 # We need to recreate these files for each test, as the compiler may
26270 # overwrite some of them when testing with obscure command lines.
26271 # This happens at least with the AIX C compiler.
26272 : > sub/conftest.c
26273 for i in 1 2 3 4 5 6; do
26274 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +000026275 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
26276 # Solaris 10 /bin/sh.
26277 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +000026278 done
26279 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
26280
cristyc0890a62012-07-19 00:18:20 +000026281 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +000026282 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +000026283 # handle '-M -o', and we need to detect this. Also, some Intel
26284 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +000026285 am__obj=sub/conftest.${OBJEXT-o}
26286 am__minus_obj="-o $am__obj"
26287 case $depmode in
26288 gcc)
26289 # This depmode causes a compiler race in universal mode.
26290 test "$am__universal" = false || continue
26291 ;;
26292 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +000026293 # After this tag, mechanisms are not by side-effect, so they'll
26294 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +000026295 if test "x$enable_dependency_tracking" = xyes; then
26296 continue
26297 else
26298 break
26299 fi
26300 ;;
cristy7247bba2012-02-05 16:37:27 +000026301 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +000026302 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +000026303 # not run yet. These depmodes are late enough in the game, and
26304 # so weak that their functioning should not be impacted.
26305 am__obj=conftest.${OBJEXT-o}
26306 am__minus_obj=
26307 ;;
26308 none) break ;;
26309 esac
26310 if depmode=$depmode \
26311 source=sub/conftest.c object=$am__obj \
26312 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
26313 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
26314 >/dev/null 2>conftest.err &&
26315 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
26316 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
26317 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
26318 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
26319 # icc doesn't choke on unknown options, it will just issue warnings
26320 # or remarks (even with -Werror). So we grep stderr for any message
26321 # that says an option was ignored or not supported.
26322 # When given -MP, icc 7.0 and 7.1 complain thusly:
26323 # icc: Command line warning: ignoring option '-M'; no argument required
26324 # The diagnosis changed in icc 8.0:
26325 # icc: Command line remark: option '-MP' not supported
26326 if (grep 'ignoring option' conftest.err ||
26327 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
26328 am_cv_CXX_dependencies_compiler_type=$depmode
26329 break
26330 fi
26331 fi
26332 done
26333
26334 cd ..
26335 rm -rf conftest.dir
26336else
26337 am_cv_CXX_dependencies_compiler_type=none
26338fi
26339
26340fi
26341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
26342$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
26343CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
26344
26345 if
26346 test "x$enable_dependency_tracking" != xno \
26347 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
26348 am__fastdepCXX_TRUE=
26349 am__fastdepCXX_FALSE='#'
26350else
26351 am__fastdepCXX_TRUE='#'
26352 am__fastdepCXX_FALSE=
26353fi
26354
26355
cristy146497a2015-05-17 22:46:16 +000026356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
cristy73bd4a52010-10-05 11:24:23 +000026357$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026358if ${ax_cv_cxx_bool+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026359 $as_echo_n "(cached) " >&6
26360else
cristy146497a2015-05-17 22:46:16 +000026361 ac_ext=cpp
cristy73bd4a52010-10-05 11:24:23 +000026362ac_cpp='$CXXCPP $CPPFLAGS'
26363ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26364ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26365ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26366
cristy146497a2015-05-17 22:46:16 +000026367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000026368/* end confdefs.h. */
cristy146497a2015-05-17 22:46:16 +000026369 int f(int x){return 1;}
26370 int f(char x){return 1;}
26371 int f(bool x){return 1;}
cristy73bd4a52010-10-05 11:24:23 +000026372int
26373main ()
26374{
26375bool b = true; return f(b);
26376 ;
26377 return 0;
26378}
26379_ACEOF
26380if ac_fn_cxx_try_compile "$LINENO"; then :
26381 ax_cv_cxx_bool=yes
26382else
26383 ax_cv_cxx_bool=no
26384fi
26385rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy146497a2015-05-17 22:46:16 +000026386 ac_ext=cpp
cristy73bd4a52010-10-05 11:24:23 +000026387ac_cpp='$CXXCPP $CPPFLAGS'
26388ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26389ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26390ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26391
26392
26393fi
26394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
26395$as_echo "$ax_cv_cxx_bool" >&6; }
cristy146497a2015-05-17 22:46:16 +000026396 if test "X$ax_cv_cxx_bool" = Xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000026397
26398$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
26399
26400fi
26401
26402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
26403$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026404if ${ax_cv_cxx_namespaces+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026405 $as_echo_n "(cached) " >&6
26406else
cristy17491be2014-06-24 01:10:53 +000026407 ac_ext=cpp
cristy73bd4a52010-10-05 11:24:23 +000026408ac_cpp='$CXXCPP $CPPFLAGS'
26409ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26410ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26411ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26412
26413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26414/* end confdefs.h. */
26415namespace Outer { namespace Inner { int i = 0; }}
cristy17491be2014-06-24 01:10:53 +000026416 using namespace Outer::Inner; int foo(void) { return i;}
cristy73bd4a52010-10-05 11:24:23 +000026417_ACEOF
26418if ac_fn_cxx_try_compile "$LINENO"; then :
26419 ax_cv_cxx_namespaces=yes
26420else
26421 ax_cv_cxx_namespaces=no
26422fi
26423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26424 ac_ext=cpp
26425ac_cpp='$CXXCPP $CPPFLAGS'
26426ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26427ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26428ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26429
26430
26431fi
26432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
26433$as_echo "$ax_cv_cxx_namespaces" >&6; }
26434if test "$ax_cv_cxx_namespaces" = yes; then
26435
26436$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
26437
26438fi
26439
26440
26441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
26442$as_echo_n "checking if g++ supports namespace std... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026443if ${ax_cv_cxx_have_std_namespace+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026444 $as_echo_n "(cached) " >&6
26445else
26446
26447 ac_ext=cpp
26448ac_cpp='$CXXCPP $CPPFLAGS'
26449ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26450ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26451ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26452
26453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26454/* end confdefs.h. */
26455#include <iostream>
26456 std::istream& is = std::cin;
26457int
26458main ()
26459{
26460
26461 ;
26462 return 0;
26463}
26464_ACEOF
26465if ac_fn_cxx_try_compile "$LINENO"; then :
26466 ax_cv_cxx_have_std_namespace=yes
26467else
26468 ax_cv_cxx_have_std_namespace=no
26469fi
26470rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26471 ac_ext=cpp
26472ac_cpp='$CXXCPP $CPPFLAGS'
26473ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26474ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26475ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26476
26477
26478fi
26479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
26480$as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
26481 if test "$ax_cv_cxx_have_std_namespace" = yes; then
26482
26483$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
26484
26485 fi
26486
26487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
26488$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026489if ${ac_cv_cxx_have_std_libs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026490 $as_echo_n "(cached) " >&6
26491else
26492
26493
26494 ac_ext=cpp
26495ac_cpp='$CXXCPP $CPPFLAGS'
26496ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26497ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26498ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26499
26500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26501/* end confdefs.h. */
26502#include <iostream>
26503#include <map>
26504#include <iomanip>
26505#include <cmath>
26506#ifdef HAVE_NAMESPACES
26507using namespace std;
26508#endif
26509int
26510main ()
26511{
26512return 0;
26513 ;
26514 return 0;
26515}
26516_ACEOF
26517if ac_fn_cxx_try_compile "$LINENO"; then :
26518 ac_cv_cxx_have_std_libs=yes
26519else
26520 ac_cv_cxx_have_std_libs=no
26521fi
26522rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26523 ac_ext=cpp
26524ac_cpp='$CXXCPP $CPPFLAGS'
26525ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26526ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26527ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26528
26529
26530fi
26531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
26532$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
26533if test "$ac_cv_cxx_have_std_libs" = yes; then
26534
26535$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
26536
26537fi
26538
cristy3ed852e2009-09-05 21:47:34 +000026539
26540 OPENMP_CXXFLAGS=
26541 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000026542if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026543 enableval=$enable_openmp;
26544fi
26545
26546 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000026547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
26548$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026549if ${ac_cv_prog_cxx_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026550 $as_echo_n "(cached) " >&6
26551else
cristy8b350f62009-11-15 23:12:43 +000026552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26553/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000026554
26555#ifndef _OPENMP
26556 choke me
26557#endif
26558#include <omp.h>
26559int main () { return omp_get_num_threads (); }
26560
26561_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026562if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026563 ac_cv_prog_cxx_openmp='none needed'
26564else
cristy8b350f62009-11-15 23:12:43 +000026565 ac_cv_prog_cxx_openmp='unsupported'
cristy14fefe52012-05-21 00:59:18 +000026566 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
26567 -Popenmp --openmp; do
cristy3ed852e2009-09-05 21:47:34 +000026568 ac_save_CXXFLAGS=$CXXFLAGS
26569 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000026570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26571/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000026572
26573#ifndef _OPENMP
26574 choke me
26575#endif
26576#include <omp.h>
26577int main () { return omp_get_num_threads (); }
26578
26579_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026580if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026581 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000026582fi
cristy8b350f62009-11-15 23:12:43 +000026583rm -f core conftest.err conftest.$ac_objext \
26584 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026585 CXXFLAGS=$ac_save_CXXFLAGS
26586 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
26587 break
26588 fi
26589 done
26590fi
cristy8b350f62009-11-15 23:12:43 +000026591rm -f core conftest.err conftest.$ac_objext \
26592 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026593fi
cristy8b350f62009-11-15 23:12:43 +000026594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026595$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
26596 case $ac_cv_prog_cxx_openmp in #(
26597 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000026598 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000026599 *)
cristy8b350f62009-11-15 23:12:43 +000026600 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000026601 esac
26602 fi
26603
26604
26605 ac_ext=c
26606ac_cpp='$CPP $CPPFLAGS'
26607ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26608ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26609ac_compiler_gnu=$ac_cv_c_compiler_gnu
26610
26611
cristy8b350f62009-11-15 23:12:43 +000026612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000026613$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
26614 if \
cristy964cb7f2010-04-25 23:18:00 +000026615 test $ax_cv_cxx_bool = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000026616 test $ax_cv_cxx_namespaces = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000026617 test $ac_cv_cxx_have_std_libs = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000026618 test $ax_cv_cxx_have_std_namespace = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000026619 have_magick_plus_plus='yes'
26620 else
26621 have_magick_plus_plus='no (failed tests)'
26622 fi
cristyad38abe2012-12-23 23:03:21 +000026623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
26624$as_echo "$have_magick_plus_plus" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026625 LIBS="$OLIBS"
26626fi
cristy73bd4a52010-10-05 11:24:23 +000026627 if test "$have_magick_plus_plus" = 'yes'; then
26628 WITH_MAGICK_PLUS_PLUS_TRUE=
26629 WITH_MAGICK_PLUS_PLUS_FALSE='#'
26630else
26631 WITH_MAGICK_PLUS_PLUS_TRUE='#'
26632 WITH_MAGICK_PLUS_PLUS_FALSE=
26633fi
26634
cristy3ed852e2009-09-05 21:47:34 +000026635
26636# Only check for delegate libraries in subdirectories if requested.
26637if test "$enable_delegate_build" != 'no'; then
26638 # Check for delegate sub-directories and add -I & -L options as required.
26639 # This presumes that delegates are installed as detailed in the ImageMagick
26640 # README. If delegates are installed in a standard location where the
26641 # compiler will automatically find them then these options should not be
26642 # required.
26643
26644 #
26645 # Most delegates have includes in the same directory as the library, but not all...
26646 #
26647 # Includes
cristy834307f2015-01-25 00:43:41 +000026648 for dir in bzlib fftw fpx gslib/src jp2 jbig/libjbig jpeg lcms/include lzma magick openjp2/include png tiff/libtiff ttf/include wand webp/src wmf/include xml/include zlib; do
cristy3ed852e2009-09-05 21:47:34 +000026649 if test -d "$builddir/$dir"; then
26650 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
26651 else
26652 if test -d "$srcdirfull/$dir"; then
26653 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
26654 fi
26655 fi
26656 done
26657
26658 # Libraries
cristy834307f2015-01-25 00:43:41 +000026659 for dir in bzlib fftw fpx gslib/src jbig/libjbig jpeg lcms/src lzma magick openjp2 png tiff/libtiff ttf/objs wand webp wmf/src xml zlib; do
cristy3ed852e2009-09-05 21:47:34 +000026660 if test -d "$builddir/$dir/.libs"; then
26661 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
26662 else
26663 if test -d "$srcdirfull/$dir/.libs"; then
26664 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
26665 fi
26666 fi
26667 if test -d "$builddir/$dir"; then
26668 LDFLAGS="$LDFLAGS -L$builddir/$dir"
26669 else
26670 if test -d "$srcdirfull/$dir"; then
26671 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
26672 fi
26673 fi
26674 done
26675fi
26676
26677# Assume that delegate headers reside under same directory as ImageMagick
26678# installation prefix.
cristybdabdd62013-03-04 17:43:36 +000026679MAGICK_CPPFLAGS="-I$INCLUDE_DIR/${PACKAGE_NAME}-$MAGICK_MAJOR_VERSION $MAGICK_CPPFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000026680
26681#
26682# Find the X11 RGB database
26683#
cristy8b350f62009-11-15 23:12:43 +000026684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000026685$as_echo_n "checking for X11 configure files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026686if ${im_cv_x_configure+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026687 $as_echo_n "(cached) " >&6
26688else
26689 # Look for the header file in a standard set of common directories.
26690# Check X11 before X11Rn because it is often a symlink to the current release.
26691 for ac_dir in \
26692 /lib/usr/lib/X11 \
26693 /usr/X11/lib \
26694 /usr/X11R4/lib \
26695 /usr/X11R5/lib \
26696 /usr/X11R6/lib \
26697 /usr/X11R7/lib \
26698 /usr/X386/lib \
26699 /usr/XFree86/lib/X11 \
26700 /usr/athena/lib \
26701 /usr/lib \
26702 /usr/lib/X11 \
26703 /usr/lib/X11R4 \
26704 /usr/lib/X11R5 \
26705 /usr/lib/X11R6 \
26706 /usr/lib/X11R7 \
26707 /usr/local/X11/lib \
26708 /usr/local/X11R4/lib \
26709 /usr/local/X11R5/lib \
26710 /usr/local/X11R6/lib \
26711 /usr/local/lib \
26712 /usr/local/lib/X11 \
26713 /usr/local/lib/X11R4 \
26714 /usr/local/lib/X11R5 \
26715 /usr/local/lib/X11R6 \
26716 /usr/local/lib/X11R7 \
26717 /usr/local/x11r5/lib \
26718 /usr/lpp/Xamples/lib \
26719 /usr/openwin/lib \
26720 /usr/openwin/share/lib \
26721 /usr/unsupported/lib \
26722 /usr/x386/lib \
26723 ; do
26724 if test -f "$ac_dir/X11/rgb.txt"; then
26725 im_cv_x_configure="$ac_dir/X11/"
26726 break
26727 elif test -f "$ac_dir/rgb.txt"; then
26728 im_cv_x_configure="$ac_dir/"
26729 break
26730 fi
26731
26732 done
26733fi
cristy8b350f62009-11-15 23:12:43 +000026734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000026735$as_echo "$im_cv_x_configure" >&6; }
26736X11_CONFIGURE_PATH="$im_cv_x_configure"
26737case "${build_os}" in
26738 mingw* )
26739 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
26740 ;;
26741esac
26742
26743cat >>confdefs.h <<_ACEOF
26744#define X11_CONFIGURE_PATH "$X11ConfigurePath"
26745_ACEOF
26746
26747
26748#
26749# Find OpenMP library
26750#
26751GOMP_LIBS=''
26752if test "$enable_openmp" != 'no'; then
26753 if test "${GCC}" = "yes"; then
cristy18307f12011-12-30 01:20:16 +000026754 # Open64 (passes for GCC but uses different OpenMP implementation)
26755 if test "x$GOMP_LIBS" = x ; then
26756 if $CC --version 2>&1 | grep Open64 > /dev/null ; then
26757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for omp_get_num_procs in -lopenmp" >&5
26758$as_echo_n "checking for omp_get_num_procs in -lopenmp... " >&6; }
26759if ${ac_cv_lib_openmp_omp_get_num_procs+:} false; then :
26760 $as_echo_n "(cached) " >&6
26761else
26762 ac_check_lib_save_LIBS=$LIBS
26763LIBS="-lopenmp $LIBS"
26764cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26765/* end confdefs.h. */
26766
26767/* Override any GCC internal prototype to avoid an error.
26768 Use char because int might match the return type of a GCC
26769 builtin and then its argument prototype would still apply. */
26770#ifdef __cplusplus
26771extern "C"
26772#endif
26773char omp_get_num_procs ();
26774int
26775main ()
26776{
26777return omp_get_num_procs ();
26778 ;
26779 return 0;
26780}
26781_ACEOF
26782if ac_fn_c_try_link "$LINENO"; then :
26783 ac_cv_lib_openmp_omp_get_num_procs=yes
26784else
26785 ac_cv_lib_openmp_omp_get_num_procs=no
26786fi
26787rm -f core conftest.err conftest.$ac_objext \
26788 conftest$ac_exeext conftest.$ac_ext
26789LIBS=$ac_check_lib_save_LIBS
26790fi
26791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_openmp_omp_get_num_procs" >&5
26792$as_echo "$ac_cv_lib_openmp_omp_get_num_procs" >&6; }
26793if test "x$ac_cv_lib_openmp_omp_get_num_procs" = xyes; then :
26794 GOMP_LIBS="-lopenmp"
26795fi
26796
26797 fi
26798 fi
26799 # GCC
26800 if test "x$GOMP_LIBS" = x ; then
26801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026802$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026803if ${ac_cv_lib_gomp_GOMP_parallel_start+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026804 $as_echo_n "(cached) " >&6
26805else
26806 ac_check_lib_save_LIBS=$LIBS
26807LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026808cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026809/* end confdefs.h. */
26810
26811/* Override any GCC internal prototype to avoid an error.
26812 Use char because int might match the return type of a GCC
26813 builtin and then its argument prototype would still apply. */
26814#ifdef __cplusplus
26815extern "C"
26816#endif
26817char GOMP_parallel_start ();
26818int
26819main ()
26820{
26821return GOMP_parallel_start ();
26822 ;
26823 return 0;
26824}
26825_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026826if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026827 ac_cv_lib_gomp_GOMP_parallel_start=yes
26828else
cristy8b350f62009-11-15 23:12:43 +000026829 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000026830fi
cristy8b350f62009-11-15 23:12:43 +000026831rm -f core conftest.err conftest.$ac_objext \
26832 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026833LIBS=$ac_check_lib_save_LIBS
26834fi
cristy8b350f62009-11-15 23:12:43 +000026835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000026836$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristyda16f162011-02-19 23:52:17 +000026837if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026838 GOMP_LIBS="-lgomp"
26839fi
cristy18307f12011-12-30 01:20:16 +000026840
26841 fi
cristy3ed852e2009-09-05 21:47:34 +000026842 else
cristy18307f12011-12-30 01:20:16 +000026843 # Sun CC
26844 if test "x$GOMP_LIBS" = x ; then
26845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000026846$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026847if ${ac_cv_lib_mtsk_sunw_mp_register_warn+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026848 $as_echo_n "(cached) " >&6
26849else
26850 ac_check_lib_save_LIBS=$LIBS
26851LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026852cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026853/* end confdefs.h. */
26854
26855/* Override any GCC internal prototype to avoid an error.
26856 Use char because int might match the return type of a GCC
26857 builtin and then its argument prototype would still apply. */
26858#ifdef __cplusplus
26859extern "C"
26860#endif
26861char sunw_mp_register_warn ();
26862int
26863main ()
26864{
26865return sunw_mp_register_warn ();
26866 ;
26867 return 0;
26868}
26869_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026870if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026871 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
26872else
cristy8b350f62009-11-15 23:12:43 +000026873 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000026874fi
cristy8b350f62009-11-15 23:12:43 +000026875rm -f core conftest.err conftest.$ac_objext \
26876 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026877LIBS=$ac_check_lib_save_LIBS
26878fi
cristy8b350f62009-11-15 23:12:43 +000026879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000026880$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristyda16f162011-02-19 23:52:17 +000026881if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026882 GOMP_LIBS="-lmtsk"
26883fi
cristy18307f12011-12-30 01:20:16 +000026884
26885 fi
26886 # AIX xlc
26887 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000026888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026889$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026890if ${ac_cv_lib_xlsmp__xlsmpFlush+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026891 $as_echo_n "(cached) " >&6
26892else
26893 ac_check_lib_save_LIBS=$LIBS
26894LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026895cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026896/* end confdefs.h. */
26897
26898/* Override any GCC internal prototype to avoid an error.
26899 Use char because int might match the return type of a GCC
26900 builtin and then its argument prototype would still apply. */
26901#ifdef __cplusplus
26902extern "C"
26903#endif
26904char _xlsmpFlush ();
26905int
26906main ()
26907{
26908return _xlsmpFlush ();
26909 ;
26910 return 0;
26911}
26912_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026913if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026914 ac_cv_lib_xlsmp__xlsmpFlush=yes
26915else
cristy8b350f62009-11-15 23:12:43 +000026916 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000026917fi
cristy8b350f62009-11-15 23:12:43 +000026918rm -f core conftest.err conftest.$ac_objext \
26919 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026920LIBS=$ac_check_lib_save_LIBS
26921fi
cristy8b350f62009-11-15 23:12:43 +000026922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000026923$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristyda16f162011-02-19 23:52:17 +000026924if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026925 GOMP_LIBS="-lxlsmp"
26926fi
cristy18307f12011-12-30 01:20:16 +000026927
26928 fi
26929 # SGI IRIX 6.5 MIPSpro C/C++
26930 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000026931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026932$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026933if ${ac_cv_lib_mp_mp_destroy+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026934 $as_echo_n "(cached) " >&6
26935else
26936 ac_check_lib_save_LIBS=$LIBS
26937LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026938cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026939/* end confdefs.h. */
26940
26941/* Override any GCC internal prototype to avoid an error.
26942 Use char because int might match the return type of a GCC
26943 builtin and then its argument prototype would still apply. */
26944#ifdef __cplusplus
26945extern "C"
26946#endif
26947char mp_destroy ();
26948int
26949main ()
26950{
26951return mp_destroy ();
26952 ;
26953 return 0;
26954}
26955_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026956if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026957 ac_cv_lib_mp_mp_destroy=yes
26958else
cristy8b350f62009-11-15 23:12:43 +000026959 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000026960fi
cristy8b350f62009-11-15 23:12:43 +000026961rm -f core conftest.err conftest.$ac_objext \
26962 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026963LIBS=$ac_check_lib_save_LIBS
26964fi
cristy8b350f62009-11-15 23:12:43 +000026965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000026966$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristyda16f162011-02-19 23:52:17 +000026967if test "x$ac_cv_lib_mp_mp_destroy" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026968 GOMP_LIBS="-lmp"
26969fi
cristy18307f12011-12-30 01:20:16 +000026970
26971 fi
cristy3ed852e2009-09-05 21:47:34 +000026972 fi
26973 LIBS="$GOMP_LIBS $LIBS"
26974fi
26975
26976
cristy12ac8192014-11-04 13:59:13 +000026977#
cristy3b0097d2014-11-04 15:34:47 +000026978# Check for jemalloc.
cristy12ac8192014-11-04 13:59:13 +000026979#
cristy3b0097d2014-11-04 15:34:47 +000026980have_jemalloc='no'
26981JEMALLOC_LIBS=''
26982if test "$with_jemalloc" != 'no'; then
26983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JEMALLOC support " >&5
26984$as_echo_n "checking for JEMALLOC support ... " >&6; }
26985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26986$as_echo "" >&6; }
26987 failed=0
26988 passed=0
26989 ac_fn_c_check_header_mongrel "$LINENO" "jemalloc/jemalloc.h" "ac_cv_header_jemalloc_jemalloc_h" "$ac_includes_default"
26990if test "x$ac_cv_header_jemalloc_jemalloc_h" = xyes; then :
cristy22007ae2014-11-04 15:59:22 +000026991 passed=`expr $passed + 1`
26992else
26993 failed=`expr $failed + 1`
cristy12ac8192014-11-04 13:59:13 +000026994fi
26995
26996
cristy3b0097d2014-11-04 15:34:47 +000026997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc_stats_print in -ljemalloc" >&5
26998$as_echo_n "checking for malloc_stats_print in -ljemalloc... " >&6; }
26999if ${ac_cv_lib_jemalloc_malloc_stats_print+:} false; then :
cristy12ac8192014-11-04 13:59:13 +000027000 $as_echo_n "(cached) " >&6
27001else
27002 ac_check_lib_save_LIBS=$LIBS
27003LIBS="-ljemalloc $LIBS"
27004cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27005/* end confdefs.h. */
27006
27007/* Override any GCC internal prototype to avoid an error.
27008 Use char because int might match the return type of a GCC
27009 builtin and then its argument prototype would still apply. */
27010#ifdef __cplusplus
27011extern "C"
27012#endif
cristy3b0097d2014-11-04 15:34:47 +000027013char malloc_stats_print ();
cristy12ac8192014-11-04 13:59:13 +000027014int
27015main ()
27016{
cristy3b0097d2014-11-04 15:34:47 +000027017return malloc_stats_print ();
cristy12ac8192014-11-04 13:59:13 +000027018 ;
27019 return 0;
27020}
27021_ACEOF
27022if ac_fn_c_try_link "$LINENO"; then :
cristy3b0097d2014-11-04 15:34:47 +000027023 ac_cv_lib_jemalloc_malloc_stats_print=yes
cristy12ac8192014-11-04 13:59:13 +000027024else
cristy3b0097d2014-11-04 15:34:47 +000027025 ac_cv_lib_jemalloc_malloc_stats_print=no
cristy12ac8192014-11-04 13:59:13 +000027026fi
27027rm -f core conftest.err conftest.$ac_objext \
27028 conftest$ac_exeext conftest.$ac_ext
27029LIBS=$ac_check_lib_save_LIBS
27030fi
cristy3b0097d2014-11-04 15:34:47 +000027031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jemalloc_malloc_stats_print" >&5
27032$as_echo "$ac_cv_lib_jemalloc_malloc_stats_print" >&6; }
27033if test "x$ac_cv_lib_jemalloc_malloc_stats_print" = xyes; then :
cristy22007ae2014-11-04 15:59:22 +000027034 passed=`expr $passed + 1`
27035else
27036 failed=`expr $failed + 1`
cristy12ac8192014-11-04 13:59:13 +000027037fi
27038
cristy3b0097d2014-11-04 15:34:47 +000027039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if jemalloc memory allocation library is complete" >&5
27040$as_echo_n "checking if jemalloc memory allocation library is complete... " >&6; }
27041 if test $passed -gt 0; then
27042 if test $failed -gt 0; then
27043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27044$as_echo "no -- some components failed test" >&6; }
27045 have_jemalloc='no (failed tests)'
27046 else
27047 JEMALLOC_LIBS='-ljemalloc'
27048 LIBS="$JEMALLOC_LIBS $LIBS"
cristy12ac8192014-11-04 13:59:13 +000027049
cristy3b0097d2014-11-04 15:34:47 +000027050$as_echo "#define HasJEMALLOC 1" >>confdefs.h
cristy12ac8192014-11-04 13:59:13 +000027051
cristy3b0097d2014-11-04 15:34:47 +000027052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27053$as_echo "yes" >&6; }
27054 have_jemalloc='yes'
27055 fi
cristy12ac8192014-11-04 13:59:13 +000027056 else
cristy3b0097d2014-11-04 15:34:47 +000027057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27058$as_echo "no" >&6; }
cristy12ac8192014-11-04 13:59:13 +000027059 fi
27060fi
cristy3b0097d2014-11-04 15:34:47 +000027061 if test "$have_jemalloc" = 'yes'; then
27062 HasJEMALLOC_TRUE=
27063 HasJEMALLOC_FALSE='#'
27064else
27065 HasJEMALLOC_TRUE='#'
27066 HasJEMALLOC_FALSE=
cristy12ac8192014-11-04 13:59:13 +000027067fi
27068
cristy3b0097d2014-11-04 15:34:47 +000027069
27070
cristy3ed852e2009-09-05 21:47:34 +000027071#
27072# Check for umem.
27073#
27074have_umem='no'
27075UMEM_LIBS=''
27076if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000027078$as_echo_n "checking for UMEM support ... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000027079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27080$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027081 failed=0
27082 passed=0
cristy8b350f62009-11-15 23:12:43 +000027083 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027084if test "x$ac_cv_header_umem_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027085 passed=`expr $passed + 1`
27086else
27087 failed=`expr $failed + 1`
27088fi
27089
27090
cristy8b350f62009-11-15 23:12:43 +000027091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000027092$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027093if ${ac_cv_lib_umem_umem_alloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027094 $as_echo_n "(cached) " >&6
27095else
27096 ac_check_lib_save_LIBS=$LIBS
27097LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027098cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027099/* end confdefs.h. */
27100
27101/* Override any GCC internal prototype to avoid an error.
27102 Use char because int might match the return type of a GCC
27103 builtin and then its argument prototype would still apply. */
27104#ifdef __cplusplus
27105extern "C"
27106#endif
27107char umem_alloc ();
27108int
27109main ()
27110{
27111return umem_alloc ();
27112 ;
27113 return 0;
27114}
27115_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027116if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027117 ac_cv_lib_umem_umem_alloc=yes
27118else
cristy8b350f62009-11-15 23:12:43 +000027119 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000027120fi
cristy8b350f62009-11-15 23:12:43 +000027121rm -f core conftest.err conftest.$ac_objext \
27122 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027123LIBS=$ac_check_lib_save_LIBS
27124fi
cristy8b350f62009-11-15 23:12:43 +000027125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027126$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000027127if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027128 passed=`expr $passed + 1`
27129else
27130 failed=`expr $failed + 1`
27131fi
27132
cristy8b350f62009-11-15 23:12:43 +000027133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000027134$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027135if ${ac_cv_lib_umem_umem_free+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027136 $as_echo_n "(cached) " >&6
27137else
27138 ac_check_lib_save_LIBS=$LIBS
27139LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027140cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027141/* end confdefs.h. */
27142
27143/* Override any GCC internal prototype to avoid an error.
27144 Use char because int might match the return type of a GCC
27145 builtin and then its argument prototype would still apply. */
27146#ifdef __cplusplus
27147extern "C"
27148#endif
27149char umem_free ();
27150int
27151main ()
27152{
27153return umem_free ();
27154 ;
27155 return 0;
27156}
27157_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027158if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027159 ac_cv_lib_umem_umem_free=yes
27160else
cristy8b350f62009-11-15 23:12:43 +000027161 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000027162fi
cristy8b350f62009-11-15 23:12:43 +000027163rm -f core conftest.err conftest.$ac_objext \
27164 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027165LIBS=$ac_check_lib_save_LIBS
27166fi
cristy8b350f62009-11-15 23:12:43 +000027167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000027168$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristyda16f162011-02-19 23:52:17 +000027169if test "x$ac_cv_lib_umem_umem_free" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027170 passed=`expr $passed + 1`
27171else
27172 failed=`expr $failed + 1`
27173fi
27174
cristy8b350f62009-11-15 23:12:43 +000027175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027176$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
27177 if test $passed -gt 0; then
27178 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000027179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27180$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027181 have_umem='no (failed tests)'
27182 else
27183 UMEM_LIBS='-lumem'
27184 LIBS="$UMEM_LIBS $LIBS"
27185
cristy8b350f62009-11-15 23:12:43 +000027186$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027187
cristyad38abe2012-12-23 23:03:21 +000027188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27189$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027190 have_umem='yes'
27191 fi
27192 else
cristyad38abe2012-12-23 23:03:21 +000027193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27194$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027195 fi
27196fi
cristy73bd4a52010-10-05 11:24:23 +000027197 if test "$have_umem" = 'yes'; then
27198 HasUMEM_TRUE=
27199 HasUMEM_FALSE='#'
27200else
27201 HasUMEM_TRUE='#'
27202 HasUMEM_FALSE=
27203fi
27204
cristy3ed852e2009-09-05 21:47:34 +000027205
27206
27207#
27208# Add support for ccmalloc memory debugging library if requested
27209#
27210have_ccmalloc='no'
27211CCMALLOC_LIBS=''
27212if test "$enable_ccmalloc" = 'yes'; then
27213 # Extract the first word of "ccmalloc", so it can be a program name with args.
27214set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000027215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000027216$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027217if ${ac_cv_path_CCMALLOCDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027218 $as_echo_n "(cached) " >&6
27219else
27220 case $CCMALLOCDelegate in
27221 [\\/]* | ?:[\\/]*)
27222 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
27223 ;;
27224 *)
27225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27226for as_dir in $PATH
27227do
27228 IFS=$as_save_IFS
27229 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000027230 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000027231 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000027232 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000027233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027234 break 2
27235 fi
27236done
cristy8b350f62009-11-15 23:12:43 +000027237 done
cristy3ed852e2009-09-05 21:47:34 +000027238IFS=$as_save_IFS
27239
27240 ;;
27241esac
27242fi
27243CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
27244if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000027245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000027246$as_echo "$CCMALLOCDelegate" >&6; }
27247else
cristy8b350f62009-11-15 23:12:43 +000027248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027249$as_echo "no" >&6; }
27250fi
27251
27252
27253 if test -n "$CCMALLOCDelegate"; then
27254 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
27255 OLIBS="$LIBS"
27256 # Assume that gcc is used with ccmalloc.
27257 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000027258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027259$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027260if ${ac_cv_lib_ccmalloc_ccmalloc_malloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027261 $as_echo_n "(cached) " >&6
27262else
27263 ac_check_lib_save_LIBS=$LIBS
27264LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027265cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027266/* end confdefs.h. */
27267
27268/* Override any GCC internal prototype to avoid an error.
27269 Use char because int might match the return type of a GCC
27270 builtin and then its argument prototype would still apply. */
27271#ifdef __cplusplus
27272extern "C"
27273#endif
27274char ccmalloc_malloc ();
27275int
27276main ()
27277{
27278return ccmalloc_malloc ();
27279 ;
27280 return 0;
27281}
27282_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027283if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027284 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
27285else
cristy8b350f62009-11-15 23:12:43 +000027286 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000027287fi
cristy8b350f62009-11-15 23:12:43 +000027288rm -f core conftest.err conftest.$ac_objext \
27289 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027290LIBS=$ac_check_lib_save_LIBS
27291fi
cristy8b350f62009-11-15 23:12:43 +000027292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027293$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000027294if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027295 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
27296fi
27297
27298 if test -n "$CCMALLOC_LIBS"; then
27299 LIBS="$OLIBS"
27300 LIBS="$LIBS $CCMALLOC_LIBS"
27301 have_ccmalloc='yes'
27302 else
27303 LIBS="$OLIBS"
27304 fi
27305 fi
27306fi
27307
27308#
cristy944e51f2013-04-16 18:45:02 +000027309# Add support for 'huge pages' if requested
27310#
27311if test "x$enable_hugepages" != "xno"; then :
27312
27313
27314$as_echo "#define HAVE_HUGEPAGES 1" >>confdefs.h
27315
27316
27317fi
27318
27319#
cristy3ed852e2009-09-05 21:47:34 +000027320# Add support for efence memory debugging library if requested
27321#
27322if test "$enable_efence" = 'yes'; then
27323 EFENCE_LIBS='-lefence'
27324 LIBS="$EFENCE_LIBS $LIBS"
27325fi
27326
cristy3ed852e2009-09-05 21:47:34 +000027327
27328#
27329# Check for BZLIB
27330#
27331
27332
27333# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000027334if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027335 withval=$with_bzlib; with_bzlib=$withval
27336else
27337 with_bzlib='yes'
27338fi
27339
27340
27341if test "$with_bzlib" != 'yes'; then
27342 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
27343fi
27344
27345have_bzlib='no'
27346if test "$with_bzlib" != 'no'; then
27347 BZLIB_LIBS=''
cristyad38abe2012-12-23 23:03:21 +000027348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27349$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000027351$as_echo_n "checking for BZLIB... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000027352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27353$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027354 failed=0
27355 passed=0
27356 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000027357 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027358if test "x$ac_cv_header_bzlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027359 passed=`expr $passed + 1`
27360else
27361 failed=`expr $failed + 1`
27362fi
27363
27364
cristy8b350f62009-11-15 23:12:43 +000027365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000027366$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027367if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027368 $as_echo_n "(cached) " >&6
27369else
27370 ac_check_lib_save_LIBS=$LIBS
27371LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027372cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027373/* end confdefs.h. */
27374
27375/* Override any GCC internal prototype to avoid an error.
27376 Use char because int might match the return type of a GCC
27377 builtin and then its argument prototype would still apply. */
27378#ifdef __cplusplus
27379extern "C"
27380#endif
27381char BZ2_bzDecompress ();
27382int
27383main ()
27384{
27385return BZ2_bzDecompress ();
27386 ;
27387 return 0;
27388}
27389_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027390if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027391 ac_cv_lib_bz2_BZ2_bzDecompress=yes
27392else
cristy8b350f62009-11-15 23:12:43 +000027393 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000027394fi
cristy8b350f62009-11-15 23:12:43 +000027395rm -f core conftest.err conftest.$ac_objext \
27396 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027397LIBS=$ac_check_lib_save_LIBS
27398fi
cristy8b350f62009-11-15 23:12:43 +000027399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027400$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027401if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027402 found_libbz=`expr $found_libbz + 1`
27403fi
27404
27405 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000027407$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027408if ${ac_cv_lib_bz2__imp__BZ2_decompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027409 $as_echo_n "(cached) " >&6
27410else
27411 ac_check_lib_save_LIBS=$LIBS
27412LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027413cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027414/* end confdefs.h. */
27415
27416/* Override any GCC internal prototype to avoid an error.
27417 Use char because int might match the return type of a GCC
27418 builtin and then its argument prototype would still apply. */
27419#ifdef __cplusplus
27420extern "C"
27421#endif
27422char _imp__BZ2_decompress ();
27423int
27424main ()
27425{
27426return _imp__BZ2_decompress ();
27427 ;
27428 return 0;
27429}
27430_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027431if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027432 ac_cv_lib_bz2__imp__BZ2_decompress=yes
27433else
cristy8b350f62009-11-15 23:12:43 +000027434 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000027435fi
cristy8b350f62009-11-15 23:12:43 +000027436rm -f core conftest.err conftest.$ac_objext \
27437 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027438LIBS=$ac_check_lib_save_LIBS
27439fi
cristy8b350f62009-11-15 23:12:43 +000027440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027441$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027442if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027443 found_libbz=`expr $found_libbz + 1`
27444fi
27445
27446 fi
27447 if test $found_libbz -gt 0; then
27448 passed=`expr $passed + 1`
27449 else
27450 failed=`expr $failed + 1`
27451 fi
cristy8b350f62009-11-15 23:12:43 +000027452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027453$as_echo_n "checking if BZLIB package is complete... " >&6; }
27454 if test $passed -gt 0; then
27455 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000027456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27457$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027458 have_bzlib='no (failed tests)'
27459 else
27460 BZLIB_LIBS='-lbz2'
27461 LIBS="$BZLIB_LIBS $LIBS"
27462
cristy8b350f62009-11-15 23:12:43 +000027463$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027464
cristyad38abe2012-12-23 23:03:21 +000027465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27466$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027467 have_bzlib='yes'
27468 fi
27469 else
cristyad38abe2012-12-23 23:03:21 +000027470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27471$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027472 fi
27473fi
cristy73bd4a52010-10-05 11:24:23 +000027474 if test "$have_bzlib" = 'yes'; then
27475 BZLIB_DELEGATE_TRUE=
27476 BZLIB_DELEGATE_FALSE='#'
27477else
27478 BZLIB_DELEGATE_TRUE='#'
27479 BZLIB_DELEGATE_FALSE=
27480fi
27481
cristy3ed852e2009-09-05 21:47:34 +000027482
27483
27484#
27485# Find the X11 include and library directories.
27486#
27487IPC_LIBS=''
27488X11_LIBS=''
27489XEXT_LIBS=''
27490XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000027491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000027492$as_echo_n "checking for X... " >&6; }
27493
27494
27495# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000027496if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000027497 withval=$with_x;
27498fi
27499
27500# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
27501if test "x$with_x" = xno; then
27502 # The user explicitly disabled X.
27503 have_x=disabled
27504else
27505 case $x_includes,$x_libraries in #(
cristy98dddb52010-11-04 00:30:15 +000027506 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
cristyda16f162011-02-19 23:52:17 +000027507 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
cristyc7083c12009-10-14 03:16:55 +000027508 $as_echo_n "(cached) " >&6
27509else
27510 # One or both of the vars are not set, and there is no cached value.
27511ac_x_includes=no ac_x_libraries=no
27512rm -f -r conftest.dir
27513if mkdir conftest.dir; then
27514 cd conftest.dir
27515 cat >Imakefile <<'_ACEOF'
27516incroot:
27517 @echo incroot='${INCROOT}'
27518usrlibdir:
27519 @echo usrlibdir='${USRLIBDIR}'
27520libdir:
27521 @echo libdir='${LIBDIR}'
27522_ACEOF
27523 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
cristy98dddb52010-11-04 00:30:15 +000027524 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristyc7083c12009-10-14 03:16:55 +000027525 for ac_var in incroot usrlibdir libdir; do
27526 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
27527 done
27528 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
27529 for ac_extension in a so sl dylib la dll; do
27530 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
27531 test -f "$ac_im_libdir/libX11.$ac_extension"; then
27532 ac_im_usrlibdir=$ac_im_libdir; break
27533 fi
27534 done
27535 # Screen out bogus values from the imake configuration. They are
27536 # bogus both because they are the default anyway, and because
27537 # using them would break gcc on systems where it needs fixed includes.
27538 case $ac_im_incroot in
27539 /usr/include) ac_x_includes= ;;
27540 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
27541 esac
27542 case $ac_im_usrlibdir in
27543 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
27544 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
27545 esac
27546 fi
27547 cd ..
27548 rm -f -r conftest.dir
27549fi
27550
27551# Standard set of common directories for X headers.
27552# Check X11 before X11Rn because it is often a symlink to the current release.
27553ac_x_header_dirs='
27554/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000027555/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000027556/usr/X11R6/include
27557/usr/X11R5/include
27558/usr/X11R4/include
27559
27560/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000027561/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000027562/usr/include/X11R6
27563/usr/include/X11R5
27564/usr/include/X11R4
27565
27566/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000027567/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000027568/usr/local/X11R6/include
27569/usr/local/X11R5/include
27570/usr/local/X11R4/include
27571
27572/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000027573/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000027574/usr/local/include/X11R6
27575/usr/local/include/X11R5
27576/usr/local/include/X11R4
27577
27578/usr/X386/include
27579/usr/x386/include
27580/usr/XFree86/include/X11
27581
27582/usr/include
27583/usr/local/include
27584/usr/unsupported/include
27585/usr/athena/include
27586/usr/local/x11r5/include
27587/usr/lpp/Xamples/include
27588
27589/usr/openwin/include
27590/usr/openwin/share/include'
27591
27592if test "$ac_x_includes" = no; then
27593 # Guess where to find include files, by looking for Xlib.h.
27594 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000027595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027596/* end confdefs.h. */
27597#include <X11/Xlib.h>
27598_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027599if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000027600 # We can compile using X headers with no special include directory.
27601ac_x_includes=
27602else
cristyc7083c12009-10-14 03:16:55 +000027603 for ac_dir in $ac_x_header_dirs; do
27604 if test -r "$ac_dir/X11/Xlib.h"; then
27605 ac_x_includes=$ac_dir
27606 break
27607 fi
27608done
27609fi
cristyda16f162011-02-19 23:52:17 +000027610rm -f conftest.err conftest.i conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027611fi # $ac_x_includes = no
27612
27613if test "$ac_x_libraries" = no; then
27614 # Check for the libraries.
27615 # See if we find them without any special options.
27616 # Don't add to $LIBS permanently.
27617 ac_save_LIBS=$LIBS
27618 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027620/* end confdefs.h. */
27621#include <X11/Xlib.h>
27622int
27623main ()
27624{
27625XrmInitialize ()
27626 ;
27627 return 0;
27628}
27629_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027630if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000027631 LIBS=$ac_save_LIBS
27632# We can link X programs with no special library path.
27633ac_x_libraries=
27634else
cristy8b350f62009-11-15 23:12:43 +000027635 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000027636for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
27637do
27638 # Don't even attempt the hair of trying to link an X program!
27639 for ac_extension in a so sl dylib la dll; do
27640 if test -r "$ac_dir/libX11.$ac_extension"; then
27641 ac_x_libraries=$ac_dir
27642 break 2
27643 fi
27644 done
27645done
27646fi
cristy8b350f62009-11-15 23:12:43 +000027647rm -f core conftest.err conftest.$ac_objext \
27648 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027649fi # $ac_x_libraries = no
27650
27651case $ac_x_includes,$ac_x_libraries in #(
27652 no,* | *,no | *\'*)
27653 # Didn't find X, or a directory has "'" in its name.
27654 ac_cv_have_x="have_x=no";; #(
27655 *)
27656 # Record where we found X for the cache.
27657 ac_cv_have_x="have_x=yes\
27658 ac_x_includes='$ac_x_includes'\
27659 ac_x_libraries='$ac_x_libraries'"
27660esac
27661fi
27662;; #(
27663 *) have_x=yes;;
27664 esac
27665 eval "$ac_cv_have_x"
27666fi # $with_x != no
27667
27668if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000027669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000027670$as_echo "$have_x" >&6; }
27671 no_x=yes
27672else
27673 # If each of the values was on the command line, it overrides each guess.
27674 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
27675 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
27676 # Update the cache value to reflect the command line values.
27677 ac_cv_have_x="have_x=yes\
27678 ac_x_includes='$x_includes'\
27679 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000027680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000027681$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
27682fi
27683
cristy3ed852e2009-09-05 21:47:34 +000027684if test "$no_x" = yes; then
27685 # Not all programs may use this symbol, but it does not hurt to define it.
27686
cristy8b350f62009-11-15 23:12:43 +000027687$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027688
27689 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
27690else
27691 if test -n "$x_includes"; then
27692 X_CFLAGS="$X_CFLAGS -I$x_includes"
27693 fi
27694
27695 # It would also be nice to do this for all -L options, not just this one.
27696 if test -n "$x_libraries"; then
27697 X_LIBS="$X_LIBS -L$x_libraries"
27698 # For Solaris; some versions of Sun CC require a space after -R and
27699 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000027700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000027701$as_echo_n "checking whether -R must be followed by a space... " >&6; }
27702 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
27703 ac_xsave_c_werror_flag=$ac_c_werror_flag
27704 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000027705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027706/* end confdefs.h. */
27707
27708int
27709main ()
27710{
27711
27712 ;
27713 return 0;
27714}
27715_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027716if ac_fn_c_try_link "$LINENO"; then :
27717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027718$as_echo "no" >&6; }
27719 X_LIBS="$X_LIBS -R$x_libraries"
27720else
cristy8b350f62009-11-15 23:12:43 +000027721 LIBS="$ac_xsave_LIBS -R $x_libraries"
27722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027723/* end confdefs.h. */
27724
27725int
27726main ()
27727{
27728
27729 ;
27730 return 0;
27731}
27732_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027733if ac_fn_c_try_link "$LINENO"; then :
27734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027735$as_echo "yes" >&6; }
27736 X_LIBS="$X_LIBS -R $x_libraries"
27737else
cristy8b350f62009-11-15 23:12:43 +000027738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000027739$as_echo "neither works" >&6; }
27740fi
cristy8b350f62009-11-15 23:12:43 +000027741rm -f core conftest.err conftest.$ac_objext \
27742 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027743fi
cristy8b350f62009-11-15 23:12:43 +000027744rm -f core conftest.err conftest.$ac_objext \
27745 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027746 ac_c_werror_flag=$ac_xsave_c_werror_flag
27747 LIBS=$ac_xsave_LIBS
27748 fi
27749
27750 # Check for system-dependent libraries X programs must link with.
27751 # Do this before checking for the system-independent R6 libraries
27752 # (-lICE), since we may need -lsocket or whatever for X linking.
27753
27754 if test "$ISC" = yes; then
27755 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
27756 else
27757 # Martyn Johnson says this is needed for Ultrix, if the X
27758 # libraries were built with DECnet support. And Karl Berry says
27759 # the Alpha needs dnet_stub (dnet does not exist).
27760 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000027761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027762/* end confdefs.h. */
27763
27764/* Override any GCC internal prototype to avoid an error.
27765 Use char because int might match the return type of a GCC
27766 builtin and then its argument prototype would still apply. */
27767#ifdef __cplusplus
27768extern "C"
27769#endif
27770char XOpenDisplay ();
27771int
27772main ()
27773{
27774return XOpenDisplay ();
27775 ;
27776 return 0;
27777}
27778_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027779if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027780
cristy8b350f62009-11-15 23:12:43 +000027781else
27782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000027783$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027784if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027785 $as_echo_n "(cached) " >&6
27786else
27787 ac_check_lib_save_LIBS=$LIBS
27788LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027789cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027790/* end confdefs.h. */
27791
27792/* Override any GCC internal prototype to avoid an error.
27793 Use char because int might match the return type of a GCC
27794 builtin and then its argument prototype would still apply. */
27795#ifdef __cplusplus
27796extern "C"
27797#endif
27798char dnet_ntoa ();
27799int
27800main ()
27801{
27802return dnet_ntoa ();
27803 ;
27804 return 0;
27805}
27806_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027807if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027808 ac_cv_lib_dnet_dnet_ntoa=yes
27809else
cristy8b350f62009-11-15 23:12:43 +000027810 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000027811fi
cristy8b350f62009-11-15 23:12:43 +000027812rm -f core conftest.err conftest.$ac_objext \
27813 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027814LIBS=$ac_check_lib_save_LIBS
27815fi
cristy8b350f62009-11-15 23:12:43 +000027816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027817$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027818if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027819 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
27820fi
27821
27822 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000027823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000027824$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027825if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027826 $as_echo_n "(cached) " >&6
27827else
27828 ac_check_lib_save_LIBS=$LIBS
27829LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027830cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027831/* end confdefs.h. */
27832
27833/* Override any GCC internal prototype to avoid an error.
27834 Use char because int might match the return type of a GCC
27835 builtin and then its argument prototype would still apply. */
27836#ifdef __cplusplus
27837extern "C"
27838#endif
27839char dnet_ntoa ();
27840int
27841main ()
27842{
27843return dnet_ntoa ();
27844 ;
27845 return 0;
27846}
27847_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027848if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027849 ac_cv_lib_dnet_stub_dnet_ntoa=yes
27850else
cristy8b350f62009-11-15 23:12:43 +000027851 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000027852fi
cristy8b350f62009-11-15 23:12:43 +000027853rm -f core conftest.err conftest.$ac_objext \
27854 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027855LIBS=$ac_check_lib_save_LIBS
27856fi
cristy8b350f62009-11-15 23:12:43 +000027857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027858$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027859if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027860 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
27861fi
27862
27863 fi
27864fi
cristy8b350f62009-11-15 23:12:43 +000027865rm -f core conftest.err conftest.$ac_objext \
27866 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027867 LIBS="$ac_xsave_LIBS"
27868
27869 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
27870 # to get the SysV transport functions.
27871 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
27872 # needs -lnsl.
27873 # The nsl library prevents programs from opening the X display
27874 # on Irix 5.2, according to T.E. Dickey.
27875 # The functions gethostbyname, getservbyname, and inet_addr are
27876 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000027877 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
cristyda16f162011-02-19 23:52:17 +000027878if test "x$ac_cv_func_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027879
cristy3ed852e2009-09-05 21:47:34 +000027880fi
27881
cristy3ed852e2009-09-05 21:47:34 +000027882 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000027884$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027885if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027886 $as_echo_n "(cached) " >&6
27887else
27888 ac_check_lib_save_LIBS=$LIBS
27889LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027890cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027891/* end confdefs.h. */
27892
27893/* Override any GCC internal prototype to avoid an error.
27894 Use char because int might match the return type of a GCC
27895 builtin and then its argument prototype would still apply. */
27896#ifdef __cplusplus
27897extern "C"
27898#endif
27899char gethostbyname ();
27900int
27901main ()
27902{
27903return gethostbyname ();
27904 ;
27905 return 0;
27906}
27907_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027908if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027909 ac_cv_lib_nsl_gethostbyname=yes
27910else
cristy8b350f62009-11-15 23:12:43 +000027911 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027912fi
cristy8b350f62009-11-15 23:12:43 +000027913rm -f core conftest.err conftest.$ac_objext \
27914 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027915LIBS=$ac_check_lib_save_LIBS
27916fi
cristy8b350f62009-11-15 23:12:43 +000027917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027918$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027919if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027920 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
27921fi
27922
27923 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000027925$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027926if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027927 $as_echo_n "(cached) " >&6
27928else
27929 ac_check_lib_save_LIBS=$LIBS
27930LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027931cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027932/* end confdefs.h. */
27933
27934/* Override any GCC internal prototype to avoid an error.
27935 Use char because int might match the return type of a GCC
27936 builtin and then its argument prototype would still apply. */
27937#ifdef __cplusplus
27938extern "C"
27939#endif
27940char gethostbyname ();
27941int
27942main ()
27943{
27944return gethostbyname ();
27945 ;
27946 return 0;
27947}
27948_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027949if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027950 ac_cv_lib_bsd_gethostbyname=yes
27951else
cristy8b350f62009-11-15 23:12:43 +000027952 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027953fi
cristy8b350f62009-11-15 23:12:43 +000027954rm -f core conftest.err conftest.$ac_objext \
27955 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027956LIBS=$ac_check_lib_save_LIBS
27957fi
cristy8b350f62009-11-15 23:12:43 +000027958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027959$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027960if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027961 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
27962fi
27963
27964 fi
27965 fi
27966
27967 # lieder@skyler.mavd.honeywell.com says without -lsocket,
27968 # socket/setsockopt and other routines are undefined under SCO ODT
27969 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
27970 # on later versions), says Simon Leinen: it contains gethostby*
27971 # variants that don't use the name server (or something). -lsocket
27972 # must be given before -lnsl if both are needed. We assume that
27973 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000027974 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
cristyda16f162011-02-19 23:52:17 +000027975if test "x$ac_cv_func_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027976
cristy3ed852e2009-09-05 21:47:34 +000027977fi
27978
cristy3ed852e2009-09-05 21:47:34 +000027979 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000027980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000027981$as_echo_n "checking for connect in -lsocket... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027982if ${ac_cv_lib_socket_connect+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027983 $as_echo_n "(cached) " >&6
27984else
27985 ac_check_lib_save_LIBS=$LIBS
27986LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027987cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027988/* end confdefs.h. */
27989
27990/* Override any GCC internal prototype to avoid an error.
27991 Use char because int might match the return type of a GCC
27992 builtin and then its argument prototype would still apply. */
27993#ifdef __cplusplus
27994extern "C"
27995#endif
27996char connect ();
27997int
27998main ()
27999{
28000return connect ();
28001 ;
28002 return 0;
28003}
28004_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028005if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028006 ac_cv_lib_socket_connect=yes
28007else
cristy8b350f62009-11-15 23:12:43 +000028008 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000028009fi
cristy8b350f62009-11-15 23:12:43 +000028010rm -f core conftest.err conftest.$ac_objext \
28011 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028012LIBS=$ac_check_lib_save_LIBS
28013fi
cristy8b350f62009-11-15 23:12:43 +000028014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000028015$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristyda16f162011-02-19 23:52:17 +000028016if test "x$ac_cv_lib_socket_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028017 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
28018fi
28019
28020 fi
28021
28022 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000028023 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
cristyda16f162011-02-19 23:52:17 +000028024if test "x$ac_cv_func_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028025
cristy3ed852e2009-09-05 21:47:34 +000028026fi
28027
cristy3ed852e2009-09-05 21:47:34 +000028028 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000028029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000028030$as_echo_n "checking for remove in -lposix... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028031if ${ac_cv_lib_posix_remove+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028032 $as_echo_n "(cached) " >&6
28033else
28034 ac_check_lib_save_LIBS=$LIBS
28035LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028036cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028037/* end confdefs.h. */
28038
28039/* Override any GCC internal prototype to avoid an error.
28040 Use char because int might match the return type of a GCC
28041 builtin and then its argument prototype would still apply. */
28042#ifdef __cplusplus
28043extern "C"
28044#endif
28045char remove ();
28046int
28047main ()
28048{
28049return remove ();
28050 ;
28051 return 0;
28052}
28053_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028054if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028055 ac_cv_lib_posix_remove=yes
28056else
cristy8b350f62009-11-15 23:12:43 +000028057 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000028058fi
cristy8b350f62009-11-15 23:12:43 +000028059rm -f core conftest.err conftest.$ac_objext \
28060 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028061LIBS=$ac_check_lib_save_LIBS
28062fi
cristy8b350f62009-11-15 23:12:43 +000028063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000028064$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristyda16f162011-02-19 23:52:17 +000028065if test "x$ac_cv_lib_posix_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028066 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
28067fi
28068
28069 fi
28070
28071 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000028072 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
cristyda16f162011-02-19 23:52:17 +000028073if test "x$ac_cv_func_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028074
cristy3ed852e2009-09-05 21:47:34 +000028075fi
28076
cristy3ed852e2009-09-05 21:47:34 +000028077 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000028078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000028079$as_echo_n "checking for shmat in -lipc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028080if ${ac_cv_lib_ipc_shmat+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028081 $as_echo_n "(cached) " >&6
28082else
28083 ac_check_lib_save_LIBS=$LIBS
28084LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028085cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028086/* end confdefs.h. */
28087
28088/* Override any GCC internal prototype to avoid an error.
28089 Use char because int might match the return type of a GCC
28090 builtin and then its argument prototype would still apply. */
28091#ifdef __cplusplus
28092extern "C"
28093#endif
28094char shmat ();
28095int
28096main ()
28097{
28098return shmat ();
28099 ;
28100 return 0;
28101}
28102_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028103if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028104 ac_cv_lib_ipc_shmat=yes
28105else
cristy8b350f62009-11-15 23:12:43 +000028106 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000028107fi
cristy8b350f62009-11-15 23:12:43 +000028108rm -f core conftest.err conftest.$ac_objext \
28109 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028110LIBS=$ac_check_lib_save_LIBS
28111fi
cristy8b350f62009-11-15 23:12:43 +000028112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000028113$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristyda16f162011-02-19 23:52:17 +000028114if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028115 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
28116fi
28117
28118 fi
28119 fi
28120
28121 # Check for libraries that X11R6 Xt/Xaw programs need.
28122 ac_save_LDFLAGS=$LDFLAGS
28123 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
28124 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
28125 # check for ICE first), but we must link in the order -lSM -lICE or
28126 # we get undefined symbols. So assume we have SM if we have ICE.
28127 # These have to be linked with before -lX11, unlike the other
28128 # libraries we check for below, so use a different variable.
28129 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000028130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000028131$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028132if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028133 $as_echo_n "(cached) " >&6
28134else
28135 ac_check_lib_save_LIBS=$LIBS
28136LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028137cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028138/* end confdefs.h. */
28139
28140/* Override any GCC internal prototype to avoid an error.
28141 Use char because int might match the return type of a GCC
28142 builtin and then its argument prototype would still apply. */
28143#ifdef __cplusplus
28144extern "C"
28145#endif
28146char IceConnectionNumber ();
28147int
28148main ()
28149{
28150return IceConnectionNumber ();
28151 ;
28152 return 0;
28153}
28154_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028155if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028156 ac_cv_lib_ICE_IceConnectionNumber=yes
28157else
cristy8b350f62009-11-15 23:12:43 +000028158 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000028159fi
cristy8b350f62009-11-15 23:12:43 +000028160rm -f core conftest.err conftest.$ac_objext \
28161 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028162LIBS=$ac_check_lib_save_LIBS
28163fi
cristy8b350f62009-11-15 23:12:43 +000028164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000028165$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristyda16f162011-02-19 23:52:17 +000028166if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028167 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
28168fi
28169
28170 LDFLAGS=$ac_save_LDFLAGS
28171
28172fi
28173
28174if test "$no_x" != 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000028175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28176$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000028178$as_echo_n "checking for X11... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28180$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028181 LDFLAGS="$LDFLAGS $X_LIBS"
28182 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
28183 LIBS="$X11_LIBS $LIBS"
28184 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
28185
28186
cristy8b350f62009-11-15 23:12:43 +000028187$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028188
28189 #
28190 # Check for X11 shared memory extension
28191 #
28192 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000028193 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
cristyda16f162011-02-19 23:52:17 +000028194if test "x$ac_cv_func_shmctl" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028195 have_shmctl='yes'
28196fi
28197
28198 if test "$have_shmctl" != 'yes'; then
28199 PERSIST_LIBS=$LIBS
28200 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000028201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028202/* end confdefs.h. */
28203
28204/* Override any GCC internal prototype to avoid an error.
28205 Use char because int might match the return type of a GCC
28206 builtin and then its argument prototype would still apply. */
28207#ifdef __cplusplus
28208extern "C"
28209#endif
28210char shmctl ();
28211int
28212main ()
28213{
28214return shmctl ();
28215 ;
28216 return 0;
28217}
28218_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028219if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028220 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000028221fi
cristy8b350f62009-11-15 23:12:43 +000028222rm -f core conftest.err conftest.$ac_objext \
28223 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028224 LIBS=$PERSIST_LIBS
28225 fi
28226
28227 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000028228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028229$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028230if ${ac_cv_lib_Xext_XShmAttach+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028231 $as_echo_n "(cached) " >&6
28232else
28233 ac_check_lib_save_LIBS=$LIBS
28234LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028235cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028236/* end confdefs.h. */
28237
28238/* Override any GCC internal prototype to avoid an error.
28239 Use char because int might match the return type of a GCC
28240 builtin and then its argument prototype would still apply. */
28241#ifdef __cplusplus
28242extern "C"
28243#endif
28244char XShmAttach ();
28245int
28246main ()
28247{
28248return XShmAttach ();
28249 ;
28250 return 0;
28251}
28252_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028253if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028254 ac_cv_lib_Xext_XShmAttach=yes
28255else
cristy8b350f62009-11-15 23:12:43 +000028256 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000028257fi
cristy8b350f62009-11-15 23:12:43 +000028258rm -f core conftest.err conftest.$ac_objext \
28259 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028260LIBS=$ac_check_lib_save_LIBS
28261fi
cristy8b350f62009-11-15 23:12:43 +000028262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000028263$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristyda16f162011-02-19 23:52:17 +000028264if test "x$ac_cv_lib_Xext_XShmAttach" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028265 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000028266$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028267
28268fi
28269
28270 fi
28271
28272 #
28273 # Check for X11 shape extension
28274 #
cristy8b350f62009-11-15 23:12:43 +000028275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028276$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028277if ${ac_cv_lib_Xext_XShapeCombineMask+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028278 $as_echo_n "(cached) " >&6
28279else
28280 ac_check_lib_save_LIBS=$LIBS
28281LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028282cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028283/* end confdefs.h. */
28284
28285/* Override any GCC internal prototype to avoid an error.
28286 Use char because int might match the return type of a GCC
28287 builtin and then its argument prototype would still apply. */
28288#ifdef __cplusplus
28289extern "C"
28290#endif
28291char XShapeCombineMask ();
28292int
28293main ()
28294{
28295return XShapeCombineMask ();
28296 ;
28297 return 0;
28298}
28299_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028300if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028301 ac_cv_lib_Xext_XShapeCombineMask=yes
28302else
cristy8b350f62009-11-15 23:12:43 +000028303 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000028304fi
cristy8b350f62009-11-15 23:12:43 +000028305rm -f core conftest.err conftest.$ac_objext \
28306 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028307LIBS=$ac_check_lib_save_LIBS
28308fi
cristy8b350f62009-11-15 23:12:43 +000028309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000028310$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristyda16f162011-02-19 23:52:17 +000028311if test "x$ac_cv_lib_Xext_XShapeCombineMask" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028312 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000028313$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028314
28315fi
28316
cristy8b350f62009-11-15 23:12:43 +000028317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000028318$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028319if ${ac_cv_lib_Xt_XtSetEventDispatcher+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028320 $as_echo_n "(cached) " >&6
28321else
28322 ac_check_lib_save_LIBS=$LIBS
28323LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028324cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028325/* end confdefs.h. */
28326
28327/* Override any GCC internal prototype to avoid an error.
28328 Use char because int might match the return type of a GCC
28329 builtin and then its argument prototype would still apply. */
28330#ifdef __cplusplus
28331extern "C"
28332#endif
28333char XtSetEventDispatcher ();
28334int
28335main ()
28336{
28337return XtSetEventDispatcher ();
28338 ;
28339 return 0;
28340}
28341_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028342if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028343 ac_cv_lib_Xt_XtSetEventDispatcher=yes
28344else
cristy8b350f62009-11-15 23:12:43 +000028345 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000028346fi
cristy8b350f62009-11-15 23:12:43 +000028347rm -f core conftest.err conftest.$ac_objext \
28348 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028349LIBS=$ac_check_lib_save_LIBS
28350fi
cristy8b350f62009-11-15 23:12:43 +000028351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000028352$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristyda16f162011-02-19 23:52:17 +000028353if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028354 XT_LIBS='-lXt'
28355fi
28356
28357 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
28358fi
28359if test "$no_x" != 'yes'; then
28360 have_x='yes'
28361else
28362 have_x='no'
28363fi
cristy73bd4a52010-10-05 11:24:23 +000028364 if test "$have_x" = 'yes'; then
28365 X11_DELEGATE_TRUE=
28366 X11_DELEGATE_FALSE='#'
28367else
28368 X11_DELEGATE_TRUE='#'
28369 X11_DELEGATE_FALSE=
28370fi
28371
cristy3ed852e2009-09-05 21:47:34 +000028372
28373
28374
28375
28376#
28377# Check for ZLIB
28378#
28379
28380# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000028381if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028382 withval=$with_zlib; with_zlib=$withval
28383else
28384 with_zlib='yes'
28385fi
28386
28387
28388if test "$with_zlib" != 'yes'; then
28389 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
28390fi
28391
28392have_zlib='no'
cristy32f75d42015-06-05 18:46:23 +000028393ZLIB_CFLAGS=""
28394ZLIB_LIBS=""
28395ZLIB_PKG=""
28396if test "x$with_zlib" = "xyes"; then
28397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristyad38abe2012-12-23 23:03:21 +000028398$as_echo "-------------------------------------------------------------" >&6; }
cristy32f75d42015-06-05 18:46:23 +000028399
28400pkg_failed=no
28401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000028402$as_echo_n "checking for ZLIB... " >&6; }
cristy32f75d42015-06-05 18:46:23 +000028403
28404if test -n "$ZLIB_CFLAGS"; then
28405 pkg_cv_ZLIB_CFLAGS="$ZLIB_CFLAGS"
28406 elif test -n "$PKG_CONFIG"; then
28407 if test -n "$PKG_CONFIG" && \
28408 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib >= 1.0.0\""; } >&5
28409 ($PKG_CONFIG --exists --print-errors "zlib >= 1.0.0") 2>&5
28410 ac_status=$?
28411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28412 test $ac_status = 0; }; then
28413 pkg_cv_ZLIB_CFLAGS=`$PKG_CONFIG --cflags "zlib >= 1.0.0" 2>/dev/null`
28414 test "x$?" != "x0" && pkg_failed=yes
cristy3ed852e2009-09-05 21:47:34 +000028415else
cristy32f75d42015-06-05 18:46:23 +000028416 pkg_failed=yes
28417fi
28418 else
28419 pkg_failed=untried
28420fi
28421if test -n "$ZLIB_LIBS"; then
28422 pkg_cv_ZLIB_LIBS="$ZLIB_LIBS"
28423 elif test -n "$PKG_CONFIG"; then
28424 if test -n "$PKG_CONFIG" && \
28425 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib >= 1.0.0\""; } >&5
28426 ($PKG_CONFIG --exists --print-errors "zlib >= 1.0.0") 2>&5
28427 ac_status=$?
28428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28429 test $ac_status = 0; }; then
28430 pkg_cv_ZLIB_LIBS=`$PKG_CONFIG --libs "zlib >= 1.0.0" 2>/dev/null`
28431 test "x$?" != "x0" && pkg_failed=yes
28432else
28433 pkg_failed=yes
28434fi
28435 else
28436 pkg_failed=untried
cristy3ed852e2009-09-05 21:47:34 +000028437fi
28438
28439
cristy3ed852e2009-09-05 21:47:34 +000028440
cristy32f75d42015-06-05 18:46:23 +000028441if test $pkg_failed = yes; then
28442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28443$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028444
cristy32f75d42015-06-05 18:46:23 +000028445if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28446 _pkg_short_errors_supported=yes
cristy3ed852e2009-09-05 21:47:34 +000028447else
cristy32f75d42015-06-05 18:46:23 +000028448 _pkg_short_errors_supported=no
cristy3ed852e2009-09-05 21:47:34 +000028449fi
cristy32f75d42015-06-05 18:46:23 +000028450 if test $_pkg_short_errors_supported = yes; then
28451 ZLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "zlib >= 1.0.0" 2>&1`
cristy3ed852e2009-09-05 21:47:34 +000028452 else
cristy32f75d42015-06-05 18:46:23 +000028453 ZLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "zlib >= 1.0.0" 2>&1`
28454 fi
28455 # Put the nasty error message in config.log where it belongs
28456 echo "$ZLIB_PKG_ERRORS" >&5
28457
28458 have_zlib=no
28459elif test $pkg_failed = untried; then
28460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28461$as_echo "no" >&6; }
28462 have_zlib=no
28463else
28464 ZLIB_CFLAGS=$pkg_cv_ZLIB_CFLAGS
28465 ZLIB_LIBS=$pkg_cv_ZLIB_LIBS
28466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28467$as_echo "yes" >&6; }
28468 have_zlib=yes
28469fi
28470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28471$as_echo "" >&6; }
28472fi
28473
28474if test "$have_zlib" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000028475
cristy8b350f62009-11-15 23:12:43 +000028476$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028477
cristy32f75d42015-06-05 18:46:23 +000028478 CFLAGS="$ZLIB_CFLAGS $CFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000028479fi
cristy32f75d42015-06-05 18:46:23 +000028480
cristy73bd4a52010-10-05 11:24:23 +000028481 if test "$have_zlib" = 'yes'; then
28482 ZLIB_DELEGATE_TRUE=
28483 ZLIB_DELEGATE_FALSE='#'
28484else
28485 ZLIB_DELEGATE_TRUE='#'
28486 ZLIB_DELEGATE_FALSE=
28487fi
28488
cristy3ed852e2009-09-05 21:47:34 +000028489
28490
cristy32f75d42015-06-05 18:46:23 +000028491
28492
cristy5eef09f2012-10-16 12:08:28 +000028493# whether modules are built or not.
28494with_ltdl='yes'
28495have_ltdl='no'
28496LTDL_LIBS=''
28497if test "$build_modules" != 'no' ; then
cristyad38abe2012-12-23 23:03:21 +000028498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28499$as_echo "-------------------------------------------------------------" >&6; }
cristy5eef09f2012-10-16 12:08:28 +000028500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libltdl" >&5
28501$as_echo_n "checking for libltdl... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28503$as_echo "" >&6; }
cristy5eef09f2012-10-16 12:08:28 +000028504 failed=0
28505 passed=0
28506 ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default"
28507if test "x$ac_cv_header_ltdl_h" = xyes; then :
28508 passed=`expr $passed + 1`
28509else
28510 failed=`expr $failed + 1`
28511fi
28512
28513
28514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlinit in -lltdl" >&5
28515$as_echo_n "checking for lt_dlinit in -lltdl... " >&6; }
28516if ${ac_cv_lib_ltdl_lt_dlinit+:} false; then :
28517 $as_echo_n "(cached) " >&6
28518else
28519 ac_check_lib_save_LIBS=$LIBS
28520LIBS="-lltdl $LIBS"
28521cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28522/* end confdefs.h. */
28523
28524/* Override any GCC internal prototype to avoid an error.
28525 Use char because int might match the return type of a GCC
28526 builtin and then its argument prototype would still apply. */
28527#ifdef __cplusplus
28528extern "C"
28529#endif
28530char lt_dlinit ();
28531int
28532main ()
28533{
28534return lt_dlinit ();
28535 ;
28536 return 0;
28537}
28538_ACEOF
28539if ac_fn_c_try_link "$LINENO"; then :
28540 ac_cv_lib_ltdl_lt_dlinit=yes
28541else
28542 ac_cv_lib_ltdl_lt_dlinit=no
28543fi
28544rm -f core conftest.err conftest.$ac_objext \
28545 conftest$ac_exeext conftest.$ac_ext
28546LIBS=$ac_check_lib_save_LIBS
28547fi
28548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
28549$as_echo "$ac_cv_lib_ltdl_lt_dlinit" >&6; }
28550if test "x$ac_cv_lib_ltdl_lt_dlinit" = xyes; then :
28551 passed=`expr $passed + 1`
28552else
28553 failed=`expr $failed + 1`
28554fi
28555
28556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libltdl package is complete" >&5
28557$as_echo_n "checking if libltdl package is complete... " >&6; }
28558 if test $passed -gt 0 ; then
28559 if test $failed -gt 0 ; then
28560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28561$as_echo "no -- some components failed test" >&6; }
28562 have_ltdl='no (failed tests)'
28563 else
28564 LTDL_LIBS='-lltdl'
28565 LIBS="$LTDL_LIBS $LIBS"
28566
28567$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
28568
28569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28570$as_echo "yes" >&6; }
28571 have_ltdl='yes'
28572 fi
28573 else
28574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28575$as_echo "no" >&6; }
28576 fi
cristyaf4cbf32012-10-16 23:47:41 +000028577 if test "$have_ltdl" != 'yes' ; then
28578 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28579$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28580as_fn_error 1 "libltdl is required for modules build
28581See \`config.log' for more details" "$LINENO" 5; }
28582 fi
cristy5eef09f2012-10-16 12:08:28 +000028583fi
28584 if test "$have_ltdl" != 'no'; then
28585 WITH_LTDL_TRUE=
28586 WITH_LTDL_FALSE='#'
28587else
28588 WITH_LTDL_TRUE='#'
28589 WITH_LTDL_FALSE=
28590fi
28591
28592
cristy3ed852e2009-09-05 21:47:34 +000028593#
28594# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
28595#
28596LIB_DL=''
28597if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000028598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000028599$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028600if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028601 $as_echo_n "(cached) " >&6
28602else
28603 ac_check_lib_save_LIBS=$LIBS
28604LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028605cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028606/* end confdefs.h. */
28607
28608/* Override any GCC internal prototype to avoid an error.
28609 Use char because int might match the return type of a GCC
28610 builtin and then its argument prototype would still apply. */
28611#ifdef __cplusplus
28612extern "C"
28613#endif
28614char dlopen ();
28615int
28616main ()
28617{
28618return dlopen ();
28619 ;
28620 return 0;
28621}
28622_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028623if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028624 ac_cv_lib_dl_dlopen=yes
28625else
cristy8b350f62009-11-15 23:12:43 +000028626 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000028627fi
cristy8b350f62009-11-15 23:12:43 +000028628rm -f core conftest.err conftest.$ac_objext \
28629 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028630LIBS=$ac_check_lib_save_LIBS
28631fi
cristy8b350f62009-11-15 23:12:43 +000028632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000028633$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000028634if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028635 LIB_DL='-ldl'
28636fi
28637
28638 LIBS="$LIB_DL $LIBS"
28639fi
28640
28641
28642
28643#
cristy5a3dc992014-12-05 19:50:04 +000028644# Set Apple font directory.
28645#
28646
28647# Check whether --with-apple-font-dir was given.
28648if test "${with_apple_font_dir+set}" = set; then :
28649 withval=$with_apple_font_dir; with_apple_font_dir=$withval
28650else
28651 with_apple_font_dir='default'
28652fi
28653
28654
28655if test "$with_apple_font_dir" != 'default'; then
28656 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-apple-font-dir=$with_apple_font_dir "
28657fi
28658
28659
28660#
cristy3ed852e2009-09-05 21:47:34 +000028661# Check for Autotrace delegate library.
28662#
28663
28664# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000028665if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028666 withval=$with_autotrace; with_autotrace=$withval
28667else
28668 with_autotrace='no'
28669fi
28670
28671
28672if test "$with_autotrace" != 'yes'; then
28673 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
28674fi
28675
28676have_autotrace='no'
28677AUTOTRACE_CFLAGS=""
28678AUTOTRACE_LIBS=""
28679AUTOTRACE_PKG=""
28680if test "x$with_autotrace" = "xyes"; then
cristy32f75d42015-06-05 18:46:23 +000028681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristyad38abe2012-12-23 23:03:21 +000028682$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000028683
28684pkg_failed=no
28685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
28686$as_echo_n "checking for AUTOTRACE... " >&6; }
28687
28688if test -n "$AUTOTRACE_CFLAGS"; then
28689 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
28690 elif test -n "$PKG_CONFIG"; then
28691 if test -n "$PKG_CONFIG" && \
28692 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28693 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28694 ac_status=$?
28695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28696 test $ac_status = 0; }; then
28697 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000028698 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000028699else
28700 pkg_failed=yes
28701fi
28702 else
28703 pkg_failed=untried
28704fi
28705if test -n "$AUTOTRACE_LIBS"; then
28706 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
28707 elif test -n "$PKG_CONFIG"; then
28708 if test -n "$PKG_CONFIG" && \
28709 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28710 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28711 ac_status=$?
28712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28713 test $ac_status = 0; }; then
28714 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000028715 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000028716else
28717 pkg_failed=yes
28718fi
28719 else
28720 pkg_failed=untried
28721fi
28722
28723
28724
28725if test $pkg_failed = yes; then
cristy146497a2015-05-17 22:46:16 +000028726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28727$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000028728
28729if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28730 _pkg_short_errors_supported=yes
28731else
28732 _pkg_short_errors_supported=no
28733fi
28734 if test $_pkg_short_errors_supported = yes; then
cristy146497a2015-05-17 22:46:16 +000028735 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "autotrace >= 0.31.1" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000028736 else
cristy146497a2015-05-17 22:46:16 +000028737 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "autotrace >= 0.31.1" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000028738 fi
28739 # Put the nasty error message in config.log where it belongs
28740 echo "$AUTOTRACE_PKG_ERRORS" >&5
28741
cristy146497a2015-05-17 22:46:16 +000028742 have_autotrace=no
cristy73bd4a52010-10-05 11:24:23 +000028743elif test $pkg_failed = untried; then
cristy146497a2015-05-17 22:46:16 +000028744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28745$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000028746 have_autotrace=no
28747else
28748 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
28749 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
28750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28751$as_echo "yes" >&6; }
28752 have_autotrace=yes
28753fi
cristy32f75d42015-06-05 18:46:23 +000028754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristyad38abe2012-12-23 23:03:21 +000028755$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028756fi
28757
28758if test "$have_autotrace" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000028759
cristy8b350f62009-11-15 23:12:43 +000028760$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028761
cristy32f75d42015-06-05 18:46:23 +000028762 CFLAGS="$AUTOTRACE_CFLAGS $CFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000028763fi
28764
cristy73bd4a52010-10-05 11:24:23 +000028765 if test "$have_autotrace" = 'yes'; then
28766 AUTOTRACE_DELEGATE_TRUE=
28767 AUTOTRACE_DELEGATE_FALSE='#'
28768else
28769 AUTOTRACE_DELEGATE_TRUE='#'
28770 AUTOTRACE_DELEGATE_FALSE=
28771fi
28772
cristy3ed852e2009-09-05 21:47:34 +000028773
28774
28775
28776
28777#
28778# Check for Display Postscript delegate library.
28779#
28780
28781# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000028782if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028783 withval=$with_dps; with_dps=$withval
28784else
28785 with_dps='yes'
28786fi
28787
28788
28789if test "$with_dps" != 'yes'; then
28790 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
28791fi
28792
28793have_dps='no'
28794DPS_LIBS=''
28795if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28797$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000028799$as_echo_n "checking for DPS... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28801$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028802 failed=0
28803 passed=0
28804 PERSIST_CPPFLAGS="$CPPFLAGS"
28805 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000028806 ac_fn_c_check_header_mongrel "$LINENO" "DPS/dpsXclient.h" "ac_cv_header_DPS_dpsXclient_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028807if test "x$ac_cv_header_DPS_dpsXclient_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028808 passed=`expr $passed + 1`
28809else
28810 failed=`expr $failed + 1`
28811fi
28812
28813
28814 # DPS issues:
28815 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
28816 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
28817 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
28818 # ImageMagick itself doesn't use -lXt.
28819 have_libdps='no'
28820 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000028821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028822$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028823if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028824 $as_echo_n "(cached) " >&6
28825else
28826 ac_check_lib_save_LIBS=$LIBS
28827LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028828cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028829/* end confdefs.h. */
28830
28831/* Override any GCC internal prototype to avoid an error.
28832 Use char because int might match the return type of a GCC
28833 builtin and then its argument prototype would still apply. */
28834#ifdef __cplusplus
28835extern "C"
28836#endif
28837char DPSInitialize ();
28838int
28839main ()
28840{
28841return DPSInitialize ();
28842 ;
28843 return 0;
28844}
28845_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028846if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028847 ac_cv_lib_dps_DPSInitialize=yes
28848else
cristy8b350f62009-11-15 23:12:43 +000028849 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028850fi
cristy8b350f62009-11-15 23:12:43 +000028851rm -f core conftest.err conftest.$ac_objext \
28852 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028853LIBS=$ac_check_lib_save_LIBS
28854fi
cristy8b350f62009-11-15 23:12:43 +000028855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028856$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028857if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028858 have_libdps='yes'
28859else
28860 have_libdps='no'
28861fi
28862
28863 if test "$have_libdps" != 'yes'; then
28864 # Unset cache variable so we can try again.
28865 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000028866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028867$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028868if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028869 $as_echo_n "(cached) " >&6
28870else
28871 ac_check_lib_save_LIBS=$LIBS
28872LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028873cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028874/* end confdefs.h. */
28875
28876/* Override any GCC internal prototype to avoid an error.
28877 Use char because int might match the return type of a GCC
28878 builtin and then its argument prototype would still apply. */
28879#ifdef __cplusplus
28880extern "C"
28881#endif
28882char DPSInitialize ();
28883int
28884main ()
28885{
28886return DPSInitialize ();
28887 ;
28888 return 0;
28889}
28890_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028891if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028892 ac_cv_lib_dps_DPSInitialize=yes
28893else
cristy8b350f62009-11-15 23:12:43 +000028894 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028895fi
cristy8b350f62009-11-15 23:12:43 +000028896rm -f core conftest.err conftest.$ac_objext \
28897 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028898LIBS=$ac_check_lib_save_LIBS
28899fi
cristy8b350f62009-11-15 23:12:43 +000028900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028901$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028902if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028903 have_libdps='yes'
28904else
28905 have_libdps='no'
28906fi
28907
28908 if test "$have_libdps" = 'yes'; then
28909 LIBDPS_XT='-lXt'
28910 fi
28911 fi
28912 if test "$have_libdps" = 'yes'; then
28913 passed=`expr $passed + 1`
28914 else
28915 failed=`expr $failed + 1`
28916 fi
cristy8b350f62009-11-15 23:12:43 +000028917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000028918$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028919if ${ac_cv_lib_dpstk_XDPSPixelsPerPoint+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028920 $as_echo_n "(cached) " >&6
28921else
28922 ac_check_lib_save_LIBS=$LIBS
28923LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028924cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028925/* end confdefs.h. */
28926
28927/* Override any GCC internal prototype to avoid an error.
28928 Use char because int might match the return type of a GCC
28929 builtin and then its argument prototype would still apply. */
28930#ifdef __cplusplus
28931extern "C"
28932#endif
28933char XDPSPixelsPerPoint ();
28934int
28935main ()
28936{
28937return XDPSPixelsPerPoint ();
28938 ;
28939 return 0;
28940}
28941_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028942if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028943 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
28944else
cristy8b350f62009-11-15 23:12:43 +000028945 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000028946fi
cristy8b350f62009-11-15 23:12:43 +000028947rm -f core conftest.err conftest.$ac_objext \
28948 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028949LIBS=$ac_check_lib_save_LIBS
28950fi
cristy8b350f62009-11-15 23:12:43 +000028951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000028952$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristyda16f162011-02-19 23:52:17 +000028953if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028954 passed=`expr $passed + 1`
28955else
28956 failed=`expr $failed + 1`
28957fi
28958
cristy8b350f62009-11-15 23:12:43 +000028959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028960$as_echo_n "checking if DPS package is complete... " >&6; }
28961 if test $passed -gt 0; then
28962 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28964$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028965 have_dps='no (failed tests)'
28966 CPPFLAGS="$PERSIST_CPPFLAGS"
28967 else
28968 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
28969 LIBS="$DPS_LIBS $LIBS"
28970
cristy8b350f62009-11-15 23:12:43 +000028971$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028972
cristyad38abe2012-12-23 23:03:21 +000028973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28974$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028975 have_dps='yes'
28976 fi
28977 else
cristyad38abe2012-12-23 23:03:21 +000028978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28979$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028980 CPPFLAGS=$PERSIST_CPPFLAGS
28981 fi
28982fi
cristy73bd4a52010-10-05 11:24:23 +000028983 if test "$have_dps" = 'yes'; then
28984 DPS_DELEGATE_TRUE=
28985 DPS_DELEGATE_FALSE='#'
28986else
28987 DPS_DELEGATE_TRUE='#'
28988 DPS_DELEGATE_FALSE=
28989fi
28990
cristy3ed852e2009-09-05 21:47:34 +000028991
28992
28993
28994#
cristy430a7312010-01-21 20:44:04 +000028995# Set DejaVu font directory.
28996#
28997
28998# Check whether --with-dejavu-font-dir was given.
28999if test "${with_dejavu_font_dir+set}" = set; then :
29000 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
29001else
29002 with_dejavu_font_dir='default'
29003fi
29004
29005
29006if test "$with_dejavu_font_dir" != 'default'; then
29007 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
29008fi
29009
29010
29011#
cristy3ed852e2009-09-05 21:47:34 +000029012# Check for FFTW delegate library.
29013#
29014
29015# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000029016if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029017 withval=$with_fftw; with_fftw=$withval
29018else
29019 with_fftw='yes'
29020fi
29021
29022
29023if test "$with_fftw" != 'yes'; then
29024 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
29025fi
29026
cristy81beccd2011-10-03 18:17:24 +000029027have_fftw='no'
cristy32f75d42015-06-05 18:46:23 +000029028FFTW_CFLAGS=""
29029FFTW_LIBS=""
29030FFTW_PKG=""
29031if test "x$with_fftw" = "xyes"; then
29032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristyad38abe2012-12-23 23:03:21 +000029033$as_echo "-------------------------------------------------------------" >&6; }
cristy32f75d42015-06-05 18:46:23 +000029034
29035pkg_failed=no
29036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw3" >&5
29037$as_echo_n "checking for fftw3... " >&6; }
29038
29039if test -n "$fftw3_CFLAGS"; then
29040 pkg_cv_fftw3_CFLAGS="$fftw3_CFLAGS"
29041 elif test -n "$PKG_CONFIG"; then
29042 if test -n "$PKG_CONFIG" && \
29043 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fftw3 >= 3.0.0\""; } >&5
29044 ($PKG_CONFIG --exists --print-errors "fftw3 >= 3.0.0") 2>&5
29045 ac_status=$?
29046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29047 test $ac_status = 0; }; then
29048 pkg_cv_fftw3_CFLAGS=`$PKG_CONFIG --cflags "fftw3 >= 3.0.0" 2>/dev/null`
29049 test "x$?" != "x0" && pkg_failed=yes
cristy81beccd2011-10-03 18:17:24 +000029050else
cristy32f75d42015-06-05 18:46:23 +000029051 pkg_failed=yes
29052fi
29053 else
29054 pkg_failed=untried
29055fi
29056if test -n "$fftw3_LIBS"; then
29057 pkg_cv_fftw3_LIBS="$fftw3_LIBS"
29058 elif test -n "$PKG_CONFIG"; then
29059 if test -n "$PKG_CONFIG" && \
29060 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fftw3 >= 3.0.0\""; } >&5
29061 ($PKG_CONFIG --exists --print-errors "fftw3 >= 3.0.0") 2>&5
29062 ac_status=$?
29063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29064 test $ac_status = 0; }; then
29065 pkg_cv_fftw3_LIBS=`$PKG_CONFIG --libs "fftw3 >= 3.0.0" 2>/dev/null`
29066 test "x$?" != "x0" && pkg_failed=yes
29067else
29068 pkg_failed=yes
29069fi
29070 else
29071 pkg_failed=untried
cristy3ed852e2009-09-05 21:47:34 +000029072fi
29073
cristy81beccd2011-10-03 18:17:24 +000029074
cristy81beccd2011-10-03 18:17:24 +000029075
cristy32f75d42015-06-05 18:46:23 +000029076if test $pkg_failed = yes; then
29077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29078$as_echo "no" >&6; }
cristy81beccd2011-10-03 18:17:24 +000029079
cristy32f75d42015-06-05 18:46:23 +000029080if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29081 _pkg_short_errors_supported=yes
29082else
29083 _pkg_short_errors_supported=no
29084fi
29085 if test $_pkg_short_errors_supported = yes; then
29086 fftw3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fftw3 >= 3.0.0" 2>&1`
cristy81beccd2011-10-03 18:17:24 +000029087 else
cristy32f75d42015-06-05 18:46:23 +000029088 fftw3_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fftw3 >= 3.0.0" 2>&1`
29089 fi
29090 # Put the nasty error message in config.log where it belongs
29091 echo "$fftw3_PKG_ERRORS" >&5
29092
29093 have_fftw=no
29094elif test $pkg_failed = untried; then
29095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29096$as_echo "no" >&6; }
29097 have_fftw=no
29098else
29099 fftw3_CFLAGS=$pkg_cv_fftw3_CFLAGS
29100 fftw3_LIBS=$pkg_cv_fftw3_LIBS
29101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29102$as_echo "yes" >&6; }
29103 have_fftw=yes
29104fi
29105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29106$as_echo "" >&6; }
29107fi
29108
29109if test "$have_fftw" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000029110
cristy8b350f62009-11-15 23:12:43 +000029111$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029112
cristyb74ab6e2015-06-06 12:39:54 +000029113 FFTW_CFLAGS="$fftw3_CFLAGS"
29114 FFTW_LIBS="$fftw3_LIBS"
cristy32f75d42015-06-05 18:46:23 +000029115 CFLAGS="$fftw3_CFLAGS $CFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000029116fi
cristy32f75d42015-06-05 18:46:23 +000029117
cristy73bd4a52010-10-05 11:24:23 +000029118 if test "$have_fftw" = 'yes'; then
29119 FFTW_DELEGATE_TRUE=
29120 FFTW_DELEGATE_FALSE='#'
29121else
29122 FFTW_DELEGATE_TRUE='#'
29123 FFTW_DELEGATE_FALSE=
29124fi
29125
cristy3ed852e2009-09-05 21:47:34 +000029126
29127
29128
cristy32f75d42015-06-05 18:46:23 +000029129
cristy3ed852e2009-09-05 21:47:34 +000029130#
29131# Check for FlashPIX delegate library.
29132#
29133
29134# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000029135if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029136 withval=$with_fpx; with_fpx=$withval
29137else
29138 with_fpx='yes'
29139fi
29140
29141
29142if test "$with_fpx" != 'yes'; then
29143 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
29144fi
29145
29146have_fpx='no'
29147FPX_LIBS=''
29148if test "$with_fpx" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29150$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000029152$as_echo_n "checking for FlashPIX... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29154$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029155 failed=0
29156 passed=0
29157 ac_ext=cpp
29158ac_cpp='$CXXCPP $CPPFLAGS'
29159ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29160ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29161ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29162
29163
cristy8b350f62009-11-15 23:12:43 +000029164ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029165if test "x$ac_cv_header_fpxlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029166 passed=`expr $passed + 1`
29167else
29168 failed=`expr $failed + 1`
29169fi
29170
29171
cristy8b350f62009-11-15 23:12:43 +000029172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000029173$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029174if ${ac_cv_lib_fpx_FPX_OpenImageByFilename+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029175 $as_echo_n "(cached) " >&6
29176else
29177 ac_check_lib_save_LIBS=$LIBS
29178LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029179cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029180/* end confdefs.h. */
29181
29182/* Override any GCC internal prototype to avoid an error.
29183 Use char because int might match the return type of a GCC
29184 builtin and then its argument prototype would still apply. */
29185#ifdef __cplusplus
29186extern "C"
29187#endif
29188char FPX_OpenImageByFilename ();
29189int
29190main ()
29191{
29192return FPX_OpenImageByFilename ();
29193 ;
29194 return 0;
29195}
29196_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029197if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029198 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
29199else
cristy8b350f62009-11-15 23:12:43 +000029200 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000029201fi
cristy8b350f62009-11-15 23:12:43 +000029202rm -f core conftest.err conftest.$ac_objext \
29203 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029204LIBS=$ac_check_lib_save_LIBS
29205fi
cristy8b350f62009-11-15 23:12:43 +000029206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000029207$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristyda16f162011-02-19 23:52:17 +000029208if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029209 passed=`expr $passed + 1`
29210else
29211 failed=`expr $failed + 1`
29212fi
29213
29214 ac_ext=c
29215ac_cpp='$CPP $CPPFLAGS'
29216ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29217ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29218ac_compiler_gnu=$ac_cv_c_compiler_gnu
29219
cristy8b350f62009-11-15 23:12:43 +000029220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029221$as_echo_n "checking if FlashPIX package is complete... " >&6; }
29222 if test $passed -gt 0; then
29223 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29225$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029226 have_fpx='no (failed tests)'
29227 else
29228 FPX_LIBS='-lfpx'
29229
cristy8b350f62009-11-15 23:12:43 +000029230$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029231
cristyad38abe2012-12-23 23:03:21 +000029232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29233$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029234 have_fpx='yes'
29235 PERLMAINCC="$CXX"
29236 fi
29237 else
cristyad38abe2012-12-23 23:03:21 +000029238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29239$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029240 fi
29241fi
cristy73bd4a52010-10-05 11:24:23 +000029242 if test "$have_fpx" = 'yes'; then
29243 FPX_DELEGATE_TRUE=
29244 FPX_DELEGATE_FALSE='#'
29245else
29246 FPX_DELEGATE_TRUE='#'
29247 FPX_DELEGATE_FALSE=
29248fi
29249
cristy3ed852e2009-09-05 21:47:34 +000029250
cristy853d9902014-08-21 18:50:43 +000029251
29252
29253#
29254# Check for DJVU delegate library.
29255#
29256
29257# Check whether --with-djvu was given.
29258if test "${with_djvu+set}" = set; then :
29259 withval=$with_djvu; with_djvu=$withval
29260else
29261 with_djvu='yes'
29262fi
29263
29264
29265if test "$with_djvu" != 'yes'; then
29266 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
29267fi
29268
29269have_djvu='no'
cristy32f75d42015-06-05 18:46:23 +000029270DJVU_CFLAGS=""
29271DJVU_LIBS=""
29272DJVU_PKG=""
29273if test "x$with_djvu" = "xyes"; then
29274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy853d9902014-08-21 18:50:43 +000029275$as_echo "-------------------------------------------------------------" >&6; }
cristy32f75d42015-06-05 18:46:23 +000029276
29277pkg_failed=no
29278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvuapi" >&5
29279$as_echo_n "checking for ddjvuapi... " >&6; }
29280
29281if test -n "$ddjvuapi_CFLAGS"; then
29282 pkg_cv_ddjvuapi_CFLAGS="$ddjvuapi_CFLAGS"
29283 elif test -n "$PKG_CONFIG"; then
29284 if test -n "$PKG_CONFIG" && \
29285 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ddjvuapi >= 3.5.0\""; } >&5
29286 ($PKG_CONFIG --exists --print-errors "ddjvuapi >= 3.5.0") 2>&5
29287 ac_status=$?
29288 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29289 test $ac_status = 0; }; then
29290 pkg_cv_ddjvuapi_CFLAGS=`$PKG_CONFIG --cflags "ddjvuapi >= 3.5.0" 2>/dev/null`
29291 test "x$?" != "x0" && pkg_failed=yes
cristy853d9902014-08-21 18:50:43 +000029292else
cristy32f75d42015-06-05 18:46:23 +000029293 pkg_failed=yes
29294fi
29295 else
29296 pkg_failed=untried
29297fi
29298if test -n "$ddjvuapi_LIBS"; then
29299 pkg_cv_ddjvuapi_LIBS="$ddjvuapi_LIBS"
29300 elif test -n "$PKG_CONFIG"; then
29301 if test -n "$PKG_CONFIG" && \
29302 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ddjvuapi >= 3.5.0\""; } >&5
29303 ($PKG_CONFIG --exists --print-errors "ddjvuapi >= 3.5.0") 2>&5
29304 ac_status=$?
29305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29306 test $ac_status = 0; }; then
29307 pkg_cv_ddjvuapi_LIBS=`$PKG_CONFIG --libs "ddjvuapi >= 3.5.0" 2>/dev/null`
29308 test "x$?" != "x0" && pkg_failed=yes
29309else
29310 pkg_failed=yes
29311fi
29312 else
29313 pkg_failed=untried
cristy853d9902014-08-21 18:50:43 +000029314fi
29315
29316
cristy853d9902014-08-21 18:50:43 +000029317
cristy32f75d42015-06-05 18:46:23 +000029318if test $pkg_failed = yes; then
29319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29320$as_echo "no" >&6; }
cristy853d9902014-08-21 18:50:43 +000029321
cristy32f75d42015-06-05 18:46:23 +000029322if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29323 _pkg_short_errors_supported=yes
29324else
29325 _pkg_short_errors_supported=no
29326fi
29327 if test $_pkg_short_errors_supported = yes; then
29328 ddjvuapi_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ddjvuapi >= 3.5.0" 2>&1`
cristy853d9902014-08-21 18:50:43 +000029329 else
cristy32f75d42015-06-05 18:46:23 +000029330 ddjvuapi_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ddjvuapi >= 3.5.0" 2>&1`
29331 fi
29332 # Put the nasty error message in config.log where it belongs
29333 echo "$ddjvuapi_PKG_ERRORS" >&5
29334
29335 have_djvu=no
29336elif test $pkg_failed = untried; then
29337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29338$as_echo "no" >&6; }
29339 have_djvu=no
29340else
29341 ddjvuapi_CFLAGS=$pkg_cv_ddjvuapi_CFLAGS
29342 ddjvuapi_LIBS=$pkg_cv_ddjvuapi_LIBS
29343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29344$as_echo "yes" >&6; }
29345 have_djvu=yes
29346fi
29347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29348$as_echo "" >&6; }
29349fi
29350
29351if test "$have_djvu" = 'yes'; then
cristy853d9902014-08-21 18:50:43 +000029352
29353$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
29354
cristyc83c2cc2015-06-06 16:35:26 +000029355 DJVU_CFLAGS="$ddjvuapi_CFLAGS"
29356 DJVU_LIBS="$ddjvuapi_LIBS"
29357 CFLAGS="$ddjvuapi_CFLAGS $CFLAGS"
cristy853d9902014-08-21 18:50:43 +000029358fi
cristy32f75d42015-06-05 18:46:23 +000029359
cristy853d9902014-08-21 18:50:43 +000029360 if test "$have_djvu" = 'yes'; then
29361 DJVU_DELEGATE_TRUE=
29362 DJVU_DELEGATE_FALSE='#'
29363else
29364 DJVU_DELEGATE_TRUE='#'
29365 DJVU_DELEGATE_FALSE=
29366fi
29367
29368
cristy3ed852e2009-09-05 21:47:34 +000029369
29370
cristy32f75d42015-06-05 18:46:23 +000029371
cristy3ed852e2009-09-05 21:47:34 +000029372#
29373# Check for fontconfig delegate library.
29374#
29375
29376# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000029377if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029378 withval=$with_fontconfig; with_fontconfig=$withval
29379else
cristyfc3d0222012-02-07 15:05:57 +000029380 with_fontconfig='yes'
cristy3ed852e2009-09-05 21:47:34 +000029381fi
29382
29383
29384if test "$with_fontconfig" != 'yes'; then
29385 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
29386fi
29387
29388have_fontconfig='no'
29389FONTCONFIG_CFLAGS=""
29390FONTCONFIG_LIBS=""
29391FONTCONFIG_PKG=""
29392if test "x$with_fontconfig" = "xyes"; then
cristy32f75d42015-06-05 18:46:23 +000029393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristyad38abe2012-12-23 23:03:21 +000029394$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029395
29396pkg_failed=no
29397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
29398$as_echo_n "checking for FONTCONFIG... " >&6; }
29399
29400if test -n "$FONTCONFIG_CFLAGS"; then
29401 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
29402 elif test -n "$PKG_CONFIG"; then
29403 if test -n "$PKG_CONFIG" && \
29404 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
29405 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
29406 ac_status=$?
29407 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29408 test $ac_status = 0; }; then
29409 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000029410 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000029411else
29412 pkg_failed=yes
29413fi
29414 else
29415 pkg_failed=untried
29416fi
29417if test -n "$FONTCONFIG_LIBS"; then
29418 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
29419 elif test -n "$PKG_CONFIG"; then
29420 if test -n "$PKG_CONFIG" && \
29421 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
29422 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
29423 ac_status=$?
29424 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29425 test $ac_status = 0; }; then
29426 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000029427 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000029428else
29429 pkg_failed=yes
29430fi
29431 else
29432 pkg_failed=untried
29433fi
29434
29435
29436
29437if test $pkg_failed = yes; then
cristy146497a2015-05-17 22:46:16 +000029438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29439$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029440
29441if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29442 _pkg_short_errors_supported=yes
29443else
29444 _pkg_short_errors_supported=no
29445fi
29446 if test $_pkg_short_errors_supported = yes; then
cristy146497a2015-05-17 22:46:16 +000029447 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fontconfig >= 2.1.0" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000029448 else
cristy146497a2015-05-17 22:46:16 +000029449 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fontconfig >= 2.1.0" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000029450 fi
29451 # Put the nasty error message in config.log where it belongs
29452 echo "$FONTCONFIG_PKG_ERRORS" >&5
29453
cristy146497a2015-05-17 22:46:16 +000029454 have_fontconfig=no
cristy73bd4a52010-10-05 11:24:23 +000029455elif test $pkg_failed = untried; then
cristy146497a2015-05-17 22:46:16 +000029456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29457$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029458 have_fontconfig=no
29459else
29460 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
29461 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
29462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29463$as_echo "yes" >&6; }
29464 have_fontconfig=yes
29465fi
cristy32f75d42015-06-05 18:46:23 +000029466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristyad38abe2012-12-23 23:03:21 +000029467$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029468fi
29469
29470if test "$have_fontconfig" = 'yes'; then
29471
cristy8b350f62009-11-15 23:12:43 +000029472$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029473
cristy32f75d42015-06-05 18:46:23 +000029474 CFLAGS="$FONTCONFIG_CFLAGS $CFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000029475fi
29476
cristy73bd4a52010-10-05 11:24:23 +000029477 if test "$have_fontconfig" = 'yes'; then
29478 FONTCONFIG_DELEGATE_TRUE=
29479 FONTCONFIG_DELEGATE_FALSE='#'
29480else
29481 FONTCONFIG_DELEGATE_TRUE='#'
29482 FONTCONFIG_DELEGATE_FALSE=
29483fi
29484
cristy3ed852e2009-09-05 21:47:34 +000029485
29486
29487
29488
29489#
cristy03f187e2013-01-24 00:22:19 +000029490# Check for the Freetype delegate library.
cristy3ed852e2009-09-05 21:47:34 +000029491#
29492
29493# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000029494if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029495 withval=$with_freetype; with_freetype=$withval
29496else
29497 with_freetype='yes'
29498fi
29499
29500
cristy3ed852e2009-09-05 21:47:34 +000029501if test "$with_freetype" != 'yes'; then
29502 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
29503fi
29504
cristy81beccd2011-10-03 18:17:24 +000029505have_freetype='no'
cristy03f187e2013-01-24 00:22:19 +000029506FREETYPE_CFLAGS=""
29507FREETYPE_LIBS=""
29508FREETYPE_PKG=""
29509if test "x$with_freetype" = "xyes"; then
cristy32f75d42015-06-05 18:46:23 +000029510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristyad38abe2012-12-23 23:03:21 +000029511$as_echo "-------------------------------------------------------------" >&6; }
cristy03f187e2013-01-24 00:22:19 +000029512
29513pkg_failed=no
29514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5
29515$as_echo_n "checking for FREETYPE... " >&6; }
29516
29517if test -n "$FREETYPE_CFLAGS"; then
29518 pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS"
29519 elif test -n "$PKG_CONFIG"; then
29520 if test -n "$PKG_CONFIG" && \
29521 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
29522 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
29523 ac_status=$?
29524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29525 test $ac_status = 0; }; then
29526 pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000029527 test "x$?" != "x0" && pkg_failed=yes
cristy03f187e2013-01-24 00:22:19 +000029528else
29529 pkg_failed=yes
29530fi
29531 else
29532 pkg_failed=untried
29533fi
29534if test -n "$FREETYPE_LIBS"; then
29535 pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS"
29536 elif test -n "$PKG_CONFIG"; then
29537 if test -n "$PKG_CONFIG" && \
29538 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
29539 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
29540 ac_status=$?
29541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29542 test $ac_status = 0; }; then
29543 pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000029544 test "x$?" != "x0" && pkg_failed=yes
cristy03f187e2013-01-24 00:22:19 +000029545else
29546 pkg_failed=yes
29547fi
29548 else
29549 pkg_failed=untried
29550fi
29551
29552
29553
29554if test $pkg_failed = yes; then
cristy146497a2015-05-17 22:46:16 +000029555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29556$as_echo "no" >&6; }
cristy03f187e2013-01-24 00:22:19 +000029557
29558if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29559 _pkg_short_errors_supported=yes
29560else
29561 _pkg_short_errors_supported=no
29562fi
29563 if test $_pkg_short_errors_supported = yes; then
cristy146497a2015-05-17 22:46:16 +000029564 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "freetype2" 2>&1`
cristy03f187e2013-01-24 00:22:19 +000029565 else
cristy146497a2015-05-17 22:46:16 +000029566 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "freetype2" 2>&1`
cristy03f187e2013-01-24 00:22:19 +000029567 fi
29568 # Put the nasty error message in config.log where it belongs
29569 echo "$FREETYPE_PKG_ERRORS" >&5
29570
cristy146497a2015-05-17 22:46:16 +000029571 have_freetype=no
cristy03f187e2013-01-24 00:22:19 +000029572elif test $pkg_failed = untried; then
cristy146497a2015-05-17 22:46:16 +000029573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29574$as_echo "no" >&6; }
cristy03f187e2013-01-24 00:22:19 +000029575 have_freetype=no
29576else
29577 FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS
29578 FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS
29579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29580$as_echo "yes" >&6; }
29581 have_freetype=yes
29582fi
cristy32f75d42015-06-05 18:46:23 +000029583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristyad38abe2012-12-23 23:03:21 +000029584$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029585fi
29586
cristy03f187e2013-01-24 00:22:19 +000029587if test "$have_freetype" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000029588
cristy8b350f62009-11-15 23:12:43 +000029589$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029590
cristy32f75d42015-06-05 18:46:23 +000029591 CFLAGS="$FREETYPE_CFLAGS $CFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000029592fi
cristy03f187e2013-01-24 00:22:19 +000029593
cristy73bd4a52010-10-05 11:24:23 +000029594 if test "$have_freetype" = 'yes'; then
29595 FREETYPE_DELEGATE_TRUE=
29596 FREETYPE_DELEGATE_FALSE='#'
29597else
29598 FREETYPE_DELEGATE_TRUE='#'
29599 FREETYPE_DELEGATE_FALSE=
29600fi
29601
cristy3ed852e2009-09-05 21:47:34 +000029602
29603
29604
cristy03f187e2013-01-24 00:22:19 +000029605
cristy3ed852e2009-09-05 21:47:34 +000029606#
29607# Check for Ghostscript library or framework.
29608#
29609# Test for iapi.h & test for gsapi_new_instance in -lgs
29610# or -framework Ghostscript
29611
29612
29613# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000029614if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029615 withval=$with_gslib; with_gslib=$withval
29616else
29617 with_gslib='no'
29618fi
29619
29620
cristyb7931f12009-09-25 10:22:21 +000029621gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000029622if test "$with_gslib" != 'yes'; then
29623 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
29624fi
29625
29626have_gslib='no'
29627GS_LIBS=''
29628if test "$with_gslib" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29630$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000029632$as_echo_n "checking for Ghostscript... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29634$as_echo "" >&6; }
cristyb7931f12009-09-25 10:22:21 +000029635 framework=0
cristy3ed852e2009-09-05 21:47:34 +000029636 failed=0
29637 passed=0
cristy8b350f62009-11-15 23:12:43 +000029638 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/iapi.h" "ac_cv_header_ghostscript_iapi_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029639if test "x$ac_cv_header_ghostscript_iapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029640 passed=`expr $passed + 1`
29641else
29642 failed=`expr $failed + 1`
29643fi
29644
29645
cristy8b350f62009-11-15 23:12:43 +000029646 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/ierrors.h" "ac_cv_header_ghostscript_ierrors_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029647if test "x$ac_cv_header_ghostscript_ierrors_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029648 passed=`expr $passed + 1`
29649else
29650 failed=`expr $failed + 1`
29651fi
29652
29653
cristy73bd4a52010-10-05 11:24:23 +000029654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
29655$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029656if ${ac_cv_framework_Ghostscript_gsapi_new_instance+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000029657 $as_echo_n "(cached) " >&6
29658else
29659 ac_check_framework_save_LIBS=$LIBS
29660LIBS="-framework Ghostscript $LIBS"
29661cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29662/* end confdefs.h. */
29663
29664/* Override any GCC internal prototype to avoid an error.
29665 Use char because int might match the return type of a GCC
29666 builtin and then its argument prototype would still apply. */
29667#ifdef __cplusplus
29668extern "C"
29669#endif
29670char gsapi_new_instance ();
29671int
29672main ()
29673{
29674return gsapi_new_instance ();
29675 ;
29676 return 0;
29677}
29678_ACEOF
29679if ac_fn_c_try_link "$LINENO"; then :
29680 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
29681else
29682 ac_cv_framework_Ghostscript_gsapi_new_instance=no
29683fi
29684rm -f core conftest.err conftest.$ac_objext \
29685 conftest$ac_exeext conftest.$ac_ext
29686LIBS=$ac_check_framework_save_LIBS
29687fi
29688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
29689$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
29690if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
29691 framework=`expr $framework + 1`
29692else
29693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000029694$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029695if ${ac_cv_lib_gs_gsapi_new_instance+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029696 $as_echo_n "(cached) " >&6
29697else
29698 ac_check_lib_save_LIBS=$LIBS
29699LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029700cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029701/* end confdefs.h. */
29702
29703/* Override any GCC internal prototype to avoid an error.
29704 Use char because int might match the return type of a GCC
29705 builtin and then its argument prototype would still apply. */
29706#ifdef __cplusplus
29707extern "C"
29708#endif
29709char gsapi_new_instance ();
29710int
29711main ()
29712{
29713return gsapi_new_instance ();
29714 ;
29715 return 0;
29716}
29717_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029718if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029719 ac_cv_lib_gs_gsapi_new_instance=yes
29720else
cristy8b350f62009-11-15 23:12:43 +000029721 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000029722fi
cristy8b350f62009-11-15 23:12:43 +000029723rm -f core conftest.err conftest.$ac_objext \
29724 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029725LIBS=$ac_check_lib_save_LIBS
29726fi
cristy8b350f62009-11-15 23:12:43 +000029727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000029728$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristyda16f162011-02-19 23:52:17 +000029729if test "x$ac_cv_lib_gs_gsapi_new_instance" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029730 passed=`expr $passed + 1`
29731else
29732 failed=`expr $failed + 1`
29733fi
cristy73bd4a52010-10-05 11:24:23 +000029734
29735fi
cristy8b350f62009-11-15 23:12:43 +000029736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029737$as_echo_n "checking if Ghostscript package is complete... " >&6; }
29738 if test $passed -gt 0; then
29739 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29741$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029742 have_gslib='no (failed tests)'
29743 else
29744 if test $framework -gt 0; then
29745 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000029746 gslib_framework='yes'
cristyad38abe2012-12-23 23:03:21 +000029747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
29748$as_echo "yes, using framework." >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029749 else
cristyad38abe2012-12-23 23:03:21 +000029750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
29751$as_echo "yes, using library." >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029752 GS_LIBS='-lgs'
29753 fi
29754 LIBS="$GS_LIBS $LIBS"
29755
cristy8b350f62009-11-15 23:12:43 +000029756$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029757
29758 have_gslib='yes'
29759 fi
29760 else
cristyad38abe2012-12-23 23:03:21 +000029761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29762$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029763 fi
29764fi
cristy73bd4a52010-10-05 11:24:23 +000029765 if test "$have_gslib" = 'yes'; then
29766 GS_DELEGATE_TRUE=
29767 GS_DELEGATE_FALSE='#'
29768else
29769 GS_DELEGATE_TRUE='#'
29770 GS_DELEGATE_FALSE=
29771fi
29772
cristy3ed852e2009-09-05 21:47:34 +000029773
29774
29775# Set default font search path
29776
29777# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000029778if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029779 withval=$with_fontpath; with_fontpath=$withval
29780else
29781 with_fontpath=''
29782fi
29783
29784
29785if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
29786 with_fontpath=''
29787else
29788
29789cat >>confdefs.h <<_ACEOF
29790#define MAGICK_FONT_PATH "$with_fontpath"
29791_ACEOF
29792
29793fi
29794if test "$with_fontpath=" != ''; then
29795 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
29796fi
29797
29798# Set Ghostscript font directory
29799
29800# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000029801if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029802 withval=$with_gs_font_dir; with_gs_font_dir=$withval
29803else
29804 with_gs_font_dir='default'
29805fi
29806
29807
29808if test "$with_gs_font_dir" != 'default'; then
29809 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
29810fi
29811
29812
29813#
29814# Check for GVC delegate library.
29815#
29816
29817# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000029818if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029819 withval=$with_gvc; with_gvc=$withval
29820else
cristy86e31f32015-06-06 15:47:32 +000029821 with_gvc='yes'
cristy3ed852e2009-09-05 21:47:34 +000029822fi
29823
29824
29825if test "$with_gvc" != 'yes'; then
29826 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
29827fi
29828
29829GVC_PKG=""
29830if test "x$with_gvc" = "xyes"; then
cristy32f75d42015-06-05 18:46:23 +000029831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristyad38abe2012-12-23 23:03:21 +000029832$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029833
29834pkg_failed=no
29835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
29836$as_echo_n "checking for GVC... " >&6; }
29837
29838if test -n "$GVC_CFLAGS"; then
29839 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
29840 elif test -n "$PKG_CONFIG"; then
29841 if test -n "$PKG_CONFIG" && \
29842 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29843 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29844 ac_status=$?
29845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29846 test $ac_status = 0; }; then
29847 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000029848 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000029849else
29850 pkg_failed=yes
29851fi
29852 else
29853 pkg_failed=untried
29854fi
29855if test -n "$GVC_LIBS"; then
29856 pkg_cv_GVC_LIBS="$GVC_LIBS"
29857 elif test -n "$PKG_CONFIG"; then
29858 if test -n "$PKG_CONFIG" && \
29859 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29860 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29861 ac_status=$?
29862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29863 test $ac_status = 0; }; then
29864 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000029865 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000029866else
29867 pkg_failed=yes
29868fi
29869 else
29870 pkg_failed=untried
29871fi
29872
29873
29874
29875if test $pkg_failed = yes; then
cristy146497a2015-05-17 22:46:16 +000029876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29877$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029878
29879if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29880 _pkg_short_errors_supported=yes
29881else
29882 _pkg_short_errors_supported=no
29883fi
29884 if test $_pkg_short_errors_supported = yes; then
cristy146497a2015-05-17 22:46:16 +000029885 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libgvc >= 2.9.0" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000029886 else
cristy146497a2015-05-17 22:46:16 +000029887 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libgvc >= 2.9.0" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000029888 fi
29889 # Put the nasty error message in config.log where it belongs
29890 echo "$GVC_PKG_ERRORS" >&5
29891
cristy146497a2015-05-17 22:46:16 +000029892 have_gvc=no
cristy73bd4a52010-10-05 11:24:23 +000029893elif test $pkg_failed = untried; then
cristy146497a2015-05-17 22:46:16 +000029894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29895$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029896 have_gvc=no
29897else
29898 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
29899 GVC_LIBS=$pkg_cv_GVC_LIBS
29900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29901$as_echo "yes" >&6; }
29902 have_gvc=yes
29903fi
cristy32f75d42015-06-05 18:46:23 +000029904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristyad38abe2012-12-23 23:03:21 +000029905$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029906fi
29907
29908if test "$have_gvc" = 'yes'; then
29909
cristy8b350f62009-11-15 23:12:43 +000029910$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029911
cristy32f75d42015-06-05 18:46:23 +000029912 CFLAGS="$GVC_CFLAGS $CFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000029913fi
29914
cristy73bd4a52010-10-05 11:24:23 +000029915 if test "$have_gvc" = 'yes'; then
29916 GVC_DELEGATE_TRUE=
29917 GVC_DELEGATE_FALSE='#'
29918else
29919 GVC_DELEGATE_TRUE='#'
29920 GVC_DELEGATE_FALSE=
29921fi
29922
cristy3ed852e2009-09-05 21:47:34 +000029923
29924
29925
29926
29927#
29928# Check for JBIG delegate library.
29929#
29930
29931
29932# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000029933if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029934 withval=$with_jbig; with_jbig=$withval
29935else
29936 with_jbig='yes'
29937fi
29938
29939
29940have_jbig='no'
29941JBIG_LIBS=''
29942if test "$with_jbig" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29944$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029946$as_echo_n "checking for JBIG... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29948$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029949 failed=0
29950 passed=0
cristy8b350f62009-11-15 23:12:43 +000029951 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029952if test "x$ac_cv_header_jbig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029953 passed=`expr $passed + 1`
29954else
29955 failed=`expr $failed + 1`
29956fi
29957
29958
cristy8b350f62009-11-15 23:12:43 +000029959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000029960$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029961if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029962 $as_echo_n "(cached) " >&6
29963else
29964 ac_check_lib_save_LIBS=$LIBS
29965LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029966cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029967/* end confdefs.h. */
29968
29969/* Override any GCC internal prototype to avoid an error.
29970 Use char because int might match the return type of a GCC
29971 builtin and then its argument prototype would still apply. */
29972#ifdef __cplusplus
29973extern "C"
29974#endif
29975char jbg_dec_init ();
29976int
29977main ()
29978{
29979return jbg_dec_init ();
29980 ;
29981 return 0;
29982}
29983_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029984if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029985 ac_cv_lib_jbig_jbg_dec_init=yes
29986else
cristy8b350f62009-11-15 23:12:43 +000029987 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000029988fi
cristy8b350f62009-11-15 23:12:43 +000029989rm -f core conftest.err conftest.$ac_objext \
29990 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029991LIBS=$ac_check_lib_save_LIBS
29992fi
cristy8b350f62009-11-15 23:12:43 +000029993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000029994$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000029995if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029996 passed=`expr $passed + 1`
29997else
29998 failed=`expr $failed + 1`
29999fi
30000
cristy8b350f62009-11-15 23:12:43 +000030001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030002$as_echo_n "checking if JBIG package is complete... " >&6; }
30003 if test $passed -gt 0; then
30004 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000030005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30006$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030007 have_jbig='no (failed tests)'
30008 else
30009 JBIG_LIBS='-ljbig'
30010 LIBS="$JBIG_LIBS $LIBS"
30011
cristy8b350f62009-11-15 23:12:43 +000030012$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030013
cristyad38abe2012-12-23 23:03:21 +000030014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30015$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030016 have_jbig='yes'
30017 fi
30018 else
cristyad38abe2012-12-23 23:03:21 +000030019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30020$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030021 fi
30022fi
cristy73bd4a52010-10-05 11:24:23 +000030023 if test "$have_jbig" = 'yes'; then
30024 JBIG_DELEGATE_TRUE=
30025 JBIG_DELEGATE_FALSE='#'
30026else
30027 JBIG_DELEGATE_TRUE='#'
30028 JBIG_DELEGATE_FALSE=
30029fi
30030
cristy3ed852e2009-09-05 21:47:34 +000030031
30032
30033
30034#
30035# Check for JPEG delegate library.
30036#
30037
30038# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000030039if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030040 withval=$with_jpeg; with_jpeg=$withval
30041else
30042 with_jpeg='yes'
30043fi
30044
30045
30046if test "$with_jpeg" != 'yes'; then
30047 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
30048fi
30049
30050have_jpeg='no'
30051JPEG_LIBS=''
30052if test "$with_jpeg" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000030053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30054$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000030056$as_echo_n "checking for JPEG... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000030057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30058$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030059 failed=0
30060 passed=0
cristy8b350f62009-11-15 23:12:43 +000030061 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030062if test "x$ac_cv_header_jconfig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030063 passed=`expr $passed + 1`
30064else
30065 failed=`expr $failed + 1`
30066fi
30067
30068
cristy8b350f62009-11-15 23:12:43 +000030069 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030070if test "x$ac_cv_header_jerror_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030071 passed=`expr $passed + 1`
30072else
30073 failed=`expr $failed + 1`
30074fi
30075
30076
cristy8b350f62009-11-15 23:12:43 +000030077 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030078if test "x$ac_cv_header_jmorecfg_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030079 passed=`expr $passed + 1`
30080else
30081 failed=`expr $failed + 1`
30082fi
30083
30084
cristy8b350f62009-11-15 23:12:43 +000030085 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030086if test "x$ac_cv_header_jpeglib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030087 passed=`expr $passed + 1`
30088else
30089 failed=`expr $failed + 1`
30090fi
30091
30092
cristy8b350f62009-11-15 23:12:43 +000030093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000030094$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030095if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030096 $as_echo_n "(cached) " >&6
30097else
30098 ac_check_lib_save_LIBS=$LIBS
30099LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030100cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030101/* end confdefs.h. */
30102
30103/* Override any GCC internal prototype to avoid an error.
30104 Use char because int might match the return type of a GCC
30105 builtin and then its argument prototype would still apply. */
30106#ifdef __cplusplus
30107extern "C"
30108#endif
30109char jpeg_read_header ();
30110int
30111main ()
30112{
30113return jpeg_read_header ();
30114 ;
30115 return 0;
30116}
30117_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030118if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030119 ac_cv_lib_jpeg_jpeg_read_header=yes
30120else
cristy8b350f62009-11-15 23:12:43 +000030121 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000030122fi
cristy8b350f62009-11-15 23:12:43 +000030123rm -f core conftest.err conftest.$ac_objext \
30124 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030125LIBS=$ac_check_lib_save_LIBS
30126fi
cristy8b350f62009-11-15 23:12:43 +000030127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000030128$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristyda16f162011-02-19 23:52:17 +000030129if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030130 passed=`expr $passed + 1`
30131else
30132 failed=`expr $failed + 1`
30133fi
30134
30135
30136# Test for compatible JPEG library
30137if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000030138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000030139$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030140if ${ac_cv_jpeg_version_ok+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030141 $as_echo_n "(cached) " >&6
30142else
cristy8b350f62009-11-15 23:12:43 +000030143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030144/* end confdefs.h. */
30145#include <stdio.h>
30146#include <stdlib.h>
30147#include <jpeglib.h>
30148
30149int
30150main ()
30151{
30152
30153#if JPEG_LIB_VERSION < 62
30154#error IJG JPEG library must be version 6b or newer!
30155#endif
30156return 0;
30157
30158 ;
30159 return 0;
30160}
30161_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030162if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030163 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
30164else
cristy8b350f62009-11-15 23:12:43 +000030165 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000030166fi
cristy3ed852e2009-09-05 21:47:34 +000030167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30168fi
cristy8b350f62009-11-15 23:12:43 +000030169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000030170$as_echo "$ac_cv_jpeg_version_ok" >&6; }
30171fi
cristy8b350f62009-11-15 23:12:43 +000030172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030173$as_echo_n "checking if JPEG package is complete... " >&6; }
30174 if test $passed -gt 0; then
30175 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000030176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30177$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030178 have_jpeg='no (failed tests)'
30179 else
30180 JPEG_LIBS='-ljpeg'
30181 LIBS="$JPEG_LIBS $LIBS"
30182
cristy8b350f62009-11-15 23:12:43 +000030183$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030184
cristyad38abe2012-12-23 23:03:21 +000030185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30186$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030187 have_jpeg='yes'
30188 fi
30189 else
cristyad38abe2012-12-23 23:03:21 +000030190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30191$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030192 fi
30193fi
cristy73bd4a52010-10-05 11:24:23 +000030194 if test "$have_jpeg" = 'yes'; then
30195 JPEG_DELEGATE_TRUE=
30196 JPEG_DELEGATE_FALSE='#'
30197else
30198 JPEG_DELEGATE_TRUE='#'
30199 JPEG_DELEGATE_FALSE=
30200fi
30201
cristy3ed852e2009-09-05 21:47:34 +000030202
30203
30204
30205#
cristy3ed852e2009-09-05 21:47:34 +000030206# Check for LCMS delegate library.
30207#
30208
30209# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000030210if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030211 withval=$with_lcms; with_lcms=$withval
30212else
30213 with_lcms='yes'
30214fi
30215
cristy71203402010-06-18 13:12:03 +000030216if test "$with_lcms" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000030217 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
30218fi
30219
cristy71203402010-06-18 13:12:03 +000030220have_lcms='no'
cristy32f75d42015-06-05 18:46:23 +000030221LCMS_CFLAGS=""
30222LCMS_LIBS=""
30223LCMS_PKG=""
30224if test "x$with_lcms" = "xyes"; then
30225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristyad38abe2012-12-23 23:03:21 +000030226$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000030227
cristy32f75d42015-06-05 18:46:23 +000030228pkg_failed=no
cristyb054e072015-06-05 20:35:43 +000030229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS2" >&5
30230$as_echo_n "checking for LCMS2... " >&6; }
30231
30232if test -n "$LCMS2_CFLAGS"; then
30233 pkg_cv_LCMS2_CFLAGS="$LCMS2_CFLAGS"
30234 elif test -n "$PKG_CONFIG"; then
30235 if test -n "$PKG_CONFIG" && \
30236 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms2 >= 2.0.0\""; } >&5
30237 ($PKG_CONFIG --exists --print-errors "lcms2 >= 2.0.0") 2>&5
30238 ac_status=$?
30239 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30240 test $ac_status = 0; }; then
30241 pkg_cv_LCMS2_CFLAGS=`$PKG_CONFIG --cflags "lcms2 >= 2.0.0" 2>/dev/null`
30242 test "x$?" != "x0" && pkg_failed=yes
30243else
30244 pkg_failed=yes
30245fi
30246 else
30247 pkg_failed=untried
30248fi
30249if test -n "$LCMS2_LIBS"; then
30250 pkg_cv_LCMS2_LIBS="$LCMS2_LIBS"
30251 elif test -n "$PKG_CONFIG"; then
30252 if test -n "$PKG_CONFIG" && \
30253 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms2 >= 2.0.0\""; } >&5
30254 ($PKG_CONFIG --exists --print-errors "lcms2 >= 2.0.0") 2>&5
30255 ac_status=$?
30256 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30257 test $ac_status = 0; }; then
30258 pkg_cv_LCMS2_LIBS=`$PKG_CONFIG --libs "lcms2 >= 2.0.0" 2>/dev/null`
30259 test "x$?" != "x0" && pkg_failed=yes
30260else
30261 pkg_failed=yes
30262fi
30263 else
30264 pkg_failed=untried
30265fi
30266
30267
30268
30269if test $pkg_failed = yes; then
30270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30271$as_echo "no" >&6; }
30272
30273if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30274 _pkg_short_errors_supported=yes
30275else
30276 _pkg_short_errors_supported=no
30277fi
30278 if test $_pkg_short_errors_supported = yes; then
30279 LCMS2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lcms2 >= 2.0.0" 2>&1`
30280 else
30281 LCMS2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lcms2 >= 2.0.0" 2>&1`
30282 fi
30283 # Put the nasty error message in config.log where it belongs
30284 echo "$LCMS2_PKG_ERRORS" >&5
30285
30286 have_lcms=no
30287elif test $pkg_failed = untried; then
30288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30289$as_echo "no" >&6; }
30290 have_lcms=no
30291else
30292 LCMS2_CFLAGS=$pkg_cv_LCMS2_CFLAGS
30293 LCMS2_LIBS=$pkg_cv_LCMS2_LIBS
30294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30295$as_echo "yes" >&6; }
30296 have_lcms=yes
30297fi
30298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30299$as_echo "" >&6; }
30300fi
30301
30302if test "$have_lcms" = 'yes'; then
30303
30304$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
30305
cristyb74ab6e2015-06-06 12:39:54 +000030306 LCMS_CFLAGS="$LCMS2_CFLAGS"
30307 LCMS_LIBS="$LCMS2_LIBS"
cristyb054e072015-06-05 20:35:43 +000030308 CFLAGS="$LCMS2_CFLAGS $CFLAGS"
cristyd6ac47f2015-06-06 13:46:55 +000030309 ac_fn_c_check_header_mongrel "$LINENO" "lcms2/lcms2.h" "ac_cv_header_lcms2_lcms2_h" "$ac_includes_default"
30310if test "x$ac_cv_header_lcms2_lcms2_h" = xyes; then :
30311 have_lcms_header='yes'
30312fi
30313
30314
30315 if test "$have_lcms_header" = 'yes'; then
30316
30317$as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
30318
cristybc8ef1c2015-06-06 14:32:21 +000030319 else
30320
30321$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
30322
cristyd6ac47f2015-06-06 13:46:55 +000030323 fi
cristyb054e072015-06-05 20:35:43 +000030324else
30325
30326pkg_failed=no
cristy32f75d42015-06-05 18:46:23 +000030327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS" >&5
30328$as_echo_n "checking for LCMS... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030329
cristy32f75d42015-06-05 18:46:23 +000030330if test -n "$LCMS_CFLAGS"; then
30331 pkg_cv_LCMS_CFLAGS="$LCMS_CFLAGS"
30332 elif test -n "$PKG_CONFIG"; then
30333 if test -n "$PKG_CONFIG" && \
30334 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms >= 1.0.0\""; } >&5
30335 ($PKG_CONFIG --exists --print-errors "lcms >= 1.0.0") 2>&5
30336 ac_status=$?
30337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30338 test $ac_status = 0; }; then
30339 pkg_cv_LCMS_CFLAGS=`$PKG_CONFIG --cflags "lcms >= 1.0.0" 2>/dev/null`
30340 test "x$?" != "x0" && pkg_failed=yes
cristy3ed852e2009-09-05 21:47:34 +000030341else
cristy32f75d42015-06-05 18:46:23 +000030342 pkg_failed=yes
cristy3ed852e2009-09-05 21:47:34 +000030343fi
cristy32f75d42015-06-05 18:46:23 +000030344 else
30345 pkg_failed=untried
cristy3ed852e2009-09-05 21:47:34 +000030346fi
cristy32f75d42015-06-05 18:46:23 +000030347if test -n "$LCMS_LIBS"; then
30348 pkg_cv_LCMS_LIBS="$LCMS_LIBS"
30349 elif test -n "$PKG_CONFIG"; then
30350 if test -n "$PKG_CONFIG" && \
30351 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms >= 1.0.0\""; } >&5
30352 ($PKG_CONFIG --exists --print-errors "lcms >= 1.0.0") 2>&5
30353 ac_status=$?
30354 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30355 test $ac_status = 0; }; then
30356 pkg_cv_LCMS_LIBS=`$PKG_CONFIG --libs "lcms >= 1.0.0" 2>/dev/null`
30357 test "x$?" != "x0" && pkg_failed=yes
cristy3ed852e2009-09-05 21:47:34 +000030358else
cristy32f75d42015-06-05 18:46:23 +000030359 pkg_failed=yes
30360fi
30361 else
30362 pkg_failed=untried
cristy3ed852e2009-09-05 21:47:34 +000030363fi
30364
cristy32f75d42015-06-05 18:46:23 +000030365
30366
30367if test $pkg_failed = yes; then
30368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30369$as_echo "no" >&6; }
30370
30371if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30372 _pkg_short_errors_supported=yes
30373else
30374 _pkg_short_errors_supported=no
30375fi
30376 if test $_pkg_short_errors_supported = yes; then
30377 LCMS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lcms >= 1.0.0" 2>&1`
30378 else
30379 LCMS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lcms >= 1.0.0" 2>&1`
30380 fi
30381 # Put the nasty error message in config.log where it belongs
30382 echo "$LCMS_PKG_ERRORS" >&5
30383
30384 have_lcms=no
30385elif test $pkg_failed = untried; then
30386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30387$as_echo "no" >&6; }
30388 have_lcms=no
30389else
30390 LCMS_CFLAGS=$pkg_cv_LCMS_CFLAGS
30391 LCMS_LIBS=$pkg_cv_LCMS_LIBS
cristyad38abe2012-12-23 23:03:21 +000030392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30393$as_echo "yes" >&6; }
cristy32f75d42015-06-05 18:46:23 +000030394 have_lcms=yes
30395fi
cristyb054e072015-06-05 20:35:43 +000030396 if test "$have_lcms" = 'yes'; then
cristy32f75d42015-06-05 18:46:23 +000030397
30398$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
30399
cristyb74ab6e2015-06-06 12:39:54 +000030400
30401$as_echo "#define LCMS_VERSION_1 1" >>confdefs.h
30402
cristyb054e072015-06-05 20:35:43 +000030403 CFLAGS="$LCMS_CFLAGS $CFLAGS"
cristyd6ac47f2015-06-06 13:46:55 +000030404 ac_fn_c_check_header_mongrel "$LINENO" "lcms/lcms.h" "ac_cv_header_lcms_lcms_h" "$ac_includes_default"
30405if test "x$ac_cv_header_lcms_lcms_h" = xyes; then :
30406 have_lcms_header='yes'
30407fi
30408
30409
30410 if test "$have_lcms_header" = 'yes'; then
30411
30412$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
30413
cristybc8ef1c2015-06-06 14:32:21 +000030414 else
30415
30416$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
30417
cristyd6ac47f2015-06-06 13:46:55 +000030418 fi
cristy4886c4f2015-06-06 15:26:09 +000030419 fi
cristy32f75d42015-06-05 18:46:23 +000030420fi
30421
30422 if test "$have_lcms" = 'yes'; then
cristy73bd4a52010-10-05 11:24:23 +000030423 LCMS_DELEGATE_TRUE=
30424 LCMS_DELEGATE_FALSE='#'
30425else
30426 LCMS_DELEGATE_TRUE='#'
30427 LCMS_DELEGATE_FALSE=
30428fi
30429
cristy71203402010-06-18 13:12:03 +000030430
cristy3ed852e2009-09-05 21:47:34 +000030431
30432
30433
30434#
cristy99db3872014-01-01 15:11:34 +000030435# Check for the OpenJP2 delegate library.
30436#
30437
30438# Check whether --with-openjp2 was given.
30439if test "${with_openjp2+set}" = set; then :
30440 withval=$with_openjp2; with_openjp2=$withval
30441else
30442 with_openjp2='yes'
30443fi
30444
30445
30446if test "$with_openjp2" != 'yes'; then
30447 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openjp2=$with_openjp2 "
30448fi
30449
30450have_openjp2='no'
30451LIBOPENJP2_CFLAGS=""
30452LIBOPENJP2_LIBS=""
30453LIBOPENJP2_PKG=""
30454if test "x$with_openjp2" = "xyes"; then
cristy32f75d42015-06-05 18:46:23 +000030455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy99db3872014-01-01 15:11:34 +000030456$as_echo "-------------------------------------------------------------" >&6; }
30457
30458pkg_failed=no
30459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBOPENJP2" >&5
30460$as_echo_n "checking for LIBOPENJP2... " >&6; }
30461
30462if test -n "$LIBOPENJP2_CFLAGS"; then
30463 pkg_cv_LIBOPENJP2_CFLAGS="$LIBOPENJP2_CFLAGS"
30464 elif test -n "$PKG_CONFIG"; then
30465 if test -n "$PKG_CONFIG" && \
cristybc964932014-05-08 21:45:03 +000030466 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libopenjp2 >= 2.1.0\""; } >&5
30467 ($PKG_CONFIG --exists --print-errors "libopenjp2 >= 2.1.0") 2>&5
cristy99db3872014-01-01 15:11:34 +000030468 ac_status=$?
30469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30470 test $ac_status = 0; }; then
cristybc964932014-05-08 21:45:03 +000030471 pkg_cv_LIBOPENJP2_CFLAGS=`$PKG_CONFIG --cflags "libopenjp2 >= 2.1.0" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000030472 test "x$?" != "x0" && pkg_failed=yes
cristy99db3872014-01-01 15:11:34 +000030473else
30474 pkg_failed=yes
30475fi
30476 else
30477 pkg_failed=untried
30478fi
30479if test -n "$LIBOPENJP2_LIBS"; then
30480 pkg_cv_LIBOPENJP2_LIBS="$LIBOPENJP2_LIBS"
30481 elif test -n "$PKG_CONFIG"; then
30482 if test -n "$PKG_CONFIG" && \
cristybc964932014-05-08 21:45:03 +000030483 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libopenjp2 >= 2.1.0\""; } >&5
30484 ($PKG_CONFIG --exists --print-errors "libopenjp2 >= 2.1.0") 2>&5
cristy99db3872014-01-01 15:11:34 +000030485 ac_status=$?
30486 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30487 test $ac_status = 0; }; then
cristybc964932014-05-08 21:45:03 +000030488 pkg_cv_LIBOPENJP2_LIBS=`$PKG_CONFIG --libs "libopenjp2 >= 2.1.0" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000030489 test "x$?" != "x0" && pkg_failed=yes
cristy99db3872014-01-01 15:11:34 +000030490else
30491 pkg_failed=yes
30492fi
30493 else
30494 pkg_failed=untried
30495fi
30496
30497
30498
30499if test $pkg_failed = yes; then
cristy146497a2015-05-17 22:46:16 +000030500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30501$as_echo "no" >&6; }
cristy99db3872014-01-01 15:11:34 +000030502
30503if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30504 _pkg_short_errors_supported=yes
30505else
30506 _pkg_short_errors_supported=no
30507fi
30508 if test $_pkg_short_errors_supported = yes; then
cristy146497a2015-05-17 22:46:16 +000030509 LIBOPENJP2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libopenjp2 >= 2.1.0" 2>&1`
cristy99db3872014-01-01 15:11:34 +000030510 else
cristy146497a2015-05-17 22:46:16 +000030511 LIBOPENJP2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libopenjp2 >= 2.1.0" 2>&1`
cristy99db3872014-01-01 15:11:34 +000030512 fi
30513 # Put the nasty error message in config.log where it belongs
30514 echo "$LIBOPENJP2_PKG_ERRORS" >&5
30515
cristy146497a2015-05-17 22:46:16 +000030516 have_openjp2=no
cristy99db3872014-01-01 15:11:34 +000030517elif test $pkg_failed = untried; then
cristy146497a2015-05-17 22:46:16 +000030518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30519$as_echo "no" >&6; }
cristy99db3872014-01-01 15:11:34 +000030520 have_openjp2=no
30521else
30522 LIBOPENJP2_CFLAGS=$pkg_cv_LIBOPENJP2_CFLAGS
30523 LIBOPENJP2_LIBS=$pkg_cv_LIBOPENJP2_LIBS
30524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30525$as_echo "yes" >&6; }
30526 have_openjp2=yes
30527fi
cristy32f75d42015-06-05 18:46:23 +000030528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy99db3872014-01-01 15:11:34 +000030529$as_echo "" >&6; }
30530fi
30531
30532if test "$have_openjp2" = 'yes'; then
30533
30534$as_echo "#define LIBOPENJP2_DELEGATE 1" >>confdefs.h
30535
cristy32f75d42015-06-05 18:46:23 +000030536 CFLAGS="$LIBOPENJP2_CFLAGS $CFLAGS"
cristy99db3872014-01-01 15:11:34 +000030537fi
30538
30539 if test "$have_openjp2" = 'yes'; then
30540 LIBOPENJP2_DELEGATE_TRUE=
30541 LIBOPENJP2_DELEGATE_FALSE='#'
30542else
30543 LIBOPENJP2_DELEGATE_TRUE='#'
30544 LIBOPENJP2_DELEGATE_FALSE=
30545fi
30546
30547
30548
30549
30550
30551
30552#
cristy3ed852e2009-09-05 21:47:34 +000030553# Check for the LQR (Liquid Rescale) delegate library.
30554#
30555
30556# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000030557if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030558 withval=$with_lqr; with_lqr=$withval
30559else
30560 with_lqr='yes'
30561fi
30562
30563
30564if test "$with_lqr" != 'yes'; then
30565 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
30566fi
30567
30568have_lqr='no'
30569LQR_CFLAGS=""
30570LQR_LIBS=""
30571LQR_PKG=""
30572if test "x$with_lqr" = "xyes"; then
cristy32f75d42015-06-05 18:46:23 +000030573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristyad38abe2012-12-23 23:03:21 +000030574$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030575
30576pkg_failed=no
30577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
30578$as_echo_n "checking for LQR... " >&6; }
30579
30580if test -n "$LQR_CFLAGS"; then
30581 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
30582 elif test -n "$PKG_CONFIG"; then
30583 if test -n "$PKG_CONFIG" && \
30584 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
30585 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
30586 ac_status=$?
30587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30588 test $ac_status = 0; }; then
30589 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000030590 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000030591else
30592 pkg_failed=yes
30593fi
30594 else
30595 pkg_failed=untried
30596fi
30597if test -n "$LQR_LIBS"; then
30598 pkg_cv_LQR_LIBS="$LQR_LIBS"
30599 elif test -n "$PKG_CONFIG"; then
30600 if test -n "$PKG_CONFIG" && \
30601 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
30602 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
30603 ac_status=$?
30604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30605 test $ac_status = 0; }; then
30606 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000030607 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000030608else
30609 pkg_failed=yes
30610fi
30611 else
30612 pkg_failed=untried
30613fi
30614
30615
30616
30617if test $pkg_failed = yes; then
cristy146497a2015-05-17 22:46:16 +000030618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30619$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030620
30621if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30622 _pkg_short_errors_supported=yes
30623else
30624 _pkg_short_errors_supported=no
30625fi
30626 if test $_pkg_short_errors_supported = yes; then
cristy146497a2015-05-17 22:46:16 +000030627 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lqr-1 >= 0.1.0" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000030628 else
cristy146497a2015-05-17 22:46:16 +000030629 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lqr-1 >= 0.1.0" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000030630 fi
30631 # Put the nasty error message in config.log where it belongs
30632 echo "$LQR_PKG_ERRORS" >&5
30633
cristy146497a2015-05-17 22:46:16 +000030634 have_lqr=no
cristy73bd4a52010-10-05 11:24:23 +000030635elif test $pkg_failed = untried; then
cristy146497a2015-05-17 22:46:16 +000030636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30637$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030638 have_lqr=no
30639else
30640 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
30641 LQR_LIBS=$pkg_cv_LQR_LIBS
30642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30643$as_echo "yes" >&6; }
30644 have_lqr=yes
30645fi
cristy32f75d42015-06-05 18:46:23 +000030646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristyad38abe2012-12-23 23:03:21 +000030647$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030648fi
30649
30650if test "$have_lqr" = 'yes'; then
30651
cristy8b350f62009-11-15 23:12:43 +000030652$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030653
cristy32f75d42015-06-05 18:46:23 +000030654 CFLAGS="$LQR_CFLAGS $CFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000030655fi
30656
cristy73bd4a52010-10-05 11:24:23 +000030657 if test "$have_lqr" = 'yes'; then
30658 LQR_DELEGATE_TRUE=
30659 LQR_DELEGATE_FALSE='#'
30660else
30661 LQR_DELEGATE_TRUE='#'
30662 LQR_DELEGATE_FALSE=
30663fi
30664
cristy3ed852e2009-09-05 21:47:34 +000030665
30666
30667
30668
cristy81beccd2011-10-03 18:17:24 +000030669# Disable LZMA (lzma library)
cristyfbb0ef02010-12-19 02:32:11 +000030670
30671# Check whether --with-lzma was given.
30672if test "${with_lzma+set}" = set; then :
30673 withval=$with_lzma; with_lzma=$withval
30674else
30675 with_lzma='yes'
30676fi
30677
cristy81beccd2011-10-03 18:17:24 +000030678if test "$with_lzma" != 'yes' ; then
cristyfbb0ef02010-12-19 02:32:11 +000030679 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma "
30680fi
30681
cristyb94e5002011-11-14 13:20:10 +000030682LZMA_PKG=""
30683if test "x$with_lzma" = "xyes"; then
cristy32f75d42015-06-05 18:46:23 +000030684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristyad38abe2012-12-23 23:03:21 +000030685$as_echo "-------------------------------------------------------------" >&6; }
cristyb94e5002011-11-14 13:20:10 +000030686
30687pkg_failed=no
30688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5
cristyfbb0ef02010-12-19 02:32:11 +000030689$as_echo_n "checking for LZMA... " >&6; }
cristyb94e5002011-11-14 13:20:10 +000030690
30691if test -n "$LZMA_CFLAGS"; then
30692 pkg_cv_LZMA_CFLAGS="$LZMA_CFLAGS"
30693 elif test -n "$PKG_CONFIG"; then
30694 if test -n "$PKG_CONFIG" && \
30695 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30696 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30697 ac_status=$?
30698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30699 test $ac_status = 0; }; then
30700 pkg_cv_LZMA_CFLAGS=`$PKG_CONFIG --cflags "liblzma >= 2.9.0" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000030701 test "x$?" != "x0" && pkg_failed=yes
cristyb94e5002011-11-14 13:20:10 +000030702else
30703 pkg_failed=yes
30704fi
30705 else
30706 pkg_failed=untried
30707fi
30708if test -n "$LZMA_LIBS"; then
30709 pkg_cv_LZMA_LIBS="$LZMA_LIBS"
30710 elif test -n "$PKG_CONFIG"; then
30711 if test -n "$PKG_CONFIG" && \
30712 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30713 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30714 ac_status=$?
30715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30716 test $ac_status = 0; }; then
30717 pkg_cv_LZMA_LIBS=`$PKG_CONFIG --libs "liblzma >= 2.9.0" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000030718 test "x$?" != "x0" && pkg_failed=yes
cristyb94e5002011-11-14 13:20:10 +000030719else
30720 pkg_failed=yes
30721fi
30722 else
30723 pkg_failed=untried
30724fi
30725
30726
30727
30728if test $pkg_failed = yes; then
cristy146497a2015-05-17 22:46:16 +000030729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30730$as_echo "no" >&6; }
cristyb94e5002011-11-14 13:20:10 +000030731
30732if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30733 _pkg_short_errors_supported=yes
30734else
30735 _pkg_short_errors_supported=no
30736fi
30737 if test $_pkg_short_errors_supported = yes; then
cristy146497a2015-05-17 22:46:16 +000030738 LZMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "liblzma >= 2.9.0" 2>&1`
cristyb94e5002011-11-14 13:20:10 +000030739 else
cristy146497a2015-05-17 22:46:16 +000030740 LZMA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "liblzma >= 2.9.0" 2>&1`
cristyb94e5002011-11-14 13:20:10 +000030741 fi
30742 # Put the nasty error message in config.log where it belongs
30743 echo "$LZMA_PKG_ERRORS" >&5
30744
cristy146497a2015-05-17 22:46:16 +000030745 have_lzma=no
cristyb94e5002011-11-14 13:20:10 +000030746elif test $pkg_failed = untried; then
cristy146497a2015-05-17 22:46:16 +000030747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30748$as_echo "no" >&6; }
cristyb94e5002011-11-14 13:20:10 +000030749 have_lzma=no
30750else
30751 LZMA_CFLAGS=$pkg_cv_LZMA_CFLAGS
30752 LZMA_LIBS=$pkg_cv_LZMA_LIBS
30753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30754$as_echo "yes" >&6; }
30755 have_lzma=yes
30756fi
cristy32f75d42015-06-05 18:46:23 +000030757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristyad38abe2012-12-23 23:03:21 +000030758$as_echo "" >&6; }
cristyfbb0ef02010-12-19 02:32:11 +000030759fi
30760
cristyb94e5002011-11-14 13:20:10 +000030761if test "$have_lzma" = 'yes'; then
cristyfbb0ef02010-12-19 02:32:11 +000030762
30763$as_echo "#define LZMA_DELEGATE 1" >>confdefs.h
30764
cristy32f75d42015-06-05 18:46:23 +000030765 CFLAGS="$LZMA_CFLAGS $CFLAGS"
cristyfbb0ef02010-12-19 02:32:11 +000030766fi
cristyb94e5002011-11-14 13:20:10 +000030767
cristyfbb0ef02010-12-19 02:32:11 +000030768 if test "$have_lzma" = 'yes'; then
30769 LZMA_DELEGATE_TRUE=
30770 LZMA_DELEGATE_FALSE='#'
30771else
30772 LZMA_DELEGATE_TRUE='#'
30773 LZMA_DELEGATE_FALSE=
30774fi
30775
30776
30777
30778
cristyb94e5002011-11-14 13:20:10 +000030779
cristy3ed852e2009-09-05 21:47:34 +000030780#
30781# Check for the OpenEXR delegate library.
30782#
30783
30784# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000030785if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030786 withval=$with_openexr; with_openexr=$withval
30787else
30788 with_openexr='yes'
30789fi
30790
30791
30792if test "$with_openexr" != 'yes'; then
30793 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
30794fi
30795
30796have_openexr='no'
30797OPENEXR_CFLAGS=""
30798OPENEXR_LIBS=""
30799OPENEXR_PKG=""
30800if test "x$with_openexr" = "xyes"; then
cristy32f75d42015-06-05 18:46:23 +000030801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristyad38abe2012-12-23 23:03:21 +000030802$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030803
30804pkg_failed=no
30805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
30806$as_echo_n "checking for OPENEXR... " >&6; }
30807
30808if test -n "$OPENEXR_CFLAGS"; then
30809 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
30810 elif test -n "$PKG_CONFIG"; then
30811 if test -n "$PKG_CONFIG" && \
30812 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30813 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30814 ac_status=$?
30815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30816 test $ac_status = 0; }; then
30817 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000030818 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000030819else
30820 pkg_failed=yes
30821fi
30822 else
30823 pkg_failed=untried
30824fi
30825if test -n "$OPENEXR_LIBS"; then
30826 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
30827 elif test -n "$PKG_CONFIG"; then
30828 if test -n "$PKG_CONFIG" && \
30829 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30830 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30831 ac_status=$?
30832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30833 test $ac_status = 0; }; then
30834 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000030835 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000030836else
30837 pkg_failed=yes
30838fi
30839 else
30840 pkg_failed=untried
30841fi
30842
30843
30844
30845if test $pkg_failed = yes; then
cristy146497a2015-05-17 22:46:16 +000030846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30847$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030848
30849if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30850 _pkg_short_errors_supported=yes
30851else
30852 _pkg_short_errors_supported=no
30853fi
30854 if test $_pkg_short_errors_supported = yes; then
cristy146497a2015-05-17 22:46:16 +000030855 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "OpenEXR >= 1.0.6" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000030856 else
cristy146497a2015-05-17 22:46:16 +000030857 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "OpenEXR >= 1.0.6" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000030858 fi
30859 # Put the nasty error message in config.log where it belongs
30860 echo "$OPENEXR_PKG_ERRORS" >&5
30861
cristy146497a2015-05-17 22:46:16 +000030862 have_openexr=no
cristy73bd4a52010-10-05 11:24:23 +000030863elif test $pkg_failed = untried; then
cristy146497a2015-05-17 22:46:16 +000030864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30865$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030866 have_openexr=no
30867else
30868 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
30869 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
30870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30871$as_echo "yes" >&6; }
30872 have_openexr=yes
30873fi
cristy32f75d42015-06-05 18:46:23 +000030874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristyad38abe2012-12-23 23:03:21 +000030875$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030876fi
30877
30878if test "$have_openexr" = 'yes'; then
30879
cristy8b350f62009-11-15 23:12:43 +000030880$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030881
cristy32f75d42015-06-05 18:46:23 +000030882 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000030883fi
30884
cristy73bd4a52010-10-05 11:24:23 +000030885 if test "$have_openexr" = 'yes'; then
30886 OPENEXR_DELEGATE_TRUE=
30887 OPENEXR_DELEGATE_FALSE='#'
30888else
30889 OPENEXR_DELEGATE_TRUE='#'
30890 OPENEXR_DELEGATE_FALSE=
30891fi
30892
cristy3ed852e2009-09-05 21:47:34 +000030893
30894
30895
30896
30897#
cristy41cbe8a2011-10-27 01:35:18 +000030898# Check for PANGO delegate library.
30899#
30900
30901# Check whether --with-pango was given.
30902if test "${with_pango+set}" = set; then :
30903 withval=$with_pango; with_pango=$withval
30904else
cristyfc3d0222012-02-07 15:05:57 +000030905 with_pango='yes'
cristy41cbe8a2011-10-27 01:35:18 +000030906fi
30907
30908
30909if test "$with_pango" != 'yes'; then
30910 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-pango=$with_pango "
30911fi
30912
30913have_pango='no'
cristya054b762012-03-26 23:16:00 +000030914have_pangocairo='no'
cristy41cbe8a2011-10-27 01:35:18 +000030915PANGO_CFLAGS=""
30916PANGO_LIBS=""
30917PANGO_PKG=""
30918if test "x$with_pango" = "xyes"; then
cristy32f75d42015-06-05 18:46:23 +000030919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy41cbe8a2011-10-27 01:35:18 +000030920$as_echo "-------------------------------------------------------------" >&6; }
30921
30922pkg_failed=no
30923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
30924$as_echo_n "checking for PANGO... " >&6; }
30925
30926if test -n "$PANGO_CFLAGS"; then
30927 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
30928 elif test -n "$PKG_CONFIG"; then
30929 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000030930 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
30931 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000030932 ac_status=$?
30933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30934 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000030935 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pangocairo >= 1.28.1" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000030936 test "x$?" != "x0" && pkg_failed=yes
cristy41cbe8a2011-10-27 01:35:18 +000030937else
30938 pkg_failed=yes
30939fi
30940 else
30941 pkg_failed=untried
30942fi
30943if test -n "$PANGO_LIBS"; then
30944 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
30945 elif test -n "$PKG_CONFIG"; then
30946 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000030947 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
30948 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000030949 ac_status=$?
30950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30951 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000030952 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pangocairo >= 1.28.1" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000030953 test "x$?" != "x0" && pkg_failed=yes
cristy41cbe8a2011-10-27 01:35:18 +000030954else
30955 pkg_failed=yes
30956fi
30957 else
30958 pkg_failed=untried
30959fi
30960
30961
30962
30963if test $pkg_failed = yes; then
cristy146497a2015-05-17 22:46:16 +000030964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30965$as_echo "no" >&6; }
cristy41cbe8a2011-10-27 01:35:18 +000030966
30967if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30968 _pkg_short_errors_supported=yes
30969else
30970 _pkg_short_errors_supported=no
30971fi
30972 if test $_pkg_short_errors_supported = yes; then
cristy146497a2015-05-17 22:46:16 +000030973 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000030974 else
cristy146497a2015-05-17 22:46:16 +000030975 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000030976 fi
30977 # Put the nasty error message in config.log where it belongs
30978 echo "$PANGO_PKG_ERRORS" >&5
30979
cristy146497a2015-05-17 22:46:16 +000030980 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000030981elif test $pkg_failed = untried; then
cristy146497a2015-05-17 22:46:16 +000030982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30983$as_echo "no" >&6; }
cristya054b762012-03-26 23:16:00 +000030984 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000030985else
30986 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
30987 PANGO_LIBS=$pkg_cv_PANGO_LIBS
30988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30989$as_echo "yes" >&6; }
cristya054b762012-03-26 23:16:00 +000030990 have_pangocairo=yes
cristy41cbe8a2011-10-27 01:35:18 +000030991fi
cristy32f75d42015-06-05 18:46:23 +000030992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy41cbe8a2011-10-27 01:35:18 +000030993$as_echo "" >&6; }
cristy7dc48ed2011-10-28 14:11:43 +000030994
30995pkg_failed=no
30996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
30997$as_echo_n "checking for PANGO... " >&6; }
30998
30999if test -n "$PANGO_CFLAGS"; then
31000 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
31001 elif test -n "$PKG_CONFIG"; then
31002 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000031003 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
31004 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000031005 ac_status=$?
31006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31007 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000031008 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pango >= 1.28.1" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000031009 test "x$?" != "x0" && pkg_failed=yes
cristy7dc48ed2011-10-28 14:11:43 +000031010else
31011 pkg_failed=yes
31012fi
31013 else
31014 pkg_failed=untried
31015fi
31016if test -n "$PANGO_LIBS"; then
31017 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
31018 elif test -n "$PKG_CONFIG"; then
31019 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000031020 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
31021 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000031022 ac_status=$?
31023 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31024 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000031025 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pango >= 1.28.1" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000031026 test "x$?" != "x0" && pkg_failed=yes
cristy7dc48ed2011-10-28 14:11:43 +000031027else
31028 pkg_failed=yes
31029fi
31030 else
31031 pkg_failed=untried
31032fi
31033
31034
31035
31036if test $pkg_failed = yes; then
cristy146497a2015-05-17 22:46:16 +000031037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31038$as_echo "no" >&6; }
cristy7dc48ed2011-10-28 14:11:43 +000031039
31040if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31041 _pkg_short_errors_supported=yes
31042else
31043 _pkg_short_errors_supported=no
31044fi
31045 if test $_pkg_short_errors_supported = yes; then
cristy146497a2015-05-17 22:46:16 +000031046 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000031047 else
cristy146497a2015-05-17 22:46:16 +000031048 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000031049 fi
31050 # Put the nasty error message in config.log where it belongs
31051 echo "$PANGO_PKG_ERRORS" >&5
31052
cristy146497a2015-05-17 22:46:16 +000031053 have_pango=no
cristy7dc48ed2011-10-28 14:11:43 +000031054elif test $pkg_failed = untried; then
cristy146497a2015-05-17 22:46:16 +000031055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31056$as_echo "no" >&6; }
cristy7dc48ed2011-10-28 14:11:43 +000031057 have_pango=no
31058else
31059 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
31060 PANGO_LIBS=$pkg_cv_PANGO_LIBS
31061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31062$as_echo "yes" >&6; }
31063 have_pango=yes
31064fi
cristy32f75d42015-06-05 18:46:23 +000031065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy7dc48ed2011-10-28 14:11:43 +000031066$as_echo "" >&6; }
cristy41cbe8a2011-10-27 01:35:18 +000031067fi
31068
31069if test "$have_pango" = 'yes'; then
31070
31071$as_echo "#define PANGO_DELEGATE 1" >>confdefs.h
31072
cristy32f75d42015-06-05 18:46:23 +000031073 CFLAGS="$PANGO_CFLAGS $CFLAGS"
cristy41cbe8a2011-10-27 01:35:18 +000031074fi
31075
cristya054b762012-03-26 23:16:00 +000031076if test "$have_pangocairo" = 'yes'; then
cristy41cbe8a2011-10-27 01:35:18 +000031077
cristya054b762012-03-26 23:16:00 +000031078$as_echo "#define PANGOCAIRO_DELEGATE 1" >>confdefs.h
cristy41cbe8a2011-10-27 01:35:18 +000031079
cristy32f75d42015-06-05 18:46:23 +000031080 CFLAGS="$PANGOCAIRO_CFLAGS $CFLAGS"
cristy41cbe8a2011-10-27 01:35:18 +000031081fi
31082
31083 if test "$have_pango" = 'yes'; then
31084 PANGO_DELEGATE_TRUE=
31085 PANGO_DELEGATE_FALSE='#'
31086else
31087 PANGO_DELEGATE_TRUE='#'
31088 PANGO_DELEGATE_FALSE=
31089fi
31090
cristya054b762012-03-26 23:16:00 +000031091 if test "$have_pangocairo" = 'yes'; then
31092 PANGOCAIRO_DELEGATE_TRUE=
31093 PANGOCAIRO_DELEGATE_FALSE='#'
cristy41cbe8a2011-10-27 01:35:18 +000031094else
cristya054b762012-03-26 23:16:00 +000031095 PANGOCAIRO_DELEGATE_TRUE='#'
31096 PANGOCAIRO_DELEGATE_FALSE=
cristy41cbe8a2011-10-27 01:35:18 +000031097fi
31098
31099
31100
31101
31102
31103#
cristy3ed852e2009-09-05 21:47:34 +000031104# Check for PNG delegate library.
31105#
31106
31107# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000031108if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031109 withval=$with_png; with_png=$withval
31110else
31111 with_png='yes'
31112fi
31113
31114
31115if test "$with_png" != 'yes'; then
31116 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
31117fi
31118
cristy81beccd2011-10-03 18:17:24 +000031119have_png='no'
cristy32f75d42015-06-05 18:46:23 +000031120PNG_CFLAGS=""
31121PNG_LIBS=""
31122PNG_PKG=""
31123if test "x$with_png" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000031124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31125$as_echo "-------------------------------------------------------------" >&6; }
cristy32f75d42015-06-05 18:46:23 +000031126
31127pkg_failed=no
31128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
31129$as_echo_n "checking for PNG... " >&6; }
31130
31131if test -n "$PNG_CFLAGS"; then
31132 pkg_cv_PNG_CFLAGS="$PNG_CFLAGS"
31133 elif test -n "$PKG_CONFIG"; then
31134 if test -n "$PKG_CONFIG" && \
31135 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng >= 1.0.0\""; } >&5
31136 ($PKG_CONFIG --exists --print-errors "libpng >= 1.0.0") 2>&5
31137 ac_status=$?
31138 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31139 test $ac_status = 0; }; then
31140 pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng >= 1.0.0" 2>/dev/null`
31141 test "x$?" != "x0" && pkg_failed=yes
31142else
31143 pkg_failed=yes
31144fi
31145 else
31146 pkg_failed=untried
31147fi
31148if test -n "$PNG_LIBS"; then
31149 pkg_cv_PNG_LIBS="$PNG_LIBS"
31150 elif test -n "$PKG_CONFIG"; then
31151 if test -n "$PKG_CONFIG" && \
31152 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng >= 1.0.0\""; } >&5
31153 ($PKG_CONFIG --exists --print-errors "libpng >= 1.0.0") 2>&5
31154 ac_status=$?
31155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31156 test $ac_status = 0; }; then
31157 pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng >= 1.0.0" 2>/dev/null`
31158 test "x$?" != "x0" && pkg_failed=yes
31159else
31160 pkg_failed=yes
31161fi
31162 else
31163 pkg_failed=untried
31164fi
31165
31166
31167
31168if test $pkg_failed = yes; then
31169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31170$as_echo "no" >&6; }
31171
31172if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31173 _pkg_short_errors_supported=yes
31174else
31175 _pkg_short_errors_supported=no
31176fi
31177 if test $_pkg_short_errors_supported = yes; then
31178 PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpng >= 1.0.0" 2>&1`
31179 else
31180 PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpng >= 1.0.0" 2>&1`
31181 fi
31182 # Put the nasty error message in config.log where it belongs
31183 echo "$PNG_PKG_ERRORS" >&5
31184
31185 have_png=no
31186elif test $pkg_failed = untried; then
31187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31188$as_echo "no" >&6; }
31189 have_png=no
31190else
31191 PNG_CFLAGS=$pkg_cv_PNG_CFLAGS
31192 PNG_LIBS=$pkg_cv_PNG_LIBS
31193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31194$as_echo "yes" >&6; }
31195 have_png=yes
31196fi
cristyad38abe2012-12-23 23:03:21 +000031197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31198$as_echo "" >&6; }
cristy64877302011-08-23 19:10:31 +000031199fi
31200
cristy32f75d42015-06-05 18:46:23 +000031201if test "$have_png" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000031202
cristy8b350f62009-11-15 23:12:43 +000031203$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031204
cristy32f75d42015-06-05 18:46:23 +000031205 CFLAGS="$PNG_CFLAGS $CFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000031206fi
cristy64877302011-08-23 19:10:31 +000031207
cristy73bd4a52010-10-05 11:24:23 +000031208 if test "$have_png" = 'yes'; then
31209 PNG_DELEGATE_TRUE=
31210 PNG_DELEGATE_FALSE='#'
31211else
31212 PNG_DELEGATE_TRUE='#'
31213 PNG_DELEGATE_FALSE=
31214fi
31215
cristy3ed852e2009-09-05 21:47:34 +000031216
cristy50d3f5c2011-09-10 20:09:06 +000031217
cristy3ed852e2009-09-05 21:47:34 +000031218
31219
31220#
31221# Check for RSVG delegate library.
31222#
31223
31224# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000031225if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031226 withval=$with_rsvg; with_rsvg=$withval
31227else
cristy1164d5f2012-08-15 00:58:25 +000031228 with_rsvg='no'
cristy3ed852e2009-09-05 21:47:34 +000031229fi
31230
31231
31232if test "$with_rsvg" != 'yes'; then
31233 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
31234fi
31235
31236have_rsvg='no'
31237have_cairo='no'
31238RSVG_CFLAGS=""
31239RSVG_LIBS=""
31240RSVG_PKG=""
31241if test "x$with_rsvg" = "xyes"; then
cristy32f75d42015-06-05 18:46:23 +000031242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristyad38abe2012-12-23 23:03:21 +000031243$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031244
31245pkg_failed=no
31246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
31247$as_echo_n "checking for RSVG... " >&6; }
31248
31249if test -n "$RSVG_CFLAGS"; then
31250 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
31251 elif test -n "$PKG_CONFIG"; then
31252 if test -n "$PKG_CONFIG" && \
31253 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31254 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31255 ac_status=$?
31256 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31257 test $ac_status = 0; }; then
31258 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000031259 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000031260else
31261 pkg_failed=yes
31262fi
31263 else
31264 pkg_failed=untried
31265fi
31266if test -n "$RSVG_LIBS"; then
31267 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
31268 elif test -n "$PKG_CONFIG"; then
31269 if test -n "$PKG_CONFIG" && \
31270 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31271 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31272 ac_status=$?
31273 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31274 test $ac_status = 0; }; then
31275 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000031276 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000031277else
31278 pkg_failed=yes
31279fi
31280 else
31281 pkg_failed=untried
31282fi
31283
31284
31285
31286if test $pkg_failed = yes; then
cristy146497a2015-05-17 22:46:16 +000031287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31288$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031289
31290if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31291 _pkg_short_errors_supported=yes
31292else
31293 _pkg_short_errors_supported=no
31294fi
31295 if test $_pkg_short_errors_supported = yes; then
cristy146497a2015-05-17 22:46:16 +000031296 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 +000031297 else
cristy146497a2015-05-17 22:46:16 +000031298 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "librsvg-2.0 >= 2.9.0" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000031299 fi
31300 # Put the nasty error message in config.log where it belongs
31301 echo "$RSVG_PKG_ERRORS" >&5
31302
cristy146497a2015-05-17 22:46:16 +000031303 have_rsvg=no
cristy73bd4a52010-10-05 11:24:23 +000031304elif test $pkg_failed = untried; then
cristy146497a2015-05-17 22:46:16 +000031305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31306$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031307 have_rsvg=no
31308else
31309 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
31310 RSVG_LIBS=$pkg_cv_RSVG_LIBS
31311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31312$as_echo "yes" >&6; }
31313 have_rsvg=yes
31314fi
cristy32f75d42015-06-05 18:46:23 +000031315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristyad38abe2012-12-23 23:03:21 +000031316$as_echo "" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031317
31318pkg_failed=no
31319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
31320$as_echo_n "checking for CAIRO_SVG... " >&6; }
31321
31322if test -n "$CAIRO_SVG_CFLAGS"; then
31323 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
31324 elif test -n "$PKG_CONFIG"; then
31325 if test -n "$PKG_CONFIG" && \
31326 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31327 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31328 ac_status=$?
31329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31330 test $ac_status = 0; }; then
31331 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000031332 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000031333else
31334 pkg_failed=yes
31335fi
31336 else
31337 pkg_failed=untried
31338fi
31339if test -n "$CAIRO_SVG_LIBS"; then
31340 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
31341 elif test -n "$PKG_CONFIG"; then
31342 if test -n "$PKG_CONFIG" && \
31343 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31344 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31345 ac_status=$?
31346 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31347 test $ac_status = 0; }; then
31348 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000031349 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000031350else
31351 pkg_failed=yes
31352fi
31353 else
31354 pkg_failed=untried
31355fi
31356
31357
31358
31359if test $pkg_failed = yes; then
cristy146497a2015-05-17 22:46:16 +000031360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31361$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031362
31363if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31364 _pkg_short_errors_supported=yes
31365else
31366 _pkg_short_errors_supported=no
31367fi
31368 if test $_pkg_short_errors_supported = yes; then
cristy146497a2015-05-17 22:46:16 +000031369 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cairo-svg" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000031370 else
cristy146497a2015-05-17 22:46:16 +000031371 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cairo-svg" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000031372 fi
31373 # Put the nasty error message in config.log where it belongs
31374 echo "$CAIRO_SVG_PKG_ERRORS" >&5
31375
cristy146497a2015-05-17 22:46:16 +000031376 have_cairo=no
cristy73bd4a52010-10-05 11:24:23 +000031377elif test $pkg_failed = untried; then
cristy146497a2015-05-17 22:46:16 +000031378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31379$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031380 have_cairo=no
31381else
31382 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
31383 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
31384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31385$as_echo "yes" >&6; }
31386 have_cairo=yes
31387fi
cristy32f75d42015-06-05 18:46:23 +000031388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristyad38abe2012-12-23 23:03:21 +000031389$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031390fi
31391
31392if test "$have_rsvg" = 'yes'; then
31393
cristy8b350f62009-11-15 23:12:43 +000031394$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031395
cristy32f75d42015-06-05 18:46:23 +000031396 CFLAGS="$RSVG_CFLAGS $CFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000031397fi
31398
31399if test "$have_cairo" = 'yes'; then
31400
cristy8b350f62009-11-15 23:12:43 +000031401$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031402
cristy32f75d42015-06-05 18:46:23 +000031403 CFLAGS="$CAIRO_SVG_CFLAGS $CFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000031404fi
31405
cristy73bd4a52010-10-05 11:24:23 +000031406 if test "$have_rsvg" = 'yes'; then
31407 RSVG_DELEGATE_TRUE=
31408 RSVG_DELEGATE_FALSE='#'
31409else
31410 RSVG_DELEGATE_TRUE='#'
31411 RSVG_DELEGATE_FALSE=
31412fi
31413
31414 if test "$have_cairo" = 'yes'; then
31415 CAIRO_DELEGATE_TRUE=
31416 CAIRO_DELEGATE_FALSE='#'
31417else
31418 CAIRO_DELEGATE_TRUE='#'
31419 CAIRO_DELEGATE_FALSE=
31420fi
31421
cristy3ed852e2009-09-05 21:47:34 +000031422
31423
31424
31425
31426#
31427# Check for TIFF delegate library.
31428#
31429
31430# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000031431if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031432 withval=$with_tiff; with_tiff=$withval
31433else
31434 with_tiff='yes'
31435fi
31436
31437
31438if test "$with_tiff" != 'yes'; then
31439 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
31440fi
31441
31442have_tiff='no'
31443TIFF_LIBS=''
31444if test "$with_tiff" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000031445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31446$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000031448$as_echo_n "checking for TIFF... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000031449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31450$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031451 failed=0
31452 passed=0
cristy8b350f62009-11-15 23:12:43 +000031453 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031454if test "x$ac_cv_header_tiff_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031455 passed=`expr $passed + 1`
31456else
31457 failed=`expr $failed + 1`
31458fi
31459
31460
cristy8b350f62009-11-15 23:12:43 +000031461 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031462if test "x$ac_cv_header_tiffio_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031463 passed=`expr $passed + 1`
31464else
31465 failed=`expr $failed + 1`
31466fi
31467
31468
cristy8b350f62009-11-15 23:12:43 +000031469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031470$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031471if ${ac_cv_lib_tiff_TIFFOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031472 $as_echo_n "(cached) " >&6
31473else
31474 ac_check_lib_save_LIBS=$LIBS
31475LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031476cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031477/* end confdefs.h. */
31478
31479/* Override any GCC internal prototype to avoid an error.
31480 Use char because int might match the return type of a GCC
31481 builtin and then its argument prototype would still apply. */
31482#ifdef __cplusplus
31483extern "C"
31484#endif
31485char TIFFOpen ();
31486int
31487main ()
31488{
31489return TIFFOpen ();
31490 ;
31491 return 0;
31492}
31493_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031494if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031495 ac_cv_lib_tiff_TIFFOpen=yes
31496else
cristy8b350f62009-11-15 23:12:43 +000031497 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031498fi
cristy8b350f62009-11-15 23:12:43 +000031499rm -f core conftest.err conftest.$ac_objext \
31500 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031501LIBS=$ac_check_lib_save_LIBS
31502fi
cristy8b350f62009-11-15 23:12:43 +000031503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031504$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031505if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031506 passed=`expr $passed + 1`
31507else
31508 failed=`expr $failed + 1`
31509fi
31510
cristy8b350f62009-11-15 23:12:43 +000031511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031512$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031513if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031514 $as_echo_n "(cached) " >&6
31515else
31516 ac_check_lib_save_LIBS=$LIBS
31517LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031518cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031519/* end confdefs.h. */
31520
31521/* Override any GCC internal prototype to avoid an error.
31522 Use char because int might match the return type of a GCC
31523 builtin and then its argument prototype would still apply. */
31524#ifdef __cplusplus
31525extern "C"
31526#endif
31527char TIFFClientOpen ();
31528int
31529main ()
31530{
31531return TIFFClientOpen ();
31532 ;
31533 return 0;
31534}
31535_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031536if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031537 ac_cv_lib_tiff_TIFFClientOpen=yes
31538else
cristy8b350f62009-11-15 23:12:43 +000031539 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031540fi
cristy8b350f62009-11-15 23:12:43 +000031541rm -f core conftest.err conftest.$ac_objext \
31542 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031543LIBS=$ac_check_lib_save_LIBS
31544fi
cristy8b350f62009-11-15 23:12:43 +000031545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031546$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031547if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031548 passed=`expr $passed + 1`
31549else
31550 failed=`expr $failed + 1`
31551fi
31552
cristy8b350f62009-11-15 23:12:43 +000031553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031554$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031555if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031556 $as_echo_n "(cached) " >&6
31557else
31558 ac_check_lib_save_LIBS=$LIBS
31559LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031560cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031561/* end confdefs.h. */
31562
31563/* Override any GCC internal prototype to avoid an error.
31564 Use char because int might match the return type of a GCC
31565 builtin and then its argument prototype would still apply. */
31566#ifdef __cplusplus
31567extern "C"
31568#endif
31569char TIFFIsByteSwapped ();
31570int
31571main ()
31572{
31573return TIFFIsByteSwapped ();
31574 ;
31575 return 0;
31576}
31577_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031578if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031579 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
31580else
cristy8b350f62009-11-15 23:12:43 +000031581 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000031582fi
cristy8b350f62009-11-15 23:12:43 +000031583rm -f core conftest.err conftest.$ac_objext \
31584 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031585LIBS=$ac_check_lib_save_LIBS
31586fi
cristy8b350f62009-11-15 23:12:43 +000031587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000031588$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristyda16f162011-02-19 23:52:17 +000031589if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031590 passed=`expr $passed + 1`
31591else
31592 failed=`expr $failed + 1`
31593fi
31594
cristy8b350f62009-11-15 23:12:43 +000031595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031596$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031597if ${ac_cv_lib_tiff_TIFFReadRGBATile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031598 $as_echo_n "(cached) " >&6
31599else
31600 ac_check_lib_save_LIBS=$LIBS
31601LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031602cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031603/* end confdefs.h. */
31604
31605/* Override any GCC internal prototype to avoid an error.
31606 Use char because int might match the return type of a GCC
31607 builtin and then its argument prototype would still apply. */
31608#ifdef __cplusplus
31609extern "C"
31610#endif
31611char TIFFReadRGBATile ();
31612int
31613main ()
31614{
31615return TIFFReadRGBATile ();
31616 ;
31617 return 0;
31618}
31619_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031620if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031621 ac_cv_lib_tiff_TIFFReadRGBATile=yes
31622else
cristy8b350f62009-11-15 23:12:43 +000031623 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000031624fi
cristy8b350f62009-11-15 23:12:43 +000031625rm -f core conftest.err conftest.$ac_objext \
31626 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031627LIBS=$ac_check_lib_save_LIBS
31628fi
cristy8b350f62009-11-15 23:12:43 +000031629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000031630$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristyda16f162011-02-19 23:52:17 +000031631if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031632 passed=`expr $passed + 1`
31633else
31634 failed=`expr $failed + 1`
31635fi
31636
cristy8b350f62009-11-15 23:12:43 +000031637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031638$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031639if ${ac_cv_lib_tiff_TIFFReadRGBAStrip+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031640 $as_echo_n "(cached) " >&6
31641else
31642 ac_check_lib_save_LIBS=$LIBS
31643LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031644cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031645/* end confdefs.h. */
31646
31647/* Override any GCC internal prototype to avoid an error.
31648 Use char because int might match the return type of a GCC
31649 builtin and then its argument prototype would still apply. */
31650#ifdef __cplusplus
31651extern "C"
31652#endif
31653char TIFFReadRGBAStrip ();
31654int
31655main ()
31656{
31657return TIFFReadRGBAStrip ();
31658 ;
31659 return 0;
31660}
31661_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031662if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031663 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
31664else
cristy8b350f62009-11-15 23:12:43 +000031665 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000031666fi
cristy8b350f62009-11-15 23:12:43 +000031667rm -f core conftest.err conftest.$ac_objext \
31668 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031669LIBS=$ac_check_lib_save_LIBS
31670fi
cristy8b350f62009-11-15 23:12:43 +000031671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000031672$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristyda16f162011-02-19 23:52:17 +000031673if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031674 passed=`expr $passed + 1`
31675else
31676 failed=`expr $failed + 1`
31677fi
31678
cristy8b350f62009-11-15 23:12:43 +000031679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000031680$as_echo_n "checking if TIFF package is complete... " >&6; }
31681 if test $passed -gt 0; then
31682 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000031683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31684$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031685 have_tiff='no (failed tests)'
31686 else
31687 TIFF_LIBS='-ltiff'
31688 LIBS="$TIFF_LIBS $LIBS"
31689
cristy8b350f62009-11-15 23:12:43 +000031690$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031691
cristyad38abe2012-12-23 23:03:21 +000031692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31693$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031694 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000031695 for ac_header in tiffconf.h
31696do :
31697 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031698if test "x$ac_cv_header_tiffconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031699 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031700#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000031701_ACEOF
31702
31703fi
31704
31705done
31706
cristy8b350f62009-11-15 23:12:43 +000031707 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3f590e52011-11-14 14:29:44 +000031708 TIFFIsBigEndian TIFFReadEXIFDirectory TIFFSetErrorHandlerExt \
31709 TIFFSetTagExtender TIFFSetWarningHandlerExt \
31710 TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000031711do :
31712 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31713ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000031714if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000031715 cat >>confdefs.h <<_ACEOF
31716#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31717_ACEOF
31718
31719fi
31720done
31721
31722 fi
31723 else
cristyad38abe2012-12-23 23:03:21 +000031724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31725$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031726 fi
31727fi
cristy73bd4a52010-10-05 11:24:23 +000031728 if test "$have_tiff" = 'yes'; then
31729 TIFF_DELEGATE_TRUE=
31730 TIFF_DELEGATE_FALSE='#'
31731else
31732 TIFF_DELEGATE_TRUE='#'
31733 TIFF_DELEGATE_FALSE=
31734fi
31735
cristy3ed852e2009-09-05 21:47:34 +000031736
31737
31738
31739#
cristyb1860752011-03-14 00:27:46 +000031740# Check for WEBP delegate library.
31741#
31742
31743# Check whether --with-webp was given.
31744if test "${with_webp+set}" = set; then :
31745 withval=$with_webp; with_webp=$withval
31746else
31747 with_webp='yes'
31748fi
31749
31750
31751if test "$with_webp" != 'yes'; then
31752 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-webp=$with_webp "
31753fi
31754
31755have_webp='no'
31756WEBP_LIBS=''
31757if test "$with_webp" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000031758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31759$as_echo "-------------------------------------------------------------" >&6; }
cristyb1860752011-03-14 00:27:46 +000031760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBP" >&5
31761$as_echo_n "checking for WEBP... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000031762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31763$as_echo "" >&6; }
cristyb1860752011-03-14 00:27:46 +000031764 failed=0
31765 passed=0
31766 ac_fn_c_check_header_mongrel "$LINENO" "webp/decode.h" "ac_cv_header_webp_decode_h" "$ac_includes_default"
31767if test "x$ac_cv_header_webp_decode_h" = xyes; then :
31768 passed=`expr $passed + 1`
31769else
31770 failed=`expr $failed + 1`
31771fi
31772
31773
cristy6d670312013-03-22 23:23:01 +000031774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPPictureInitInternal in -lwebp" >&5
31775$as_echo_n "checking for WebPPictureInitInternal in -lwebp... " >&6; }
31776if ${ac_cv_lib_webp_WebPPictureInitInternal+:} false; then :
cristyb1860752011-03-14 00:27:46 +000031777 $as_echo_n "(cached) " >&6
31778else
31779 ac_check_lib_save_LIBS=$LIBS
31780LIBS="-lwebp $LIBS"
31781cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31782/* end confdefs.h. */
31783
31784/* Override any GCC internal prototype to avoid an error.
31785 Use char because int might match the return type of a GCC
31786 builtin and then its argument prototype would still apply. */
31787#ifdef __cplusplus
31788extern "C"
31789#endif
cristy6d670312013-03-22 23:23:01 +000031790char WebPPictureInitInternal ();
cristyb1860752011-03-14 00:27:46 +000031791int
31792main ()
31793{
cristy6d670312013-03-22 23:23:01 +000031794return WebPPictureInitInternal ();
cristyb1860752011-03-14 00:27:46 +000031795 ;
31796 return 0;
31797}
31798_ACEOF
31799if ac_fn_c_try_link "$LINENO"; then :
cristy6d670312013-03-22 23:23:01 +000031800 ac_cv_lib_webp_WebPPictureInitInternal=yes
cristyb1860752011-03-14 00:27:46 +000031801else
cristy6d670312013-03-22 23:23:01 +000031802 ac_cv_lib_webp_WebPPictureInitInternal=no
cristyb1860752011-03-14 00:27:46 +000031803fi
31804rm -f core conftest.err conftest.$ac_objext \
31805 conftest$ac_exeext conftest.$ac_ext
31806LIBS=$ac_check_lib_save_LIBS
31807fi
cristy6d670312013-03-22 23:23:01 +000031808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPPictureInitInternal" >&5
31809$as_echo "$ac_cv_lib_webp_WebPPictureInitInternal" >&6; }
31810if test "x$ac_cv_lib_webp_WebPPictureInitInternal" = xyes; then :
cristyb1860752011-03-14 00:27:46 +000031811 passed=`expr $passed + 1`
31812else
31813 failed=`expr $failed + 1`
31814fi
31815
31816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WEBP package is complete" >&5
31817$as_echo_n "checking if WEBP package is complete... " >&6; }
31818 if test $passed -gt 0; then
31819 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000031820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31821$as_echo "no -- some components failed test" >&6; }
cristyb1860752011-03-14 00:27:46 +000031822 have_webp='no (failed tests)'
31823 else
31824 WEBP_LIBS='-lwebp'
31825 LIBS="$WEBP_LIBS $LIBS"
31826
31827$as_echo "#define WEBP_DELEGATE 1" >>confdefs.h
31828
cristyad38abe2012-12-23 23:03:21 +000031829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31830$as_echo "yes" >&6; }
cristyb1860752011-03-14 00:27:46 +000031831 have_webp='yes'
31832 fi
31833 else
cristyad38abe2012-12-23 23:03:21 +000031834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31835$as_echo "no" >&6; }
cristyb1860752011-03-14 00:27:46 +000031836 fi
31837fi
31838 if test "$have_webp" = 'yes'; then
31839 WEBP_DELEGATE_TRUE=
31840 WEBP_DELEGATE_FALSE='#'
31841else
31842 WEBP_DELEGATE_TRUE='#'
31843 WEBP_DELEGATE_FALSE=
31844fi
31845
31846
31847
31848
31849#
cristy3ed852e2009-09-05 21:47:34 +000031850# Set Windows font directory.
31851#
31852
31853# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000031854if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031855 withval=$with_windows_font_dir; with_windows_font_dir=$withval
31856else
cristy5a3dc992014-12-05 19:50:04 +000031857 with_windows_font_dir='default'
cristy3ed852e2009-09-05 21:47:34 +000031858fi
31859
cristy5a3dc992014-12-05 19:50:04 +000031860
31861if test "$with_windows_font_dir" != 'default'; then
cristy3ed852e2009-09-05 21:47:34 +000031862 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
31863fi
31864
31865
31866#
31867# Check for WMF delegate library.
31868#
31869
31870# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000031871if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031872 withval=$with_wmf; with_wmf=$withval
31873else
cristy32f75d42015-06-05 18:46:23 +000031874 with_wmf='yes'
cristy3ed852e2009-09-05 21:47:34 +000031875fi
31876
31877
31878if test "$with_wmf" != 'yes'; then
31879 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
31880fi
31881
31882have_wmf='no'
cristyebc8f692015-06-16 10:36:30 +000031883WMF_LIBS=''
31884WMF_CFLAGS=''
31885OLIBS="$LIBS"
31886if test "$with_wmf" != 'no'; then
31887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF support " >&5
31888$as_echo_n "checking for WMF support ... " >&6; }
cristy32f75d42015-06-05 18:46:23 +000031889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31890$as_echo "" >&6; }
cristyebc8f692015-06-16 10:36:30 +000031891
31892 have_libwmflite='no'
31893 have_libwmf_ipa_h='no'
31894
31895 ac_fn_c_check_header_compile "$LINENO" "libwmf/ipa.h" "ac_cv_header_libwmf_ipa_h" "$FT2BUILD_H
31896"
31897if test "x$ac_cv_header_libwmf_ipa_h" = xyes; then :
31898 have_libwmf_ipa_h='yes'
cristy03f7cf92011-12-15 01:40:41 +000031899fi
31900
cristyebc8f692015-06-16 10:36:30 +000031901
31902 if test "$have_libwmf_ipa_h" = 'yes'; then
31903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_lite_create in -lwmflite" >&5
31904$as_echo_n "checking for wmf_lite_create in -lwmflite... " >&6; }
31905if ${ac_cv_lib_wmflite_wmf_lite_create+:} false; then :
31906 $as_echo_n "(cached) " >&6
31907else
31908 ac_check_lib_save_LIBS=$LIBS
31909LIBS="-lwmflite $LIBS"
31910cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31911/* end confdefs.h. */
31912
31913/* Override any GCC internal prototype to avoid an error.
31914 Use char because int might match the return type of a GCC
31915 builtin and then its argument prototype would still apply. */
31916#ifdef __cplusplus
31917extern "C"
31918#endif
31919char wmf_lite_create ();
31920int
31921main ()
31922{
31923return wmf_lite_create ();
31924 ;
31925 return 0;
31926}
31927_ACEOF
31928if ac_fn_c_try_link "$LINENO"; then :
31929 ac_cv_lib_wmflite_wmf_lite_create=yes
31930else
31931 ac_cv_lib_wmflite_wmf_lite_create=no
31932fi
31933rm -f core conftest.err conftest.$ac_objext \
31934 conftest$ac_exeext conftest.$ac_ext
31935LIBS=$ac_check_lib_save_LIBS
31936fi
31937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmflite_wmf_lite_create" >&5
31938$as_echo "$ac_cv_lib_wmflite_wmf_lite_create" >&6; }
31939if test "x$ac_cv_lib_wmflite_wmf_lite_create" = xyes; then :
31940 have_libwmflite='yes'
31941fi
31942
31943 if test "$have_libwmflite" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000031944
cristy8b350f62009-11-15 23:12:43 +000031945$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031946
cristyebc8f692015-06-16 10:36:30 +000031947 WMF_LIBS='-lwmflite'
31948 LIBS="$WMF_LIBS $LIBS"
31949 have_wmf='yes'
31950 else
31951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31952$as_echo "no -- some components failed test" >&6; }
31953 have_wmf='no (failed tests)'
31954 have_wmflite='no (failed tests)'
31955 LIBS="$OLIBS"
31956 WMF_LIBS=''
31957 fi
31958 fi
cristy3ed852e2009-09-05 21:47:34 +000031959fi
cristyebc8f692015-06-16 10:36:30 +000031960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete " >&5
31961$as_echo_n "checking if WMF package is complete ... " >&6; }
31962if test "$have_wmf" = 'yes'; then
31963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31964$as_echo "yes" >&6; }
31965else
31966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31967$as_echo "no" >&6; }
31968fi
cristy73bd4a52010-10-05 11:24:23 +000031969 if test "$have_wmf" = 'yes'; then
31970 WMF_DELEGATE_TRUE=
31971 WMF_DELEGATE_FALSE='#'
31972else
31973 WMF_DELEGATE_TRUE='#'
31974 WMF_DELEGATE_FALSE=
31975fi
31976
cristy3ed852e2009-09-05 21:47:34 +000031977
31978
31979
cristy81beccd2011-10-03 18:17:24 +000031980
cristy3ed852e2009-09-05 21:47:34 +000031981#
31982# Check for XML delegate library.
31983#
31984
31985# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000031986if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031987 withval=$with_xml; with_xml=$withval
31988else
cristyfc3d0222012-02-07 15:05:57 +000031989 with_xml='yes'
cristy3ed852e2009-09-05 21:47:34 +000031990fi
31991
31992
cristy81beccd2011-10-03 18:17:24 +000031993if test "$with_xml" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000031994 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
31995fi
31996
cristy81beccd2011-10-03 18:17:24 +000031997have_xml='no'
cristy32f75d42015-06-05 18:46:23 +000031998XML_CFLAGS=""
31999XML_LIBS=""
32000XML_PKG=""
32001if test "x$with_xml" = "xyes"; then
32002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristyad38abe2012-12-23 23:03:21 +000032003$as_echo "-------------------------------------------------------------" >&6; }
cristy32f75d42015-06-05 18:46:23 +000032004
32005pkg_failed=no
32006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
cristy81beccd2011-10-03 18:17:24 +000032007$as_echo_n "checking for XML... " >&6; }
cristy81beccd2011-10-03 18:17:24 +000032008
cristy32f75d42015-06-05 18:46:23 +000032009if test -n "$XML_CFLAGS"; then
32010 pkg_cv_XML_CFLAGS="$XML_CFLAGS"
32011 elif test -n "$PKG_CONFIG"; then
32012 if test -n "$PKG_CONFIG" && \
32013 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.0.0\""; } >&5
32014 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.0.0") 2>&5
32015 ac_status=$?
32016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32017 test $ac_status = 0; }; then
32018 pkg_cv_XML_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.0.0" 2>/dev/null`
32019 test "x$?" != "x0" && pkg_failed=yes
cristy81beccd2011-10-03 18:17:24 +000032020else
cristy32f75d42015-06-05 18:46:23 +000032021 pkg_failed=yes
32022fi
32023 else
32024 pkg_failed=untried
32025fi
32026if test -n "$XML_LIBS"; then
32027 pkg_cv_XML_LIBS="$XML_LIBS"
32028 elif test -n "$PKG_CONFIG"; then
32029 if test -n "$PKG_CONFIG" && \
32030 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.0.0\""; } >&5
32031 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.0.0") 2>&5
32032 ac_status=$?
32033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32034 test $ac_status = 0; }; then
32035 pkg_cv_XML_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.0.0" 2>/dev/null`
32036 test "x$?" != "x0" && pkg_failed=yes
32037else
32038 pkg_failed=yes
32039fi
32040 else
32041 pkg_failed=untried
32042fi
32043
32044
32045
32046if test $pkg_failed = yes; then
32047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy81beccd2011-10-03 18:17:24 +000032048$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032049
cristy32f75d42015-06-05 18:46:23 +000032050if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32051 _pkg_short_errors_supported=yes
cristy81beccd2011-10-03 18:17:24 +000032052else
cristy32f75d42015-06-05 18:46:23 +000032053 _pkg_short_errors_supported=no
cristy81beccd2011-10-03 18:17:24 +000032054fi
cristy32f75d42015-06-05 18:46:23 +000032055 if test $_pkg_short_errors_supported = yes; then
32056 XML_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0 >= 2.0.0" 2>&1`
cristy81beccd2011-10-03 18:17:24 +000032057 else
cristy32f75d42015-06-05 18:46:23 +000032058 XML_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0 >= 2.0.0" 2>&1`
32059 fi
32060 # Put the nasty error message in config.log where it belongs
32061 echo "$XML_PKG_ERRORS" >&5
32062
32063 have_xml=no
32064elif test $pkg_failed = untried; then
32065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32066$as_echo "no" >&6; }
32067 have_xml=no
32068else
32069 XML_CFLAGS=$pkg_cv_XML_CFLAGS
32070 XML_LIBS=$pkg_cv_XML_LIBS
32071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32072$as_echo "yes" >&6; }
32073 have_xml=yes
32074fi
32075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32076$as_echo "" >&6; }
32077fi
32078
32079if test "$have_xml" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000032080
cristy8b350f62009-11-15 23:12:43 +000032081$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032082
cristy32f75d42015-06-05 18:46:23 +000032083 CFLAGS="$XML_CFLAGS $CFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000032084fi
cristy32f75d42015-06-05 18:46:23 +000032085
cristy73bd4a52010-10-05 11:24:23 +000032086 if test "$have_xml" = 'yes'; then
32087 XML_DELEGATE_TRUE=
32088 XML_DELEGATE_FALSE='#'
32089else
32090 XML_DELEGATE_TRUE='#'
32091 XML_DELEGATE_FALSE=
32092fi
32093
cristy3ed852e2009-09-05 21:47:34 +000032094
32095
32096
cristy32f75d42015-06-05 18:46:23 +000032097
cristy3ed852e2009-09-05 21:47:34 +000032098# Substitute compiler name to build/link PerlMagick
32099#
32100
32101
32102#
32103# Configure install Paths
32104#
cristy7def36a2011-10-28 19:04:41 +000032105
cristy2a11bef2011-10-28 18:33:11 +000032106# Path to ImageMagick header files
cristybdabdd62013-03-04 17:43:36 +000032107INCLUDE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristye52f12f2012-12-31 15:32:36 +000032108INCLUDE_PATH="${INCLUDE_DIR}/${INCLUDE_RELATIVE_PATH}"
32109DEFINE_INCLUDE_PATH="${INCLUDE_DIR}/${INCLUDE_RELATIVE_PATH}/"
cristy2a11bef2011-10-28 18:33:11 +000032110case "${build_os}" in
32111 mingw* )
32112 DEFINE_INCLUDE_PATH=`$WinPathScript "$DEFINE_INCLUDE_PATH" 1`
32113 ;;
32114esac
32115
32116cat >>confdefs.h <<_ACEOF
32117#define INCLUDE_PATH "$DEFINE_INCLUDE_PATH"
32118_ACEOF
32119
32120
cristy3ed852e2009-09-05 21:47:34 +000032121
cristye52f12f2012-12-31 15:32:36 +000032122# Path to ImageMagick header files (arch part)
32123INCLUDEARCH_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}"
32124DEFINE_INCLUDEARCH_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}/"
32125case "${build_os}" in
32126 mingw* )
32127 DEFINE_INCLUDEARCH_PATH=`$WinPathScript "$DEFINE_INCLUDEARCH_PATH" 1`
32128 ;;
32129esac
32130
32131cat >>confdefs.h <<_ACEOF
32132#define INCLUDEARCH_PATH "$DEFINE_INCLUDE_PATH"
32133_ACEOF
32134
32135
32136
cristy3ed852e2009-09-05 21:47:34 +000032137# Subdirectory under lib to place ImageMagick lib files
32138LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
32139
32140cat >>confdefs.h <<_ACEOF
32141#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
32142_ACEOF
32143
32144
32145# Path to ImageMagick bin directory
32146EXECUTABLE_PATH="${BIN_DIR}"
32147DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
32148case "${build_os}" in
32149 mingw* )
32150 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
32151 ;;
32152esac
32153
32154cat >>confdefs.h <<_ACEOF
32155#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
32156_ACEOF
32157
32158
32159
32160# Path to ImageMagick lib
32161LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
32162DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
32163case "${build_os}" in
32164 mingw* )
32165 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
32166 ;;
32167esac
32168
32169cat >>confdefs.h <<_ACEOF
32170#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
32171_ACEOF
32172
32173
32174
cristy3ed852e2009-09-05 21:47:34 +000032175#
cristy8d0ff762013-03-10 20:33:28 +000032176# path to local binaries
32177if test "x$LIB_BIN_BASEDIRNAME" = "x"; then
32178 LIB_BIN_BASEDIRNAME="bin"
32179fi
32180
32181cat >>confdefs.h <<_ACEOF
32182#define LIB_BIN_BASEDIRNAME "$LIB_BIN_BASEDIRNAME"
32183_ACEOF
32184
32185
32186
32187if test "x$LIB_BIN_DIR" = "x"; then
32188 LIB_BIN_DIR=${LIB_BIN_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
32189fi
32190
32191
32192LIB_BIN_DIR_RELATIVE_PATH=$LIB_BIN_DIR
32193
32194LIB_BIN_DIR_PATH="${LIBRARY_PATH}/${LIB_BIN_DIR_RELATIVE_PATH}"
32195
32196
32197#
cristy01ff9f32012-12-01 18:15:29 +000032198# path to modules lib
32199if test "x$MODULES_BASEDIRNAME" = "x"; then
32200 MODULES_BASEDIRNAME="modules"
32201fi
cristy3ed852e2009-09-05 21:47:34 +000032202
32203cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000032204#define MODULES_BASEDIRNAME "$MODULES_BASEDIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000032205_ACEOF
32206
cristy01ff9f32012-12-01 18:15:29 +000032207
32208
32209if test "x$MODULES_DIRNAME" = "x"; then
cristy4bdbd342012-12-03 18:41:18 +000032210 MODULES_DIRNAME=${MODULES_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
32211else
cristy3ed852e2009-09-05 21:47:34 +000032212
32213cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000032214#define MODULES_DIRNAME "$MODULES_DIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000032215_ACEOF
32216
cristycf4a3c22012-12-02 21:47:25 +000032217fi
cristy01ff9f32012-12-01 18:15:29 +000032218
32219
cristy371d4812012-12-01 19:48:10 +000032220MODULES_RELATIVE_PATH="${MODULES_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000032221
32222MODULES_PATH="${LIBRARY_PATH}/${MODULES_RELATIVE_PATH}"
32223
32224
32225#
32226# path to coders lib
32227if test "x$CODER_DIRNAME" = "x"; then
32228 CODER_DIRNAME="coders"
32229fi
32230
32231cat >>confdefs.h <<_ACEOF
32232#define CODER_DIRNAME "$CODER_DIRNAME"
32233_ACEOF
32234
32235
32236
cristy371d4812012-12-01 19:48:10 +000032237CODER_RELATIVE_PATH="${CODER_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000032238CODER_PATH="${MODULES_PATH}/${CODER_DIRNAME}"
cristy3ed852e2009-09-05 21:47:34 +000032239
32240
32241#
32242# Subdirectory under lib to place ImageMagick filter module files
cristy01ff9f32012-12-01 18:15:29 +000032243#
32244# path to coders lib
32245if test "x$FILTER_DIRNAME" = "x"; then
32246 FILTER_DIRNAME="filters"
32247fi
cristy3ed852e2009-09-05 21:47:34 +000032248
32249cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000032250#define FILTER_DIRNAME "$FILTER_DIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000032251_ACEOF
32252
cristy3ed852e2009-09-05 21:47:34 +000032253
cristy3ed852e2009-09-05 21:47:34 +000032254
cristy371d4812012-12-01 19:48:10 +000032255FILTER_RELATIVE_PATH="${FILTER_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000032256FILTER_PATH="${MODULES_PATH}/${FILTER_DIRNAME}"
cristy3ed852e2009-09-05 21:47:34 +000032257
32258
32259#
32260# Path to ImageMagick documentation files
cristybdabdd62013-03-04 17:43:36 +000032261DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristyd55889c2011-03-27 00:50:24 +000032262DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}"
32263DEFINE_DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032264case "${build_os}" in
32265 mingw* )
32266 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
32267 ;;
32268esac
32269
32270cat >>confdefs.h <<_ACEOF
32271#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
32272_ACEOF
32273
32274
32275
cristydd17feb2014-03-05 02:06:32 +000032276#
32277# Enable/Disable documentation
32278# Check whether --enable-docs was given.
32279if test "${enable_docs+set}" = set; then :
32280 enableval=$enable_docs; wantdocs=$enableval
32281else
cristy02272312014-03-07 00:55:25 +000032282 wantdocs=yes
cristydd17feb2014-03-05 02:06:32 +000032283fi
32284
cristy02272312014-03-07 00:55:25 +000032285 if test "$wantdocs" = "yes"; then
cristydd17feb2014-03-05 02:06:32 +000032286 INSTALL_DOC_TRUE=
32287 INSTALL_DOC_FALSE='#'
32288else
32289 INSTALL_DOC_TRUE='#'
32290 INSTALL_DOC_FALSE=
32291fi
32292
32293
cristy2a11bef2011-10-28 18:33:11 +000032294# Subdirectory to place architecture-dependent configuration files
cristybdabdd62013-03-04 17:43:36 +000032295CONFIGURE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristy45dbd322011-03-27 16:40:38 +000032296
32297cat >>confdefs.h <<_ACEOF
32298#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
32299_ACEOF
32300
cristy7def36a2011-10-28 19:04:41 +000032301CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
cristy45dbd322011-03-27 16:40:38 +000032302DEFINE_CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
32303case "${build_os}" in
32304 mingw* )
32305 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
32306 ;;
32307esac
32308
32309cat >>confdefs.h <<_ACEOF
32310#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
32311_ACEOF
32312
32313
32314
cristy2a11bef2011-10-28 18:33:11 +000032315# Subdirectory to place architecture-independent configuration files
cristybdabdd62013-03-04 17:43:36 +000032316SHARE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristy3ed852e2009-09-05 21:47:34 +000032317
32318cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032319#define SHARE_RELATIVE_PATH "$SHARE_RELATIVE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032320_ACEOF
32321
cristy670aa3c2011-11-03 00:54:00 +000032322SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
cristy4f820712011-04-01 12:35:43 +000032323DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032324case "${build_os}" in
32325 mingw* )
cristy4f820712011-04-01 12:35:43 +000032326 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
cristy3ed852e2009-09-05 21:47:34 +000032327 ;;
32328esac
32329
32330cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032331#define SHARE_PATH "$DEFINE_SHARE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032332_ACEOF
32333
32334
32335
cristy54378032012-12-04 15:52:20 +000032336#
32337# Subdirectory to place architecture-dependent configuration files.
32338if test "x$SHAREARCH_BASEDIRNAME" = "x"; then
32339 SHAREARCH_BASEDIRNAME="config"
32340fi
cristy670aa3c2011-11-03 00:54:00 +000032341
32342cat >>confdefs.h <<_ACEOF
cristy54378032012-12-04 15:52:20 +000032343#define SHAREARCH_BASEDIRNAME "$SHAREARCH_BASEDIRNAME"
cristy670aa3c2011-11-03 00:54:00 +000032344_ACEOF
32345
cristy54378032012-12-04 15:52:20 +000032346
32347
32348if test "x$SHAREARCH_DIRNAME" = "x"; then
32349 SHAREARCH_DIRNAME=${SHAREARCH_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
32350else
cristy670aa3c2011-11-03 00:54:00 +000032351
32352cat >>confdefs.h <<_ACEOF
cristy54378032012-12-04 15:52:20 +000032353#define SHAREARCH_DIRNAME "$SHAREARCH_DIRNAME"
cristy670aa3c2011-11-03 00:54:00 +000032354_ACEOF
32355
cristy54378032012-12-04 15:52:20 +000032356fi
32357
32358
32359SHAREARCH_RELATIVE_PATH="${SHAREARCH_DIRNAME}"
32360
32361SHAREARCH_PATH="${LIBRARY_PATH}/${SHAREARCH_RELATIVE_PATH}"
cristy670aa3c2011-11-03 00:54:00 +000032362
32363
cristy3ed852e2009-09-05 21:47:34 +000032364#
32365# program_transform_name is formed for use in a Makefile, so create a
32366# modified version for use in a shell script.
32367configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
32368
32369# Default delegate definitions
cristyad38abe2012-12-23 23:03:21 +000032370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32371$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000032373$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000032374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32375$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032376AutotraceDecodeDelegateDefault='autotrace'
cristy16b412d2014-12-15 11:09:48 +000032377BPGDecodeDelegateDefault='bpgdec'
32378BPGEncodeDelegateDefault='bpgenc'
cristy3d7f8062009-09-24 20:45:35 +000032379BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000032380BZIPDelegateDefault='bzip2'
32381BrowseDelegateDefault='xdg-open'
cristy3ed852e2009-09-05 21:47:34 +000032382CatDelegateDefault='cat'
32383DNGDecodeDelegateDefault='ufraw-batch'
cristy66f238e2014-05-16 12:21:48 +000032384DOCDecodeDelegateDefault='soffice'
cristy3ed852e2009-09-05 21:47:34 +000032385GVCDecodeDelegateDefault='dot'
32386DVIDecodeDelegateDefault='dvips'
32387EchoDelegateDefault='echo'
32388EditorDelegateDefault='xterm'
cristy3ed852e2009-09-05 21:47:34 +000032389ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
32390DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
32391MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
32392GnuplotDecodeDelegateDefault='gnuplot'
cristy3ed852e2009-09-05 21:47:34 +000032393HPGLDecodeDelegateDefault='hp2xx'
32394HTMLDecodeDelegateDefault='html2ps'
32395ILBMDecodeDelegateDefault='ilbmtoppm'
32396ILBMEncodeDelegateDefault='ppmtoilbm'
cristy71f53d52013-04-27 13:33:59 +000032397JXRDecodeDelegateDefault='JxrDecApp'
32398JXREncodeDelegateDefault='JxrEncApp'
cristy3ed852e2009-09-05 21:47:34 +000032399LPDelegateDefault='lp'
32400LPRDelegateDefault='lpr'
cristy3ed852e2009-09-05 21:47:34 +000032401LaunchDelegateDefault='gimp'
32402MANDelegateDefault='groff'
cristy81ab5af2013-10-06 18:28:39 +000032403MPEGDecodeDelegateDefault='avconv'
32404MPEGEncodeDelegateDefault='avconv'
cristy935c86e2010-06-05 23:50:07 +000032405MrSIDDecodeDelegateDefault='mrsidgeodecode'
cristy3ed852e2009-09-05 21:47:34 +000032406MVDelegateDefault='mv'
32407PCLDelegateDefault='pcl6'
32408PGPDecodeDelegateDefault='pgpv'
32409POVDelegateDefault='povray'
32410if test "$native_win32_build" = 'yes'; then
32411 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000032412elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000032413 PSDelegateDefault='gsc'
32414else
32415 PSDelegateDefault='gs'
32416fi
32417RLEEncodeDelegateDefault='rawtorle'
32418RMDelegateDefault='rm'
cristy5281e322012-02-09 21:12:45 +000032419RSVGDecodeDelegateDefault='rsvg-convert'
cristy3ed852e2009-09-05 21:47:34 +000032420SCANDecodeDelegateDefault='scanimage'
cristyec6934f2012-08-14 18:38:40 +000032421SVGDecodeDelegateDefault='inkscape'
cristy3ed852e2009-09-05 21:47:34 +000032422TXTDelegateDefault='enscript'
cristy16db5ed2010-07-29 13:32:02 +000032423UniconvertorDelegateDefault='uniconvertor'
cristy86e86092013-08-04 17:43:57 +000032424WebPDecodeDelegateDefault='dwebp'
32425WebPEncodeDelegateDefault='cwebp'
cristy3ed852e2009-09-05 21:47:34 +000032426WMFDecodeDelegateDefault='wmf2eps'
32427WWWDecodeDelegateDefault='curl'
32428XPSDelegateDefault='gxps'
32429ZipDelegateDefault='gzip'
32430
32431# Search for delegates
32432# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
32433set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032435$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032436if ${ac_cv_path_AutotraceDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032437 $as_echo_n "(cached) " >&6
32438else
32439 case $AutotraceDecodeDelegate in
32440 [\\/]* | ?:[\\/]*)
32441 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
32442 ;;
32443 *)
32444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32445for as_dir in $PATH
32446do
32447 IFS=$as_save_IFS
32448 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032449 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032450 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032451 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032453 break 2
32454 fi
32455done
cristy8b350f62009-11-15 23:12:43 +000032456 done
cristy3ed852e2009-09-05 21:47:34 +000032457IFS=$as_save_IFS
32458
32459 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
32460 ;;
32461esac
32462fi
32463AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
32464if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032466$as_echo "$AutotraceDecodeDelegate" >&6; }
32467else
cristy8b350f62009-11-15 23:12:43 +000032468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032469$as_echo "no" >&6; }
32470fi
32471
32472
cristy16b412d2014-12-15 11:09:48 +000032473# Extract the first word of ""$BGPDecodeDelegateDefault"", so it can be a program name with args.
32474set dummy "$BGPDecodeDelegateDefault"; ac_word=$2
32475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32476$as_echo_n "checking for $ac_word... " >&6; }
32477if ${ac_cv_path_BGPDecodeDelegate+:} false; then :
32478 $as_echo_n "(cached) " >&6
32479else
32480 case $BGPDecodeDelegate in
32481 [\\/]* | ?:[\\/]*)
32482 ac_cv_path_BGPDecodeDelegate="$BGPDecodeDelegate" # Let the user override the test with a path.
32483 ;;
32484 *)
32485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32486for as_dir in $PATH
32487do
32488 IFS=$as_save_IFS
32489 test -z "$as_dir" && as_dir=.
32490 for ac_exec_ext in '' $ac_executable_extensions; do
32491 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32492 ac_cv_path_BGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
32493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32494 break 2
32495 fi
32496done
32497 done
32498IFS=$as_save_IFS
32499
32500 test -z "$ac_cv_path_BGPDecodeDelegate" && ac_cv_path_BGPDecodeDelegate=""$BGPDecodeDelegateDefault""
32501 ;;
32502esac
32503fi
32504BGPDecodeDelegate=$ac_cv_path_BGPDecodeDelegate
32505if test -n "$BGPDecodeDelegate"; then
32506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BGPDecodeDelegate" >&5
32507$as_echo "$BGPDecodeDelegate" >&6; }
32508else
32509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32510$as_echo "no" >&6; }
32511fi
32512
32513
32514# Extract the first word of ""$BGPEncodeDelegateDefault"", so it can be a program name with args.
32515set dummy "$BGPEncodeDelegateDefault"; ac_word=$2
32516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32517$as_echo_n "checking for $ac_word... " >&6; }
32518if ${ac_cv_path_BGPEncodeDelegate+:} false; then :
32519 $as_echo_n "(cached) " >&6
32520else
32521 case $BGPEncodeDelegate in
32522 [\\/]* | ?:[\\/]*)
32523 ac_cv_path_BGPEncodeDelegate="$BGPEncodeDelegate" # Let the user override the test with a path.
32524 ;;
32525 *)
32526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32527for as_dir in $PATH
32528do
32529 IFS=$as_save_IFS
32530 test -z "$as_dir" && as_dir=.
32531 for ac_exec_ext in '' $ac_executable_extensions; do
32532 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32533 ac_cv_path_BGPEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
32534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32535 break 2
32536 fi
32537done
32538 done
32539IFS=$as_save_IFS
32540
32541 test -z "$ac_cv_path_BGPEncodeDelegate" && ac_cv_path_BGPEncodeDelegate=""$BGPEncodeDelegateDefault""
32542 ;;
32543esac
32544fi
32545BGPEncodeDelegate=$ac_cv_path_BGPEncodeDelegate
32546if test -n "$BGPEncodeDelegate"; then
32547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BGPEncodeDelegate" >&5
32548$as_echo "$BGPEncodeDelegate" >&6; }
32549else
32550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32551$as_echo "no" >&6; }
32552fi
32553
32554
cristy3ed852e2009-09-05 21:47:34 +000032555# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
32556set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032558$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032559if ${ac_cv_path_BlenderDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032560 $as_echo_n "(cached) " >&6
32561else
32562 case $BlenderDecodeDelegate in
32563 [\\/]* | ?:[\\/]*)
32564 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
32565 ;;
32566 *)
32567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32568for as_dir in $PATH
32569do
32570 IFS=$as_save_IFS
32571 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032572 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032573 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032574 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032576 break 2
32577 fi
32578done
cristy8b350f62009-11-15 23:12:43 +000032579 done
cristy3ed852e2009-09-05 21:47:34 +000032580IFS=$as_save_IFS
32581
32582 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
32583 ;;
32584esac
32585fi
32586BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
32587if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032589$as_echo "$BlenderDecodeDelegate" >&6; }
32590else
cristy8b350f62009-11-15 23:12:43 +000032591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032592$as_echo "no" >&6; }
32593fi
32594
32595
32596# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
32597set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032599$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032600if ${ac_cv_path_BZIPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032601 $as_echo_n "(cached) " >&6
32602else
32603 case $BZIPDelegate in
32604 [\\/]* | ?:[\\/]*)
32605 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
32606 ;;
32607 *)
32608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32609for as_dir in $PATH
32610do
32611 IFS=$as_save_IFS
32612 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032613 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032614 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032615 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032617 break 2
32618 fi
32619done
cristy8b350f62009-11-15 23:12:43 +000032620 done
cristy3ed852e2009-09-05 21:47:34 +000032621IFS=$as_save_IFS
32622
32623 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
32624 ;;
32625esac
32626fi
32627BZIPDelegate=$ac_cv_path_BZIPDelegate
32628if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032630$as_echo "$BZIPDelegate" >&6; }
32631else
cristy8b350f62009-11-15 23:12:43 +000032632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032633$as_echo "no" >&6; }
32634fi
32635
32636
cristyc59f0e72012-08-27 12:59:33 +000032637for ac_prog in "$BrowseDelegateDefault" google-chrome firefox konqueror mozilla lynx
32638do
32639 # Extract the first word of "$ac_prog", so it can be a program name with args.
32640set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032642$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032643if ${ac_cv_path_BrowseDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032644 $as_echo_n "(cached) " >&6
32645else
32646 case $BrowseDelegate in
32647 [\\/]* | ?:[\\/]*)
32648 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
32649 ;;
32650 *)
32651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32652for as_dir in $PATH
32653do
32654 IFS=$as_save_IFS
32655 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032656 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032657 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032658 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032660 break 2
32661 fi
32662done
cristy8b350f62009-11-15 23:12:43 +000032663 done
cristy3ed852e2009-09-05 21:47:34 +000032664IFS=$as_save_IFS
32665
cristy3ed852e2009-09-05 21:47:34 +000032666 ;;
32667esac
32668fi
32669BrowseDelegate=$ac_cv_path_BrowseDelegate
32670if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032672$as_echo "$BrowseDelegate" >&6; }
32673else
cristy8b350f62009-11-15 23:12:43 +000032674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032675$as_echo "no" >&6; }
32676fi
32677
32678
cristyc59f0e72012-08-27 12:59:33 +000032679 test -n "$BrowseDelegate" && break
32680done
32681test -n "$BrowseDelegate" || BrowseDelegate=""$BrowseDelegateDefault""
32682
cristy3ed852e2009-09-05 21:47:34 +000032683# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
32684set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032686$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032687if ${ac_cv_path_CatDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032688 $as_echo_n "(cached) " >&6
32689else
32690 case $CatDelegate in
32691 [\\/]* | ?:[\\/]*)
32692 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
32693 ;;
32694 *)
32695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32696for as_dir in $PATH
32697do
32698 IFS=$as_save_IFS
32699 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032700 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032701 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032702 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032704 break 2
32705 fi
32706done
cristy8b350f62009-11-15 23:12:43 +000032707 done
cristy3ed852e2009-09-05 21:47:34 +000032708IFS=$as_save_IFS
32709
32710 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
32711 ;;
32712esac
32713fi
32714CatDelegate=$ac_cv_path_CatDelegate
32715if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032717$as_echo "$CatDelegate" >&6; }
32718else
cristy8b350f62009-11-15 23:12:43 +000032719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032720$as_echo "no" >&6; }
32721fi
32722
32723
32724# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
32725set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032727$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032728if ${ac_cv_path_DNGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032729 $as_echo_n "(cached) " >&6
32730else
32731 case $DNGDecodeDelegate in
32732 [\\/]* | ?:[\\/]*)
32733 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
32734 ;;
32735 *)
32736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32737for as_dir in $PATH
32738do
32739 IFS=$as_save_IFS
32740 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032741 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032742 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032743 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032745 break 2
32746 fi
32747done
cristy8b350f62009-11-15 23:12:43 +000032748 done
cristy3ed852e2009-09-05 21:47:34 +000032749IFS=$as_save_IFS
32750
32751 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
32752 ;;
32753esac
32754fi
32755DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
32756if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032758$as_echo "$DNGDecodeDelegate" >&6; }
32759else
cristy8b350f62009-11-15 23:12:43 +000032760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032761$as_echo "no" >&6; }
32762fi
32763
32764
cristy66f238e2014-05-16 12:21:48 +000032765# Extract the first word of ""$DOCDecodeDelegateDefault"", so it can be a program name with args.
32766set dummy "$DOCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032768$as_echo_n "checking for $ac_word... " >&6; }
cristy66f238e2014-05-16 12:21:48 +000032769if ${ac_cv_path_DOCDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032770 $as_echo_n "(cached) " >&6
32771else
cristy66f238e2014-05-16 12:21:48 +000032772 case $DOCDecodeDelegate in
cristy3ed852e2009-09-05 21:47:34 +000032773 [\\/]* | ?:[\\/]*)
cristy66f238e2014-05-16 12:21:48 +000032774 ac_cv_path_DOCDecodeDelegate="$DOCDecodeDelegate" # Let the user override the test with a path.
cristy3ed852e2009-09-05 21:47:34 +000032775 ;;
32776 *)
32777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32778for as_dir in $PATH
32779do
32780 IFS=$as_save_IFS
32781 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032782 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032783 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy66f238e2014-05-16 12:21:48 +000032784 ac_cv_path_DOCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032786 break 2
32787 fi
32788done
cristy8b350f62009-11-15 23:12:43 +000032789 done
cristy3ed852e2009-09-05 21:47:34 +000032790IFS=$as_save_IFS
32791
cristy66f238e2014-05-16 12:21:48 +000032792 test -z "$ac_cv_path_DOCDecodeDelegate" && ac_cv_path_DOCDecodeDelegate=""$DOCDecodeDelegateDefault""
cristy3ed852e2009-09-05 21:47:34 +000032793 ;;
32794esac
32795fi
cristy66f238e2014-05-16 12:21:48 +000032796DOCDecodeDelegate=$ac_cv_path_DOCDecodeDelegate
32797if test -n "$DOCDecodeDelegate"; then
32798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOCDecodeDelegate" >&5
32799$as_echo "$DOCDecodeDelegate" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032800else
cristy8b350f62009-11-15 23:12:43 +000032801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032802$as_echo "no" >&6; }
32803fi
32804
32805
32806# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
32807set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032809$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032810if ${ac_cv_path_DVIDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032811 $as_echo_n "(cached) " >&6
32812else
32813 case $DVIDecodeDelegate in
32814 [\\/]* | ?:[\\/]*)
32815 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
32816 ;;
32817 *)
32818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32819for as_dir in $PATH
32820do
32821 IFS=$as_save_IFS
32822 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032823 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032825 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032827 break 2
32828 fi
32829done
cristy8b350f62009-11-15 23:12:43 +000032830 done
cristy3ed852e2009-09-05 21:47:34 +000032831IFS=$as_save_IFS
32832
32833 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
32834 ;;
32835esac
32836fi
32837DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
32838if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032840$as_echo "$DVIDecodeDelegate" >&6; }
32841else
cristy8b350f62009-11-15 23:12:43 +000032842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032843$as_echo "no" >&6; }
32844fi
32845
32846
cristy3ed852e2009-09-05 21:47:34 +000032847# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
32848set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032850$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032851if ${ac_cv_path_ConvertDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032852 $as_echo_n "(cached) " >&6
32853else
32854 case $ConvertDelegate in
32855 [\\/]* | ?:[\\/]*)
32856 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
32857 ;;
32858 *)
32859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32860for as_dir in $PATH
32861do
32862 IFS=$as_save_IFS
32863 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032864 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032866 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032868 break 2
32869 fi
32870done
cristy8b350f62009-11-15 23:12:43 +000032871 done
cristy3ed852e2009-09-05 21:47:34 +000032872IFS=$as_save_IFS
32873
32874 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
32875 ;;
32876esac
32877fi
32878ConvertDelegate=$ac_cv_path_ConvertDelegate
32879if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032881$as_echo "$ConvertDelegate" >&6; }
32882else
cristy8b350f62009-11-15 23:12:43 +000032883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032884$as_echo "no" >&6; }
32885fi
32886
32887
32888# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
32889set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032891$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032892if ${ac_cv_path_DisplayDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032893 $as_echo_n "(cached) " >&6
32894else
32895 case $DisplayDelegate in
32896 [\\/]* | ?:[\\/]*)
32897 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
32898 ;;
32899 *)
32900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32901for as_dir in $PATH
32902do
32903 IFS=$as_save_IFS
32904 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032905 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032906 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032907 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032909 break 2
32910 fi
32911done
cristy8b350f62009-11-15 23:12:43 +000032912 done
cristy3ed852e2009-09-05 21:47:34 +000032913IFS=$as_save_IFS
32914
32915 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
32916 ;;
32917esac
32918fi
32919DisplayDelegate=$ac_cv_path_DisplayDelegate
32920if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032922$as_echo "$DisplayDelegate" >&6; }
32923else
cristy8b350f62009-11-15 23:12:43 +000032924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032925$as_echo "no" >&6; }
32926fi
32927
32928
cristy66f238e2014-05-16 12:21:48 +000032929# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
32930set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032932$as_echo_n "checking for $ac_word... " >&6; }
cristy66f238e2014-05-16 12:21:48 +000032933if ${ac_cv_path_EchoDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032934 $as_echo_n "(cached) " >&6
32935else
cristy66f238e2014-05-16 12:21:48 +000032936 case $EchoDelegate in
cristy3ed852e2009-09-05 21:47:34 +000032937 [\\/]* | ?:[\\/]*)
cristy66f238e2014-05-16 12:21:48 +000032938 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
cristy3ed852e2009-09-05 21:47:34 +000032939 ;;
32940 *)
32941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32942for as_dir in $PATH
32943do
32944 IFS=$as_save_IFS
32945 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032946 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032947 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy66f238e2014-05-16 12:21:48 +000032948 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032950 break 2
32951 fi
32952done
cristy8b350f62009-11-15 23:12:43 +000032953 done
cristy3ed852e2009-09-05 21:47:34 +000032954IFS=$as_save_IFS
32955
cristy66f238e2014-05-16 12:21:48 +000032956 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
cristy3ed852e2009-09-05 21:47:34 +000032957 ;;
32958esac
32959fi
cristy66f238e2014-05-16 12:21:48 +000032960EchoDelegate=$ac_cv_path_EchoDelegate
32961if test -n "$EchoDelegate"; then
32962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
32963$as_echo "$EchoDelegate" >&6; }
32964else
32965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32966$as_echo "no" >&6; }
32967fi
32968
32969
32970# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
32971set dummy "$EditorDelegateDefault"; ac_word=$2
32972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32973$as_echo_n "checking for $ac_word... " >&6; }
32974if ${ac_cv_path_EditorDelegate+:} false; then :
32975 $as_echo_n "(cached) " >&6
32976else
32977 case $EditorDelegate in
32978 [\\/]* | ?:[\\/]*)
32979 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
32980 ;;
32981 *)
32982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32983for as_dir in $PATH
32984do
32985 IFS=$as_save_IFS
32986 test -z "$as_dir" && as_dir=.
32987 for ac_exec_ext in '' $ac_executable_extensions; do
32988 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32989 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
32990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32991 break 2
32992 fi
32993done
32994 done
32995IFS=$as_save_IFS
32996
32997 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
32998 ;;
32999esac
33000fi
33001EditorDelegate=$ac_cv_path_EditorDelegate
33002if test -n "$EditorDelegate"; then
33003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
33004$as_echo "$EditorDelegate" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000033005else
cristy8b350f62009-11-15 23:12:43 +000033006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033007$as_echo "no" >&6; }
33008fi
33009
33010
33011# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
33012set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033014$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033015if ${ac_cv_path_GnuplotDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033016 $as_echo_n "(cached) " >&6
33017else
33018 case $GnuplotDecodeDelegate in
33019 [\\/]* | ?:[\\/]*)
33020 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
33021 ;;
33022 *)
33023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33024for as_dir in $PATH
33025do
33026 IFS=$as_save_IFS
33027 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033028 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033029 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033030 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033032 break 2
33033 fi
33034done
cristy8b350f62009-11-15 23:12:43 +000033035 done
cristy3ed852e2009-09-05 21:47:34 +000033036IFS=$as_save_IFS
33037
33038 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
33039 ;;
33040esac
33041fi
33042GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
33043if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033045$as_echo "$GnuplotDecodeDelegate" >&6; }
33046else
cristy8b350f62009-11-15 23:12:43 +000033047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033048$as_echo "no" >&6; }
33049fi
33050
33051
cristy66f238e2014-05-16 12:21:48 +000033052# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
33053set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
33054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33055$as_echo_n "checking for $ac_word... " >&6; }
33056if ${ac_cv_path_GVCDecodeDelegate+:} false; then :
33057 $as_echo_n "(cached) " >&6
33058else
33059 case $GVCDecodeDelegate in
33060 [\\/]* | ?:[\\/]*)
33061 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
33062 ;;
33063 *)
33064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33065for as_dir in $PATH
33066do
33067 IFS=$as_save_IFS
33068 test -z "$as_dir" && as_dir=.
33069 for ac_exec_ext in '' $ac_executable_extensions; do
33070 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33071 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33073 break 2
33074 fi
33075done
33076 done
33077IFS=$as_save_IFS
33078
33079 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
33080 ;;
33081esac
33082fi
33083GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
33084if test -n "$GVCDecodeDelegate"; then
33085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
33086$as_echo "$GVCDecodeDelegate" >&6; }
33087else
33088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33089$as_echo "no" >&6; }
33090fi
33091
33092
cristy3ed852e2009-09-05 21:47:34 +000033093# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
33094set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033096$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033097if ${ac_cv_path_HPGLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033098 $as_echo_n "(cached) " >&6
33099else
33100 case $HPGLDecodeDelegate in
33101 [\\/]* | ?:[\\/]*)
33102 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
33103 ;;
33104 *)
33105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33106for as_dir in $PATH
33107do
33108 IFS=$as_save_IFS
33109 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033110 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033111 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033112 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033114 break 2
33115 fi
33116done
cristy8b350f62009-11-15 23:12:43 +000033117 done
cristy3ed852e2009-09-05 21:47:34 +000033118IFS=$as_save_IFS
33119
33120 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
33121 ;;
33122esac
33123fi
33124HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
33125if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033127$as_echo "$HPGLDecodeDelegate" >&6; }
33128else
cristy8b350f62009-11-15 23:12:43 +000033129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033130$as_echo "no" >&6; }
33131fi
33132
33133
33134# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
33135set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033137$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033138if ${ac_cv_path_HTMLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033139 $as_echo_n "(cached) " >&6
33140else
33141 case $HTMLDecodeDelegate in
33142 [\\/]* | ?:[\\/]*)
33143 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
33144 ;;
33145 *)
33146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33147for as_dir in $PATH
33148do
33149 IFS=$as_save_IFS
33150 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033151 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033152 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033153 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033155 break 2
33156 fi
33157done
cristy8b350f62009-11-15 23:12:43 +000033158 done
cristy3ed852e2009-09-05 21:47:34 +000033159IFS=$as_save_IFS
33160
33161 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
33162 ;;
33163esac
33164fi
33165HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
33166if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033168$as_echo "$HTMLDecodeDelegate" >&6; }
33169else
cristy8b350f62009-11-15 23:12:43 +000033170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033171$as_echo "no" >&6; }
33172fi
33173
33174
33175# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
33176set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033178$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033179if ${ac_cv_path_ILBMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033180 $as_echo_n "(cached) " >&6
33181else
33182 case $ILBMDecodeDelegate in
33183 [\\/]* | ?:[\\/]*)
33184 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
33185 ;;
33186 *)
33187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33188for as_dir in $PATH
33189do
33190 IFS=$as_save_IFS
33191 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033192 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033193 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033194 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033196 break 2
33197 fi
33198done
cristy8b350f62009-11-15 23:12:43 +000033199 done
cristy3ed852e2009-09-05 21:47:34 +000033200IFS=$as_save_IFS
33201
33202 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
33203 ;;
33204esac
33205fi
33206ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
33207if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033209$as_echo "$ILBMDecodeDelegate" >&6; }
33210else
cristy8b350f62009-11-15 23:12:43 +000033211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033212$as_echo "no" >&6; }
33213fi
33214
33215
33216# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
33217set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033219$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033220if ${ac_cv_path_ILBMEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033221 $as_echo_n "(cached) " >&6
33222else
33223 case $ILBMEncodeDelegate in
33224 [\\/]* | ?:[\\/]*)
33225 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
33226 ;;
33227 *)
33228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33229for as_dir in $PATH
33230do
33231 IFS=$as_save_IFS
33232 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033233 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033234 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033235 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033237 break 2
33238 fi
33239done
cristy8b350f62009-11-15 23:12:43 +000033240 done
cristy3ed852e2009-09-05 21:47:34 +000033241IFS=$as_save_IFS
33242
33243 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
33244 ;;
33245esac
33246fi
33247ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
33248if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033250$as_echo "$ILBMEncodeDelegate" >&6; }
33251else
cristy8b350f62009-11-15 23:12:43 +000033252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033253$as_echo "no" >&6; }
33254fi
33255
33256
cristy71f53d52013-04-27 13:33:59 +000033257# Extract the first word of ""$JXRDecodeDelegateDefault"", so it can be a program name with args.
33258set dummy "$JXRDecodeDelegateDefault"; ac_word=$2
33259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33260$as_echo_n "checking for $ac_word... " >&6; }
33261if ${ac_cv_path_JXRDecodeDelegate+:} false; then :
33262 $as_echo_n "(cached) " >&6
33263else
33264 case $JXRDecodeDelegate in
33265 [\\/]* | ?:[\\/]*)
33266 ac_cv_path_JXRDecodeDelegate="$JXRDecodeDelegate" # Let the user override the test with a path.
33267 ;;
33268 *)
33269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33270for as_dir in $PATH
33271do
33272 IFS=$as_save_IFS
33273 test -z "$as_dir" && as_dir=.
33274 for ac_exec_ext in '' $ac_executable_extensions; do
33275 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33276 ac_cv_path_JXRDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33278 break 2
33279 fi
33280done
33281 done
33282IFS=$as_save_IFS
33283
33284 test -z "$ac_cv_path_JXRDecodeDelegate" && ac_cv_path_JXRDecodeDelegate=""$JXRDecodeDelegateDefault""
33285 ;;
33286esac
33287fi
33288JXRDecodeDelegate=$ac_cv_path_JXRDecodeDelegate
33289if test -n "$JXRDecodeDelegate"; then
33290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JXRDecodeDelegate" >&5
33291$as_echo "$JXRDecodeDelegate" >&6; }
33292else
33293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33294$as_echo "no" >&6; }
33295fi
33296
33297
33298# Extract the first word of ""$JXREncodeDelegateDefault"", so it can be a program name with args.
33299set dummy "$JXREncodeDelegateDefault"; ac_word=$2
33300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33301$as_echo_n "checking for $ac_word... " >&6; }
33302if ${ac_cv_path_JXREncodeDelegate+:} false; then :
33303 $as_echo_n "(cached) " >&6
33304else
33305 case $JXREncodeDelegate in
33306 [\\/]* | ?:[\\/]*)
33307 ac_cv_path_JXREncodeDelegate="$JXREncodeDelegate" # Let the user override the test with a path.
33308 ;;
33309 *)
33310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33311for as_dir in $PATH
33312do
33313 IFS=$as_save_IFS
33314 test -z "$as_dir" && as_dir=.
33315 for ac_exec_ext in '' $ac_executable_extensions; do
33316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33317 ac_cv_path_JXREncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33319 break 2
33320 fi
33321done
33322 done
33323IFS=$as_save_IFS
33324
33325 test -z "$ac_cv_path_JXREncodeDelegate" && ac_cv_path_JXREncodeDelegate=""$JXREncodeDelegateDefault""
33326 ;;
33327esac
33328fi
33329JXREncodeDelegate=$ac_cv_path_JXREncodeDelegate
33330if test -n "$JXREncodeDelegate"; then
33331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JXREncodeDelegate" >&5
33332$as_echo "$JXREncodeDelegate" >&6; }
33333else
33334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33335$as_echo "no" >&6; }
33336fi
33337
33338
cristy3ed852e2009-09-05 21:47:34 +000033339# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
33340set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033342$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033343if ${ac_cv_path_LPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033344 $as_echo_n "(cached) " >&6
33345else
33346 case $LPDelegate in
33347 [\\/]* | ?:[\\/]*)
33348 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
33349 ;;
33350 *)
33351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33352for as_dir in $PATH
33353do
33354 IFS=$as_save_IFS
33355 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033356 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033357 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033358 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033360 break 2
33361 fi
33362done
cristy8b350f62009-11-15 23:12:43 +000033363 done
cristy3ed852e2009-09-05 21:47:34 +000033364IFS=$as_save_IFS
33365
33366 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
33367 ;;
33368esac
33369fi
33370LPDelegate=$ac_cv_path_LPDelegate
33371if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033373$as_echo "$LPDelegate" >&6; }
33374else
cristy8b350f62009-11-15 23:12:43 +000033375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033376$as_echo "no" >&6; }
33377fi
33378
33379
33380# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
33381set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033383$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033384if ${ac_cv_path_LPRDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033385 $as_echo_n "(cached) " >&6
33386else
33387 case $LPRDelegate in
33388 [\\/]* | ?:[\\/]*)
33389 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
33390 ;;
33391 *)
33392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33393for as_dir in $PATH
33394do
33395 IFS=$as_save_IFS
33396 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033397 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033398 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033399 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033401 break 2
33402 fi
33403done
cristy8b350f62009-11-15 23:12:43 +000033404 done
cristy3ed852e2009-09-05 21:47:34 +000033405IFS=$as_save_IFS
33406
33407 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
33408 ;;
33409esac
33410fi
33411LPRDelegate=$ac_cv_path_LPRDelegate
33412if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033414$as_echo "$LPRDelegate" >&6; }
33415else
cristy8b350f62009-11-15 23:12:43 +000033416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033417$as_echo "no" >&6; }
33418fi
33419
33420
cristy3ed852e2009-09-05 21:47:34 +000033421# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
33422set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033424$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033425if ${ac_cv_path_LaunchDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033426 $as_echo_n "(cached) " >&6
33427else
33428 case $LaunchDelegate in
33429 [\\/]* | ?:[\\/]*)
33430 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
33431 ;;
33432 *)
33433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33434for as_dir in $PATH
33435do
33436 IFS=$as_save_IFS
33437 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033438 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033439 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033440 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033442 break 2
33443 fi
33444done
cristy8b350f62009-11-15 23:12:43 +000033445 done
cristy3ed852e2009-09-05 21:47:34 +000033446IFS=$as_save_IFS
33447
33448 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
33449 ;;
33450esac
33451fi
33452LaunchDelegate=$ac_cv_path_LaunchDelegate
33453if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033455$as_echo "$LaunchDelegate" >&6; }
33456else
cristy8b350f62009-11-15 23:12:43 +000033457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033458$as_echo "no" >&6; }
33459fi
33460
33461
33462# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
33463set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033465$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033466if ${ac_cv_path_MANDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033467 $as_echo_n "(cached) " >&6
33468else
33469 case $MANDelegate in
33470 [\\/]* | ?:[\\/]*)
33471 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
33472 ;;
33473 *)
33474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33475for as_dir in $PATH
33476do
33477 IFS=$as_save_IFS
33478 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033479 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033480 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033481 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033483 break 2
33484 fi
33485done
cristy8b350f62009-11-15 23:12:43 +000033486 done
cristy3ed852e2009-09-05 21:47:34 +000033487IFS=$as_save_IFS
33488
33489 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
33490 ;;
33491esac
33492fi
33493MANDelegate=$ac_cv_path_MANDelegate
33494if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033496$as_echo "$MANDelegate" >&6; }
33497else
cristy8b350f62009-11-15 23:12:43 +000033498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033499$as_echo "no" >&6; }
33500fi
33501
33502
cristy66f238e2014-05-16 12:21:48 +000033503# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
33504set dummy "$MogrifyDelegateDefault"; ac_word=$2
33505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33506$as_echo_n "checking for $ac_word... " >&6; }
33507if ${ac_cv_path_MogrifyDelegate+:} false; then :
33508 $as_echo_n "(cached) " >&6
33509else
33510 case $MogrifyDelegate in
33511 [\\/]* | ?:[\\/]*)
33512 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
33513 ;;
33514 *)
33515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33516for as_dir in $PATH
33517do
33518 IFS=$as_save_IFS
33519 test -z "$as_dir" && as_dir=.
33520 for ac_exec_ext in '' $ac_executable_extensions; do
33521 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33522 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
33523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33524 break 2
33525 fi
33526done
33527 done
33528IFS=$as_save_IFS
33529
33530 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
33531 ;;
33532esac
33533fi
33534MogrifyDelegate=$ac_cv_path_MogrifyDelegate
33535if test -n "$MogrifyDelegate"; then
33536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
33537$as_echo "$MogrifyDelegate" >&6; }
33538else
33539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33540$as_echo "no" >&6; }
33541fi
33542
33543
cristy3ed852e2009-09-05 21:47:34 +000033544# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
33545set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033547$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033548if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033549 $as_echo_n "(cached) " >&6
33550else
33551 case $MPEGDecodeDelegate in
33552 [\\/]* | ?:[\\/]*)
33553 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
33554 ;;
33555 *)
33556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33557for as_dir in $PATH
33558do
33559 IFS=$as_save_IFS
33560 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033561 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033562 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033563 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033565 break 2
33566 fi
33567done
cristy8b350f62009-11-15 23:12:43 +000033568 done
cristy3ed852e2009-09-05 21:47:34 +000033569IFS=$as_save_IFS
33570
33571 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
33572 ;;
33573esac
33574fi
33575MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
33576if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033578$as_echo "$MPEGDecodeDelegate" >&6; }
33579else
cristy8b350f62009-11-15 23:12:43 +000033580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033581$as_echo "no" >&6; }
33582fi
33583
33584
cristy058d15f2014-08-21 18:53:03 +000033585if test "$MPEGDecodeDelegate" = "$MPEGDecodeDelegateDefault" ; then
cristy81ab5af2013-10-06 18:28:39 +000033586 MPEGDecodeDelegateDefault='ffmpeg'
33587 # Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
33588set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
33589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33590$as_echo_n "checking for $ac_word... " >&6; }
33591if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
33592 $as_echo_n "(cached) " >&6
33593else
33594 case $MPEGDecodeDelegate in
33595 [\\/]* | ?:[\\/]*)
33596 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
33597 ;;
33598 *)
33599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33600for as_dir in $PATH
33601do
33602 IFS=$as_save_IFS
33603 test -z "$as_dir" && as_dir=.
33604 for ac_exec_ext in '' $ac_executable_extensions; do
33605 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33606 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33608 break 2
33609 fi
33610done
33611 done
33612IFS=$as_save_IFS
33613
33614 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
33615 ;;
33616esac
33617fi
33618MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
33619if test -n "$MPEGDecodeDelegate"; then
33620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
33621$as_echo "$MPEGDecodeDelegate" >&6; }
33622else
33623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33624$as_echo "no" >&6; }
33625fi
33626
33627
33628fi;
cristy3ed852e2009-09-05 21:47:34 +000033629# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
33630set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033632$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033633if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033634 $as_echo_n "(cached) " >&6
33635else
33636 case $MPEGEncodeDelegate in
33637 [\\/]* | ?:[\\/]*)
33638 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
33639 ;;
33640 *)
33641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33642for as_dir in $PATH
33643do
33644 IFS=$as_save_IFS
33645 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033646 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033647 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033648 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033650 break 2
33651 fi
33652done
cristy8b350f62009-11-15 23:12:43 +000033653 done
cristy3ed852e2009-09-05 21:47:34 +000033654IFS=$as_save_IFS
33655
33656 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
33657 ;;
33658esac
33659fi
33660MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
33661if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033663$as_echo "$MPEGEncodeDelegate" >&6; }
33664else
cristy8b350f62009-11-15 23:12:43 +000033665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033666$as_echo "no" >&6; }
33667fi
33668
33669
cristy058d15f2014-08-21 18:53:03 +000033670if test "$MPEGEncodeDelegate" = "$MPEGEncodeDelegateDefault" ; then
cristy81ab5af2013-10-06 18:28:39 +000033671 MPEGEncodeDelegateDefault='ffmpeg'
33672 # Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
33673set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
33674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33675$as_echo_n "checking for $ac_word... " >&6; }
33676if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
33677 $as_echo_n "(cached) " >&6
33678else
33679 case $MPEGEncodeDelegate in
33680 [\\/]* | ?:[\\/]*)
33681 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
33682 ;;
33683 *)
33684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33685for as_dir in $PATH
33686do
33687 IFS=$as_save_IFS
33688 test -z "$as_dir" && as_dir=.
33689 for ac_exec_ext in '' $ac_executable_extensions; do
33690 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33691 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33693 break 2
33694 fi
33695done
33696 done
33697IFS=$as_save_IFS
33698
33699 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
33700 ;;
33701esac
33702fi
33703MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
33704if test -n "$MPEGEncodeDelegate"; then
33705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
33706$as_echo "$MPEGEncodeDelegate" >&6; }
33707else
33708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33709$as_echo "no" >&6; }
33710fi
33711
33712
33713fi;
cristy935c86e2010-06-05 23:50:07 +000033714# Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
33715set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
33716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33717$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033718if ${ac_cv_path_MrSIDDecodeDelegate+:} false; then :
cristy935c86e2010-06-05 23:50:07 +000033719 $as_echo_n "(cached) " >&6
33720else
33721 case $MrSIDDecodeDelegate in
33722 [\\/]* | ?:[\\/]*)
33723 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
33724 ;;
33725 *)
33726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33727for as_dir in $PATH
33728do
33729 IFS=$as_save_IFS
33730 test -z "$as_dir" && as_dir=.
33731 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy935c86e2010-06-05 23:50:07 +000033733 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33735 break 2
33736 fi
33737done
33738 done
33739IFS=$as_save_IFS
33740
33741 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
33742 ;;
33743esac
33744fi
33745MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
33746if test -n "$MrSIDDecodeDelegate"; then
33747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
33748$as_echo "$MrSIDDecodeDelegate" >&6; }
33749else
33750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33751$as_echo "no" >&6; }
33752fi
33753
33754
cristy3ed852e2009-09-05 21:47:34 +000033755# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
33756set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033758$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033759if ${ac_cv_path_MVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033760 $as_echo_n "(cached) " >&6
33761else
33762 case $MVDelegate in
33763 [\\/]* | ?:[\\/]*)
33764 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
33765 ;;
33766 *)
33767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33768for as_dir in $PATH
33769do
33770 IFS=$as_save_IFS
33771 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033772 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033773 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033774 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033776 break 2
33777 fi
33778done
cristy8b350f62009-11-15 23:12:43 +000033779 done
cristy3ed852e2009-09-05 21:47:34 +000033780IFS=$as_save_IFS
33781
33782 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
33783 ;;
33784esac
33785fi
33786MVDelegate=$ac_cv_path_MVDelegate
33787if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033789$as_echo "$MVDelegate" >&6; }
33790else
cristy8b350f62009-11-15 23:12:43 +000033791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033792$as_echo "no" >&6; }
33793fi
33794
33795
33796# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
33797set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033799$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033800if ${ac_cv_path_PCLDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033801 $as_echo_n "(cached) " >&6
33802else
33803 case $PCLDelegate in
33804 [\\/]* | ?:[\\/]*)
33805 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
33806 ;;
33807 *)
33808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33809for as_dir in $PATH
33810do
33811 IFS=$as_save_IFS
33812 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033813 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033814 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033815 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033817 break 2
33818 fi
33819done
cristy8b350f62009-11-15 23:12:43 +000033820 done
cristy3ed852e2009-09-05 21:47:34 +000033821IFS=$as_save_IFS
33822
33823 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
33824 ;;
33825esac
33826fi
33827PCLDelegate=$ac_cv_path_PCLDelegate
33828if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033830$as_echo "$PCLDelegate" >&6; }
33831else
cristy8b350f62009-11-15 23:12:43 +000033832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033833$as_echo "no" >&6; }
33834fi
33835
33836
33837# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
33838set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033840$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033841if ${ac_cv_path_PGPDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033842 $as_echo_n "(cached) " >&6
33843else
33844 case $PGPDecodeDelegate in
33845 [\\/]* | ?:[\\/]*)
33846 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
33847 ;;
33848 *)
33849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33850for as_dir in $PATH
33851do
33852 IFS=$as_save_IFS
33853 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033854 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033855 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033856 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033858 break 2
33859 fi
33860done
cristy8b350f62009-11-15 23:12:43 +000033861 done
cristy3ed852e2009-09-05 21:47:34 +000033862IFS=$as_save_IFS
33863
33864 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
33865 ;;
33866esac
33867fi
33868PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
33869if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033871$as_echo "$PGPDecodeDelegate" >&6; }
33872else
cristy8b350f62009-11-15 23:12:43 +000033873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033874$as_echo "no" >&6; }
33875fi
33876
33877
33878# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
33879set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033881$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033882if ${ac_cv_path_POVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033883 $as_echo_n "(cached) " >&6
33884else
33885 case $POVDelegate in
33886 [\\/]* | ?:[\\/]*)
33887 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
33888 ;;
33889 *)
33890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33891for as_dir in $PATH
33892do
33893 IFS=$as_save_IFS
33894 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033895 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033896 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033897 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033899 break 2
33900 fi
33901done
cristy8b350f62009-11-15 23:12:43 +000033902 done
cristy3ed852e2009-09-05 21:47:34 +000033903IFS=$as_save_IFS
33904
33905 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
33906 ;;
33907esac
33908fi
33909POVDelegate=$ac_cv_path_POVDelegate
33910if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033912$as_echo "$POVDelegate" >&6; }
33913else
cristy8b350f62009-11-15 23:12:43 +000033914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033915$as_echo "no" >&6; }
33916fi
33917
33918
33919for ac_prog in gsx gsc "$PSDelegateDefault"
33920do
33921 # Extract the first word of "$ac_prog", so it can be a program name with args.
33922set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033924$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033925if ${ac_cv_path_PSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033926 $as_echo_n "(cached) " >&6
33927else
33928 case $PSDelegate in
33929 [\\/]* | ?:[\\/]*)
33930 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
33931 ;;
33932 *)
33933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33934for as_dir in $PATH
33935do
33936 IFS=$as_save_IFS
33937 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033938 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033939 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033940 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033942 break 2
33943 fi
33944done
cristy8b350f62009-11-15 23:12:43 +000033945 done
cristy3ed852e2009-09-05 21:47:34 +000033946IFS=$as_save_IFS
33947
33948 ;;
33949esac
33950fi
33951PSDelegate=$ac_cv_path_PSDelegate
33952if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033954$as_echo "$PSDelegate" >&6; }
33955else
cristy8b350f62009-11-15 23:12:43 +000033956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033957$as_echo "no" >&6; }
33958fi
33959
33960
33961 test -n "$PSDelegate" && break
33962done
33963test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
33964
33965# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
33966set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033968$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033969if ${ac_cv_path_RLEEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033970 $as_echo_n "(cached) " >&6
33971else
33972 case $RLEEncodeDelegate in
33973 [\\/]* | ?:[\\/]*)
33974 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
33975 ;;
33976 *)
33977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33978for as_dir in $PATH
33979do
33980 IFS=$as_save_IFS
33981 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033982 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033984 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033986 break 2
33987 fi
33988done
cristy8b350f62009-11-15 23:12:43 +000033989 done
cristy3ed852e2009-09-05 21:47:34 +000033990IFS=$as_save_IFS
33991
33992 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
33993 ;;
33994esac
33995fi
33996RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
33997if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033999$as_echo "$RLEEncodeDelegate" >&6; }
34000else
cristy8b350f62009-11-15 23:12:43 +000034001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034002$as_echo "no" >&6; }
34003fi
34004
34005
34006# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
34007set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034009$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034010if ${ac_cv_path_RMDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034011 $as_echo_n "(cached) " >&6
34012else
34013 case $RMDelegate in
34014 [\\/]* | ?:[\\/]*)
34015 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
34016 ;;
34017 *)
34018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34019for as_dir in $PATH
34020do
34021 IFS=$as_save_IFS
34022 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034023 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034025 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034027 break 2
34028 fi
34029done
cristy8b350f62009-11-15 23:12:43 +000034030 done
cristy3ed852e2009-09-05 21:47:34 +000034031IFS=$as_save_IFS
34032
34033 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
34034 ;;
34035esac
34036fi
34037RMDelegate=$ac_cv_path_RMDelegate
34038if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034040$as_echo "$RMDelegate" >&6; }
34041else
cristy8b350f62009-11-15 23:12:43 +000034042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034043$as_echo "no" >&6; }
34044fi
34045
34046
cristy4689cf02010-02-17 21:15:45 +000034047# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
34048set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
34049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34050$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034051if ${ac_cv_path_RSVGDecodeDelegate+:} false; then :
cristy4689cf02010-02-17 21:15:45 +000034052 $as_echo_n "(cached) " >&6
34053else
34054 case $RSVGDecodeDelegate in
34055 [\\/]* | ?:[\\/]*)
34056 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
34057 ;;
34058 *)
34059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34060for as_dir in $PATH
34061do
34062 IFS=$as_save_IFS
34063 test -z "$as_dir" && as_dir=.
34064 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034065 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy4689cf02010-02-17 21:15:45 +000034066 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34068 break 2
34069 fi
34070done
34071 done
34072IFS=$as_save_IFS
34073
34074 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
34075 ;;
34076esac
34077fi
34078RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
34079if test -n "$RSVGDecodeDelegate"; then
34080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
34081$as_echo "$RSVGDecodeDelegate" >&6; }
34082else
34083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34084$as_echo "no" >&6; }
34085fi
34086
34087
cristy3ed852e2009-09-05 21:47:34 +000034088# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
34089set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034091$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034092if ${ac_cv_path_SCANDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034093 $as_echo_n "(cached) " >&6
34094else
34095 case $SCANDecodeDelegate in
34096 [\\/]* | ?:[\\/]*)
34097 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
34098 ;;
34099 *)
34100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34101for as_dir in $PATH
34102do
34103 IFS=$as_save_IFS
34104 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034105 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034106 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034107 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034109 break 2
34110 fi
34111done
cristy8b350f62009-11-15 23:12:43 +000034112 done
cristy3ed852e2009-09-05 21:47:34 +000034113IFS=$as_save_IFS
34114
34115 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
34116 ;;
34117esac
34118fi
34119SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
34120if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034122$as_echo "$SCANDecodeDelegate" >&6; }
34123else
cristy8b350f62009-11-15 23:12:43 +000034124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034125$as_echo "no" >&6; }
34126fi
34127
34128
cristyec6934f2012-08-14 18:38:40 +000034129# Extract the first word of ""$SVGDecodeDelegateDefault"", so it can be a program name with args.
34130set dummy "$SVGDecodeDelegateDefault"; ac_word=$2
34131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34132$as_echo_n "checking for $ac_word... " >&6; }
34133if ${ac_cv_path_SVGDecodeDelegate+:} false; then :
34134 $as_echo_n "(cached) " >&6
34135else
34136 case $SVGDecodeDelegate in
34137 [\\/]* | ?:[\\/]*)
34138 ac_cv_path_SVGDecodeDelegate="$SVGDecodeDelegate" # Let the user override the test with a path.
34139 ;;
34140 *)
34141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34142for as_dir in $PATH
34143do
34144 IFS=$as_save_IFS
34145 test -z "$as_dir" && as_dir=.
34146 for ac_exec_ext in '' $ac_executable_extensions; do
34147 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34148 ac_cv_path_SVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34150 break 2
34151 fi
34152done
34153 done
34154IFS=$as_save_IFS
34155
34156 test -z "$ac_cv_path_SVGDecodeDelegate" && ac_cv_path_SVGDecodeDelegate=""$SVGDecodeDelegateDefault""
34157 ;;
34158esac
34159fi
34160SVGDecodeDelegate=$ac_cv_path_SVGDecodeDelegate
34161if test -n "$SVGDecodeDelegate"; then
34162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SVGDecodeDelegate" >&5
34163$as_echo "$SVGDecodeDelegate" >&6; }
34164else
34165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34166$as_echo "no" >&6; }
34167fi
34168
34169
cristy3ed852e2009-09-05 21:47:34 +000034170# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
34171set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034173$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034174if ${ac_cv_path_TXTDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034175 $as_echo_n "(cached) " >&6
34176else
34177 case $TXTDelegate in
34178 [\\/]* | ?:[\\/]*)
34179 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
34180 ;;
34181 *)
34182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34183for as_dir in $PATH
34184do
34185 IFS=$as_save_IFS
34186 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034187 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034188 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034189 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034191 break 2
34192 fi
34193done
cristy8b350f62009-11-15 23:12:43 +000034194 done
cristy3ed852e2009-09-05 21:47:34 +000034195IFS=$as_save_IFS
34196
34197 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
34198 ;;
34199esac
34200fi
34201TXTDelegate=$ac_cv_path_TXTDelegate
34202if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034204$as_echo "$TXTDelegate" >&6; }
34205else
cristy8b350f62009-11-15 23:12:43 +000034206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034207$as_echo "no" >&6; }
34208fi
34209
34210
cristy5ac9ac82010-07-29 13:24:24 +000034211# Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
34212set dummy "$UniconvertorDelegateDefault"; ac_word=$2
34213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34214$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034215if ${ac_cv_path_UniconvertorDelegate+:} false; then :
cristy5ac9ac82010-07-29 13:24:24 +000034216 $as_echo_n "(cached) " >&6
34217else
34218 case $UniconvertorDelegate in
34219 [\\/]* | ?:[\\/]*)
34220 ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
34221 ;;
34222 *)
34223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34224for as_dir in $PATH
34225do
34226 IFS=$as_save_IFS
34227 test -z "$as_dir" && as_dir=.
34228 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034229 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy5ac9ac82010-07-29 13:24:24 +000034230 ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
34231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34232 break 2
34233 fi
34234done
34235 done
34236IFS=$as_save_IFS
34237
34238 test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
34239 ;;
34240esac
34241fi
34242UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
34243if test -n "$UniconvertorDelegate"; then
34244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
34245$as_echo "$UniconvertorDelegate" >&6; }
34246else
34247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34248$as_echo "no" >&6; }
34249fi
34250
34251
cristy86e86092013-08-04 17:43:57 +000034252# Extract the first word of ""$WebPDecodeDelegateDefault"", so it can be a program name with args.
34253set dummy "$WebPDecodeDelegateDefault"; ac_word=$2
34254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34255$as_echo_n "checking for $ac_word... " >&6; }
34256if ${ac_cv_path_WebPDecodeDelegate+:} false; then :
34257 $as_echo_n "(cached) " >&6
34258else
34259 case $WebPDecodeDelegate in
34260 [\\/]* | ?:[\\/]*)
34261 ac_cv_path_WebPDecodeDelegate="$WebPDecodeDelegate" # Let the user override the test with a path.
34262 ;;
34263 *)
34264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34265for as_dir in $PATH
34266do
34267 IFS=$as_save_IFS
34268 test -z "$as_dir" && as_dir=.
34269 for ac_exec_ext in '' $ac_executable_extensions; do
34270 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34271 ac_cv_path_WebPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34273 break 2
34274 fi
34275done
34276 done
34277IFS=$as_save_IFS
34278
34279 test -z "$ac_cv_path_WebPDecodeDelegate" && ac_cv_path_WebPDecodeDelegate=""$WebPDecodeDelegateDefault""
34280 ;;
34281esac
34282fi
34283WebPDecodeDelegate=$ac_cv_path_WebPDecodeDelegate
34284if test -n "$WebPDecodeDelegate"; then
34285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WebPDecodeDelegate" >&5
34286$as_echo "$WebPDecodeDelegate" >&6; }
34287else
34288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34289$as_echo "no" >&6; }
34290fi
34291
34292
34293# Extract the first word of ""$WebPEncodeDelegateDefault"", so it can be a program name with args.
34294set dummy "$WebPEncodeDelegateDefault"; ac_word=$2
34295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34296$as_echo_n "checking for $ac_word... " >&6; }
34297if ${ac_cv_path_WebPEncodeDelegate+:} false; then :
34298 $as_echo_n "(cached) " >&6
34299else
34300 case $WebPEncodeDelegate in
34301 [\\/]* | ?:[\\/]*)
34302 ac_cv_path_WebPEncodeDelegate="$WebPEncodeDelegate" # Let the user override the test with a path.
34303 ;;
34304 *)
34305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34306for as_dir in $PATH
34307do
34308 IFS=$as_save_IFS
34309 test -z "$as_dir" && as_dir=.
34310 for ac_exec_ext in '' $ac_executable_extensions; do
34311 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34312 ac_cv_path_WebPEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34314 break 2
34315 fi
34316done
34317 done
34318IFS=$as_save_IFS
34319
34320 test -z "$ac_cv_path_WebPEncodeDelegate" && ac_cv_path_WebPEncodeDelegate=""$WebPEncodeDelegateDefault""
34321 ;;
34322esac
34323fi
34324WebPEncodeDelegate=$ac_cv_path_WebPEncodeDelegate
34325if test -n "$WebPEncodeDelegate"; then
34326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WebPEncodeDelegate" >&5
34327$as_echo "$WebPEncodeDelegate" >&6; }
34328else
34329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34330$as_echo "no" >&6; }
34331fi
34332
34333
cristy3ed852e2009-09-05 21:47:34 +000034334# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
34335set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034337$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034338if ${ac_cv_path_WMFDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034339 $as_echo_n "(cached) " >&6
34340else
34341 case $WMFDecodeDelegate in
34342 [\\/]* | ?:[\\/]*)
34343 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
34344 ;;
34345 *)
34346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34347for as_dir in $PATH
34348do
34349 IFS=$as_save_IFS
34350 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034351 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034353 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034355 break 2
34356 fi
34357done
cristy8b350f62009-11-15 23:12:43 +000034358 done
cristy3ed852e2009-09-05 21:47:34 +000034359IFS=$as_save_IFS
34360
34361 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
34362 ;;
34363esac
34364fi
34365WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
34366if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034368$as_echo "$WMFDecodeDelegate" >&6; }
34369else
cristy8b350f62009-11-15 23:12:43 +000034370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034371$as_echo "no" >&6; }
34372fi
34373
34374
34375# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
34376set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034378$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034379if ${ac_cv_path_WWWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034380 $as_echo_n "(cached) " >&6
34381else
34382 case $WWWDecodeDelegate in
34383 [\\/]* | ?:[\\/]*)
34384 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
34385 ;;
34386 *)
34387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34388for as_dir in $PATH
34389do
34390 IFS=$as_save_IFS
34391 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034392 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034393 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034394 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034396 break 2
34397 fi
34398done
cristy8b350f62009-11-15 23:12:43 +000034399 done
cristy3ed852e2009-09-05 21:47:34 +000034400IFS=$as_save_IFS
34401
34402 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
34403 ;;
34404esac
34405fi
34406WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
34407if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034409$as_echo "$WWWDecodeDelegate" >&6; }
34410else
cristy8b350f62009-11-15 23:12:43 +000034411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034412$as_echo "no" >&6; }
34413fi
34414
34415
34416# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
34417set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034419$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034420if ${ac_cv_path_XPSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034421 $as_echo_n "(cached) " >&6
34422else
34423 case $XPSDelegate in
34424 [\\/]* | ?:[\\/]*)
34425 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
34426 ;;
34427 *)
34428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34429for as_dir in $PATH
34430do
34431 IFS=$as_save_IFS
34432 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034433 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034434 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034435 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034437 break 2
34438 fi
34439done
cristy8b350f62009-11-15 23:12:43 +000034440 done
cristy3ed852e2009-09-05 21:47:34 +000034441IFS=$as_save_IFS
34442
34443 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
34444 ;;
34445esac
34446fi
34447XPSDelegate=$ac_cv_path_XPSDelegate
34448if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034450$as_echo "$XPSDelegate" >&6; }
34451else
cristy8b350f62009-11-15 23:12:43 +000034452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034453$as_echo "no" >&6; }
34454fi
34455
34456
34457# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
34458set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034460$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034461if ${ac_cv_path_ZipDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034462 $as_echo_n "(cached) " >&6
34463else
34464 case $ZipDelegate in
34465 [\\/]* | ?:[\\/]*)
34466 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
34467 ;;
34468 *)
34469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34470for as_dir in $PATH
34471do
34472 IFS=$as_save_IFS
34473 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034474 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034475 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034476 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034478 break 2
34479 fi
34480done
cristy8b350f62009-11-15 23:12:43 +000034481 done
cristy3ed852e2009-09-05 21:47:34 +000034482IFS=$as_save_IFS
34483
34484 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
34485 ;;
34486esac
34487fi
34488ZipDelegate=$ac_cv_path_ZipDelegate
34489if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034491$as_echo "$ZipDelegate" >&6; }
34492else
cristy8b350f62009-11-15 23:12:43 +000034493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034494$as_echo "no" >&6; }
34495fi
34496
34497
34498
34499# Prefer lpr to lp; lp needs options tacked on.
34500if test "$LPRDelegate" != no; then
34501 PrintDelegate="$LPRDelegate"
34502else
34503 PrintDelegate="$LPDelegate -c -s"
34504fi
34505
34506
34507# Installed ImageMagick utiltity paths
34508ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
34509DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
34510MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
34511
34512# Set delegate booleans
cristy81ab5af2013-10-06 18:28:39 +000034513have_avconv='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_avconv='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000034514have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
34515have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
34516have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
cristy935c86e2010-06-05 23:50:07 +000034517have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000034518have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
34519have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000034520have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
34521
34522#
34523# Test for font directories
34524#
34525type_include_files=''
34526
cristy5a3dc992014-12-05 19:50:04 +000034527 Apple fonts.
34528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Apple fonts directory" >&5
34529$as_echo_n "checking for Apple fonts directory... " >&6; }
34530apple_font_dir=''
34531if test "${with_apple_font_dir}" != 'default'; then
34532 apple_font_dir="${with_apple_font_dir}/"
34533else
34534 for font_dir in '/Library/Fonts/'; do
34535 if test -f "${font_dir}Arial.ttf"; then
34536 apple_font_dir="${font_dir}"
34537 break 1
34538 fi
34539 done
34540fi
34541if test "${apple_font_dir}x" != 'x'; then
34542 type_include_files="${type_include_files} "'<include file="type-apple.xml" />'
34543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apple_font_dir" >&5
34544$as_echo "$apple_font_dir" >&6; }
34545else
34546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
34547$as_echo "not found!" >&6; };
34548fi
34549
34550
cristy430a7312010-01-21 20:44:04 +000034551# Dejavu fonts.
34552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
34553$as_echo_n "checking for Dejavu fonts directory... " >&6; }
34554dejavu_font_dir=''
34555if test "${with_dejavu_font_dir}" != 'default'; then
34556 dejavu_font_dir="${with_dejavu_font_dir}/"
34557else
34558 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
34559 if test -f "${font_dir}DejaVuSerif.ttf"; then
34560 dejavu_font_dir="${font_dir}"
34561 break 1
34562 fi
34563 done
34564fi
34565if test "${dejavu_font_dir}x" != 'x'; then
34566 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
cristyad38abe2012-12-23 23:03:21 +000034567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dejavu_font_dir" >&5
34568$as_echo "$dejavu_font_dir" >&6; }
cristy430a7312010-01-21 20:44:04 +000034569else
cristyad38abe2012-12-23 23:03:21 +000034570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
34571$as_echo "not found!" >&6; };
cristy430a7312010-01-21 20:44:04 +000034572fi
34573
34574
cristy3ed852e2009-09-05 21:47:34 +000034575# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000034576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000034577$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
34578ghostscript_font_dir=''
34579if test "${with_gs_font_dir}" != 'default'; then
34580 ghostscript_font_dir="${with_gs_font_dir}/"
34581else
34582 if test "${native_win32_build}" = 'yes'; then
34583 # Native Windows Build
34584 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
34585 if test -f "${font_dir}a010013l.pfb"; then
34586 ghostscript_font_dir="$font_dir"
34587 break 1
34588 fi
34589 done
34590 if test "${PSDelegate}" != 'gswin32c'; then
34591 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
34592 fi
34593 else
34594 # Linux / Mac OS X / Unix Build
34595 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
34596 if test -f "${font_dir}a010013l.pfb"; then
34597 ghostscript_font_dir="${font_dir}"
34598 break 1
34599 fi
34600 done
34601 if test "${ghostscript_font_dir}x" = 'x'; then
34602 if test "$PSDelegate" != 'gs'; then
34603 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
34604 fi
34605 fi
34606 fi
34607fi
34608if test "${ghostscript_font_dir}x" != 'x'; then
34609 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristyad38abe2012-12-23 23:03:21 +000034610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
34611$as_echo "$ghostscript_font_dir" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034612else
cristyad38abe2012-12-23 23:03:21 +000034613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
34614$as_echo "not found!" >&6; };
cristy3ed852e2009-09-05 21:47:34 +000034615fi
34616
34617case "${build_os}" in
34618 mingw* )
34619 PSDelegate=`$WinPathScript "$PSDelegate" 1`
34620 ;;
34621esac
34622
cristy5a3dc992014-12-05 19:50:04 +000034623# Windows fonts.
34624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Windows fonts directory" >&5
34625$as_echo_n "checking for Windows fonts directory... " >&6; }
34626windows_font_dir=''
34627if test "${with_windows_font_dir}" != 'default'; then
34628 windows_font_dir="${with_windows_font_dir}/"
34629else
34630 for font_dir in '/usr/X11R6/lib/X11/fonts/truetype/' '/usr/X11R7/lib/X11/fonts/truetype/' '/usr/share/fonts/msttcore/'; do
34631 if test -f "${font_dir}arial.ttf"; then
34632 windows_font_dir="${font_dir}"
34633 break 1
34634 fi
34635 done
34636fi
34637if test "${windows_font_dir}x" != 'x'; then
34638 type_include_files="${type_include_files} "'<include file="type-windows.xml" />'
34639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $windows_font_dir" >&5
34640$as_echo "$windows_font_dir" >&6; }
34641else
34642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
34643$as_echo "not found!" >&6; };
34644fi
34645
34646
cristy3ed852e2009-09-05 21:47:34 +000034647
34648
34649#
34650# Handle case where user doesn't want frozen paths
34651#
34652if test "$with_frozenpaths" != 'yes'; then
34653 # Re-set delegate definitions to default (no paths)
34654 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
cristy16b412d2014-12-15 11:09:48 +000034655 BGPDecodeDelegate="$BGPDecodeDelegateDefault"
34656 BGPEncodeDelegate="$BGPEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034657 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
34658 BZIPDelegate="$BZIPDelegateDefault"
34659 BrowseDelegate="$BrowseDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034660 CatDelegate="$CatDelegateDefault"
34661 ConvertDelegate="$ConvertDelegateDefault"
cristy71f53d52013-04-27 13:33:59 +000034662 DisplayDelegate="$DisplayDelegateDefault"
34663 DNGDecodeDelegate="$DNGDecodeDelegateDefault"
cristy66f238e2014-05-16 12:21:48 +000034664 DOCDecodeDelegate="$DOCDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034665 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
34666 EchoDelegate="$EchoDelegateDefault"
34667 EditorDelegate="$EditorDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034668 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
cristy71f53d52013-04-27 13:33:59 +000034669 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034670 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
34671 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
34672 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
34673 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
cristy71f53d52013-04-27 13:33:59 +000034674 JXRDecodeDelegate="$JXRDecodeDelegateDefault"
34675 JXREncodeDelegate="$JXREncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034676 LPDelegate="$LPDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034677 LaunchDelegate="$LaunchDelegateDefault"
34678 MANDelegate="$MANDelegateDefault"
34679 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
34680 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034681 MogrifyDelegate="$MogrifyDelegateDefault"
cristy935c86e2010-06-05 23:50:07 +000034682 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
34683 MVDelegate="$MVDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034684 PCLDelegate="$PCLDelegateDefault"
34685 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
34686 POVDelegate="$POVDelegateDefault"
34687 PSDelegate="$PSDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034688 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
34689 RMDelegate="$RMDelegateDefault"
cristy4689cf02010-02-17 21:15:45 +000034690 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034691 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
cristyec6934f2012-08-14 18:38:40 +000034692 SVGDecodeDelegate="$SVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034693 ShowImageDelegate="$ShowImageDelegateDefault"
34694 TXTDelegate="$TXTDelegateDefault"
cristy5ac9ac82010-07-29 13:24:24 +000034695 UniconvertorDelegate="$UniconvertorDelegateDefault"
cristy86e86092013-08-04 17:43:57 +000034696 WebPDecodeDelegate="$WebPDecodeDelegateDefault"
34697 WebPEncodeDelegate="$WebPEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034698 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
34699 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
34700 XPSDelegate="$XPSDelegateDefault"
34701 ZipDelegate="$ZipDelegateDefault"
34702fi
34703
34704# Delegate substitutions
34705
34706
34707
34708
34709
34710
34711
34712
34713
34714
34715
34716
34717
34718
34719
34720
34721
34722
34723
34724
34725
34726
34727
34728
34729
34730
34731
34732
34733
34734
34735
34736
34737
34738
34739
34740
34741
34742
34743
34744
cristy71f53d52013-04-27 13:33:59 +000034745
34746
cristy16b412d2014-12-15 11:09:48 +000034747
34748
cristy3ed852e2009-09-05 21:47:34 +000034749#
34750# RPM support.
34751#
34752RPM=''
34753for ac_prog in gnutar gtar tar
34754do
34755 # Extract the first word of "$ac_prog", so it can be a program name with args.
34756set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034758$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034759if ${ac_cv_prog_TAR+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034760 $as_echo_n "(cached) " >&6
34761else
34762 if test -n "$TAR"; then
34763 ac_cv_prog_TAR="$TAR" # Let the user override the test.
34764else
34765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34766for as_dir in $PATH
34767do
34768 IFS=$as_save_IFS
34769 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034770 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034771 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034772 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034774 break 2
34775 fi
34776done
cristy8b350f62009-11-15 23:12:43 +000034777 done
cristy3ed852e2009-09-05 21:47:34 +000034778IFS=$as_save_IFS
34779
34780fi
34781fi
34782TAR=$ac_cv_prog_TAR
34783if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000034784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000034785$as_echo "$TAR" >&6; }
34786else
cristy8b350f62009-11-15 23:12:43 +000034787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034788$as_echo "no" >&6; }
34789fi
34790
34791
34792 test -n "$TAR" && break
34793done
34794
34795for ac_prog in perl
34796do
34797 # Extract the first word of "$ac_prog", so it can be a program name with args.
34798set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034800$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034801if ${ac_cv_prog_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034802 $as_echo_n "(cached) " >&6
34803else
34804 if test -n "$PERL"; then
34805 ac_cv_prog_PERL="$PERL" # Let the user override the test.
34806else
34807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34808for as_dir in $PATH
34809do
34810 IFS=$as_save_IFS
34811 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034812 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034813 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034814 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034816 break 2
34817 fi
34818done
cristy8b350f62009-11-15 23:12:43 +000034819 done
cristy3ed852e2009-09-05 21:47:34 +000034820IFS=$as_save_IFS
34821
34822fi
34823fi
34824PERL=$ac_cv_prog_PERL
34825if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000034826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034827$as_echo "$PERL" >&6; }
34828else
cristy8b350f62009-11-15 23:12:43 +000034829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034830$as_echo "no" >&6; }
34831fi
34832
34833
34834 test -n "$PERL" && break
34835done
34836
34837for ac_prog in rpmbuild rpm
34838do
34839 # Extract the first word of "$ac_prog", so it can be a program name with args.
34840set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034842$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034843if ${ac_cv_prog_RPM+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034844 $as_echo_n "(cached) " >&6
34845else
34846 if test -n "$RPM"; then
34847 ac_cv_prog_RPM="$RPM" # Let the user override the test.
34848else
34849as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34850for as_dir in $PATH
34851do
34852 IFS=$as_save_IFS
34853 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034854 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034855 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034856 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034858 break 2
34859 fi
34860done
cristy8b350f62009-11-15 23:12:43 +000034861 done
cristy3ed852e2009-09-05 21:47:34 +000034862IFS=$as_save_IFS
34863
34864fi
34865fi
34866RPM=$ac_cv_prog_RPM
34867if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000034868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000034869$as_echo "$RPM" >&6; }
34870else
cristy8b350f62009-11-15 23:12:43 +000034871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034872$as_echo "no" >&6; }
34873fi
34874
34875
34876 test -n "$RPM" && break
34877done
34878
34879
cristy73bd4a52010-10-05 11:24:23 +000034880ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
34881
34882
34883AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
34884
34885
34886AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
34887
34888
34889AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
34890
34891
34892 if test "x$RPM" != "x" ; then
34893 RPM_DELEGATE_TRUE=
34894 RPM_DELEGATE_FALSE='#'
34895else
34896 RPM_DELEGATE_TRUE='#'
34897 RPM_DELEGATE_FALSE=
34898fi
34899
cristy3ed852e2009-09-05 21:47:34 +000034900
34901#
34902# 7ZIP support (http://p7zip.sourceforge.net/)
34903#
34904P7ZIP=''
34905for ac_prog in 7za
34906do
34907 # Extract the first word of "$ac_prog", so it can be a program name with args.
34908set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034910$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034911if ${ac_cv_prog_P7ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034912 $as_echo_n "(cached) " >&6
34913else
34914 if test -n "$P7ZIP"; then
34915 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
34916else
34917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34918for as_dir in $PATH
34919do
34920 IFS=$as_save_IFS
34921 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034922 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034923 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034924 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034926 break 2
34927 fi
34928done
cristy8b350f62009-11-15 23:12:43 +000034929 done
cristy3ed852e2009-09-05 21:47:34 +000034930IFS=$as_save_IFS
34931
34932fi
34933fi
34934P7ZIP=$ac_cv_prog_P7ZIP
34935if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000034936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000034937$as_echo "$P7ZIP" >&6; }
34938else
cristy8b350f62009-11-15 23:12:43 +000034939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034940$as_echo "no" >&6; }
34941fi
34942
34943
34944 test -n "$P7ZIP" && break
34945done
34946
34947
cristy73bd4a52010-10-05 11:24:23 +000034948 if test "x$P7ZIP" != "x" ; then
34949 P7ZIP_DELEGATE_TRUE=
34950 P7ZIP_DELEGATE_FALSE='#'
34951else
34952 P7ZIP_DELEGATE_TRUE='#'
34953 P7ZIP_DELEGATE_FALSE=
34954fi
34955
cristy3ed852e2009-09-05 21:47:34 +000034956
34957#
34958# ZIP support (http://www.info-zip.org/Zip.html)
34959#
34960ZIP=''
34961for ac_prog in zip
34962do
34963 # Extract the first word of "$ac_prog", so it can be a program name with args.
34964set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034966$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034967if ${ac_cv_prog_ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034968 $as_echo_n "(cached) " >&6
34969else
34970 if test -n "$ZIP"; then
34971 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
34972else
34973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34974for as_dir in $PATH
34975do
34976 IFS=$as_save_IFS
34977 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034978 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034979 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034980 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034982 break 2
34983 fi
34984done
cristy8b350f62009-11-15 23:12:43 +000034985 done
cristy3ed852e2009-09-05 21:47:34 +000034986IFS=$as_save_IFS
34987
34988fi
34989fi
34990ZIP=$ac_cv_prog_ZIP
34991if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000034992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000034993$as_echo "$ZIP" >&6; }
34994else
cristy8b350f62009-11-15 23:12:43 +000034995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034996$as_echo "no" >&6; }
34997fi
34998
34999
35000 test -n "$ZIP" && break
35001done
35002
35003
cristy73bd4a52010-10-05 11:24:23 +000035004 if test "x$ZIP" != "x" ; then
35005 ZIP_DELEGATE_TRUE=
35006 ZIP_DELEGATE_FALSE='#'
35007else
35008 ZIP_DELEGATE_TRUE='#'
35009 ZIP_DELEGATE_FALSE=
35010fi
35011
cristy3ed852e2009-09-05 21:47:34 +000035012
35013#
35014# GhostPCL related configuration.
35015#
35016PCLColorDevice=ppmraw
cristy8bc84082011-09-07 13:57:00 +000035017PCLCMYKDevice=pamcmyk32
cristy3ed852e2009-09-05 21:47:34 +000035018PCLMonoDevice=pbmraw
35019if test -z "$PCLVersion"; then
35020 PCLVersion='unknown'
35021fi
35022if test $have_pcl = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000035023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35024$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035026$as_echo_n "checking for PCL... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35028$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035029 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000035030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035031$as_echo_n "checking for pcl color device... " >&6; }
cristy86e31f32015-06-06 15:47:32 +000035032 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
cristy3ed852e2009-09-05 21:47:34 +000035033 :
35034 else
35035 PCLColorDevice=ppmraw
35036 fi
cristyad38abe2012-12-23 23:03:21 +000035037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
35038$as_echo "$PCLColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035039
35040 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035042$as_echo_n "checking for pcl CMYK device... " >&6; }
cristy86e31f32015-06-06 15:47:32 +000035043 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
cristy3ed852e2009-09-05 21:47:34 +000035044 :
35045 else
35046 PCLCMYKDevice=$PCLColorDevice
35047 fi
cristyad38abe2012-12-23 23:03:21 +000035048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
35049$as_echo "$PCLCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035050
35051 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035053$as_echo_n "checking for pcl mono device... " >&6; }
cristy86e31f32015-06-06 15:47:32 +000035054 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
cristy3ed852e2009-09-05 21:47:34 +000035055 :
35056 else
35057 PCLMonoDevice=$PCLColorDevice
35058 fi
cristyad38abe2012-12-23 23:03:21 +000035059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
35060$as_echo "$PCLMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035061fi
35062
35063
35064
35065
35066
35067
35068#
35069# GhostXPS related configuration.
35070#
35071XPSColorDevice=ppmraw
35072XPSCMYKDevice=bmpsep8
35073XPSMonoDevice=pbmraw
35074if test -z "$XPSVersion"; then
35075 XPSVersion='unknown'
35076fi
35077if test $have_xps = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000035078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35079$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000035081$as_echo_n "checking for XPS... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35083$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035084 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000035085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035086$as_echo_n "checking for xps color device... " >&6; }
cristy86e31f32015-06-06 15:47:32 +000035087 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
cristy3ed852e2009-09-05 21:47:34 +000035088 :
35089 else
35090 XPSColorDevice=ppmraw
35091 fi
cristyad38abe2012-12-23 23:03:21 +000035092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
35093$as_echo "$XPSColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035094
35095 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035097$as_echo_n "checking for xps CMYK device... " >&6; }
cristy86e31f32015-06-06 15:47:32 +000035098 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
cristy3ed852e2009-09-05 21:47:34 +000035099 :
35100 else
35101 XPSCMYKDevice=$XPSColorDevice
35102 fi
cristyad38abe2012-12-23 23:03:21 +000035103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
35104$as_echo "$XPSCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035105
35106 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035108$as_echo_n "checking for xps mono device... " >&6; }
cristy86e31f32015-06-06 15:47:32 +000035109 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
cristy3ed852e2009-09-05 21:47:34 +000035110 :
35111 else
35112 XPSMonoDevice=$XPSColorDevice
35113 fi
cristyad38abe2012-12-23 23:03:21 +000035114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
35115$as_echo "$XPSMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035116fi
35117
35118
35119
35120
35121
35122
35123#
35124# Ghostscript related configuration.
35125#
cristya97426c2011-02-04 01:41:27 +000035126GSAlphaDevice=pngalpha
cristy3ed852e2009-09-05 21:47:34 +000035127GSColorDevice=pnmraw
cristy63970c52015-06-06 16:09:04 +000035128GSCMYKDevice=pamcmyk32
cristy3ed852e2009-09-05 21:47:34 +000035129GSMonoDevice=pbmraw
35130GSPDFDevice=pdfwrite
cristyb096ea52013-10-26 20:56:38 +000035131GSPSDevice=ps2write
cristya5b91e72015-01-07 15:39:36 +000035132GSEPSDevice=eps2write
cristy3ed852e2009-09-05 21:47:34 +000035133GSVersion='unknown'
35134if test $have_gs = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000035135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35136$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000035138$as_echo_n "checking for Ghostscript... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35140$as_echo "" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000035142$as_echo_n "checking for Ghostscript version... " >&6; }
35143 if GSVersion=`$PSDelegate --version`; then
35144 :
35145 else
35146 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
35147 fi
cristyad38abe2012-12-23 23:03:21 +000035148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
35149$as_echo "$GSVersion" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035150
cristy3ed852e2009-09-05 21:47:34 +000035151 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000035152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035153$as_echo_n "checking for gs color device... " >&6; }
cristy86e31f32015-06-06 15:47:32 +000035154 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
cristy3ed852e2009-09-05 21:47:34 +000035155 :
35156 else
cristy63970c52015-06-06 16:09:04 +000035157 GSColorDevice=ppmraw
cristy3ed852e2009-09-05 21:47:34 +000035158 fi
cristyad38abe2012-12-23 23:03:21 +000035159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
35160$as_echo "$GSColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035161
cristy63970c52015-06-06 16:09:04 +000035162 # GSAlphaDevice
35163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
35164$as_echo_n "checking for gs alpha device... " >&6; }
35165 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
35166 :
35167 else
35168 GSAlphaDevice=$GSColorDevice
35169 fi
35170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
35171$as_echo "$GSAlphaDevice" >&6; }
35172
cristy3ed852e2009-09-05 21:47:34 +000035173 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035175$as_echo_n "checking for gs CMYK device... " >&6; }
cristy86e31f32015-06-06 15:47:32 +000035176 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
cristy3ed852e2009-09-05 21:47:34 +000035177 :
35178 else
cristy63970c52015-06-06 16:09:04 +000035179 GSCMYKDevice=pam
cristy3ed852e2009-09-05 21:47:34 +000035180 fi
cristyad38abe2012-12-23 23:03:21 +000035181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
35182$as_echo "$GSCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035183
35184 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035186$as_echo_n "checking for gs mono device... " >&6; }
cristy86e31f32015-06-06 15:47:32 +000035187 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
cristy3ed852e2009-09-05 21:47:34 +000035188 :
35189 else
35190 GSMonoDevice=$GSColorDevice
35191 fi
cristyad38abe2012-12-23 23:03:21 +000035192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
35193$as_echo "$GSMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035194
35195 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000035196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035197$as_echo_n "checking for gs PDF writing device... " >&6; }
cristy86e31f32015-06-06 15:47:32 +000035198 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
cristy3ed852e2009-09-05 21:47:34 +000035199 :
35200 else
35201 GSPDFDevice=nodevice
35202 fi
cristy63970c52015-06-06 16:09:04 +000035203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
cristyad38abe2012-12-23 23:03:21 +000035204$as_echo "$GSPDFDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035205
35206 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000035207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035208$as_echo_n "checking for gs PS writing device... " >&6; }
cristy86e31f32015-06-06 15:47:32 +000035209 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
cristy3ed852e2009-09-05 21:47:34 +000035210 :
35211 else
cristy15308162015-01-09 23:43:12 +000035212 GSPSDevice=pswrite
cristy3ed852e2009-09-05 21:47:34 +000035213 fi
cristyad38abe2012-12-23 23:03:21 +000035214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
35215$as_echo "$GSPSDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035216
35217 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000035218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035219$as_echo_n "checking for gs EPS writing device... " >&6; }
cristy86e31f32015-06-06 15:47:32 +000035220 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
cristy3ed852e2009-09-05 21:47:34 +000035221 :
35222 else
cristy15308162015-01-09 23:43:12 +000035223 GSEPSDevice=epswrite
cristy3ed852e2009-09-05 21:47:34 +000035224 fi
cristyad38abe2012-12-23 23:03:21 +000035225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
35226$as_echo "$GSEPSDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035227fi
35228
35229
35230
35231
35232
35233
35234
35235
35236
35237
35238#
35239# PerlMagick-related configuration
35240#
35241
35242# Look for PERL if PerlMagick requested
35243# If name/path of desired PERL interpreter is specified, look for that one first
35244have_perl='no'
35245if test "$with_perl" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000035246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35247$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000035249$as_echo_n "checking for Perl... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35251$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035252 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000035253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000035254$as_echo_n "checking for perl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035255if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035256 $as_echo_n "(cached) " >&6
35257else
35258 ac_cv_path_PERL="$with_perl"
35259fi
cristy8b350f62009-11-15 23:12:43 +000035260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035261$as_echo "$ac_cv_path_PERL" >&6; };
35262 PERL=$ac_cv_path_PERL
35263 have_perl="$ac_cv_path_PERL"
35264 else
35265 for ac_prog in perl perl5
35266do
35267 # Extract the first word of "$ac_prog", so it can be a program name with args.
35268set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035270$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035271if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035272 $as_echo_n "(cached) " >&6
35273else
35274 case $PERL in
35275 [\\/]* | ?:[\\/]*)
35276 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
35277 ;;
35278 *)
35279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35280for as_dir in $PATH
35281do
35282 IFS=$as_save_IFS
35283 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035284 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035285 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035286 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000035287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035288 break 2
35289 fi
35290done
cristy8b350f62009-11-15 23:12:43 +000035291 done
cristy3ed852e2009-09-05 21:47:34 +000035292IFS=$as_save_IFS
35293
35294 ;;
35295esac
35296fi
35297PERL=$ac_cv_path_PERL
35298if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000035299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035300$as_echo "$PERL" >&6; }
35301else
cristy8b350f62009-11-15 23:12:43 +000035302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035303$as_echo "no" >&6; }
35304fi
35305
35306
35307 test -n "$PERL" && break
35308done
35309 if test "$ac_cv_path_PERL"; then
35310 have_perl="$ac_cv_path_PERL"
35311 fi
35312 fi
35313fi
35314
cristy949301e2010-01-06 01:38:40 +000035315if test "$with_perl" != 'yes' ; then
35316 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
35317fi
35318
35319PERL_SUPPORTS_DESTDIR='no'
35320
cristy3ed852e2009-09-05 21:47:34 +000035321with_perl_static='no'
35322with_perl_dynamic='no'
35323if test "$have_perl" != 'no'; then
35324 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
35325 with_perl_static='yes'
35326 fi
35327 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
35328 with_perl_dynamic='yes'
35329 fi
35330 # Is PERL's MakeMaker new enough to support DESTDIR?
cristy73bd4a52010-10-05 11:24:23 +000035331
35332
35333
35334
35335 if test -n "$PERL"; then :
35336
35337 ax_perl_version="5.8.1"
35338
35339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
35340$as_echo_n "checking for perl version... " >&6; }
35341
cristy17491be2014-06-24 01:10:53 +000035342 perl_version=`$PERL --version 2>&1 \
35343 | $SED -n -e '/This is perl/b inspect
35344b
35345: inspect
35346s/.* (\{0,1\}v\([0-9]*\.[0-9]*\.[0-9]*\))\{0,1\} .*/\1/;p'`
cristy73bd4a52010-10-05 11:24:23 +000035347
35348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
35349$as_echo "$perl_version" >&6; }
35350
35351 PERL_VERSION=$perl_version
35352
35353
35354
35355
35356
35357 # Used to indicate true or false condition
35358 ax_compare_version=false
35359
35360 # Convert the two version strings to be compared into a format that
35361 # allows a simple string comparison. The end result is that a version
35362 # string of the form 1.12.5-r617 will be converted to the form
35363 # 0001001200050617. In other words, each number is zero padded to four
35364 # digits, and non digits are removed.
35365
35366 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
35367 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
35368 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
35369 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
35370 -e 's/[^0-9]//g'`
35371
35372
35373 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
35374 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
35375 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
35376 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
35377 -e 's/[^0-9]//g'`
35378
35379
35380 ax_compare_version=`echo "x$ax_compare_version_A
35381x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
35382
35383
35384
35385 if test "$ax_compare_version" = "true" ; then
35386
35387 :
35388 PERL_SUPPORTS_DESTDIR='yes'
35389
35390 else
35391 :
35392 PERL_SUPPORTS_DESTDIR='no'
35393
35394 fi
35395
35396
35397else
35398
35399 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
35400$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
35401 PERL_SUPPORTS_DESTDIR='no'
35402
cristy3ed852e2009-09-05 21:47:34 +000035403fi
cristy73bd4a52010-10-05 11:24:23 +000035404
35405fi
35406 if test "$have_perl" != 'no'; then
35407 WITH_PERL_TRUE=
35408 WITH_PERL_FALSE='#'
35409else
35410 WITH_PERL_TRUE='#'
35411 WITH_PERL_FALSE=
35412fi
35413
35414 if test $with_perl_static = 'yes'; then
35415 WITH_PERL_STATIC_TRUE=
35416 WITH_PERL_STATIC_FALSE='#'
35417else
35418 WITH_PERL_STATIC_TRUE='#'
35419 WITH_PERL_STATIC_FALSE=
35420fi
35421
35422 if test $with_perl_dynamic = 'yes'; then
35423 WITH_PERL_DYNAMIC_TRUE=
35424 WITH_PERL_DYNAMIC_FALSE='#'
35425else
35426 WITH_PERL_DYNAMIC_TRUE='#'
35427 WITH_PERL_DYNAMIC_FALSE=
35428fi
35429
cristy3ed852e2009-09-05 21:47:34 +000035430
35431
35432# Determine path to pick up MagickCore library from for use with building PerlMagick
35433MAGICKCORE_PATH="${LIB_DIR}"
35434if test $with_perl_static = 'yes'; then
35435 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
35436 libtool_objdir=$objdir
35437
35438 # Linker search path to library, followed by -lMagickCore
cristy4c08aed2011-07-01 19:47:50 +000035439 MAGICKCORE_PATH="${builddir}/MagickCore/${libtool_objdir}"
cristy3ed852e2009-09-05 21:47:34 +000035440fi
35441
35442
cristy2a3eb392012-12-17 13:39:20 +000035443# Create a simple string containing format names for all delegate libraries.
cristy422d5502012-12-22 22:20:57 +000035444MAGICK_DELEGATES=''
cristy2a3eb392012-12-17 13:39:20 +000035445if test "$have_autotrace" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035446 MAGICK_DELEGATES="$MAGICK_DELEGATES autotrace"
cristy3ed852e2009-09-05 21:47:34 +000035447fi
cristy2a3eb392012-12-17 13:39:20 +000035448if test "$have_bzlib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035449 MAGICK_DELEGATES="$MAGICK_DELEGATES bzlib"
cristy2a3eb392012-12-17 13:39:20 +000035450fi
35451if test "$have_dps" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035452 MAGICK_DELEGATES="$MAGICK_DELEGATES dps"
cristy2a3eb392012-12-17 13:39:20 +000035453fi
35454if test "$have_djvu" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035455 MAGICK_DELEGATES="$MAGICK_DELEGATES djvu"
cristy2a3eb392012-12-17 13:39:20 +000035456fi
cristy81ab5af2013-10-06 18:28:39 +000035457if test "$have_avconv" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035458 MAGICK_DELEGATES="$MAGICK_DELEGATES mpeg"
cristy2a3eb392012-12-17 13:39:20 +000035459fi
35460if test "$have_fftw" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035461 MAGICK_DELEGATES="$MAGICK_DELEGATES fftw"
cristy2a3eb392012-12-17 13:39:20 +000035462fi
cristy2a3eb392012-12-17 13:39:20 +000035463if test "$have_fpx" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035464 MAGICK_DELEGATES="$MAGICK_DELEGATES fpx"
cristy2a3eb392012-12-17 13:39:20 +000035465fi
35466if test "$have_fontconfig" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035467 MAGICK_DELEGATES="$MAGICK_DELEGATES fontconfig"
cristy2a3eb392012-12-17 13:39:20 +000035468fi
35469if test "$have_freetype" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035470 MAGICK_DELEGATES="$MAGICK_DELEGATES freetype"
cristy2a3eb392012-12-17 13:39:20 +000035471fi
35472if test "$have_gslib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035473 MAGICK_DELEGATES="$MAGICK_DELEGATES gslib"
cristy2a3eb392012-12-17 13:39:20 +000035474fi
35475if test "$have_jbig" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035476 MAGICK_DELEGATES="$MAGICK_DELEGATES jbig"
cristy2a3eb392012-12-17 13:39:20 +000035477fi
35478if test "$have_png$have_jpeg" = 'yesyes' ; then
cristy422d5502012-12-22 22:20:57 +000035479 MAGICK_DELEGATES="$MAGICK_DELEGATES jng"
cristy2a3eb392012-12-17 13:39:20 +000035480fi
cristy2a3eb392012-12-17 13:39:20 +000035481if test "$have_jpeg" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035482 MAGICK_DELEGATES="$MAGICK_DELEGATES jpeg"
cristy2a3eb392012-12-17 13:39:20 +000035483fi
35484if test "$have_lcms" = 'yes' || test "$have_lcms2" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035485 MAGICK_DELEGATES="$MAGICK_DELEGATES lcms"
cristy2a3eb392012-12-17 13:39:20 +000035486fi
35487if test "$have_lqr" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035488 MAGICK_DELEGATES="$MAGICK_DELEGATES lqr"
cristy2a3eb392012-12-17 13:39:20 +000035489fi
35490if test "$have_lzma" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035491 MAGICK_DELEGATES="$MAGICK_DELEGATES lzma"
cristy2a3eb392012-12-17 13:39:20 +000035492fi
35493if test "$have_openexr" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035494 MAGICK_DELEGATES="$MAGICK_DELEGATES openexr"
cristy2a3eb392012-12-17 13:39:20 +000035495fi
cristy99db3872014-01-01 15:11:34 +000035496if test "$have_openjp2" = 'yes' ; then
35497 MAGICK_DELEGATES="$MAGICK_DELEGATES openjp2"
cristy3fe09452014-01-01 12:29:14 +000035498fi
cristy2a3eb392012-12-17 13:39:20 +000035499if test "$have_pango" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035500 MAGICK_DELEGATES="$MAGICK_DELEGATES pango"
cristy2a3eb392012-12-17 13:39:20 +000035501fi
35502if test "$have_png" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035503 MAGICK_DELEGATES="$MAGICK_DELEGATES png"
cristy2a3eb392012-12-17 13:39:20 +000035504fi
35505have_ps='no'
35506if test "$have_dps" = 'yes' || \
35507 test "$have_gs" = 'yes' || \
35508 test "${native_win32_build}" = 'yes' ; then
35509 have_ps='yes'
35510fi
35511if test "$have_ps" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035512 MAGICK_DELEGATES="$MAGICK_DELEGATES ps"
cristy2a3eb392012-12-17 13:39:20 +000035513fi
cristy2a3eb392012-12-17 13:39:20 +000035514if test "$have_ra_ppm" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035515 MAGICK_DELEGATES="$MAGICK_DELEGATES rad"
cristy2a3eb392012-12-17 13:39:20 +000035516fi
35517if test "$have_rsvg" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035518 MAGICK_DELEGATES="$MAGICK_DELEGATES rsvg"
cristy2a3eb392012-12-17 13:39:20 +000035519fi
35520if test "$have_tiff" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035521 MAGICK_DELEGATES="$MAGICK_DELEGATES tiff"
cristy2a3eb392012-12-17 13:39:20 +000035522fi
35523if test "$have_ttf" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035524 MAGICK_DELEGATES="$MAGICK_DELEGATES ttf"
cristy2a3eb392012-12-17 13:39:20 +000035525fi
cristy3b640ed2013-07-29 00:27:59 +000035526if test "$have_webp" = 'yes' ; then
35527 MAGICK_DELEGATES="$MAGICK_DELEGATES webp"
35528fi
cristy2a3eb392012-12-17 13:39:20 +000035529if test "$have_wmf" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035530 MAGICK_DELEGATES="$MAGICK_DELEGATES wmf"
cristy2a3eb392012-12-17 13:39:20 +000035531fi
35532if test "$have_x" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035533 MAGICK_DELEGATES="$MAGICK_DELEGATES x"
cristy2a3eb392012-12-17 13:39:20 +000035534fi
35535if test "$have_xml" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035536 MAGICK_DELEGATES="$MAGICK_DELEGATES xml"
cristy2a3eb392012-12-17 13:39:20 +000035537fi
35538if test "$have_zlib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035539 MAGICK_DELEGATES="$MAGICK_DELEGATES zlib"
cristy2a3eb392012-12-17 13:39:20 +000035540fi
cristyead532a2015-06-05 00:49:30 +000035541
cristy2a3eb392012-12-17 13:39:20 +000035542# Remove extraneous spaces from output variables (asthetic)
cristy422d5502012-12-22 22:20:57 +000035543MAGICK_DELEGATES=`echo $MAGICK_DELEGATES | sed -e 's/ */ /g'`
cristy2a3eb392012-12-17 13:39:20 +000035544MAGICK_FEATURES=`echo $MAGICK_FEATURES | sed -e 's/ */ /g'`
cristy3ed852e2009-09-05 21:47:34 +000035545
35546
cristyfa161182012-12-19 15:45:28 +000035547
cristy3ed852e2009-09-05 21:47:34 +000035548#
35549# Handle special compiler flags
35550#
35551
35552# Add '-p' if prof source profiling support enabled
35553if test "$enable_prof" = 'yes'; then
35554 CFLAGS="-p $CFLAGS"
35555 CXXFLAGS="-p $CXXFLAGS"
35556 LDFLAGS="-p $LDFLAGS"
35557fi
35558
35559# Add '-pg' if gprof source profiling support enabled
35560if test "$enable_gprof" = 'yes'; then
35561 CFLAGS="-pg $CFLAGS"
35562 CXXFLAGS="-pg $CXXFLAGS"
35563 LDFLAGS="-pg $LDFLAGS"
35564fi
35565
35566# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
35567# This is a gcc-specific feature
35568if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000035569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000035570$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035571if ${ac_cv_lib_gcov__gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035572 $as_echo_n "(cached) " >&6
35573else
35574 ac_check_lib_save_LIBS=$LIBS
35575LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000035576cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035577/* end confdefs.h. */
35578
35579/* Override any GCC internal prototype to avoid an error.
35580 Use char because int might match the return type of a GCC
35581 builtin and then its argument prototype would still apply. */
35582#ifdef __cplusplus
35583extern "C"
35584#endif
35585char _gcov_init ();
35586int
35587main ()
35588{
35589return _gcov_init ();
35590 ;
35591 return 0;
35592}
35593_ACEOF
cristy8b350f62009-11-15 23:12:43 +000035594if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000035595 ac_cv_lib_gcov__gcov_init=yes
35596else
cristy8b350f62009-11-15 23:12:43 +000035597 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000035598fi
cristy8b350f62009-11-15 23:12:43 +000035599rm -f core conftest.err conftest.$ac_objext \
35600 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035601LIBS=$ac_check_lib_save_LIBS
35602fi
cristy8b350f62009-11-15 23:12:43 +000035603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000035604$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000035605if test "x$ac_cv_lib_gcov__gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000035606 cat >>confdefs.h <<_ACEOF
35607#define HAVE_LIBGCOV 1
35608_ACEOF
35609
35610 LIBS="-lgcov $LIBS"
35611
35612fi
35613
cristy8b350f62009-11-15 23:12:43 +000035614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000035615$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035616if ${ac_cv_lib_gcov___gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035617 $as_echo_n "(cached) " >&6
35618else
35619 ac_check_lib_save_LIBS=$LIBS
35620LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000035621cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035622/* end confdefs.h. */
35623
35624/* Override any GCC internal prototype to avoid an error.
35625 Use char because int might match the return type of a GCC
35626 builtin and then its argument prototype would still apply. */
35627#ifdef __cplusplus
35628extern "C"
35629#endif
35630char __gcov_init ();
35631int
35632main ()
35633{
35634return __gcov_init ();
35635 ;
35636 return 0;
35637}
35638_ACEOF
cristy8b350f62009-11-15 23:12:43 +000035639if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000035640 ac_cv_lib_gcov___gcov_init=yes
35641else
cristy8b350f62009-11-15 23:12:43 +000035642 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000035643fi
cristy8b350f62009-11-15 23:12:43 +000035644rm -f core conftest.err conftest.$ac_objext \
35645 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035646LIBS=$ac_check_lib_save_LIBS
35647fi
cristy8b350f62009-11-15 23:12:43 +000035648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000035649$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000035650if test "x$ac_cv_lib_gcov___gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000035651 cat >>confdefs.h <<_ACEOF
35652#define HAVE_LIBGCOV 1
35653_ACEOF
35654
35655 LIBS="-lgcov $LIBS"
35656
35657fi
35658
35659 case "$target_os" in
35660 darwin*)
35661 OSX_GCOV_LDFLAG="-Wl,-single_module"
35662 ;;
35663 *)
35664 OSX_GCOV_LDFLAG=""
35665 ;;
35666 esac
35667
35668 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
35669 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
35670 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
35671fi
35672
35673#
35674# Build library dependency list for libMagickCore
35675#
35676
cristyc6722092012-10-14 00:19:31 +000035677if test "$build_modules" != 'no'; then
cristybc8ef1c2015-06-06 14:32:21 +000035678 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 +000035679else
cristy70870272015-06-06 15:54:14 +000035680 MAGICK_DEP_LIBS="$USER_LIBS $JBIG_LIBS $LCMS_LIBS $TIFF_LIBS $FREETYPE_LIBS $JPEG_LIBS $GS_LIBS $LQR_LIBS $PNG_LIBS $AUTOTRACE_LIBS $DJVU_LIBS $FFTW_LIBS $FPX_LIBS $FONTCONFIG_LIBS $WEBP_LIBS $WMF_LIBS $DPS_LIBS $XEXT_LIBS $XT_LIBS $IPC_LIBS $X11_LIBS $LZMA_LIBS $BZLIB_LIBS $OPENEXR_LIBS $LIBOPENJP2_LIBS $PANGO_LIBS $RSVG_LIBS $XML_LIBS $GVC_LIBS $ZLIB_LIBS $GDI32_LIBS $MATH_LIBS $GOMP_LIBS $CL_LIBS $UMEM_LIBS $JEMALLOC_LIBS $THREAD_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000035681fi
35682
35683
35684#
cristyead532a2015-06-05 00:49:30 +000035685# Sanitize output variables (asthetic).
cristy3ed852e2009-09-05 21:47:34 +000035686#
cristy32f75d42015-06-05 18:46:23 +000035687for variable in CFLAGS CPPFLAGS CXXFLAGS LDFLAGS PCFLAGS X_CFLAGS; do
cristyead532a2015-06-05 00:49:30 +000035688 sanitize=''
35689 eval value=$`echo $variable`
35690 for component in $value
35691 do
35692 unique=yes
35693 for test_component in $sanitize
35694 do
35695 if test $component = $test_component; then
35696 unique=no
35697 break
35698 fi
35699 done
35700 if test $unique = yes; then
35701 sanitize="$sanitize $component"
35702 fi
35703 done
35704 sanitize=`echo $sanitize | sed -e 's/^ *//g'`
35705 eval ${variable}=\${sanitize}
35706done
cristy3ed852e2009-09-05 21:47:34 +000035707
35708# Pass only user-provided LIBS as "global" libraries
35709LIBS=$USER_LIBS
35710
35711#AC_SUBST(CPPFLAGS)
35712
35713#AC_SUBST(LDFLAGS)
35714#AC_SUBST(X_PRE_LIBS)
35715#AC_SUBST(X_LIBS)
35716#AC_SUBST(X_EXTRA_LIBS)
35717
35718MAGICK_CFLAGS=$CFLAGS
35719MAGICK_CXXFLAGS="$CXXFLAGS"
35720MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
35721MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
35722MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
cristy31b9e072013-10-17 15:02:53 +000035723MAGICK_LIBS="$MAGICK_DEP_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000035724
35725
35726
35727
35728
35729
35730
35731
35732# Set configured scripts to executable.
35733ac_config_commands="$ac_config_commands default"
35734
cristy2bd4b6e2012-07-22 15:29:11 +000035735ac_config_commands="$ac_config_commands magick.sh.in"
35736
cristy3ed852e2009-09-05 21:47:34 +000035737ac_config_commands="$ac_config_commands MagickCore-config.in"
35738
cristy3ed852e2009-09-05 21:47:34 +000035739ac_config_commands="$ac_config_commands MagickWand-config.in"
35740
cristy3ed852e2009-09-05 21:47:34 +000035741ac_config_commands="$ac_config_commands Magick++-config.in"
35742
35743ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
35744
35745
cristyad38abe2012-12-23 23:03:21 +000035746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35747$as_echo "-------------------------------------------------------------" >&6; }
35748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
35749$as_echo "Update ImageMagick configuration" >&6; }
cristy9af1cbf2014-12-28 22:03:09 +000035750
35751rm -f magick-version
35752
35753result_dejavu_font_dir='none'
35754if test "${dejavu_font_dir}x" != 'x'; then
35755 result_dejavu_font_dir=$dejavu_font_dir
35756fi
35757
35758result_ghostscript_font_dir='none'
35759if test "${ghostscript_font_dir}x" != 'x'; then
35760 result_ghostscript_font_dir=$ghostscript_font_dir
35761fi
35762
35763result_windows_font_dir='none'
35764if test "${windows_font_dir}x" != 'x'; then
35765 result_windows_font_dir=${windows_font_dir}
35766fi
35767
35768# ==============================================================================
35769# Generate build environment
35770# ==============================================================================
35771ac_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"
35772
cristy3ed852e2009-09-05 21:47:34 +000035773cat >confcache <<\_ACEOF
35774# This file is a shell script that caches the results of configure
35775# tests run on this system so they can be shared between configure
35776# scripts and configure runs, see configure's option --config-cache.
35777# It is not useful on other systems. If it contains results you don't
35778# want to keep, you may remove or edit it.
35779#
35780# config.status only pays attention to the cache file if you give it
35781# the --recheck option to rerun configure.
35782#
35783# `ac_cv_env_foo' variables (set or unset) will be overridden when
35784# loading this file, other *unset* `ac_cv_foo' will be assigned the
35785# following values.
35786
35787_ACEOF
35788
35789# The following way of writing the cache mishandles newlines in values,
35790# but we know of no workaround that is simple, portable, and efficient.
35791# So, we kill variables containing newlines.
35792# Ultrix sh set writes to stderr and can't be redirected directly,
35793# and sets the high bit in the cache file unless we assign to the vars.
35794(
35795 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35796 eval ac_val=\$$ac_var
35797 case $ac_val in #(
35798 *${as_nl}*)
35799 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000035800 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000035801$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
35802 esac
35803 case $ac_var in #(
35804 _ | IFS | as_nl) ;; #(
35805 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000035806 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000035807 esac ;;
35808 esac
35809 done
35810
35811 (set) 2>&1 |
35812 case $as_nl`(ac_space=' '; set) 2>&1` in #(
35813 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000035814 # `set' does not quote correctly, so add quotes: double-quote
35815 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000035816 sed -n \
35817 "s/'/'\\\\''/g;
35818 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35819 ;; #(
35820 *)
35821 # `set' quotes correctly as required by POSIX, so do not add quotes.
35822 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
35823 ;;
35824 esac |
35825 sort
35826) |
35827 sed '
35828 /^ac_cv_env_/b end
35829 t clear
35830 :clear
35831 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35832 t end
35833 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35834 :end' >>confcache
35835if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
35836 if test -w "$cache_file"; then
cristyda16f162011-02-19 23:52:17 +000035837 if test "x$cache_file" != "x/dev/null"; then
cristy8b350f62009-11-15 23:12:43 +000035838 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000035839$as_echo "$as_me: updating cache $cache_file" >&6;}
cristyda16f162011-02-19 23:52:17 +000035840 if test ! -f "$cache_file" || test -h "$cache_file"; then
35841 cat confcache >"$cache_file"
35842 else
35843 case $cache_file in #(
35844 */* | ?:*)
35845 mv -f confcache "$cache_file"$$ &&
35846 mv -f "$cache_file"$$ "$cache_file" ;; #(
35847 *)
35848 mv -f confcache "$cache_file" ;;
35849 esac
35850 fi
35851 fi
cristy3ed852e2009-09-05 21:47:34 +000035852 else
cristy8b350f62009-11-15 23:12:43 +000035853 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000035854$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
35855 fi
35856fi
35857rm -f confcache
35858
35859test "x$prefix" = xNONE && prefix=$ac_default_prefix
35860# Let make expand exec_prefix.
35861test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35862
35863DEFS=-DHAVE_CONFIG_H
35864
35865ac_libobjs=
35866ac_ltlibobjs=
cristy98dddb52010-11-04 00:30:15 +000035867U=
cristy3ed852e2009-09-05 21:47:34 +000035868for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35869 # 1. Remove the extension, and $U if already installed.
35870 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
35871 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
35872 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
35873 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000035874 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35875 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000035876done
35877LIBOBJS=$ac_libobjs
35878
35879LTLIBOBJS=$ac_ltlibobjs
35880
35881
cristyc0890a62012-07-19 00:18:20 +000035882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
35883$as_echo_n "checking that generated files are newer than configure... " >&6; }
35884 if test -n "$am_sleep_pid"; then
35885 # Hide warnings about reused PIDs.
35886 wait $am_sleep_pid 2>/dev/null
35887 fi
35888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
35889$as_echo "done" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000035890 if test -n "$EXEEXT"; then
35891 am__EXEEXT_TRUE=
35892 am__EXEEXT_FALSE='#'
35893else
35894 am__EXEEXT_TRUE='#'
35895 am__EXEEXT_FALSE=
35896fi
cristy3ed852e2009-09-05 21:47:34 +000035897
cristy9af1cbf2014-12-28 22:03:09 +000035898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
35899$as_echo_n "checking that generated files are newer than configure... " >&6; }
35900 if test -n "$am_sleep_pid"; then
35901 # Hide warnings about reused PIDs.
35902 wait $am_sleep_pid 2>/dev/null
35903 fi
35904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
35905$as_echo "done" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000035906if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035907 as_fn_error $? "conditional \"AMDEP\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035908Usually this means the macro was only invoked conditionally." "$LINENO" 5
35909fi
35910if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035911 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035912Usually this means the macro was only invoked conditionally." "$LINENO" 5
35913fi
35914if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035915 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035916Usually this means the macro was only invoked conditionally." "$LINENO" 5
35917fi
35918if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035919 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035920Usually this means the macro was only invoked conditionally." "$LINENO" 5
35921fi
cristy9b86f202012-11-28 21:55:35 +000035922if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
35923 as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
35924Usually this means the macro was only invoked conditionally." "$LINENO" 5
35925fi
cristy73bd4a52010-10-05 11:24:23 +000035926if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035927 as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035928Usually this means the macro was only invoked conditionally." "$LINENO" 5
35929fi
35930if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035931 as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035932Usually this means the macro was only invoked conditionally." "$LINENO" 5
35933fi
35934if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035935 as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035936Usually this means the macro was only invoked conditionally." "$LINENO" 5
35937fi
35938if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035939 as_fn_error $? "conditional \"USING_CL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035940Usually this means the macro was only invoked conditionally." "$LINENO" 5
35941fi
cristy73bd4a52010-10-05 11:24:23 +000035942if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035943 as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035944Usually this means the macro was only invoked conditionally." "$LINENO" 5
35945fi
35946if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035947 as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035948Usually this means the macro was only invoked conditionally." "$LINENO" 5
35949fi
cristy73bd4a52010-10-05 11:24:23 +000035950if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035951 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035952Usually this means the macro was only invoked conditionally." "$LINENO" 5
35953fi
cristy71d8c202012-03-20 17:05:01 +000035954if test -z "${LEGACY_SUPPORT_TRUE}" && test -z "${LEGACY_SUPPORT_FALSE}"; then
35955 as_fn_error $? "conditional \"LEGACY_SUPPORT\" was never defined.
35956Usually this means the macro was only invoked conditionally." "$LINENO" 5
35957fi
cristy73bd4a52010-10-05 11:24:23 +000035958
35959if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035960 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035961Usually this means the macro was only invoked conditionally." "$LINENO" 5
35962fi
35963if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035964 as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035965Usually this means the macro was only invoked conditionally." "$LINENO" 5
35966fi
cristy3b0097d2014-11-04 15:34:47 +000035967if test -z "${HasJEMALLOC_TRUE}" && test -z "${HasJEMALLOC_FALSE}"; then
35968 as_fn_error $? "conditional \"HasJEMALLOC\" was never defined.
35969Usually this means the macro was only invoked conditionally." "$LINENO" 5
35970fi
cristy73bd4a52010-10-05 11:24:23 +000035971if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035972 as_fn_error $? "conditional \"HasUMEM\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035973Usually this means the macro was only invoked conditionally." "$LINENO" 5
35974fi
35975if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035976 as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035977Usually this means the macro was only invoked conditionally." "$LINENO" 5
35978fi
35979if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035980 as_fn_error $? "conditional \"X11_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035981Usually this means the macro was only invoked conditionally." "$LINENO" 5
35982fi
35983if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035984 as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035985Usually this means the macro was only invoked conditionally." "$LINENO" 5
35986fi
cristy5eef09f2012-10-16 12:08:28 +000035987if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
35988 as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
35989Usually this means the macro was only invoked conditionally." "$LINENO" 5
35990fi
cristy73bd4a52010-10-05 11:24:23 +000035991if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035992 as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035993Usually this means the macro was only invoked conditionally." "$LINENO" 5
35994fi
35995if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035996 as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035997Usually this means the macro was only invoked conditionally." "$LINENO" 5
35998fi
cristy73bd4a52010-10-05 11:24:23 +000035999if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036000 as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036001Usually this means the macro was only invoked conditionally." "$LINENO" 5
36002fi
36003if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036004 as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036005Usually this means the macro was only invoked conditionally." "$LINENO" 5
36006fi
cristy853d9902014-08-21 18:50:43 +000036007if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
36008 as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined.
36009Usually this means the macro was only invoked conditionally." "$LINENO" 5
36010fi
cristy73bd4a52010-10-05 11:24:23 +000036011if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036012 as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036013Usually this means the macro was only invoked conditionally." "$LINENO" 5
36014fi
36015if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036016 as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036017Usually this means the macro was only invoked conditionally." "$LINENO" 5
36018fi
36019if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036020 as_fn_error $? "conditional \"GS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036021Usually this means the macro was only invoked conditionally." "$LINENO" 5
36022fi
36023if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036024 as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036025Usually this means the macro was only invoked conditionally." "$LINENO" 5
36026fi
36027if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036028 as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036029Usually this means the macro was only invoked conditionally." "$LINENO" 5
36030fi
36031if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036032 as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036033Usually this means the macro was only invoked conditionally." "$LINENO" 5
36034fi
cristy73bd4a52010-10-05 11:24:23 +000036035if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036036 as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036037Usually this means the macro was only invoked conditionally." "$LINENO" 5
36038fi
cristy99db3872014-01-01 15:11:34 +000036039if test -z "${LIBOPENJP2_DELEGATE_TRUE}" && test -z "${LIBOPENJP2_DELEGATE_FALSE}"; then
36040 as_fn_error $? "conditional \"LIBOPENJP2_DELEGATE\" was never defined.
36041Usually this means the macro was only invoked conditionally." "$LINENO" 5
36042fi
cristy73bd4a52010-10-05 11:24:23 +000036043if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036044 as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036045Usually this means the macro was only invoked conditionally." "$LINENO" 5
36046fi
cristyfbb0ef02010-12-19 02:32:11 +000036047if test -z "${LZMA_DELEGATE_TRUE}" && test -z "${LZMA_DELEGATE_FALSE}"; then
36048 as_fn_error $? "conditional \"LZMA_DELEGATE\" was never defined.
36049Usually this means the macro was only invoked conditionally." "$LINENO" 5
36050fi
cristy73bd4a52010-10-05 11:24:23 +000036051if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036052 as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036053Usually this means the macro was only invoked conditionally." "$LINENO" 5
36054fi
cristy41cbe8a2011-10-27 01:35:18 +000036055if test -z "${PANGO_DELEGATE_TRUE}" && test -z "${PANGO_DELEGATE_FALSE}"; then
36056 as_fn_error $? "conditional \"PANGO_DELEGATE\" was never defined.
36057Usually this means the macro was only invoked conditionally." "$LINENO" 5
36058fi
cristya054b762012-03-26 23:16:00 +000036059if test -z "${PANGOCAIRO_DELEGATE_TRUE}" && test -z "${PANGOCAIRO_DELEGATE_FALSE}"; then
36060 as_fn_error $? "conditional \"PANGOCAIRO_DELEGATE\" was never defined.
cristy41cbe8a2011-10-27 01:35:18 +000036061Usually this means the macro was only invoked conditionally." "$LINENO" 5
36062fi
cristy73bd4a52010-10-05 11:24:23 +000036063if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036064 as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036065Usually this means the macro was only invoked conditionally." "$LINENO" 5
36066fi
36067if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036068 as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036069Usually this means the macro was only invoked conditionally." "$LINENO" 5
36070fi
36071if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036072 as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036073Usually this means the macro was only invoked conditionally." "$LINENO" 5
36074fi
36075if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036076 as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036077Usually this means the macro was only invoked conditionally." "$LINENO" 5
36078fi
cristyb1860752011-03-14 00:27:46 +000036079if test -z "${WEBP_DELEGATE_TRUE}" && test -z "${WEBP_DELEGATE_FALSE}"; then
36080 as_fn_error $? "conditional \"WEBP_DELEGATE\" was never defined.
36081Usually this means the macro was only invoked conditionally." "$LINENO" 5
36082fi
cristy73bd4a52010-10-05 11:24:23 +000036083if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036084 as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036085Usually this means the macro was only invoked conditionally." "$LINENO" 5
36086fi
36087if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036088 as_fn_error $? "conditional \"XML_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036089Usually this means the macro was only invoked conditionally." "$LINENO" 5
36090fi
cristydd17feb2014-03-05 02:06:32 +000036091if test -z "${INSTALL_DOC_TRUE}" && test -z "${INSTALL_DOC_FALSE}"; then
36092 as_fn_error $? "conditional \"INSTALL_DOC\" was never defined.
36093Usually this means the macro was only invoked conditionally." "$LINENO" 5
36094fi
cristy73bd4a52010-10-05 11:24:23 +000036095if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036096 as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036097Usually this means the macro was only invoked conditionally." "$LINENO" 5
36098fi
36099if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036100 as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036101Usually this means the macro was only invoked conditionally." "$LINENO" 5
36102fi
36103if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036104 as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036105Usually this means the macro was only invoked conditionally." "$LINENO" 5
36106fi
36107if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036108 as_fn_error $? "conditional \"WITH_PERL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036109Usually this means the macro was only invoked conditionally." "$LINENO" 5
36110fi
36111if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036112 as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036113Usually this means the macro was only invoked conditionally." "$LINENO" 5
36114fi
36115if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036116 as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036117Usually this means the macro was only invoked conditionally." "$LINENO" 5
36118fi
cristy3ed852e2009-09-05 21:47:34 +000036119
cristyda16f162011-02-19 23:52:17 +000036120: "${CONFIG_STATUS=./config.status}"
cristy3ed852e2009-09-05 21:47:34 +000036121ac_write_fail=0
36122ac_clean_files_save=$ac_clean_files
36123ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000036124{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000036125$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000036126as_write_fail=0
36127cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000036128#! $SHELL
36129# Generated by $as_me.
36130# Run this file to recreate the current configuration.
36131# Compiler output produced by configure, useful for debugging
36132# configure, is in config.log if it exists.
36133
36134debug=false
36135ac_cs_recheck=false
36136ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000036137
cristy8b350f62009-11-15 23:12:43 +000036138SHELL=\${CONFIG_SHELL-$SHELL}
36139export SHELL
36140_ASEOF
36141cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
36142## -------------------- ##
36143## M4sh Initialization. ##
36144## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000036145
36146# Be more Bourne compatible
36147DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000036148if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000036149 emulate sh
36150 NULLCMD=:
36151 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
36152 # is contrary to our usage. Disable this feature.
36153 alias -g '${1+"$@"}'='"$@"'
36154 setopt NO_GLOB_SUBST
36155else
cristy8b350f62009-11-15 23:12:43 +000036156 case `(set -o) 2>/dev/null` in #(
36157 *posix*) :
36158 set -o posix ;; #(
36159 *) :
36160 ;;
cristy3ed852e2009-09-05 21:47:34 +000036161esac
cristy3ed852e2009-09-05 21:47:34 +000036162fi
36163
36164
cristy3ed852e2009-09-05 21:47:34 +000036165as_nl='
36166'
36167export as_nl
36168# Printing a long string crashes Solaris 7 /usr/bin/printf.
36169as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
36170as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
36171as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000036172# Prefer a ksh shell builtin over an external printf program on Solaris,
36173# but without wasting forks for bash or zsh.
36174if test -z "$BASH_VERSION$ZSH_VERSION" \
36175 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
36176 as_echo='print -r --'
36177 as_echo_n='print -rn --'
36178elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000036179 as_echo='printf %s\n'
36180 as_echo_n='printf %s'
36181else
36182 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
36183 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
36184 as_echo_n='/usr/ucb/echo -n'
36185 else
36186 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
36187 as_echo_n_body='eval
36188 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000036189 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000036190 *"$as_nl"*)
36191 expr "X$arg" : "X\\(.*\\)$as_nl";
36192 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
36193 esac;
36194 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
36195 '
36196 export as_echo_n_body
36197 as_echo_n='sh -c $as_echo_n_body as_echo'
36198 fi
36199 export as_echo_body
36200 as_echo='sh -c $as_echo_body as_echo'
36201fi
36202
36203# The user is always right.
36204if test "${PATH_SEPARATOR+set}" != set; then
36205 PATH_SEPARATOR=:
36206 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
36207 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
36208 PATH_SEPARATOR=';'
36209 }
36210fi
36211
cristy3ed852e2009-09-05 21:47:34 +000036212
36213# IFS
36214# We need space, tab and new line, in precisely that order. Quoting is
36215# there to prevent editors from complaining about space-tab.
36216# (If _AS_PATH_WALK were called with IFS unset, it would disable word
36217# splitting by setting IFS to empty value.)
36218IFS=" "" $as_nl"
36219
36220# Find who we are. Look in the path if we contain no directory separator.
cristyda16f162011-02-19 23:52:17 +000036221as_myself=
cristy8b350f62009-11-15 23:12:43 +000036222case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000036223 *[\\/]* ) as_myself=$0 ;;
36224 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36225for as_dir in $PATH
36226do
36227 IFS=$as_save_IFS
36228 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000036229 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
36230 done
cristy3ed852e2009-09-05 21:47:34 +000036231IFS=$as_save_IFS
36232
36233 ;;
36234esac
36235# We did not find ourselves, most probably we were run as `sh COMMAND'
36236# in which case we are not to be found in the path.
36237if test "x$as_myself" = x; then
36238 as_myself=$0
36239fi
36240if test ! -f "$as_myself"; then
36241 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000036242 exit 1
cristy3ed852e2009-09-05 21:47:34 +000036243fi
36244
cristy8b350f62009-11-15 23:12:43 +000036245# Unset variables that we do not need and which cause bugs (e.g. in
36246# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
36247# suppresses any "Segmentation fault" message there. '((' could
36248# trigger a bug in pdksh 5.2.14.
36249for as_var in BASH_ENV ENV MAIL MAILPATH
36250do eval test x\${$as_var+set} = xset \
36251 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000036252done
36253PS1='$ '
36254PS2='> '
36255PS4='+ '
36256
36257# NLS nuisances.
36258LC_ALL=C
36259export LC_ALL
36260LANGUAGE=C
36261export LANGUAGE
36262
cristy8b350f62009-11-15 23:12:43 +000036263# CDPATH.
36264(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36265
36266
cristy98dddb52010-11-04 00:30:15 +000036267# as_fn_error STATUS ERROR [LINENO LOG_FD]
36268# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +000036269# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
36270# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +000036271# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +000036272as_fn_error ()
36273{
cristy98dddb52010-11-04 00:30:15 +000036274 as_status=$1; test $as_status -eq 0 && as_status=1
36275 if test "$4"; then
36276 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
36277 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +000036278 fi
cristy98dddb52010-11-04 00:30:15 +000036279 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +000036280 as_fn_exit $as_status
36281} # as_fn_error
36282
36283
36284# as_fn_set_status STATUS
36285# -----------------------
36286# Set $? to STATUS, without forking.
36287as_fn_set_status ()
36288{
36289 return $1
36290} # as_fn_set_status
36291
36292# as_fn_exit STATUS
36293# -----------------
36294# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
36295as_fn_exit ()
36296{
36297 set +e
36298 as_fn_set_status $1
36299 exit $1
36300} # as_fn_exit
36301
36302# as_fn_unset VAR
36303# ---------------
36304# Portably unset VAR.
36305as_fn_unset ()
36306{
36307 { eval $1=; unset $1;}
36308}
36309as_unset=as_fn_unset
36310# as_fn_append VAR VALUE
36311# ----------------------
36312# Append the text in VALUE to the end of the definition contained in VAR. Take
36313# advantage of any shell optimizations that allow amortized linear growth over
36314# repeated appends, instead of the typical quadratic growth present in naive
36315# implementations.
36316if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
36317 eval 'as_fn_append ()
36318 {
36319 eval $1+=\$2
36320 }'
36321else
36322 as_fn_append ()
36323 {
36324 eval $1=\$$1\$2
36325 }
36326fi # as_fn_append
36327
36328# as_fn_arith ARG...
36329# ------------------
36330# Perform arithmetic evaluation on the ARGs, and store the result in the
36331# global $as_val. Take advantage of shells that can avoid forks. The arguments
36332# must be portable across $(()) and expr.
36333if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
36334 eval 'as_fn_arith ()
36335 {
36336 as_val=$(( $* ))
36337 }'
36338else
36339 as_fn_arith ()
36340 {
36341 as_val=`expr "$@" || test $? -eq 1`
36342 }
36343fi # as_fn_arith
36344
36345
cristy3ed852e2009-09-05 21:47:34 +000036346if expr a : '\(a\)' >/dev/null 2>&1 &&
36347 test "X`expr 00001 : '.*\(...\)'`" = X001; then
36348 as_expr=expr
36349else
36350 as_expr=false
36351fi
36352
36353if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
36354 as_basename=basename
36355else
36356 as_basename=false
36357fi
36358
cristy8b350f62009-11-15 23:12:43 +000036359if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
36360 as_dirname=dirname
36361else
36362 as_dirname=false
36363fi
cristy3ed852e2009-09-05 21:47:34 +000036364
cristy3ed852e2009-09-05 21:47:34 +000036365as_me=`$as_basename -- "$0" ||
36366$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
36367 X"$0" : 'X\(//\)$' \| \
36368 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
36369$as_echo X/"$0" |
36370 sed '/^.*\/\([^/][^/]*\)\/*$/{
36371 s//\1/
36372 q
36373 }
36374 /^X\/\(\/\/\)$/{
36375 s//\1/
36376 q
36377 }
36378 /^X\/\(\/\).*/{
36379 s//\1/
36380 q
36381 }
36382 s/.*/./; q'`
36383
cristy8b350f62009-11-15 23:12:43 +000036384# Avoid depending upon Character Ranges.
36385as_cr_letters='abcdefghijklmnopqrstuvwxyz'
36386as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36387as_cr_Letters=$as_cr_letters$as_cr_LETTERS
36388as_cr_digits='0123456789'
36389as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000036390
36391ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000036392case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000036393-n*)
cristy8b350f62009-11-15 23:12:43 +000036394 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000036395 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000036396 xy) ECHO_C='\c';;
36397 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
36398 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000036399 esac;;
36400*)
36401 ECHO_N='-n';;
36402esac
cristy3ed852e2009-09-05 21:47:34 +000036403
36404rm -f conf$$ conf$$.exe conf$$.file
36405if test -d conf$$.dir; then
36406 rm -f conf$$.dir/conf$$.file
36407else
36408 rm -f conf$$.dir
36409 mkdir conf$$.dir 2>/dev/null
36410fi
36411if (echo >conf$$.file) 2>/dev/null; then
36412 if ln -s conf$$.file conf$$ 2>/dev/null; then
36413 as_ln_s='ln -s'
36414 # ... but there are two gotchas:
36415 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
36416 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
cristy14fefe52012-05-21 00:59:18 +000036417 # In both cases, we have to default to `cp -pR'.
cristy3ed852e2009-09-05 21:47:34 +000036418 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
cristy14fefe52012-05-21 00:59:18 +000036419 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036420 elif ln conf$$.file conf$$ 2>/dev/null; then
36421 as_ln_s=ln
36422 else
cristy14fefe52012-05-21 00:59:18 +000036423 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036424 fi
36425else
cristy14fefe52012-05-21 00:59:18 +000036426 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036427fi
36428rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
36429rmdir conf$$.dir 2>/dev/null
36430
cristy8b350f62009-11-15 23:12:43 +000036431
36432# as_fn_mkdir_p
36433# -------------
36434# Create "$as_dir" as a directory, including parents if necessary.
36435as_fn_mkdir_p ()
36436{
36437
36438 case $as_dir in #(
36439 -*) as_dir=./$as_dir;;
36440 esac
36441 test -d "$as_dir" || eval $as_mkdir_p || {
36442 as_dirs=
36443 while :; do
36444 case $as_dir in #(
36445 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
36446 *) as_qdir=$as_dir;;
36447 esac
36448 as_dirs="'$as_qdir' $as_dirs"
36449 as_dir=`$as_dirname -- "$as_dir" ||
36450$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36451 X"$as_dir" : 'X\(//\)[^/]' \| \
36452 X"$as_dir" : 'X\(//\)$' \| \
36453 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36454$as_echo X"$as_dir" |
36455 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36456 s//\1/
36457 q
36458 }
36459 /^X\(\/\/\)[^/].*/{
36460 s//\1/
36461 q
36462 }
36463 /^X\(\/\/\)$/{
36464 s//\1/
36465 q
36466 }
36467 /^X\(\/\).*/{
36468 s//\1/
36469 q
36470 }
36471 s/.*/./; q'`
36472 test -d "$as_dir" && break
36473 done
36474 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +000036475 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +000036476
36477
36478} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000036479if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000036480 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000036481else
36482 test -d ./-p && rmdir ./-p
36483 as_mkdir_p=false
36484fi
36485
cristy14fefe52012-05-21 00:59:18 +000036486
36487# as_fn_executable_p FILE
36488# -----------------------
36489# Test if FILE is an executable regular file.
36490as_fn_executable_p ()
36491{
36492 test -f "$1" && test -x "$1"
36493} # as_fn_executable_p
36494as_test_x='test -x'
36495as_executable_p=as_fn_executable_p
cristy3ed852e2009-09-05 21:47:34 +000036496
36497# Sed expression to map a string onto a valid CPP name.
36498as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
36499
36500# Sed expression to map a string onto a valid variable name.
36501as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
36502
36503
36504exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000036505## ----------------------------------- ##
36506## Main body of $CONFIG_STATUS script. ##
36507## ----------------------------------- ##
36508_ASEOF
36509test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000036510
cristy8b350f62009-11-15 23:12:43 +000036511cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36512# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000036513# report actual input values of CONFIG_FILES etc. instead of their
36514# values after options handling.
36515ac_log="
cristy29eb34e2011-10-16 00:46:08 +000036516This file was extended by ImageMagick $as_me 7.0.0-0, which was
cristy14fefe52012-05-21 00:59:18 +000036517generated by GNU Autoconf 2.69. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000036518
36519 CONFIG_FILES = $CONFIG_FILES
36520 CONFIG_HEADERS = $CONFIG_HEADERS
36521 CONFIG_LINKS = $CONFIG_LINKS
36522 CONFIG_COMMANDS = $CONFIG_COMMANDS
36523 $ $0 $@
36524
36525on `(hostname || uname -n) 2>/dev/null | sed 1q`
36526"
36527
36528_ACEOF
36529
36530case $ac_config_files in *"
36531"*) set x $ac_config_files; shift; ac_config_files=$*;;
36532esac
36533
36534case $ac_config_headers in *"
36535"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
36536esac
36537
36538
36539cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36540# Files that config.status was made for.
36541config_files="$ac_config_files"
36542config_headers="$ac_config_headers"
36543config_commands="$ac_config_commands"
36544
36545_ACEOF
36546
36547cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36548ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000036549\`$as_me' instantiates files and other configuration actions
36550from templates according to the current configuration. Unless the files
36551and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000036552
cristy8b350f62009-11-15 23:12:43 +000036553Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000036554
36555 -h, --help print this help, then exit
36556 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000036557 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000036558 -q, --quiet, --silent
36559 do not print progress messages
36560 -d, --debug don't remove temporary files
36561 --recheck update $as_me by reconfiguring in the same conditions
36562 --file=FILE[:TEMPLATE]
36563 instantiate the configuration file FILE
36564 --header=FILE[:TEMPLATE]
36565 instantiate the configuration header FILE
36566
36567Configuration files:
36568$config_files
36569
36570Configuration headers:
36571$config_headers
36572
36573Configuration commands:
36574$config_commands
36575
cristy8b350f62009-11-15 23:12:43 +000036576Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000036577
36578_ACEOF
36579cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000036580ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000036581ac_cs_version="\\
cristy29eb34e2011-10-16 00:46:08 +000036582ImageMagick config.status 7.0.0-0
cristy14fefe52012-05-21 00:59:18 +000036583configured by $0, generated by GNU Autoconf 2.69,
cristycd4c5312009-11-22 01:19:08 +000036584 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000036585
cristy14fefe52012-05-21 00:59:18 +000036586Copyright (C) 2012 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000036587This config.status script is free software; the Free Software Foundation
36588gives unlimited permission to copy, distribute and modify it."
36589
36590ac_pwd='$ac_pwd'
36591srcdir='$srcdir'
36592INSTALL='$INSTALL'
cristy73bd4a52010-10-05 11:24:23 +000036593MKDIR_P='$MKDIR_P'
36594AWK='$AWK'
cristy3ed852e2009-09-05 21:47:34 +000036595test -n "\$AWK" || AWK=awk
36596_ACEOF
36597
36598cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36599# The default lists apply if the user does not specify any file.
36600ac_need_defaults=:
36601while test $# != 0
36602do
36603 case $1 in
cristyda16f162011-02-19 23:52:17 +000036604 --*=?*)
cristy3ed852e2009-09-05 21:47:34 +000036605 ac_option=`expr "X$1" : 'X\([^=]*\)='`
36606 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
36607 ac_shift=:
36608 ;;
cristyda16f162011-02-19 23:52:17 +000036609 --*=)
36610 ac_option=`expr "X$1" : 'X\([^=]*\)='`
36611 ac_optarg=
36612 ac_shift=:
36613 ;;
cristy3ed852e2009-09-05 21:47:34 +000036614 *)
36615 ac_option=$1
36616 ac_optarg=$2
36617 ac_shift=shift
36618 ;;
36619 esac
36620
36621 case $ac_option in
36622 # Handling of the options.
36623 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
36624 ac_cs_recheck=: ;;
36625 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
36626 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000036627 --config | --confi | --conf | --con | --co | --c )
36628 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000036629 --debug | --debu | --deb | --de | --d | -d )
36630 debug=: ;;
36631 --file | --fil | --fi | --f )
36632 $ac_shift
36633 case $ac_optarg in
36634 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
cristyda16f162011-02-19 23:52:17 +000036635 '') as_fn_error $? "missing file argument" ;;
cristy3ed852e2009-09-05 21:47:34 +000036636 esac
cristy8b350f62009-11-15 23:12:43 +000036637 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000036638 ac_need_defaults=false;;
36639 --header | --heade | --head | --hea )
36640 $ac_shift
36641 case $ac_optarg in
36642 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
36643 esac
cristy8b350f62009-11-15 23:12:43 +000036644 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000036645 ac_need_defaults=false;;
36646 --he | --h)
36647 # Conflict between --help and --header
cristy98dddb52010-11-04 00:30:15 +000036648 as_fn_error $? "ambiguous option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000036649Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000036650 --help | --hel | -h )
36651 $as_echo "$ac_cs_usage"; exit ;;
36652 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
36653 | -silent | --silent | --silen | --sile | --sil | --si | --s)
36654 ac_cs_silent=: ;;
36655
36656 # This is an error.
cristy98dddb52010-11-04 00:30:15 +000036657 -*) as_fn_error $? "unrecognized option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000036658Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000036659
cristy8b350f62009-11-15 23:12:43 +000036660 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000036661 ac_need_defaults=false ;;
36662
36663 esac
36664 shift
36665done
36666
36667ac_configure_extra_args=
36668
36669if $ac_cs_silent; then
36670 exec 6>/dev/null
36671 ac_configure_extra_args="$ac_configure_extra_args --silent"
36672fi
36673
36674_ACEOF
36675cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36676if \$ac_cs_recheck; then
cristy14fefe52012-05-21 00:59:18 +000036677 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
cristy3ed852e2009-09-05 21:47:34 +000036678 shift
36679 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
36680 CONFIG_SHELL='$SHELL'
36681 export CONFIG_SHELL
36682 exec "\$@"
36683fi
36684
36685_ACEOF
36686cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36687exec 5>>config.log
36688{
36689 echo
36690 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
36691## Running $as_me. ##
36692_ASBOX
36693 $as_echo "$ac_log"
36694} >&5
36695
36696_ACEOF
36697cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristy73bd4a52010-10-05 11:24:23 +000036698#
36699# INIT-COMMANDS
36700#
36701PACKAGE="$PACKAGE"
36702AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
36703
36704
36705# The HP-UX ksh and POSIX shell print the target directory to stdout
36706# if CDPATH is set.
36707(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36708
36709sed_quote_subst='$sed_quote_subst'
36710double_quote_subst='$double_quote_subst'
36711delay_variable_subst='$delay_variable_subst'
cristy0c60a692010-11-04 01:09:47 +000036712SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
36713Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
36714GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
36715EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
36716FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
36717SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
36718ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
36719LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
36720macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
36721macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
36722AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
36723DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
36724OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
36725enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
36726enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
36727pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
36728enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
cristy99bd5232011-12-07 14:38:20 +000036729PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036730host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
36731host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
36732host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
36733build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
36734build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
36735build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
36736NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
36737LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
36738max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
36739ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
36740exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
36741lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
36742lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
36743lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036744lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
36745lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036746reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
36747reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
36748deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
36749file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036750file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
36751want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
36752sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036753AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
36754AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036755archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036756STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
36757RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
36758old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36759old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36760old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
36761lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
36762CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
36763CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
36764compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
36765GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
36766lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
36767lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
36768lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
36769lt_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 +000036770nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
36771lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036772objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
36773MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
36774lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036775lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036776lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036777lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
36778lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
36779need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036780MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036781DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
36782NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
36783LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
36784OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
36785OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
36786libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
36787shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
36788extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36789archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
36790enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
36791export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
36792whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
36793compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
36794old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
36795old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36796archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
36797archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36798module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
36799module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36800with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
36801allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
36802no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
36803hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036804hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
36805hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
36806hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
36807hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
36808hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
36809hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
36810inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
36811link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036812always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
36813export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
36814exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
36815include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
36816prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036817postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036818file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
36819variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
36820need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
36821need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
36822version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
36823runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
36824shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
36825shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
36826libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
36827library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
36828soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
36829install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
36830postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36831postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36832finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
36833finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
36834hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
36835sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
36836sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
36837hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
36838enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
36839enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
36840enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
36841old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
36842striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
36843compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
36844predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
36845postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
36846predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
36847postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
36848compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
36849LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
36850reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
36851reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36852old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36853compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
36854GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
36855lt_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 +000036856lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036857lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036858lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
36859lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
36860archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
36861enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
36862export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36863whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36864compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
36865old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36866old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36867archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36868archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36869module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36870module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36871with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
36872allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
36873no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
36874hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036875hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
36876hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
36877hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
36878hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
36879hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
36880hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
36881inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
36882link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036883always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
36884export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36885exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
36886include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
36887prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036888postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036889file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
36890hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
36891compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
36892predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
36893postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
36894predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
36895postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
36896compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
cristy73bd4a52010-10-05 11:24:23 +000036897
36898LTCC='$LTCC'
36899LTCFLAGS='$LTCFLAGS'
36900compiler='$compiler_DEFAULT'
36901
cristy0c60a692010-11-04 01:09:47 +000036902# A function that is used when there is no print builtin or printf.
36903func_fallback_echo ()
36904{
36905 eval 'cat <<_LTECHO_EOF
36906\$1
36907_LTECHO_EOF'
36908}
36909
cristy73bd4a52010-10-05 11:24:23 +000036910# Quote evaled strings.
36911for var in SED \
36912GREP \
36913EGREP \
36914FGREP \
cristy0c60a692010-11-04 01:09:47 +000036915SHELL \
36916ECHO \
cristy73bd4a52010-10-05 11:24:23 +000036917LD \
cristy0c60a692010-11-04 01:09:47 +000036918AS \
36919DLLTOOL \
36920OBJDUMP \
cristy99bd5232011-12-07 14:38:20 +000036921PATH_SEPARATOR \
cristy73bd4a52010-10-05 11:24:23 +000036922NM \
36923LN_S \
36924lt_SP2NL \
36925lt_NL2SP \
36926reload_flag \
36927deplibs_check_method \
36928file_magic_cmd \
cristyda16f162011-02-19 23:52:17 +000036929file_magic_glob \
36930want_nocaseglob \
36931sharedlib_from_linklib_cmd \
cristy73bd4a52010-10-05 11:24:23 +000036932AR \
36933AR_FLAGS \
cristyda16f162011-02-19 23:52:17 +000036934archiver_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000036935STRIP \
36936RANLIB \
36937CC \
36938CFLAGS \
36939compiler \
36940lt_cv_sys_global_symbol_pipe \
36941lt_cv_sys_global_symbol_to_cdecl \
36942lt_cv_sys_global_symbol_to_c_name_address \
36943lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cristyda16f162011-02-19 23:52:17 +000036944nm_file_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000036945lt_prog_compiler_no_builtin_flag \
cristy73bd4a52010-10-05 11:24:23 +000036946lt_prog_compiler_pic \
cristyda16f162011-02-19 23:52:17 +000036947lt_prog_compiler_wl \
cristy73bd4a52010-10-05 11:24:23 +000036948lt_prog_compiler_static \
36949lt_cv_prog_compiler_c_o \
36950need_locks \
cristyda16f162011-02-19 23:52:17 +000036951MANIFEST_TOOL \
cristy73bd4a52010-10-05 11:24:23 +000036952DSYMUTIL \
36953NMEDIT \
36954LIPO \
36955OTOOL \
36956OTOOL64 \
36957shrext_cmds \
36958export_dynamic_flag_spec \
36959whole_archive_flag_spec \
36960compiler_needs_object \
36961with_gnu_ld \
36962allow_undefined_flag \
36963no_undefined_flag \
36964hardcode_libdir_flag_spec \
cristy73bd4a52010-10-05 11:24:23 +000036965hardcode_libdir_separator \
cristy73bd4a52010-10-05 11:24:23 +000036966exclude_expsyms \
36967include_expsyms \
36968file_list_spec \
36969variables_saved_for_relink \
36970libname_spec \
36971library_names_spec \
36972soname_spec \
cristy0c60a692010-11-04 01:09:47 +000036973install_override_mode \
cristy73bd4a52010-10-05 11:24:23 +000036974finish_eval \
36975old_striplib \
36976striplib \
36977compiler_lib_search_dirs \
36978predep_objects \
36979postdep_objects \
36980predeps \
36981postdeps \
36982compiler_lib_search_path \
36983LD_CXX \
cristy0c60a692010-11-04 01:09:47 +000036984reload_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036985compiler_CXX \
36986lt_prog_compiler_no_builtin_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036987lt_prog_compiler_pic_CXX \
cristyda16f162011-02-19 23:52:17 +000036988lt_prog_compiler_wl_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036989lt_prog_compiler_static_CXX \
36990lt_cv_prog_compiler_c_o_CXX \
36991export_dynamic_flag_spec_CXX \
36992whole_archive_flag_spec_CXX \
36993compiler_needs_object_CXX \
36994with_gnu_ld_CXX \
36995allow_undefined_flag_CXX \
36996no_undefined_flag_CXX \
36997hardcode_libdir_flag_spec_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036998hardcode_libdir_separator_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036999exclude_expsyms_CXX \
37000include_expsyms_CXX \
37001file_list_spec_CXX \
37002compiler_lib_search_dirs_CXX \
37003predep_objects_CXX \
37004postdep_objects_CXX \
37005predeps_CXX \
37006postdeps_CXX \
37007compiler_lib_search_path_CXX; do
cristy0c60a692010-11-04 01:09:47 +000037008 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000037009 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000037010 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000037011 ;;
37012 *)
37013 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
37014 ;;
37015 esac
37016done
37017
37018# Double-quote double-evaled strings.
37019for var in reload_cmds \
37020old_postinstall_cmds \
37021old_postuninstall_cmds \
37022old_archive_cmds \
37023extract_expsyms_cmds \
37024old_archive_from_new_cmds \
37025old_archive_from_expsyms_cmds \
37026archive_cmds \
37027archive_expsym_cmds \
37028module_cmds \
37029module_expsym_cmds \
37030export_symbols_cmds \
37031prelink_cmds \
cristyda16f162011-02-19 23:52:17 +000037032postlink_cmds \
cristy73bd4a52010-10-05 11:24:23 +000037033postinstall_cmds \
37034postuninstall_cmds \
37035finish_cmds \
37036sys_lib_search_path_spec \
37037sys_lib_dlsearch_path_spec \
cristy0c60a692010-11-04 01:09:47 +000037038reload_cmds_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037039old_archive_cmds_CXX \
37040old_archive_from_new_cmds_CXX \
37041old_archive_from_expsyms_cmds_CXX \
37042archive_cmds_CXX \
37043archive_expsym_cmds_CXX \
37044module_cmds_CXX \
37045module_expsym_cmds_CXX \
37046export_symbols_cmds_CXX \
cristyda16f162011-02-19 23:52:17 +000037047prelink_cmds_CXX \
37048postlink_cmds_CXX; do
cristy0c60a692010-11-04 01:09:47 +000037049 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000037050 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000037051 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000037052 ;;
37053 *)
37054 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
37055 ;;
37056 esac
37057done
37058
cristy73bd4a52010-10-05 11:24:23 +000037059ac_aux_dir='$ac_aux_dir'
37060xsi_shell='$xsi_shell'
37061lt_shell_append='$lt_shell_append'
37062
37063# See if we are running on zsh, and set the options which allow our
37064# commands through without removal of \ escapes INIT.
37065if test -n "\${ZSH_VERSION+set}" ; then
37066 setopt NO_GLOB_SUBST
37067fi
37068
37069
37070 PACKAGE='$PACKAGE'
37071 VERSION='$VERSION'
37072 TIMESTAMP='$TIMESTAMP'
37073 RM='$RM'
37074 ofile='$ofile'
37075
37076
37077
37078
37079
37080
cristy3ed852e2009-09-05 21:47:34 +000037081_ACEOF
37082
37083cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37084
37085# Handling of arguments.
37086for ac_config_target in $ac_config_targets
37087do
37088 case $ac_config_target in
37089 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
cristy01ff9f32012-12-01 18:15:29 +000037090 "MagickCore/magick-baseconfig.h") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore/magick-baseconfig.h" ;;
cristy9af1cbf2014-12-28 22:03:09 +000037091 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
37092 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
37093 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
37094 "magick.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS magick.sh.in" ;;
37095 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
37096 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
37097 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
37098 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
cristy305c5dd2012-09-13 00:30:13 +000037099 "common.shi") CONFIG_FILES="$CONFIG_FILES common.shi" ;;
cristy3ed852e2009-09-05 21:47:34 +000037100 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
37101 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
37102 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
37103 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
37104 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
cristy2df32802012-09-17 01:15:28 +000037105 "config/Magick++.dox") CONFIG_FILES="$CONFIG_FILES config/Magick++.dox" ;;
cristy5a3dc992014-12-05 19:50:04 +000037106 "config/type-apple.xml") CONFIG_FILES="$CONFIG_FILES config/type-apple.xml" ;;
cristy430a7312010-01-21 20:44:04 +000037107 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
cristy3ed852e2009-09-05 21:47:34 +000037108 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
37109 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
37110 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
37111 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
37112 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
cristy4c08aed2011-07-01 19:47:50 +000037113 "MagickCore/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/ImageMagick.pc" ;;
cristy3ed852e2009-09-05 21:47:34 +000037114 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
cristy4c08aed2011-07-01 19:47:50 +000037115 "MagickCore/MagickCore-config") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore-config" ;;
37116 "MagickCore/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore.pc" ;;
37117 "MagickCore/version.h") CONFIG_FILES="$CONFIG_FILES MagickCore/version.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000037118 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
37119 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
cristy3ed852e2009-09-05 21:47:34 +000037120 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
cristy8d0ff762013-03-10 20:33:28 +000037121 "PerlMagick/default/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/default/Magick.pm" ;;
cristy3e049f82013-02-13 13:26:53 +000037122 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
cristy8d0ff762013-03-10 20:33:28 +000037123 "PerlMagick/default/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/default/Makefile.PL" ;;
cristycf0cbcc2013-02-13 23:32:58 +000037124 "PerlMagick/quantum/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/Makefile.PL" ;;
37125 "PerlMagick/quantum/quantum.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/quantum.pm" ;;
37126 "PerlMagick/quantum/quantum.xs") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/quantum.xs" ;;
37127 "PerlMagick/quantum/typemap") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/typemap" ;;
cristy3ed852e2009-09-05 21:47:34 +000037128 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
37129 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
37130 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
37131 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
37132 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
37133 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
37134 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
37135 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
37136 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
37137 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
37138 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
37139 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
cristy4c08aed2011-07-01 19:47:50 +000037140 "MagickWand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand-config" ;;
37141 "MagickWand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand.pc" ;;
cristy3ed852e2009-09-05 21:47:34 +000037142
cristy98dddb52010-11-04 00:30:15 +000037143 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037144 esac
37145done
37146
37147
37148# If the user did not use the arguments to specify the items to instantiate,
37149# then the envvar interface is used. Set only those that are not.
37150# We use the long form for the default assignment because of an extremely
37151# bizarre bug on SunOS 4.1.3.
37152if $ac_need_defaults; then
37153 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
37154 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
37155 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
37156fi
37157
37158# Have a temporary directory for convenience. Make it in the build tree
37159# simply because there is no reason against having it here, and in addition,
37160# creating and moving files from /tmp can sometimes cause problems.
37161# Hook for its removal unless debugging.
37162# Note that there is a small window in which the directory will not be cleaned:
37163# after its creation but before its name has been assigned to `$tmp'.
37164$debug ||
37165{
cristyda16f162011-02-19 23:52:17 +000037166 tmp= ac_tmp=
cristy3ed852e2009-09-05 21:47:34 +000037167 trap 'exit_status=$?
cristyda16f162011-02-19 23:52:17 +000037168 : "${ac_tmp:=$tmp}"
37169 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
cristy3ed852e2009-09-05 21:47:34 +000037170' 0
cristy8b350f62009-11-15 23:12:43 +000037171 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000037172}
37173# Create a (secure) tmp directory for tmp files.
37174
37175{
37176 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
cristyda16f162011-02-19 23:52:17 +000037177 test -d "$tmp"
cristy3ed852e2009-09-05 21:47:34 +000037178} ||
37179{
37180 tmp=./conf$$-$RANDOM
37181 (umask 077 && mkdir "$tmp")
cristy98dddb52010-11-04 00:30:15 +000037182} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000037183ac_tmp=$tmp
cristy3ed852e2009-09-05 21:47:34 +000037184
37185# Set up the scripts for CONFIG_FILES section.
37186# No need to generate them if there are no CONFIG_FILES.
37187# This happens for instance with `./config.status config.h'.
37188if test -n "$CONFIG_FILES"; then
37189
37190
cristy8b350f62009-11-15 23:12:43 +000037191ac_cr=`echo X | tr X '\015'`
37192# On cygwin, bash can eat \r inside `` if the user requested igncr.
37193# But we know of no other shell where ac_cr would be empty at this
37194# point, so we can use a bashism as a fallback.
37195if test "x$ac_cr" = x; then
37196 eval ac_cr=\$\'\\r\'
37197fi
cristy3ed852e2009-09-05 21:47:34 +000037198ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
37199if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristy98dddb52010-11-04 00:30:15 +000037200 ac_cs_awk_cr='\\r'
cristy3ed852e2009-09-05 21:47:34 +000037201else
37202 ac_cs_awk_cr=$ac_cr
37203fi
37204
cristyda16f162011-02-19 23:52:17 +000037205echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
cristy3ed852e2009-09-05 21:47:34 +000037206_ACEOF
37207
37208
37209{
37210 echo "cat >conf$$subs.awk <<_ACEOF" &&
37211 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
37212 echo "_ACEOF"
37213} >conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000037214 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
37215ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
cristy3ed852e2009-09-05 21:47:34 +000037216ac_delim='%!_!# '
37217for ac_last_try in false false false false false :; do
37218 . ./conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000037219 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037220
37221 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
37222 if test $ac_delim_n = $ac_delim_num; then
37223 break
37224 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000037225 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037226 else
37227 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
37228 fi
37229done
37230rm -f conf$$subs.sh
37231
37232cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristyda16f162011-02-19 23:52:17 +000037233cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000037234_ACEOF
37235sed -n '
37236h
37237s/^/S["/; s/!.*/"]=/
37238p
37239g
37240s/^[^!]*!//
37241:repl
37242t repl
37243s/'"$ac_delim"'$//
37244t delim
37245:nl
37246h
cristycd4c5312009-11-22 01:19:08 +000037247s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000037248t more1
37249s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
37250p
37251n
37252b repl
37253:more1
37254s/["\\]/\\&/g; s/^/"/; s/$/"\\/
37255p
37256g
37257s/.\{148\}//
37258t nl
37259:delim
37260h
cristycd4c5312009-11-22 01:19:08 +000037261s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000037262t more2
37263s/["\\]/\\&/g; s/^/"/; s/$/"/
37264p
37265b
37266:more2
37267s/["\\]/\\&/g; s/^/"/; s/$/"\\/
37268p
37269g
37270s/.\{148\}//
37271t delim
37272' <conf$$subs.awk | sed '
37273/^[^""]/{
37274 N
37275 s/\n//
37276}
37277' >>$CONFIG_STATUS || ac_write_fail=1
37278rm -f conf$$subs.awk
37279cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37280_ACAWK
cristyda16f162011-02-19 23:52:17 +000037281cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000037282 for (key in S) S_is_set[key] = 1
37283 FS = ""
37284
37285}
37286{
37287 line = $ 0
37288 nfields = split(line, field, "@")
37289 substed = 0
37290 len = length(field[1])
37291 for (i = 2; i < nfields; i++) {
37292 key = field[i]
37293 keylen = length(key)
37294 if (S_is_set[key]) {
37295 value = S[key]
37296 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
37297 len += length(value) + length(field[++i])
37298 substed = 1
37299 } else
37300 len += 1 + keylen
37301 }
37302
37303 print line
37304}
37305
37306_ACAWK
37307_ACEOF
37308cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37309if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
37310 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
37311else
37312 cat
cristyda16f162011-02-19 23:52:17 +000037313fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
cristy98dddb52010-11-04 00:30:15 +000037314 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037315_ACEOF
37316
cristy98dddb52010-11-04 00:30:15 +000037317# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
37318# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
cristy3ed852e2009-09-05 21:47:34 +000037319# trailing colons and then remove the whole line if VPATH becomes empty
37320# (actually we leave an empty line to preserve line numbers).
37321if test "x$srcdir" = x.; then
cristy98dddb52010-11-04 00:30:15 +000037322 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
37323h
37324s///
37325s/^/:/
37326s/[ ]*$/:/
37327s/:\$(srcdir):/:/g
37328s/:\${srcdir}:/:/g
37329s/:@srcdir@:/:/g
37330s/^:*//
cristy3ed852e2009-09-05 21:47:34 +000037331s/:*$//
cristy98dddb52010-11-04 00:30:15 +000037332x
37333s/\(=[ ]*\).*/\1/
37334G
37335s/\n//
cristy3ed852e2009-09-05 21:47:34 +000037336s/^[^=]*=[ ]*$//
37337}'
37338fi
37339
37340cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37341fi # test -n "$CONFIG_FILES"
37342
37343# Set up the scripts for CONFIG_HEADERS section.
37344# No need to generate them if there are no CONFIG_HEADERS.
37345# This happens for instance with `./config.status Makefile'.
37346if test -n "$CONFIG_HEADERS"; then
cristyda16f162011-02-19 23:52:17 +000037347cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
cristy3ed852e2009-09-05 21:47:34 +000037348BEGIN {
37349_ACEOF
37350
37351# Transform confdefs.h into an awk script `defines.awk', embedded as
37352# here-document in config.status, that substitutes the proper values into
37353# config.h.in to produce config.h.
37354
37355# Create a delimiter string that does not exist in confdefs.h, to ease
37356# handling of long lines.
37357ac_delim='%!_!# '
37358for ac_last_try in false false :; do
cristyda16f162011-02-19 23:52:17 +000037359 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
37360 if test -z "$ac_tt"; then
cristy3ed852e2009-09-05 21:47:34 +000037361 break
37362 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000037363 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037364 else
37365 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
37366 fi
37367done
37368
37369# For the awk script, D is an array of macro values keyed by name,
37370# likewise P contains macro parameters if any. Preserve backslash
37371# newline sequences.
37372
37373ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
37374sed -n '
37375s/.\{148\}/&'"$ac_delim"'/g
37376t rset
37377:rset
37378s/^[ ]*#[ ]*define[ ][ ]*/ /
37379t def
37380d
37381:def
37382s/\\$//
37383t bsnl
37384s/["\\]/\\&/g
37385s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
37386D["\1"]=" \3"/p
37387s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
37388d
37389:bsnl
37390s/["\\]/\\&/g
37391s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
37392D["\1"]=" \3\\\\\\n"\\/p
37393t cont
37394s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
37395t cont
37396d
37397:cont
37398n
37399s/.\{148\}/&'"$ac_delim"'/g
37400t clear
37401:clear
37402s/\\$//
37403t bsnlc
37404s/["\\]/\\&/g; s/^/"/; s/$/"/p
37405d
37406:bsnlc
37407s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
37408b cont
37409' <confdefs.h | sed '
37410s/'"$ac_delim"'/"\\\
37411"/g' >>$CONFIG_STATUS || ac_write_fail=1
37412
37413cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37414 for (key in D) D_is_set[key] = 1
37415 FS = ""
37416}
37417/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
37418 line = \$ 0
37419 split(line, arg, " ")
37420 if (arg[1] == "#") {
37421 defundef = arg[2]
37422 mac1 = arg[3]
37423 } else {
37424 defundef = substr(arg[1], 2)
37425 mac1 = arg[2]
37426 }
37427 split(mac1, mac2, "(") #)
37428 macro = mac2[1]
37429 prefix = substr(line, 1, index(line, defundef) - 1)
37430 if (D_is_set[macro]) {
37431 # Preserve the white space surrounding the "#".
37432 print prefix "define", macro P[macro] D[macro]
37433 next
37434 } else {
37435 # Replace #undef with comments. This is necessary, for example,
37436 # in the case of _POSIX_SOURCE, which is predefined and required
37437 # on some systems where configure will not decide to define it.
37438 if (defundef == "undef") {
37439 print "/*", prefix defundef, macro, "*/"
37440 next
37441 }
37442 }
37443}
37444{ print }
37445_ACAWK
37446_ACEOF
37447cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristy98dddb52010-11-04 00:30:15 +000037448 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037449fi # test -n "$CONFIG_HEADERS"
37450
37451
37452eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
37453shift
37454for ac_tag
37455do
37456 case $ac_tag in
37457 :[FHLC]) ac_mode=$ac_tag; continue;;
37458 esac
37459 case $ac_mode$ac_tag in
37460 :[FHL]*:*);;
cristy98dddb52010-11-04 00:30:15 +000037461 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037462 :[FH]-) ac_tag=-:-;;
37463 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
37464 esac
37465 ac_save_IFS=$IFS
37466 IFS=:
37467 set x $ac_tag
37468 IFS=$ac_save_IFS
37469 shift
37470 ac_file=$1
37471 shift
37472
37473 case $ac_mode in
37474 :L) ac_source=$1;;
37475 :[FH])
37476 ac_file_inputs=
37477 for ac_f
37478 do
37479 case $ac_f in
cristyda16f162011-02-19 23:52:17 +000037480 -) ac_f="$ac_tmp/stdin";;
cristy3ed852e2009-09-05 21:47:34 +000037481 *) # Look for the file first in the build tree, then in the source tree
37482 # (if the path is not absolute). The absolute path cannot be DOS-style,
37483 # because $ac_f cannot contain `:'.
37484 test -f "$ac_f" ||
37485 case $ac_f in
37486 [\\/$]*) false;;
37487 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
37488 esac ||
cristy98dddb52010-11-04 00:30:15 +000037489 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037490 esac
37491 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000037492 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000037493 done
37494
37495 # Let's still pretend it is `configure' which instantiates (i.e., don't
37496 # use $as_me), people would be surprised to read:
37497 # /* config.h. Generated by config.status. */
37498 configure_input='Generated from '`
37499 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
37500 `' by configure.'
37501 if test x"$ac_file" != x-; then
37502 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000037503 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000037504$as_echo "$as_me: creating $ac_file" >&6;}
37505 fi
37506 # Neutralize special characters interpreted by sed in replacement strings.
37507 case $configure_input in #(
37508 *\&* | *\|* | *\\* )
37509 ac_sed_conf_input=`$as_echo "$configure_input" |
37510 sed 's/[\\\\&|]/\\\\&/g'`;; #(
37511 *) ac_sed_conf_input=$configure_input;;
37512 esac
37513
37514 case $ac_tag in
cristyda16f162011-02-19 23:52:17 +000037515 *:-:* | *:-) cat >"$ac_tmp/stdin" \
cristy98dddb52010-11-04 00:30:15 +000037516 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000037517 esac
37518 ;;
37519 esac
37520
37521 ac_dir=`$as_dirname -- "$ac_file" ||
37522$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37523 X"$ac_file" : 'X\(//\)[^/]' \| \
37524 X"$ac_file" : 'X\(//\)$' \| \
37525 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
37526$as_echo X"$ac_file" |
37527 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37528 s//\1/
37529 q
37530 }
37531 /^X\(\/\/\)[^/].*/{
37532 s//\1/
37533 q
37534 }
37535 /^X\(\/\/\)$/{
37536 s//\1/
37537 q
37538 }
37539 /^X\(\/\).*/{
37540 s//\1/
37541 q
37542 }
37543 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000037544 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000037545 ac_builddir=.
37546
37547case "$ac_dir" in
37548.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
37549*)
37550 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
37551 # A ".." for each directory in $ac_dir_suffix.
37552 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
37553 case $ac_top_builddir_sub in
37554 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
37555 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
37556 esac ;;
37557esac
37558ac_abs_top_builddir=$ac_pwd
37559ac_abs_builddir=$ac_pwd$ac_dir_suffix
37560# for backward compatibility:
37561ac_top_builddir=$ac_top_build_prefix
37562
37563case $srcdir in
37564 .) # We are building in place.
37565 ac_srcdir=.
37566 ac_top_srcdir=$ac_top_builddir_sub
37567 ac_abs_top_srcdir=$ac_pwd ;;
37568 [\\/]* | ?:[\\/]* ) # Absolute name.
37569 ac_srcdir=$srcdir$ac_dir_suffix;
37570 ac_top_srcdir=$srcdir
37571 ac_abs_top_srcdir=$srcdir ;;
37572 *) # Relative name.
37573 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
37574 ac_top_srcdir=$ac_top_build_prefix$srcdir
37575 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
37576esac
37577ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
37578
37579
37580 case $ac_mode in
37581 :F)
37582 #
37583 # CONFIG_FILE
37584 #
37585
37586 case $INSTALL in
37587 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
37588 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
37589 esac
cristy73bd4a52010-10-05 11:24:23 +000037590 ac_MKDIR_P=$MKDIR_P
37591 case $MKDIR_P in
37592 [\\/$]* | ?:[\\/]* ) ;;
37593 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
37594 esac
cristy3ed852e2009-09-05 21:47:34 +000037595_ACEOF
37596
37597cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37598# If the template does not know about datarootdir, expand it.
37599# FIXME: This hack should be removed a few years after 2.60.
37600ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000037601ac_sed_dataroot='
37602/datarootdir/ {
37603 p
37604 q
37605}
37606/@datadir@/p
37607/@docdir@/p
37608/@infodir@/p
37609/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000037610/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000037611case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
37612*datarootdir*) ac_datarootdir_seen=yes;;
37613*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000037614 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000037615$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
37616_ACEOF
37617cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37618 ac_datarootdir_hack='
37619 s&@datadir@&$datadir&g
37620 s&@docdir@&$docdir&g
37621 s&@infodir@&$infodir&g
37622 s&@localedir@&$localedir&g
37623 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000037624 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000037625esac
37626_ACEOF
37627
37628# Neutralize VPATH when `$srcdir' = `.'.
37629# Shell code in configure.ac might set extrasub.
37630# FIXME: do we really want to maintain this feature?
37631cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37632ac_sed_extra="$ac_vpsub
37633$extrasub
37634_ACEOF
37635cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37636:t
37637/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
37638s|@configure_input@|$ac_sed_conf_input|;t t
37639s&@top_builddir@&$ac_top_builddir_sub&;t t
37640s&@top_build_prefix@&$ac_top_build_prefix&;t t
37641s&@srcdir@&$ac_srcdir&;t t
37642s&@abs_srcdir@&$ac_abs_srcdir&;t t
37643s&@top_srcdir@&$ac_top_srcdir&;t t
37644s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
37645s&@builddir@&$ac_builddir&;t t
37646s&@abs_builddir@&$ac_abs_builddir&;t t
37647s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
37648s&@INSTALL@&$ac_INSTALL&;t t
cristy73bd4a52010-10-05 11:24:23 +000037649s&@MKDIR_P@&$ac_MKDIR_P&;t t
cristy3ed852e2009-09-05 21:47:34 +000037650$ac_datarootdir_hack
37651"
cristyda16f162011-02-19 23:52:17 +000037652eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
37653 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037654
37655test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
cristyda16f162011-02-19 23:52:17 +000037656 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
37657 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
37658 "$ac_tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000037659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000037660which seems to be undefined. Please make sure it is defined" >&5
cristy3ed852e2009-09-05 21:47:34 +000037661$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000037662which seems to be undefined. Please make sure it is defined" >&2;}
cristy3ed852e2009-09-05 21:47:34 +000037663
cristyda16f162011-02-19 23:52:17 +000037664 rm -f "$ac_tmp/stdin"
cristy3ed852e2009-09-05 21:47:34 +000037665 case $ac_file in
cristyda16f162011-02-19 23:52:17 +000037666 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
37667 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
cristy3ed852e2009-09-05 21:47:34 +000037668 esac \
cristy98dddb52010-11-04 00:30:15 +000037669 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037670 ;;
37671 :H)
37672 #
37673 # CONFIG_HEADER
37674 #
37675 if test x"$ac_file" != x-; then
37676 {
37677 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000037678 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
37679 } >"$ac_tmp/config.h" \
cristy98dddb52010-11-04 00:30:15 +000037680 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000037681 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000037682 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000037683$as_echo "$as_me: $ac_file is unchanged" >&6;}
37684 else
37685 rm -f "$ac_file"
cristyda16f162011-02-19 23:52:17 +000037686 mv "$ac_tmp/config.h" "$ac_file" \
cristy98dddb52010-11-04 00:30:15 +000037687 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037688 fi
37689 else
37690 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000037691 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
cristy98dddb52010-11-04 00:30:15 +000037692 || as_fn_error $? "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037693 fi
cristy73bd4a52010-10-05 11:24:23 +000037694# Compute "$ac_file"'s index in $config_headers.
37695_am_arg="$ac_file"
37696_am_stamp_count=1
37697for _am_header in $config_headers :; do
37698 case $_am_header in
37699 $_am_arg | $_am_arg:* )
37700 break ;;
37701 * )
37702 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
37703 esac
37704done
37705echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
37706$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37707 X"$_am_arg" : 'X\(//\)[^/]' \| \
37708 X"$_am_arg" : 'X\(//\)$' \| \
37709 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
37710$as_echo X"$_am_arg" |
37711 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37712 s//\1/
37713 q
37714 }
37715 /^X\(\/\/\)[^/].*/{
37716 s//\1/
37717 q
37718 }
37719 /^X\(\/\/\)$/{
37720 s//\1/
37721 q
37722 }
37723 /^X\(\/\).*/{
37724 s//\1/
37725 q
37726 }
37727 s/.*/./; q'`/stamp-h$_am_stamp_count
cristy3ed852e2009-09-05 21:47:34 +000037728 ;;
37729
cristy8b350f62009-11-15 23:12:43 +000037730 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000037731$as_echo "$as_me: executing $ac_file commands" >&6;}
37732 ;;
37733 esac
37734
37735
37736 case $ac_file$ac_mode in
cristy01ff9f32012-12-01 18:15:29 +000037737 "MagickCore/magick-baseconfig.h":C) ac_prefix_conf_OUT=`echo MagickCore/magick-baseconfig.h`
cristy73bd4a52010-10-05 11:24:23 +000037738ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
37739ac_prefix_conf_PKG=`echo MagickCore`
37740ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
37741ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
37742ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
37743if test ".$ac_prefix_conf_INP" = "."; then
37744 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
37745 case "$ac_file" in
37746 *.h) ac_prefix_conf_INP=$ac_file ;;
37747 *)
37748 esac
37749 test ".$ac_prefix_conf_INP" != "." && break
37750 done
37751fi
37752if test ".$ac_prefix_conf_INP" = "."; then
37753 case "$ac_prefix_conf_OUT" in
37754 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
37755 ;;
37756 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
37757 ;;
37758 *) ac_prefix_conf_INP=config.h
37759 ;;
37760 esac
37761fi
37762if test -z "$ac_prefix_conf_PKG" ; then
cristy98dddb52010-11-04 00:30:15 +000037763 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000037764else
37765 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
37766 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
37767 fi fi
37768 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
37769$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
37770 if test -f $ac_prefix_conf_INP ; then
cristy24fc1fe2010-10-23 21:13:01 +000037771 $as_echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
37772 $as_echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
37773 $as_echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
37774 $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
37775 $as_echo "#endif/" >> conftest.prefix
37776 $as_echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
37777 $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
37778 $as_echo "#endif/" >> conftest.prefix
cristy73bd4a52010-10-05 11:24:23 +000037779 # now executing _script on _DEF input to create _OUT output file
37780 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
37781 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
37782 echo ' ' >>$tmp/pconfig.h
37783 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
37784
37785 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
37786 echo ' ' >>$tmp/pconfig.h
37787 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
37788 echo "#endif" >>$tmp/pconfig.h
37789 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
37790 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
37791$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
37792 else
37793 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
37794$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37795 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
37796 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
37797 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
37798$as_echo X"$ac_prefix_conf_OUT" |
37799 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37800 s//\1/
37801 q
37802 }
37803 /^X\(\/\/\)[^/].*/{
37804 s//\1/
37805 q
37806 }
37807 /^X\(\/\/\)$/{
37808 s//\1/
37809 q
37810 }
37811 /^X\(\/\).*/{
37812 s//\1/
37813 q
37814 }
37815 s/.*/./; q'`
37816 as_dir="$ac_dir"; as_fn_mkdir_p
37817 rm -f "$ac_prefix_conf_OUT"
37818 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
37819 fi
cristy73bd4a52010-10-05 11:24:23 +000037820 else
cristy98dddb52010-11-04 00:30:15 +000037821 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 +000037822 fi
37823 rm -f conftest.*
37824fi
37825 ;;
37826 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
cristy58d34aa2013-01-24 15:11:54 +000037827 # Older Autoconf quotes --file arguments for eval, but not when files
cristy73bd4a52010-10-05 11:24:23 +000037828 # are listed without --file. Let's play safe and only enable the eval
37829 # if we detect the quoting.
37830 case $CONFIG_FILES in
37831 *\'*) eval set x "$CONFIG_FILES" ;;
37832 *) set x $CONFIG_FILES ;;
37833 esac
37834 shift
37835 for mf
37836 do
37837 # Strip MF so we end up with the name of the file.
37838 mf=`echo "$mf" | sed -e 's/:.*$//'`
37839 # Check whether this is an Automake generated Makefile or not.
cristyc0890a62012-07-19 00:18:20 +000037840 # We used to match only the files named 'Makefile.in', but
cristy73bd4a52010-10-05 11:24:23 +000037841 # some people rename them; so instead we look at the file content.
37842 # Grep'ing the first line is not enough: some people post-process
37843 # each Makefile.in and add a new line on top of each file to say so.
37844 # Grep'ing the whole file is not good either: AIX grep has a line
37845 # limit of 2048, but all sed's we know have understand at least 4000.
37846 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
37847 dirpart=`$as_dirname -- "$mf" ||
37848$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37849 X"$mf" : 'X\(//\)[^/]' \| \
37850 X"$mf" : 'X\(//\)$' \| \
37851 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
37852$as_echo X"$mf" |
37853 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37854 s//\1/
37855 q
37856 }
37857 /^X\(\/\/\)[^/].*/{
37858 s//\1/
37859 q
37860 }
37861 /^X\(\/\/\)$/{
37862 s//\1/
37863 q
37864 }
37865 /^X\(\/\).*/{
37866 s//\1/
37867 q
37868 }
37869 s/.*/./; q'`
37870 else
37871 continue
37872 fi
37873 # Extract the definition of DEPDIR, am__include, and am__quote
cristyc0890a62012-07-19 00:18:20 +000037874 # from the Makefile without running 'make'.
cristy73bd4a52010-10-05 11:24:23 +000037875 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
37876 test -z "$DEPDIR" && continue
37877 am__include=`sed -n 's/^am__include = //p' < "$mf"`
cristybced8142013-05-31 01:23:57 +000037878 test -z "$am__include" && continue
cristy73bd4a52010-10-05 11:24:23 +000037879 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
cristy73bd4a52010-10-05 11:24:23 +000037880 # Find all dependency output files, they are included files with
37881 # $(DEPDIR) in their names. We invoke sed twice because it is the
37882 # simplest approach to changing $(DEPDIR) to its actual value in the
37883 # expansion.
37884 for file in `sed -n "
37885 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
cristyc0890a62012-07-19 00:18:20 +000037886 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
cristy73bd4a52010-10-05 11:24:23 +000037887 # Make sure the directory exists.
37888 test -f "$dirpart/$file" && continue
37889 fdir=`$as_dirname -- "$file" ||
37890$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37891 X"$file" : 'X\(//\)[^/]' \| \
37892 X"$file" : 'X\(//\)$' \| \
37893 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
37894$as_echo X"$file" |
37895 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37896 s//\1/
37897 q
37898 }
37899 /^X\(\/\/\)[^/].*/{
37900 s//\1/
37901 q
37902 }
37903 /^X\(\/\/\)$/{
37904 s//\1/
37905 q
37906 }
37907 /^X\(\/\).*/{
37908 s//\1/
37909 q
37910 }
37911 s/.*/./; q'`
37912 as_dir=$dirpart/$fdir; as_fn_mkdir_p
37913 # echo "creating $dirpart/$file"
37914 echo '# dummy' > "$dirpart/$file"
37915 done
37916 done
37917}
37918 ;;
37919 "libtool":C)
37920
37921 # See if we are running on zsh, and set the options which allow our
37922 # commands through without removal of \ escapes.
37923 if test -n "${ZSH_VERSION+set}" ; then
37924 setopt NO_GLOB_SUBST
37925 fi
37926
37927 cfgfile="${ofile}T"
37928 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
37929 $RM "$cfgfile"
37930
37931 cat <<_LT_EOF >> "$cfgfile"
37932#! $SHELL
37933
37934# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
37935# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
37936# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
37937# NOTE: Changes made to this file will be lost: look at ltmain.sh.
37938#
37939# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cristy99bd5232011-12-07 14:38:20 +000037940# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
37941# Foundation, Inc.
cristy73bd4a52010-10-05 11:24:23 +000037942# Written by Gordon Matzigkeit, 1996
37943#
37944# This file is part of GNU Libtool.
37945#
37946# GNU Libtool is free software; you can redistribute it and/or
37947# modify it under the terms of the GNU General Public License as
37948# published by the Free Software Foundation; either version 2 of
37949# the License, or (at your option) any later version.
37950#
37951# As a special exception to the GNU General Public License,
37952# if you distribute this file as part of a program or library that
37953# is built using GNU Libtool, you may include this file under the
37954# same distribution terms that you use for the rest of that program.
37955#
37956# GNU Libtool is distributed in the hope that it will be useful,
37957# but WITHOUT ANY WARRANTY; without even the implied warranty of
37958# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
37959# GNU General Public License for more details.
37960#
37961# You should have received a copy of the GNU General Public License
37962# along with GNU Libtool; see the file COPYING. If not, a copy
37963# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
37964# obtained by writing to the Free Software Foundation, Inc.,
37965# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
37966
37967
37968# The names of the tagged configurations supported by this script.
37969available_tags="CXX "
37970
37971# ### BEGIN LIBTOOL CONFIG
37972
37973# A sed program that does not truncate output.
37974SED=$lt_SED
37975
37976# Sed that helps us avoid accidentally triggering echo(1) options like -n.
37977Xsed="\$SED -e 1s/^X//"
37978
37979# A grep program that handles long lines.
37980GREP=$lt_GREP
37981
37982# An ERE matcher.
37983EGREP=$lt_EGREP
37984
37985# A literal string matcher.
37986FGREP=$lt_FGREP
37987
cristy0c60a692010-11-04 01:09:47 +000037988# Shell to use when invoking shell scripts.
37989SHELL=$lt_SHELL
37990
37991# An echo program that protects backslashes.
37992ECHO=$lt_ECHO
37993
cristy73bd4a52010-10-05 11:24:23 +000037994# Which release of libtool.m4 was used?
37995macro_version=$macro_version
37996macro_revision=$macro_revision
37997
37998# Assembler program.
cristy0c60a692010-11-04 01:09:47 +000037999AS=$lt_AS
cristy73bd4a52010-10-05 11:24:23 +000038000
38001# DLL creation program.
cristy0c60a692010-11-04 01:09:47 +000038002DLLTOOL=$lt_DLLTOOL
cristy73bd4a52010-10-05 11:24:23 +000038003
38004# Object dumper program.
cristy0c60a692010-11-04 01:09:47 +000038005OBJDUMP=$lt_OBJDUMP
cristy73bd4a52010-10-05 11:24:23 +000038006
38007# Whether or not to build shared libraries.
38008build_libtool_libs=$enable_shared
38009
38010# Whether or not to build static libraries.
38011build_old_libs=$enable_static
38012
38013# What type of objects to build.
38014pic_mode=$pic_mode
38015
38016# Whether or not to optimize for fast installation.
38017fast_install=$enable_fast_install
38018
cristy99bd5232011-12-07 14:38:20 +000038019# The PATH separator for the build system.
38020PATH_SEPARATOR=$lt_PATH_SEPARATOR
38021
cristy73bd4a52010-10-05 11:24:23 +000038022# The host system.
38023host_alias=$host_alias
38024host=$host
38025host_os=$host_os
38026
38027# The build system.
38028build_alias=$build_alias
38029build=$build
38030build_os=$build_os
38031
38032# A BSD- or MS-compatible name lister.
38033NM=$lt_NM
38034
38035# Whether we need soft or hard links.
38036LN_S=$lt_LN_S
38037
38038# What is the maximum length of a command?
38039max_cmd_len=$max_cmd_len
38040
38041# Object file suffix (normally "o").
38042objext=$ac_objext
38043
38044# Executable file suffix (normally "").
38045exeext=$exeext
38046
38047# whether the shell understands "unset".
38048lt_unset=$lt_unset
38049
38050# turn spaces into newlines.
38051SP2NL=$lt_lt_SP2NL
38052
38053# turn newlines into spaces.
38054NL2SP=$lt_lt_NL2SP
38055
cristyda16f162011-02-19 23:52:17 +000038056# convert \$build file names to \$host format.
38057to_host_file_cmd=$lt_cv_to_host_file_cmd
38058
38059# convert \$build files to toolchain format.
38060to_tool_file_cmd=$lt_cv_to_tool_file_cmd
38061
cristy73bd4a52010-10-05 11:24:23 +000038062# Method to check whether dependent libraries are shared objects.
38063deplibs_check_method=$lt_deplibs_check_method
38064
cristyda16f162011-02-19 23:52:17 +000038065# Command to use when deplibs_check_method = "file_magic".
cristy73bd4a52010-10-05 11:24:23 +000038066file_magic_cmd=$lt_file_magic_cmd
38067
cristyda16f162011-02-19 23:52:17 +000038068# How to find potential files when deplibs_check_method = "file_magic".
38069file_magic_glob=$lt_file_magic_glob
38070
38071# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
38072want_nocaseglob=$lt_want_nocaseglob
38073
38074# Command to associate shared and link libraries.
38075sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
38076
cristy73bd4a52010-10-05 11:24:23 +000038077# The archiver.
38078AR=$lt_AR
cristyda16f162011-02-19 23:52:17 +000038079
38080# Flags to create an archive.
cristy73bd4a52010-10-05 11:24:23 +000038081AR_FLAGS=$lt_AR_FLAGS
38082
cristyda16f162011-02-19 23:52:17 +000038083# How to feed a file listing to the archiver.
38084archiver_list_spec=$lt_archiver_list_spec
38085
cristy73bd4a52010-10-05 11:24:23 +000038086# A symbol stripping program.
38087STRIP=$lt_STRIP
38088
38089# Commands used to install an old-style archive.
38090RANLIB=$lt_RANLIB
38091old_postinstall_cmds=$lt_old_postinstall_cmds
38092old_postuninstall_cmds=$lt_old_postuninstall_cmds
38093
cristy0c60a692010-11-04 01:09:47 +000038094# Whether to use a lock for old archive extraction.
38095lock_old_archive_extraction=$lock_old_archive_extraction
38096
cristy73bd4a52010-10-05 11:24:23 +000038097# A C compiler.
38098LTCC=$lt_CC
38099
38100# LTCC compiler flags.
38101LTCFLAGS=$lt_CFLAGS
38102
38103# Take the output of nm and produce a listing of raw symbols and C names.
38104global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
38105
38106# Transform the output of nm in a proper C declaration.
38107global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
38108
38109# Transform the output of nm in a C name address pair.
38110global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
38111
38112# Transform the output of nm in a C name address pair when lib prefix is needed.
38113global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
38114
cristyda16f162011-02-19 23:52:17 +000038115# Specify filename containing input files for \$NM.
38116nm_file_list_spec=$lt_nm_file_list_spec
38117
38118# The root where to search for dependent libraries,and in which our libraries should be installed.
38119lt_sysroot=$lt_sysroot
38120
cristy73bd4a52010-10-05 11:24:23 +000038121# The name of the directory that contains temporary libtool files.
38122objdir=$objdir
38123
cristy73bd4a52010-10-05 11:24:23 +000038124# Used to examine libraries when file_magic_cmd begins with "file".
38125MAGIC_CMD=$MAGIC_CMD
38126
38127# Must we lock files when doing compilation?
38128need_locks=$lt_need_locks
38129
cristyda16f162011-02-19 23:52:17 +000038130# Manifest tool.
38131MANIFEST_TOOL=$lt_MANIFEST_TOOL
38132
cristy73bd4a52010-10-05 11:24:23 +000038133# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
38134DSYMUTIL=$lt_DSYMUTIL
38135
38136# Tool to change global to local symbols on Mac OS X.
38137NMEDIT=$lt_NMEDIT
38138
38139# Tool to manipulate fat objects and archives on Mac OS X.
38140LIPO=$lt_LIPO
38141
38142# ldd/readelf like tool for Mach-O binaries on Mac OS X.
38143OTOOL=$lt_OTOOL
38144
38145# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
38146OTOOL64=$lt_OTOOL64
38147
38148# Old archive suffix (normally "a").
38149libext=$libext
38150
38151# Shared library suffix (normally ".so").
38152shrext_cmds=$lt_shrext_cmds
38153
38154# The commands to extract the exported symbol list from a shared archive.
38155extract_expsyms_cmds=$lt_extract_expsyms_cmds
38156
38157# Variables whose values should be saved in libtool wrapper scripts and
38158# restored at link time.
38159variables_saved_for_relink=$lt_variables_saved_for_relink
38160
38161# Do we need the "lib" prefix for modules?
38162need_lib_prefix=$need_lib_prefix
38163
38164# Do we need a version for libraries?
38165need_version=$need_version
38166
38167# Library versioning type.
38168version_type=$version_type
38169
38170# Shared library runtime path variable.
38171runpath_var=$runpath_var
38172
38173# Shared library path variable.
38174shlibpath_var=$shlibpath_var
38175
38176# Is shlibpath searched before the hard-coded library search path?
38177shlibpath_overrides_runpath=$shlibpath_overrides_runpath
38178
38179# Format of library name prefix.
38180libname_spec=$lt_libname_spec
38181
38182# List of archive names. First name is the real one, the rest are links.
38183# The last name is the one that the linker finds with -lNAME
38184library_names_spec=$lt_library_names_spec
38185
38186# The coded name of the library, if different from the real name.
38187soname_spec=$lt_soname_spec
38188
cristy0c60a692010-11-04 01:09:47 +000038189# Permission mode override for installation of shared libraries.
38190install_override_mode=$lt_install_override_mode
38191
cristy73bd4a52010-10-05 11:24:23 +000038192# Command to use after installation of a shared archive.
38193postinstall_cmds=$lt_postinstall_cmds
38194
38195# Command to use after uninstallation of a shared archive.
38196postuninstall_cmds=$lt_postuninstall_cmds
38197
38198# Commands used to finish a libtool library installation in a directory.
38199finish_cmds=$lt_finish_cmds
38200
38201# As "finish_cmds", except a single script fragment to be evaled but
38202# not shown.
38203finish_eval=$lt_finish_eval
38204
38205# Whether we should hardcode library paths into libraries.
38206hardcode_into_libs=$hardcode_into_libs
38207
38208# Compile-time system search path for libraries.
38209sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
38210
38211# Run-time system search path for libraries.
38212sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
38213
38214# Whether dlopen is supported.
38215dlopen_support=$enable_dlopen
38216
38217# Whether dlopen of programs is supported.
38218dlopen_self=$enable_dlopen_self
38219
38220# Whether dlopen of statically linked programs is supported.
38221dlopen_self_static=$enable_dlopen_self_static
38222
38223# Commands to strip libraries.
38224old_striplib=$lt_old_striplib
38225striplib=$lt_striplib
38226
38227
38228# The linker used to build libraries.
38229LD=$lt_LD
38230
cristy0c60a692010-11-04 01:09:47 +000038231# How to create reloadable object files.
38232reload_flag=$lt_reload_flag
38233reload_cmds=$lt_reload_cmds
38234
cristy73bd4a52010-10-05 11:24:23 +000038235# Commands used to build an old-style archive.
38236old_archive_cmds=$lt_old_archive_cmds
38237
38238# A language specific compiler.
38239CC=$lt_compiler
38240
38241# Is the compiler the GNU compiler?
38242with_gcc=$GCC
38243
38244# Compiler flag to turn off builtin functions.
38245no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
38246
cristy73bd4a52010-10-05 11:24:23 +000038247# Additional compiler flags for building library objects.
38248pic_flag=$lt_lt_prog_compiler_pic
38249
cristyda16f162011-02-19 23:52:17 +000038250# How to pass a linker flag through the compiler.
38251wl=$lt_lt_prog_compiler_wl
38252
cristy73bd4a52010-10-05 11:24:23 +000038253# Compiler flag to prevent dynamic linking.
38254link_static_flag=$lt_lt_prog_compiler_static
38255
38256# Does compiler simultaneously support -c and -o options?
38257compiler_c_o=$lt_lt_cv_prog_compiler_c_o
38258
38259# Whether or not to add -lc for building shared libraries.
38260build_libtool_need_lc=$archive_cmds_need_lc
38261
38262# Whether or not to disallow shared libs when runtime libs are static.
38263allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
38264
38265# Compiler flag to allow reflexive dlopens.
38266export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
38267
38268# Compiler flag to generate shared objects directly from archives.
38269whole_archive_flag_spec=$lt_whole_archive_flag_spec
38270
38271# Whether the compiler copes with passing no objects directly.
38272compiler_needs_object=$lt_compiler_needs_object
38273
38274# Create an old-style archive from a shared archive.
38275old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
38276
38277# Create a temporary old-style archive to link instead of a shared archive.
38278old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
38279
38280# Commands used to build a shared archive.
38281archive_cmds=$lt_archive_cmds
38282archive_expsym_cmds=$lt_archive_expsym_cmds
38283
38284# Commands used to build a loadable module if different from building
38285# a shared archive.
38286module_cmds=$lt_module_cmds
38287module_expsym_cmds=$lt_module_expsym_cmds
38288
38289# Whether we are building with GNU ld or not.
38290with_gnu_ld=$lt_with_gnu_ld
38291
38292# Flag that allows shared libraries with undefined symbols to be built.
38293allow_undefined_flag=$lt_allow_undefined_flag
38294
38295# Flag that enforces no undefined symbols.
38296no_undefined_flag=$lt_no_undefined_flag
38297
38298# Flag to hardcode \$libdir into a binary during linking.
38299# This must work even if \$libdir does not exist
38300hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
38301
cristy73bd4a52010-10-05 11:24:23 +000038302# Whether we need a single "-rpath" flag with a separated argument.
38303hardcode_libdir_separator=$lt_hardcode_libdir_separator
38304
38305# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38306# DIR into the resulting binary.
38307hardcode_direct=$hardcode_direct
38308
38309# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38310# DIR into the resulting binary and the resulting library dependency is
38311# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
38312# library is relocated.
38313hardcode_direct_absolute=$hardcode_direct_absolute
38314
38315# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
38316# into the resulting binary.
38317hardcode_minus_L=$hardcode_minus_L
38318
38319# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
38320# into the resulting binary.
38321hardcode_shlibpath_var=$hardcode_shlibpath_var
38322
38323# Set to "yes" if building a shared library automatically hardcodes DIR
38324# into the library and all subsequent libraries and executables linked
38325# against it.
38326hardcode_automatic=$hardcode_automatic
38327
38328# Set to yes if linker adds runtime paths of dependent libraries
38329# to runtime path list.
38330inherit_rpath=$inherit_rpath
38331
38332# Whether libtool must link a program against all its dependency libraries.
38333link_all_deplibs=$link_all_deplibs
38334
cristy73bd4a52010-10-05 11:24:23 +000038335# Set to "yes" if exported symbols are required.
38336always_export_symbols=$always_export_symbols
38337
38338# The commands to list exported symbols.
38339export_symbols_cmds=$lt_export_symbols_cmds
38340
38341# Symbols that should not be listed in the preloaded symbols.
38342exclude_expsyms=$lt_exclude_expsyms
38343
38344# Symbols that must always be exported.
38345include_expsyms=$lt_include_expsyms
38346
38347# Commands necessary for linking programs (against libraries) with templates.
38348prelink_cmds=$lt_prelink_cmds
38349
cristyda16f162011-02-19 23:52:17 +000038350# Commands necessary for finishing linking programs.
38351postlink_cmds=$lt_postlink_cmds
38352
cristy73bd4a52010-10-05 11:24:23 +000038353# Specify filename containing input files.
38354file_list_spec=$lt_file_list_spec
38355
38356# How to hardcode a shared library path into an executable.
38357hardcode_action=$hardcode_action
38358
38359# The directories searched by this compiler when creating a shared library.
38360compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
38361
38362# Dependencies to place before and after the objects being linked to
38363# create a shared library.
38364predep_objects=$lt_predep_objects
38365postdep_objects=$lt_postdep_objects
38366predeps=$lt_predeps
38367postdeps=$lt_postdeps
38368
38369# The library search path used internally by the compiler when linking
38370# a shared library.
38371compiler_lib_search_path=$lt_compiler_lib_search_path
38372
38373# ### END LIBTOOL CONFIG
38374
38375_LT_EOF
38376
38377 case $host_os in
38378 aix3*)
38379 cat <<\_LT_EOF >> "$cfgfile"
38380# AIX sometimes has problems with the GCC collect2 program. For some
38381# reason, if we set the COLLECT_NAMES environment variable, the problems
38382# vanish in a puff of smoke.
38383if test "X${COLLECT_NAMES+set}" != Xset; then
38384 COLLECT_NAMES=
38385 export COLLECT_NAMES
38386fi
38387_LT_EOF
38388 ;;
38389 esac
38390
38391
38392ltmain="$ac_aux_dir/ltmain.sh"
38393
38394
38395 # We use sed instead of cat because bash on DJGPP gets confused if
38396 # if finds mixed CR/LF and LF-only lines. Since sed operates in
38397 # text mode, it properly converts lines to CR/LF. This bash problem
38398 # is reportedly fixed, but why not run on old versions too?
cristyda16f162011-02-19 23:52:17 +000038399 sed '$q' "$ltmain" >> "$cfgfile" \
38400 || (rm -f "$cfgfile"; exit 1)
cristy73bd4a52010-10-05 11:24:23 +000038401
cristyda16f162011-02-19 23:52:17 +000038402 if test x"$xsi_shell" = xyes; then
38403 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
38404func_dirname ()\
38405{\
38406\ case ${1} in\
38407\ */*) func_dirname_result="${1%/*}${2}" ;;\
38408\ * ) func_dirname_result="${3}" ;;\
38409\ esac\
38410} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
38411 && mv -f "$cfgfile.tmp" "$cfgfile" \
38412 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38413test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038414
38415
cristyda16f162011-02-19 23:52:17 +000038416 sed -e '/^func_basename ()$/,/^} # func_basename /c\
38417func_basename ()\
38418{\
38419\ func_basename_result="${1##*/}"\
38420} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
38421 && mv -f "$cfgfile.tmp" "$cfgfile" \
38422 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38423test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038424
38425
cristyda16f162011-02-19 23:52:17 +000038426 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
38427func_dirname_and_basename ()\
38428{\
38429\ case ${1} in\
38430\ */*) func_dirname_result="${1%/*}${2}" ;;\
38431\ * ) func_dirname_result="${3}" ;;\
38432\ esac\
38433\ func_basename_result="${1##*/}"\
38434} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
38435 && mv -f "$cfgfile.tmp" "$cfgfile" \
38436 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38437test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038438
cristyda16f162011-02-19 23:52:17 +000038439
38440 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
38441func_stripname ()\
38442{\
38443\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
38444\ # positional parameters, so assign one to ordinary parameter first.\
38445\ func_stripname_result=${3}\
38446\ func_stripname_result=${func_stripname_result#"${1}"}\
38447\ func_stripname_result=${func_stripname_result%"${2}"}\
38448} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
38449 && mv -f "$cfgfile.tmp" "$cfgfile" \
38450 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38451test 0 -eq $? || _lt_function_replace_fail=:
38452
38453
38454 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
38455func_split_long_opt ()\
38456{\
38457\ func_split_long_opt_name=${1%%=*}\
38458\ func_split_long_opt_arg=${1#*=}\
38459} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
38460 && mv -f "$cfgfile.tmp" "$cfgfile" \
38461 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38462test 0 -eq $? || _lt_function_replace_fail=:
38463
38464
38465 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
38466func_split_short_opt ()\
38467{\
38468\ func_split_short_opt_arg=${1#??}\
38469\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
38470} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
38471 && mv -f "$cfgfile.tmp" "$cfgfile" \
38472 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38473test 0 -eq $? || _lt_function_replace_fail=:
38474
38475
38476 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
38477func_lo2o ()\
38478{\
38479\ case ${1} in\
38480\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
38481\ *) func_lo2o_result=${1} ;;\
38482\ esac\
38483} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
38484 && mv -f "$cfgfile.tmp" "$cfgfile" \
38485 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38486test 0 -eq $? || _lt_function_replace_fail=:
38487
38488
38489 sed -e '/^func_xform ()$/,/^} # func_xform /c\
38490func_xform ()\
38491{\
38492 func_xform_result=${1%.*}.lo\
38493} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
38494 && mv -f "$cfgfile.tmp" "$cfgfile" \
38495 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38496test 0 -eq $? || _lt_function_replace_fail=:
38497
38498
38499 sed -e '/^func_arith ()$/,/^} # func_arith /c\
38500func_arith ()\
38501{\
38502 func_arith_result=$(( $* ))\
38503} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
38504 && mv -f "$cfgfile.tmp" "$cfgfile" \
38505 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38506test 0 -eq $? || _lt_function_replace_fail=:
38507
38508
38509 sed -e '/^func_len ()$/,/^} # func_len /c\
38510func_len ()\
38511{\
38512 func_len_result=${#1}\
38513} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
38514 && mv -f "$cfgfile.tmp" "$cfgfile" \
38515 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38516test 0 -eq $? || _lt_function_replace_fail=:
38517
38518fi
38519
38520if test x"$lt_shell_append" = xyes; then
38521 sed -e '/^func_append ()$/,/^} # func_append /c\
38522func_append ()\
38523{\
38524 eval "${1}+=\\${2}"\
38525} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
38526 && mv -f "$cfgfile.tmp" "$cfgfile" \
38527 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38528test 0 -eq $? || _lt_function_replace_fail=:
38529
38530
38531 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
38532func_append_quoted ()\
38533{\
38534\ func_quote_for_eval "${2}"\
38535\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
38536} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
38537 && mv -f "$cfgfile.tmp" "$cfgfile" \
38538 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38539test 0 -eq $? || _lt_function_replace_fail=:
38540
38541
38542 # Save a `func_append' function call where possible by direct use of '+='
38543 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
38544 && mv -f "$cfgfile.tmp" "$cfgfile" \
38545 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38546 test 0 -eq $? || _lt_function_replace_fail=:
38547else
38548 # Save a `func_append' function call even when '+=' is not available
38549 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
38550 && mv -f "$cfgfile.tmp" "$cfgfile" \
38551 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38552 test 0 -eq $? || _lt_function_replace_fail=:
38553fi
38554
38555if test x"$_lt_function_replace_fail" = x":"; then
38556 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
38557$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
38558fi
38559
38560
38561 mv -f "$cfgfile" "$ofile" ||
cristy73bd4a52010-10-05 11:24:23 +000038562 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
38563 chmod +x "$ofile"
38564
38565
38566 cat <<_LT_EOF >> "$ofile"
38567
38568# ### BEGIN LIBTOOL TAG CONFIG: CXX
38569
38570# The linker used to build libraries.
38571LD=$lt_LD_CXX
38572
cristy0c60a692010-11-04 01:09:47 +000038573# How to create reloadable object files.
38574reload_flag=$lt_reload_flag_CXX
38575reload_cmds=$lt_reload_cmds_CXX
38576
cristy73bd4a52010-10-05 11:24:23 +000038577# Commands used to build an old-style archive.
38578old_archive_cmds=$lt_old_archive_cmds_CXX
38579
38580# A language specific compiler.
38581CC=$lt_compiler_CXX
38582
38583# Is the compiler the GNU compiler?
38584with_gcc=$GCC_CXX
38585
38586# Compiler flag to turn off builtin functions.
38587no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
38588
cristy73bd4a52010-10-05 11:24:23 +000038589# Additional compiler flags for building library objects.
38590pic_flag=$lt_lt_prog_compiler_pic_CXX
38591
cristyda16f162011-02-19 23:52:17 +000038592# How to pass a linker flag through the compiler.
38593wl=$lt_lt_prog_compiler_wl_CXX
38594
cristy73bd4a52010-10-05 11:24:23 +000038595# Compiler flag to prevent dynamic linking.
38596link_static_flag=$lt_lt_prog_compiler_static_CXX
38597
38598# Does compiler simultaneously support -c and -o options?
38599compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
38600
38601# Whether or not to add -lc for building shared libraries.
38602build_libtool_need_lc=$archive_cmds_need_lc_CXX
38603
38604# Whether or not to disallow shared libs when runtime libs are static.
38605allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
38606
38607# Compiler flag to allow reflexive dlopens.
38608export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
38609
38610# Compiler flag to generate shared objects directly from archives.
38611whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
38612
38613# Whether the compiler copes with passing no objects directly.
38614compiler_needs_object=$lt_compiler_needs_object_CXX
38615
38616# Create an old-style archive from a shared archive.
38617old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
38618
38619# Create a temporary old-style archive to link instead of a shared archive.
38620old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
38621
38622# Commands used to build a shared archive.
38623archive_cmds=$lt_archive_cmds_CXX
38624archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
38625
38626# Commands used to build a loadable module if different from building
38627# a shared archive.
38628module_cmds=$lt_module_cmds_CXX
38629module_expsym_cmds=$lt_module_expsym_cmds_CXX
38630
38631# Whether we are building with GNU ld or not.
38632with_gnu_ld=$lt_with_gnu_ld_CXX
38633
38634# Flag that allows shared libraries with undefined symbols to be built.
38635allow_undefined_flag=$lt_allow_undefined_flag_CXX
38636
38637# Flag that enforces no undefined symbols.
38638no_undefined_flag=$lt_no_undefined_flag_CXX
38639
38640# Flag to hardcode \$libdir into a binary during linking.
38641# This must work even if \$libdir does not exist
38642hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
38643
cristy73bd4a52010-10-05 11:24:23 +000038644# Whether we need a single "-rpath" flag with a separated argument.
38645hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
38646
38647# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38648# DIR into the resulting binary.
38649hardcode_direct=$hardcode_direct_CXX
38650
38651# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38652# DIR into the resulting binary and the resulting library dependency is
38653# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
38654# library is relocated.
38655hardcode_direct_absolute=$hardcode_direct_absolute_CXX
38656
38657# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
38658# into the resulting binary.
38659hardcode_minus_L=$hardcode_minus_L_CXX
38660
38661# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
38662# into the resulting binary.
38663hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
38664
38665# Set to "yes" if building a shared library automatically hardcodes DIR
38666# into the library and all subsequent libraries and executables linked
38667# against it.
38668hardcode_automatic=$hardcode_automatic_CXX
38669
38670# Set to yes if linker adds runtime paths of dependent libraries
38671# to runtime path list.
38672inherit_rpath=$inherit_rpath_CXX
38673
38674# Whether libtool must link a program against all its dependency libraries.
38675link_all_deplibs=$link_all_deplibs_CXX
38676
cristy73bd4a52010-10-05 11:24:23 +000038677# Set to "yes" if exported symbols are required.
38678always_export_symbols=$always_export_symbols_CXX
38679
38680# The commands to list exported symbols.
38681export_symbols_cmds=$lt_export_symbols_cmds_CXX
38682
38683# Symbols that should not be listed in the preloaded symbols.
38684exclude_expsyms=$lt_exclude_expsyms_CXX
38685
38686# Symbols that must always be exported.
38687include_expsyms=$lt_include_expsyms_CXX
38688
38689# Commands necessary for linking programs (against libraries) with templates.
38690prelink_cmds=$lt_prelink_cmds_CXX
38691
cristyda16f162011-02-19 23:52:17 +000038692# Commands necessary for finishing linking programs.
38693postlink_cmds=$lt_postlink_cmds_CXX
38694
cristy73bd4a52010-10-05 11:24:23 +000038695# Specify filename containing input files.
38696file_list_spec=$lt_file_list_spec_CXX
38697
38698# How to hardcode a shared library path into an executable.
38699hardcode_action=$hardcode_action_CXX
38700
38701# The directories searched by this compiler when creating a shared library.
38702compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
38703
38704# Dependencies to place before and after the objects being linked to
38705# create a shared library.
38706predep_objects=$lt_predep_objects_CXX
38707postdep_objects=$lt_postdep_objects_CXX
38708predeps=$lt_predeps_CXX
38709postdeps=$lt_postdeps_CXX
38710
38711# The library search path used internally by the compiler when linking
38712# a shared library.
38713compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
38714
38715# ### END LIBTOOL TAG CONFIG: CXX
38716_LT_EOF
38717
38718 ;;
cristy2bd4b6e2012-07-22 15:29:11 +000038719 "magick.sh.in":C) chmod +x magick.sh ;;
cristy4c08aed2011-07-01 19:47:50 +000038720 "MagickCore-config.in":C) chmod +x MagickCore/MagickCore-config ;;
cristy4c08aed2011-07-01 19:47:50 +000038721 "MagickWand-config.in":C) chmod +x MagickWand/MagickWand-config ;;
cristy3ed852e2009-09-05 21:47:34 +000038722 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
38723 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
38724
38725 esac
38726done # for ac_tag
38727
38728
cristy8b350f62009-11-15 23:12:43 +000038729as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000038730_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000038731ac_clean_files=$ac_clean_files_save
38732
38733test $ac_write_fail = 0 ||
cristy98dddb52010-11-04 00:30:15 +000038734 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038735
38736
38737# configure is writing to config.log, and then calls config.status.
38738# config.status does its own redirection, appending to config.log.
38739# Unfortunately, on DOS this fails, as config.log is still kept open
38740# by configure, so config.status won't be able to write to it; its
38741# output is simply discarded. So we exec the FD to /dev/null,
38742# effectively closing config.log, so it can be properly (re)opened and
38743# appended to by config.status. When coming back to configure, we
38744# need to make the FD available again.
38745if test "$no_create" != yes; then
38746 ac_cs_success=:
38747 ac_config_status_args=
38748 test "$silent" = yes &&
38749 ac_config_status_args="$ac_config_status_args --quiet"
38750 exec 5>/dev/null
38751 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
38752 exec 5>>config.log
38753 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
38754 # would make configure fail if this is the last instruction.
cristy98dddb52010-11-04 00:30:15 +000038755 $ac_cs_success || as_fn_exit 1
cristy3ed852e2009-09-05 21:47:34 +000038756fi
38757if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000038758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000038759$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
38760fi
38761
38762
cristy9af1cbf2014-12-28 22:03:09 +000038763# ==============================================================================
38764# ImageMagick Configuration
38765# ==============================================================================
38766{ $as_echo "$as_me:${as_lineno-$LINENO}:
38767==============================================================================
cristy3ed852e2009-09-05 21:47:34 +000038768ImageMagick is configured as follows. Please verify that this configuration
38769matches your expectations.
38770
cristy9af1cbf2014-12-28 22:03:09 +000038771 Host system type: $host
38772 Build system type: $build
cristy3ed852e2009-09-05 21:47:34 +000038773
38774 Option Value
cristy9af1cbf2014-12-28 22:03:09 +000038775 ------------------------------------------------------------------------------
38776 Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
38777 Static libraries --enable-static=$enable_static $libtool_build_static_libs
38778 Module support --with-modules=$build_modules $build_modules
38779 GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
38780 Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
38781 High Dynamic Range Imagery
38782 --enable-hdri=$enable_hdri $enable_hdri
cristy3ed852e2009-09-05 21:47:34 +000038783
cristy9af1cbf2014-12-28 22:03:09 +000038784 Install documentation: $wantdocs
cristy3ed852e2009-09-05 21:47:34 +000038785
cristy9af1cbf2014-12-28 22:03:09 +000038786 Delegate Library Configuration:
38787 BZLIB --with-bzlib=$with_bzlib $have_bzlib
38788 Autotrace --with-autotrace=$with_autotrace $have_autotrace
38789 DJVU --with-djvu=$with_djvu $have_djvu
38790 DPS --with-dps=$with_dps $have_dps
38791 FFTW --with-fftw=$with_fftw $have_fftw
38792 FlashPIX --with-fpx=$with_fpx $have_fpx
cristybc8ef1c2015-06-06 14:32:21 +000038793 FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
cristy9af1cbf2014-12-28 22:03:09 +000038794 FreeType --with-freetype=$with_freetype $have_freetype
38795 Ghostscript lib --with-gslib=$with_gslib $have_gslib
38796 Graphviz --with-gvc=$with_gvc $have_gvc
38797 JBIG --with-jbig=$with_jbig $have_jbig
38798 JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
cristyd6ac47f2015-06-06 13:46:55 +000038799 LCMS --with-lcms=$with_lcms $have_lcms
cristy86e31f32015-06-06 15:47:32 +000038800 LIBJPEG2 --with-openjp2=$with_openjp2 $have_openjp2
cristy9af1cbf2014-12-28 22:03:09 +000038801 LQR --with-lqr=$with_lqr $have_lqr
38802 LTDL --with-ltdl=$with_ltdl $have_ltdl
38803 LZMA --with-lzma=$with_lzma $have_lzma
38804 Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
38805 OpenEXR --with-openexr=$with_openexr $have_openexr
38806 PANGO --with-pango=$with_pango $have_pango
38807 PERL --with-perl=$with_perl $have_perl
38808 PNG --with-png=$with_png $have_png
38809 RSVG --with-rsvg=$with_rsvg $have_rsvg
38810 TIFF --with-tiff=$with_tiff $have_tiff
38811 WEBP --with-webp=$with_webp $have_webp
38812 WMF --with-wmf=$with_wmf $have_wmf
38813 X11 --with-x=$with_x $have_x
38814 XML --with-xml=$with_xml $have_xml
38815 ZLIB --with-zlib=$with_zlib $have_zlib
cristy5a3dc992014-12-05 19:50:04 +000038816
cristy9af1cbf2014-12-28 22:03:09 +000038817 Delegate Program Configuration:
38818 GhostPCL None $PCLDelegate ($PCLVersion)
38819 GhostXPS None $XPSDelegate ($XPSVersion)
38820 Ghostscript None $PSDelegate ($GSVersion)
cristy5a3dc992014-12-05 19:50:04 +000038821
cristy9af1cbf2014-12-28 22:03:09 +000038822 Font Configuration:
38823 Apple fonts --with-apple-font-dir=$with_apple_font_dir $result_apple_font_dir
38824 Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
38825 Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
38826 Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
cristy3ed852e2009-09-05 21:47:34 +000038827
cristy9af1cbf2014-12-28 22:03:09 +000038828 X11 Configuration:
38829 X_CFLAGS = $X_CFLAGS
38830 X_PRE_LIBS = $X_PRE_LIBS
38831 X_LIBS = $X_LIBS
38832 X_EXTRA_LIBS = $X_EXTRA_LIBS
38833
38834 Options used to compile and link:
38835 PREFIX = $PREFIX_DIR
38836 EXEC-PREFIX = $EXEC_PREFIX_DIR
38837 VERSION = $PACKAGE_VERSION
38838 CC = $CC
38839 CFLAGS = $CFLAGS
38840 CPPFLAGS = $CPPFLAGS
38841 PCFLAGS = $PCFLAGS
38842 DEFS = $DEFS
38843 LDFLAGS = $LDFLAGS
38844 LIBS = $LIBS
38845 CXX = $CXX
38846 CXXFLAGS = $CXXFLAGS
38847 FEATURES = $MAGICK_FEATURES
38848 DELEGATES = $MAGICK_DELEGATES
38849==============================================================================
cristy3ed852e2009-09-05 21:47:34 +000038850" >&5
cristy9af1cbf2014-12-28 22:03:09 +000038851$as_echo "$as_me:
38852==============================================================================
cristy3ed852e2009-09-05 21:47:34 +000038853ImageMagick is configured as follows. Please verify that this configuration
38854matches your expectations.
38855
cristy9af1cbf2014-12-28 22:03:09 +000038856 Host system type: $host
38857 Build system type: $build
cristy3ed852e2009-09-05 21:47:34 +000038858
38859 Option Value
cristy9af1cbf2014-12-28 22:03:09 +000038860 ------------------------------------------------------------------------------
38861 Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
38862 Static libraries --enable-static=$enable_static $libtool_build_static_libs
38863 Module support --with-modules=$build_modules $build_modules
38864 GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
38865 Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
38866 High Dynamic Range Imagery
38867 --enable-hdri=$enable_hdri $enable_hdri
cristy3ed852e2009-09-05 21:47:34 +000038868
cristy9af1cbf2014-12-28 22:03:09 +000038869 Install documentation: $wantdocs
cristy3ed852e2009-09-05 21:47:34 +000038870
cristy9af1cbf2014-12-28 22:03:09 +000038871 Delegate Library Configuration:
38872 BZLIB --with-bzlib=$with_bzlib $have_bzlib
38873 Autotrace --with-autotrace=$with_autotrace $have_autotrace
38874 DJVU --with-djvu=$with_djvu $have_djvu
38875 DPS --with-dps=$with_dps $have_dps
38876 FFTW --with-fftw=$with_fftw $have_fftw
38877 FlashPIX --with-fpx=$with_fpx $have_fpx
cristybc8ef1c2015-06-06 14:32:21 +000038878 FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
cristy9af1cbf2014-12-28 22:03:09 +000038879 FreeType --with-freetype=$with_freetype $have_freetype
38880 Ghostscript lib --with-gslib=$with_gslib $have_gslib
38881 Graphviz --with-gvc=$with_gvc $have_gvc
38882 JBIG --with-jbig=$with_jbig $have_jbig
38883 JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
cristyd6ac47f2015-06-06 13:46:55 +000038884 LCMS --with-lcms=$with_lcms $have_lcms
cristy86e31f32015-06-06 15:47:32 +000038885 LIBJPEG2 --with-openjp2=$with_openjp2 $have_openjp2
cristy9af1cbf2014-12-28 22:03:09 +000038886 LQR --with-lqr=$with_lqr $have_lqr
38887 LTDL --with-ltdl=$with_ltdl $have_ltdl
38888 LZMA --with-lzma=$with_lzma $have_lzma
38889 Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
38890 OpenEXR --with-openexr=$with_openexr $have_openexr
38891 PANGO --with-pango=$with_pango $have_pango
38892 PERL --with-perl=$with_perl $have_perl
38893 PNG --with-png=$with_png $have_png
38894 RSVG --with-rsvg=$with_rsvg $have_rsvg
38895 TIFF --with-tiff=$with_tiff $have_tiff
38896 WEBP --with-webp=$with_webp $have_webp
38897 WMF --with-wmf=$with_wmf $have_wmf
38898 X11 --with-x=$with_x $have_x
38899 XML --with-xml=$with_xml $have_xml
38900 ZLIB --with-zlib=$with_zlib $have_zlib
cristy5a3dc992014-12-05 19:50:04 +000038901
cristy9af1cbf2014-12-28 22:03:09 +000038902 Delegate Program Configuration:
38903 GhostPCL None $PCLDelegate ($PCLVersion)
38904 GhostXPS None $XPSDelegate ($XPSVersion)
38905 Ghostscript None $PSDelegate ($GSVersion)
cristy5a3dc992014-12-05 19:50:04 +000038906
cristy9af1cbf2014-12-28 22:03:09 +000038907 Font Configuration:
38908 Apple fonts --with-apple-font-dir=$with_apple_font_dir $result_apple_font_dir
38909 Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
38910 Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
38911 Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
cristy3ed852e2009-09-05 21:47:34 +000038912
cristy9af1cbf2014-12-28 22:03:09 +000038913 X11 Configuration:
38914 X_CFLAGS = $X_CFLAGS
38915 X_PRE_LIBS = $X_PRE_LIBS
38916 X_LIBS = $X_LIBS
38917 X_EXTRA_LIBS = $X_EXTRA_LIBS
38918
38919 Options used to compile and link:
38920 PREFIX = $PREFIX_DIR
38921 EXEC-PREFIX = $EXEC_PREFIX_DIR
38922 VERSION = $PACKAGE_VERSION
38923 CC = $CC
38924 CFLAGS = $CFLAGS
38925 CPPFLAGS = $CPPFLAGS
38926 PCFLAGS = $PCFLAGS
38927 DEFS = $DEFS
38928 LDFLAGS = $LDFLAGS
38929 LIBS = $LIBS
38930 CXX = $CXX
38931 CXXFLAGS = $CXXFLAGS
38932 FEATURES = $MAGICK_FEATURES
38933 DELEGATES = $MAGICK_DELEGATES
38934==============================================================================
38935" >&6;}