blob: 23d2dda2ca66f13545a3fdccc3125615c0a5e136 [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
cristy73bd4a52010-10-05 11:24:23 +0000770WMF_DELEGATE_FALSE
771WMF_DELEGATE_TRUE
cristy32f75d42015-06-05 18:46:23 +0000772WMF_LIBS
773WMF_CFLAGS
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
cristy3ed852e2009-09-05 21:47:34 +0000818JPEG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000819JPEG_DELEGATE_FALSE
820JPEG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000821JBIG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000822JBIG_DELEGATE_FALSE
823JBIG_DELEGATE_TRUE
824GVC_DELEGATE_FALSE
825GVC_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000826GVC_LIBS
827GVC_CFLAGS
828GS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000829GS_DELEGATE_FALSE
830GS_DELEGATE_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000831FREETYPE_DELEGATE_FALSE
832FREETYPE_DELEGATE_TRUE
cristy03f187e2013-01-24 00:22:19 +0000833FREETYPE_LIBS
834FREETYPE_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000835FONTCONFIG_DELEGATE_FALSE
836FONTCONFIG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000837FONTCONFIG_LIBS
838FONTCONFIG_CFLAGS
cristy853d9902014-08-21 18:50:43 +0000839DJVU_LIBS
cristy32f75d42015-06-05 18:46:23 +0000840DJVU_CFLAGS
cristy853d9902014-08-21 18:50:43 +0000841DJVU_DELEGATE_FALSE
842DJVU_DELEGATE_TRUE
cristy32f75d42015-06-05 18:46:23 +0000843ddjvuapi_LIBS
844ddjvuapi_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000845FPX_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000846FPX_DELEGATE_FALSE
847FPX_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000848FFTW_LIBS
cristy32f75d42015-06-05 18:46:23 +0000849FFTW_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000850FFTW_DELEGATE_FALSE
851FFTW_DELEGATE_TRUE
cristy32f75d42015-06-05 18:46:23 +0000852fftw3_LIBS
853fftw3_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000854DPS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000855DPS_DELEGATE_FALSE
856DPS_DELEGATE_TRUE
857AUTOTRACE_DELEGATE_FALSE
858AUTOTRACE_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000859AUTOTRACE_LIBS
860AUTOTRACE_CFLAGS
861LIB_DL
cristy5eef09f2012-10-16 12:08:28 +0000862WITH_LTDL_FALSE
863WITH_LTDL_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000864ZLIB_DELEGATE_FALSE
865ZLIB_DELEGATE_TRUE
cristy32f75d42015-06-05 18:46:23 +0000866ZLIB_LIBS
867ZLIB_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000868XEXT_LIBS
869X11_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000870X11_DELEGATE_FALSE
871X11_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000872X_EXTRA_LIBS
873X_LIBS
874X_PRE_LIBS
875X_CFLAGS
cristyc7083c12009-10-14 03:16:55 +0000876XMKMF
cristy3ed852e2009-09-05 21:47:34 +0000877BZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000878BZLIB_DELEGATE_FALSE
879BZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000880CCMALLOCDelegate
881UMEM_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000882HasUMEM_FALSE
883HasUMEM_TRUE
cristy3b0097d2014-11-04 15:34:47 +0000884JEMALLOC_LIBS
885HasJEMALLOC_FALSE
886HasJEMALLOC_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000887GOMP_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000888WITH_MAGICK_PLUS_PLUS_FALSE
889WITH_MAGICK_PLUS_PLUS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000890OPENMP_CXXFLAGS
cristy161b9262010-03-20 19:34:32 +0000891MATH_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000892POW_LIB
893LIBOBJS
cristy6d5e20f2011-04-25 13:48:54 +0000894UINTPTR_F
cristy3ed852e2009-09-05 21:47:34 +0000895UINTPTR_T
cristy6d5e20f2011-04-25 13:48:54 +0000896UINTMAX_F
cristy3ed852e2009-09-05 21:47:34 +0000897UINTMAX_T
cristy6d5e20f2011-04-25 13:48:54 +0000898UINT64_F
cristy3ed852e2009-09-05 21:47:34 +0000899UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000900INT64_F
cristy3ed852e2009-09-05 21:47:34 +0000901INT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000902UINT32_F
cristy3ed852e2009-09-05 21:47:34 +0000903UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +0000904INT32_F
cristy3ed852e2009-09-05 21:47:34 +0000905INT32_T
906UINT16_T
907INT16_T
908UINT8_T
909INT8_T
910LIBRARY_EXTRA_CPPFLAGS
911MODULE_EXTRA_CPPFLAGS
912LIBSTDCLDFLAGS
913PERL_MAKE_OPTIONS
cristy3a75f062012-09-08 23:29:40 +0000914MAGICK_LT_RELEASE_OPTS
cristy7a26abd2012-12-03 00:18:59 +0000915MAGICK_ABI_SUFFIX
cristy3ed852e2009-09-05 21:47:34 +0000916QUANTUM_DEPTH
cristy71d8c202012-03-20 17:05:01 +0000917LEGACY_SUPPORT_FALSE
918LEGACY_SUPPORT_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000919MAINT
920MAINTAINER_MODE_FALSE
921MAINTAINER_MODE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000922MAGICK_HDRI
cristy73bd4a52010-10-05 11:24:23 +0000923WITH_MODULES_FALSE
924WITH_MODULES_TRUE
925WITH_SHARED_LIBS_FALSE
926WITH_SHARED_LIBS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000927LIBTOOL_DEPS
cristy73bd4a52010-10-05 11:24:23 +0000928CXXCPP
929OTOOL64
930OTOOL
931LIPO
932NMEDIT
933DSYMUTIL
cristyda16f162011-02-19 23:52:17 +0000934MANIFEST_TOOL
cristy73bd4a52010-10-05 11:24:23 +0000935RANLIB
cristy73bd4a52010-10-05 11:24:23 +0000936NM
937ac_ct_DUMPBIN
938DUMPBIN
939LIBTOOL
940OBJDUMP
941DLLTOOL
942AS
cristy3ed852e2009-09-05 21:47:34 +0000943LFS_CPPFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000944CL_LIBS
cristy736173a2009-09-20 21:18:22 +0000945CL_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000946OPENMP_CFLAGS
cristy1ae5c992013-07-30 14:55:07 +0000947THREAD_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000948PTHREAD_CFLAGS
949PTHREAD_LIBS
950PTHREAD_CC
951ax_pthread_config
cristy2ec87cc2013-02-18 17:46:50 +0000952pkgconfigdir
cristy670aa3c2011-11-03 00:54:00 +0000953SHAREARCH_DIR
954INCLUDEARCH_DIR
cristy3ed852e2009-09-05 21:47:34 +0000955WinPathScript
cristy73bd4a52010-10-05 11:24:23 +0000956USING_CL_FALSE
957USING_CL_TRUE
958CYGWIN_BUILD_FALSE
959CYGWIN_BUILD_TRUE
960WIN32_NATIVE_BUILD_FALSE
961WIN32_NATIVE_BUILD_TRUE
962WINGDI32_DELEGATE_FALSE
963WINGDI32_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000964GDI32_LIBS
cristy9b86f202012-11-28 21:55:35 +0000965HAVE_LD_VERSION_SCRIPT_FALSE
966HAVE_LD_VERSION_SCRIPT_TRUE
cristy146497a2015-05-17 22:46:16 +0000967PKG_CONFIG_LIBDIR
968PKG_CONFIG_PATH
cristy73bd4a52010-10-05 11:24:23 +0000969PKG_CONFIG
cristya0459972013-11-03 18:09:35 +0000970PRTDIAG
cristy3ed852e2009-09-05 21:47:34 +0000971LN_S
cristy3ed852e2009-09-05 21:47:34 +0000972LD
cristy73bd4a52010-10-05 11:24:23 +0000973FGREP
974SED
975am__fastdepCXX_FALSE
976am__fastdepCXX_TRUE
977CXXDEPMODE
cristy95646052009-11-28 23:05:30 +0000978ac_ct_CXX
979CXXFLAGS
980CXX
cristy9e007fe2015-01-03 16:05:07 +0000981ac_ct_AR
982AR
cristya0b81c32010-01-22 02:54:33 +0000983EGREP
984GREP
985CPP
cristy73bd4a52010-10-05 11:24:23 +0000986am__fastdepCC_FALSE
987am__fastdepCC_TRUE
988CCDEPMODE
cristy7247bba2012-02-05 16:37:27 +0000989am__nodep
cristy73bd4a52010-10-05 11:24:23 +0000990AMDEPBACKSLASH
991AMDEP_FALSE
992AMDEP_TRUE
993am__quote
994am__include
995DEPDIR
cristy3ed852e2009-09-05 21:47:34 +0000996OBJEXT
997EXEEXT
998ac_ct_CC
999CPPFLAGS
1000LDFLAGS
1001CFLAGS
1002CC
1003DIRSEP
1004MAGICK_FILTER_MODULE_PATH
1005MAGICK_CONFIGURE_BUILD_PATH
1006MAGICK_CONFIGURE_SRC_PATH
1007MAGICK_CODER_MODULE_PATH
1008MAN_DIR
1009INFO_DIR
1010PERSISTINCLUDE_DIR
1011INCLUDE_DIR
1012LIB_DIR
1013LOCALSTATE_DIR
1014SHAREDSTATE_DIR
1015SYSCONF_DIR
cristyd55889c2011-03-27 00:50:24 +00001016DOC_DIR
cristy3ed852e2009-09-05 21:47:34 +00001017DATA_DIR
1018LIBEXEC_DIR
1019SBIN_DIR
1020BIN_DIR
1021EXEC_PREFIX_DIR
1022PREFIX_DIR
1023CONFIG_STATUS_DEPENDENCIES
cristy5ed9c6e2013-07-14 21:20:31 +00001024MAGICKPP_LIB_VERSION_TEXT
1025MAGICKPP_LIB_VERSION
cristy3ed852e2009-09-05 21:47:34 +00001026MAGICK_LIB_VERSION_NUMBER
1027MAGICK_LIB_VERSION_TEXT
1028MAGICK_LIB_VERSION
cristy9af1cbf2014-12-28 22:03:09 +00001029PACKAGE_VERSION_ADDENDUM
1030PACKAGE_RELEASE_DATE
1031PACKAGE_LIB_VERSION_NUMBER
1032PACKAGE_LIB_VERSION
1033PACKAGE_CHANGE_DATE
1034PACKAGE_RELEASE
1035PACKAGE_PERL_VERSION
1036MAGICKPP_LIBRARY_VERSION_INFO
1037MAGICKPP_LIBRARY_CURRENT_MIN
1038MAGICKPP_LIBRARY_AGE
1039MAGICKPP_LIBRARY_REVISION
1040MAGICKPP_LIBRARY_CURRENT
1041MAGICK_LIBRARY_VERSION_INFO
1042MAGICK_LIBRARY_CURRENT_MIN
1043MAGICK_LIBRARY_AGE
1044MAGICK_LIBRARY_REVISION
1045MAGICK_LIBRARY_CURRENT
1046MAGICK_SVN_REVISION
1047MAGICK_VERSION
1048MAGICK_PATCHLEVEL_VERSION
1049MAGICK_MICRO_VERSION
1050MAGICK_MINOR_VERSION
1051MAGICK_MAJOR_VERSION
1052MAGICK_TARGET_OS
1053MAGICK_TARGET_VENDOR
1054MAGICK_TARGET_CPU
1055CONFIGURE_ARGS
1056DISTCHECK_CONFIG_FLAGS
cristy73bd4a52010-10-05 11:24:23 +00001057AM_BACKSLASH
1058AM_DEFAULT_VERBOSITY
cristyc3fb77b2012-02-06 01:49:41 +00001059AM_DEFAULT_V
1060AM_V
cristy73bd4a52010-10-05 11:24:23 +00001061am__untar
1062am__tar
1063AMTAR
1064am__leading_dot
1065SET_MAKE
1066AWK
1067mkdir_p
1068MKDIR_P
1069INSTALL_STRIP_PROGRAM
1070STRIP
1071install_sh
1072MAKEINFO
1073AUTOHEADER
1074AUTOMAKE
1075AUTOCONF
1076ACLOCAL
1077VERSION
1078PACKAGE
1079CYGPATH_W
1080am__isrc
1081INSTALL_DATA
1082INSTALL_SCRIPT
1083INSTALL_PROGRAM
cristy3ed852e2009-09-05 21:47:34 +00001084target_os
1085target_vendor
1086target_cpu
1087target
1088host_os
1089host_vendor
1090host_cpu
1091host
1092build_os
1093build_vendor
1094build_cpu
1095build
cristy3ed852e2009-09-05 21:47:34 +00001096target_alias
1097host_alias
1098build_alias
1099LIBS
1100ECHO_T
1101ECHO_N
1102ECHO_C
1103DEFS
1104mandir
1105localedir
1106libdir
1107psdir
1108pdfdir
1109dvidir
1110htmldir
1111infodir
1112docdir
1113oldincludedir
1114includedir
1115localstatedir
1116sharedstatedir
1117sysconfdir
1118datadir
1119datarootdir
1120libexecdir
1121sbindir
1122bindir
1123program_transform_name
1124prefix
1125exec_prefix
cristy8b350f62009-11-15 23:12:43 +00001126PACKAGE_URL
cristy3ed852e2009-09-05 21:47:34 +00001127PACKAGE_BUGREPORT
1128PACKAGE_STRING
1129PACKAGE_VERSION
1130PACKAGE_TARNAME
1131PACKAGE_NAME
1132PATH_SEPARATOR
1133SHELL'
1134ac_subst_files=''
1135ac_user_opts='
1136enable_option_checking
cristy73bd4a52010-10-05 11:24:23 +00001137enable_silent_rules
cristy187791c2015-05-03 22:17:00 +00001138enable_reproducible_build
cristy73bd4a52010-10-05 11:24:23 +00001139enable_dependency_tracking
1140with_gnu_ld
1141with_dmalloc
cristya0459972013-11-03 18:09:35 +00001142with_gcc_arch
cristy9b86f202012-11-28 21:55:35 +00001143enable_ld_version_script
cristy3ed852e2009-09-05 21:47:34 +00001144enable_bounds_checking
1145enable_osx_universal_binary
cristy670aa3c2011-11-03 00:54:00 +00001146with_includearch_dir
1147with_sharearch_dir
cristy2ec87cc2013-02-18 17:46:50 +00001148with_pkgconfigdir
cristy3ed852e2009-09-05 21:47:34 +00001149with_threads
1150enable_openmp
cristy73bd4a52010-10-05 11:24:23 +00001151enable_opencl
cristy3ed852e2009-09-05 21:47:34 +00001152enable_largefile
cristy73bd4a52010-10-05 11:24:23 +00001153enable_shared
1154enable_static
1155with_pic
1156enable_fast_install
cristyda16f162011-02-19 23:52:17 +00001157with_sysroot
cristy73bd4a52010-10-05 11:24:23 +00001158enable_libtool_lock
cristy3ed852e2009-09-05 21:47:34 +00001159with_modules
1160enable_delegate_build
1161enable_deprecated
1162enable_installed
1163enable_cipher
cristy6e3607c2011-09-13 13:59:17 +00001164enable_zero_configuration
cristy3ed852e2009-09-05 21:47:34 +00001165enable_hdri
cristy3ed852e2009-09-05 21:47:34 +00001166enable_assert
cristy73bd4a52010-10-05 11:24:23 +00001167enable_maintainer_mode
cristy944e51f2013-04-16 18:45:02 +00001168enable_hugepages
cristy3ed852e2009-09-05 21:47:34 +00001169enable_ccmalloc
1170enable_efence
1171enable_prof
1172enable_gprof
1173enable_gcov
1174with_method_prefix
cristy71d8c202012-03-20 17:05:01 +00001175enable_legacy_support
cristy3ed852e2009-09-05 21:47:34 +00001176with_quantum_depth
1177with_cache
1178with_frozenpaths
1179with_magick_plus_plus
cristy3a75f062012-09-08 23:29:40 +00001180with_package_release_name
cristy3ed852e2009-09-05 21:47:34 +00001181with_perl
1182with_perl_options
cristy3b0097d2014-11-04 15:34:47 +00001183with_jemalloc
cristy3ed852e2009-09-05 21:47:34 +00001184with_umem
1185with_libstdc
1186with_bzlib
cristyc7083c12009-10-14 03:16:55 +00001187with_x
cristy3ed852e2009-09-05 21:47:34 +00001188with_zlib
cristy5a3dc992014-12-05 19:50:04 +00001189with_apple_font_dir
cristy3ed852e2009-09-05 21:47:34 +00001190with_autotrace
1191with_dps
cristy430a7312010-01-21 20:44:04 +00001192with_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +00001193with_fftw
1194with_fpx
cristy853d9902014-08-21 18:50:43 +00001195with_djvu
cristy3ed852e2009-09-05 21:47:34 +00001196with_fontconfig
1197with_freetype
1198with_gslib
1199with_fontpath
1200with_gs_font_dir
1201with_gvc
1202with_jbig
1203with_jpeg
cristy3ed852e2009-09-05 21:47:34 +00001204with_lcms
cristy99db3872014-01-01 15:11:34 +00001205with_openjp2
cristy3ed852e2009-09-05 21:47:34 +00001206with_lqr
cristyfbb0ef02010-12-19 02:32:11 +00001207with_lzma
cristy3ed852e2009-09-05 21:47:34 +00001208with_openexr
cristy41cbe8a2011-10-27 01:35:18 +00001209with_pango
cristy3ed852e2009-09-05 21:47:34 +00001210with_png
1211with_rsvg
1212with_tiff
cristyb1860752011-03-14 00:27:46 +00001213with_webp
cristy3ed852e2009-09-05 21:47:34 +00001214with_windows_font_dir
1215with_wmf
1216with_xml
cristydd17feb2014-03-05 02:06:32 +00001217enable_docs
cristy3ed852e2009-09-05 21:47:34 +00001218'
1219 ac_precious_vars='build_alias
1220host_alias
1221target_alias
1222CC
1223CFLAGS
1224LDFLAGS
1225LIBS
1226CPPFLAGS
cristya0b81c32010-01-22 02:54:33 +00001227CPP
cristy3ed852e2009-09-05 21:47:34 +00001228CXX
1229CXXFLAGS
1230CCC
cristy73bd4a52010-10-05 11:24:23 +00001231PKG_CONFIG
cristy146497a2015-05-17 22:46:16 +00001232PKG_CONFIG_PATH
1233PKG_CONFIG_LIBDIR
cristy73bd4a52010-10-05 11:24:23 +00001234CXXCPP
cristyc7083c12009-10-14 03:16:55 +00001235XMKMF
cristy32f75d42015-06-05 18:46:23 +00001236ZLIB_CFLAGS
1237ZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001238AUTOTRACE_CFLAGS
1239AUTOTRACE_LIBS
cristy32f75d42015-06-05 18:46:23 +00001240fftw3_CFLAGS
1241fftw3_LIBS
1242ddjvuapi_CFLAGS
1243ddjvuapi_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001244FONTCONFIG_CFLAGS
1245FONTCONFIG_LIBS
cristy03f187e2013-01-24 00:22:19 +00001246FREETYPE_CFLAGS
1247FREETYPE_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001248GVC_CFLAGS
1249GVC_LIBS
cristy32f75d42015-06-05 18:46:23 +00001250LCMS_CFLAGS
1251LCMS_LIBS
cristy99db3872014-01-01 15:11:34 +00001252LIBOPENJP2_CFLAGS
1253LIBOPENJP2_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001254LQR_CFLAGS
1255LQR_LIBS
cristyb94e5002011-11-14 13:20:10 +00001256LZMA_CFLAGS
1257LZMA_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001258OPENEXR_CFLAGS
1259OPENEXR_LIBS
cristy41cbe8a2011-10-27 01:35:18 +00001260PANGO_CFLAGS
1261PANGO_LIBS
cristy32f75d42015-06-05 18:46:23 +00001262PNG_CFLAGS
1263PNG_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001264RSVG_CFLAGS
1265RSVG_LIBS
1266CAIRO_SVG_CFLAGS
cristy32f75d42015-06-05 18:46:23 +00001267CAIRO_SVG_LIBS
1268WMF_CFLAGS
1269WMF_LIBS
1270XML_CFLAGS
1271XML_LIBS'
cristy3ed852e2009-09-05 21:47:34 +00001272
1273
1274# Initialize some variables set by options.
1275ac_init_help=
1276ac_init_version=false
1277ac_unrecognized_opts=
1278ac_unrecognized_sep=
1279# The variables have the same names as the options, with
1280# dashes changed to underlines.
1281cache_file=/dev/null
1282exec_prefix=NONE
1283no_create=
1284no_recursion=
1285prefix=NONE
1286program_prefix=NONE
1287program_suffix=NONE
1288program_transform_name=s,x,x,
1289silent=
1290site=
1291srcdir=
1292verbose=
1293x_includes=NONE
1294x_libraries=NONE
1295
1296# Installation directory options.
1297# These are left unexpanded so users can "make install exec_prefix=/foo"
1298# and all the variables that are supposed to be based on exec_prefix
1299# by default will actually change.
1300# Use braces instead of parens because sh, perl, etc. also accept them.
1301# (The list follows the same order as the GNU Coding Standards.)
1302bindir='${exec_prefix}/bin'
1303sbindir='${exec_prefix}/sbin'
1304libexecdir='${exec_prefix}/libexec'
1305datarootdir='${prefix}/share'
1306datadir='${datarootdir}'
1307sysconfdir='${prefix}/etc'
1308sharedstatedir='${prefix}/com'
1309localstatedir='${prefix}/var'
1310includedir='${prefix}/include'
1311oldincludedir='/usr/include'
1312docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1313infodir='${datarootdir}/info'
1314htmldir='${docdir}'
1315dvidir='${docdir}'
1316pdfdir='${docdir}'
1317psdir='${docdir}'
1318libdir='${exec_prefix}/lib'
1319localedir='${datarootdir}/locale'
1320mandir='${datarootdir}/man'
1321
1322ac_prev=
1323ac_dashdash=
1324for ac_option
1325do
1326 # If the previous option needs an argument, assign it.
1327 if test -n "$ac_prev"; then
1328 eval $ac_prev=\$ac_option
1329 ac_prev=
1330 continue
1331 fi
1332
1333 case $ac_option in
cristyda16f162011-02-19 23:52:17 +00001334 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1335 *=) ac_optarg= ;;
1336 *) ac_optarg=yes ;;
cristy3ed852e2009-09-05 21:47:34 +00001337 esac
1338
1339 # Accept the important Cygnus configure options, so we can diagnose typos.
1340
1341 case $ac_dashdash$ac_option in
1342 --)
1343 ac_dashdash=yes ;;
1344
1345 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1346 ac_prev=bindir ;;
1347 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1348 bindir=$ac_optarg ;;
1349
1350 -build | --build | --buil | --bui | --bu)
1351 ac_prev=build_alias ;;
1352 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1353 build_alias=$ac_optarg ;;
1354
1355 -cache-file | --cache-file | --cache-fil | --cache-fi \
1356 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1357 ac_prev=cache_file ;;
1358 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1359 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1360 cache_file=$ac_optarg ;;
1361
1362 --config-cache | -C)
1363 cache_file=config.cache ;;
1364
1365 -datadir | --datadir | --datadi | --datad)
1366 ac_prev=datadir ;;
1367 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1368 datadir=$ac_optarg ;;
1369
1370 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1371 | --dataroo | --dataro | --datar)
1372 ac_prev=datarootdir ;;
1373 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1374 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1375 datarootdir=$ac_optarg ;;
1376
1377 -disable-* | --disable-*)
1378 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1379 # Reject names that are not valid shell variable names.
1380 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001381 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001382 ac_useropt_orig=$ac_useropt
1383 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1384 case $ac_user_opts in
1385 *"
1386"enable_$ac_useropt"
1387"*) ;;
1388 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1389 ac_unrecognized_sep=', ';;
1390 esac
1391 eval enable_$ac_useropt=no ;;
1392
1393 -docdir | --docdir | --docdi | --doc | --do)
1394 ac_prev=docdir ;;
1395 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1396 docdir=$ac_optarg ;;
1397
1398 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1399 ac_prev=dvidir ;;
1400 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1401 dvidir=$ac_optarg ;;
1402
1403 -enable-* | --enable-*)
1404 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1405 # Reject names that are not valid shell variable names.
1406 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001407 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001408 ac_useropt_orig=$ac_useropt
1409 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1410 case $ac_user_opts in
1411 *"
1412"enable_$ac_useropt"
1413"*) ;;
1414 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1415 ac_unrecognized_sep=', ';;
1416 esac
1417 eval enable_$ac_useropt=\$ac_optarg ;;
1418
1419 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1420 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1421 | --exec | --exe | --ex)
1422 ac_prev=exec_prefix ;;
1423 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1424 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1425 | --exec=* | --exe=* | --ex=*)
1426 exec_prefix=$ac_optarg ;;
1427
1428 -gas | --gas | --ga | --g)
1429 # Obsolete; use --with-gas.
1430 with_gas=yes ;;
1431
1432 -help | --help | --hel | --he | -h)
1433 ac_init_help=long ;;
1434 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1435 ac_init_help=recursive ;;
1436 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1437 ac_init_help=short ;;
1438
1439 -host | --host | --hos | --ho)
1440 ac_prev=host_alias ;;
1441 -host=* | --host=* | --hos=* | --ho=*)
1442 host_alias=$ac_optarg ;;
1443
1444 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1445 ac_prev=htmldir ;;
1446 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1447 | --ht=*)
1448 htmldir=$ac_optarg ;;
1449
1450 -includedir | --includedir | --includedi | --included | --include \
1451 | --includ | --inclu | --incl | --inc)
1452 ac_prev=includedir ;;
1453 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1454 | --includ=* | --inclu=* | --incl=* | --inc=*)
1455 includedir=$ac_optarg ;;
1456
1457 -infodir | --infodir | --infodi | --infod | --info | --inf)
1458 ac_prev=infodir ;;
1459 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1460 infodir=$ac_optarg ;;
1461
1462 -libdir | --libdir | --libdi | --libd)
1463 ac_prev=libdir ;;
1464 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1465 libdir=$ac_optarg ;;
1466
1467 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1468 | --libexe | --libex | --libe)
1469 ac_prev=libexecdir ;;
1470 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1471 | --libexe=* | --libex=* | --libe=*)
1472 libexecdir=$ac_optarg ;;
1473
1474 -localedir | --localedir | --localedi | --localed | --locale)
1475 ac_prev=localedir ;;
1476 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1477 localedir=$ac_optarg ;;
1478
1479 -localstatedir | --localstatedir | --localstatedi | --localstated \
1480 | --localstate | --localstat | --localsta | --localst | --locals)
1481 ac_prev=localstatedir ;;
1482 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1483 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1484 localstatedir=$ac_optarg ;;
1485
1486 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1487 ac_prev=mandir ;;
1488 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1489 mandir=$ac_optarg ;;
1490
1491 -nfp | --nfp | --nf)
1492 # Obsolete; use --without-fp.
1493 with_fp=no ;;
1494
1495 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1496 | --no-cr | --no-c | -n)
1497 no_create=yes ;;
1498
1499 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1500 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1501 no_recursion=yes ;;
1502
1503 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1504 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1505 | --oldin | --oldi | --old | --ol | --o)
1506 ac_prev=oldincludedir ;;
1507 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1508 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1509 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1510 oldincludedir=$ac_optarg ;;
1511
1512 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1513 ac_prev=prefix ;;
1514 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1515 prefix=$ac_optarg ;;
1516
1517 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1518 | --program-pre | --program-pr | --program-p)
1519 ac_prev=program_prefix ;;
1520 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1521 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1522 program_prefix=$ac_optarg ;;
1523
1524 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1525 | --program-suf | --program-su | --program-s)
1526 ac_prev=program_suffix ;;
1527 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1528 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1529 program_suffix=$ac_optarg ;;
1530
1531 -program-transform-name | --program-transform-name \
1532 | --program-transform-nam | --program-transform-na \
1533 | --program-transform-n | --program-transform- \
1534 | --program-transform | --program-transfor \
1535 | --program-transfo | --program-transf \
1536 | --program-trans | --program-tran \
1537 | --progr-tra | --program-tr | --program-t)
1538 ac_prev=program_transform_name ;;
1539 -program-transform-name=* | --program-transform-name=* \
1540 | --program-transform-nam=* | --program-transform-na=* \
1541 | --program-transform-n=* | --program-transform-=* \
1542 | --program-transform=* | --program-transfor=* \
1543 | --program-transfo=* | --program-transf=* \
1544 | --program-trans=* | --program-tran=* \
1545 | --progr-tra=* | --program-tr=* | --program-t=*)
1546 program_transform_name=$ac_optarg ;;
1547
1548 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1549 ac_prev=pdfdir ;;
1550 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1551 pdfdir=$ac_optarg ;;
1552
1553 -psdir | --psdir | --psdi | --psd | --ps)
1554 ac_prev=psdir ;;
1555 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1556 psdir=$ac_optarg ;;
1557
1558 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1559 | -silent | --silent | --silen | --sile | --sil)
1560 silent=yes ;;
1561
1562 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1563 ac_prev=sbindir ;;
1564 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1565 | --sbi=* | --sb=*)
1566 sbindir=$ac_optarg ;;
1567
1568 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1569 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1570 | --sharedst | --shareds | --shared | --share | --shar \
1571 | --sha | --sh)
1572 ac_prev=sharedstatedir ;;
1573 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1574 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1575 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1576 | --sha=* | --sh=*)
1577 sharedstatedir=$ac_optarg ;;
1578
1579 -site | --site | --sit)
1580 ac_prev=site ;;
1581 -site=* | --site=* | --sit=*)
1582 site=$ac_optarg ;;
1583
1584 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1585 ac_prev=srcdir ;;
1586 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1587 srcdir=$ac_optarg ;;
1588
1589 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1590 | --syscon | --sysco | --sysc | --sys | --sy)
1591 ac_prev=sysconfdir ;;
1592 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1593 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1594 sysconfdir=$ac_optarg ;;
1595
1596 -target | --target | --targe | --targ | --tar | --ta | --t)
1597 ac_prev=target_alias ;;
1598 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1599 target_alias=$ac_optarg ;;
1600
1601 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1602 verbose=yes ;;
1603
1604 -version | --version | --versio | --versi | --vers | -V)
1605 ac_init_version=: ;;
1606
1607 -with-* | --with-*)
1608 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1609 # Reject names that are not valid shell variable names.
1610 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001611 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001612 ac_useropt_orig=$ac_useropt
1613 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1614 case $ac_user_opts in
1615 *"
1616"with_$ac_useropt"
1617"*) ;;
1618 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1619 ac_unrecognized_sep=', ';;
1620 esac
1621 eval with_$ac_useropt=\$ac_optarg ;;
1622
1623 -without-* | --without-*)
1624 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1625 # Reject names that are not valid shell variable names.
1626 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001627 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001628 ac_useropt_orig=$ac_useropt
1629 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1630 case $ac_user_opts in
1631 *"
1632"with_$ac_useropt"
1633"*) ;;
1634 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1635 ac_unrecognized_sep=', ';;
1636 esac
1637 eval with_$ac_useropt=no ;;
1638
1639 --x)
1640 # Obsolete; use --with-x.
1641 with_x=yes ;;
1642
1643 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1644 | --x-incl | --x-inc | --x-in | --x-i)
1645 ac_prev=x_includes ;;
1646 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1647 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1648 x_includes=$ac_optarg ;;
1649
1650 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1651 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1652 ac_prev=x_libraries ;;
1653 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1654 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1655 x_libraries=$ac_optarg ;;
1656
cristy98dddb52010-11-04 00:30:15 +00001657 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1658Try \`$0 --help' for more information"
cristy3ed852e2009-09-05 21:47:34 +00001659 ;;
1660
1661 *=*)
1662 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1663 # Reject names that are not valid shell variable names.
cristy8b350f62009-11-15 23:12:43 +00001664 case $ac_envvar in #(
1665 '' | [0-9]* | *[!_$as_cr_alnum]* )
cristy98dddb52010-11-04 00:30:15 +00001666 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
cristy8b350f62009-11-15 23:12:43 +00001667 esac
cristy3ed852e2009-09-05 21:47:34 +00001668 eval $ac_envvar=\$ac_optarg
1669 export $ac_envvar ;;
1670
1671 *)
1672 # FIXME: should be removed in autoconf 3.0.
1673 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1674 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1675 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
cristyda16f162011-02-19 23:52:17 +00001676 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
cristy3ed852e2009-09-05 21:47:34 +00001677 ;;
1678
1679 esac
1680done
1681
1682if test -n "$ac_prev"; then
1683 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cristy98dddb52010-11-04 00:30:15 +00001684 as_fn_error $? "missing argument to $ac_option"
cristy3ed852e2009-09-05 21:47:34 +00001685fi
1686
1687if test -n "$ac_unrecognized_opts"; then
1688 case $enable_option_checking in
1689 no) ;;
cristy98dddb52010-11-04 00:30:15 +00001690 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
cristy3ed852e2009-09-05 21:47:34 +00001691 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1692 esac
1693fi
1694
1695# Check all directory arguments for consistency.
1696for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1697 datadir sysconfdir sharedstatedir localstatedir includedir \
1698 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1699 libdir localedir mandir
1700do
1701 eval ac_val=\$$ac_var
1702 # Remove trailing slashes.
1703 case $ac_val in
1704 */ )
1705 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1706 eval $ac_var=\$ac_val;;
1707 esac
1708 # Be sure to have absolute directory names.
1709 case $ac_val in
1710 [\\/$]* | ?:[\\/]* ) continue;;
1711 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1712 esac
cristy98dddb52010-11-04 00:30:15 +00001713 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
cristy3ed852e2009-09-05 21:47:34 +00001714done
1715
1716# There might be people who depend on the old broken behavior: `$host'
1717# used to hold the argument of --host etc.
1718# FIXME: To remove some day.
1719build=$build_alias
1720host=$host_alias
1721target=$target_alias
1722
1723# FIXME: To remove some day.
1724if test "x$host_alias" != x; then
1725 if test "x$build_alias" = x; then
1726 cross_compiling=maybe
cristy3ed852e2009-09-05 21:47:34 +00001727 elif test "x$build_alias" != "x$host_alias"; then
1728 cross_compiling=yes
1729 fi
1730fi
1731
1732ac_tool_prefix=
1733test -n "$host_alias" && ac_tool_prefix=$host_alias-
1734
1735test "$silent" = yes && exec 6>/dev/null
1736
1737
1738ac_pwd=`pwd` && test -n "$ac_pwd" &&
1739ac_ls_di=`ls -di .` &&
1740ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cristy98dddb52010-11-04 00:30:15 +00001741 as_fn_error $? "working directory cannot be determined"
cristy3ed852e2009-09-05 21:47:34 +00001742test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cristy98dddb52010-11-04 00:30:15 +00001743 as_fn_error $? "pwd does not report name of working directory"
cristy3ed852e2009-09-05 21:47:34 +00001744
1745
1746# Find the source files, if location was not specified.
1747if test -z "$srcdir"; then
1748 ac_srcdir_defaulted=yes
1749 # Try the directory containing this script, then the parent directory.
1750 ac_confdir=`$as_dirname -- "$as_myself" ||
1751$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1752 X"$as_myself" : 'X\(//\)[^/]' \| \
1753 X"$as_myself" : 'X\(//\)$' \| \
1754 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1755$as_echo X"$as_myself" |
1756 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1757 s//\1/
1758 q
1759 }
1760 /^X\(\/\/\)[^/].*/{
1761 s//\1/
1762 q
1763 }
1764 /^X\(\/\/\)$/{
1765 s//\1/
1766 q
1767 }
1768 /^X\(\/\).*/{
1769 s//\1/
1770 q
1771 }
1772 s/.*/./; q'`
1773 srcdir=$ac_confdir
1774 if test ! -r "$srcdir/$ac_unique_file"; then
1775 srcdir=..
1776 fi
1777else
1778 ac_srcdir_defaulted=no
1779fi
1780if test ! -r "$srcdir/$ac_unique_file"; then
1781 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cristy98dddb52010-11-04 00:30:15 +00001782 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
cristy3ed852e2009-09-05 21:47:34 +00001783fi
1784ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1785ac_abs_confdir=`(
cristy98dddb52010-11-04 00:30:15 +00001786 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
cristy3ed852e2009-09-05 21:47:34 +00001787 pwd)`
1788# When building in place, set srcdir=.
1789if test "$ac_abs_confdir" = "$ac_pwd"; then
1790 srcdir=.
1791fi
1792# Remove unnecessary trailing slashes from srcdir.
1793# Double slashes in file names in object file debugging info
1794# mess up M-x gdb in Emacs.
1795case $srcdir in
1796*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1797esac
1798for ac_var in $ac_precious_vars; do
1799 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1800 eval ac_env_${ac_var}_value=\$${ac_var}
1801 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1802 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1803done
1804
1805#
1806# Report the --help message.
1807#
1808if test "$ac_init_help" = "long"; then
1809 # Omit some internal or obsolete options to make the list less imposing.
1810 # This message is too long to be a string in the A/UX 3.1 sh.
1811 cat <<_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00001812\`configure' configures ImageMagick 7.0.0-0 to adapt to many kinds of systems.
cristy3ed852e2009-09-05 21:47:34 +00001813
1814Usage: $0 [OPTION]... [VAR=VALUE]...
1815
1816To assign environment variables (e.g., CC, CFLAGS...), specify them as
1817VAR=VALUE. See below for descriptions of some of the useful variables.
1818
1819Defaults for the options are specified in brackets.
1820
1821Configuration:
1822 -h, --help display this help and exit
1823 --help=short display options specific to this package
1824 --help=recursive display the short help of all the included packages
1825 -V, --version display version information and exit
cristy98dddb52010-11-04 00:30:15 +00001826 -q, --quiet, --silent do not print \`checking ...' messages
cristy3ed852e2009-09-05 21:47:34 +00001827 --cache-file=FILE cache test results in FILE [disabled]
1828 -C, --config-cache alias for \`--cache-file=config.cache'
1829 -n, --no-create do not create output files
1830 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1831
1832Installation directories:
1833 --prefix=PREFIX install architecture-independent files in PREFIX
1834 [$ac_default_prefix]
1835 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1836 [PREFIX]
1837
1838By default, \`make install' will install all the files in
1839\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1840an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1841for instance \`--prefix=\$HOME'.
1842
1843For better control, use the options below.
1844
1845Fine tuning of the installation directories:
1846 --bindir=DIR user executables [EPREFIX/bin]
1847 --sbindir=DIR system admin executables [EPREFIX/sbin]
1848 --libexecdir=DIR program executables [EPREFIX/libexec]
1849 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1850 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1851 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1852 --libdir=DIR object code libraries [EPREFIX/lib]
1853 --includedir=DIR C header files [PREFIX/include]
1854 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1855 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1856 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1857 --infodir=DIR info documentation [DATAROOTDIR/info]
1858 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1859 --mandir=DIR man documentation [DATAROOTDIR/man]
cristy09b53e12011-10-14 12:47:22 +00001860 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick]
cristy3ed852e2009-09-05 21:47:34 +00001861 --htmldir=DIR html documentation [DOCDIR]
1862 --dvidir=DIR dvi documentation [DOCDIR]
1863 --pdfdir=DIR pdf documentation [DOCDIR]
1864 --psdir=DIR ps documentation [DOCDIR]
1865_ACEOF
1866
1867 cat <<\_ACEOF
1868
cristy73bd4a52010-10-05 11:24:23 +00001869Program names:
1870 --program-prefix=PREFIX prepend PREFIX to installed program names
1871 --program-suffix=SUFFIX append SUFFIX to installed program names
1872 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1873
cristy3ed852e2009-09-05 21:47:34 +00001874X features:
1875 --x-includes=DIR X include files are in DIR
1876 --x-libraries=DIR X library files are in DIR
1877
1878System types:
1879 --build=BUILD configure for building on BUILD [guessed]
1880 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1881 --target=TARGET configure for building compilers for TARGET [HOST]
1882_ACEOF
1883fi
1884
1885if test -n "$ac_init_help"; then
1886 case $ac_init_help in
cristy29eb34e2011-10-16 00:46:08 +00001887 short | recursive ) echo "Configuration of ImageMagick 7.0.0-0:";;
cristy3ed852e2009-09-05 21:47:34 +00001888 esac
1889 cat <<\_ACEOF
1890
1891Optional Features:
1892 --disable-option-checking ignore unrecognized --enable/--with options
1893 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1894 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
cristyc0890a62012-07-19 00:18:20 +00001895 --enable-silent-rules less verbose build output (undo: "make V=1")
1896 --disable-silent-rules verbose build output (undo: "make V=0")
cristy187791c2015-05-03 22:17:00 +00001897 --enable-reproducible-build
1898 enable reproducible build
cristyc0890a62012-07-19 00:18:20 +00001899 --enable-dependency-tracking
1900 do not reject slow dependency extractors
1901 --disable-dependency-tracking
1902 speeds up one-time build
cristy9b86f202012-11-28 21:55:35 +00001903 --enable-ld-version-script
1904 enable linker version script (default is enabled
1905 when possible)
cristya3824692012-03-30 17:22:07 +00001906 --enable-bounds-checking
1907 enable run-time bounds-checking
cristy3ed852e2009-09-05 21:47:34 +00001908 --enable-osx-universal-binary
cristycd4c5312009-11-22 01:19:08 +00001909 build universal binary on OS X [[default=no]]
cristy3ed852e2009-09-05 21:47:34 +00001910 --disable-openmp do not use OpenMP
cristy48794642012-09-02 15:19:08 +00001911 --enable-opencl enable OpenCL support
cristy3ed852e2009-09-05 21:47:34 +00001912 --disable-largefile omit support for large files
cristy73bd4a52010-10-05 11:24:23 +00001913 --enable-shared[=PKGS] build shared libraries [default=yes]
1914 --enable-static[=PKGS] build static libraries [default=yes]
1915 --enable-fast-install[=PKGS]
1916 optimize for fast installation [default=yes]
1917 --disable-libtool-lock avoid locking (might break parallel builds)
cristy3ed852e2009-09-05 21:47:34 +00001918 --enable-delegate-build look for delegate libraries in build directory
1919 --disable-deprecated exclude deprecated methods in MagickCore and
cristy3a75f062012-09-08 23:29:40 +00001920 MagickWand APIs
cristy3ed852e2009-09-05 21:47:34 +00001921 --disable-installed Formally install ImageMagick under PREFIX
1922 --disable-cipher disable enciphering and deciphering image pixels
cristy6e3607c2011-09-13 13:59:17 +00001923 --enable-zero-configuration
1924 enable self-contained, embeddable,
cristy3ed852e2009-09-05 21:47:34 +00001925 zero-configuration ImageMagick
cristyf314dbd2012-11-15 13:35:28 +00001926 --enable-hdri accurately represent the wide range of intensity
cristy3ed852e2009-09-05 21:47:34 +00001927 levels found in real scenes
cristy3ed852e2009-09-05 21:47:34 +00001928 --disable-assert disable assert() statements in build
cristyc0890a62012-07-19 00:18:20 +00001929 --enable-maintainer-mode
1930 enable make rules and dependencies not useful (and
1931 sometimes confusing) to the casual installer
cristy944e51f2013-04-16 18:45:02 +00001932 --enable-hugepages enable 'huge pages' support
cristy3ed852e2009-09-05 21:47:34 +00001933 --enable-ccmalloc enable 'ccmalloc' memory debug support
1934 --enable-efence enable 'efence' memory debug support
1935 --enable-prof enable 'prof' profiling support
1936 --enable-gprof enable 'gprof' profiling support
1937 --enable-gcov enable 'gcov' profiling support
cristy71d8c202012-03-20 17:05:01 +00001938 --enable-legacy-support install legacy command-line utilities (default disabled)
cristya0b81c32010-01-22 02:54:33 +00001939 --disable-assert turn off assertions
cristydd17feb2014-03-05 02:06:32 +00001940 --disable-docs disable building of documentation
cristy3ed852e2009-09-05 21:47:34 +00001941
1942Optional Packages:
1943 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1944 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
cristy73bd4a52010-10-05 11:24:23 +00001945 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
cristy7247bba2012-02-05 16:37:27 +00001946 --with-dmalloc use dmalloc, as in http://www.dmalloc.com
cristya0459972013-11-03 18:09:35 +00001947 --with-gcc-arch=<arch> use architecture <arch> for gcc -march/-mtune,
1948 instead of guessing
cristy670aa3c2011-11-03 00:54:00 +00001949 --includearch-dir=DIR ARCH specific include directory
1950 --sharearch-dir=DIR ARCH specific config directory
cristy2ec87cc2013-02-18 17:46:50 +00001951 --with-pkgconfigdir=DIR Path to the pkgconfig directory [LIBDIR/pkgconfig]
cristy3ed852e2009-09-05 21:47:34 +00001952 --without-threads disable threads support
cristy99bd5232011-12-07 14:38:20 +00001953 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
cristy73bd4a52010-10-05 11:24:23 +00001954 both]
cristyda16f162011-02-19 23:52:17 +00001955 --with-sysroot=DIR Search for dependent libraries within DIR
1956 (or the compiler's sysroot if not specified).
cristy3ed852e2009-09-05 21:47:34 +00001957 --with-modules enable building dynamically loadable modules
1958 --with-method-prefix=PREFIX
1959 prefix MagickCore API methods
1960 --with-quantum-depth=DEPTH
1961 number of bits in a pixel quantum (default 16)
1962 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1963 memory)
1964 --with-frozenpaths freeze delegate paths
1965 --without-magick-plus-plus
1966 disable build/install of Magick++
cristy3a75f062012-09-08 23:29:40 +00001967 --with-package-release-name=NAME
1968 encode this name into the shared library
cristy3ed852e2009-09-05 21:47:34 +00001969 --with-perl enable build/install of PerlMagick
1970 --with-perl-options=OPTIONS
1971 options to pass on command-line when generating
cristyfc3d0222012-02-07 15:05:57 +00001972 PerlMagick build file
cristy3b0097d2014-11-04 15:34:47 +00001973 --with-jemalloc enable jemalloc memory allocation library support
cristy3ed852e2009-09-05 21:47:34 +00001974 --with-umem enable umem memory allocation library support
1975 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1976 --without-bzlib disable BZLIB support
cristyc7083c12009-10-14 03:16:55 +00001977 --with-x use the X Window System
cristy3ed852e2009-09-05 21:47:34 +00001978 --without-zlib disable ZLIB support
cristy5a3dc992014-12-05 19:50:04 +00001979 --with-apple-font-dir=DIR
1980 Apple font directory
cristy3ed852e2009-09-05 21:47:34 +00001981 --with-autotrace enable autotrace support
1982 --without-dps disable Display Postscript support
cristy430a7312010-01-21 20:44:04 +00001983 --with-dejavu-font-dir=DIR
1984 DejaVu font directory
cristy3ed852e2009-09-05 21:47:34 +00001985 --without-fftw disable FFTW support
1986 --without-fpx disable FlashPIX support
cristy853d9902014-08-21 18:50:43 +00001987 --without-djvu disable DjVu support
cristy3ed852e2009-09-05 21:47:34 +00001988 --without-fontconfig disable fontconfig support
cristy81beccd2011-10-03 18:17:24 +00001989 --without-freetype disable Freetype support
cristybdabdd62013-03-04 17:43:36 +00001990 --with-gslib enable Ghostscript library support
cristy3ed852e2009-09-05 21:47:34 +00001991 --with-fontpath=DIR prepend to default font search path
1992 --with-gs-font-dir=DIR Ghostscript font directory
cristybdabdd62013-03-04 17:43:36 +00001993 --with-gvc enable GVC support
cristy3ed852e2009-09-05 21:47:34 +00001994 --without-jbig disable JBIG support
1995 --without-jpeg disable JPEG support
cristy71203402010-06-18 13:12:03 +00001996 --without-lcms disable lcms (v1.1X) support
cristy99db3872014-01-01 15:11:34 +00001997 --without-openjp2 disable OpenJP2 support
cristyf0c78232010-03-15 12:53:40 +00001998 --without-lqr disable Liquid Rescale support
cristyfbb0ef02010-12-19 02:32:11 +00001999 --without-lzma disable LZMA support
cristy3ed852e2009-09-05 21:47:34 +00002000 --without-openexr disable OpenEXR support
cristy41cbe8a2011-10-27 01:35:18 +00002001 --without-pango disable PANGO support
cristy3ed852e2009-09-05 21:47:34 +00002002 --without-png disable PNG support
cristy51633f52013-04-23 14:03:19 +00002003 --with-rsvg enable RSVG support
cristy3ed852e2009-09-05 21:47:34 +00002004 --without-tiff disable TIFF support
cristyb1860752011-03-14 00:27:46 +00002005 --without-webp disable WEBP support
cristy3ed852e2009-09-05 21:47:34 +00002006 --with-windows-font-dir=DIR
cristy5a3dc992014-12-05 19:50:04 +00002007 Windows font directory
cristyde3fc5d2012-02-12 15:40:47 +00002008 --with-wmf enable WMF support
cristy3ed852e2009-09-05 21:47:34 +00002009 --without-xml disable XML support
2010
2011Some influential environment variables:
2012 CC C compiler command
2013 CFLAGS C compiler flags
2014 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2015 nonstandard directory <lib dir>
2016 LIBS libraries to pass to the linker, e.g. -l<library>
cristycd4c5312009-11-22 01:19:08 +00002017 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cristy3ed852e2009-09-05 21:47:34 +00002018 you have headers in a nonstandard directory <include dir>
cristya0b81c32010-01-22 02:54:33 +00002019 CPP C preprocessor
cristy3ed852e2009-09-05 21:47:34 +00002020 CXX C++ compiler command
2021 CXXFLAGS C++ compiler flags
cristy73bd4a52010-10-05 11:24:23 +00002022 PKG_CONFIG path to pkg-config utility
cristy146497a2015-05-17 22:46:16 +00002023 PKG_CONFIG_PATH
2024 directories to add to pkg-config's search path
2025 PKG_CONFIG_LIBDIR
2026 path overriding pkg-config's built-in search path
nicolas6237c462010-10-05 06:11:49 +00002027 CXXCPP C++ preprocessor
cristy73bd4a52010-10-05 11:24:23 +00002028 XMKMF Path to xmkmf, Makefile generator for X Window System
cristy32f75d42015-06-05 18:46:23 +00002029 ZLIB_CFLAGS C compiler flags for ZLIB, overriding pkg-config
2030 ZLIB_LIBS linker flags for ZLIB, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00002031 AUTOTRACE_CFLAGS
2032 C compiler flags for AUTOTRACE, overriding pkg-config
2033 AUTOTRACE_LIBS
2034 linker flags for AUTOTRACE, overriding pkg-config
cristy32f75d42015-06-05 18:46:23 +00002035 fftw3_CFLAGS
2036 C compiler flags for fftw3, overriding pkg-config
2037 fftw3_LIBS linker flags for fftw3, overriding pkg-config
2038 ddjvuapi_CFLAGS
2039 C compiler flags for ddjvuapi, overriding pkg-config
2040 ddjvuapi_LIBS
2041 linker flags for ddjvuapi, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00002042 FONTCONFIG_CFLAGS
2043 C compiler flags for FONTCONFIG, overriding pkg-config
2044 FONTCONFIG_LIBS
2045 linker flags for FONTCONFIG, overriding pkg-config
cristy03f187e2013-01-24 00:22:19 +00002046 FREETYPE_CFLAGS
2047 C compiler flags for FREETYPE, overriding pkg-config
2048 FREETYPE_LIBS
2049 linker flags for FREETYPE, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00002050 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
2051 GVC_LIBS linker flags for GVC, overriding pkg-config
cristy32f75d42015-06-05 18:46:23 +00002052 LCMS_CFLAGS C compiler flags for LCMS, overriding pkg-config
2053 LCMS_LIBS linker flags for LCMS, overriding pkg-config
cristy99db3872014-01-01 15:11:34 +00002054 LIBOPENJP2_CFLAGS
2055 C compiler flags for LIBOPENJP2, overriding pkg-config
2056 LIBOPENJP2_LIBS
2057 linker flags for LIBOPENJP2, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00002058 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
2059 LQR_LIBS linker flags for LQR, overriding pkg-config
cristyb94e5002011-11-14 13:20:10 +00002060 LZMA_CFLAGS C compiler flags for LZMA, overriding pkg-config
2061 LZMA_LIBS linker flags for LZMA, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00002062 OPENEXR_CFLAGS
2063 C compiler flags for OPENEXR, overriding pkg-config
2064 OPENEXR_LIBS
2065 linker flags for OPENEXR, overriding pkg-config
cristy41cbe8a2011-10-27 01:35:18 +00002066 PANGO_CFLAGS
2067 C compiler flags for PANGO, overriding pkg-config
2068 PANGO_LIBS linker flags for PANGO, overriding pkg-config
cristy32f75d42015-06-05 18:46:23 +00002069 PNG_CFLAGS C compiler flags for PNG, overriding pkg-config
2070 PNG_LIBS linker flags for PNG, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00002071 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
2072 RSVG_LIBS linker flags for RSVG, overriding pkg-config
2073 CAIRO_SVG_CFLAGS
2074 C compiler flags for CAIRO_SVG, overriding pkg-config
2075 CAIRO_SVG_LIBS
2076 linker flags for CAIRO_SVG, overriding pkg-config
cristy32f75d42015-06-05 18:46:23 +00002077 WMF_CFLAGS C compiler flags for WMF, overriding pkg-config
2078 WMF_LIBS linker flags for WMF, overriding pkg-config
2079 XML_CFLAGS C compiler flags for XML, overriding pkg-config
2080 XML_LIBS linker flags for XML, overriding pkg-config
cristy3ed852e2009-09-05 21:47:34 +00002081
2082Use these variables to override the choices made by `configure' or to help
2083it to find libraries and programs with nonstandard names/locations.
2084
2085Report bugs to <http://www.imagemagick.org>.
2086_ACEOF
2087ac_status=$?
2088fi
2089
2090if test "$ac_init_help" = "recursive"; then
2091 # If there are subdirs, report their specific --help.
2092 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2093 test -d "$ac_dir" ||
2094 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2095 continue
2096 ac_builddir=.
2097
2098case "$ac_dir" in
2099.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2100*)
2101 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2102 # A ".." for each directory in $ac_dir_suffix.
2103 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2104 case $ac_top_builddir_sub in
2105 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2106 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2107 esac ;;
2108esac
2109ac_abs_top_builddir=$ac_pwd
2110ac_abs_builddir=$ac_pwd$ac_dir_suffix
2111# for backward compatibility:
2112ac_top_builddir=$ac_top_build_prefix
2113
2114case $srcdir in
2115 .) # We are building in place.
2116 ac_srcdir=.
2117 ac_top_srcdir=$ac_top_builddir_sub
2118 ac_abs_top_srcdir=$ac_pwd ;;
2119 [\\/]* | ?:[\\/]* ) # Absolute name.
2120 ac_srcdir=$srcdir$ac_dir_suffix;
2121 ac_top_srcdir=$srcdir
2122 ac_abs_top_srcdir=$srcdir ;;
2123 *) # Relative name.
2124 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2125 ac_top_srcdir=$ac_top_build_prefix$srcdir
2126 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2127esac
2128ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2129
2130 cd "$ac_dir" || { ac_status=$?; continue; }
2131 # Check for guested configure.
2132 if test -f "$ac_srcdir/configure.gnu"; then
2133 echo &&
2134 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2135 elif test -f "$ac_srcdir/configure"; then
2136 echo &&
2137 $SHELL "$ac_srcdir/configure" --help=recursive
2138 else
2139 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2140 fi || ac_status=$?
2141 cd "$ac_pwd" || { ac_status=$?; break; }
2142 done
2143fi
2144
2145test -n "$ac_init_help" && exit $ac_status
2146if $ac_init_version; then
2147 cat <<\_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00002148ImageMagick configure 7.0.0-0
cristy14fefe52012-05-21 00:59:18 +00002149generated by GNU Autoconf 2.69
cristy3ed852e2009-09-05 21:47:34 +00002150
cristy14fefe52012-05-21 00:59:18 +00002151Copyright (C) 2012 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +00002152This configure script is free software; the Free Software Foundation
2153gives unlimited permission to copy, distribute and modify it.
2154_ACEOF
2155 exit
2156fi
cristy8b350f62009-11-15 23:12:43 +00002157
2158## ------------------------ ##
2159## Autoconf initialization. ##
2160## ------------------------ ##
2161
2162# ac_fn_c_try_compile LINENO
2163# --------------------------
2164# Try to compile conftest.$ac_ext, and return whether this succeeded.
2165ac_fn_c_try_compile ()
2166{
2167 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2168 rm -f conftest.$ac_objext
2169 if { { ac_try="$ac_compile"
2170case "(($ac_try" in
2171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2172 *) ac_try_echo=$ac_try;;
2173esac
2174eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2175$as_echo "$ac_try_echo"; } >&5
2176 (eval "$ac_compile") 2>conftest.err
2177 ac_status=$?
2178 if test -s conftest.err; then
2179 grep -v '^ *+' conftest.err >conftest.er1
2180 cat conftest.er1 >&5
2181 mv -f conftest.er1 conftest.err
2182 fi
2183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2184 test $ac_status = 0; } && {
2185 test -z "$ac_c_werror_flag" ||
2186 test ! -s conftest.err
2187 } && test -s conftest.$ac_objext; then :
2188 ac_retval=0
2189else
2190 $as_echo "$as_me: failed program was:" >&5
2191sed 's/^/| /' conftest.$ac_ext >&5
2192
2193 ac_retval=1
2194fi
cristyda16f162011-02-19 23:52:17 +00002195 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002196 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002197
2198} # ac_fn_c_try_compile
2199
cristy95646052009-11-28 23:05:30 +00002200# ac_fn_c_try_cpp LINENO
2201# ----------------------
2202# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2203ac_fn_c_try_cpp ()
2204{
2205 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2206 if { { ac_try="$ac_cpp conftest.$ac_ext"
2207case "(($ac_try" in
2208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2209 *) ac_try_echo=$ac_try;;
2210esac
2211eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2212$as_echo "$ac_try_echo"; } >&5
2213 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2214 ac_status=$?
2215 if test -s conftest.err; then
2216 grep -v '^ *+' conftest.err >conftest.er1
2217 cat conftest.er1 >&5
2218 mv -f conftest.er1 conftest.err
2219 fi
2220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002221 test $ac_status = 0; } > conftest.i && {
cristy95646052009-11-28 23:05:30 +00002222 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2223 test ! -s conftest.err
2224 }; then :
2225 ac_retval=0
2226else
2227 $as_echo "$as_me: failed program was:" >&5
2228sed 's/^/| /' conftest.$ac_ext >&5
2229
2230 ac_retval=1
2231fi
cristyda16f162011-02-19 23:52:17 +00002232 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy95646052009-11-28 23:05:30 +00002233 as_fn_set_status $ac_retval
2234
2235} # ac_fn_c_try_cpp
2236
cristy8b350f62009-11-15 23:12:43 +00002237# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2238# -------------------------------------------------------
2239# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2240# the include files in INCLUDES and setting the cache variable VAR
2241# accordingly.
2242ac_fn_c_check_header_mongrel ()
2243{
2244 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00002245 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2247$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002248if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002249 $as_echo_n "(cached) " >&6
2250fi
2251eval ac_res=\$$3
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2253$as_echo "$ac_res" >&6; }
2254else
2255 # Is the header compilable?
2256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2257$as_echo_n "checking $2 usability... " >&6; }
2258cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2259/* end confdefs.h. */
2260$4
2261#include <$2>
2262_ACEOF
2263if ac_fn_c_try_compile "$LINENO"; then :
2264 ac_header_compiler=yes
2265else
2266 ac_header_compiler=no
2267fi
2268rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2270$as_echo "$ac_header_compiler" >&6; }
2271
2272# Is the header present?
2273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2274$as_echo_n "checking $2 presence... " >&6; }
2275cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2276/* end confdefs.h. */
2277#include <$2>
2278_ACEOF
2279if ac_fn_c_try_cpp "$LINENO"; then :
2280 ac_header_preproc=yes
2281else
2282 ac_header_preproc=no
2283fi
cristyda16f162011-02-19 23:52:17 +00002284rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00002285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2286$as_echo "$ac_header_preproc" >&6; }
2287
2288# So? What about this header?
2289case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2290 yes:no: )
2291 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2292$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2294$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2295 ;;
2296 no:yes:* )
2297 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2298$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2299 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2300$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2301 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2302$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2304$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2305 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2306$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00002307( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00002308## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00002309## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00002310 ) | sed "s/^/$as_me: WARNING: /" >&2
2311 ;;
2312esac
2313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2314$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002315if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002316 $as_echo_n "(cached) " >&6
2317else
2318 eval "$3=\$ac_header_compiler"
2319fi
2320eval ac_res=\$$3
2321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2322$as_echo "$ac_res" >&6; }
2323fi
cristyda16f162011-02-19 23:52:17 +00002324 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002325
2326} # ac_fn_c_check_header_mongrel
2327
2328# ac_fn_c_try_run LINENO
2329# ----------------------
2330# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2331# that executables *can* be run.
2332ac_fn_c_try_run ()
2333{
2334 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2335 if { { ac_try="$ac_link"
2336case "(($ac_try" in
2337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2338 *) ac_try_echo=$ac_try;;
2339esac
2340eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2341$as_echo "$ac_try_echo"; } >&5
2342 (eval "$ac_link") 2>&5
2343 ac_status=$?
2344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2345 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2346 { { case "(($ac_try" in
2347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2348 *) ac_try_echo=$ac_try;;
2349esac
2350eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2351$as_echo "$ac_try_echo"; } >&5
2352 (eval "$ac_try") 2>&5
2353 ac_status=$?
2354 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2355 test $ac_status = 0; }; }; then :
2356 ac_retval=0
2357else
2358 $as_echo "$as_me: program exited with status $ac_status" >&5
2359 $as_echo "$as_me: failed program was:" >&5
2360sed 's/^/| /' conftest.$ac_ext >&5
2361
2362 ac_retval=$ac_status
2363fi
2364 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002365 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002366 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002367
2368} # ac_fn_c_try_run
2369
2370# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2371# -------------------------------------------------------
2372# Tests whether HEADER exists and can be compiled using the include files in
2373# INCLUDES, setting the cache variable VAR accordingly.
2374ac_fn_c_check_header_compile ()
2375{
2376 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2378$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002379if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002380 $as_echo_n "(cached) " >&6
2381else
2382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2383/* end confdefs.h. */
2384$4
2385#include <$2>
2386_ACEOF
2387if ac_fn_c_try_compile "$LINENO"; then :
2388 eval "$3=yes"
2389else
2390 eval "$3=no"
2391fi
2392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2393fi
2394eval ac_res=\$$3
2395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2396$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002397 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002398
2399} # ac_fn_c_check_header_compile
2400
cristya0b81c32010-01-22 02:54:33 +00002401# ac_fn_cxx_try_compile LINENO
2402# ----------------------------
2403# Try to compile conftest.$ac_ext, and return whether this succeeded.
2404ac_fn_cxx_try_compile ()
2405{
2406 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2407 rm -f conftest.$ac_objext
2408 if { { ac_try="$ac_compile"
2409case "(($ac_try" in
2410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2411 *) ac_try_echo=$ac_try;;
2412esac
2413eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2414$as_echo "$ac_try_echo"; } >&5
2415 (eval "$ac_compile") 2>conftest.err
2416 ac_status=$?
2417 if test -s conftest.err; then
2418 grep -v '^ *+' conftest.err >conftest.er1
2419 cat conftest.er1 >&5
2420 mv -f conftest.er1 conftest.err
2421 fi
2422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2423 test $ac_status = 0; } && {
2424 test -z "$ac_cxx_werror_flag" ||
2425 test ! -s conftest.err
2426 } && test -s conftest.$ac_objext; then :
2427 ac_retval=0
2428else
2429 $as_echo "$as_me: failed program was:" >&5
2430sed 's/^/| /' conftest.$ac_ext >&5
2431
2432 ac_retval=1
2433fi
cristyda16f162011-02-19 23:52:17 +00002434 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristya0b81c32010-01-22 02:54:33 +00002435 as_fn_set_status $ac_retval
2436
2437} # ac_fn_cxx_try_compile
2438
cristyd95b7a52013-10-23 13:12:53 +00002439# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2440# --------------------------------------------
2441# Tries to find the compile-time value of EXPR in a program that includes
2442# INCLUDES, setting VAR accordingly. Returns whether the value could be
2443# computed
2444ac_fn_c_compute_int ()
2445{
2446 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2447 if test "$cross_compiling" = yes; then
2448 # Depending upon the size, compute the lo and hi bounds.
2449cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2450/* end confdefs.h. */
2451$4
2452int
2453main ()
2454{
2455static int test_array [1 - 2 * !(($2) >= 0)];
2456test_array [0] = 0;
2457return test_array [0];
2458
2459 ;
2460 return 0;
2461}
2462_ACEOF
2463if ac_fn_c_try_compile "$LINENO"; then :
2464 ac_lo=0 ac_mid=0
2465 while :; do
2466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2467/* end confdefs.h. */
2468$4
2469int
2470main ()
2471{
2472static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2473test_array [0] = 0;
2474return test_array [0];
2475
2476 ;
2477 return 0;
2478}
2479_ACEOF
2480if ac_fn_c_try_compile "$LINENO"; then :
2481 ac_hi=$ac_mid; break
2482else
2483 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2484 if test $ac_lo -le $ac_mid; then
2485 ac_lo= ac_hi=
2486 break
2487 fi
2488 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2489fi
2490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2491 done
2492else
2493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2494/* end confdefs.h. */
2495$4
2496int
2497main ()
2498{
2499static int test_array [1 - 2 * !(($2) < 0)];
2500test_array [0] = 0;
2501return test_array [0];
2502
2503 ;
2504 return 0;
2505}
2506_ACEOF
2507if ac_fn_c_try_compile "$LINENO"; then :
2508 ac_hi=-1 ac_mid=-1
2509 while :; do
2510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2511/* end confdefs.h. */
2512$4
2513int
2514main ()
2515{
2516static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2517test_array [0] = 0;
2518return test_array [0];
2519
2520 ;
2521 return 0;
2522}
2523_ACEOF
2524if ac_fn_c_try_compile "$LINENO"; then :
2525 ac_lo=$ac_mid; break
2526else
2527 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2528 if test $ac_mid -le $ac_hi; then
2529 ac_lo= ac_hi=
2530 break
2531 fi
2532 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2533fi
2534rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2535 done
2536else
2537 ac_lo= ac_hi=
2538fi
2539rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2540fi
2541rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2542# Binary search between lo and hi bounds.
2543while test "x$ac_lo" != "x$ac_hi"; do
2544 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2546/* end confdefs.h. */
2547$4
2548int
2549main ()
2550{
2551static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2552test_array [0] = 0;
2553return test_array [0];
2554
2555 ;
2556 return 0;
2557}
2558_ACEOF
2559if ac_fn_c_try_compile "$LINENO"; then :
2560 ac_hi=$ac_mid
2561else
2562 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2563fi
2564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2565done
2566case $ac_lo in #((
2567?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2568'') ac_retval=1 ;;
2569esac
2570 else
2571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2572/* end confdefs.h. */
2573$4
2574static long int longval () { return $2; }
2575static unsigned long int ulongval () { return $2; }
2576#include <stdio.h>
2577#include <stdlib.h>
2578int
2579main ()
2580{
2581
2582 FILE *f = fopen ("conftest.val", "w");
2583 if (! f)
2584 return 1;
2585 if (($2) < 0)
2586 {
2587 long int i = longval ();
2588 if (i != ($2))
2589 return 1;
2590 fprintf (f, "%ld", i);
2591 }
2592 else
2593 {
2594 unsigned long int i = ulongval ();
2595 if (i != ($2))
2596 return 1;
2597 fprintf (f, "%lu", i);
2598 }
2599 /* Do not output a trailing newline, as this causes \r\n confusion
2600 on some platforms. */
2601 return ferror (f) || fclose (f) != 0;
2602
2603 ;
2604 return 0;
2605}
2606_ACEOF
2607if ac_fn_c_try_run "$LINENO"; then :
2608 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2609else
2610 ac_retval=1
2611fi
2612rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2613 conftest.$ac_objext conftest.beam conftest.$ac_ext
2614rm -f conftest.val
2615
2616 fi
2617 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2618 as_fn_set_status $ac_retval
2619
2620} # ac_fn_c_compute_int
2621
cristy8b350f62009-11-15 23:12:43 +00002622# ac_fn_c_try_link LINENO
2623# -----------------------
2624# Try to link conftest.$ac_ext, and return whether this succeeded.
2625ac_fn_c_try_link ()
2626{
2627 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2628 rm -f conftest.$ac_objext conftest$ac_exeext
2629 if { { ac_try="$ac_link"
2630case "(($ac_try" in
2631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2632 *) ac_try_echo=$ac_try;;
2633esac
2634eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2635$as_echo "$ac_try_echo"; } >&5
2636 (eval "$ac_link") 2>conftest.err
2637 ac_status=$?
2638 if test -s conftest.err; then
2639 grep -v '^ *+' conftest.err >conftest.er1
2640 cat conftest.er1 >&5
2641 mv -f conftest.er1 conftest.err
2642 fi
2643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2644 test $ac_status = 0; } && {
2645 test -z "$ac_c_werror_flag" ||
2646 test ! -s conftest.err
2647 } && test -s conftest$ac_exeext && {
2648 test "$cross_compiling" = yes ||
cristy14fefe52012-05-21 00:59:18 +00002649 test -x conftest$ac_exeext
cristy8b350f62009-11-15 23:12:43 +00002650 }; then :
2651 ac_retval=0
2652else
2653 $as_echo "$as_me: failed program was:" >&5
2654sed 's/^/| /' conftest.$ac_ext >&5
2655
2656 ac_retval=1
2657fi
2658 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2659 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2660 # interfere with the next link command; also delete a directory that is
2661 # left behind by Apple's compiler. We do this before executing the actions.
2662 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002663 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002664 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002665
2666} # ac_fn_c_try_link
2667
cristy73bd4a52010-10-05 11:24:23 +00002668# ac_fn_c_check_func LINENO FUNC VAR
2669# ----------------------------------
2670# Tests whether FUNC exists, setting the cache variable VAR accordingly
2671ac_fn_c_check_func ()
2672{
2673 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2675$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002676if eval \${$3+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00002677 $as_echo_n "(cached) " >&6
2678else
2679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2680/* end confdefs.h. */
2681/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2682 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2683#define $2 innocuous_$2
2684
2685/* System header to define __stub macros and hopefully few prototypes,
2686 which can conflict with char $2 (); below.
2687 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2688 <limits.h> exists even on freestanding compilers. */
2689
2690#ifdef __STDC__
2691# include <limits.h>
2692#else
2693# include <assert.h>
2694#endif
2695
2696#undef $2
2697
2698/* Override any GCC internal prototype to avoid an error.
2699 Use char because int might match the return type of a GCC
2700 builtin and then its argument prototype would still apply. */
2701#ifdef __cplusplus
2702extern "C"
2703#endif
2704char $2 ();
2705/* The GNU C library defines this for functions which it implements
2706 to always fail with ENOSYS. Some functions are actually named
2707 something starting with __ and the normal name is an alias. */
2708#if defined __stub_$2 || defined __stub___$2
2709choke me
2710#endif
2711
2712int
2713main ()
2714{
2715return $2 ();
2716 ;
2717 return 0;
2718}
2719_ACEOF
2720if ac_fn_c_try_link "$LINENO"; then :
2721 eval "$3=yes"
2722else
2723 eval "$3=no"
2724fi
2725rm -f core conftest.err conftest.$ac_objext \
2726 conftest$ac_exeext conftest.$ac_ext
2727fi
2728eval ac_res=\$$3
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2730$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002731 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002732
2733} # ac_fn_c_check_func
2734
2735# ac_fn_cxx_try_cpp LINENO
2736# ------------------------
2737# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2738ac_fn_cxx_try_cpp ()
2739{
2740 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2741 if { { ac_try="$ac_cpp conftest.$ac_ext"
2742case "(($ac_try" in
2743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2744 *) ac_try_echo=$ac_try;;
2745esac
2746eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2747$as_echo "$ac_try_echo"; } >&5
2748 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2749 ac_status=$?
2750 if test -s conftest.err; then
2751 grep -v '^ *+' conftest.err >conftest.er1
2752 cat conftest.er1 >&5
2753 mv -f conftest.er1 conftest.err
2754 fi
2755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002756 test $ac_status = 0; } > conftest.i && {
cristy73bd4a52010-10-05 11:24:23 +00002757 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2758 test ! -s conftest.err
2759 }; then :
2760 ac_retval=0
2761else
2762 $as_echo "$as_me: failed program was:" >&5
2763sed 's/^/| /' conftest.$ac_ext >&5
2764
2765 ac_retval=1
2766fi
cristyda16f162011-02-19 23:52:17 +00002767 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002768 as_fn_set_status $ac_retval
2769
2770} # ac_fn_cxx_try_cpp
2771
2772# ac_fn_cxx_try_link LINENO
2773# -------------------------
2774# Try to link conftest.$ac_ext, and return whether this succeeded.
2775ac_fn_cxx_try_link ()
2776{
2777 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2778 rm -f conftest.$ac_objext conftest$ac_exeext
2779 if { { ac_try="$ac_link"
2780case "(($ac_try" in
2781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2782 *) ac_try_echo=$ac_try;;
2783esac
2784eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2785$as_echo "$ac_try_echo"; } >&5
2786 (eval "$ac_link") 2>conftest.err
2787 ac_status=$?
2788 if test -s conftest.err; then
2789 grep -v '^ *+' conftest.err >conftest.er1
2790 cat conftest.er1 >&5
2791 mv -f conftest.er1 conftest.err
2792 fi
2793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2794 test $ac_status = 0; } && {
2795 test -z "$ac_cxx_werror_flag" ||
2796 test ! -s conftest.err
2797 } && test -s conftest$ac_exeext && {
2798 test "$cross_compiling" = yes ||
cristy14fefe52012-05-21 00:59:18 +00002799 test -x conftest$ac_exeext
cristy73bd4a52010-10-05 11:24:23 +00002800 }; then :
2801 ac_retval=0
2802else
2803 $as_echo "$as_me: failed program was:" >&5
2804sed 's/^/| /' conftest.$ac_ext >&5
2805
2806 ac_retval=1
2807fi
2808 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2809 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2810 # interfere with the next link command; also delete a directory that is
2811 # left behind by Apple's compiler. We do this before executing the actions.
2812 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002813 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002814 as_fn_set_status $ac_retval
2815
2816} # ac_fn_cxx_try_link
2817
cristy8b350f62009-11-15 23:12:43 +00002818# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2819# -------------------------------------------
2820# Tests whether TYPE exists after having included INCLUDES, setting cache
2821# variable VAR accordingly.
2822ac_fn_c_check_type ()
2823{
2824 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2826$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002827if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002828 $as_echo_n "(cached) " >&6
2829else
2830 eval "$3=no"
2831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2832/* end confdefs.h. */
2833$4
2834int
2835main ()
2836{
2837if (sizeof ($2))
2838 return 0;
2839 ;
2840 return 0;
2841}
2842_ACEOF
2843if ac_fn_c_try_compile "$LINENO"; then :
2844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2845/* end confdefs.h. */
2846$4
2847int
2848main ()
2849{
2850if (sizeof (($2)))
2851 return 0;
2852 ;
2853 return 0;
2854}
2855_ACEOF
2856if ac_fn_c_try_compile "$LINENO"; then :
2857
2858else
2859 eval "$3=yes"
2860fi
2861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2862fi
2863rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2864fi
2865eval ac_res=\$$3
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2867$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002868 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002869
2870} # ac_fn_c_check_type
2871
cristy92703d82010-04-26 00:18:18 +00002872# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2873# ----------------------------------------------------
2874# Tries to find if the field MEMBER exists in type AGGR, after including
2875# INCLUDES, setting cache variable VAR accordingly.
2876ac_fn_c_check_member ()
2877{
2878 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2880$as_echo_n "checking for $2.$3... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002881if eval \${$4+:} false; then :
cristy92703d82010-04-26 00:18:18 +00002882 $as_echo_n "(cached) " >&6
2883else
2884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2885/* end confdefs.h. */
2886$5
2887int
2888main ()
2889{
2890static $2 ac_aggr;
2891if (ac_aggr.$3)
2892return 0;
2893 ;
2894 return 0;
2895}
2896_ACEOF
2897if ac_fn_c_try_compile "$LINENO"; then :
2898 eval "$4=yes"
2899else
2900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2901/* end confdefs.h. */
2902$5
2903int
2904main ()
2905{
2906static $2 ac_aggr;
2907if (sizeof ac_aggr.$3)
2908return 0;
2909 ;
2910 return 0;
2911}
2912_ACEOF
2913if ac_fn_c_try_compile "$LINENO"; then :
2914 eval "$4=yes"
2915else
2916 eval "$4=no"
2917fi
2918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2919fi
2920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2921fi
2922eval ac_res=\$$4
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2924$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002925 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy92703d82010-04-26 00:18:18 +00002926
2927} # ac_fn_c_check_member
2928
cristy5eef09f2012-10-16 12:08:28 +00002929# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2930# ---------------------------------------------
2931# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2932# accordingly.
2933ac_fn_c_check_decl ()
2934{
2935 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2936 as_decl_name=`echo $2|sed 's/ *(.*//'`
2937 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2939$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2940if eval \${$3+:} false; then :
2941 $as_echo_n "(cached) " >&6
2942else
2943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2944/* end confdefs.h. */
2945$4
2946int
2947main ()
2948{
2949#ifndef $as_decl_name
2950#ifdef __cplusplus
2951 (void) $as_decl_use;
2952#else
2953 (void) $as_decl_name;
2954#endif
2955#endif
2956
2957 ;
2958 return 0;
2959}
2960_ACEOF
2961if ac_fn_c_try_compile "$LINENO"; then :
2962 eval "$3=yes"
2963else
2964 eval "$3=no"
2965fi
2966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2967fi
2968eval ac_res=\$$3
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2970$as_echo "$ac_res" >&6; }
2971 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2972
2973} # ac_fn_c_check_decl
2974
cristy501c8042011-05-26 17:46:28 +00002975# ac_fn_c_find_intX_t LINENO BITS VAR
2976# -----------------------------------
2977# Finds a signed integer type with width BITS, setting cache variable VAR
2978# accordingly.
2979ac_fn_c_find_intX_t ()
2980{
2981 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2983$as_echo_n "checking for int$2_t... " >&6; }
2984if eval \${$3+:} false; then :
2985 $as_echo_n "(cached) " >&6
2986else
2987 eval "$3=no"
2988 # Order is important - never check a type that is potentially smaller
2989 # than half of the expected target width.
2990 for ac_type in int$2_t 'int' 'long int' \
2991 'long long int' 'short int' 'signed char'; do
2992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2993/* end confdefs.h. */
2994$ac_includes_default
2995 enum { N = $2 / 2 - 1 };
2996int
2997main ()
2998{
2999static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
cristy14fefe52012-05-21 00:59:18 +00003000test_array [0] = 0;
3001return test_array [0];
cristy501c8042011-05-26 17:46:28 +00003002
3003 ;
3004 return 0;
3005}
3006_ACEOF
3007if ac_fn_c_try_compile "$LINENO"; then :
3008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3009/* end confdefs.h. */
3010$ac_includes_default
3011 enum { N = $2 / 2 - 1 };
3012int
3013main ()
3014{
3015static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
3016 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
cristy14fefe52012-05-21 00:59:18 +00003017test_array [0] = 0;
3018return test_array [0];
cristy501c8042011-05-26 17:46:28 +00003019
3020 ;
3021 return 0;
3022}
3023_ACEOF
3024if ac_fn_c_try_compile "$LINENO"; then :
3025
3026else
3027 case $ac_type in #(
3028 int$2_t) :
3029 eval "$3=yes" ;; #(
3030 *) :
3031 eval "$3=\$ac_type" ;;
3032esac
3033fi
3034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3035fi
3036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3037 if eval test \"x\$"$3"\" = x"no"; then :
3038
3039else
3040 break
3041fi
3042 done
3043fi
3044eval ac_res=\$$3
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3046$as_echo "$ac_res" >&6; }
3047 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3048
3049} # ac_fn_c_find_intX_t
3050
3051# ac_fn_c_find_uintX_t LINENO BITS VAR
3052# ------------------------------------
3053# Finds an unsigned integer type with width BITS, setting cache variable VAR
3054# accordingly.
3055ac_fn_c_find_uintX_t ()
3056{
3057 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
3059$as_echo_n "checking for uint$2_t... " >&6; }
3060if eval \${$3+:} false; then :
3061 $as_echo_n "(cached) " >&6
3062else
3063 eval "$3=no"
3064 # Order is important - never check a type that is potentially smaller
3065 # than half of the expected target width.
3066 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
3067 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
3068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3069/* end confdefs.h. */
3070$ac_includes_default
3071int
3072main ()
3073{
3074static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
cristy14fefe52012-05-21 00:59:18 +00003075test_array [0] = 0;
3076return test_array [0];
cristy501c8042011-05-26 17:46:28 +00003077
3078 ;
3079 return 0;
3080}
3081_ACEOF
3082if ac_fn_c_try_compile "$LINENO"; then :
3083 case $ac_type in #(
3084 uint$2_t) :
3085 eval "$3=yes" ;; #(
3086 *) :
3087 eval "$3=\$ac_type" ;;
3088esac
3089fi
3090rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3091 if eval test \"x\$"$3"\" = x"no"; then :
3092
3093else
3094 break
3095fi
3096 done
3097fi
3098eval ac_res=\$$3
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3100$as_echo "$ac_res" >&6; }
3101 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3102
3103} # ac_fn_c_find_uintX_t
3104
cristy8b350f62009-11-15 23:12:43 +00003105# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
3106# ---------------------------------------------------------
3107# Tests whether HEADER exists, giving a warning if it cannot be compiled using
3108# the include files in INCLUDES and setting the cache variable VAR
3109# accordingly.
3110ac_fn_cxx_check_header_mongrel ()
3111{
3112 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00003113 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3115$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003116if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003117 $as_echo_n "(cached) " >&6
3118fi
3119eval ac_res=\$$3
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3121$as_echo "$ac_res" >&6; }
3122else
3123 # Is the header compilable?
3124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
3125$as_echo_n "checking $2 usability... " >&6; }
3126cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3127/* end confdefs.h. */
3128$4
3129#include <$2>
3130_ACEOF
3131if ac_fn_cxx_try_compile "$LINENO"; then :
3132 ac_header_compiler=yes
3133else
3134 ac_header_compiler=no
3135fi
3136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
3138$as_echo "$ac_header_compiler" >&6; }
3139
3140# Is the header present?
3141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
3142$as_echo_n "checking $2 presence... " >&6; }
3143cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3144/* end confdefs.h. */
3145#include <$2>
3146_ACEOF
3147if ac_fn_cxx_try_cpp "$LINENO"; then :
3148 ac_header_preproc=yes
3149else
3150 ac_header_preproc=no
3151fi
cristyda16f162011-02-19 23:52:17 +00003152rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00003153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
3154$as_echo "$ac_header_preproc" >&6; }
3155
3156# So? What about this header?
3157case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
3158 yes:no: )
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
3160$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3162$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3163 ;;
3164 no:yes:* )
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
3166$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
3168$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
3170$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
3172$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3174$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003175( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00003176## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00003177## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00003178 ) | sed "s/^/$as_me: WARNING: /" >&2
3179 ;;
3180esac
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3182$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003183if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003184 $as_echo_n "(cached) " >&6
3185else
3186 eval "$3=\$ac_header_compiler"
3187fi
3188eval ac_res=\$$3
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3190$as_echo "$ac_res" >&6; }
3191fi
cristyda16f162011-02-19 23:52:17 +00003192 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00003193
3194} # ac_fn_cxx_check_header_mongrel
cristy3ed852e2009-09-05 21:47:34 +00003195cat >config.log <<_ACEOF
3196This file contains any messages produced by compilers while
3197running configure, to aid debugging if configure makes a mistake.
3198
cristy29eb34e2011-10-16 00:46:08 +00003199It was created by ImageMagick $as_me 7.0.0-0, which was
cristy14fefe52012-05-21 00:59:18 +00003200generated by GNU Autoconf 2.69. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +00003201
3202 $ $0 $@
3203
3204_ACEOF
3205exec 5>>config.log
3206{
3207cat <<_ASUNAME
3208## --------- ##
3209## Platform. ##
3210## --------- ##
3211
3212hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3213uname -m = `(uname -m) 2>/dev/null || echo unknown`
3214uname -r = `(uname -r) 2>/dev/null || echo unknown`
3215uname -s = `(uname -s) 2>/dev/null || echo unknown`
3216uname -v = `(uname -v) 2>/dev/null || echo unknown`
3217
3218/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3219/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3220
3221/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3222/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3223/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3224/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3225/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3226/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3227/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3228
3229_ASUNAME
3230
3231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3232for as_dir in $PATH
3233do
3234 IFS=$as_save_IFS
3235 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003236 $as_echo "PATH: $as_dir"
3237 done
cristy3ed852e2009-09-05 21:47:34 +00003238IFS=$as_save_IFS
3239
3240} >&5
3241
3242cat >&5 <<_ACEOF
3243
3244
3245## ----------- ##
3246## Core tests. ##
3247## ----------- ##
3248
3249_ACEOF
3250
3251
3252# Keep a trace of the command line.
3253# Strip out --no-create and --no-recursion so they do not pile up.
3254# Strip out --silent because we don't want to record it for future runs.
3255# Also quote any args containing shell meta-characters.
3256# Make two passes to allow for proper duplicate-argument suppression.
3257ac_configure_args=
3258ac_configure_args0=
3259ac_configure_args1=
3260ac_must_keep_next=false
3261for ac_pass in 1 2
3262do
3263 for ac_arg
3264 do
3265 case $ac_arg in
3266 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3267 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3268 | -silent | --silent | --silen | --sile | --sil)
3269 continue ;;
3270 *\'*)
3271 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3272 esac
3273 case $ac_pass in
cristy8b350f62009-11-15 23:12:43 +00003274 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003275 2)
cristy8b350f62009-11-15 23:12:43 +00003276 as_fn_append ac_configure_args1 " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003277 if test $ac_must_keep_next = true; then
3278 ac_must_keep_next=false # Got value, back to normal.
3279 else
3280 case $ac_arg in
3281 *=* | --config-cache | -C | -disable-* | --disable-* \
3282 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3283 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3284 | -with-* | --with-* | -without-* | --without-* | --x)
3285 case "$ac_configure_args0 " in
3286 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3287 esac
3288 ;;
3289 -* ) ac_must_keep_next=true ;;
3290 esac
3291 fi
cristy8b350f62009-11-15 23:12:43 +00003292 as_fn_append ac_configure_args " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003293 ;;
3294 esac
3295 done
3296done
cristy8b350f62009-11-15 23:12:43 +00003297{ ac_configure_args0=; unset ac_configure_args0;}
3298{ ac_configure_args1=; unset ac_configure_args1;}
cristy3ed852e2009-09-05 21:47:34 +00003299
3300# When interrupted or exit'd, cleanup temporary files, and complete
3301# config.log. We remove comments because anyway the quotes in there
3302# would cause problems or look ugly.
3303# WARNING: Use '\'' to represent an apostrophe within the trap.
3304# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3305trap 'exit_status=$?
3306 # Save into config.log some information that might help in debugging.
3307 {
3308 echo
3309
cristy98dddb52010-11-04 00:30:15 +00003310 $as_echo "## ---------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003311## Cache variables. ##
cristy98dddb52010-11-04 00:30:15 +00003312## ---------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003313 echo
3314 # The following way of writing the cache mishandles newlines in values,
3315(
3316 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3317 eval ac_val=\$$ac_var
3318 case $ac_val in #(
3319 *${as_nl}*)
3320 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +00003321 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +00003322$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3323 esac
3324 case $ac_var in #(
3325 _ | IFS | as_nl) ;; #(
3326 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +00003327 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +00003328 esac ;;
3329 esac
3330 done
3331 (set) 2>&1 |
3332 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3333 *${as_nl}ac_space=\ *)
3334 sed -n \
3335 "s/'\''/'\''\\\\'\'''\''/g;
3336 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3337 ;; #(
3338 *)
3339 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3340 ;;
3341 esac |
3342 sort
3343)
3344 echo
3345
cristy98dddb52010-11-04 00:30:15 +00003346 $as_echo "## ----------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003347## Output variables. ##
cristy98dddb52010-11-04 00:30:15 +00003348## ----------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003349 echo
3350 for ac_var in $ac_subst_vars
3351 do
3352 eval ac_val=\$$ac_var
3353 case $ac_val in
3354 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3355 esac
3356 $as_echo "$ac_var='\''$ac_val'\''"
3357 done | sort
3358 echo
3359
3360 if test -n "$ac_subst_files"; then
cristy98dddb52010-11-04 00:30:15 +00003361 $as_echo "## ------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003362## File substitutions. ##
cristy98dddb52010-11-04 00:30:15 +00003363## ------------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003364 echo
3365 for ac_var in $ac_subst_files
3366 do
3367 eval ac_val=\$$ac_var
3368 case $ac_val in
3369 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3370 esac
3371 $as_echo "$ac_var='\''$ac_val'\''"
3372 done | sort
3373 echo
3374 fi
3375
3376 if test -s confdefs.h; then
cristy98dddb52010-11-04 00:30:15 +00003377 $as_echo "## ----------- ##
cristy3ed852e2009-09-05 21:47:34 +00003378## confdefs.h. ##
cristy98dddb52010-11-04 00:30:15 +00003379## ----------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003380 echo
3381 cat confdefs.h
3382 echo
3383 fi
3384 test "$ac_signal" != 0 &&
3385 $as_echo "$as_me: caught signal $ac_signal"
3386 $as_echo "$as_me: exit $exit_status"
3387 } >&5
3388 rm -f core *.core core.conftest.* &&
3389 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3390 exit $exit_status
3391' 0
3392for ac_signal in 1 2 13 15; do
cristy8b350f62009-11-15 23:12:43 +00003393 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cristy3ed852e2009-09-05 21:47:34 +00003394done
3395ac_signal=0
3396
3397# confdefs.h avoids OS command line length limits that DEFS can exceed.
3398rm -f -r conftest* confdefs.h
3399
cristy8b350f62009-11-15 23:12:43 +00003400$as_echo "/* confdefs.h */" > confdefs.h
3401
cristy3ed852e2009-09-05 21:47:34 +00003402# Predefined preprocessor variables.
3403
3404cat >>confdefs.h <<_ACEOF
3405#define PACKAGE_NAME "$PACKAGE_NAME"
3406_ACEOF
3407
cristy3ed852e2009-09-05 21:47:34 +00003408cat >>confdefs.h <<_ACEOF
3409#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3410_ACEOF
3411
cristy3ed852e2009-09-05 21:47:34 +00003412cat >>confdefs.h <<_ACEOF
3413#define PACKAGE_VERSION "$PACKAGE_VERSION"
3414_ACEOF
3415
cristy3ed852e2009-09-05 21:47:34 +00003416cat >>confdefs.h <<_ACEOF
3417#define PACKAGE_STRING "$PACKAGE_STRING"
3418_ACEOF
3419
cristy3ed852e2009-09-05 21:47:34 +00003420cat >>confdefs.h <<_ACEOF
3421#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3422_ACEOF
3423
cristy8b350f62009-11-15 23:12:43 +00003424cat >>confdefs.h <<_ACEOF
3425#define PACKAGE_URL "$PACKAGE_URL"
3426_ACEOF
3427
cristy3ed852e2009-09-05 21:47:34 +00003428
3429# Let the site file select an alternate cache file if it wants to.
3430# Prefer an explicitly selected file to automatically selected ones.
3431ac_site_file1=NONE
3432ac_site_file2=NONE
3433if test -n "$CONFIG_SITE"; then
cristy98dddb52010-11-04 00:30:15 +00003434 # We do not want a PATH search for config.site.
3435 case $CONFIG_SITE in #((
3436 -*) ac_site_file1=./$CONFIG_SITE;;
3437 */*) ac_site_file1=$CONFIG_SITE;;
3438 *) ac_site_file1=./$CONFIG_SITE;;
3439 esac
cristy3ed852e2009-09-05 21:47:34 +00003440elif test "x$prefix" != xNONE; then
3441 ac_site_file1=$prefix/share/config.site
3442 ac_site_file2=$prefix/etc/config.site
3443else
3444 ac_site_file1=$ac_default_prefix/share/config.site
3445 ac_site_file2=$ac_default_prefix/etc/config.site
3446fi
3447for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3448do
3449 test "x$ac_site_file" = xNONE && continue
cristycd4c5312009-11-22 01:19:08 +00003450 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cristy8b350f62009-11-15 23:12:43 +00003451 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003452$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3453 sed 's/^/| /' "$ac_site_file" >&5
cristy98dddb52010-11-04 00:30:15 +00003454 . "$ac_site_file" \
3455 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3456$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3457as_fn_error $? "failed to load site script $ac_site_file
3458See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00003459 fi
3460done
3461
3462if test -r "$cache_file"; then
cristycd4c5312009-11-22 01:19:08 +00003463 # Some versions of bash will fail to source /dev/null (special files
3464 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3465 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cristy8b350f62009-11-15 23:12:43 +00003466 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003467$as_echo "$as_me: loading cache $cache_file" >&6;}
3468 case $cache_file in
3469 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3470 *) . "./$cache_file";;
3471 esac
3472 fi
3473else
cristy8b350f62009-11-15 23:12:43 +00003474 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003475$as_echo "$as_me: creating cache $cache_file" >&6;}
3476 >$cache_file
3477fi
3478
cristycd4c5312009-11-22 01:19:08 +00003479as_fn_append ac_header_list " stdlib.h"
3480as_fn_append ac_header_list " unistd.h"
3481as_fn_append ac_header_list " sys/param.h"
cristy3ed852e2009-09-05 21:47:34 +00003482# Check that the precious variables saved in the cache have kept the same
3483# value.
3484ac_cache_corrupted=false
3485for ac_var in $ac_precious_vars; do
3486 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3487 eval ac_new_set=\$ac_env_${ac_var}_set
3488 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3489 eval ac_new_val=\$ac_env_${ac_var}_value
3490 case $ac_old_set,$ac_new_set in
3491 set,)
cristy8b350f62009-11-15 23:12:43 +00003492 { $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 +00003493$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3494 ac_cache_corrupted=: ;;
3495 ,set)
cristy8b350f62009-11-15 23:12:43 +00003496 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003497$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3498 ac_cache_corrupted=: ;;
3499 ,);;
3500 *)
3501 if test "x$ac_old_val" != "x$ac_new_val"; then
3502 # differences in whitespace do not lead to failure.
3503 ac_old_val_w=`echo x $ac_old_val`
3504 ac_new_val_w=`echo x $ac_new_val`
3505 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cristy8b350f62009-11-15 23:12:43 +00003506 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003507$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3508 ac_cache_corrupted=:
3509 else
cristy8b350f62009-11-15 23:12:43 +00003510 { $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 +00003511$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3512 eval $ac_var=\$ac_old_val
3513 fi
cristy8b350f62009-11-15 23:12:43 +00003514 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003515$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003516 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003517$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3518 fi;;
3519 esac
3520 # Pass precious variables to config.status.
3521 if test "$ac_new_set" = set; then
3522 case $ac_new_val in
3523 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3524 *) ac_arg=$ac_var=$ac_new_val ;;
3525 esac
3526 case " $ac_configure_args " in
3527 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cristy8b350f62009-11-15 23:12:43 +00003528 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003529 esac
3530 fi
3531done
3532if $ac_cache_corrupted; then
cristy8b350f62009-11-15 23:12:43 +00003533 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00003534$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003535 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003536$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003537 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003538fi
cristy8b350f62009-11-15 23:12:43 +00003539## -------------------- ##
3540## Main body of script. ##
3541## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003542
3543ac_ext=c
3544ac_cpp='$CPP $CPPFLAGS'
3545ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3546ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3547ac_compiler_gnu=$ac_cv_c_compiler_gnu
3548
3549
3550
3551ac_aux_dir=
3552for ac_dir in config "$srcdir"/config; do
cristy98dddb52010-11-04 00:30:15 +00003553 if test -f "$ac_dir/install-sh"; then
3554 ac_aux_dir=$ac_dir
3555 ac_install_sh="$ac_aux_dir/install-sh -c"
3556 break
3557 elif test -f "$ac_dir/install.sh"; then
3558 ac_aux_dir=$ac_dir
3559 ac_install_sh="$ac_aux_dir/install.sh -c"
3560 break
3561 elif test -f "$ac_dir/shtool"; then
3562 ac_aux_dir=$ac_dir
3563 ac_install_sh="$ac_aux_dir/shtool install -c"
3564 break
3565 fi
cristy3ed852e2009-09-05 21:47:34 +00003566done
3567if test -z "$ac_aux_dir"; then
cristy98dddb52010-11-04 00:30:15 +00003568 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003569fi
3570
3571# These three variables are undocumented and unsupported,
3572# and are intended to be withdrawn in a future Autoconf release.
3573# They can cause serious problems if a builder's source tree is in a directory
3574# whose full name contains unusual characters.
3575ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3576ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3577ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3578
3579
3580
3581
3582ac_config_headers="$ac_config_headers config/config.h"
3583
cristy24fc1fe2010-10-23 21:13:01 +00003584
cristy01ff9f32012-12-01 18:15:29 +00003585ac_config_commands="$ac_config_commands MagickCore/magick-baseconfig.h"
cristy73bd4a52010-10-05 11:24:23 +00003586
cristy3ed852e2009-09-05 21:47:34 +00003587# Make sure we can run config.sub.
3588$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cristy98dddb52010-11-04 00:30:15 +00003589 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003590
cristy8b350f62009-11-15 23:12:43 +00003591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003592$as_echo_n "checking build system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003593if ${ac_cv_build+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003594 $as_echo_n "(cached) " >&6
3595else
3596 ac_build_alias=$build_alias
3597test "x$ac_build_alias" = x &&
3598 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3599test "x$ac_build_alias" = x &&
cristy98dddb52010-11-04 00:30:15 +00003600 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003601ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003602 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003603
3604fi
cristy8b350f62009-11-15 23:12:43 +00003605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003606$as_echo "$ac_cv_build" >&6; }
3607case $ac_cv_build in
3608*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003609*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003610esac
3611build=$ac_cv_build
3612ac_save_IFS=$IFS; IFS='-'
3613set x $ac_cv_build
3614shift
3615build_cpu=$1
3616build_vendor=$2
3617shift; shift
3618# Remember, the first character of IFS is used to create $*,
3619# except with old shells:
3620build_os=$*
3621IFS=$ac_save_IFS
3622case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3623
3624
cristy8b350f62009-11-15 23:12:43 +00003625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003626$as_echo_n "checking host system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003627if ${ac_cv_host+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003628 $as_echo_n "(cached) " >&6
3629else
3630 if test "x$host_alias" = x; then
3631 ac_cv_host=$ac_cv_build
3632else
3633 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003634 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003635fi
3636
3637fi
cristy8b350f62009-11-15 23:12:43 +00003638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
cristy3ed852e2009-09-05 21:47:34 +00003639$as_echo "$ac_cv_host" >&6; }
3640case $ac_cv_host in
3641*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003642*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003643esac
3644host=$ac_cv_host
3645ac_save_IFS=$IFS; IFS='-'
3646set x $ac_cv_host
3647shift
3648host_cpu=$1
3649host_vendor=$2
3650shift; shift
3651# Remember, the first character of IFS is used to create $*,
3652# except with old shells:
3653host_os=$*
3654IFS=$ac_save_IFS
3655case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3656
3657
cristy8b350f62009-11-15 23:12:43 +00003658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003659$as_echo_n "checking target system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003660if ${ac_cv_target+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003661 $as_echo_n "(cached) " >&6
3662else
3663 if test "x$target_alias" = x; then
3664 ac_cv_target=$ac_cv_host
3665else
3666 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003667 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003668fi
3669
3670fi
cristy8b350f62009-11-15 23:12:43 +00003671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
cristy3ed852e2009-09-05 21:47:34 +00003672$as_echo "$ac_cv_target" >&6; }
3673case $ac_cv_target in
3674*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003675*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003676esac
3677target=$ac_cv_target
3678ac_save_IFS=$IFS; IFS='-'
3679set x $ac_cv_target
3680shift
3681target_cpu=$1
3682target_vendor=$2
3683shift; shift
3684# Remember, the first character of IFS is used to create $*,
3685# except with old shells:
3686target_os=$*
3687IFS=$ac_save_IFS
3688case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3689
3690
3691# The aliases save the names the user supplied, while $host etc.
3692# will get canonicalized.
3693test -n "$target_alias" &&
3694 test "$program_prefix$program_suffix$program_transform_name" = \
3695 NONENONEs,x,x, &&
3696 program_prefix=${target_alias}-
3697
cristy837d6dc2010-02-27 01:16:57 +00003698
cristyead532a2015-06-05 00:49:30 +00003699am__api_version='1.15'
cristy73bd4a52010-10-05 11:24:23 +00003700
3701# Find a good install program. We prefer a C program (faster),
3702# so one script is as good as another. But avoid the broken or
3703# incompatible versions:
3704# SysV /etc/install, /usr/sbin/install
3705# SunOS /usr/etc/install
3706# IRIX /sbin/install
3707# AIX /bin/install
3708# AmigaOS /C/install, which installs bootblocks on floppy discs
3709# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3710# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3711# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3712# OS/2's system install, which has a completely different semantic
3713# ./install, which can be erroneously created by make from ./install.sh.
3714# Reject install programs that cannot install multiple files.
3715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3716$as_echo_n "checking for a BSD-compatible install... " >&6; }
3717if test -z "$INSTALL"; then
cristyda16f162011-02-19 23:52:17 +00003718if ${ac_cv_path_install+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003719 $as_echo_n "(cached) " >&6
3720else
3721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3722for as_dir in $PATH
3723do
3724 IFS=$as_save_IFS
3725 test -z "$as_dir" && as_dir=.
3726 # Account for people who put trailing slashes in PATH elements.
3727case $as_dir/ in #((
3728 ./ | .// | /[cC]/* | \
3729 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3730 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3731 /usr/ucb/* ) ;;
3732 *)
3733 # OSF1 and SCO ODT 3.0 have their own names for install.
3734 # Don't use installbsd from OSF since it installs stuff as root
3735 # by default.
3736 for ac_prog in ginstall scoinst install; do
3737 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003738 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003739 if test $ac_prog = install &&
3740 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3741 # AIX install. It has an incompatible calling convention.
3742 :
3743 elif test $ac_prog = install &&
3744 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3745 # program-specific install script used by HP pwplus--don't use.
3746 :
3747 else
3748 rm -rf conftest.one conftest.two conftest.dir
3749 echo one > conftest.one
3750 echo two > conftest.two
3751 mkdir conftest.dir
3752 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3753 test -s conftest.one && test -s conftest.two &&
3754 test -s conftest.dir/conftest.one &&
3755 test -s conftest.dir/conftest.two
3756 then
3757 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3758 break 3
3759 fi
3760 fi
3761 fi
3762 done
3763 done
3764 ;;
3765esac
3766
3767 done
3768IFS=$as_save_IFS
3769
3770rm -rf conftest.one conftest.two conftest.dir
3771
3772fi
3773 if test "${ac_cv_path_install+set}" = set; then
3774 INSTALL=$ac_cv_path_install
3775 else
3776 # As a last resort, use the slow shell script. Don't cache a
3777 # value for INSTALL within a source directory, because that will
3778 # break other packages using the cache if that directory is
3779 # removed, or if the value is a relative name.
3780 INSTALL=$ac_install_sh
3781 fi
3782fi
3783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3784$as_echo "$INSTALL" >&6; }
3785
3786# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3787# It thinks the first close brace ends the variable substitution.
3788test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3789
3790test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3791
3792test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3793
cristy9af1cbf2014-12-28 22:03:09 +00003794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3795$as_echo_n "checking whether build environment is sane... " >&6; }
3796# Reject unsafe characters in $srcdir or the absolute working directory
3797# name. Accept space and tab only in the latter.
3798am_lf='
3799'
3800case `pwd` in
3801 *[\\\"\#\$\&\'\`$am_lf]*)
3802 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3803esac
3804case $srcdir in
3805 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3806 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3807esac
3808
3809# Do 'set' in a subshell so we don't clobber the current shell's
3810# arguments. Must try -L first in case configure is actually a
3811# symlink; some systems play weird games with the mod time of symlinks
3812# (eg FreeBSD returns the mod time of the symlink's containing
3813# directory).
3814if (
3815 am_has_slept=no
3816 for am_try in 1 2; do
3817 echo "timestamp, slept: $am_has_slept" > conftest.file
3818 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3819 if test "$*" = "X"; then
3820 # -L didn't work.
3821 set X `ls -t "$srcdir/configure" conftest.file`
3822 fi
3823 if test "$*" != "X $srcdir/configure conftest.file" \
3824 && test "$*" != "X conftest.file $srcdir/configure"; then
3825
3826 # If neither matched, then we have a broken ls. This can happen
3827 # if, for instance, CONFIG_SHELL is bash and it inherits a
3828 # broken ls alias from the environment. This has actually
3829 # happened. Such a system could not be considered "sane".
3830 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3831 alias in your environment" "$LINENO" 5
3832 fi
3833 if test "$2" = conftest.file || test $am_try -eq 2; then
3834 break
3835 fi
3836 # Just in case.
3837 sleep 1
3838 am_has_slept=yes
3839 done
3840 test "$2" = conftest.file
3841 )
3842then
3843 # Ok.
3844 :
3845else
3846 as_fn_error $? "newly created file is older than distributed files!
3847Check your system clock" "$LINENO" 5
3848fi
3849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3850$as_echo "yes" >&6; }
3851# If we didn't sleep, we still need to ensure time stamps of config.status and
3852# generated files are strictly newer.
3853am_sleep_pid=
3854if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3855 ( sleep 1 ) &
3856 am_sleep_pid=$!
3857fi
3858
3859rm -f conftest.file
3860
cristy73bd4a52010-10-05 11:24:23 +00003861test "$program_prefix" != NONE &&
3862 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3863# Use a double $ so make ignores it.
3864test "$program_suffix" != NONE &&
3865 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3866# Double any \ or $.
3867# By default was `s,x,x', remove it if useless.
3868ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3869program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3870
cristyead532a2015-06-05 00:49:30 +00003871# Expand $ac_aux_dir to an absolute path.
3872am_aux_dir=`cd "$ac_aux_dir" && pwd`
cristy73bd4a52010-10-05 11:24:23 +00003873
3874if test x"${MISSING+set}" != xset; then
3875 case $am_aux_dir in
3876 *\ * | *\ *)
3877 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3878 *)
3879 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3880 esac
3881fi
3882# Use eval to expand $SHELL
cristy58d34aa2013-01-24 15:11:54 +00003883if eval "$MISSING --is-lightweight"; then
3884 am_missing_run="$MISSING "
cristy73bd4a52010-10-05 11:24:23 +00003885else
3886 am_missing_run=
cristyc0890a62012-07-19 00:18:20 +00003887 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3888$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
cristy73bd4a52010-10-05 11:24:23 +00003889fi
3890
cristyead532a2015-06-05 00:49:30 +00003891if test x"${install_sh+set}" != xset; then
cristy73bd4a52010-10-05 11:24:23 +00003892 case $am_aux_dir in
3893 *\ * | *\ *)
3894 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3895 *)
3896 install_sh="\${SHELL} $am_aux_dir/install-sh"
3897 esac
3898fi
3899
cristyc0890a62012-07-19 00:18:20 +00003900# Installed binaries are usually stripped using 'strip' when the user
3901# run "make install-strip". However 'strip' might not be the right
cristy73bd4a52010-10-05 11:24:23 +00003902# tool to use in cross-compilation environments, therefore Automake
cristyc0890a62012-07-19 00:18:20 +00003903# will honor the 'STRIP' environment variable to overrule this program.
cristy73bd4a52010-10-05 11:24:23 +00003904if test "$cross_compiling" != no; then
3905 if test -n "$ac_tool_prefix"; then
3906 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3907set dummy ${ac_tool_prefix}strip; ac_word=$2
3908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3909$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003910if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003911 $as_echo_n "(cached) " >&6
3912else
3913 if test -n "$STRIP"; then
3914 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3915else
3916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3917for as_dir in $PATH
3918do
3919 IFS=$as_save_IFS
3920 test -z "$as_dir" && as_dir=.
3921 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003923 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3925 break 2
3926 fi
3927done
3928 done
3929IFS=$as_save_IFS
3930
3931fi
3932fi
3933STRIP=$ac_cv_prog_STRIP
3934if test -n "$STRIP"; then
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3936$as_echo "$STRIP" >&6; }
3937else
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3939$as_echo "no" >&6; }
3940fi
3941
3942
3943fi
3944if test -z "$ac_cv_prog_STRIP"; then
3945 ac_ct_STRIP=$STRIP
3946 # Extract the first word of "strip", so it can be a program name with args.
3947set dummy strip; ac_word=$2
3948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3949$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003950if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003951 $as_echo_n "(cached) " >&6
3952else
3953 if test -n "$ac_ct_STRIP"; then
3954 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3955else
3956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3957for as_dir in $PATH
3958do
3959 IFS=$as_save_IFS
3960 test -z "$as_dir" && as_dir=.
3961 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003963 ac_cv_prog_ac_ct_STRIP="strip"
3964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3965 break 2
3966 fi
3967done
3968 done
3969IFS=$as_save_IFS
3970
3971fi
3972fi
3973ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3974if test -n "$ac_ct_STRIP"; then
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3976$as_echo "$ac_ct_STRIP" >&6; }
3977else
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3979$as_echo "no" >&6; }
3980fi
3981
3982 if test "x$ac_ct_STRIP" = x; then
3983 STRIP=":"
3984 else
3985 case $cross_compiling:$ac_tool_warned in
3986yes:)
3987{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3988$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3989ac_tool_warned=yes ;;
3990esac
3991 STRIP=$ac_ct_STRIP
3992 fi
3993else
3994 STRIP="$ac_cv_prog_STRIP"
3995fi
3996
3997fi
3998INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3999
4000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4001$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4002if test -z "$MKDIR_P"; then
cristyda16f162011-02-19 23:52:17 +00004003 if ${ac_cv_path_mkdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004004 $as_echo_n "(cached) " >&6
4005else
4006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4007for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4008do
4009 IFS=$as_save_IFS
4010 test -z "$as_dir" && as_dir=.
4011 for ac_prog in mkdir gmkdir; do
4012 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004013 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
cristy73bd4a52010-10-05 11:24:23 +00004014 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4015 'mkdir (GNU coreutils) '* | \
4016 'mkdir (coreutils) '* | \
4017 'mkdir (fileutils) '4.1*)
4018 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4019 break 3;;
4020 esac
4021 done
4022 done
4023 done
4024IFS=$as_save_IFS
4025
4026fi
4027
4028 test -d ./--version && rmdir ./--version
4029 if test "${ac_cv_path_mkdir+set}" = set; then
4030 MKDIR_P="$ac_cv_path_mkdir -p"
4031 else
4032 # As a last resort, use the slow shell script. Don't cache a
4033 # value for MKDIR_P within a source directory, because that will
4034 # break other packages using the cache if that directory is
4035 # removed, or if the value is a relative name.
4036 MKDIR_P="$ac_install_sh -d"
4037 fi
4038fi
4039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4040$as_echo "$MKDIR_P" >&6; }
4041
cristy73bd4a52010-10-05 11:24:23 +00004042for ac_prog in gawk mawk nawk awk
4043do
4044 # Extract the first word of "$ac_prog", so it can be a program name with args.
4045set dummy $ac_prog; ac_word=$2
4046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4047$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004048if ${ac_cv_prog_AWK+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004049 $as_echo_n "(cached) " >&6
4050else
4051 if test -n "$AWK"; then
4052 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4053else
4054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4055for as_dir in $PATH
4056do
4057 IFS=$as_save_IFS
4058 test -z "$as_dir" && as_dir=.
4059 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004060 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00004061 ac_cv_prog_AWK="$ac_prog"
4062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4063 break 2
4064 fi
4065done
4066 done
4067IFS=$as_save_IFS
4068
4069fi
4070fi
4071AWK=$ac_cv_prog_AWK
4072if test -n "$AWK"; then
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4074$as_echo "$AWK" >&6; }
4075else
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4077$as_echo "no" >&6; }
4078fi
4079
4080
4081 test -n "$AWK" && break
4082done
4083
4084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4085$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4086set x ${MAKE-make}
4087ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00004088if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004089 $as_echo_n "(cached) " >&6
4090else
4091 cat >conftest.make <<\_ACEOF
4092SHELL = /bin/sh
4093all:
4094 @echo '@@@%%%=$(MAKE)=@@@%%%'
4095_ACEOF
cristy98dddb52010-11-04 00:30:15 +00004096# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristy73bd4a52010-10-05 11:24:23 +00004097case `${MAKE-make} -f conftest.make 2>/dev/null` in
4098 *@@@%%%=?*=@@@%%%*)
4099 eval ac_cv_prog_make_${ac_make}_set=yes;;
4100 *)
4101 eval ac_cv_prog_make_${ac_make}_set=no;;
4102esac
4103rm -f conftest.make
4104fi
4105if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4107$as_echo "yes" >&6; }
4108 SET_MAKE=
4109else
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4111$as_echo "no" >&6; }
4112 SET_MAKE="MAKE=${MAKE-make}"
4113fi
4114
4115rm -rf .tst 2>/dev/null
4116mkdir .tst 2>/dev/null
4117if test -d .tst; then
4118 am__leading_dot=.
4119else
4120 am__leading_dot=_
4121fi
4122rmdir .tst 2>/dev/null
4123
cristya448bd22011-10-14 12:38:13 +00004124# Check whether --enable-silent-rules was given.
4125if test "${enable_silent_rules+set}" = set; then :
4126 enableval=$enable_silent_rules;
4127fi
4128
cristyc0890a62012-07-19 00:18:20 +00004129case $enable_silent_rules in # (((
4130 yes) AM_DEFAULT_VERBOSITY=0;;
4131 no) AM_DEFAULT_VERBOSITY=1;;
4132 *) AM_DEFAULT_VERBOSITY=1;;
cristya448bd22011-10-14 12:38:13 +00004133esac
cristyc3fb77b2012-02-06 01:49:41 +00004134am_make=${MAKE-make}
4135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4136$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4137if ${am_cv_make_support_nested_variables+:} false; then :
4138 $as_echo_n "(cached) " >&6
4139else
4140 if $as_echo 'TRUE=$(BAR$(V))
4141BAR0=false
4142BAR1=true
4143V=1
4144am__doit:
4145 @$(TRUE)
4146.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4147 am_cv_make_support_nested_variables=yes
4148else
4149 am_cv_make_support_nested_variables=no
4150fi
4151fi
4152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4153$as_echo "$am_cv_make_support_nested_variables" >&6; }
4154if test $am_cv_make_support_nested_variables = yes; then
4155 AM_V='$(V)'
4156 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4157else
4158 AM_V=$AM_DEFAULT_VERBOSITY
4159 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4160fi
cristya448bd22011-10-14 12:38:13 +00004161AM_BACKSLASH='\'
4162
cristy73bd4a52010-10-05 11:24:23 +00004163if test "`cd $srcdir && pwd`" != "`pwd`"; then
4164 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4165 # is not polluted with repeated "-I."
4166 am__isrc=' -I$(srcdir)'
4167 # test to see if srcdir already configured
4168 if test -f $srcdir/config.status; then
cristy98dddb52010-11-04 00:30:15 +00004169 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00004170 fi
4171fi
4172
4173# test whether we have cygpath
4174if test -z "$CYGPATH_W"; then
4175 if (cygpath --version) >/dev/null 2>/dev/null; then
4176 CYGPATH_W='cygpath -w'
4177 else
4178 CYGPATH_W=echo
4179 fi
4180fi
4181
4182
4183# Define the identity of the package.
cristy09b53e12011-10-14 12:47:22 +00004184 PACKAGE='ImageMagick'
cristy29eb34e2011-10-16 00:46:08 +00004185 VERSION='7.0.0-0'
cristy73bd4a52010-10-05 11:24:23 +00004186
4187
cristya448bd22011-10-14 12:38:13 +00004188cat >>confdefs.h <<_ACEOF
4189#define PACKAGE "$PACKAGE"
4190_ACEOF
4191
4192
4193cat >>confdefs.h <<_ACEOF
4194#define VERSION "$VERSION"
4195_ACEOF
4196
cristy73bd4a52010-10-05 11:24:23 +00004197# Some tools Automake needs.
4198
4199ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4200
4201
4202AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4203
4204
4205AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4206
4207
4208AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4209
4210
4211MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4212
cristyc0890a62012-07-19 00:18:20 +00004213# For better backward compatibility. To be removed once Automake 1.9.x
4214# dies out for good. For more background, see:
4215# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4216# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4217mkdir_p='$(MKDIR_P)'
4218
cristyead532a2015-06-05 00:49:30 +00004219# We need awk for the "check" target (and possibly the TAP driver). The
4220# system "awk" is bad on some platforms.
cristyc3fb77b2012-02-06 01:49:41 +00004221# Always define AMTAR for backward compatibility. Yes, it's still used
4222# in the wild :-( We should find a proper way to deprecate it ...
4223AMTAR='$${TAR-tar}'
cristy73bd4a52010-10-05 11:24:23 +00004224
cristye69bdbe2013-05-03 21:40:44 +00004225
4226# We'll loop over all known methods to create a tar archive until one works.
4227_am_tools='gnutar pax cpio none'
4228
cristyc3fb77b2012-02-06 01:49:41 +00004229am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
cristy73bd4a52010-10-05 11:24:23 +00004230
4231
4232
4233
4234
cristy3ed852e2009-09-05 21:47:34 +00004235
cristya5bda012013-11-03 18:05:38 +00004236# POSIX will say in a future version that running "rm -f" with no argument
4237# is OK; and we want to be able to make that assumption in our Makefile
4238# recipes. So use an aggressive probe to check that the usage we want is
4239# actually supported "in the wild" to an acceptable degree.
4240# See automake bug#10828.
4241# To make any issue more visible, cause the running configure to be aborted
4242# by default if the 'rm' program in use doesn't match our expectations; the
4243# user can still override this though.
4244if rm -f && rm -fr && rm -rf; then : OK; else
4245 cat >&2 <<'END'
4246Oops!
4247
4248Your 'rm' program seems unable to run without file operands specified
4249on the command line, even when the '-f' option is present. This is contrary
4250to the behaviour of most rm programs out there, and not conforming with
4251the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4252
4253Please tell bug-automake@gnu.org about your system, including the value
4254of your $PATH and any error possibly output before this message. This
4255can help us improve future automake versions.
4256
4257END
4258 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4259 echo 'Configuration will proceed anyway, since you have set the' >&2
4260 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4261 echo >&2
4262 else
4263 cat >&2 <<'END'
4264Aborting the configuration process, to ensure you take notice of the issue.
4265
4266You can download and install GNU coreutils to get an 'rm' implementation
4267that behaves properly: <http://www.gnu.org/software/coreutils/>.
4268
4269If you want to complete the configuration process using your problematic
4270'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4271to "yes", and re-run configure.
4272
4273END
4274 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4275 fi
4276fi
cristyead532a2015-06-05 00:49:30 +00004277
cristy73bd4a52010-10-05 11:24:23 +00004278# Check whether --enable-silent-rules was given.
4279if test "${enable_silent_rules+set}" = set; then :
4280 enableval=$enable_silent_rules;
4281fi
4282
cristyc0890a62012-07-19 00:18:20 +00004283case $enable_silent_rules in # (((
4284 yes) AM_DEFAULT_VERBOSITY=0;;
4285 no) AM_DEFAULT_VERBOSITY=1;;
4286 *) AM_DEFAULT_VERBOSITY=0;;
cristy73bd4a52010-10-05 11:24:23 +00004287esac
cristyc3fb77b2012-02-06 01:49:41 +00004288am_make=${MAKE-make}
4289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4290$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4291if ${am_cv_make_support_nested_variables+:} false; then :
4292 $as_echo_n "(cached) " >&6
4293else
4294 if $as_echo 'TRUE=$(BAR$(V))
4295BAR0=false
4296BAR1=true
4297V=1
4298am__doit:
4299 @$(TRUE)
4300.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4301 am_cv_make_support_nested_variables=yes
4302else
4303 am_cv_make_support_nested_variables=no
4304fi
4305fi
4306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4307$as_echo "$am_cv_make_support_nested_variables" >&6; }
4308if test $am_cv_make_support_nested_variables = yes; then
4309 AM_V='$(V)'
4310 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4311else
4312 AM_V=$AM_DEFAULT_VERBOSITY
4313 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4314fi
cristy73bd4a52010-10-05 11:24:23 +00004315AM_BACKSLASH='\'
4316
cristy3ed852e2009-09-05 21:47:34 +00004317
cristy9af1cbf2014-12-28 22:03:09 +00004318#
4319# Save initial user-tunable values
4320#
4321USER_LIBS=$LIBS
4322for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
4323 eval isset=\${$var+set}
4324 if test "$isset" = 'set'; then
4325 eval val=$`echo $var`
4326 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
4327 fi
4328done
4329
4330
4331CONFIGURE_ARGS="$0 ${ac_configure_args}"
4332
4333
cristy187791c2015-05-03 22:17:00 +00004334# Check whether --enable-reproducible-build was given.
4335if test "${enable_reproducible_build+set}" = set; then :
4336 enableval=$enable_reproducible_build; enable_reproducible_build=$enableval
4337else
4338 enable_reproducible_build='no'
4339fi
4340
4341
cristy9af1cbf2014-12-28 22:03:09 +00004342# Source file containing package/library versioning information.
4343. ${srcdir}/version.sh
4344
4345echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
4346
4347MAGICK_TARGET_CPU=$host_cpu
4348
4349
4350cat >>confdefs.h <<_ACEOF
4351#define MAGICK_TARGET_CPU $MAGICK_TARGET_CPU
4352_ACEOF
4353
4354
4355MAGICK_TARGET_VENDOR=$host_vendor
4356
4357
4358cat >>confdefs.h <<_ACEOF
4359#define MAGICK_TARGET_VENDOR $MAGICK_TARGET_VENDOR
4360_ACEOF
4361
4362
4363MAGICK_TARGET_OS=$host_os
4364
4365
4366cat >>confdefs.h <<_ACEOF
4367#define MAGICK_TARGET_OS $MAGICK_TARGET_OS
4368_ACEOF
4369
4370
4371
4372# Substitute versioning
4373MAGICK_MAJOR_VERSION=7
4374
4375MAGICK_MINOR_VERSION=0
4376
4377MAGICK_MICRO_VERSION=0
4378
4379MAGICK_PATCHLEVEL_VERSION=0
4380
4381MAGICK_VERSION=7.0.0-0
4382
cristy32f75d42015-06-05 18:46:23 +00004383MAGICK_SVN_REVISION=18729M
cristy9af1cbf2014-12-28 22:03:09 +00004384
4385
4386# Substitute library versioning
4387MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
4388
4389MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
4390
4391
4392MAGICKPP_LIBRARY_CURRENT_MIN=`expr $MAGICKPP_LIBRARY_CURRENT - $MAGICKPP_LIBRARY_AGE`
4393
4394MAGICKPP_LIBRARY_VERSION_INFO=$MAGICKPP_LIBRARY_CURRENT:$MAGICKPP_LIBRARY_REVISION:$MAGICKPP_LIBRARY_AGE
4395
4396
cristy187791c2015-05-03 22:17:00 +00004397if test X$enable_reproducible_build = Xyes; then :
4398 PACKAGE_RELEASE_DATE=$PACKAGE_RELEASE_DATE_REPRODUCIBLE
4399elif PACKAGE_RELEASE_DATE=$PACKAGE_RELEASE_DATE_RAW; then :
4400
4401fi
4402
cristy9af1cbf2014-12-28 22:03:09 +00004403
4404# Ensure that make can run correctly
4405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4406$as_echo_n "checking whether build environment is sane... " >&6; }
4407# Reject unsafe characters in $srcdir or the absolute working directory
4408# name. Accept space and tab only in the latter.
4409am_lf='
4410'
4411case `pwd` in
4412 *[\\\"\#\$\&\'\`$am_lf]*)
4413 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4414esac
4415case $srcdir in
4416 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4417 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4418esac
4419
4420# Do 'set' in a subshell so we don't clobber the current shell's
4421# arguments. Must try -L first in case configure is actually a
4422# symlink; some systems play weird games with the mod time of symlinks
4423# (eg FreeBSD returns the mod time of the symlink's containing
4424# directory).
4425if (
4426 am_has_slept=no
4427 for am_try in 1 2; do
4428 echo "timestamp, slept: $am_has_slept" > conftest.file
4429 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4430 if test "$*" = "X"; then
4431 # -L didn't work.
4432 set X `ls -t "$srcdir/configure" conftest.file`
4433 fi
4434 if test "$*" != "X $srcdir/configure conftest.file" \
4435 && test "$*" != "X conftest.file $srcdir/configure"; then
4436
4437 # If neither matched, then we have a broken ls. This can happen
4438 # if, for instance, CONFIG_SHELL is bash and it inherits a
4439 # broken ls alias from the environment. This has actually
4440 # happened. Such a system could not be considered "sane".
4441 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4442 alias in your environment" "$LINENO" 5
4443 fi
4444 if test "$2" = conftest.file || test $am_try -eq 2; then
4445 break
4446 fi
4447 # Just in case.
4448 sleep 1
4449 am_has_slept=yes
4450 done
4451 test "$2" = conftest.file
4452 )
4453then
4454 # Ok.
4455 :
4456else
4457 as_fn_error $? "newly created file is older than distributed files!
4458Check your system clock" "$LINENO" 5
4459fi
4460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4461$as_echo "yes" >&6; }
4462# If we didn't sleep, we still need to ensure time stamps of config.status and
4463# generated files are strictly newer.
4464am_sleep_pid=
4465if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4466 ( sleep 1 ) &
4467 am_sleep_pid=$!
4468fi
4469
4470rm -f conftest.file
4471
4472
cristyf279b692014-08-13 12:01:27 +00004473# versioning of library
cristy3ed852e2009-09-05 21:47:34 +00004474MAGICK_LIB_VERSION="0x"
4475if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
4476 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4477fi
4478MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
4479if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
4480 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4481fi
4482MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
4483if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
4484 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4485fi
4486MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
4487
4488
4489# Definition used to define MagickLibVersionText in version.h
4490MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4491
4492
4493# Definition used to define MagickLibVersionNumber in version.h
4494MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4495
4496
cristy5ed9c6e2013-07-14 21:20:31 +00004497MAGICKPP_LIB_VERSION="0x"
4498if test ${MAGICKPP_LIBRARY_CURRENT} -lt 10 ; then
4499 MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0
4500fi
4501MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_CURRENT}
4502if test ${MAGICKPP_LIBRARY_AGE} -lt 10 ; then
4503 MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0
4504fi
4505MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_AGE}
4506if test ${MAGICKPP_LIBRARY_REVISION} -lt 10 ; then
4507 MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0
4508fi
4509MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_REVISION}
4510
4511
4512# Definition used to define MagickLibVersionText in version.h
4513MAGICKPP_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4514
4515
4516# Definition used to define MagickLibVersionNumber in version.h
4517MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4518
4519
4520
4521
cristy3ed852e2009-09-05 21:47:34 +00004522# Regenerate config.status if ChangeLog or version.sh is updated.
4523CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
4524
4525
4526PERLMAINCC=$CC
4527
4528MAGICK_CFLAGS=''
4529MAGICK_CPPFLAGS=$CPPFLAGS_USER
4530MAGICK_PCFLAGS=$CPPFLAGS_USER
4531MAGICK_LDFLAGS=''
4532MAGICK_LIBS=''
cristyfd9dcd42010-08-08 18:07:02 +00004533MAGICK_FEATURES=''
cristy3ed852e2009-09-05 21:47:34 +00004534
4535#
4536# Evaluate shell variable equivalents to Makefile directory variables
4537#
4538if test "x$prefix" = xNONE; then
4539 prefix=$ac_default_prefix
4540fi
4541# Let make expand exec_prefix.
4542if test "x$exec_prefix" = xNONE; then
4543 exec_prefix='${prefix}'
4544fi
4545
4546#
4547eval "eval PREFIX_DIR=${prefix}"
4548
4549eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4550
4551eval "eval BIN_DIR=$bindir"
4552
4553eval "eval SBIN_DIR=$sbindir"
4554
4555eval "eval LIBEXEC_DIR=$libexecdir"
4556
4557eval "eval DATA_DIR=$datadir"
4558
cristy4e65ec22012-04-08 01:33:27 +00004559eval "eval DOC_DIR=$datadir/doc"
cristyd55889c2011-03-27 00:50:24 +00004560
cristy3ed852e2009-09-05 21:47:34 +00004561eval "eval SYSCONF_DIR=$sysconfdir"
4562
4563eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4564
4565eval "eval LOCALSTATE_DIR=$localstatedir"
4566
4567eval "eval LIB_DIR=$libdir"
4568
4569eval "eval INCLUDE_DIR=$includedir"
4570
4571eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4572
4573eval "eval INFO_DIR=$infodir"
4574
4575eval "eval MAN_DIR=$mandir"
4576
4577
4578# Get full paths to source and build directories
4579srcdirfull="`cd $srcdir && pwd`"
4580builddir="`pwd`"
4581
4582#
4583# Compute variables useful for running uninstalled software.
4584#
4585MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4586MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4587MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4588MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4589DIRSEP=':'
4590case "${build_os}" in
4591 mingw* )
4592 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4593 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4594 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4595 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4596 DIRSEP=';'
4597 ;;
4598esac
4599case "${host_os}" in
4600 mingw* )
4601 DIRSEP=';'
4602 ;;
4603esac
4604
4605
4606
4607
4608
4609
cristya0b81c32010-01-22 02:54:33 +00004610
4611#
4612# Enable OS features.
4613#
cristy73bd4a52010-10-05 11:24:23 +00004614DEPDIR="${am__leading_dot}deps"
4615
4616ac_config_commands="$ac_config_commands depfiles"
4617
4618
4619am_make=${MAKE-make}
4620cat > confinc << 'END'
4621am__doit:
4622 @echo this is the am__doit target
4623.PHONY: am__doit
4624END
4625# If we don't find an include directive, just comment out the code.
4626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4627$as_echo_n "checking for style of include used by $am_make... " >&6; }
4628am__include="#"
4629am__quote=
4630_am_result=none
4631# First try GNU make style include.
4632echo "include confinc" > confmf
cristyc0890a62012-07-19 00:18:20 +00004633# Ignore all kinds of additional output from 'make'.
cristy73bd4a52010-10-05 11:24:23 +00004634case `$am_make -s -f confmf 2> /dev/null` in #(
4635*the\ am__doit\ target*)
4636 am__include=include
4637 am__quote=
4638 _am_result=GNU
4639 ;;
4640esac
4641# Now try BSD make style include.
4642if test "$am__include" = "#"; then
4643 echo '.include "confinc"' > confmf
4644 case `$am_make -s -f confmf 2> /dev/null` in #(
4645 *the\ am__doit\ target*)
4646 am__include=.include
4647 am__quote="\""
4648 _am_result=BSD
4649 ;;
4650 esac
4651fi
4652
4653
4654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4655$as_echo "$_am_result" >&6; }
4656rm -f confinc confmf
4657
4658# Check whether --enable-dependency-tracking was given.
4659if test "${enable_dependency_tracking+set}" = set; then :
4660 enableval=$enable_dependency_tracking;
4661fi
4662
4663if test "x$enable_dependency_tracking" != xno; then
4664 am_depcomp="$ac_aux_dir/depcomp"
4665 AMDEPBACKSLASH='\'
cristy7247bba2012-02-05 16:37:27 +00004666 am__nodep='_no'
cristy73bd4a52010-10-05 11:24:23 +00004667fi
4668 if test "x$enable_dependency_tracking" != xno; then
4669 AMDEP_TRUE=
4670 AMDEP_FALSE='#'
4671else
4672 AMDEP_TRUE='#'
4673 AMDEP_FALSE=
4674fi
4675
4676
cristy3ed852e2009-09-05 21:47:34 +00004677ac_ext=c
4678ac_cpp='$CPP $CPPFLAGS'
4679ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4680ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4681ac_compiler_gnu=$ac_cv_c_compiler_gnu
4682if test -n "$ac_tool_prefix"; then
4683 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4684set dummy ${ac_tool_prefix}gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004686$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004687if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004688 $as_echo_n "(cached) " >&6
4689else
4690 if test -n "$CC"; then
4691 ac_cv_prog_CC="$CC" # Let the user override the test.
4692else
4693as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4694for as_dir in $PATH
4695do
4696 IFS=$as_save_IFS
4697 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004698 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004699 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004700 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cristy8b350f62009-11-15 23:12:43 +00004701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004702 break 2
4703 fi
4704done
cristy8b350f62009-11-15 23:12:43 +00004705 done
cristy3ed852e2009-09-05 21:47:34 +00004706IFS=$as_save_IFS
4707
4708fi
4709fi
4710CC=$ac_cv_prog_CC
4711if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004713$as_echo "$CC" >&6; }
4714else
cristy8b350f62009-11-15 23:12:43 +00004715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004716$as_echo "no" >&6; }
4717fi
4718
4719
4720fi
4721if test -z "$ac_cv_prog_CC"; then
4722 ac_ct_CC=$CC
4723 # Extract the first word of "gcc", so it can be a program name with args.
4724set dummy gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004726$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004727if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004728 $as_echo_n "(cached) " >&6
4729else
4730 if test -n "$ac_ct_CC"; then
4731 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4732else
4733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4734for as_dir in $PATH
4735do
4736 IFS=$as_save_IFS
4737 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004738 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004739 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004740 ac_cv_prog_ac_ct_CC="gcc"
cristy8b350f62009-11-15 23:12:43 +00004741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004742 break 2
4743 fi
4744done
cristy8b350f62009-11-15 23:12:43 +00004745 done
cristy3ed852e2009-09-05 21:47:34 +00004746IFS=$as_save_IFS
4747
4748fi
4749fi
4750ac_ct_CC=$ac_cv_prog_ac_ct_CC
4751if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004753$as_echo "$ac_ct_CC" >&6; }
4754else
cristy8b350f62009-11-15 23:12:43 +00004755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004756$as_echo "no" >&6; }
4757fi
4758
4759 if test "x$ac_ct_CC" = x; then
4760 CC=""
4761 else
4762 case $cross_compiling:$ac_tool_warned in
4763yes:)
cristy8b350f62009-11-15 23:12:43 +00004764{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004765$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4766ac_tool_warned=yes ;;
4767esac
4768 CC=$ac_ct_CC
4769 fi
4770else
4771 CC="$ac_cv_prog_CC"
4772fi
4773
4774if test -z "$CC"; then
4775 if test -n "$ac_tool_prefix"; then
4776 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4777set dummy ${ac_tool_prefix}cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004779$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004780if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004781 $as_echo_n "(cached) " >&6
4782else
4783 if test -n "$CC"; then
4784 ac_cv_prog_CC="$CC" # Let the user override the test.
4785else
4786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4787for as_dir in $PATH
4788do
4789 IFS=$as_save_IFS
4790 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004791 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004793 ac_cv_prog_CC="${ac_tool_prefix}cc"
cristy8b350f62009-11-15 23:12:43 +00004794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004795 break 2
4796 fi
4797done
cristy8b350f62009-11-15 23:12:43 +00004798 done
cristy3ed852e2009-09-05 21:47:34 +00004799IFS=$as_save_IFS
4800
4801fi
4802fi
4803CC=$ac_cv_prog_CC
4804if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004806$as_echo "$CC" >&6; }
4807else
cristy8b350f62009-11-15 23:12:43 +00004808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004809$as_echo "no" >&6; }
4810fi
4811
4812
4813 fi
4814fi
4815if test -z "$CC"; then
4816 # Extract the first word of "cc", so it can be a program name with args.
4817set dummy cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004819$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004820if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004821 $as_echo_n "(cached) " >&6
4822else
4823 if test -n "$CC"; then
4824 ac_cv_prog_CC="$CC" # Let the user override the test.
4825else
4826 ac_prog_rejected=no
4827as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4828for as_dir in $PATH
4829do
4830 IFS=$as_save_IFS
4831 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004832 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004834 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4835 ac_prog_rejected=yes
4836 continue
4837 fi
4838 ac_cv_prog_CC="cc"
cristy8b350f62009-11-15 23:12:43 +00004839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004840 break 2
4841 fi
4842done
cristy8b350f62009-11-15 23:12:43 +00004843 done
cristy3ed852e2009-09-05 21:47:34 +00004844IFS=$as_save_IFS
4845
4846if test $ac_prog_rejected = yes; then
4847 # We found a bogon in the path, so make sure we never use it.
4848 set dummy $ac_cv_prog_CC
4849 shift
4850 if test $# != 0; then
4851 # We chose a different compiler from the bogus one.
4852 # However, it has the same basename, so the bogon will be chosen
4853 # first if we set CC to just the basename; use the full file name.
4854 shift
4855 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4856 fi
4857fi
4858fi
4859fi
4860CC=$ac_cv_prog_CC
4861if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004863$as_echo "$CC" >&6; }
4864else
cristy8b350f62009-11-15 23:12:43 +00004865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004866$as_echo "no" >&6; }
4867fi
4868
4869
4870fi
4871if test -z "$CC"; then
4872 if test -n "$ac_tool_prefix"; then
4873 for ac_prog in cl.exe
4874 do
4875 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4876set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004878$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004879if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004880 $as_echo_n "(cached) " >&6
4881else
4882 if test -n "$CC"; then
4883 ac_cv_prog_CC="$CC" # Let the user override the test.
4884else
4885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4886for as_dir in $PATH
4887do
4888 IFS=$as_save_IFS
4889 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004890 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004891 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004892 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004894 break 2
4895 fi
4896done
cristy8b350f62009-11-15 23:12:43 +00004897 done
cristy3ed852e2009-09-05 21:47:34 +00004898IFS=$as_save_IFS
4899
4900fi
4901fi
4902CC=$ac_cv_prog_CC
4903if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004905$as_echo "$CC" >&6; }
4906else
cristy8b350f62009-11-15 23:12:43 +00004907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004908$as_echo "no" >&6; }
4909fi
4910
4911
4912 test -n "$CC" && break
4913 done
4914fi
4915if test -z "$CC"; then
4916 ac_ct_CC=$CC
4917 for ac_prog in cl.exe
4918do
4919 # Extract the first word of "$ac_prog", so it can be a program name with args.
4920set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004922$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004923if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004924 $as_echo_n "(cached) " >&6
4925else
4926 if test -n "$ac_ct_CC"; then
4927 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4928else
4929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4930for as_dir in $PATH
4931do
4932 IFS=$as_save_IFS
4933 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004934 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004935 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004936 ac_cv_prog_ac_ct_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004938 break 2
4939 fi
4940done
cristy8b350f62009-11-15 23:12:43 +00004941 done
cristy3ed852e2009-09-05 21:47:34 +00004942IFS=$as_save_IFS
4943
4944fi
4945fi
4946ac_ct_CC=$ac_cv_prog_ac_ct_CC
4947if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004949$as_echo "$ac_ct_CC" >&6; }
4950else
cristy8b350f62009-11-15 23:12:43 +00004951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004952$as_echo "no" >&6; }
4953fi
4954
4955
4956 test -n "$ac_ct_CC" && break
4957done
4958
4959 if test "x$ac_ct_CC" = x; then
4960 CC=""
4961 else
4962 case $cross_compiling:$ac_tool_warned in
4963yes:)
cristy8b350f62009-11-15 23:12:43 +00004964{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004965$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4966ac_tool_warned=yes ;;
4967esac
4968 CC=$ac_ct_CC
4969 fi
4970fi
4971
4972fi
4973
4974
cristy8b350f62009-11-15 23:12:43 +00004975test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004976$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004977as_fn_error $? "no acceptable C compiler found in \$PATH
4978See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004979
4980# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00004981$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00004982set X $ac_compile
4983ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00004984for ac_option in --version -v -V -qversion; do
4985 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00004986case "(($ac_try" in
4987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4988 *) ac_try_echo=$ac_try;;
4989esac
cristy8b350f62009-11-15 23:12:43 +00004990eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4991$as_echo "$ac_try_echo"; } >&5
4992 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00004993 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004994 if test -s conftest.err; then
4995 sed '10a\
4996... rest of stderr output deleted ...
4997 10q' conftest.err >conftest.er1
4998 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +00004999 fi
cristycd4c5312009-11-22 01:19:08 +00005000 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +00005001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5002 test $ac_status = 0; }
5003done
cristy3ed852e2009-09-05 21:47:34 +00005004
cristy8b350f62009-11-15 23:12:43 +00005005cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005006/* end confdefs.h. */
cristycd4c5312009-11-22 01:19:08 +00005007
cristy3ed852e2009-09-05 21:47:34 +00005008int
5009main ()
5010{
5011
5012 ;
5013 return 0;
5014}
5015_ACEOF
5016ac_clean_files_save=$ac_clean_files
cristycd4c5312009-11-22 01:19:08 +00005017ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cristy3ed852e2009-09-05 21:47:34 +00005018# Try to create an executable without -o first, disregard a.out.
5019# It will help us diagnose broken compilers, and finding out an intuition
5020# of exeext.
cristycd4c5312009-11-22 01:19:08 +00005021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5022$as_echo_n "checking whether the C compiler works... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +00005023ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5024
5025# The possible output files:
5026ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5027
5028ac_rmfiles=
5029for ac_file in $ac_files
5030do
5031 case $ac_file in
5032 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5033 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5034 esac
5035done
5036rm -f $ac_rmfiles
5037
cristy8b350f62009-11-15 23:12:43 +00005038if { { ac_try="$ac_link_default"
cristy3ed852e2009-09-05 21:47:34 +00005039case "(($ac_try" in
5040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5041 *) ac_try_echo=$ac_try;;
5042esac
cristy8b350f62009-11-15 23:12:43 +00005043eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5044$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00005045 (eval "$ac_link_default") 2>&5
5046 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00005047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5048 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00005049 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5050# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5051# in a Makefile. We should not override ac_cv_exeext if it was cached,
5052# so that the user can short-circuit this test for compilers unknown to
5053# Autoconf.
5054for ac_file in $ac_files ''
5055do
5056 test -f "$ac_file" || continue
5057 case $ac_file in
5058 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5059 ;;
5060 [ab].out )
5061 # We found the default executable, but exeext='' is most
5062 # certainly right.
5063 break;;
5064 *.* )
cristy8b350f62009-11-15 23:12:43 +00005065 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cristy3ed852e2009-09-05 21:47:34 +00005066 then :; else
5067 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5068 fi
5069 # We set ac_cv_exeext here because the later test for it is not
5070 # safe: cross compilers may not add the suffix if given an `-o'
5071 # argument, so we may need to know it at that point already.
5072 # Even if this section looks crufty: it has the advantage of
5073 # actually working.
5074 break;;
5075 * )
5076 break;;
5077 esac
5078done
5079test "$ac_cv_exeext" = no && ac_cv_exeext=
5080
5081else
5082 ac_file=''
5083fi
cristy8b350f62009-11-15 23:12:43 +00005084if test -z "$ac_file"; then :
cristycd4c5312009-11-22 01:19:08 +00005085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5086$as_echo "no" >&6; }
5087$as_echo "$as_me: failed program was:" >&5
cristy3ed852e2009-09-05 21:47:34 +00005088sed 's/^/| /' conftest.$ac_ext >&5
5089
cristy8b350f62009-11-15 23:12:43 +00005090{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00005091$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005092as_fn_error 77 "C compiler cannot create executables
5093See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00005094else
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5096$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00005097fi
cristycd4c5312009-11-22 01:19:08 +00005098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5099$as_echo_n "checking for C compiler default output file name... " >&6; }
5100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5101$as_echo "$ac_file" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00005102ac_exeext=$ac_cv_exeext
5103
cristycd4c5312009-11-22 01:19:08 +00005104rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cristy3ed852e2009-09-05 21:47:34 +00005105ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00005106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cristy3ed852e2009-09-05 21:47:34 +00005107$as_echo_n "checking for suffix of executables... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00005108if { { ac_try="$ac_link"
cristy3ed852e2009-09-05 21:47:34 +00005109case "(($ac_try" in
5110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5111 *) ac_try_echo=$ac_try;;
5112esac
cristy8b350f62009-11-15 23:12:43 +00005113eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5114$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00005115 (eval "$ac_link") 2>&5
5116 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00005117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5118 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00005119 # If both `conftest.exe' and `conftest' are `present' (well, observable)
5120# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
5121# work properly (i.e., refer to `conftest.exe'), while it won't with
5122# `rm'.
5123for ac_file in conftest.exe conftest conftest.*; do
5124 test -f "$ac_file" || continue
5125 case $ac_file in
5126 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5127 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5128 break;;
5129 * ) break;;
5130 esac
5131done
5132else
cristy8b350f62009-11-15 23:12:43 +00005133 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00005134$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005135as_fn_error $? "cannot compute suffix of executables: cannot compile and link
5136See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00005137fi
cristycd4c5312009-11-22 01:19:08 +00005138rm -f conftest conftest$ac_cv_exeext
cristy8b350f62009-11-15 23:12:43 +00005139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cristy3ed852e2009-09-05 21:47:34 +00005140$as_echo "$ac_cv_exeext" >&6; }
5141
5142rm -f conftest.$ac_ext
5143EXEEXT=$ac_cv_exeext
5144ac_exeext=$EXEEXT
cristycd4c5312009-11-22 01:19:08 +00005145cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5146/* end confdefs.h. */
5147#include <stdio.h>
5148int
5149main ()
5150{
5151FILE *f = fopen ("conftest.out", "w");
5152 return ferror (f) || fclose (f) != 0;
5153
5154 ;
5155 return 0;
5156}
5157_ACEOF
5158ac_clean_files="$ac_clean_files conftest.out"
5159# Check that the compiler produces executables we can run. If not, either
5160# the compiler is broken, or we cross compile.
5161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5162$as_echo_n "checking whether we are cross compiling... " >&6; }
5163if test "$cross_compiling" != yes; then
5164 { { ac_try="$ac_link"
5165case "(($ac_try" in
5166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5167 *) ac_try_echo=$ac_try;;
5168esac
5169eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5170$as_echo "$ac_try_echo"; } >&5
5171 (eval "$ac_link") 2>&5
5172 ac_status=$?
5173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5174 test $ac_status = 0; }
5175 if { ac_try='./conftest$ac_cv_exeext'
5176 { { case "(($ac_try" in
5177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5178 *) ac_try_echo=$ac_try;;
5179esac
5180eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5181$as_echo "$ac_try_echo"; } >&5
5182 (eval "$ac_try") 2>&5
5183 ac_status=$?
5184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5185 test $ac_status = 0; }; }; then
5186 cross_compiling=no
5187 else
5188 if test "$cross_compiling" = maybe; then
5189 cross_compiling=yes
5190 else
5191 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5192$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005193as_fn_error $? "cannot run C compiled programs.
cristycd4c5312009-11-22 01:19:08 +00005194If you meant to cross compile, use \`--host'.
cristy98dddb52010-11-04 00:30:15 +00005195See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00005196 fi
5197 fi
5198fi
5199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5200$as_echo "$cross_compiling" >&6; }
5201
5202rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5203ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00005204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00005205$as_echo_n "checking for suffix of object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005206if ${ac_cv_objext+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005207 $as_echo_n "(cached) " >&6
5208else
cristy8b350f62009-11-15 23:12:43 +00005209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005210/* end confdefs.h. */
5211
5212int
5213main ()
5214{
5215
5216 ;
5217 return 0;
5218}
5219_ACEOF
5220rm -f conftest.o conftest.obj
cristy8b350f62009-11-15 23:12:43 +00005221if { { ac_try="$ac_compile"
cristy3ed852e2009-09-05 21:47:34 +00005222case "(($ac_try" in
5223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5224 *) ac_try_echo=$ac_try;;
5225esac
cristy8b350f62009-11-15 23:12:43 +00005226eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5227$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00005228 (eval "$ac_compile") 2>&5
5229 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00005230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5231 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00005232 for ac_file in conftest.o conftest.obj conftest.*; do
5233 test -f "$ac_file" || continue;
5234 case $ac_file in
5235 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5236 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5237 break;;
5238 esac
5239done
5240else
5241 $as_echo "$as_me: failed program was:" >&5
5242sed 's/^/| /' conftest.$ac_ext >&5
5243
cristy8b350f62009-11-15 23:12:43 +00005244{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00005245$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005246as_fn_error $? "cannot compute suffix of object files: cannot compile
5247See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00005248fi
cristy3ed852e2009-09-05 21:47:34 +00005249rm -f conftest.$ac_cv_objext conftest.$ac_ext
5250fi
cristy8b350f62009-11-15 23:12:43 +00005251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +00005252$as_echo "$ac_cv_objext" >&6; }
5253OBJEXT=$ac_cv_objext
5254ac_objext=$OBJEXT
cristy8b350f62009-11-15 23:12:43 +00005255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00005256$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005257if ${ac_cv_c_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005258 $as_echo_n "(cached) " >&6
5259else
cristy8b350f62009-11-15 23:12:43 +00005260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005261/* end confdefs.h. */
5262
5263int
5264main ()
5265{
5266#ifndef __GNUC__
5267 choke me
5268#endif
5269
5270 ;
5271 return 0;
5272}
5273_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005274if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005275 ac_compiler_gnu=yes
5276else
cristy8b350f62009-11-15 23:12:43 +00005277 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00005278fi
cristy3ed852e2009-09-05 21:47:34 +00005279rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5280ac_cv_c_compiler_gnu=$ac_compiler_gnu
5281
5282fi
cristy8b350f62009-11-15 23:12:43 +00005283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00005284$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5285if test $ac_compiler_gnu = yes; then
5286 GCC=yes
5287else
5288 GCC=
5289fi
5290ac_test_CFLAGS=${CFLAGS+set}
5291ac_save_CFLAGS=$CFLAGS
cristy8b350f62009-11-15 23:12:43 +00005292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00005293$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005294if ${ac_cv_prog_cc_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005295 $as_echo_n "(cached) " >&6
5296else
5297 ac_save_c_werror_flag=$ac_c_werror_flag
5298 ac_c_werror_flag=yes
5299 ac_cv_prog_cc_g=no
5300 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00005301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005302/* end confdefs.h. */
5303
5304int
5305main ()
5306{
5307
5308 ;
5309 return 0;
5310}
5311_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005312if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005313 ac_cv_prog_cc_g=yes
5314else
cristy8b350f62009-11-15 23:12:43 +00005315 CFLAGS=""
5316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005317/* end confdefs.h. */
5318
5319int
5320main ()
5321{
5322
5323 ;
5324 return 0;
5325}
5326_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005327if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005328
cristy8b350f62009-11-15 23:12:43 +00005329else
5330 ac_c_werror_flag=$ac_save_c_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00005331 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00005332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005333/* end confdefs.h. */
5334
5335int
5336main ()
5337{
5338
5339 ;
5340 return 0;
5341}
5342_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005343if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005344 ac_cv_prog_cc_g=yes
cristy3ed852e2009-09-05 21:47:34 +00005345fi
cristy3ed852e2009-09-05 21:47:34 +00005346rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5347fi
cristy3ed852e2009-09-05 21:47:34 +00005348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5349fi
cristy3ed852e2009-09-05 21:47:34 +00005350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5351 ac_c_werror_flag=$ac_save_c_werror_flag
5352fi
cristy8b350f62009-11-15 23:12:43 +00005353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00005354$as_echo "$ac_cv_prog_cc_g" >&6; }
5355if test "$ac_test_CFLAGS" = set; then
5356 CFLAGS=$ac_save_CFLAGS
5357elif test $ac_cv_prog_cc_g = yes; then
5358 if test "$GCC" = yes; then
5359 CFLAGS="-g -O2"
5360 else
5361 CFLAGS="-g"
5362 fi
5363else
5364 if test "$GCC" = yes; then
5365 CFLAGS="-O2"
5366 else
5367 CFLAGS=
5368 fi
5369fi
cristy8b350f62009-11-15 23:12:43 +00005370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005371$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005372if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005373 $as_echo_n "(cached) " >&6
5374else
5375 ac_cv_prog_cc_c89=no
5376ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00005377cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005378/* end confdefs.h. */
5379#include <stdarg.h>
5380#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00005381struct stat;
cristy3ed852e2009-09-05 21:47:34 +00005382/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5383struct buf { int x; };
5384FILE * (*rcsopen) (struct buf *, struct stat *, int);
5385static char *e (p, i)
5386 char **p;
5387 int i;
5388{
5389 return p[i];
5390}
5391static char *f (char * (*g) (char **, int), char **p, ...)
5392{
5393 char *s;
5394 va_list v;
5395 va_start (v,p);
5396 s = g (p, va_arg (v,int));
5397 va_end (v);
5398 return s;
5399}
5400
5401/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5402 function prototypes and stuff, but not '\xHH' hex character constants.
5403 These don't provoke an error unfortunately, instead are silently treated
5404 as 'x'. The following induces an error, until -std is added to get
5405 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5406 array size at least. It's necessary to write '\x00'==0 to get something
5407 that's true only with -std. */
5408int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5409
5410/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5411 inside strings and character constants. */
5412#define FOO(x) 'x'
5413int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5414
5415int test (int i, double x);
5416struct s1 {int (*f) (int a);};
5417struct s2 {int (*f) (double a);};
5418int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5419int argc;
5420char **argv;
5421int
5422main ()
5423{
5424return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5425 ;
5426 return 0;
5427}
5428_ACEOF
5429for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5430 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5431do
5432 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00005433 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005434 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00005435fi
cristy3ed852e2009-09-05 21:47:34 +00005436rm -f core conftest.err conftest.$ac_objext
5437 test "x$ac_cv_prog_cc_c89" != "xno" && break
5438done
5439rm -f conftest.$ac_ext
5440CC=$ac_save_CC
5441
5442fi
5443# AC_CACHE_VAL
5444case "x$ac_cv_prog_cc_c89" in
5445 x)
cristy8b350f62009-11-15 23:12:43 +00005446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00005447$as_echo "none needed" >&6; } ;;
5448 xno)
cristy8b350f62009-11-15 23:12:43 +00005449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00005450$as_echo "unsupported" >&6; } ;;
5451 *)
5452 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00005453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005454$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5455esac
cristy8b350f62009-11-15 23:12:43 +00005456if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00005457
cristy8b350f62009-11-15 23:12:43 +00005458fi
cristy3ed852e2009-09-05 21:47:34 +00005459
5460ac_ext=c
5461ac_cpp='$CPP $CPPFLAGS'
5462ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5463ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5464ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00005465
cristya5bda012013-11-03 18:05:38 +00005466ac_ext=c
5467ac_cpp='$CPP $CPPFLAGS'
5468ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5469ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5470ac_compiler_gnu=$ac_cv_c_compiler_gnu
5471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5472$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5473if ${am_cv_prog_cc_c_o+:} false; then :
5474 $as_echo_n "(cached) " >&6
5475else
5476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5477/* end confdefs.h. */
5478
5479int
5480main ()
5481{
5482
5483 ;
5484 return 0;
5485}
5486_ACEOF
5487 # Make sure it works both with $CC and with simple cc.
5488 # Following AC_PROG_CC_C_O, we do the test twice because some
5489 # compilers refuse to overwrite an existing .o file with -o,
5490 # though they will create one.
5491 am_cv_prog_cc_c_o=yes
5492 for am_i in 1 2; do
5493 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5494 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5495 ac_status=$?
5496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5497 (exit $ac_status); } \
5498 && test -f conftest2.$ac_objext; then
5499 : OK
5500 else
5501 am_cv_prog_cc_c_o=no
5502 break
5503 fi
5504 done
5505 rm -f core conftest*
5506 unset am_i
5507fi
5508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5509$as_echo "$am_cv_prog_cc_c_o" >&6; }
5510if test "$am_cv_prog_cc_c_o" != yes; then
5511 # Losing compiler, so override with the script.
5512 # FIXME: It is wrong to rewrite CC.
5513 # But if we don't then we get into trouble of one sort or another.
5514 # A longer-term fix would be to have automake use am__CC in this case,
5515 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5516 CC="$am_aux_dir/compile $CC"
5517fi
5518ac_ext=c
5519ac_cpp='$CPP $CPPFLAGS'
5520ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5521ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5522ac_compiler_gnu=$ac_cv_c_compiler_gnu
5523
5524
cristy73bd4a52010-10-05 11:24:23 +00005525depcc="$CC" am_compiler_list=
5526
5527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5528$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005529if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00005530 $as_echo_n "(cached) " >&6
5531else
5532 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5533 # We make a subdir and do the tests there. Otherwise we can end up
5534 # making bogus files that we don't know about and never remove. For
5535 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00005536 # making a dummy file named 'D' -- because '-MD' means "put the output
5537 # in D".
cristy7247bba2012-02-05 16:37:27 +00005538 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00005539 mkdir conftest.dir
5540 # Copy depcomp to subdir because otherwise we won't find it if we're
5541 # using a relative directory.
5542 cp "$am_depcomp" conftest.dir
5543 cd conftest.dir
5544 # We will build objects and dependencies in a subdirectory because
5545 # it helps to detect inapplicable dependency modes. For instance
5546 # both Tru64's cc and ICC support -MD to output dependencies as a
5547 # side effect of compilation, but ICC will put the dependencies in
5548 # the current directory while Tru64 will put them in the object
5549 # directory.
5550 mkdir sub
5551
5552 am_cv_CC_dependencies_compiler_type=none
5553 if test "$am_compiler_list" = ""; then
5554 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5555 fi
5556 am__universal=false
5557 case " $depcc " in #(
5558 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5559 esac
5560
5561 for depmode in $am_compiler_list; do
5562 # Setup a source with many dependencies, because some compilers
5563 # like to wrap large dependency lists on column 80 (with \), and
5564 # we should not choose a depcomp mode which is confused by this.
5565 #
5566 # We need to recreate these files for each test, as the compiler may
5567 # overwrite some of them when testing with obscure command lines.
5568 # This happens at least with the AIX C compiler.
5569 : > sub/conftest.c
5570 for i in 1 2 3 4 5 6; do
5571 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00005572 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5573 # Solaris 10 /bin/sh.
5574 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00005575 done
5576 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5577
cristyc0890a62012-07-19 00:18:20 +00005578 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00005579 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00005580 # handle '-M -o', and we need to detect this. Also, some Intel
5581 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00005582 am__obj=sub/conftest.${OBJEXT-o}
5583 am__minus_obj="-o $am__obj"
5584 case $depmode in
5585 gcc)
5586 # This depmode causes a compiler race in universal mode.
5587 test "$am__universal" = false || continue
5588 ;;
5589 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00005590 # After this tag, mechanisms are not by side-effect, so they'll
5591 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00005592 if test "x$enable_dependency_tracking" = xyes; then
5593 continue
5594 else
5595 break
5596 fi
5597 ;;
cristy7247bba2012-02-05 16:37:27 +00005598 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00005599 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00005600 # not run yet. These depmodes are late enough in the game, and
5601 # so weak that their functioning should not be impacted.
5602 am__obj=conftest.${OBJEXT-o}
5603 am__minus_obj=
5604 ;;
5605 none) break ;;
5606 esac
5607 if depmode=$depmode \
5608 source=sub/conftest.c object=$am__obj \
5609 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5610 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5611 >/dev/null 2>conftest.err &&
5612 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5613 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5614 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5615 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5616 # icc doesn't choke on unknown options, it will just issue warnings
5617 # or remarks (even with -Werror). So we grep stderr for any message
5618 # that says an option was ignored or not supported.
5619 # When given -MP, icc 7.0 and 7.1 complain thusly:
5620 # icc: Command line warning: ignoring option '-M'; no argument required
5621 # The diagnosis changed in icc 8.0:
5622 # icc: Command line remark: option '-MP' not supported
5623 if (grep 'ignoring option' conftest.err ||
5624 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5625 am_cv_CC_dependencies_compiler_type=$depmode
5626 break
5627 fi
5628 fi
5629 done
5630
5631 cd ..
5632 rm -rf conftest.dir
5633else
5634 am_cv_CC_dependencies_compiler_type=none
5635fi
5636
5637fi
5638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5639$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5640CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5641
5642 if
5643 test "x$enable_dependency_tracking" != xno \
5644 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5645 am__fastdepCC_TRUE=
5646 am__fastdepCC_FALSE='#'
5647else
5648 am__fastdepCC_TRUE='#'
5649 am__fastdepCC_FALSE=
5650fi
5651
5652
cristy3ed852e2009-09-05 21:47:34 +00005653
cristya0b81c32010-01-22 02:54:33 +00005654ac_ext=c
5655ac_cpp='$CPP $CPPFLAGS'
5656ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5657ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5658ac_compiler_gnu=$ac_cv_c_compiler_gnu
5659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5660$as_echo_n "checking how to run the C preprocessor... " >&6; }
5661# On Suns, sometimes $CPP names a directory.
5662if test -n "$CPP" && test -d "$CPP"; then
5663 CPP=
5664fi
5665if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00005666 if ${ac_cv_prog_CPP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005667 $as_echo_n "(cached) " >&6
5668else
5669 # Double quotes because CPP needs to be expanded
5670 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5671 do
5672 ac_preproc_ok=false
5673for ac_c_preproc_warn_flag in '' yes
5674do
5675 # Use a header file that comes with gcc, so configuring glibc
5676 # with a fresh cross-compiler works.
5677 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5678 # <limits.h> exists even on freestanding compilers.
5679 # On the NeXT, cc -E runs the code through the compiler's parser,
5680 # not just through cpp. "Syntax error" is here to catch this case.
5681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5682/* end confdefs.h. */
5683#ifdef __STDC__
5684# include <limits.h>
5685#else
5686# include <assert.h>
5687#endif
5688 Syntax error
5689_ACEOF
5690if ac_fn_c_try_cpp "$LINENO"; then :
5691
5692else
5693 # Broken: fails on valid input.
5694continue
5695fi
cristyda16f162011-02-19 23:52:17 +00005696rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005697
5698 # OK, works on sane cases. Now check whether nonexistent headers
5699 # can be detected and how.
5700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5701/* end confdefs.h. */
5702#include <ac_nonexistent.h>
5703_ACEOF
5704if ac_fn_c_try_cpp "$LINENO"; then :
5705 # Broken: success on invalid input.
5706continue
5707else
5708 # Passes both tests.
5709ac_preproc_ok=:
5710break
5711fi
cristyda16f162011-02-19 23:52:17 +00005712rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005713
5714done
5715# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005716rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005717if $ac_preproc_ok; then :
5718 break
5719fi
5720
5721 done
5722 ac_cv_prog_CPP=$CPP
5723
5724fi
5725 CPP=$ac_cv_prog_CPP
5726else
5727 ac_cv_prog_CPP=$CPP
5728fi
5729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5730$as_echo "$CPP" >&6; }
5731ac_preproc_ok=false
5732for ac_c_preproc_warn_flag in '' yes
5733do
5734 # Use a header file that comes with gcc, so configuring glibc
5735 # with a fresh cross-compiler works.
5736 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5737 # <limits.h> exists even on freestanding compilers.
5738 # On the NeXT, cc -E runs the code through the compiler's parser,
5739 # not just through cpp. "Syntax error" is here to catch this case.
5740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5741/* end confdefs.h. */
5742#ifdef __STDC__
5743# include <limits.h>
5744#else
5745# include <assert.h>
5746#endif
5747 Syntax error
5748_ACEOF
5749if ac_fn_c_try_cpp "$LINENO"; then :
5750
5751else
5752 # Broken: fails on valid input.
5753continue
5754fi
cristyda16f162011-02-19 23:52:17 +00005755rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005756
5757 # OK, works on sane cases. Now check whether nonexistent headers
5758 # can be detected and how.
5759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5760/* end confdefs.h. */
5761#include <ac_nonexistent.h>
5762_ACEOF
5763if ac_fn_c_try_cpp "$LINENO"; then :
5764 # Broken: success on invalid input.
5765continue
5766else
5767 # Passes both tests.
5768ac_preproc_ok=:
5769break
5770fi
cristyda16f162011-02-19 23:52:17 +00005771rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005772
5773done
5774# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005775rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005776if $ac_preproc_ok; then :
5777
5778else
5779 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5780$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005781as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5782See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005783fi
5784
5785ac_ext=c
5786ac_cpp='$CPP $CPPFLAGS'
5787ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5788ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5789ac_compiler_gnu=$ac_cv_c_compiler_gnu
5790
5791
5792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5793$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005794if ${ac_cv_path_GREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005795 $as_echo_n "(cached) " >&6
5796else
5797 if test -z "$GREP"; then
5798 ac_path_GREP_found=false
5799 # Loop through the user's path and test for each of PROGNAME-LIST
5800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5801for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5802do
5803 IFS=$as_save_IFS
5804 test -z "$as_dir" && as_dir=.
5805 for ac_prog in grep ggrep; do
5806 for ac_exec_ext in '' $ac_executable_extensions; do
5807 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00005808 as_fn_executable_p "$ac_path_GREP" || continue
cristya0b81c32010-01-22 02:54:33 +00005809# Check for GNU ac_path_GREP and select it if it is found.
5810 # Check for GNU $ac_path_GREP
5811case `"$ac_path_GREP" --version 2>&1` in
5812*GNU*)
5813 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5814*)
5815 ac_count=0
5816 $as_echo_n 0123456789 >"conftest.in"
5817 while :
5818 do
5819 cat "conftest.in" "conftest.in" >"conftest.tmp"
5820 mv "conftest.tmp" "conftest.in"
5821 cp "conftest.in" "conftest.nl"
5822 $as_echo 'GREP' >> "conftest.nl"
5823 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5824 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5825 as_fn_arith $ac_count + 1 && ac_count=$as_val
5826 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5827 # Best one so far, save it but keep looking for a better one
5828 ac_cv_path_GREP="$ac_path_GREP"
5829 ac_path_GREP_max=$ac_count
5830 fi
5831 # 10*(2^10) chars as input seems more than enough
5832 test $ac_count -gt 10 && break
5833 done
5834 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5835esac
5836
5837 $ac_path_GREP_found && break 3
5838 done
5839 done
5840 done
5841IFS=$as_save_IFS
5842 if test -z "$ac_cv_path_GREP"; then
cristy98dddb52010-11-04 00:30:15 +00005843 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005844 fi
5845else
5846 ac_cv_path_GREP=$GREP
5847fi
5848
5849fi
5850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5851$as_echo "$ac_cv_path_GREP" >&6; }
5852 GREP="$ac_cv_path_GREP"
5853
5854
5855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5856$as_echo_n "checking for egrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005857if ${ac_cv_path_EGREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005858 $as_echo_n "(cached) " >&6
5859else
5860 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5861 then ac_cv_path_EGREP="$GREP -E"
5862 else
5863 if test -z "$EGREP"; then
5864 ac_path_EGREP_found=false
5865 # Loop through the user's path and test for each of PROGNAME-LIST
5866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5867for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5868do
5869 IFS=$as_save_IFS
5870 test -z "$as_dir" && as_dir=.
5871 for ac_prog in egrep; do
5872 for ac_exec_ext in '' $ac_executable_extensions; do
5873 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00005874 as_fn_executable_p "$ac_path_EGREP" || continue
cristya0b81c32010-01-22 02:54:33 +00005875# Check for GNU ac_path_EGREP and select it if it is found.
5876 # Check for GNU $ac_path_EGREP
5877case `"$ac_path_EGREP" --version 2>&1` in
5878*GNU*)
5879 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5880*)
5881 ac_count=0
5882 $as_echo_n 0123456789 >"conftest.in"
5883 while :
5884 do
5885 cat "conftest.in" "conftest.in" >"conftest.tmp"
5886 mv "conftest.tmp" "conftest.in"
5887 cp "conftest.in" "conftest.nl"
5888 $as_echo 'EGREP' >> "conftest.nl"
5889 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5890 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5891 as_fn_arith $ac_count + 1 && ac_count=$as_val
5892 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5893 # Best one so far, save it but keep looking for a better one
5894 ac_cv_path_EGREP="$ac_path_EGREP"
5895 ac_path_EGREP_max=$ac_count
5896 fi
5897 # 10*(2^10) chars as input seems more than enough
5898 test $ac_count -gt 10 && break
5899 done
5900 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5901esac
5902
5903 $ac_path_EGREP_found && break 3
5904 done
5905 done
5906 done
5907IFS=$as_save_IFS
5908 if test -z "$ac_cv_path_EGREP"; then
cristy98dddb52010-11-04 00:30:15 +00005909 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005910 fi
5911else
5912 ac_cv_path_EGREP=$EGREP
5913fi
5914
5915 fi
5916fi
5917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5918$as_echo "$ac_cv_path_EGREP" >&6; }
5919 EGREP="$ac_cv_path_EGREP"
5920
5921
5922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5923$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005924if ${ac_cv_header_stdc+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005925 $as_echo_n "(cached) " >&6
5926else
5927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5928/* end confdefs.h. */
5929#include <stdlib.h>
5930#include <stdarg.h>
5931#include <string.h>
5932#include <float.h>
5933
5934int
5935main ()
5936{
5937
5938 ;
5939 return 0;
5940}
5941_ACEOF
5942if ac_fn_c_try_compile "$LINENO"; then :
5943 ac_cv_header_stdc=yes
5944else
5945 ac_cv_header_stdc=no
5946fi
5947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5948
5949if test $ac_cv_header_stdc = yes; then
5950 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5952/* end confdefs.h. */
5953#include <string.h>
5954
5955_ACEOF
5956if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5957 $EGREP "memchr" >/dev/null 2>&1; then :
5958
5959else
5960 ac_cv_header_stdc=no
5961fi
5962rm -f conftest*
5963
5964fi
5965
5966if test $ac_cv_header_stdc = yes; then
5967 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5969/* end confdefs.h. */
5970#include <stdlib.h>
5971
5972_ACEOF
5973if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5974 $EGREP "free" >/dev/null 2>&1; then :
5975
5976else
5977 ac_cv_header_stdc=no
5978fi
5979rm -f conftest*
5980
5981fi
5982
5983if test $ac_cv_header_stdc = yes; then
5984 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5985 if test "$cross_compiling" = yes; then :
5986 :
5987else
5988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5989/* end confdefs.h. */
5990#include <ctype.h>
5991#include <stdlib.h>
5992#if ((' ' & 0x0FF) == 0x020)
5993# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5994# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5995#else
5996# define ISLOWER(c) \
5997 (('a' <= (c) && (c) <= 'i') \
5998 || ('j' <= (c) && (c) <= 'r') \
5999 || ('s' <= (c) && (c) <= 'z'))
6000# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6001#endif
6002
6003#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6004int
6005main ()
6006{
6007 int i;
6008 for (i = 0; i < 256; i++)
6009 if (XOR (islower (i), ISLOWER (i))
6010 || toupper (i) != TOUPPER (i))
6011 return 2;
6012 return 0;
6013}
6014_ACEOF
6015if ac_fn_c_try_run "$LINENO"; then :
6016
6017else
6018 ac_cv_header_stdc=no
6019fi
6020rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6021 conftest.$ac_objext conftest.beam conftest.$ac_ext
6022fi
6023
6024fi
6025fi
6026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6027$as_echo "$ac_cv_header_stdc" >&6; }
6028if test $ac_cv_header_stdc = yes; then
6029
6030$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6031
6032fi
6033
6034# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6035for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6036 inttypes.h stdint.h unistd.h
6037do :
6038 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6039ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6040"
cristy98dddb52010-11-04 00:30:15 +00006041if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristya0b81c32010-01-22 02:54:33 +00006042 cat >>confdefs.h <<_ACEOF
6043#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6044_ACEOF
6045
6046fi
6047
6048done
6049
6050
6051
6052 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 +00006053if test "x$ac_cv_header_minix_config_h" = xyes; then :
cristya0b81c32010-01-22 02:54:33 +00006054 MINIX=yes
6055else
6056 MINIX=
6057fi
6058
6059
6060 if test "$MINIX" = yes; then
6061
6062$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6063
6064
6065$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6066
6067
6068$as_echo "#define _MINIX 1" >>confdefs.h
6069
6070 fi
6071
6072
6073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6074$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006075if ${ac_cv_safe_to_define___extensions__+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006076 $as_echo_n "(cached) " >&6
6077else
6078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6079/* end confdefs.h. */
6080
cristy14fefe52012-05-21 00:59:18 +00006081# define __EXTENSIONS__ 1
6082 $ac_includes_default
cristya0b81c32010-01-22 02:54:33 +00006083int
6084main ()
6085{
6086
6087 ;
6088 return 0;
6089}
6090_ACEOF
6091if ac_fn_c_try_compile "$LINENO"; then :
6092 ac_cv_safe_to_define___extensions__=yes
6093else
6094 ac_cv_safe_to_define___extensions__=no
6095fi
6096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6097fi
6098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6099$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6100 test $ac_cv_safe_to_define___extensions__ = yes &&
6101 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6102
6103 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6104
6105 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6106
6107 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6108
6109 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6110
6111
6112
cristy9af1cbf2014-12-28 22:03:09 +00006113# ==============================================================================
6114# Find required base packages
6115# ==============================================================================
cristy9e007fe2015-01-03 16:05:07 +00006116if test -n "$ac_tool_prefix"; then
6117 for ac_prog in ar lib "link -lib"
6118 do
6119 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6120set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6122$as_echo_n "checking for $ac_word... " >&6; }
6123if ${ac_cv_prog_AR+:} false; then :
6124 $as_echo_n "(cached) " >&6
6125else
6126 if test -n "$AR"; then
6127 ac_cv_prog_AR="$AR" # Let the user override the test.
6128else
6129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6130for as_dir in $PATH
6131do
6132 IFS=$as_save_IFS
6133 test -z "$as_dir" && as_dir=.
6134 for ac_exec_ext in '' $ac_executable_extensions; do
6135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6136 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6138 break 2
6139 fi
6140done
6141 done
6142IFS=$as_save_IFS
6143
6144fi
6145fi
6146AR=$ac_cv_prog_AR
6147if test -n "$AR"; then
6148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6149$as_echo "$AR" >&6; }
6150else
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6152$as_echo "no" >&6; }
6153fi
6154
6155
6156 test -n "$AR" && break
6157 done
6158fi
6159if test -z "$AR"; then
6160 ac_ct_AR=$AR
6161 for ac_prog in ar lib "link -lib"
6162do
6163 # Extract the first word of "$ac_prog", so it can be a program name with args.
6164set dummy $ac_prog; ac_word=$2
6165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6166$as_echo_n "checking for $ac_word... " >&6; }
6167if ${ac_cv_prog_ac_ct_AR+:} false; then :
6168 $as_echo_n "(cached) " >&6
6169else
6170 if test -n "$ac_ct_AR"; then
6171 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6172else
6173as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6174for as_dir in $PATH
6175do
6176 IFS=$as_save_IFS
6177 test -z "$as_dir" && as_dir=.
6178 for ac_exec_ext in '' $ac_executable_extensions; do
6179 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6180 ac_cv_prog_ac_ct_AR="$ac_prog"
6181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6182 break 2
6183 fi
6184done
6185 done
6186IFS=$as_save_IFS
6187
6188fi
6189fi
6190ac_ct_AR=$ac_cv_prog_ac_ct_AR
6191if test -n "$ac_ct_AR"; then
6192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6193$as_echo "$ac_ct_AR" >&6; }
6194else
6195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6196$as_echo "no" >&6; }
6197fi
6198
6199
6200 test -n "$ac_ct_AR" && break
6201done
6202
6203 if test "x$ac_ct_AR" = x; then
6204 AR="false"
6205 else
6206 case $cross_compiling:$ac_tool_warned in
6207yes:)
6208{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6209$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6210ac_tool_warned=yes ;;
6211esac
6212 AR=$ac_ct_AR
6213 fi
6214fi
6215
6216: ${AR=ar}
6217
6218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
6219$as_echo_n "checking the archiver ($AR) interface... " >&6; }
6220if ${am_cv_ar_interface+:} false; then :
6221 $as_echo_n "(cached) " >&6
6222else
6223 ac_ext=c
6224ac_cpp='$CPP $CPPFLAGS'
6225ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6226ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6227ac_compiler_gnu=$ac_cv_c_compiler_gnu
6228
6229 am_cv_ar_interface=ar
6230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6231/* end confdefs.h. */
6232int some_variable = 0;
6233_ACEOF
6234if ac_fn_c_try_compile "$LINENO"; then :
6235 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
6236 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
6237 (eval $am_ar_try) 2>&5
6238 ac_status=$?
6239 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6240 test $ac_status = 0; }
6241 if test "$ac_status" -eq 0; then
6242 am_cv_ar_interface=ar
6243 else
6244 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
6245 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
6246 (eval $am_ar_try) 2>&5
6247 ac_status=$?
6248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6249 test $ac_status = 0; }
6250 if test "$ac_status" -eq 0; then
6251 am_cv_ar_interface=lib
6252 else
6253 am_cv_ar_interface=unknown
6254 fi
6255 fi
6256 rm -f conftest.lib libconftest.a
6257
6258fi
6259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6260 ac_ext=c
6261ac_cpp='$CPP $CPPFLAGS'
6262ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6263ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6264ac_compiler_gnu=$ac_cv_c_compiler_gnu
6265
6266fi
6267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
6268$as_echo "$am_cv_ar_interface" >&6; }
6269
6270case $am_cv_ar_interface in
6271ar)
6272 ;;
6273lib)
6274 # Microsoft lib, so override with the ar-lib wrapper script.
6275 # FIXME: It is wrong to rewrite AR.
6276 # But if we don't then we get into trouble of one sort or another.
6277 # A longer-term fix would be to have automake use am__AR in this case,
6278 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
6279 # similar.
6280 AR="$am_aux_dir/ar-lib $AR"
6281 ;;
6282unknown)
6283 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
6284 ;;
6285esac
cristy9af1cbf2014-12-28 22:03:09 +00006286
cristya0b81c32010-01-22 02:54:33 +00006287ac_ext=c
6288ac_cpp='$CPP $CPPFLAGS'
6289ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6290ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6291ac_compiler_gnu=$ac_cv_c_compiler_gnu
6292if test -n "$ac_tool_prefix"; then
6293 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
6294set dummy ${ac_tool_prefix}gcc; ac_word=$2
6295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6296$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006297if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006298 $as_echo_n "(cached) " >&6
6299else
6300 if test -n "$CC"; then
6301 ac_cv_prog_CC="$CC" # Let the user override the test.
6302else
6303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6304for as_dir in $PATH
6305do
6306 IFS=$as_save_IFS
6307 test -z "$as_dir" && as_dir=.
6308 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006309 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006310 ac_cv_prog_CC="${ac_tool_prefix}gcc"
6311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6312 break 2
6313 fi
6314done
6315 done
6316IFS=$as_save_IFS
6317
6318fi
6319fi
6320CC=$ac_cv_prog_CC
6321if test -n "$CC"; then
6322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6323$as_echo "$CC" >&6; }
6324else
6325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6326$as_echo "no" >&6; }
6327fi
6328
6329
6330fi
6331if test -z "$ac_cv_prog_CC"; then
6332 ac_ct_CC=$CC
6333 # Extract the first word of "gcc", so it can be a program name with args.
6334set dummy gcc; ac_word=$2
6335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6336$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006337if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006338 $as_echo_n "(cached) " >&6
6339else
6340 if test -n "$ac_ct_CC"; then
6341 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6342else
6343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6344for as_dir in $PATH
6345do
6346 IFS=$as_save_IFS
6347 test -z "$as_dir" && as_dir=.
6348 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006349 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006350 ac_cv_prog_ac_ct_CC="gcc"
6351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6352 break 2
6353 fi
6354done
6355 done
6356IFS=$as_save_IFS
6357
6358fi
6359fi
6360ac_ct_CC=$ac_cv_prog_ac_ct_CC
6361if test -n "$ac_ct_CC"; then
6362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6363$as_echo "$ac_ct_CC" >&6; }
6364else
6365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6366$as_echo "no" >&6; }
6367fi
6368
6369 if test "x$ac_ct_CC" = x; then
6370 CC=""
6371 else
6372 case $cross_compiling:$ac_tool_warned in
6373yes:)
6374{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6375$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6376ac_tool_warned=yes ;;
6377esac
6378 CC=$ac_ct_CC
6379 fi
6380else
6381 CC="$ac_cv_prog_CC"
6382fi
6383
6384if test -z "$CC"; then
6385 if test -n "$ac_tool_prefix"; then
6386 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6387set dummy ${ac_tool_prefix}cc; ac_word=$2
6388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6389$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006390if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006391 $as_echo_n "(cached) " >&6
6392else
6393 if test -n "$CC"; then
6394 ac_cv_prog_CC="$CC" # Let the user override the test.
6395else
6396as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6397for as_dir in $PATH
6398do
6399 IFS=$as_save_IFS
6400 test -z "$as_dir" && as_dir=.
6401 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006402 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006403 ac_cv_prog_CC="${ac_tool_prefix}cc"
6404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6405 break 2
6406 fi
6407done
6408 done
6409IFS=$as_save_IFS
6410
6411fi
6412fi
6413CC=$ac_cv_prog_CC
6414if test -n "$CC"; then
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6416$as_echo "$CC" >&6; }
6417else
6418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6419$as_echo "no" >&6; }
6420fi
6421
6422
6423 fi
6424fi
6425if test -z "$CC"; then
6426 # Extract the first word of "cc", so it can be a program name with args.
6427set dummy cc; ac_word=$2
6428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6429$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006430if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006431 $as_echo_n "(cached) " >&6
6432else
6433 if test -n "$CC"; then
6434 ac_cv_prog_CC="$CC" # Let the user override the test.
6435else
6436 ac_prog_rejected=no
6437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6438for as_dir in $PATH
6439do
6440 IFS=$as_save_IFS
6441 test -z "$as_dir" && as_dir=.
6442 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006443 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006444 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6445 ac_prog_rejected=yes
6446 continue
6447 fi
6448 ac_cv_prog_CC="cc"
6449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6450 break 2
6451 fi
6452done
6453 done
6454IFS=$as_save_IFS
6455
6456if test $ac_prog_rejected = yes; then
6457 # We found a bogon in the path, so make sure we never use it.
6458 set dummy $ac_cv_prog_CC
6459 shift
6460 if test $# != 0; then
6461 # We chose a different compiler from the bogus one.
6462 # However, it has the same basename, so the bogon will be chosen
6463 # first if we set CC to just the basename; use the full file name.
6464 shift
6465 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6466 fi
6467fi
6468fi
6469fi
6470CC=$ac_cv_prog_CC
6471if test -n "$CC"; then
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6473$as_echo "$CC" >&6; }
6474else
6475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6476$as_echo "no" >&6; }
6477fi
6478
6479
6480fi
6481if test -z "$CC"; then
6482 if test -n "$ac_tool_prefix"; then
6483 for ac_prog in cl.exe
6484 do
6485 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6486set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6488$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006489if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006490 $as_echo_n "(cached) " >&6
6491else
6492 if test -n "$CC"; then
6493 ac_cv_prog_CC="$CC" # Let the user override the test.
6494else
6495as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6496for as_dir in $PATH
6497do
6498 IFS=$as_save_IFS
6499 test -z "$as_dir" && as_dir=.
6500 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006501 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006502 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6504 break 2
6505 fi
6506done
6507 done
6508IFS=$as_save_IFS
6509
6510fi
6511fi
6512CC=$ac_cv_prog_CC
6513if test -n "$CC"; then
6514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6515$as_echo "$CC" >&6; }
6516else
6517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6518$as_echo "no" >&6; }
6519fi
6520
6521
6522 test -n "$CC" && break
6523 done
6524fi
6525if test -z "$CC"; then
6526 ac_ct_CC=$CC
6527 for ac_prog in cl.exe
6528do
6529 # Extract the first word of "$ac_prog", so it can be a program name with args.
6530set dummy $ac_prog; ac_word=$2
6531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6532$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006533if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006534 $as_echo_n "(cached) " >&6
6535else
6536 if test -n "$ac_ct_CC"; then
6537 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6538else
6539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6540for as_dir in $PATH
6541do
6542 IFS=$as_save_IFS
6543 test -z "$as_dir" && as_dir=.
6544 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006545 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006546 ac_cv_prog_ac_ct_CC="$ac_prog"
6547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6548 break 2
6549 fi
6550done
6551 done
6552IFS=$as_save_IFS
6553
6554fi
6555fi
6556ac_ct_CC=$ac_cv_prog_ac_ct_CC
6557if test -n "$ac_ct_CC"; then
6558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6559$as_echo "$ac_ct_CC" >&6; }
6560else
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6562$as_echo "no" >&6; }
6563fi
6564
6565
6566 test -n "$ac_ct_CC" && break
6567done
6568
6569 if test "x$ac_ct_CC" = x; then
6570 CC=""
6571 else
6572 case $cross_compiling:$ac_tool_warned in
6573yes:)
6574{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6575$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6576ac_tool_warned=yes ;;
6577esac
6578 CC=$ac_ct_CC
6579 fi
6580fi
6581
6582fi
6583
6584
6585test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6586$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00006587as_fn_error $? "no acceptable C compiler found in \$PATH
6588See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00006589
6590# Provide some information about the compiler.
6591$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6592set X $ac_compile
6593ac_compiler=$2
6594for ac_option in --version -v -V -qversion; do
6595 { { ac_try="$ac_compiler $ac_option >&5"
6596case "(($ac_try" in
6597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6598 *) ac_try_echo=$ac_try;;
6599esac
6600eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6601$as_echo "$ac_try_echo"; } >&5
6602 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6603 ac_status=$?
6604 if test -s conftest.err; then
6605 sed '10a\
6606... rest of stderr output deleted ...
6607 10q' conftest.err >conftest.er1
6608 cat conftest.er1 >&5
6609 fi
6610 rm -f conftest.er1 conftest.err
6611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6612 test $ac_status = 0; }
6613done
6614
6615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6616$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006617if ${ac_cv_c_compiler_gnu+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006618 $as_echo_n "(cached) " >&6
6619else
6620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6621/* end confdefs.h. */
6622
6623int
6624main ()
6625{
6626#ifndef __GNUC__
6627 choke me
6628#endif
6629
6630 ;
6631 return 0;
6632}
6633_ACEOF
6634if ac_fn_c_try_compile "$LINENO"; then :
6635 ac_compiler_gnu=yes
6636else
6637 ac_compiler_gnu=no
6638fi
6639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6640ac_cv_c_compiler_gnu=$ac_compiler_gnu
6641
6642fi
6643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6644$as_echo "$ac_cv_c_compiler_gnu" >&6; }
6645if test $ac_compiler_gnu = yes; then
6646 GCC=yes
6647else
6648 GCC=
6649fi
6650ac_test_CFLAGS=${CFLAGS+set}
6651ac_save_CFLAGS=$CFLAGS
6652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6653$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006654if ${ac_cv_prog_cc_g+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006655 $as_echo_n "(cached) " >&6
6656else
6657 ac_save_c_werror_flag=$ac_c_werror_flag
6658 ac_c_werror_flag=yes
6659 ac_cv_prog_cc_g=no
6660 CFLAGS="-g"
6661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6662/* end confdefs.h. */
6663
6664int
6665main ()
6666{
6667
6668 ;
6669 return 0;
6670}
6671_ACEOF
6672if ac_fn_c_try_compile "$LINENO"; then :
6673 ac_cv_prog_cc_g=yes
6674else
6675 CFLAGS=""
6676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6677/* end confdefs.h. */
6678
6679int
6680main ()
6681{
6682
6683 ;
6684 return 0;
6685}
6686_ACEOF
6687if ac_fn_c_try_compile "$LINENO"; then :
6688
6689else
6690 ac_c_werror_flag=$ac_save_c_werror_flag
6691 CFLAGS="-g"
6692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6693/* end confdefs.h. */
6694
6695int
6696main ()
6697{
6698
6699 ;
6700 return 0;
6701}
6702_ACEOF
6703if ac_fn_c_try_compile "$LINENO"; then :
6704 ac_cv_prog_cc_g=yes
6705fi
6706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6707fi
6708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6709fi
6710rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6711 ac_c_werror_flag=$ac_save_c_werror_flag
6712fi
6713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6714$as_echo "$ac_cv_prog_cc_g" >&6; }
6715if test "$ac_test_CFLAGS" = set; then
6716 CFLAGS=$ac_save_CFLAGS
6717elif test $ac_cv_prog_cc_g = yes; then
6718 if test "$GCC" = yes; then
6719 CFLAGS="-g -O2"
6720 else
6721 CFLAGS="-g"
6722 fi
6723else
6724 if test "$GCC" = yes; then
6725 CFLAGS="-O2"
6726 else
6727 CFLAGS=
6728 fi
6729fi
6730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6731$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006732if ${ac_cv_prog_cc_c89+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006733 $as_echo_n "(cached) " >&6
6734else
6735 ac_cv_prog_cc_c89=no
6736ac_save_CC=$CC
6737cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6738/* end confdefs.h. */
6739#include <stdarg.h>
6740#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00006741struct stat;
cristya0b81c32010-01-22 02:54:33 +00006742/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6743struct buf { int x; };
6744FILE * (*rcsopen) (struct buf *, struct stat *, int);
6745static char *e (p, i)
6746 char **p;
6747 int i;
6748{
6749 return p[i];
6750}
6751static char *f (char * (*g) (char **, int), char **p, ...)
6752{
6753 char *s;
6754 va_list v;
6755 va_start (v,p);
6756 s = g (p, va_arg (v,int));
6757 va_end (v);
6758 return s;
6759}
6760
6761/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6762 function prototypes and stuff, but not '\xHH' hex character constants.
6763 These don't provoke an error unfortunately, instead are silently treated
6764 as 'x'. The following induces an error, until -std is added to get
6765 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6766 array size at least. It's necessary to write '\x00'==0 to get something
6767 that's true only with -std. */
6768int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6769
6770/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6771 inside strings and character constants. */
6772#define FOO(x) 'x'
6773int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6774
6775int test (int i, double x);
6776struct s1 {int (*f) (int a);};
6777struct s2 {int (*f) (double a);};
6778int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6779int argc;
6780char **argv;
6781int
6782main ()
6783{
6784return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6785 ;
6786 return 0;
6787}
6788_ACEOF
6789for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6790 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6791do
6792 CC="$ac_save_CC $ac_arg"
6793 if ac_fn_c_try_compile "$LINENO"; then :
6794 ac_cv_prog_cc_c89=$ac_arg
6795fi
6796rm -f core conftest.err conftest.$ac_objext
6797 test "x$ac_cv_prog_cc_c89" != "xno" && break
6798done
6799rm -f conftest.$ac_ext
6800CC=$ac_save_CC
6801
6802fi
6803# AC_CACHE_VAL
6804case "x$ac_cv_prog_cc_c89" in
6805 x)
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6807$as_echo "none needed" >&6; } ;;
6808 xno)
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6810$as_echo "unsupported" >&6; } ;;
6811 *)
6812 CC="$CC $ac_cv_prog_cc_c89"
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6814$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6815esac
6816if test "x$ac_cv_prog_cc_c89" != xno; then :
6817
6818fi
6819
6820ac_ext=c
6821ac_cpp='$CPP $CPPFLAGS'
6822ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6823ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6824ac_compiler_gnu=$ac_cv_c_compiler_gnu
6825
cristya5bda012013-11-03 18:05:38 +00006826ac_ext=c
6827ac_cpp='$CPP $CPPFLAGS'
6828ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6829ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6830ac_compiler_gnu=$ac_cv_c_compiler_gnu
6831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6832$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
6833if ${am_cv_prog_cc_c_o+:} false; then :
6834 $as_echo_n "(cached) " >&6
6835else
6836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6837/* end confdefs.h. */
6838
6839int
6840main ()
6841{
6842
6843 ;
6844 return 0;
6845}
6846_ACEOF
6847 # Make sure it works both with $CC and with simple cc.
6848 # Following AC_PROG_CC_C_O, we do the test twice because some
6849 # compilers refuse to overwrite an existing .o file with -o,
6850 # though they will create one.
6851 am_cv_prog_cc_c_o=yes
6852 for am_i in 1 2; do
6853 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6854 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6855 ac_status=$?
6856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6857 (exit $ac_status); } \
6858 && test -f conftest2.$ac_objext; then
6859 : OK
6860 else
6861 am_cv_prog_cc_c_o=no
6862 break
6863 fi
6864 done
6865 rm -f core conftest*
6866 unset am_i
6867fi
6868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6869$as_echo "$am_cv_prog_cc_c_o" >&6; }
6870if test "$am_cv_prog_cc_c_o" != yes; then
6871 # Losing compiler, so override with the script.
6872 # FIXME: It is wrong to rewrite CC.
6873 # But if we don't then we get into trouble of one sort or another.
6874 # A longer-term fix would be to have automake use am__CC in this case,
6875 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6876 CC="$am_aux_dir/compile $CC"
6877fi
6878ac_ext=c
6879ac_cpp='$CPP $CPPFLAGS'
6880ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6881ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6882ac_compiler_gnu=$ac_cv_c_compiler_gnu
6883
6884
cristy73bd4a52010-10-05 11:24:23 +00006885depcc="$CC" am_compiler_list=
6886
6887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6888$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006889if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006890 $as_echo_n "(cached) " >&6
6891else
6892 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6893 # We make a subdir and do the tests there. Otherwise we can end up
6894 # making bogus files that we don't know about and never remove. For
6895 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00006896 # making a dummy file named 'D' -- because '-MD' means "put the output
6897 # in D".
cristy7247bba2012-02-05 16:37:27 +00006898 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00006899 mkdir conftest.dir
6900 # Copy depcomp to subdir because otherwise we won't find it if we're
6901 # using a relative directory.
6902 cp "$am_depcomp" conftest.dir
6903 cd conftest.dir
6904 # We will build objects and dependencies in a subdirectory because
6905 # it helps to detect inapplicable dependency modes. For instance
6906 # both Tru64's cc and ICC support -MD to output dependencies as a
6907 # side effect of compilation, but ICC will put the dependencies in
6908 # the current directory while Tru64 will put them in the object
6909 # directory.
6910 mkdir sub
6911
6912 am_cv_CC_dependencies_compiler_type=none
6913 if test "$am_compiler_list" = ""; then
6914 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6915 fi
6916 am__universal=false
6917 case " $depcc " in #(
6918 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6919 esac
6920
6921 for depmode in $am_compiler_list; do
6922 # Setup a source with many dependencies, because some compilers
6923 # like to wrap large dependency lists on column 80 (with \), and
6924 # we should not choose a depcomp mode which is confused by this.
6925 #
6926 # We need to recreate these files for each test, as the compiler may
6927 # overwrite some of them when testing with obscure command lines.
6928 # This happens at least with the AIX C compiler.
6929 : > sub/conftest.c
6930 for i in 1 2 3 4 5 6; do
6931 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00006932 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6933 # Solaris 10 /bin/sh.
6934 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00006935 done
6936 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6937
cristyc0890a62012-07-19 00:18:20 +00006938 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00006939 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00006940 # handle '-M -o', and we need to detect this. Also, some Intel
6941 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00006942 am__obj=sub/conftest.${OBJEXT-o}
6943 am__minus_obj="-o $am__obj"
6944 case $depmode in
6945 gcc)
6946 # This depmode causes a compiler race in universal mode.
6947 test "$am__universal" = false || continue
6948 ;;
6949 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00006950 # After this tag, mechanisms are not by side-effect, so they'll
6951 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00006952 if test "x$enable_dependency_tracking" = xyes; then
6953 continue
6954 else
6955 break
6956 fi
6957 ;;
cristy7247bba2012-02-05 16:37:27 +00006958 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00006959 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00006960 # not run yet. These depmodes are late enough in the game, and
6961 # so weak that their functioning should not be impacted.
6962 am__obj=conftest.${OBJEXT-o}
6963 am__minus_obj=
6964 ;;
6965 none) break ;;
6966 esac
6967 if depmode=$depmode \
6968 source=sub/conftest.c object=$am__obj \
6969 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6970 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6971 >/dev/null 2>conftest.err &&
6972 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6973 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6974 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6975 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6976 # icc doesn't choke on unknown options, it will just issue warnings
6977 # or remarks (even with -Werror). So we grep stderr for any message
6978 # that says an option was ignored or not supported.
6979 # When given -MP, icc 7.0 and 7.1 complain thusly:
6980 # icc: Command line warning: ignoring option '-M'; no argument required
6981 # The diagnosis changed in icc 8.0:
6982 # icc: Command line remark: option '-MP' not supported
6983 if (grep 'ignoring option' conftest.err ||
6984 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6985 am_cv_CC_dependencies_compiler_type=$depmode
6986 break
6987 fi
6988 fi
6989 done
6990
6991 cd ..
6992 rm -rf conftest.dir
6993else
6994 am_cv_CC_dependencies_compiler_type=none
6995fi
6996
6997fi
6998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6999$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
7000CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
7001
7002 if
7003 test "x$enable_dependency_tracking" != xno \
7004 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
7005 am__fastdepCC_TRUE=
7006 am__fastdepCC_FALSE='#'
7007else
7008 am__fastdepCC_TRUE='#'
7009 am__fastdepCC_FALSE=
7010fi
7011
7012
cristy95646052009-11-28 23:05:30 +00007013ac_ext=cpp
7014ac_cpp='$CXXCPP $CPPFLAGS'
7015ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7016ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7017ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7018if test -z "$CXX"; then
7019 if test -n "$CCC"; then
7020 CXX=$CCC
7021 else
7022 if test -n "$ac_tool_prefix"; then
7023 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7024 do
7025 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7026set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7028$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007029if ${ac_cv_prog_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00007030 $as_echo_n "(cached) " >&6
7031else
7032 if test -n "$CXX"; then
7033 ac_cv_prog_CXX="$CXX" # Let the user override the test.
7034else
7035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7036for as_dir in $PATH
7037do
7038 IFS=$as_save_IFS
7039 test -z "$as_dir" && as_dir=.
7040 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00007041 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy95646052009-11-28 23:05:30 +00007042 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7044 break 2
7045 fi
7046done
7047 done
7048IFS=$as_save_IFS
7049
7050fi
7051fi
7052CXX=$ac_cv_prog_CXX
7053if test -n "$CXX"; then
7054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
7055$as_echo "$CXX" >&6; }
7056else
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7058$as_echo "no" >&6; }
7059fi
7060
7061
7062 test -n "$CXX" && break
7063 done
7064fi
7065if test -z "$CXX"; then
7066 ac_ct_CXX=$CXX
7067 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7068do
7069 # Extract the first word of "$ac_prog", so it can be a program name with args.
7070set dummy $ac_prog; ac_word=$2
7071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7072$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007073if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00007074 $as_echo_n "(cached) " >&6
7075else
7076 if test -n "$ac_ct_CXX"; then
7077 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7078else
7079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7080for as_dir in $PATH
7081do
7082 IFS=$as_save_IFS
7083 test -z "$as_dir" && as_dir=.
7084 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00007085 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy95646052009-11-28 23:05:30 +00007086 ac_cv_prog_ac_ct_CXX="$ac_prog"
7087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7088 break 2
7089 fi
7090done
7091 done
7092IFS=$as_save_IFS
7093
7094fi
7095fi
7096ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7097if test -n "$ac_ct_CXX"; then
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
7099$as_echo "$ac_ct_CXX" >&6; }
7100else
7101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7102$as_echo "no" >&6; }
7103fi
7104
7105
7106 test -n "$ac_ct_CXX" && break
7107done
7108
7109 if test "x$ac_ct_CXX" = x; then
7110 CXX="g++"
7111 else
7112 case $cross_compiling:$ac_tool_warned in
7113yes:)
7114{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7115$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7116ac_tool_warned=yes ;;
7117esac
7118 CXX=$ac_ct_CXX
7119 fi
7120fi
7121
7122 fi
7123fi
7124# Provide some information about the compiler.
7125$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
7126set X $ac_compile
7127ac_compiler=$2
7128for ac_option in --version -v -V -qversion; do
7129 { { ac_try="$ac_compiler $ac_option >&5"
7130case "(($ac_try" in
7131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7132 *) ac_try_echo=$ac_try;;
7133esac
7134eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7135$as_echo "$ac_try_echo"; } >&5
7136 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7137 ac_status=$?
7138 if test -s conftest.err; then
7139 sed '10a\
7140... rest of stderr output deleted ...
7141 10q' conftest.err >conftest.er1
7142 cat conftest.er1 >&5
7143 fi
7144 rm -f conftest.er1 conftest.err
7145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7146 test $ac_status = 0; }
7147done
7148
7149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
7150$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007151if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy95646052009-11-28 23:05:30 +00007152 $as_echo_n "(cached) " >&6
7153else
7154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7155/* end confdefs.h. */
7156
7157int
7158main ()
7159{
7160#ifndef __GNUC__
7161 choke me
7162#endif
7163
7164 ;
7165 return 0;
7166}
7167_ACEOF
7168if ac_fn_cxx_try_compile "$LINENO"; then :
7169 ac_compiler_gnu=yes
7170else
7171 ac_compiler_gnu=no
7172fi
7173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7174ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7175
7176fi
7177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
7178$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
7179if test $ac_compiler_gnu = yes; then
7180 GXX=yes
7181else
7182 GXX=
7183fi
7184ac_test_CXXFLAGS=${CXXFLAGS+set}
7185ac_save_CXXFLAGS=$CXXFLAGS
7186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
7187$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007188if ${ac_cv_prog_cxx_g+:} false; then :
cristy95646052009-11-28 23:05:30 +00007189 $as_echo_n "(cached) " >&6
7190else
7191 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
7192 ac_cxx_werror_flag=yes
7193 ac_cv_prog_cxx_g=no
7194 CXXFLAGS="-g"
7195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7196/* end confdefs.h. */
7197
7198int
7199main ()
7200{
7201
7202 ;
7203 return 0;
7204}
7205_ACEOF
7206if ac_fn_cxx_try_compile "$LINENO"; then :
7207 ac_cv_prog_cxx_g=yes
7208else
7209 CXXFLAGS=""
7210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7211/* end confdefs.h. */
7212
7213int
7214main ()
7215{
7216
7217 ;
7218 return 0;
7219}
7220_ACEOF
7221if ac_fn_cxx_try_compile "$LINENO"; then :
7222
7223else
7224 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7225 CXXFLAGS="-g"
7226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7227/* end confdefs.h. */
7228
7229int
7230main ()
7231{
7232
7233 ;
7234 return 0;
7235}
7236_ACEOF
7237if ac_fn_cxx_try_compile "$LINENO"; then :
7238 ac_cv_prog_cxx_g=yes
7239fi
7240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7241fi
7242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7243fi
7244rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7245 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7246fi
7247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
7248$as_echo "$ac_cv_prog_cxx_g" >&6; }
7249if test "$ac_test_CXXFLAGS" = set; then
7250 CXXFLAGS=$ac_save_CXXFLAGS
7251elif test $ac_cv_prog_cxx_g = yes; then
7252 if test "$GXX" = yes; then
7253 CXXFLAGS="-g -O2"
7254 else
7255 CXXFLAGS="-g"
7256 fi
7257else
7258 if test "$GXX" = yes; then
7259 CXXFLAGS="-O2"
7260 else
7261 CXXFLAGS=
7262 fi
7263fi
7264ac_ext=c
7265ac_cpp='$CPP $CPPFLAGS'
7266ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7267ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7268ac_compiler_gnu=$ac_cv_c_compiler_gnu
7269
cristy73bd4a52010-10-05 11:24:23 +00007270depcc="$CXX" am_compiler_list=
7271
7272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7273$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007274if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007275 $as_echo_n "(cached) " >&6
7276else
7277 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7278 # We make a subdir and do the tests there. Otherwise we can end up
7279 # making bogus files that we don't know about and never remove. For
7280 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00007281 # making a dummy file named 'D' -- because '-MD' means "put the output
7282 # in D".
cristy7247bba2012-02-05 16:37:27 +00007283 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00007284 mkdir conftest.dir
7285 # Copy depcomp to subdir because otherwise we won't find it if we're
7286 # using a relative directory.
7287 cp "$am_depcomp" conftest.dir
7288 cd conftest.dir
7289 # We will build objects and dependencies in a subdirectory because
7290 # it helps to detect inapplicable dependency modes. For instance
7291 # both Tru64's cc and ICC support -MD to output dependencies as a
7292 # side effect of compilation, but ICC will put the dependencies in
7293 # the current directory while Tru64 will put them in the object
7294 # directory.
7295 mkdir sub
7296
7297 am_cv_CXX_dependencies_compiler_type=none
7298 if test "$am_compiler_list" = ""; then
7299 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7300 fi
7301 am__universal=false
7302 case " $depcc " in #(
7303 *\ -arch\ *\ -arch\ *) am__universal=true ;;
7304 esac
7305
7306 for depmode in $am_compiler_list; do
7307 # Setup a source with many dependencies, because some compilers
7308 # like to wrap large dependency lists on column 80 (with \), and
7309 # we should not choose a depcomp mode which is confused by this.
7310 #
7311 # We need to recreate these files for each test, as the compiler may
7312 # overwrite some of them when testing with obscure command lines.
7313 # This happens at least with the AIX C compiler.
7314 : > sub/conftest.c
7315 for i in 1 2 3 4 5 6; do
7316 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00007317 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
7318 # Solaris 10 /bin/sh.
7319 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00007320 done
7321 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7322
cristyc0890a62012-07-19 00:18:20 +00007323 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00007324 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00007325 # handle '-M -o', and we need to detect this. Also, some Intel
7326 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00007327 am__obj=sub/conftest.${OBJEXT-o}
7328 am__minus_obj="-o $am__obj"
7329 case $depmode in
7330 gcc)
7331 # This depmode causes a compiler race in universal mode.
7332 test "$am__universal" = false || continue
7333 ;;
7334 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00007335 # After this tag, mechanisms are not by side-effect, so they'll
7336 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00007337 if test "x$enable_dependency_tracking" = xyes; then
7338 continue
7339 else
7340 break
7341 fi
7342 ;;
cristy7247bba2012-02-05 16:37:27 +00007343 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00007344 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00007345 # not run yet. These depmodes are late enough in the game, and
7346 # so weak that their functioning should not be impacted.
7347 am__obj=conftest.${OBJEXT-o}
7348 am__minus_obj=
7349 ;;
7350 none) break ;;
7351 esac
7352 if depmode=$depmode \
7353 source=sub/conftest.c object=$am__obj \
7354 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7355 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7356 >/dev/null 2>conftest.err &&
7357 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7358 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7359 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7360 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7361 # icc doesn't choke on unknown options, it will just issue warnings
7362 # or remarks (even with -Werror). So we grep stderr for any message
7363 # that says an option was ignored or not supported.
7364 # When given -MP, icc 7.0 and 7.1 complain thusly:
7365 # icc: Command line warning: ignoring option '-M'; no argument required
7366 # The diagnosis changed in icc 8.0:
7367 # icc: Command line remark: option '-MP' not supported
7368 if (grep 'ignoring option' conftest.err ||
7369 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7370 am_cv_CXX_dependencies_compiler_type=$depmode
7371 break
7372 fi
7373 fi
7374 done
7375
7376 cd ..
7377 rm -rf conftest.dir
7378else
7379 am_cv_CXX_dependencies_compiler_type=none
7380fi
7381
7382fi
7383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
7384$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
7385CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7386
7387 if
7388 test "x$enable_dependency_tracking" != xno \
7389 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7390 am__fastdepCXX_TRUE=
7391 am__fastdepCXX_FALSE='#'
7392else
7393 am__fastdepCXX_TRUE='#'
7394 am__fastdepCXX_FALSE=
7395fi
7396
7397
cristy8b350f62009-11-15 23:12:43 +00007398 case $ac_cv_prog_cc_stdc in #(
7399 no) :
7400 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
7401 *) :
7402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cristy3ed852e2009-09-05 21:47:34 +00007403$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007404if ${ac_cv_prog_cc_c99+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007405 $as_echo_n "(cached) " >&6
7406else
7407 ac_cv_prog_cc_c99=no
7408ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00007409cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007410/* end confdefs.h. */
7411#include <stdarg.h>
7412#include <stdbool.h>
7413#include <stdlib.h>
7414#include <wchar.h>
7415#include <stdio.h>
7416
7417// Check varargs macros. These examples are taken from C99 6.10.3.5.
7418#define debug(...) fprintf (stderr, __VA_ARGS__)
7419#define showlist(...) puts (#__VA_ARGS__)
7420#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7421static void
7422test_varargs_macros (void)
7423{
7424 int x = 1234;
7425 int y = 5678;
7426 debug ("Flag");
7427 debug ("X = %d\n", x);
7428 showlist (The first, second, and third items.);
7429 report (x>y, "x is %d but y is %d", x, y);
7430}
7431
7432// Check long long types.
7433#define BIG64 18446744073709551615ull
7434#define BIG32 4294967295ul
7435#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7436#if !BIG_OK
7437 your preprocessor is broken;
7438#endif
7439#if BIG_OK
7440#else
7441 your preprocessor is broken;
7442#endif
7443static long long int bignum = -9223372036854775807LL;
7444static unsigned long long int ubignum = BIG64;
7445
7446struct incomplete_array
7447{
7448 int datasize;
7449 double data[];
7450};
7451
7452struct named_init {
7453 int number;
7454 const wchar_t *name;
7455 double average;
7456};
7457
7458typedef const char *ccp;
7459
7460static inline int
7461test_restrict (ccp restrict text)
7462{
7463 // See if C++-style comments work.
7464 // Iterate through items via the restricted pointer.
7465 // Also check for declarations in for loops.
7466 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7467 continue;
7468 return 0;
7469}
7470
7471// Check varargs and va_copy.
7472static void
7473test_varargs (const char *format, ...)
7474{
7475 va_list args;
7476 va_start (args, format);
7477 va_list args_copy;
7478 va_copy (args_copy, args);
7479
7480 const char *str;
7481 int number;
7482 float fnumber;
7483
7484 while (*format)
7485 {
7486 switch (*format++)
7487 {
7488 case 's': // string
7489 str = va_arg (args_copy, const char *);
7490 break;
7491 case 'd': // int
7492 number = va_arg (args_copy, int);
7493 break;
7494 case 'f': // float
7495 fnumber = va_arg (args_copy, double);
7496 break;
7497 default:
7498 break;
7499 }
7500 }
7501 va_end (args_copy);
7502 va_end (args);
7503}
7504
7505int
7506main ()
7507{
7508
7509 // Check bool.
7510 _Bool success = false;
7511
7512 // Check restrict.
7513 if (test_restrict ("String literal") == 0)
7514 success = true;
7515 char *restrict newvar = "Another string";
7516
7517 // Check varargs.
7518 test_varargs ("s, d' f .", "string", 65, 34.234);
7519 test_varargs_macros ();
7520
7521 // Check flexible array members.
7522 struct incomplete_array *ia =
7523 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7524 ia->datasize = 10;
7525 for (int i = 0; i < ia->datasize; ++i)
7526 ia->data[i] = i * 1.234;
7527
7528 // Check named initializers.
7529 struct named_init ni = {
7530 .number = 34,
7531 .name = L"Test wide string",
7532 .average = 543.34343,
7533 };
7534
7535 ni.number = 58;
7536
7537 int dynamic_array[ni.number];
7538 dynamic_array[ni.number - 1] = 543;
7539
7540 // work around unused variable warnings
7541 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7542 || dynamic_array[ni.number - 1] != 543);
7543
7544 ;
7545 return 0;
7546}
7547_ACEOF
cristy14fefe52012-05-21 00:59:18 +00007548for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
cristy3ed852e2009-09-05 21:47:34 +00007549do
7550 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00007551 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007552 ac_cv_prog_cc_c99=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00007553fi
cristy3ed852e2009-09-05 21:47:34 +00007554rm -f core conftest.err conftest.$ac_objext
7555 test "x$ac_cv_prog_cc_c99" != "xno" && break
7556done
7557rm -f conftest.$ac_ext
7558CC=$ac_save_CC
7559
7560fi
7561# AC_CACHE_VAL
7562case "x$ac_cv_prog_cc_c99" in
7563 x)
cristy8b350f62009-11-15 23:12:43 +00007564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00007565$as_echo "none needed" >&6; } ;;
7566 xno)
cristy8b350f62009-11-15 23:12:43 +00007567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00007568$as_echo "unsupported" >&6; } ;;
7569 *)
7570 CC="$CC $ac_cv_prog_cc_c99"
cristy8b350f62009-11-15 23:12:43 +00007571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cristy3ed852e2009-09-05 21:47:34 +00007572$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7573esac
cristy8b350f62009-11-15 23:12:43 +00007574if test "x$ac_cv_prog_cc_c99" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00007575 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
7576else
cristy8b350f62009-11-15 23:12:43 +00007577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00007578$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007579if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007580 $as_echo_n "(cached) " >&6
7581else
7582 ac_cv_prog_cc_c89=no
7583ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00007584cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007585/* end confdefs.h. */
7586#include <stdarg.h>
7587#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00007588struct stat;
cristy3ed852e2009-09-05 21:47:34 +00007589/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7590struct buf { int x; };
7591FILE * (*rcsopen) (struct buf *, struct stat *, int);
7592static char *e (p, i)
7593 char **p;
7594 int i;
7595{
7596 return p[i];
7597}
7598static char *f (char * (*g) (char **, int), char **p, ...)
7599{
7600 char *s;
7601 va_list v;
7602 va_start (v,p);
7603 s = g (p, va_arg (v,int));
7604 va_end (v);
7605 return s;
7606}
7607
7608/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7609 function prototypes and stuff, but not '\xHH' hex character constants.
7610 These don't provoke an error unfortunately, instead are silently treated
7611 as 'x'. The following induces an error, until -std is added to get
7612 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7613 array size at least. It's necessary to write '\x00'==0 to get something
7614 that's true only with -std. */
7615int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7616
7617/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7618 inside strings and character constants. */
7619#define FOO(x) 'x'
7620int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7621
7622int test (int i, double x);
7623struct s1 {int (*f) (int a);};
7624struct s2 {int (*f) (double a);};
7625int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7626int argc;
7627char **argv;
7628int
7629main ()
7630{
7631return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7632 ;
7633 return 0;
7634}
7635_ACEOF
7636for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7637 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7638do
7639 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00007640 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007641 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00007642fi
cristy3ed852e2009-09-05 21:47:34 +00007643rm -f core conftest.err conftest.$ac_objext
7644 test "x$ac_cv_prog_cc_c89" != "xno" && break
7645done
7646rm -f conftest.$ac_ext
7647CC=$ac_save_CC
7648
7649fi
7650# AC_CACHE_VAL
7651case "x$ac_cv_prog_cc_c89" in
7652 x)
cristy8b350f62009-11-15 23:12:43 +00007653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00007654$as_echo "none needed" >&6; } ;;
7655 xno)
cristy8b350f62009-11-15 23:12:43 +00007656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00007657$as_echo "unsupported" >&6; } ;;
7658 *)
7659 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00007660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00007661$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7662esac
cristy8b350f62009-11-15 23:12:43 +00007663if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00007664 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
7665else
7666 ac_cv_prog_cc_stdc=no
7667fi
7668
cristy3ed852e2009-09-05 21:47:34 +00007669fi
cristy3ed852e2009-09-05 21:47:34 +00007670 ;;
7671esac
cristy8b350f62009-11-15 23:12:43 +00007672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
cristy3ed852e2009-09-05 21:47:34 +00007673$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007674 if ${ac_cv_prog_cc_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007675 $as_echo_n "(cached) " >&6
7676fi
7677
cristy8b350f62009-11-15 23:12:43 +00007678 case $ac_cv_prog_cc_stdc in #(
7679 no) :
7680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7681$as_echo "unsupported" >&6; } ;; #(
7682 '') :
7683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7684$as_echo "none needed" >&6; } ;; #(
7685 *) :
7686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00007687$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
7688esac
7689
cristy3ed852e2009-09-05 21:47:34 +00007690ac_ext=c
7691ac_cpp='$CPP $CPPFLAGS'
7692ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7693ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7694ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy8b350f62009-11-15 23:12:43 +00007695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cristy3ed852e2009-09-05 21:47:34 +00007696$as_echo_n "checking how to run the C preprocessor... " >&6; }
7697# On Suns, sometimes $CPP names a directory.
7698if test -n "$CPP" && test -d "$CPP"; then
7699 CPP=
7700fi
7701if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00007702 if ${ac_cv_prog_CPP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007703 $as_echo_n "(cached) " >&6
7704else
7705 # Double quotes because CPP needs to be expanded
7706 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7707 do
7708 ac_preproc_ok=false
7709for ac_c_preproc_warn_flag in '' yes
7710do
7711 # Use a header file that comes with gcc, so configuring glibc
7712 # with a fresh cross-compiler works.
7713 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7714 # <limits.h> exists even on freestanding compilers.
7715 # On the NeXT, cc -E runs the code through the compiler's parser,
7716 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007718/* end confdefs.h. */
7719#ifdef __STDC__
7720# include <limits.h>
7721#else
7722# include <assert.h>
7723#endif
7724 Syntax error
7725_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007726if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007727
cristy8b350f62009-11-15 23:12:43 +00007728else
cristy3ed852e2009-09-05 21:47:34 +00007729 # Broken: fails on valid input.
7730continue
7731fi
cristyda16f162011-02-19 23:52:17 +00007732rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007733
7734 # OK, works on sane cases. Now check whether nonexistent headers
7735 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007737/* end confdefs.h. */
7738#include <ac_nonexistent.h>
7739_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007740if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007741 # Broken: success on invalid input.
7742continue
7743else
cristy3ed852e2009-09-05 21:47:34 +00007744 # Passes both tests.
7745ac_preproc_ok=:
7746break
7747fi
cristyda16f162011-02-19 23:52:17 +00007748rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007749
7750done
7751# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007752rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007753if $ac_preproc_ok; then :
cristy3ed852e2009-09-05 21:47:34 +00007754 break
7755fi
7756
7757 done
7758 ac_cv_prog_CPP=$CPP
7759
7760fi
7761 CPP=$ac_cv_prog_CPP
7762else
7763 ac_cv_prog_CPP=$CPP
7764fi
cristy8b350f62009-11-15 23:12:43 +00007765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cristy3ed852e2009-09-05 21:47:34 +00007766$as_echo "$CPP" >&6; }
7767ac_preproc_ok=false
7768for ac_c_preproc_warn_flag in '' yes
7769do
7770 # Use a header file that comes with gcc, so configuring glibc
7771 # with a fresh cross-compiler works.
7772 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7773 # <limits.h> exists even on freestanding compilers.
7774 # On the NeXT, cc -E runs the code through the compiler's parser,
7775 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007777/* end confdefs.h. */
7778#ifdef __STDC__
7779# include <limits.h>
7780#else
7781# include <assert.h>
7782#endif
7783 Syntax error
7784_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007785if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007786
cristy8b350f62009-11-15 23:12:43 +00007787else
cristy3ed852e2009-09-05 21:47:34 +00007788 # Broken: fails on valid input.
7789continue
7790fi
cristyda16f162011-02-19 23:52:17 +00007791rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007792
7793 # OK, works on sane cases. Now check whether nonexistent headers
7794 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007796/* end confdefs.h. */
7797#include <ac_nonexistent.h>
7798_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007799if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007800 # Broken: success on invalid input.
7801continue
7802else
cristy3ed852e2009-09-05 21:47:34 +00007803 # Passes both tests.
7804ac_preproc_ok=:
7805break
7806fi
cristyda16f162011-02-19 23:52:17 +00007807rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007808
7809done
7810# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007811rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007812if $ac_preproc_ok; then :
7813
cristy3ed852e2009-09-05 21:47:34 +00007814else
cristy8b350f62009-11-15 23:12:43 +00007815 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00007816$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00007817as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7818See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00007819fi
7820
7821ac_ext=c
7822ac_cpp='$CPP $CPPFLAGS'
7823ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7824ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7825ac_compiler_gnu=$ac_cv_c_compiler_gnu
7826
cristy73bd4a52010-10-05 11:24:23 +00007827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7828$as_echo_n "checking for a sed that does not truncate output... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007829if ${ac_cv_path_SED+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007830 $as_echo_n "(cached) " >&6
7831else
7832 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7833 for ac_i in 1 2 3 4 5 6 7; do
7834 ac_script="$ac_script$as_nl$ac_script"
7835 done
7836 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7837 { ac_script=; unset ac_script;}
7838 if test -z "$SED"; then
7839 ac_path_SED_found=false
7840 # Loop through the user's path and test for each of PROGNAME-LIST
7841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7842for as_dir in $PATH
7843do
7844 IFS=$as_save_IFS
7845 test -z "$as_dir" && as_dir=.
7846 for ac_prog in sed gsed; do
7847 for ac_exec_ext in '' $ac_executable_extensions; do
7848 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00007849 as_fn_executable_p "$ac_path_SED" || continue
cristy73bd4a52010-10-05 11:24:23 +00007850# Check for GNU ac_path_SED and select it if it is found.
7851 # Check for GNU $ac_path_SED
7852case `"$ac_path_SED" --version 2>&1` in
7853*GNU*)
7854 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7855*)
7856 ac_count=0
7857 $as_echo_n 0123456789 >"conftest.in"
7858 while :
7859 do
7860 cat "conftest.in" "conftest.in" >"conftest.tmp"
7861 mv "conftest.tmp" "conftest.in"
7862 cp "conftest.in" "conftest.nl"
7863 $as_echo '' >> "conftest.nl"
7864 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7865 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7866 as_fn_arith $ac_count + 1 && ac_count=$as_val
7867 if test $ac_count -gt ${ac_path_SED_max-0}; then
7868 # Best one so far, save it but keep looking for a better one
7869 ac_cv_path_SED="$ac_path_SED"
7870 ac_path_SED_max=$ac_count
7871 fi
7872 # 10*(2^10) chars as input seems more than enough
7873 test $ac_count -gt 10 && break
7874 done
7875 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7876esac
7877
7878 $ac_path_SED_found && break 3
7879 done
7880 done
7881 done
7882IFS=$as_save_IFS
7883 if test -z "$ac_cv_path_SED"; then
cristy98dddb52010-11-04 00:30:15 +00007884 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007885 fi
7886else
7887 ac_cv_path_SED=$SED
7888fi
7889
7890fi
7891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7892$as_echo "$ac_cv_path_SED" >&6; }
7893 SED="$ac_cv_path_SED"
7894 rm -f conftest.sed
7895
7896test -z "$SED" && SED=sed
7897Xsed="$SED -e 1s/^X//"
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7910$as_echo_n "checking for fgrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007911if ${ac_cv_path_FGREP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007912 $as_echo_n "(cached) " >&6
7913else
7914 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7915 then ac_cv_path_FGREP="$GREP -F"
7916 else
7917 if test -z "$FGREP"; then
7918 ac_path_FGREP_found=false
7919 # Loop through the user's path and test for each of PROGNAME-LIST
7920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7921for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7922do
7923 IFS=$as_save_IFS
7924 test -z "$as_dir" && as_dir=.
7925 for ac_prog in fgrep; do
7926 for ac_exec_ext in '' $ac_executable_extensions; do
7927 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00007928 as_fn_executable_p "$ac_path_FGREP" || continue
cristy73bd4a52010-10-05 11:24:23 +00007929# Check for GNU ac_path_FGREP and select it if it is found.
7930 # Check for GNU $ac_path_FGREP
7931case `"$ac_path_FGREP" --version 2>&1` in
7932*GNU*)
7933 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7934*)
7935 ac_count=0
7936 $as_echo_n 0123456789 >"conftest.in"
7937 while :
7938 do
7939 cat "conftest.in" "conftest.in" >"conftest.tmp"
7940 mv "conftest.tmp" "conftest.in"
7941 cp "conftest.in" "conftest.nl"
7942 $as_echo 'FGREP' >> "conftest.nl"
7943 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7944 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7945 as_fn_arith $ac_count + 1 && ac_count=$as_val
7946 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7947 # Best one so far, save it but keep looking for a better one
7948 ac_cv_path_FGREP="$ac_path_FGREP"
7949 ac_path_FGREP_max=$ac_count
7950 fi
7951 # 10*(2^10) chars as input seems more than enough
7952 test $ac_count -gt 10 && break
7953 done
7954 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7955esac
7956
7957 $ac_path_FGREP_found && break 3
7958 done
7959 done
7960 done
7961IFS=$as_save_IFS
7962 if test -z "$ac_cv_path_FGREP"; then
cristy98dddb52010-11-04 00:30:15 +00007963 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007964 fi
7965else
7966 ac_cv_path_FGREP=$FGREP
7967fi
7968
7969 fi
7970fi
7971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7972$as_echo "$ac_cv_path_FGREP" >&6; }
7973 FGREP="$ac_cv_path_FGREP"
7974
7975
7976test -z "$GREP" && GREP=grep
7977
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988
7989
7990
7991
7992
7993
cristy0c60a692010-11-04 01:09:47 +00007994ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7995ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7996ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7997
7998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7999$as_echo_n "checking how to print strings... " >&6; }
8000# Test print first, because it will be a builtin if present.
cristyda16f162011-02-19 23:52:17 +00008001if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
cristy0c60a692010-11-04 01:09:47 +00008002 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
8003 ECHO='print -r --'
8004elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
8005 ECHO='printf %s\n'
8006else
8007 # Use this function as a fallback that always works.
8008 func_fallback_echo ()
8009 {
8010 eval 'cat <<_LTECHO_EOF
8011$1
8012_LTECHO_EOF'
8013 }
8014 ECHO='func_fallback_echo'
8015fi
8016
8017# func_echo_all arg...
8018# Invoke $ECHO with all args, space-separated.
8019func_echo_all ()
8020{
8021 $ECHO ""
8022}
8023
8024case "$ECHO" in
8025 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
8026$as_echo "printf" >&6; } ;;
8027 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
8028$as_echo "print -r" >&6; } ;;
8029 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
8030$as_echo "cat" >&6; } ;;
8031esac
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045
cristy73bd4a52010-10-05 11:24:23 +00008046
8047
8048# Check whether --with-gnu-ld was given.
8049if test "${with_gnu_ld+set}" = set; then :
8050 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8051else
8052 with_gnu_ld=no
8053fi
8054
8055ac_prog=ld
8056if test "$GCC" = yes; then
8057 # Check if gcc -print-prog-name=ld gives a path.
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
8059$as_echo_n "checking for ld used by $CC... " >&6; }
8060 case $host in
8061 *-*-mingw*)
8062 # gcc leaves a trailing carriage return which upsets mingw
8063 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8064 *)
8065 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8066 esac
8067 case $ac_prog in
8068 # Accept absolute paths.
8069 [\\/]* | ?:[\\/]*)
8070 re_direlt='/[^/][^/]*/\.\./'
8071 # Canonicalize the pathname of ld
8072 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
8073 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
8074 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
8075 done
8076 test -z "$LD" && LD="$ac_prog"
8077 ;;
8078 "")
8079 # If it fails, then pretend we aren't using GCC.
8080 ac_prog=ld
8081 ;;
8082 *)
8083 # If it is relative, then search for the first ld in PATH.
8084 with_gnu_ld=unknown
8085 ;;
8086 esac
8087elif test "$with_gnu_ld" = yes; then
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8089$as_echo_n "checking for GNU ld... " >&6; }
8090else
8091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8092$as_echo_n "checking for non-GNU ld... " >&6; }
8093fi
cristyda16f162011-02-19 23:52:17 +00008094if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008095 $as_echo_n "(cached) " >&6
8096else
8097 if test -z "$LD"; then
8098 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8099 for ac_dir in $PATH; do
8100 IFS="$lt_save_ifs"
8101 test -z "$ac_dir" && ac_dir=.
8102 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8103 lt_cv_path_LD="$ac_dir/$ac_prog"
8104 # Check to see if the program is GNU ld. I'd rather use --version,
8105 # but apparently some variants of GNU ld only accept -v.
8106 # Break only if it was the GNU/non-GNU ld that we prefer.
8107 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
8108 *GNU* | *'with BFD'*)
8109 test "$with_gnu_ld" != no && break
8110 ;;
8111 *)
8112 test "$with_gnu_ld" != yes && break
8113 ;;
8114 esac
8115 fi
8116 done
8117 IFS="$lt_save_ifs"
8118else
8119 lt_cv_path_LD="$LD" # Let the user override the test with a path.
8120fi
8121fi
8122
8123LD="$lt_cv_path_LD"
8124if test -n "$LD"; then
8125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8126$as_echo "$LD" >&6; }
8127else
8128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8129$as_echo "no" >&6; }
8130fi
cristy98dddb52010-11-04 00:30:15 +00008131test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00008132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8133$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008134if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008135 $as_echo_n "(cached) " >&6
8136else
8137 # I'd rather use --version here, but apparently some GNU lds only accept -v.
8138case `$LD -v 2>&1 </dev/null` in
8139*GNU* | *'with BFD'*)
8140 lt_cv_prog_gnu_ld=yes
8141 ;;
8142*)
8143 lt_cv_prog_gnu_ld=no
8144 ;;
8145esac
8146fi
8147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
8148$as_echo "$lt_cv_prog_gnu_ld" >&6; }
8149with_gnu_ld=$lt_cv_prog_gnu_ld
8150
8151
8152
8153
8154
8155
8156
8157
8158
cristy3ed852e2009-09-05 21:47:34 +00008159
cristy837d6dc2010-02-27 01:16:57 +00008160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
8161$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008162if ${ac_cv_prog_cc_c99+:} false; then :
cristy837d6dc2010-02-27 01:16:57 +00008163 $as_echo_n "(cached) " >&6
8164else
8165 ac_cv_prog_cc_c99=no
8166ac_save_CC=$CC
8167cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8168/* end confdefs.h. */
8169#include <stdarg.h>
8170#include <stdbool.h>
8171#include <stdlib.h>
8172#include <wchar.h>
8173#include <stdio.h>
8174
8175// Check varargs macros. These examples are taken from C99 6.10.3.5.
8176#define debug(...) fprintf (stderr, __VA_ARGS__)
8177#define showlist(...) puts (#__VA_ARGS__)
8178#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
8179static void
8180test_varargs_macros (void)
8181{
8182 int x = 1234;
8183 int y = 5678;
8184 debug ("Flag");
8185 debug ("X = %d\n", x);
8186 showlist (The first, second, and third items.);
8187 report (x>y, "x is %d but y is %d", x, y);
8188}
8189
8190// Check long long types.
8191#define BIG64 18446744073709551615ull
8192#define BIG32 4294967295ul
8193#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
8194#if !BIG_OK
8195 your preprocessor is broken;
8196#endif
8197#if BIG_OK
8198#else
8199 your preprocessor is broken;
8200#endif
8201static long long int bignum = -9223372036854775807LL;
8202static unsigned long long int ubignum = BIG64;
8203
8204struct incomplete_array
8205{
8206 int datasize;
8207 double data[];
8208};
8209
8210struct named_init {
8211 int number;
8212 const wchar_t *name;
8213 double average;
8214};
8215
8216typedef const char *ccp;
8217
8218static inline int
8219test_restrict (ccp restrict text)
8220{
8221 // See if C++-style comments work.
8222 // Iterate through items via the restricted pointer.
8223 // Also check for declarations in for loops.
8224 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
8225 continue;
8226 return 0;
8227}
8228
8229// Check varargs and va_copy.
8230static void
8231test_varargs (const char *format, ...)
8232{
8233 va_list args;
8234 va_start (args, format);
8235 va_list args_copy;
8236 va_copy (args_copy, args);
8237
8238 const char *str;
8239 int number;
8240 float fnumber;
8241
8242 while (*format)
8243 {
8244 switch (*format++)
8245 {
8246 case 's': // string
8247 str = va_arg (args_copy, const char *);
8248 break;
8249 case 'd': // int
8250 number = va_arg (args_copy, int);
8251 break;
8252 case 'f': // float
8253 fnumber = va_arg (args_copy, double);
8254 break;
8255 default:
8256 break;
8257 }
8258 }
8259 va_end (args_copy);
8260 va_end (args);
8261}
8262
8263int
8264main ()
8265{
8266
8267 // Check bool.
8268 _Bool success = false;
8269
8270 // Check restrict.
8271 if (test_restrict ("String literal") == 0)
8272 success = true;
8273 char *restrict newvar = "Another string";
8274
8275 // Check varargs.
8276 test_varargs ("s, d' f .", "string", 65, 34.234);
8277 test_varargs_macros ();
8278
8279 // Check flexible array members.
8280 struct incomplete_array *ia =
8281 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
8282 ia->datasize = 10;
8283 for (int i = 0; i < ia->datasize; ++i)
8284 ia->data[i] = i * 1.234;
8285
8286 // Check named initializers.
8287 struct named_init ni = {
8288 .number = 34,
8289 .name = L"Test wide string",
8290 .average = 543.34343,
8291 };
8292
8293 ni.number = 58;
8294
8295 int dynamic_array[ni.number];
8296 dynamic_array[ni.number - 1] = 543;
8297
8298 // work around unused variable warnings
8299 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
8300 || dynamic_array[ni.number - 1] != 543);
8301
8302 ;
8303 return 0;
8304}
8305_ACEOF
cristy14fefe52012-05-21 00:59:18 +00008306for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
cristy837d6dc2010-02-27 01:16:57 +00008307do
8308 CC="$ac_save_CC $ac_arg"
8309 if ac_fn_c_try_compile "$LINENO"; then :
8310 ac_cv_prog_cc_c99=$ac_arg
8311fi
8312rm -f core conftest.err conftest.$ac_objext
8313 test "x$ac_cv_prog_cc_c99" != "xno" && break
8314done
8315rm -f conftest.$ac_ext
8316CC=$ac_save_CC
8317
8318fi
8319# AC_CACHE_VAL
8320case "x$ac_cv_prog_cc_c99" in
8321 x)
8322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
8323$as_echo "none needed" >&6; } ;;
8324 xno)
8325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
8326$as_echo "unsupported" >&6; } ;;
8327 *)
8328 CC="$CC $ac_cv_prog_cc_c99"
8329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
8330$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
8331esac
8332if test "x$ac_cv_prog_cc_c99" != xno; then :
8333
8334fi
8335
8336
cristy73bd4a52010-10-05 11:24:23 +00008337
cristy17491be2014-06-24 01:10:53 +00008338ac_ext=c
8339ac_cpp='$CPP $CPPFLAGS'
8340ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8341ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8342ac_compiler_gnu=$ac_cv_c_compiler_gnu
8343
cristy73bd4a52010-10-05 11:24:23 +00008344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
8345$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008346if ${ac_cv_cflags_warn_all+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008347 $as_echo_n "(cached) " >&6
8348else
8349 ac_cv_cflags_warn_all="no, unknown"
cristy17491be2014-06-24 01:10:53 +00008350ac_save_CFLAGS="$CFLAGS"
8351for 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 +00008352do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
8353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8354/* end confdefs.h. */
8355
8356int
8357main ()
8358{
cristy24fc1fe2010-10-23 21:13:01 +00008359
cristy73bd4a52010-10-05 11:24:23 +00008360 ;
8361 return 0;
8362}
8363_ACEOF
8364if ac_fn_c_try_compile "$LINENO"; then :
8365 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
8366fi
8367rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8368done
cristy17491be2014-06-24 01:10:53 +00008369CFLAGS="$ac_save_CFLAGS"
8370
8371fi
8372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
8373$as_echo "$ac_cv_cflags_warn_all" >&6; }
8374
8375
8376case ".$ac_cv_cflags_warn_all" in
8377 .ok|.ok,*) ;;
8378 .|.no|.no,*) ;;
cristy146497a2015-05-17 22:46:16 +00008379 *)
8380if ${CFLAGS+:} false; then :
8381
8382 case " $CFLAGS " in #(
8383 *" $ac_cv_cflags_warn_all "*) :
8384 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$ac_cv_cflags_warn_all"; } >&5
cristy17491be2014-06-24 01:10:53 +00008385 (: CFLAGS already contains $ac_cv_cflags_warn_all) 2>&5
8386 ac_status=$?
8387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristy146497a2015-05-17 22:46:16 +00008388 test $ac_status = 0; } ;; #(
8389 *) :
8390
8391 as_fn_append CFLAGS " $ac_cv_cflags_warn_all"
8392 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
8393 (: CFLAGS="$CFLAGS") 2>&5
cristy17491be2014-06-24 01:10:53 +00008394 ac_status=$?
8395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8396 test $ac_status = 0; }
cristy146497a2015-05-17 22:46:16 +00008397 ;;
8398esac
8399
cristy17491be2014-06-24 01:10:53 +00008400else
cristy146497a2015-05-17 22:46:16 +00008401
8402 CFLAGS=$ac_cv_cflags_warn_all
8403 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
8404 (: CFLAGS="$CFLAGS") 2>&5
8405 ac_status=$?
8406 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8407 test $ac_status = 0; }
8408
cristy17491be2014-06-24 01:10:53 +00008409fi
8410 ;;
8411esac
8412
8413ac_ext=c
cristy73bd4a52010-10-05 11:24:23 +00008414ac_cpp='$CPP $CPPFLAGS'
8415ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8416ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8417ac_compiler_gnu=$ac_cv_c_compiler_gnu
8418
8419
cristya0b81c32010-01-22 02:54:33 +00008420
8421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8422$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8423set x ${MAKE-make}
8424ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00008425if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00008426 $as_echo_n "(cached) " >&6
8427else
8428 cat >conftest.make <<\_ACEOF
8429SHELL = /bin/sh
8430all:
8431 @echo '@@@%%%=$(MAKE)=@@@%%%'
8432_ACEOF
cristy98dddb52010-11-04 00:30:15 +00008433# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristya0b81c32010-01-22 02:54:33 +00008434case `${MAKE-make} -f conftest.make 2>/dev/null` in
8435 *@@@%%%=?*=@@@%%%*)
8436 eval ac_cv_prog_make_${ac_make}_set=yes;;
8437 *)
8438 eval ac_cv_prog_make_${ac_make}_set=no;;
8439esac
8440rm -f conftest.make
8441fi
8442if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8444$as_echo "yes" >&6; }
8445 SET_MAKE=
8446else
8447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8448$as_echo "no" >&6; }
8449 SET_MAKE="MAKE=${MAKE-make}"
8450fi
8451
cristy8b350f62009-11-15 23:12:43 +00008452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00008453$as_echo_n "checking whether ln -s works... " >&6; }
8454LN_S=$as_ln_s
8455if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00008456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00008457$as_echo "yes" >&6; }
8458else
cristy8b350f62009-11-15 23:12:43 +00008459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00008460$as_echo "no, using $LN_S" >&6; }
8461fi
8462
cristy8d0ff762013-03-10 20:33:28 +00008463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8464$as_echo_n "checking for a sed that does not truncate output... " >&6; }
8465if ${ac_cv_path_SED+:} false; then :
8466 $as_echo_n "(cached) " >&6
8467else
8468 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
8469 for ac_i in 1 2 3 4 5 6 7; do
8470 ac_script="$ac_script$as_nl$ac_script"
8471 done
8472 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
8473 { ac_script=; unset ac_script;}
8474 if test -z "$SED"; then
8475 ac_path_SED_found=false
8476 # Loop through the user's path and test for each of PROGNAME-LIST
8477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8478for as_dir in $PATH
8479do
8480 IFS=$as_save_IFS
8481 test -z "$as_dir" && as_dir=.
8482 for ac_prog in sed gsed; do
8483 for ac_exec_ext in '' $ac_executable_extensions; do
8484 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
8485 as_fn_executable_p "$ac_path_SED" || continue
8486# Check for GNU ac_path_SED and select it if it is found.
8487 # Check for GNU $ac_path_SED
8488case `"$ac_path_SED" --version 2>&1` in
8489*GNU*)
8490 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
8491*)
8492 ac_count=0
8493 $as_echo_n 0123456789 >"conftest.in"
8494 while :
8495 do
8496 cat "conftest.in" "conftest.in" >"conftest.tmp"
8497 mv "conftest.tmp" "conftest.in"
8498 cp "conftest.in" "conftest.nl"
8499 $as_echo '' >> "conftest.nl"
8500 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
8501 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8502 as_fn_arith $ac_count + 1 && ac_count=$as_val
8503 if test $ac_count -gt ${ac_path_SED_max-0}; then
8504 # Best one so far, save it but keep looking for a better one
8505 ac_cv_path_SED="$ac_path_SED"
8506 ac_path_SED_max=$ac_count
8507 fi
8508 # 10*(2^10) chars as input seems more than enough
8509 test $ac_count -gt 10 && break
8510 done
8511 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8512esac
8513
8514 $ac_path_SED_found && break 3
8515 done
8516 done
8517 done
8518IFS=$as_save_IFS
8519 if test -z "$ac_cv_path_SED"; then
8520 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
8521 fi
8522else
8523 ac_cv_path_SED=$SED
8524fi
8525
8526fi
8527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8528$as_echo "$ac_cv_path_SED" >&6; }
8529 SED="$ac_cv_path_SED"
8530 rm -f conftest.sed
8531
cristybc556452012-08-17 19:44:03 +00008532for ac_prog in gawk mawk nawk awk
8533do
8534 # Extract the first word of "$ac_prog", so it can be a program name with args.
8535set dummy $ac_prog; ac_word=$2
8536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8537$as_echo_n "checking for $ac_word... " >&6; }
8538if ${ac_cv_prog_AWK+:} false; then :
8539 $as_echo_n "(cached) " >&6
8540else
8541 if test -n "$AWK"; then
8542 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8543else
8544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8545for as_dir in $PATH
8546do
8547 IFS=$as_save_IFS
8548 test -z "$as_dir" && as_dir=.
8549 for ac_exec_ext in '' $ac_executable_extensions; do
8550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8551 ac_cv_prog_AWK="$ac_prog"
8552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8553 break 2
8554 fi
8555done
8556 done
8557IFS=$as_save_IFS
8558
8559fi
8560fi
8561AWK=$ac_cv_prog_AWK
8562if test -n "$AWK"; then
8563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8564$as_echo "$AWK" >&6; }
8565else
8566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8567$as_echo "no" >&6; }
8568fi
8569
8570
8571 test -n "$AWK" && break
8572done
8573
cristy73bd4a52010-10-05 11:24:23 +00008574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
8575$as_echo_n "checking if malloc debugging is wanted... " >&6; }
8576
8577# Check whether --with-dmalloc was given.
8578if test "${with_dmalloc+set}" = set; then :
8579 withval=$with_dmalloc; if test "$withval" = yes; then
8580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8581$as_echo "yes" >&6; }
8582
8583$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
8584
8585 LIBS="$LIBS -ldmalloc"
8586 LDFLAGS="$LDFLAGS -g"
8587else
8588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8589$as_echo "no" >&6; }
8590fi
8591else
8592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8593$as_echo "no" >&6; }
8594fi
8595
8596
8597
8598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
8599$as_echo_n "checking for __attribute__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008600if ${ax_cv___attribute__+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008601 $as_echo_n "(cached) " >&6
8602else
8603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8604/* end confdefs.h. */
8605#include <stdlib.h>
cristy146497a2015-05-17 22:46:16 +00008606 static void foo(void) __attribute__ ((unused));
cristy73bd4a52010-10-05 11:24:23 +00008607 static void
8608 foo(void) {
8609 exit(1);
8610 }
8611
8612int
8613main ()
8614{
8615
8616 ;
8617 return 0;
8618}
8619_ACEOF
8620if ac_fn_c_try_compile "$LINENO"; then :
8621 ax_cv___attribute__=yes
8622else
8623 ax_cv___attribute__=no
8624
8625fi
8626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8627
8628fi
8629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
8630$as_echo "$ax_cv___attribute__" >&6; }
8631 if test "$ax_cv___attribute__" = "yes"; then
8632
8633$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
8634
8635 fi
8636
cristy146497a2015-05-17 22:46:16 +00008637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
8638$as_echo_n "checking for C compiler vendor... " >&6; }
8639if ${ax_cv_c_compiler_vendor+:} false; then :
8640 $as_echo_n "(cached) " >&6
8641else
8642 # note: don't check for gcc first since some other compilers define __GNUC__
8643 vendors="intel: __ICC,__ECC,__INTEL_COMPILER
8644 ibm: __xlc__,__xlC__,__IBMC__,__IBMCPP__
8645 pathscale: __PATHCC__,__PATHSCALE__
8646 clang: __clang__
8647 cray: _CRAYC
8648 fujitsu: __FUJITSU
8649 gnu: __GNUC__
8650 sun: __SUNPRO_C,__SUNPRO_CC
8651 hp: __HP_cc,__HP_aCC
8652 dec: __DECC,__DECCXX,__DECC_VER,__DECCXX_VER
8653 borland: __BORLANDC__,__CODEGEARC__,__TURBOC__
8654 comeau: __COMO__
8655 kai: __KCC
8656 lcc: __LCC__
8657 sgi: __sgi,sgi
8658 microsoft: _MSC_VER
8659 metrowerks: __MWERKS__
8660 watcom: __WATCOMC__
8661 portland: __PGI
8662 tcc: __TINYC__
8663 unknown: UNKNOWN"
8664 for ventest in $vendors; do
8665 case $ventest in
8666 *:) vendor=$ventest; continue ;;
8667 *) vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" ;;
8668 esac
8669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8670/* end confdefs.h. */
8671
8672int
8673main ()
8674{
8675
8676 #if !($vencpp)
8677 thisisanerror;
8678 #endif
8679
8680 ;
8681 return 0;
8682}
8683_ACEOF
8684if ac_fn_c_try_compile "$LINENO"; then :
8685 break
8686fi
8687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8688 done
8689 ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1`
8690
8691fi
8692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5
8693$as_echo "$ax_cv_c_compiler_vendor" >&6; }
8694
8695
cristy73bd4a52010-10-05 11:24:23 +00008696
8697
cristya0459972013-11-03 18:09:35 +00008698
8699
cristy17491be2014-06-24 01:10:53 +00008700
cristya0459972013-11-03 18:09:35 +00008701# Check whether --with-gcc-arch was given.
8702if test "${with_gcc_arch+set}" = set; then :
8703 withval=$with_gcc_arch; ax_gcc_arch=$withval
8704else
cristy17491be2014-06-24 01:10:53 +00008705 ax_gcc_arch=yes
cristya0459972013-11-03 18:09:35 +00008706fi
8707
8708
8709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8710$as_echo_n "checking for gcc architecture flag... " >&6; }
8711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
8712$as_echo "" >&6; }
8713if ${ax_cv_gcc_archflag+:} false; then :
8714 $as_echo_n "(cached) " >&6
8715else
8716
8717ax_cv_gcc_archflag="unknown"
8718
8719if test "$GCC" = yes; then
8720
8721if test "x$ax_gcc_arch" = xyes; then
8722ax_gcc_arch=""
8723if test "$cross_compiling" = no; then
8724case $host_cpu in
cristy17491be2014-06-24 01:10:53 +00008725 i[3456]86*|x86_64*|amd64*) # use cpuid codes
cristya0459972013-11-03 18:09:35 +00008726
8727ac_ext=c
8728ac_cpp='$CPP $CPPFLAGS'
8729ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8730ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8731ac_compiler_gnu=$ac_cv_c_compiler_gnu
8732
8733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5
8734$as_echo_n "checking for x86 cpuid 0 output... " >&6; }
8735if ${ax_cv_gcc_x86_cpuid_0+:} false; then :
8736 $as_echo_n "(cached) " >&6
8737else
8738 if test "$cross_compiling" = yes; then :
8739 ax_cv_gcc_x86_cpuid_0=unknown
8740else
8741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8742/* end confdefs.h. */
8743#include <stdio.h>
8744int
8745main ()
8746{
8747
8748 int op = 0, eax, ebx, ecx, edx;
8749 FILE *f;
8750 __asm__("cpuid"
8751 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8752 : "a" (op));
8753 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8754 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8755 fclose(f);
8756 return 0;
8757
8758 ;
8759 return 0;
8760}
8761_ACEOF
8762if ac_fn_c_try_run "$LINENO"; then :
8763 ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid
8764else
8765 ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid
8766fi
8767rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8768 conftest.$ac_objext conftest.beam conftest.$ac_ext
8769fi
8770
8771fi
8772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5
8773$as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; }
8774ac_ext=c
8775ac_cpp='$CPP $CPPFLAGS'
8776ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8777ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8778ac_compiler_gnu=$ac_cv_c_compiler_gnu
8779
8780
8781
8782ac_ext=c
8783ac_cpp='$CPP $CPPFLAGS'
8784ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8785ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8786ac_compiler_gnu=$ac_cv_c_compiler_gnu
8787
8788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5
8789$as_echo_n "checking for x86 cpuid 1 output... " >&6; }
8790if ${ax_cv_gcc_x86_cpuid_1+:} false; then :
8791 $as_echo_n "(cached) " >&6
8792else
8793 if test "$cross_compiling" = yes; then :
8794 ax_cv_gcc_x86_cpuid_1=unknown
8795else
8796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8797/* end confdefs.h. */
8798#include <stdio.h>
8799int
8800main ()
8801{
8802
8803 int op = 1, eax, ebx, ecx, edx;
8804 FILE *f;
8805 __asm__("cpuid"
8806 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8807 : "a" (op));
8808 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8809 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8810 fclose(f);
8811 return 0;
8812
8813 ;
8814 return 0;
8815}
8816_ACEOF
8817if ac_fn_c_try_run "$LINENO"; then :
8818 ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid
8819else
8820 ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid
8821fi
8822rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8823 conftest.$ac_objext conftest.beam conftest.$ac_ext
8824fi
8825
8826fi
8827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5
8828$as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; }
8829ac_ext=c
8830ac_cpp='$CPP $CPPFLAGS'
8831ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8832ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8833ac_compiler_gnu=$ac_cv_c_compiler_gnu
8834
8835
8836 case $ax_cv_gcc_x86_cpuid_0 in
cristy146497a2015-05-17 22:46:16 +00008837 *:756e6547:6c65746e:49656e69) # Intel
cristya0459972013-11-03 18:09:35 +00008838 case $ax_cv_gcc_x86_cpuid_1 in
cristy146497a2015-05-17 22:46:16 +00008839 *5[4578]?:*:*:*) ax_gcc_arch="pentium-mmx pentium" ;;
8840 *5[123]?:*:*:*) ax_gcc_arch=pentium ;;
8841 *0?61?:*:*:*|?61?:*:*:*|61?:*:*:*) ax_gcc_arch=pentiumpro ;;
8842 *0?6[356]?:*:*:*|?6[356]?:*:*:*|6[356]?:*:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8843 *0?6[78ab]?:*:*:*|?6[78ab]?:*:*:*|6[78ab]?:*:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8844 *0?6[9d]?:*:*:*|?6[9d]?:*:*:*|6[9d]?:*:*:*|*1?65?:*:*:*) ax_gcc_arch="pentium-m pentium3 pentiumpro" ;;
8845 *0?6e?:*:*:*|?6e?:*:*:*|6e?:*:*:*) ax_gcc_arch="yonah pentium-m pentium3 pentiumpro" ;;
8846 *0?6f?:*:*:*|?6f?:*:*:*|6f?:*:*:*|*1?66?:*:*:*) ax_gcc_arch="core2 pentium-m pentium3 pentiumpro" ;;
cristya0459972013-11-03 18:09:35 +00008847 *1?6[7d]?:*:*:*) ax_gcc_arch="penryn core2 pentium-m pentium3 pentiumpro" ;;
cristy146497a2015-05-17 22:46:16 +00008848 *1?6[aef]?:*:*:*|*2?6e?:*:*:*) ax_gcc_arch="nehalem corei7 core2 pentium-m pentium3 pentiumpro" ;;
8849 *2?6[5cf]?:*:*:*) ax_gcc_arch="westmere corei7 core2 pentium-m pentium3 pentiumpro" ;;
8850 *2?6[ad]?:*:*:*) ax_gcc_arch="sandybridge corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
8851 *3?6[ae]?:*:*:*) ax_gcc_arch="ivybridge core-avx-i corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
8852 *3?6[cf]?:*:*:*|*4?6[56]?:*:*:*) ax_gcc_arch="haswell core-avx2 core-avx-i corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
8853 *3?6d?:*:*:*) ax_gcc_arch="broadwell core-avx2 core-avx-i corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
8854 *1?6c?:*:*:*|*2?6[67]?:*:*:*|*3?6[56]?:*:*:*) ax_gcc_arch="bonnell atom core2 pentium-m pentium3 pentiumpro" ;;
8855 *3?67?:*:*:*|*[45]?6[ad]?:*:*:*) ax_gcc_arch="silvermont atom core2 pentium-m pentium3 pentiumpro" ;;
8856 *000?f[012]?:*:*:*|?f[012]?:*:*:*|f[012]?:*:*:*) ax_gcc_arch="pentium4 pentiumpro" ;;
8857 *000?f[346]?:*:*:*|?f[346]?:*:*:*|f[346]?:*:*:*) ax_gcc_arch="nocona prescott pentium4 pentiumpro" ;;
8858 # fallback
8859 *5??:*:*:*) ax_gcc_arch=pentium ;;
8860 *??6??:*:*:*) ax_gcc_arch="core2 pentiumpro" ;;
cristy17491be2014-06-24 01:10:53 +00008861 *6??:*:*:*) ax_gcc_arch=pentiumpro ;;
cristy146497a2015-05-17 22:46:16 +00008862 *00??f??:*:*:*|??f??:*:*:*|?f??:*:*:*|f??:*:*:*) ax_gcc_arch="pentium4 pentiumpro" ;;
cristya0459972013-11-03 18:09:35 +00008863 esac ;;
cristy146497a2015-05-17 22:46:16 +00008864 *:68747541:444d4163:69746e65) # AMD
cristya0459972013-11-03 18:09:35 +00008865 case $ax_cv_gcc_x86_cpuid_1 in
8866 *5[67]?:*:*:*) ax_gcc_arch=k6 ;;
cristy146497a2015-05-17 22:46:16 +00008867 *5[8]?:*:*:*) ax_gcc_arch="k6-2 k6" ;;
8868 *5[9d]?:*:*:*) ax_gcc_arch="k6-3 k6" ;;
cristya0459972013-11-03 18:09:35 +00008869 *6[12]?:*:*:*) ax_gcc_arch="athlon k7" ;;
8870 *6[34]?:*:*:*) ax_gcc_arch="athlon-tbird k7" ;;
cristy146497a2015-05-17 22:46:16 +00008871 *6[678a]?:*:*:*) ax_gcc_arch="athlon-xp athlon-4 athlon k7" ;;
8872 *000?f[4578bcef]?:*:*:*|?f[4578bcef]?:*:*:*|f[4578bcef]?:*:*:*|*001?f[4578bcf]?:*:*:*|1?f[4578bcf]?:*:*:*) ax_gcc_arch="athlon64 k8" ;;
8873 *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" ;;
8874 *010?f[245689a]?:*:*:*|10?f[245689a]?:*:*:*|*030?f1?:*:*:*|30?f1?:*:*:*) ax_gcc_arch="barcelona amdfam10 k8" ;;
8875 *050?f[12]?:*:*:*|50?f[12]?:*:*:*) ax_gcc_arch="btver1 amdfam10 k8" ;;
8876 *060?f1?:*:*:*|60?f1?:*:*:*) ax_gcc_arch="bdver1 amdfam10 k8" ;;
8877 *060?f2?:*:*:*|60?f2?:*:*:*|*061?f[03]?:*:*:*|61?f[03]?:*:*:*) ax_gcc_arch="bdver2 bdver1 amdfam10 k8" ;;
8878 *063?f0?:*:*:*|63?f0?:*:*:*) ax_gcc_arch="bdver3 bdver2 bdver1 amdfam10 k8" ;;
8879 *07[03]?f0?:*:*:*|7[03]?f0?:*:*:*) ax_gcc_arch="btver2 btver1 amdfam10 k8" ;;
8880 # fallback
8881 *0[13]??f??:*:*:*|[13]??f??:*:*:*) ax_gcc_arch="barcelona amdfam10 k8" ;;
8882 *020?f??:*:*:*|20?f??:*:*:*) ax_gcc_arch="athlon64-sse3 k8-sse3 athlon64 k8" ;;
8883 *05??f??:*:*:*|5??f??:*:*:*) ax_gcc_arch="btver1 amdfam10 k8" ;;
8884 *060?f??:*:*:*|60?f??:*:*:*) ax_gcc_arch="bdver1 amdfam10 k8" ;;
8885 *061?f??:*:*:*|61?f??:*:*:*) ax_gcc_arch="bdver2 bdver1 amdfam10 k8" ;;
8886 *06??f??:*:*:*|6??f??:*:*:*) ax_gcc_arch="bdver3 bdver2 bdver1 amdfam10 k8" ;;
8887 *070?f??:*:*:*|70?f??:*:*:*) ax_gcc_arch="btver2 btver1 amdfam10 k8" ;;
8888 *???f??:*:*:*) ax_gcc_arch="amdfam10 k8" ;;
cristya0459972013-11-03 18:09:35 +00008889 esac ;;
cristy146497a2015-05-17 22:46:16 +00008890 *:746e6543:736c7561:48727561) # IDT / VIA (Centaur)
cristya0459972013-11-03 18:09:35 +00008891 case $ax_cv_gcc_x86_cpuid_1 in
8892 *54?:*:*:*) ax_gcc_arch=winchip-c6 ;;
cristy146497a2015-05-17 22:46:16 +00008893 *5[89]?:*:*:*) ax_gcc_arch=winchip2 ;;
8894 *66?:*:*:*) ax_gcc_arch=winchip2 ;;
cristya0459972013-11-03 18:09:35 +00008895 *6[78]?:*:*:*) ax_gcc_arch=c3 ;;
cristy146497a2015-05-17 22:46:16 +00008896 *6[9adf]?:*:*:*) ax_gcc_arch="c3-2 c3" ;;
cristya0459972013-11-03 18:09:35 +00008897 esac ;;
8898 esac
8899 if test x"$ax_gcc_arch" = x; then # fallback
8900 case $host_cpu in
8901 i586*) ax_gcc_arch=pentium ;;
8902 i686*) ax_gcc_arch=pentiumpro ;;
8903 esac
8904 fi
8905 ;;
8906
8907 sparc*)
8908 # Extract the first word of "prtdiag", so it can be a program name with args.
8909set dummy prtdiag; ac_word=$2
8910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8911$as_echo_n "checking for $ac_word... " >&6; }
8912if ${ac_cv_path_PRTDIAG+:} false; then :
8913 $as_echo_n "(cached) " >&6
8914else
8915 case $PRTDIAG in
8916 [\\/]* | ?:[\\/]*)
8917 ac_cv_path_PRTDIAG="$PRTDIAG" # Let the user override the test with a path.
8918 ;;
8919 *)
8920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8921as_dummy="$PATH:/usr/platform/`uname -i`/sbin/:/usr/platform/`uname -m`/sbin/"
8922for as_dir in $as_dummy
8923do
8924 IFS=$as_save_IFS
8925 test -z "$as_dir" && as_dir=.
8926 for ac_exec_ext in '' $ac_executable_extensions; do
8927 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8928 ac_cv_path_PRTDIAG="$as_dir/$ac_word$ac_exec_ext"
8929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8930 break 2
8931 fi
8932done
8933 done
8934IFS=$as_save_IFS
8935
8936 test -z "$ac_cv_path_PRTDIAG" && ac_cv_path_PRTDIAG="prtdiag"
8937 ;;
8938esac
8939fi
8940PRTDIAG=$ac_cv_path_PRTDIAG
8941if test -n "$PRTDIAG"; then
8942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRTDIAG" >&5
8943$as_echo "$PRTDIAG" >&6; }
8944else
8945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8946$as_echo "no" >&6; }
8947fi
8948
8949
8950 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 +00008951 cputype=`echo "$cputype" | tr -d ' -' | $SED 's/SPARCIIi/SPARCII/' |tr $as_cr_LETTERS $as_cr_letters`
cristya0459972013-11-03 18:09:35 +00008952 case $cputype in
8953 *ultrasparciv*) ax_gcc_arch="ultrasparc4 ultrasparc3 ultrasparc v9" ;;
8954 *ultrasparciii*) ax_gcc_arch="ultrasparc3 ultrasparc v9" ;;
8955 *ultrasparc*) ax_gcc_arch="ultrasparc v9" ;;
8956 *supersparc*|*tms390z5[05]*) ax_gcc_arch="supersparc v8" ;;
8957 *hypersparc*|*rt62[056]*) ax_gcc_arch="hypersparc v8" ;;
8958 *cypress*) ax_gcc_arch=cypress ;;
8959 esac ;;
8960
8961 alphaev5) ax_gcc_arch=ev5 ;;
8962 alphaev56) ax_gcc_arch=ev56 ;;
8963 alphapca56) ax_gcc_arch="pca56 ev56" ;;
8964 alphapca57) ax_gcc_arch="pca57 pca56 ev56" ;;
8965 alphaev6) ax_gcc_arch=ev6 ;;
8966 alphaev67) ax_gcc_arch=ev67 ;;
8967 alphaev68) ax_gcc_arch="ev68 ev67" ;;
8968 alphaev69) ax_gcc_arch="ev69 ev68 ev67" ;;
8969 alphaev7) ax_gcc_arch="ev7 ev69 ev68 ev67" ;;
8970 alphaev79) ax_gcc_arch="ev79 ev7 ev69 ev68 ev67" ;;
8971
8972 powerpc*)
cristy17491be2014-06-24 01:10:53 +00008973 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`
8974 cputype=`echo $cputype | $SED -e 's/ppc//g;s/ *//g'`
cristya0459972013-11-03 18:09:35 +00008975 case $cputype in
8976 *750*) ax_gcc_arch="750 G3" ;;
8977 *740[0-9]*) ax_gcc_arch="$cputype 7400 G4" ;;
8978 *74[4-5][0-9]*) ax_gcc_arch="$cputype 7450 G4" ;;
8979 *74[0-9][0-9]*) ax_gcc_arch="$cputype G4" ;;
8980 *970*) ax_gcc_arch="970 G5 power4";;
8981 *POWER4*|*power4*|*gq*) ax_gcc_arch="power4 970";;
8982 *POWER5*|*power5*|*gr*|*gs*) ax_gcc_arch="power5 power4 970";;
8983 603ev|8240) ax_gcc_arch="$cputype 603e 603";;
8984 *) ax_gcc_arch=$cputype ;;
8985 esac
8986 ax_gcc_arch="$ax_gcc_arch powerpc"
8987 ;;
8988esac
8989fi # not cross-compiling
8990fi # guess arch
8991
8992if test "x$ax_gcc_arch" != x -a "x$ax_gcc_arch" != xno; then
cristy146497a2015-05-17 22:46:16 +00008993if test "xyes" = xyes; then # if we require portable code
8994 flag_prefixes="-mtune="
8995 if test "x$ax_cv_c_compiler_vendor" = xclang; then flag_prefixes="-march="; fi
8996 # -mcpu=$arch and m$arch generate nonportable code on every arch except
8997 # x86. And some other arches (e.g. Alpha) don't accept -mtune. Grrr.
8998 case $host_cpu in i*86|x86_64*|amd64*) flag_prefixes="$flag_prefixes -mcpu= -m";; esac
8999else
9000 flag_prefixes="-march= -mcpu= -m"
9001fi
9002for flag_prefix in $flag_prefixes; do
9003 for arch in $ax_gcc_arch; do
9004 flag="$flag_prefix$arch"
cristya0459972013-11-03 18:09:35 +00009005 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
9006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
9007$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
9008if eval \${$as_CACHEVAR+:} false; then :
9009 $as_echo_n "(cached) " >&6
9010else
9011
9012 ax_check_save_flags=$CFLAGS
9013 CFLAGS="$CFLAGS $flag"
9014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9015/* end confdefs.h. */
9016
9017int
9018main ()
9019{
9020
9021 ;
9022 return 0;
9023}
9024_ACEOF
9025if ac_fn_c_try_compile "$LINENO"; then :
9026 eval "$as_CACHEVAR=yes"
9027else
9028 eval "$as_CACHEVAR=no"
9029fi
9030rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9031 CFLAGS=$ax_check_save_flags
9032fi
9033eval ac_res=\$$as_CACHEVAR
9034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9035$as_echo "$ac_res" >&6; }
cristy146497a2015-05-17 22:46:16 +00009036if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
9037 if test "x$ax_cv_c_compiler_vendor" = xclang; then
9038 if test "xyes" = xyes; then
9039 if test "x$flag" = "x-march=$arch"; then flag=-mtune=$arch; fi
9040 fi
9041 fi; ax_cv_gcc_archflag=$flag; break
cristya0459972013-11-03 18:09:35 +00009042else
9043 :
9044fi
9045
9046 done
9047 test "x$ax_cv_gcc_archflag" = xunknown || break
9048done
9049fi
9050
9051fi # $GCC=yes
9052
9053fi
9054
9055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
9056$as_echo_n "checking for gcc architecture flag... " >&6; }
9057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_archflag" >&5
9058$as_echo "$ax_cv_gcc_archflag" >&6; }
9059if test "x$ax_cv_gcc_archflag" = xunknown; then
9060 :
9061else
9062 CFLAGS="$CFLAGS $ax_cv_gcc_archflag"
9063fi
9064
9065
9066
cristy146497a2015-05-17 22:46:16 +00009067
9068
9069
9070
9071
cristy73bd4a52010-10-05 11:24:23 +00009072if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
9073 if test -n "$ac_tool_prefix"; then
9074 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
9075set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
9076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9077$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009078if ${ac_cv_path_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009079 $as_echo_n "(cached) " >&6
9080else
9081 case $PKG_CONFIG in
9082 [\\/]* | ?:[\\/]*)
9083 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9084 ;;
9085 *)
9086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9087for as_dir in $PATH
9088do
9089 IFS=$as_save_IFS
9090 test -z "$as_dir" && as_dir=.
9091 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009093 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9095 break 2
9096 fi
9097done
9098 done
9099IFS=$as_save_IFS
9100
9101 ;;
9102esac
9103fi
9104PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9105if test -n "$PKG_CONFIG"; then
9106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9107$as_echo "$PKG_CONFIG" >&6; }
9108else
9109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9110$as_echo "no" >&6; }
9111fi
9112
9113
9114fi
9115if test -z "$ac_cv_path_PKG_CONFIG"; then
9116 ac_pt_PKG_CONFIG=$PKG_CONFIG
9117 # Extract the first word of "pkg-config", so it can be a program name with args.
9118set dummy pkg-config; ac_word=$2
9119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9120$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009121if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009122 $as_echo_n "(cached) " >&6
9123else
9124 case $ac_pt_PKG_CONFIG in
9125 [\\/]* | ?:[\\/]*)
9126 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
9127 ;;
9128 *)
9129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9130for as_dir in $PATH
9131do
9132 IFS=$as_save_IFS
9133 test -z "$as_dir" && as_dir=.
9134 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009136 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9138 break 2
9139 fi
9140done
9141 done
9142IFS=$as_save_IFS
9143
9144 ;;
9145esac
9146fi
9147ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
9148if test -n "$ac_pt_PKG_CONFIG"; then
9149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
9150$as_echo "$ac_pt_PKG_CONFIG" >&6; }
9151else
9152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9153$as_echo "no" >&6; }
9154fi
9155
9156 if test "x$ac_pt_PKG_CONFIG" = x; then
9157 PKG_CONFIG=""
9158 else
9159 case $cross_compiling:$ac_tool_warned in
9160yes:)
9161{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9162$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9163ac_tool_warned=yes ;;
9164esac
9165 PKG_CONFIG=$ac_pt_PKG_CONFIG
9166 fi
9167else
9168 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
9169fi
9170
9171fi
9172if test -n "$PKG_CONFIG"; then
9173 _pkg_min_version=0.9.0
9174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
9175$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
9176 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
9177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9178$as_echo "yes" >&6; }
9179 else
9180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9181$as_echo "no" >&6; }
9182 PKG_CONFIG=""
9183 fi
cristy73bd4a52010-10-05 11:24:23 +00009184fi
cristy3ed852e2009-09-05 21:47:34 +00009185
cristy9af1cbf2014-12-28 22:03:09 +00009186
9187
cristyd95b7a52013-10-23 13:12:53 +00009188# Test for 64-bit build.
9189# The cast to long int works around a bug in the HP C Compiler
9190# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9191# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9192# This bug is HP SR number 8606223364.
9193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
9194$as_echo_n "checking size of size_t... " >&6; }
9195if ${ac_cv_sizeof_size_t+:} false; then :
9196 $as_echo_n "(cached) " >&6
9197else
9198 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
9199
9200else
9201 if test "$ac_cv_type_size_t" = yes; then
9202 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9203$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9204as_fn_error 77 "cannot compute sizeof (size_t)
9205See \`config.log' for more details" "$LINENO" 5; }
9206 else
9207 ac_cv_sizeof_size_t=0
9208 fi
9209fi
9210
9211fi
9212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
9213$as_echo "$ac_cv_sizeof_size_t" >&6; }
9214
9215
9216
9217cat >>confdefs.h <<_ACEOF
9218#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
9219_ACEOF
9220
9221
9222
9223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
9224$as_echo_n "checking for C compiler vendor... " >&6; }
9225if ${ax_cv_c_compiler_vendor+:} false; then :
9226 $as_echo_n "(cached) " >&6
9227else
cristy146497a2015-05-17 22:46:16 +00009228 # note: don't check for gcc first since some other compilers define __GNUC__
cristyd95b7a52013-10-23 13:12:53 +00009229 vendors="intel: __ICC,__ECC,__INTEL_COMPILER
9230 ibm: __xlc__,__xlC__,__IBMC__,__IBMCPP__
9231 pathscale: __PATHCC__,__PATHSCALE__
9232 clang: __clang__
cristy146497a2015-05-17 22:46:16 +00009233 cray: _CRAYC
cristy17491be2014-06-24 01:10:53 +00009234 fujitsu: __FUJITSU
cristyd95b7a52013-10-23 13:12:53 +00009235 gnu: __GNUC__
9236 sun: __SUNPRO_C,__SUNPRO_CC
9237 hp: __HP_cc,__HP_aCC
9238 dec: __DECC,__DECCXX,__DECC_VER,__DECCXX_VER
cristy146497a2015-05-17 22:46:16 +00009239 borland: __BORLANDC__,__CODEGEARC__,__TURBOC__
cristyd95b7a52013-10-23 13:12:53 +00009240 comeau: __COMO__
cristyd95b7a52013-10-23 13:12:53 +00009241 kai: __KCC
9242 lcc: __LCC__
9243 sgi: __sgi,sgi
9244 microsoft: _MSC_VER
9245 metrowerks: __MWERKS__
9246 watcom: __WATCOMC__
9247 portland: __PGI
cristy146497a2015-05-17 22:46:16 +00009248 tcc: __TINYC__
cristyd95b7a52013-10-23 13:12:53 +00009249 unknown: UNKNOWN"
9250 for ventest in $vendors; do
9251 case $ventest in
9252 *:) vendor=$ventest; continue ;;
9253 *) vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" ;;
9254 esac
9255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9256/* end confdefs.h. */
9257
9258int
9259main ()
9260{
9261
9262 #if !($vencpp)
9263 thisisanerror;
9264 #endif
9265
9266 ;
9267 return 0;
9268}
9269_ACEOF
9270if ac_fn_c_try_compile "$LINENO"; then :
9271 break
9272fi
9273rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9274 done
9275 ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1`
9276
9277fi
9278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5
9279$as_echo "$ax_cv_c_compiler_vendor" >&6; }
9280
cristyd95b7a52013-10-23 13:12:53 +00009281# The AX_CFLAGS_WARN_ALL macro doesn't currently work for sunpro
9282# compiler.
9283if test "$ax_cv_c_compiler_vendor" != "sun"; then
cristy17491be2014-06-24 01:10:53 +00009284 ac_ext=c
cristyd95b7a52013-10-23 13:12:53 +00009285ac_cpp='$CPP $CPPFLAGS'
9286ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9287ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9288ac_compiler_gnu=$ac_cv_c_compiler_gnu
9289
cristy17491be2014-06-24 01:10:53 +00009290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
9291$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
9292if ${ac_cv_cflags_warn_all+:} false; then :
9293 $as_echo_n "(cached) " >&6
9294else
9295 ac_cv_cflags_warn_all="no, unknown"
9296ac_save_CFLAGS="$CFLAGS"
9297for 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 +00009298do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
9299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9300/* end confdefs.h. */
9301
9302int
9303main ()
9304{
9305
9306 ;
9307 return 0;
9308}
9309_ACEOF
9310if ac_fn_c_try_compile "$LINENO"; then :
9311 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
9312fi
9313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9314done
cristy17491be2014-06-24 01:10:53 +00009315CFLAGS="$ac_save_CFLAGS"
9316
9317fi
9318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
9319$as_echo "$ac_cv_cflags_warn_all" >&6; }
9320
9321
9322case ".$ac_cv_cflags_warn_all" in
9323 .ok|.ok,*) ;;
9324 .|.no|.no,*) ;;
cristy146497a2015-05-17 22:46:16 +00009325 *)
9326if ${CFLAGS+:} false; then :
9327
9328 case " $CFLAGS " in #(
9329 *" $ac_cv_cflags_warn_all "*) :
9330 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$ac_cv_cflags_warn_all"; } >&5
cristy17491be2014-06-24 01:10:53 +00009331 (: CFLAGS already contains $ac_cv_cflags_warn_all) 2>&5
9332 ac_status=$?
9333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristy146497a2015-05-17 22:46:16 +00009334 test $ac_status = 0; } ;; #(
9335 *) :
9336
9337 as_fn_append CFLAGS " $ac_cv_cflags_warn_all"
9338 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
9339 (: CFLAGS="$CFLAGS") 2>&5
cristy17491be2014-06-24 01:10:53 +00009340 ac_status=$?
9341 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9342 test $ac_status = 0; }
cristy146497a2015-05-17 22:46:16 +00009343 ;;
9344esac
9345
cristy17491be2014-06-24 01:10:53 +00009346else
cristy146497a2015-05-17 22:46:16 +00009347
9348 CFLAGS=$ac_cv_cflags_warn_all
9349 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
9350 (: CFLAGS="$CFLAGS") 2>&5
9351 ac_status=$?
9352 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9353 test $ac_status = 0; }
9354
cristy17491be2014-06-24 01:10:53 +00009355fi
9356 ;;
9357esac
9358
9359ac_ext=c
cristyd95b7a52013-10-23 13:12:53 +00009360ac_cpp='$CPP $CPPFLAGS'
9361ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9362ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9363ac_compiler_gnu=$ac_cv_c_compiler_gnu
9364
9365
9366fi
cristyd95b7a52013-10-23 13:12:53 +00009367
9368if test "x$GCC" = "xyes"; then
9369 CFLAGS="$CFLAGS -fexceptions"
9370 touch local.exp
9371else
9372 cat > local.exp <<EOF
9373set CC_FOR_TARGET "$CC"
9374EOF
9375fi
9376
cristy9b86f202012-11-28 21:55:35 +00009377# Check for linker script support
9378
9379 # Check whether --enable-ld-version-script was given.
9380if test "${enable_ld_version_script+set}" = set; then :
9381 enableval=$enable_ld_version_script; have_ld_version_script=$enableval
9382fi
9383
9384 if test -z "$have_ld_version_script"; then
9385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5
9386$as_echo_n "checking if LD -Wl,--version-script works... " >&6; }
9387 save_LDFLAGS="$LDFLAGS"
9388 LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
9389 cat > conftest.map <<EOF
9390foo
9391EOF
9392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9393/* end confdefs.h. */
9394
9395int
9396main ()
9397{
9398
9399 ;
9400 return 0;
9401}
9402_ACEOF
9403if ac_fn_c_try_link "$LINENO"; then :
9404 accepts_syntax_errors=yes
9405else
9406 accepts_syntax_errors=no
9407fi
9408rm -f core conftest.err conftest.$ac_objext \
9409 conftest$ac_exeext conftest.$ac_ext
9410 if test "$accepts_syntax_errors" = no; then
9411 cat > conftest.map <<EOF
9412VERS_1 {
9413 global: sym;
9414};
9415
9416VERS_2 {
9417 global: sym;
9418} VERS_1;
9419EOF
9420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9421/* end confdefs.h. */
9422
9423int
9424main ()
9425{
9426
9427 ;
9428 return 0;
9429}
9430_ACEOF
9431if ac_fn_c_try_link "$LINENO"; then :
9432 have_ld_version_script=yes
9433else
9434 have_ld_version_script=no
9435fi
9436rm -f core conftest.err conftest.$ac_objext \
9437 conftest$ac_exeext conftest.$ac_ext
9438 else
9439 have_ld_version_script=no
9440 fi
9441 rm -f conftest.map
9442 LDFLAGS="$save_LDFLAGS"
9443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ld_version_script" >&5
9444$as_echo "$have_ld_version_script" >&6; }
9445 fi
9446 if test "$have_ld_version_script" = "yes"; then
9447 HAVE_LD_VERSION_SCRIPT_TRUE=
9448 HAVE_LD_VERSION_SCRIPT_FALSE='#'
9449else
9450 HAVE_LD_VERSION_SCRIPT_TRUE='#'
9451 HAVE_LD_VERSION_SCRIPT_FALSE=
9452fi
9453
9454
9455
cristy3ed852e2009-09-05 21:47:34 +00009456#
cristy3ed852e2009-09-05 21:47:34 +00009457# Enable run-time checking.
9458#
9459# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00009460if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009461 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
9462else
9463 enable_bounds_checking='no'
9464fi
9465
9466
9467if test "$enable_bounds_checking" = yes; then
9468
cristy8b350f62009-11-15 23:12:43 +00009469$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009470
9471fi
9472
9473#
9474# Tests for Windows
9475#
9476
9477
9478
9479GDI32_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00009480native_win32_build='no'
9481cygwin_build='no'
9482case "${host_os}" in
9483 cygwin* )
cristy3ed852e2009-09-05 21:47:34 +00009484 cygwin_build='yes'
9485 GDI32_LIBS='-lgdi32'
9486 ;;
9487 mingw* )
cristy3ed852e2009-09-05 21:47:34 +00009488 native_win32_build='yes'
9489 GDI32_LIBS='-lgdi32'
9490 ;;
9491esac
9492if test "${GDI32_LIBS}x" != 'x'; then
9493
cristy8b350f62009-11-15 23:12:43 +00009494$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009495
9496fi
9497
cristy73bd4a52010-10-05 11:24:23 +00009498 if test "${GDI32_LIBS}x" != 'x' ; then
9499 WINGDI32_DELEGATE_TRUE=
9500 WINGDI32_DELEGATE_FALSE='#'
9501else
9502 WINGDI32_DELEGATE_TRUE='#'
9503 WINGDI32_DELEGATE_FALSE=
9504fi
9505
9506 if test "${native_win32_build}" = 'yes' ; then
9507 WIN32_NATIVE_BUILD_TRUE=
9508 WIN32_NATIVE_BUILD_FALSE='#'
9509else
9510 WIN32_NATIVE_BUILD_TRUE='#'
9511 WIN32_NATIVE_BUILD_FALSE=
9512fi
9513
9514 if test "${cygwin_build}" = 'yes' ; then
9515 CYGWIN_BUILD_TRUE=
9516 CYGWIN_BUILD_FALSE='#'
9517else
9518 CYGWIN_BUILD_TRUE='#'
9519 CYGWIN_BUILD_FALSE=
9520fi
9521
9522 if test "x${CC}" = 'xcl.exe' ; then
9523 USING_CL_TRUE=
9524 USING_CL_FALSE='#'
9525else
9526 USING_CL_TRUE='#'
9527 USING_CL_FALSE=
9528fi
9529
cristy3ed852e2009-09-05 21:47:34 +00009530
9531WinPathScript="${srcdirfull}/winpath.sh"
9532
9533
9534#
9535# Compiler flags tweaks
9536#
9537if test "${GCC}" != "yes"; then
9538 case "${host}" in
9539 *-*-hpux* )
9540 # aCC: HP ANSI C++ B3910B A.03.34
9541 CFLAGS="${CFLAGS} -Wp,-H30000"
9542 if test -n "${CXXFLAGS}"; then
9543 CXXFLAGS='-AA'
9544 else
9545 CXXFLAGS="${CXXFLAGS} -AA"
9546 fi
9547 ;;
9548 *-dec-osf5.* )
9549 # Compaq alphaev68-dec-osf5.1 compiler
9550 if test -n "${CXXFLAGS}"; then
9551 CXXFLAGS='-std strict_ansi -noimplicit_include'
9552 else
9553 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
9554 fi
9555 esac
9556fi
9557
9558# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00009559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00009560$as_echo_n "checking for linker lazyload option... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009561if ${im_cv_ld_lazyload+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009562 $as_echo_n "(cached) " >&6
9563else
9564
9565im_cv_ld_lazyload='none'
9566case "${host}" in
9567 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
9568 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
9569 im_cv_ld_lazyload='-Wl,-zlazyload'
9570 fi
9571 ;;
9572esac
9573
9574fi
cristy8b350f62009-11-15 23:12:43 +00009575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00009576$as_echo "$im_cv_ld_lazyload" >&6; }
9577if test "${im_cv_ld_lazyload}" != 'none' ; then
9578 if test -z "${LDFLAGS}" ; then
9579 LDFLAGS="${im_cv_ld_lazyload}"
9580 else
9581 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
9582 fi
9583fi
9584
9585case "$host" in
cristyc37574e2013-02-16 01:04:55 +00009586 *darwin* | *-macos10*)
cristyb3b90d32013-02-16 15:44:08 +00009587 CFLAGS="${CFLAGS} -D_FORTIFY_SOURCE=0"
cristyc37574e2013-02-16 01:04:55 +00009588 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00009589if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009590 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
9591else
9592 build_osxuniversal=no
9593fi
9594
9595
cristyc37574e2013-02-16 01:04:55 +00009596 if test "${build_osxuniversal}" != no ; then
9597 if test "$enable_dependency_tracking" != no ; then
9598 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00009599Please re-run configure with these options:
9600 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00009601 " "$LINENO" 5
cristyc37574e2013-02-16 01:04:55 +00009602 fi
9603 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
9604 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
9605 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
cristy3ed852e2009-09-05 21:47:34 +00009606 fi
9607 ;;
9608esac
9609
cristy0151ae12011-10-28 16:32:29 +00009610#
9611# ARCH specific include directory
9612#
9613
cristy670aa3c2011-11-03 00:54:00 +00009614# Check whether --with-includearch-dir was given.
9615if test "${with_includearch_dir+set}" = set; then :
9616 withval=$with_includearch_dir; includearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00009617else
cristy670aa3c2011-11-03 00:54:00 +00009618 includearch_dir=$INCLUDE_DIR
cristy0151ae12011-10-28 16:32:29 +00009619fi
9620
9621
cristyd286fd72013-02-24 19:25:33 +00009622eval "eval INCLUDEARCH_DIR=$includearch_dir"
cristyac9041a2011-10-28 16:52:32 +00009623
cristy0151ae12011-10-28 16:32:29 +00009624
9625#
9626# ARCH specific configuration directory
9627#
9628
cristy670aa3c2011-11-03 00:54:00 +00009629# Check whether --with-sharearch-dir was given.
9630if test "${with_sharearch_dir+set}" = set; then :
9631 withval=$with_sharearch_dir; sharearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00009632else
cristy408ebcd2011-11-14 01:36:57 +00009633 sharearch_dir="${LIB_DIR}"
cristy0151ae12011-10-28 16:32:29 +00009634fi
9635
9636
cristy670aa3c2011-11-03 00:54:00 +00009637eval "eval SHAREARCH_DIR=$sharearch_dir"
cristyac9041a2011-10-28 16:52:32 +00009638
cristy0151ae12011-10-28 16:32:29 +00009639
cristy2ec87cc2013-02-18 17:46:50 +00009640# Path to the pkgconfig folder
9641
9642# Check whether --with-pkgconfigdir was given.
9643if test "${with_pkgconfigdir+set}" = set; then :
9644 withval=$with_pkgconfigdir; pkgconfigdir="$withval"
9645else
9646 pkgconfigdir='${libdir}/pkgconfig'
9647fi
9648
9649
9650
cristy0151ae12011-10-28 16:32:29 +00009651#
cristy3ed852e2009-09-05 21:47:34 +00009652# Enable support for threads
cristy1ae5c992013-07-30 14:55:07 +00009653#
9654# Find Posix threads library
9655#
cristy3ed852e2009-09-05 21:47:34 +00009656
9657# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00009658if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009659 withval=$with_threads; with_threads=$withval
9660else
9661 with_threads='yes'
9662fi
9663
9664
cristy1ae5c992013-07-30 14:55:07 +00009665THREAD_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00009666have_threads=no
9667if test "$with_threads" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +00009668
9669
cristy73bd4a52010-10-05 11:24:23 +00009670ac_ext=c
9671ac_cpp='$CPP $CPPFLAGS'
9672ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9673ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9674ac_compiler_gnu=$ac_cv_c_compiler_gnu
9675
9676ax_pthread_ok=no
9677
9678# We used to check for pthread.h first, but this fails if pthread.h
9679# requires special compiler flags (e.g. on True64 or Sequent).
9680# It gets checked for in the link test anyway.
9681
9682# First of all, check if the user has set any of the PTHREAD_LIBS,
9683# etcetera environment variables, and if threads linking works using
9684# them:
9685if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
9686 save_CFLAGS="$CFLAGS"
9687 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9688 save_LIBS="$LIBS"
9689 LIBS="$PTHREAD_LIBS $LIBS"
9690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
9691$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
9692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9693/* end confdefs.h. */
9694
9695/* Override any GCC internal prototype to avoid an error.
9696 Use char because int might match the return type of a GCC
9697 builtin and then its argument prototype would still apply. */
9698#ifdef __cplusplus
9699extern "C"
9700#endif
9701char pthread_join ();
9702int
9703main ()
9704{
9705return pthread_join ();
9706 ;
9707 return 0;
9708}
9709_ACEOF
9710if ac_fn_c_try_link "$LINENO"; then :
9711 ax_pthread_ok=yes
9712fi
9713rm -f core conftest.err conftest.$ac_objext \
9714 conftest$ac_exeext conftest.$ac_ext
9715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9716$as_echo "$ax_pthread_ok" >&6; }
9717 if test x"$ax_pthread_ok" = xno; then
9718 PTHREAD_LIBS=""
9719 PTHREAD_CFLAGS=""
9720 fi
9721 LIBS="$save_LIBS"
9722 CFLAGS="$save_CFLAGS"
9723fi
9724
9725# We must check for the threads library under a number of different
9726# names; the ordering is very important because some systems
9727# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
9728# libraries is broken (non-POSIX).
9729
9730# Create a list of thread flags to try. Items starting with a "-" are
9731# C compiler flags, and other items are library names, except for "none"
9732# which indicates that we try without any flags at all, and "pthread-config"
9733# which is a program returning the flags for the Pth emulation library.
9734
cristy2ec87cc2013-02-18 17:46:50 +00009735ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
cristy73bd4a52010-10-05 11:24:23 +00009736
9737# The ordering *is* (sometimes) important. Some notes on the
9738# individual items follow:
9739
9740# pthreads: AIX (must check this before -lpthread)
9741# none: in case threads are in libc; should be tried before -Kthread and
9742# other compiler flags to prevent continual compiler warnings
9743# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
9744# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
9745# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
9746# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
9747# -pthreads: Solaris/gcc
9748# -mthreads: Mingw32/gcc, Lynx/gcc
9749# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
9750# doesn't hurt to check since this sometimes defines pthreads too;
9751# also defines -D_REENTRANT)
9752# ... -mt is also the pthreads flag for HP/aCC
9753# pthread: Linux, etcetera
9754# --thread-safe: KAI C++
9755# pthread-config: use pthread-config program (for GNU Pth library)
9756
cristy2ec87cc2013-02-18 17:46:50 +00009757case ${host_os} in
9758 solaris*)
cristy73bd4a52010-10-05 11:24:23 +00009759
9760 # On Solaris (at least, for some versions), libc contains stubbed
9761 # (non-functional) versions of the pthreads routines, so link-based
9762 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
9763 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
9764 # a function called by this macro, so we could check for that, but
9765 # who knows whether they'll stub that too in a future libc.) So,
9766 # we'll just look for -pthreads and -lpthread first:
9767
9768 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
9769 ;;
9770
cristy2ec87cc2013-02-18 17:46:50 +00009771 darwin*)
cristya316db12011-10-24 00:49:45 +00009772 ax_pthread_flags="-pthread $ax_pthread_flags"
9773 ;;
cristy73bd4a52010-10-05 11:24:23 +00009774esac
9775
cristy17491be2014-06-24 01:10:53 +00009776# Clang doesn't consider unrecognized options an error unless we specify
9777# -Werror. We throw in some extra Clang-specific options to ensure that
9778# this doesn't happen for GCC, which also accepts -Werror.
9779
9780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5
9781$as_echo_n "checking if compiler needs -Werror to reject unknown flags... " >&6; }
9782save_CFLAGS="$CFLAGS"
9783ax_pthread_extra_flags="-Werror"
9784CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument"
9785cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9786/* end confdefs.h. */
9787int foo(void);
9788int
9789main ()
9790{
9791foo()
9792 ;
9793 return 0;
9794}
9795_ACEOF
9796if ac_fn_c_try_compile "$LINENO"; then :
9797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9798$as_echo "yes" >&6; }
9799else
9800 ax_pthread_extra_flags=
9801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9802$as_echo "no" >&6; }
9803fi
9804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9805CFLAGS="$save_CFLAGS"
9806
cristy73bd4a52010-10-05 11:24:23 +00009807if test x"$ax_pthread_ok" = xno; then
9808for flag in $ax_pthread_flags; do
9809
9810 case $flag in
9811 none)
9812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9813$as_echo_n "checking whether pthreads work without any flags... " >&6; }
9814 ;;
9815
9816 -*)
9817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
9818$as_echo_n "checking whether pthreads work with $flag... " >&6; }
9819 PTHREAD_CFLAGS="$flag"
9820 ;;
9821
cristya316db12011-10-24 00:49:45 +00009822 pthread-config)
9823 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00009824set dummy pthread-config; ac_word=$2
9825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9826$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009827if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009828 $as_echo_n "(cached) " >&6
9829else
9830 if test -n "$ax_pthread_config"; then
9831 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
9832else
9833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9834for as_dir in $PATH
9835do
9836 IFS=$as_save_IFS
9837 test -z "$as_dir" && as_dir=.
9838 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009839 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009840 ac_cv_prog_ax_pthread_config="yes"
9841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9842 break 2
9843 fi
9844done
9845 done
9846IFS=$as_save_IFS
9847
9848 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9849fi
9850fi
9851ax_pthread_config=$ac_cv_prog_ax_pthread_config
9852if test -n "$ax_pthread_config"; then
9853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9854$as_echo "$ax_pthread_config" >&6; }
9855else
9856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9857$as_echo "no" >&6; }
9858fi
9859
9860
cristya316db12011-10-24 00:49:45 +00009861 if test x"$ax_pthread_config" = xno; then continue; fi
9862 PTHREAD_CFLAGS="`pthread-config --cflags`"
9863 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9864 ;;
cristy73bd4a52010-10-05 11:24:23 +00009865
9866 *)
9867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
9868$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
9869 PTHREAD_LIBS="-l$flag"
9870 ;;
9871 esac
9872
9873 save_LIBS="$LIBS"
9874 save_CFLAGS="$CFLAGS"
9875 LIBS="$PTHREAD_LIBS $LIBS"
cristy17491be2014-06-24 01:10:53 +00009876 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags"
cristy73bd4a52010-10-05 11:24:23 +00009877
9878 # Check for various functions. We must include pthread.h,
9879 # since some functions may be macros. (On the Sequent, we
9880 # need a special flag -Kthread to make this header compile.)
9881 # We check for pthread_join because it is in -lpthread on IRIX
9882 # while pthread_create is in libc. We check for pthread_attr_init
9883 # due to DEC craziness with -lpthreads. We check for
9884 # pthread_cleanup_push because it is one of the few pthread
9885 # functions on Solaris that doesn't have a non-functional libc stub.
9886 # We try pthread_create on general principles.
9887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9888/* end confdefs.h. */
9889#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00009890 static void routine(void *a) { a = 0; }
9891 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00009892int
9893main ()
9894{
9895pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00009896 pthread_create(&th, 0, start_routine, 0);
9897 pthread_join(th, 0);
9898 pthread_attr_init(&attr);
9899 pthread_cleanup_push(routine, 0);
9900 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009901 ;
9902 return 0;
9903}
9904_ACEOF
9905if ac_fn_c_try_link "$LINENO"; then :
9906 ax_pthread_ok=yes
9907fi
9908rm -f core conftest.err conftest.$ac_objext \
9909 conftest$ac_exeext conftest.$ac_ext
9910
9911 LIBS="$save_LIBS"
9912 CFLAGS="$save_CFLAGS"
9913
9914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9915$as_echo "$ax_pthread_ok" >&6; }
9916 if test "x$ax_pthread_ok" = xyes; then
9917 break;
9918 fi
9919
9920 PTHREAD_LIBS=""
9921 PTHREAD_CFLAGS=""
9922done
9923fi
9924
9925# Various other checks:
9926if test "x$ax_pthread_ok" = xyes; then
9927 save_LIBS="$LIBS"
9928 LIBS="$PTHREAD_LIBS $LIBS"
9929 save_CFLAGS="$CFLAGS"
9930 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9931
9932 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00009933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00009934$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00009935 attr_name=unknown
9936 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00009938/* end confdefs.h. */
9939#include <pthread.h>
9940int
9941main ()
9942{
cristya316db12011-10-24 00:49:45 +00009943int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009944 ;
9945 return 0;
9946}
9947_ACEOF
9948if ac_fn_c_try_link "$LINENO"; then :
9949 attr_name=$attr; break
9950fi
9951rm -f core conftest.err conftest.$ac_objext \
9952 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00009953 done
cristy73bd4a52010-10-05 11:24:23 +00009954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
9955$as_echo "$attr_name" >&6; }
9956 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
9957
9958cat >>confdefs.h <<_ACEOF
9959#define PTHREAD_CREATE_JOINABLE $attr_name
9960_ACEOF
9961
9962 fi
9963
9964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
9965$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
9966 flag=no
cristy2ec87cc2013-02-18 17:46:50 +00009967 case ${host_os} in
9968 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
9969 osf* | hpux*) flag="-D_REENTRANT";;
9970 solaris*)
9971 if test "$GCC" = "yes"; then
9972 flag="-D_REENTRANT"
9973 else
cristy17491be2014-06-24 01:10:53 +00009974 # TODO: What about Clang on Solaris?
cristy2ec87cc2013-02-18 17:46:50 +00009975 flag="-mt -D_REENTRANT"
9976 fi
9977 ;;
cristy73bd4a52010-10-05 11:24:23 +00009978 esac
cristy17491be2014-06-24 01:10:53 +00009979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag" >&5
9980$as_echo "$flag" >&6; }
cristy73bd4a52010-10-05 11:24:23 +00009981 if test "x$flag" != xno; then
9982 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
9983 fi
9984
cristya316db12011-10-24 00:49:45 +00009985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9986$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9987if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9988 $as_echo_n "(cached) " >&6
9989else
9990
9991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9992/* end confdefs.h. */
cristy17491be2014-06-24 01:10:53 +00009993#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00009994int
9995main ()
9996{
9997int i = PTHREAD_PRIO_INHERIT;
9998 ;
9999 return 0;
10000}
10001_ACEOF
10002if ac_fn_c_try_link "$LINENO"; then :
10003 ax_cv_PTHREAD_PRIO_INHERIT=yes
10004else
10005 ax_cv_PTHREAD_PRIO_INHERIT=no
10006fi
10007rm -f core conftest.err conftest.$ac_objext \
10008 conftest$ac_exeext conftest.$ac_ext
10009
10010fi
10011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
10012$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
10013 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
10014
10015$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
10016
10017fi
10018
cristy73bd4a52010-10-05 11:24:23 +000010019 LIBS="$save_LIBS"
10020 CFLAGS="$save_CFLAGS"
10021
cristy23493c42013-04-11 16:04:59 +000010022 # More AIX lossage: compile with *_r variant
10023 if test "x$GCC" != xyes; then
10024 case $host_os in
10025 aix*)
10026 case "x/$CC" in #(
10027 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
10028 #handle absolute path differently from PATH based program lookup
10029 case "x$CC" in #(
10030 x/*) :
10031 if as_fn_executable_p ${CC}_r; then :
10032 PTHREAD_CC="${CC}_r"
10033fi ;; #(
10034 *) :
10035 for ac_prog in ${CC}_r
cristy73bd4a52010-10-05 11:24:23 +000010036do
10037 # Extract the first word of "$ac_prog", so it can be a program name with args.
10038set dummy $ac_prog; ac_word=$2
10039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10040$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010041if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010042 $as_echo_n "(cached) " >&6
10043else
10044 if test -n "$PTHREAD_CC"; then
10045 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
10046else
10047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10048for as_dir in $PATH
10049do
10050 IFS=$as_save_IFS
10051 test -z "$as_dir" && as_dir=.
10052 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010053 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010054 ac_cv_prog_PTHREAD_CC="$ac_prog"
10055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10056 break 2
10057 fi
10058done
10059 done
10060IFS=$as_save_IFS
10061
10062fi
10063fi
10064PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
10065if test -n "$PTHREAD_CC"; then
10066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
10067$as_echo "$PTHREAD_CC" >&6; }
10068else
10069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10070$as_echo "no" >&6; }
10071fi
10072
10073
10074 test -n "$PTHREAD_CC" && break
10075done
cristy23493c42013-04-11 16:04:59 +000010076test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
10077 ;;
10078esac ;; #(
10079 *) :
10080 ;;
10081esac
10082 ;;
10083 esac
cristya316db12011-10-24 00:49:45 +000010084 fi
cristy73bd4a52010-10-05 11:24:23 +000010085fi
10086
cristy23493c42013-04-11 16:04:59 +000010087test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
10088
cristy73bd4a52010-10-05 11:24:23 +000010089
10090
10091
10092
10093# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
10094if test x"$ax_pthread_ok" = xyes; then
10095
10096$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
10097
10098 :
10099else
10100 ax_pthread_ok=no
10101
10102fi
10103ac_ext=c
10104ac_cpp='$CPP $CPPFLAGS'
10105ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10106ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10107ac_compiler_gnu=$ac_cv_c_compiler_gnu
10108
10109
cristy7acf8fb2010-09-23 19:58:53 +000010110 if test "$ax_pthread_ok" = yes; then
cristy3ed852e2009-09-05 21:47:34 +000010111 have_threads=yes
10112 DEF_THREAD="$PTHREAD_CFLAGS"
10113 CFLAGS="$CFLAGS $DEF_THREAD"
10114 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
cristy1ae5c992013-07-30 14:55:07 +000010115 THREAD_LIBS="$PTHREAD_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000010116 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +000010117 { $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 +000010118$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
10119 CC="$PTHREAD_CC"
10120 fi
cristy55bf91c2010-09-24 00:29:41 +000010121
10122$as_echo "#define THREAD_SUPPORT 1" >>confdefs.h
10123
cristy3ed852e2009-09-05 21:47:34 +000010124 fi
10125fi
cristy1ae5c992013-07-30 14:55:07 +000010126LIBS="$LIBS $THREAD_LIBS"
10127
cristy3ed852e2009-09-05 21:47:34 +000010128
10129# Enable support for OpenMP
10130if test "$have_threads" != 'yes'; then
10131 ac_cv_prog_c_openmp=unsupported
10132fi
10133
10134 OPENMP_CFLAGS=
10135 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000010136if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010137 enableval=$enable_openmp;
10138fi
10139
10140 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +000010141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +000010142$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010143if ${ac_cv_prog_c_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010144 $as_echo_n "(cached) " >&6
10145else
cristy8b350f62009-11-15 23:12:43 +000010146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10147/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000010148
10149#ifndef _OPENMP
10150 choke me
10151#endif
10152#include <omp.h>
10153int main () { return omp_get_num_threads (); }
10154
10155_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010156if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010157 ac_cv_prog_c_openmp='none needed'
10158else
cristy8b350f62009-11-15 23:12:43 +000010159 ac_cv_prog_c_openmp='unsupported'
cristy14fefe52012-05-21 00:59:18 +000010160 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
10161 -Popenmp --openmp; do
cristy3ed852e2009-09-05 21:47:34 +000010162 ac_save_CFLAGS=$CFLAGS
10163 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000010164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10165/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000010166
10167#ifndef _OPENMP
10168 choke me
10169#endif
10170#include <omp.h>
10171int main () { return omp_get_num_threads (); }
10172
10173_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010174if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010175 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000010176fi
cristy8b350f62009-11-15 23:12:43 +000010177rm -f core conftest.err conftest.$ac_objext \
10178 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010179 CFLAGS=$ac_save_CFLAGS
10180 if test "$ac_cv_prog_c_openmp" != unsupported; then
10181 break
10182 fi
10183 done
10184fi
cristy8b350f62009-11-15 23:12:43 +000010185rm -f core conftest.err conftest.$ac_objext \
10186 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010187fi
cristy8b350f62009-11-15 23:12:43 +000010188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000010189$as_echo "$ac_cv_prog_c_openmp" >&6; }
10190 case $ac_cv_prog_c_openmp in #(
10191 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000010192 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000010193 *)
cristy8b350f62009-11-15 23:12:43 +000010194 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000010195 esac
10196 fi
10197
10198
10199CFLAGS="$OPENMP_CFLAGS $CFLAGS"
10200MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
10201
cristy391f1ce2010-09-09 17:23:28 +000010202if test "$enable_openmp" != no; then
10203 if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
10204 MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
10205 fi
10206fi
cristy3ed852e2009-09-05 21:47:34 +000010207
cristy736173a2009-09-20 21:18:22 +000010208# Enable support for OpenCL
cristy73bd4a52010-10-05 11:24:23 +000010209
10210
cristy73bd4a52010-10-05 11:24:23 +000010211ac_ext=c
10212ac_cpp='$CPP $CPPFLAGS'
10213ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10214ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10215ac_compiler_gnu=$ac_cv_c_compiler_gnu
10216
10217ax_pthread_ok=no
10218
10219# We used to check for pthread.h first, but this fails if pthread.h
10220# requires special compiler flags (e.g. on True64 or Sequent).
10221# It gets checked for in the link test anyway.
10222
10223# First of all, check if the user has set any of the PTHREAD_LIBS,
10224# etcetera environment variables, and if threads linking works using
10225# them:
10226if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
10227 save_CFLAGS="$CFLAGS"
10228 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
10229 save_LIBS="$LIBS"
10230 LIBS="$PTHREAD_LIBS $LIBS"
10231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
10232$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
10233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10234/* end confdefs.h. */
10235
10236/* Override any GCC internal prototype to avoid an error.
10237 Use char because int might match the return type of a GCC
10238 builtin and then its argument prototype would still apply. */
10239#ifdef __cplusplus
10240extern "C"
10241#endif
10242char pthread_join ();
10243int
10244main ()
10245{
10246return pthread_join ();
10247 ;
10248 return 0;
10249}
10250_ACEOF
10251if ac_fn_c_try_link "$LINENO"; then :
10252 ax_pthread_ok=yes
10253fi
10254rm -f core conftest.err conftest.$ac_objext \
10255 conftest$ac_exeext conftest.$ac_ext
10256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
10257$as_echo "$ax_pthread_ok" >&6; }
10258 if test x"$ax_pthread_ok" = xno; then
10259 PTHREAD_LIBS=""
10260 PTHREAD_CFLAGS=""
10261 fi
10262 LIBS="$save_LIBS"
10263 CFLAGS="$save_CFLAGS"
10264fi
10265
10266# We must check for the threads library under a number of different
10267# names; the ordering is very important because some systems
10268# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
10269# libraries is broken (non-POSIX).
10270
10271# Create a list of thread flags to try. Items starting with a "-" are
10272# C compiler flags, and other items are library names, except for "none"
10273# which indicates that we try without any flags at all, and "pthread-config"
10274# which is a program returning the flags for the Pth emulation library.
10275
cristy2ec87cc2013-02-18 17:46:50 +000010276ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
cristy73bd4a52010-10-05 11:24:23 +000010277
10278# The ordering *is* (sometimes) important. Some notes on the
10279# individual items follow:
10280
10281# pthreads: AIX (must check this before -lpthread)
10282# none: in case threads are in libc; should be tried before -Kthread and
10283# other compiler flags to prevent continual compiler warnings
10284# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
10285# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
10286# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
10287# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
10288# -pthreads: Solaris/gcc
10289# -mthreads: Mingw32/gcc, Lynx/gcc
10290# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
10291# doesn't hurt to check since this sometimes defines pthreads too;
10292# also defines -D_REENTRANT)
10293# ... -mt is also the pthreads flag for HP/aCC
10294# pthread: Linux, etcetera
10295# --thread-safe: KAI C++
10296# pthread-config: use pthread-config program (for GNU Pth library)
10297
cristy2ec87cc2013-02-18 17:46:50 +000010298case ${host_os} in
10299 solaris*)
cristy73bd4a52010-10-05 11:24:23 +000010300
10301 # On Solaris (at least, for some versions), libc contains stubbed
10302 # (non-functional) versions of the pthreads routines, so link-based
10303 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
10304 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
10305 # a function called by this macro, so we could check for that, but
10306 # who knows whether they'll stub that too in a future libc.) So,
10307 # we'll just look for -pthreads and -lpthread first:
10308
10309 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
10310 ;;
10311
cristy2ec87cc2013-02-18 17:46:50 +000010312 darwin*)
cristya316db12011-10-24 00:49:45 +000010313 ax_pthread_flags="-pthread $ax_pthread_flags"
10314 ;;
cristy73bd4a52010-10-05 11:24:23 +000010315esac
10316
cristy17491be2014-06-24 01:10:53 +000010317# Clang doesn't consider unrecognized options an error unless we specify
10318# -Werror. We throw in some extra Clang-specific options to ensure that
10319# this doesn't happen for GCC, which also accepts -Werror.
10320
10321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5
10322$as_echo_n "checking if compiler needs -Werror to reject unknown flags... " >&6; }
10323save_CFLAGS="$CFLAGS"
10324ax_pthread_extra_flags="-Werror"
10325CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument"
10326cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10327/* end confdefs.h. */
10328int foo(void);
10329int
10330main ()
10331{
10332foo()
10333 ;
10334 return 0;
10335}
10336_ACEOF
10337if ac_fn_c_try_compile "$LINENO"; then :
10338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10339$as_echo "yes" >&6; }
10340else
10341 ax_pthread_extra_flags=
10342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10343$as_echo "no" >&6; }
10344fi
10345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10346CFLAGS="$save_CFLAGS"
10347
cristy73bd4a52010-10-05 11:24:23 +000010348if test x"$ax_pthread_ok" = xno; then
10349for flag in $ax_pthread_flags; do
10350
10351 case $flag in
10352 none)
10353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
10354$as_echo_n "checking whether pthreads work without any flags... " >&6; }
10355 ;;
10356
10357 -*)
10358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
10359$as_echo_n "checking whether pthreads work with $flag... " >&6; }
10360 PTHREAD_CFLAGS="$flag"
10361 ;;
10362
cristya316db12011-10-24 00:49:45 +000010363 pthread-config)
10364 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +000010365set dummy pthread-config; ac_word=$2
10366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10367$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010368if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010369 $as_echo_n "(cached) " >&6
10370else
10371 if test -n "$ax_pthread_config"; then
10372 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
10373else
10374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10375for as_dir in $PATH
10376do
10377 IFS=$as_save_IFS
10378 test -z "$as_dir" && as_dir=.
10379 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010380 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010381 ac_cv_prog_ax_pthread_config="yes"
10382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10383 break 2
10384 fi
10385done
10386 done
10387IFS=$as_save_IFS
10388
10389 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
10390fi
10391fi
10392ax_pthread_config=$ac_cv_prog_ax_pthread_config
10393if test -n "$ax_pthread_config"; then
10394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
10395$as_echo "$ax_pthread_config" >&6; }
10396else
10397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10398$as_echo "no" >&6; }
10399fi
10400
10401
cristya316db12011-10-24 00:49:45 +000010402 if test x"$ax_pthread_config" = xno; then continue; fi
10403 PTHREAD_CFLAGS="`pthread-config --cflags`"
10404 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
10405 ;;
cristy73bd4a52010-10-05 11:24:23 +000010406
10407 *)
10408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
10409$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
10410 PTHREAD_LIBS="-l$flag"
10411 ;;
10412 esac
10413
10414 save_LIBS="$LIBS"
10415 save_CFLAGS="$CFLAGS"
10416 LIBS="$PTHREAD_LIBS $LIBS"
cristy17491be2014-06-24 01:10:53 +000010417 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags"
cristy73bd4a52010-10-05 11:24:23 +000010418
10419 # Check for various functions. We must include pthread.h,
10420 # since some functions may be macros. (On the Sequent, we
10421 # need a special flag -Kthread to make this header compile.)
10422 # We check for pthread_join because it is in -lpthread on IRIX
10423 # while pthread_create is in libc. We check for pthread_attr_init
10424 # due to DEC craziness with -lpthreads. We check for
10425 # pthread_cleanup_push because it is one of the few pthread
10426 # functions on Solaris that doesn't have a non-functional libc stub.
10427 # We try pthread_create on general principles.
10428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10429/* end confdefs.h. */
10430#include <pthread.h>
cristya316db12011-10-24 00:49:45 +000010431 static void routine(void *a) { a = 0; }
10432 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +000010433int
10434main ()
10435{
10436pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +000010437 pthread_create(&th, 0, start_routine, 0);
10438 pthread_join(th, 0);
10439 pthread_attr_init(&attr);
10440 pthread_cleanup_push(routine, 0);
10441 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +000010442 ;
10443 return 0;
10444}
10445_ACEOF
10446if ac_fn_c_try_link "$LINENO"; then :
10447 ax_pthread_ok=yes
10448fi
10449rm -f core conftest.err conftest.$ac_objext \
10450 conftest$ac_exeext conftest.$ac_ext
10451
10452 LIBS="$save_LIBS"
10453 CFLAGS="$save_CFLAGS"
10454
10455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
10456$as_echo "$ax_pthread_ok" >&6; }
10457 if test "x$ax_pthread_ok" = xyes; then
10458 break;
10459 fi
10460
10461 PTHREAD_LIBS=""
10462 PTHREAD_CFLAGS=""
10463done
10464fi
10465
10466# Various other checks:
10467if test "x$ax_pthread_ok" = xyes; then
10468 save_LIBS="$LIBS"
10469 LIBS="$PTHREAD_LIBS $LIBS"
10470 save_CFLAGS="$CFLAGS"
10471 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
10472
10473 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +000010474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +000010475$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +000010476 attr_name=unknown
10477 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
10478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000010479/* end confdefs.h. */
10480#include <pthread.h>
10481int
10482main ()
10483{
cristya316db12011-10-24 00:49:45 +000010484int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +000010485 ;
10486 return 0;
10487}
10488_ACEOF
10489if ac_fn_c_try_link "$LINENO"; then :
10490 attr_name=$attr; break
10491fi
10492rm -f core conftest.err conftest.$ac_objext \
10493 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +000010494 done
cristy73bd4a52010-10-05 11:24:23 +000010495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
10496$as_echo "$attr_name" >&6; }
10497 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
10498
10499cat >>confdefs.h <<_ACEOF
10500#define PTHREAD_CREATE_JOINABLE $attr_name
10501_ACEOF
10502
10503 fi
10504
10505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
10506$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
10507 flag=no
cristy2ec87cc2013-02-18 17:46:50 +000010508 case ${host_os} in
10509 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
10510 osf* | hpux*) flag="-D_REENTRANT";;
10511 solaris*)
10512 if test "$GCC" = "yes"; then
10513 flag="-D_REENTRANT"
10514 else
cristy17491be2014-06-24 01:10:53 +000010515 # TODO: What about Clang on Solaris?
cristy2ec87cc2013-02-18 17:46:50 +000010516 flag="-mt -D_REENTRANT"
10517 fi
10518 ;;
cristy73bd4a52010-10-05 11:24:23 +000010519 esac
cristy17491be2014-06-24 01:10:53 +000010520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag" >&5
10521$as_echo "$flag" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000010522 if test "x$flag" != xno; then
10523 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
10524 fi
10525
cristya316db12011-10-24 00:49:45 +000010526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
10527$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
10528if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
10529 $as_echo_n "(cached) " >&6
10530else
10531
10532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10533/* end confdefs.h. */
cristy17491be2014-06-24 01:10:53 +000010534#include <pthread.h>
cristya316db12011-10-24 00:49:45 +000010535int
10536main ()
10537{
10538int i = PTHREAD_PRIO_INHERIT;
10539 ;
10540 return 0;
10541}
10542_ACEOF
10543if ac_fn_c_try_link "$LINENO"; then :
10544 ax_cv_PTHREAD_PRIO_INHERIT=yes
10545else
10546 ax_cv_PTHREAD_PRIO_INHERIT=no
10547fi
10548rm -f core conftest.err conftest.$ac_objext \
10549 conftest$ac_exeext conftest.$ac_ext
10550
10551fi
10552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
10553$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
10554 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
10555
10556$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
10557
10558fi
10559
cristy73bd4a52010-10-05 11:24:23 +000010560 LIBS="$save_LIBS"
10561 CFLAGS="$save_CFLAGS"
10562
cristy23493c42013-04-11 16:04:59 +000010563 # More AIX lossage: compile with *_r variant
10564 if test "x$GCC" != xyes; then
10565 case $host_os in
10566 aix*)
10567 case "x/$CC" in #(
10568 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
10569 #handle absolute path differently from PATH based program lookup
10570 case "x$CC" in #(
10571 x/*) :
10572 if as_fn_executable_p ${CC}_r; then :
10573 PTHREAD_CC="${CC}_r"
10574fi ;; #(
10575 *) :
10576 for ac_prog in ${CC}_r
cristy73bd4a52010-10-05 11:24:23 +000010577do
10578 # Extract the first word of "$ac_prog", so it can be a program name with args.
10579set dummy $ac_prog; ac_word=$2
10580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10581$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010582if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010583 $as_echo_n "(cached) " >&6
10584else
10585 if test -n "$PTHREAD_CC"; then
10586 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
10587else
10588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10589for as_dir in $PATH
10590do
10591 IFS=$as_save_IFS
10592 test -z "$as_dir" && as_dir=.
10593 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010595 ac_cv_prog_PTHREAD_CC="$ac_prog"
10596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10597 break 2
10598 fi
10599done
10600 done
10601IFS=$as_save_IFS
10602
10603fi
10604fi
10605PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
10606if test -n "$PTHREAD_CC"; then
10607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
10608$as_echo "$PTHREAD_CC" >&6; }
10609else
10610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10611$as_echo "no" >&6; }
10612fi
10613
10614
10615 test -n "$PTHREAD_CC" && break
10616done
cristy23493c42013-04-11 16:04:59 +000010617test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
10618 ;;
10619esac ;; #(
10620 *) :
10621 ;;
10622esac
10623 ;;
10624 esac
cristya316db12011-10-24 00:49:45 +000010625 fi
cristy73bd4a52010-10-05 11:24:23 +000010626fi
10627
cristy23493c42013-04-11 16:04:59 +000010628test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
10629
cristy73bd4a52010-10-05 11:24:23 +000010630
10631
10632
10633
10634# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
10635if test x"$ax_pthread_ok" = xyes; then
10636
10637$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
10638
10639 :
10640else
10641 ax_pthread_ok=no
10642
10643fi
10644ac_ext=c
10645ac_cpp='$CPP $CPPFLAGS'
10646ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10647ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10648ac_compiler_gnu=$ac_cv_c_compiler_gnu
10649
10650
10651
10652# Check whether --enable-opencl was given.
10653if test "${enable_opencl+set}" = set; then :
cristy48794642012-09-02 15:19:08 +000010654 enableval=$enable_opencl; enable_opencl=$enableval
cristy73bd4a52010-10-05 11:24:23 +000010655else
cristy48794642012-09-02 15:19:08 +000010656 enable_opencl='no'
cristy73bd4a52010-10-05 11:24:23 +000010657fi
10658
10659
cristy48794642012-09-02 15:19:08 +000010660if test "$enable_opencl" = 'yes'; then
cristy73bd4a52010-10-05 11:24:23 +000010661 ac_ext=c
10662ac_cpp='$CPP $CPPFLAGS'
10663ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10664ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10665ac_compiler_gnu=$ac_cv_c_compiler_gnu
10666
cristy75314cc2012-09-15 23:08:29 +000010667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
10668$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
10669if ${ax_cv_c_compiler_ms+:} false; then :
10670 $as_echo_n "(cached) " >&6
10671else
10672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10673/* end confdefs.h. */
10674
10675int
10676main ()
10677{
10678#ifndef _MSC_VER
10679 choke me
10680#endif
10681
10682 ;
10683 return 0;
10684}
10685_ACEOF
10686if ac_fn_c_try_compile "$LINENO"; then :
10687 ax_compiler_ms=yes
10688else
10689 ax_compiler_ms=no
10690fi
10691rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10692ax_cv_c_compiler_ms=$ax_compiler_ms
10693
10694fi
10695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
10696$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000010697 if test X$ax_compiler_ms = Xno; then :
10698 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
10699fi
10700
10701 ax_save_CPPFLAGS=$CPPFLAGS
cristyfdc7d122013-08-17 20:46:45 +000010702 ax_save_CL_CFLAGS=$CL_CFLAGS
10703
10704 found_opencl_header='no'
cristy73bd4a52010-10-05 11:24:23 +000010705 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
10706 for ac_header in CL/cl.h OpenCL/cl.h
10707do :
10708 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10709ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000010710if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000010711 cat >>confdefs.h <<_ACEOF
10712#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10713_ACEOF
cristyfdc7d122013-08-17 20:46:45 +000010714 found_opencl_header='yes'
10715 break;
10716else
10717 found_opencl_header='no'
cristy73bd4a52010-10-05 11:24:23 +000010718fi
10719
10720done
10721
cristyfdc7d122013-08-17 20:46:45 +000010722
10723 if test X$found_opencl_header = Xno; then :
10724 { ac_cv_header_CL_cl_h=; unset ac_cv_header_CL_cl_h;}
10725 { ac_cv_header_OpenCL_cl_h=; unset ac_cv_header_OpenCL_cl_h;}
10726 CL_CFLAGS="-I$AMDAPPSDKROOT/include"
10727 CPPFLAGS="$ax_save_CPPFLAGS $CL_CFLAGS"
10728 for ac_header in CL/cl.h OpenCL/cl.h
10729do :
10730 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10731ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10732if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10733 cat >>confdefs.h <<_ACEOF
10734#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10735_ACEOF
10736 found_opencl_header='yes'
10737 break;
10738else
10739 found_opencl_header='no'
10740fi
10741
10742done
10743
10744
10745fi
10746
10747 CPPFLAGS="$ax_save_CPPFLAGS"
cristy73bd4a52010-10-05 11:24:23 +000010748
10749 for ac_header in windows.h
10750do :
10751 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000010752if test "x$ac_cv_header_windows_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000010753 cat >>confdefs.h <<_ACEOF
10754#define HAVE_WINDOWS_H 1
10755_ACEOF
10756
10757fi
10758
10759done
10760
10761
10762
10763
10764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
10765$as_echo_n "checking for OpenCL library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010766if ${ax_cv_check_cl_libcl+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010767 $as_echo_n "(cached) " >&6
10768else
10769 ax_cv_check_cl_libcl=no
10770 case $host_cpu in
cristyfdc7d122013-08-17 20:46:45 +000010771 x86_64) ax_check_cl_libdir=lib64
10772 ax_check_cl_amd_libdir=x86_64
10773 ;;
10774 *) ax_check_cl_libdir=lib
10775 ax_check_cl_amd_libdir=x86
10776 ;;
cristy73bd4a52010-10-05 11:24:23 +000010777 esac
10778 ax_save_CPPFLAGS=$CPPFLAGS
10779 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
10780 ax_save_LIBS=$LIBS
10781 LIBS=""
10782 ax_check_libs="-lOpenCL -lCL -lclparser"
10783 for ax_lib in $ax_check_libs; do
10784 if test X$ax_compiler_ms = Xyes; then :
10785 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
10786else
10787 ax_try_lib=$ax_lib
10788fi
10789 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
10790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10791/* end confdefs.h. */
10792
10793 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10794 # include <windows.h>
10795 # endif
10796 # ifdef HAVE_CL_CL_H
10797 # include <CL/cl.h>
10798 # elif defined(HAVE_OPENCL_CL_H)
10799 # include <OpenCL/cl.h>
10800 # else
10801 # error no CL.h
10802 # endif
10803int
10804main ()
10805{
10806clCreateContextFromType(0,0,0,0,0)
10807 ;
10808 return 0;
10809}
10810_ACEOF
10811if ac_fn_c_try_link "$LINENO"; then :
10812 ax_cv_check_cl_libcl=$ax_try_lib; break
10813else
10814 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"
10815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10816/* end confdefs.h. */
10817
10818 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10819 # include <windows.h>
10820 # endif
10821 # ifdef HAVE_CL_CL_H
10822 # include <CL/cl.h>
10823 # elif defined(HAVE_OPENCL_CL_H)
10824 # include <OpenCL/cl.h>
10825 # else
10826 # error no CL.h
10827 # endif
10828int
10829main ()
10830{
10831clCreateContextFromType(0,0,0,0,0)
10832 ;
10833 return 0;
10834}
10835_ACEOF
10836if ac_fn_c_try_link "$LINENO"; then :
10837 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
10838else
cristy78c5a0c2010-12-04 20:00:59 +000010839 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 +000010840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10841/* end confdefs.h. */
10842
10843 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10844 # include <windows.h>
10845 # endif
10846 # ifdef HAVE_CL_CL_H
10847 # include <CL/cl.h>
10848 # elif defined(HAVE_OPENCL_CL_H)
10849 # include <OpenCL/cl.h>
10850 # else
10851 # error no CL.h
10852 # endif
10853int
10854main ()
10855{
10856clCreateContextFromType(0,0,0,0,0)
10857 ;
10858 return 0;
10859}
10860_ACEOF
10861if ac_fn_c_try_link "$LINENO"; then :
10862 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
cristyfdc7d122013-08-17 20:46:45 +000010863else
10864 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"
10865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10866/* end confdefs.h. */
10867
10868 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10869 # include <windows.h>
10870 # endif
10871 # ifdef HAVE_CL_CL_H
10872 # include <CL/cl.h>
10873 # elif defined(HAVE_OPENCL_CL_H)
10874 # include <OpenCL/cl.h>
10875 # else
10876 # error no CL.h
10877 # endif
10878int
10879main ()
10880{
10881clCreateContextFromType(0,0,0,0,0)
10882 ;
10883 return 0;
10884}
10885_ACEOF
10886if ac_fn_c_try_link "$LINENO"; then :
10887 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_amd_flags"; break
10888
10889fi
10890rm -f core conftest.err conftest.$ac_objext \
10891 conftest$ac_exeext conftest.$ac_ext
10892
10893
cristy73bd4a52010-10-05 11:24:23 +000010894fi
10895rm -f core conftest.err conftest.$ac_objext \
10896 conftest$ac_exeext conftest.$ac_ext
10897fi
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
10903 done
10904
cristyc3f8b8e2011-12-22 14:55:16 +000010905 if test "X$ax_cv_check_cl_libcl" = Xno; then :
cristy78c5a0c2010-12-04 20:00:59 +000010906 LIBS='-Wl,-framework,OpenCL'
cristy73bd4a52010-10-05 11:24:23 +000010907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10908/* end confdefs.h. */
10909
10910 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10911 # include <windows.h>
10912 # endif
10913 # ifdef HAVE_CL_CL_H
10914 # include <CL/cl.h>
10915 # elif defined(HAVE_OPENCL_CL_H)
10916 # include <OpenCL/cl.h>
10917 # else
10918 # error no CL.h
10919 # endif
10920int
10921main ()
10922{
10923clCreateContextFromType(0,0,0,0,0)
10924 ;
10925 return 0;
10926}
10927_ACEOF
10928if ac_fn_c_try_link "$LINENO"; then :
10929 ax_cv_check_cl_libcl=$LIBS
10930fi
10931rm -f core conftest.err conftest.$ac_objext \
10932 conftest$ac_exeext conftest.$ac_ext
10933fi
10934
10935 LIBS=$ax_save_LIBS
10936 CPPFLAGS=$ax_save_CPPFLAGS
10937fi
10938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
10939$as_echo "$ax_cv_check_cl_libcl" >&6; }
10940
10941 if test "X$ax_cv_check_cl_libcl" = Xno; then :
10942 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
10943else
10944 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
10945$as_echo "#define _OPENCL 1" >>confdefs.h
10946
10947fi
10948 ac_ext=c
10949ac_cpp='$CPP $CPPFLAGS'
10950ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10951ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10952ac_compiler_gnu=$ac_cv_c_compiler_gnu
10953
10954fi
10955
10956
10957
cristy0c832c62014-03-07 22:21:04 +000010958#remove static link on Linux
10959CL_LIBS=`echo $CL_LIBS | $SED -e 's/-lOpenCL //'`
10960
cristy73bd4a52010-10-05 11:24:23 +000010961
cristyc7083c12009-10-14 03:16:55 +000010962CFLAGS="$CL_CFLAGS $CFLAGS"
cristyfdc7d122013-08-17 20:46:45 +000010963CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
cristyc7083c12009-10-14 03:16:55 +000010964LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +000010965
cristy391f1ce2010-09-09 17:23:28 +000010966if test "$enable_opencl" != no; then
cristy6e3607c2011-09-13 13:59:17 +000010967 if test "X$ax_cv_check_cl_libcl" != Xno; then :
cristy391f1ce2010-09-09 17:23:28 +000010968 MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
10969 fi
cristyfd9dcd42010-08-08 18:07:02 +000010970fi
cristy2e8b51d2009-10-17 18:26:15 +000010971
cristy3ed852e2009-09-05 21:47:34 +000010972########
10973#
10974# Check for large file support
10975#
10976########
10977# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +000010978if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010979 enableval=$enable_largefile;
10980fi
10981
10982if test "$enable_largefile" != no; then
10983
cristy8b350f62009-11-15 23:12:43 +000010984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010985$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010986if ${ac_cv_sys_largefile_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010987 $as_echo_n "(cached) " >&6
10988else
10989 ac_cv_sys_largefile_CC=no
10990 if test "$GCC" != yes; then
10991 ac_save_CC=$CC
10992 while :; do
10993 # IRIX 6.2 and later do not support large files by default,
10994 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +000010995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010996/* end confdefs.h. */
10997#include <sys/types.h>
10998 /* Check that off_t can represent 2**63 - 1 correctly.
10999 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11000 since some C++ compilers masquerading as C compilers
11001 incorrectly reject 9223372036854775807. */
11002#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11003 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11004 && LARGE_OFF_T % 2147483647 == 1)
11005 ? 1 : -1];
11006int
11007main ()
11008{
11009
11010 ;
11011 return 0;
11012}
11013_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011014 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011015 break
cristy3ed852e2009-09-05 21:47:34 +000011016fi
cristy3ed852e2009-09-05 21:47:34 +000011017rm -f core conftest.err conftest.$ac_objext
11018 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +000011019 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011020 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +000011021fi
cristy3ed852e2009-09-05 21:47:34 +000011022rm -f core conftest.err conftest.$ac_objext
11023 break
11024 done
11025 CC=$ac_save_CC
11026 rm -f conftest.$ac_ext
11027 fi
11028fi
cristy8b350f62009-11-15 23:12:43 +000011029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +000011030$as_echo "$ac_cv_sys_largefile_CC" >&6; }
11031 if test "$ac_cv_sys_largefile_CC" != no; then
11032 CC=$CC$ac_cv_sys_largefile_CC
11033 fi
11034
cristy8b350f62009-11-15 23:12:43 +000011035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000011036$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011037if ${ac_cv_sys_file_offset_bits+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000011038 $as_echo_n "(cached) " >&6
11039else
11040 while :; do
cristy8b350f62009-11-15 23:12:43 +000011041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011042/* end confdefs.h. */
11043#include <sys/types.h>
11044 /* Check that off_t can represent 2**63 - 1 correctly.
11045 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11046 since some C++ compilers masquerading as C compilers
11047 incorrectly reject 9223372036854775807. */
11048#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11049 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11050 && LARGE_OFF_T % 2147483647 == 1)
11051 ? 1 : -1];
11052int
11053main ()
11054{
11055
11056 ;
11057 return 0;
11058}
11059_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011060if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011061 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +000011062fi
cristy3ed852e2009-09-05 21:47:34 +000011063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000011064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011065/* end confdefs.h. */
11066#define _FILE_OFFSET_BITS 64
11067#include <sys/types.h>
11068 /* Check that off_t can represent 2**63 - 1 correctly.
11069 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11070 since some C++ compilers masquerading as C compilers
11071 incorrectly reject 9223372036854775807. */
11072#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11073 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11074 && LARGE_OFF_T % 2147483647 == 1)
11075 ? 1 : -1];
11076int
11077main ()
11078{
11079
11080 ;
11081 return 0;
11082}
11083_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011084if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011085 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +000011086fi
cristy3ed852e2009-09-05 21:47:34 +000011087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11088 ac_cv_sys_file_offset_bits=unknown
11089 break
11090done
11091fi
cristy8b350f62009-11-15 23:12:43 +000011092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +000011093$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
11094case $ac_cv_sys_file_offset_bits in #(
11095 no | unknown) ;;
11096 *)
11097cat >>confdefs.h <<_ACEOF
11098#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
11099_ACEOF
11100;;
11101esac
11102rm -rf conftest*
11103 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +000011104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000011105$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011106if ${ac_cv_sys_large_files+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000011107 $as_echo_n "(cached) " >&6
11108else
11109 while :; do
cristy8b350f62009-11-15 23:12:43 +000011110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011111/* end confdefs.h. */
11112#include <sys/types.h>
11113 /* Check that off_t can represent 2**63 - 1 correctly.
11114 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11115 since some C++ compilers masquerading as C compilers
11116 incorrectly reject 9223372036854775807. */
11117#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11118 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11119 && LARGE_OFF_T % 2147483647 == 1)
11120 ? 1 : -1];
11121int
11122main ()
11123{
11124
11125 ;
11126 return 0;
11127}
11128_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011129if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011130 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +000011131fi
cristy3ed852e2009-09-05 21:47:34 +000011132rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000011133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011134/* end confdefs.h. */
11135#define _LARGE_FILES 1
11136#include <sys/types.h>
11137 /* Check that off_t can represent 2**63 - 1 correctly.
11138 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11139 since some C++ compilers masquerading as C compilers
11140 incorrectly reject 9223372036854775807. */
11141#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11142 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11143 && LARGE_OFF_T % 2147483647 == 1)
11144 ? 1 : -1];
11145int
11146main ()
11147{
11148
11149 ;
11150 return 0;
11151}
11152_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011153if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011154 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +000011155fi
cristy3ed852e2009-09-05 21:47:34 +000011156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11157 ac_cv_sys_large_files=unknown
11158 break
11159done
11160fi
cristy8b350f62009-11-15 23:12:43 +000011161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +000011162$as_echo "$ac_cv_sys_large_files" >&6; }
11163case $ac_cv_sys_large_files in #(
11164 no | unknown) ;;
11165 *)
11166cat >>confdefs.h <<_ACEOF
11167#define _LARGE_FILES $ac_cv_sys_large_files
11168_ACEOF
11169;;
11170esac
11171rm -rf conftest*
11172 fi
cristy14fefe52012-05-21 00:59:18 +000011173
11174
cristy3ed852e2009-09-05 21:47:34 +000011175fi
11176
cristy8b350f62009-11-15 23:12:43 +000011177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000011178$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011179if ${ac_cv_sys_largefile_source+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000011180 $as_echo_n "(cached) " >&6
11181else
11182 while :; do
cristy8b350f62009-11-15 23:12:43 +000011183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011184/* end confdefs.h. */
11185#include <sys/types.h> /* for off_t */
11186 #include <stdio.h>
11187int
11188main ()
11189{
11190int (*fp) (FILE *, off_t, int) = fseeko;
11191 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
11192 ;
11193 return 0;
11194}
11195_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011196if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011197 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +000011198fi
cristy8b350f62009-11-15 23:12:43 +000011199rm -f core conftest.err conftest.$ac_objext \
11200 conftest$ac_exeext conftest.$ac_ext
11201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011202/* end confdefs.h. */
11203#define _LARGEFILE_SOURCE 1
11204#include <sys/types.h> /* for off_t */
11205 #include <stdio.h>
11206int
11207main ()
11208{
11209int (*fp) (FILE *, off_t, int) = fseeko;
11210 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
11211 ;
11212 return 0;
11213}
11214_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011215if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011216 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +000011217fi
cristy8b350f62009-11-15 23:12:43 +000011218rm -f core conftest.err conftest.$ac_objext \
11219 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011220 ac_cv_sys_largefile_source=unknown
11221 break
11222done
11223fi
cristy8b350f62009-11-15 23:12:43 +000011224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +000011225$as_echo "$ac_cv_sys_largefile_source" >&6; }
11226case $ac_cv_sys_largefile_source in #(
11227 no | unknown) ;;
11228 *)
11229cat >>confdefs.h <<_ACEOF
11230#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
11231_ACEOF
11232;;
11233esac
11234rm -rf conftest*
11235
11236# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
11237# in glibc 2.1.3, but that breaks too many other things.
11238# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
11239if test $ac_cv_sys_largefile_source != unknown; then
11240
cristy8b350f62009-11-15 23:12:43 +000011241$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000011242
11243fi
11244
11245LFS_CPPFLAGS=''
11246if test "$enable_largefile" != no; then
cristyc1e0cc12011-09-21 16:41:16 +000011247 case $ac_cv_sys_file_offset_bits in
11248 no)
11249 # nothing to do here as the host supports LFS fine
11250 ;;
11251 unknown)
cristy8b350f62009-11-15 23:12:43 +000011252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +000011253$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011254 if test "$cross_compiling" = yes; then :
11255 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000011256$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000011257as_fn_error $? "cannot run test program while cross compiling
11258See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000011259else
cristy8b350f62009-11-15 23:12:43 +000011260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11261/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000011262#include <unistd.h>
11263 main () {
11264 exit(!(sizeof(off_t) == 8));
11265 }
cristyda16f162011-02-19 23:52:17 +000011266int
11267main ()
11268{
11269
11270 ;
11271 return 0;
11272}
cristy3ed852e2009-09-05 21:47:34 +000011273_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011274if ac_fn_c_try_run "$LINENO"; then :
11275 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000011276
cristyad38abe2012-12-23 23:03:21 +000011277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11278$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000011279else
cristyad38abe2012-12-23 23:03:21 +000011280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11281$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000011282fi
cristy8b350f62009-11-15 23:12:43 +000011283rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11284 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011285fi
11286
cristyc1e0cc12011-09-21 16:41:16 +000011287 ;;
11288 *)
11289 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
11290 ;;
11291 esac
cristy3ed852e2009-09-05 21:47:34 +000011292 if test "$ac_cv_sys_large_files" != 'no'; then
11293 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
11294 fi
11295 if test "$ac_cv_sys_largefile_source" != 'no'; then
11296 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
11297 fi
11298fi
11299
11300
cristy3ed852e2009-09-05 21:47:34 +000011301# Configure libtool
cristy73bd4a52010-10-05 11:24:23 +000011302enable_dlopen=yes
11303
11304
11305
11306case `pwd` in
11307 *\ * | *\ *)
11308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11309$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11310esac
11311
11312
11313
cristy99bd5232011-12-07 14:38:20 +000011314macro_version='2.4.2'
11315macro_revision='1.3337'
cristy73bd4a52010-10-05 11:24:23 +000011316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329ltmain="$ac_aux_dir/ltmain.sh"
11330
cristy0c60a692010-11-04 01:09:47 +000011331# Backslashify metacharacters that are still active within
11332# double-quoted strings.
11333sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11334
11335# Same as above, but do not quote variable references.
11336double_quote_subst='s/\(["`\\]\)/\\\1/g'
11337
11338# Sed substitution to delay expansion of an escaped shell variable in a
11339# double_quote_subst'ed string.
11340delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11341
11342# Sed substitution to delay expansion of an escaped single quote.
11343delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11344
11345# Sed substitution to avoid accidental globbing in evaled expressions
11346no_glob_subst='s/\*/\\\*/g'
11347
cristy73bd4a52010-10-05 11:24:23 +000011348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11349$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011350if ${lt_cv_path_NM+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011351 $as_echo_n "(cached) " >&6
11352else
11353 if test -n "$NM"; then
11354 # Let the user override the test.
11355 lt_cv_path_NM="$NM"
11356else
11357 lt_nm_to_check="${ac_tool_prefix}nm"
11358 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11359 lt_nm_to_check="$lt_nm_to_check nm"
11360 fi
11361 for lt_tmp_nm in $lt_nm_to_check; do
11362 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11363 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11364 IFS="$lt_save_ifs"
11365 test -z "$ac_dir" && ac_dir=.
11366 tmp_nm="$ac_dir/$lt_tmp_nm"
11367 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
11368 # Check to see if the nm accepts a BSD-compat flag.
11369 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
11370 # nm: unknown option "B" ignored
11371 # Tru64's nm complains that /dev/null is an invalid object file
11372 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
11373 */dev/null* | *'Invalid file or object type'*)
11374 lt_cv_path_NM="$tmp_nm -B"
11375 break
11376 ;;
11377 *)
11378 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11379 */dev/null*)
11380 lt_cv_path_NM="$tmp_nm -p"
11381 break
11382 ;;
11383 *)
11384 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11385 continue # so that we can try to find one that supports BSD flags
11386 ;;
11387 esac
11388 ;;
11389 esac
11390 fi
11391 done
11392 IFS="$lt_save_ifs"
11393 done
11394 : ${lt_cv_path_NM=no}
11395fi
11396fi
11397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11398$as_echo "$lt_cv_path_NM" >&6; }
11399if test "$lt_cv_path_NM" != "no"; then
11400 NM="$lt_cv_path_NM"
11401else
11402 # Didn't find any BSD compatible name lister, look for dumpbin.
cristy0c60a692010-11-04 01:09:47 +000011403 if test -n "$DUMPBIN"; then :
11404 # Let the user override the test.
11405 else
11406 if test -n "$ac_tool_prefix"; then
11407 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000011408 do
11409 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11410set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11412$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011413if ${ac_cv_prog_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011414 $as_echo_n "(cached) " >&6
11415else
11416 if test -n "$DUMPBIN"; then
11417 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11418else
11419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11420for as_dir in $PATH
11421do
11422 IFS=$as_save_IFS
11423 test -z "$as_dir" && as_dir=.
11424 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011425 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011426 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11428 break 2
11429 fi
11430done
11431 done
11432IFS=$as_save_IFS
11433
11434fi
11435fi
11436DUMPBIN=$ac_cv_prog_DUMPBIN
11437if test -n "$DUMPBIN"; then
11438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11439$as_echo "$DUMPBIN" >&6; }
11440else
11441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11442$as_echo "no" >&6; }
11443fi
11444
11445
11446 test -n "$DUMPBIN" && break
11447 done
11448fi
11449if test -z "$DUMPBIN"; then
11450 ac_ct_DUMPBIN=$DUMPBIN
cristy0c60a692010-11-04 01:09:47 +000011451 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000011452do
11453 # Extract the first word of "$ac_prog", so it can be a program name with args.
11454set dummy $ac_prog; ac_word=$2
11455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11456$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011457if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011458 $as_echo_n "(cached) " >&6
11459else
11460 if test -n "$ac_ct_DUMPBIN"; then
11461 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11462else
11463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11464for as_dir in $PATH
11465do
11466 IFS=$as_save_IFS
11467 test -z "$as_dir" && as_dir=.
11468 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011469 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011470 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11472 break 2
11473 fi
11474done
11475 done
11476IFS=$as_save_IFS
11477
11478fi
11479fi
11480ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11481if test -n "$ac_ct_DUMPBIN"; then
11482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11483$as_echo "$ac_ct_DUMPBIN" >&6; }
11484else
11485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11486$as_echo "no" >&6; }
11487fi
11488
11489
11490 test -n "$ac_ct_DUMPBIN" && break
11491done
11492
11493 if test "x$ac_ct_DUMPBIN" = x; then
11494 DUMPBIN=":"
11495 else
11496 case $cross_compiling:$ac_tool_warned in
11497yes:)
11498{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11499$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11500ac_tool_warned=yes ;;
11501esac
11502 DUMPBIN=$ac_ct_DUMPBIN
11503 fi
11504fi
11505
cristy0c60a692010-11-04 01:09:47 +000011506 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
11507 *COFF*)
11508 DUMPBIN="$DUMPBIN -symbols"
11509 ;;
11510 *)
11511 DUMPBIN=:
11512 ;;
11513 esac
11514 fi
cristy73bd4a52010-10-05 11:24:23 +000011515
11516 if test "$DUMPBIN" != ":"; then
11517 NM="$DUMPBIN"
11518 fi
11519fi
11520test -z "$NM" && NM=nm
11521
11522
11523
11524
11525
11526
11527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11528$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011529if ${lt_cv_nm_interface+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011530 $as_echo_n "(cached) " >&6
11531else
11532 lt_cv_nm_interface="BSD nm"
11533 echo "int some_variable = 0;" > conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000011534 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000011535 (eval "$ac_compile" 2>conftest.err)
11536 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000011537 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000011538 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11539 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000011540 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000011541 cat conftest.out >&5
11542 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11543 lt_cv_nm_interface="MS dumpbin"
11544 fi
11545 rm -f conftest*
11546fi
11547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11548$as_echo "$lt_cv_nm_interface" >&6; }
11549
11550# find the maximum length of command line arguments
11551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11552$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011553if ${lt_cv_sys_max_cmd_len+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011554 $as_echo_n "(cached) " >&6
11555else
11556 i=0
11557 teststring="ABCD"
11558
11559 case $build_os in
11560 msdosdjgpp*)
11561 # On DJGPP, this test can blow up pretty badly due to problems in libc
11562 # (any single argument exceeding 2000 bytes causes a buffer overrun
11563 # during glob expansion). Even if it were fixed, the result of this
11564 # check would be larger than it should be.
11565 lt_cv_sys_max_cmd_len=12288; # 12K is about right
11566 ;;
11567
11568 gnu*)
11569 # Under GNU Hurd, this test is not required because there is
11570 # no limit to the length of command line arguments.
11571 # Libtool will interpret -1 as no limit whatsoever
11572 lt_cv_sys_max_cmd_len=-1;
11573 ;;
11574
11575 cygwin* | mingw* | cegcc*)
11576 # On Win9x/ME, this test blows up -- it succeeds, but takes
11577 # about 5 minutes as the teststring grows exponentially.
11578 # Worse, since 9x/ME are not pre-emptively multitasking,
11579 # you end up with a "frozen" computer, even though with patience
11580 # the test eventually succeeds (with a max line length of 256k).
11581 # Instead, let's just punt: use the minimum linelength reported by
11582 # all of the supported platforms: 8192 (on NT/2K/XP).
11583 lt_cv_sys_max_cmd_len=8192;
11584 ;;
11585
cristy0c60a692010-11-04 01:09:47 +000011586 mint*)
11587 # On MiNT this can take a long time and run out of memory.
11588 lt_cv_sys_max_cmd_len=8192;
11589 ;;
11590
cristy73bd4a52010-10-05 11:24:23 +000011591 amigaos*)
11592 # On AmigaOS with pdksh, this test takes hours, literally.
11593 # So we just punt and use a minimum line length of 8192.
11594 lt_cv_sys_max_cmd_len=8192;
11595 ;;
11596
11597 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
11598 # This has been around since 386BSD, at least. Likely further.
11599 if test -x /sbin/sysctl; then
11600 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11601 elif test -x /usr/sbin/sysctl; then
11602 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11603 else
11604 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
11605 fi
11606 # And add a safety zone
11607 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11608 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11609 ;;
11610
11611 interix*)
11612 # We know the value 262144 and hardcode it with a safety zone (like BSD)
11613 lt_cv_sys_max_cmd_len=196608
11614 ;;
11615
cristy99bd5232011-12-07 14:38:20 +000011616 os2*)
11617 # The test takes a long time on OS/2.
11618 lt_cv_sys_max_cmd_len=8192
11619 ;;
11620
cristy73bd4a52010-10-05 11:24:23 +000011621 osf*)
11622 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11623 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11624 # nice to cause kernel panics so lets avoid the loop below.
11625 # First set a reasonable default.
11626 lt_cv_sys_max_cmd_len=16384
11627 #
11628 if test -x /sbin/sysconfig; then
11629 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11630 *1*) lt_cv_sys_max_cmd_len=-1 ;;
11631 esac
11632 fi
11633 ;;
11634 sco3.2v5*)
11635 lt_cv_sys_max_cmd_len=102400
11636 ;;
11637 sysv5* | sco5v6* | sysv4.2uw2*)
11638 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11639 if test -n "$kargmax"; then
11640 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
11641 else
11642 lt_cv_sys_max_cmd_len=32768
11643 fi
11644 ;;
11645 *)
11646 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11647 if test -n "$lt_cv_sys_max_cmd_len"; then
11648 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11649 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11650 else
11651 # Make teststring a little bigger before we do anything with it.
11652 # a 1K string should be a reasonable start.
11653 for i in 1 2 3 4 5 6 7 8 ; do
11654 teststring=$teststring$teststring
11655 done
11656 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11657 # If test is not a shell built-in, we'll probably end up computing a
11658 # maximum length that is only half of the actual maximum length, but
11659 # we can't tell.
cristy99bd5232011-12-07 14:38:20 +000011660 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
cristy0c60a692010-11-04 01:09:47 +000011661 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
cristy73bd4a52010-10-05 11:24:23 +000011662 test $i != 17 # 1/2 MB should be enough
11663 do
11664 i=`expr $i + 1`
11665 teststring=$teststring$teststring
11666 done
11667 # Only check the string length outside the loop.
11668 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11669 teststring=
11670 # Add a significant safety factor because C++ compilers can tack on
11671 # massive amounts of additional arguments before passing them to the
11672 # linker. It appears as though 1/2 is a usable value.
11673 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11674 fi
11675 ;;
11676 esac
11677
11678fi
11679
11680if test -n $lt_cv_sys_max_cmd_len ; then
11681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11682$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11683else
11684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11685$as_echo "none" >&6; }
11686fi
11687max_cmd_len=$lt_cv_sys_max_cmd_len
11688
11689
11690
11691
11692
11693
11694: ${CP="cp -f"}
11695: ${MV="mv -f"}
11696: ${RM="rm -f"}
11697
11698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
11699$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
11700# Try some XSI features
11701xsi_shell=no
11702( _lt_dummy="a/b/c"
cristyda16f162011-02-19 23:52:17 +000011703 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
11704 = c,a/b,b/c, \
cristy73bd4a52010-10-05 11:24:23 +000011705 && eval 'test $(( 1 + 1 )) -eq 2 \
11706 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
11707 && xsi_shell=yes
11708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
11709$as_echo "$xsi_shell" >&6; }
11710
11711
11712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
11713$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
11714lt_shell_append=no
11715( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
11716 >/dev/null 2>&1 \
11717 && lt_shell_append=yes
11718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
11719$as_echo "$lt_shell_append" >&6; }
11720
11721
11722if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11723 lt_unset=unset
11724else
11725 lt_unset=false
11726fi
11727
11728
11729
11730
11731
11732# test EBCDIC or ASCII
11733case `echo X|tr X '\101'` in
11734 A) # ASCII based system
11735 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11736 lt_SP2NL='tr \040 \012'
11737 lt_NL2SP='tr \015\012 \040\040'
11738 ;;
11739 *) # EBCDIC based system
11740 lt_SP2NL='tr \100 \n'
11741 lt_NL2SP='tr \r\n \100\100'
11742 ;;
11743esac
11744
11745
11746
11747
11748
11749
11750
11751
11752
cristyda16f162011-02-19 23:52:17 +000011753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
11754$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
11755if ${lt_cv_to_host_file_cmd+:} false; then :
11756 $as_echo_n "(cached) " >&6
11757else
11758 case $host in
11759 *-*-mingw* )
11760 case $build in
11761 *-*-mingw* ) # actually msys
11762 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
11763 ;;
11764 *-*-cygwin* )
11765 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
11766 ;;
11767 * ) # otherwise, assume *nix
11768 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
11769 ;;
11770 esac
11771 ;;
11772 *-*-cygwin* )
11773 case $build in
11774 *-*-mingw* ) # actually msys
11775 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
11776 ;;
11777 *-*-cygwin* )
11778 lt_cv_to_host_file_cmd=func_convert_file_noop
11779 ;;
11780 * ) # otherwise, assume *nix
11781 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
11782 ;;
11783 esac
11784 ;;
11785 * ) # unhandled hosts (and "normal" native builds)
11786 lt_cv_to_host_file_cmd=func_convert_file_noop
11787 ;;
11788esac
11789
11790fi
11791
11792to_host_file_cmd=$lt_cv_to_host_file_cmd
11793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
11794$as_echo "$lt_cv_to_host_file_cmd" >&6; }
11795
11796
11797
11798
11799
11800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
11801$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
11802if ${lt_cv_to_tool_file_cmd+:} false; then :
11803 $as_echo_n "(cached) " >&6
11804else
11805 #assume ordinary cross tools, or native build.
11806lt_cv_to_tool_file_cmd=func_convert_file_noop
11807case $host in
11808 *-*-mingw* )
11809 case $build in
11810 *-*-mingw* ) # actually msys
11811 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
11812 ;;
11813 esac
11814 ;;
11815esac
11816
11817fi
11818
11819to_tool_file_cmd=$lt_cv_to_tool_file_cmd
11820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
11821$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
11822
11823
11824
11825
11826
cristy73bd4a52010-10-05 11:24:23 +000011827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11828$as_echo_n "checking for $LD option to reload object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011829if ${lt_cv_ld_reload_flag+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011830 $as_echo_n "(cached) " >&6
11831else
11832 lt_cv_ld_reload_flag='-r'
11833fi
11834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11835$as_echo "$lt_cv_ld_reload_flag" >&6; }
11836reload_flag=$lt_cv_ld_reload_flag
11837case $reload_flag in
11838"" | " "*) ;;
11839*) reload_flag=" $reload_flag" ;;
11840esac
11841reload_cmds='$LD$reload_flag -o $output$reload_objs'
11842case $host_os in
cristyda16f162011-02-19 23:52:17 +000011843 cygwin* | mingw* | pw32* | cegcc*)
11844 if test "$GCC" != yes; then
11845 reload_cmds=false
11846 fi
11847 ;;
cristy73bd4a52010-10-05 11:24:23 +000011848 darwin*)
11849 if test "$GCC" = yes; then
11850 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
11851 else
11852 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11853 fi
11854 ;;
11855esac
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865if test -n "$ac_tool_prefix"; then
11866 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11867set dummy ${ac_tool_prefix}objdump; ac_word=$2
11868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11869$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011870if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011871 $as_echo_n "(cached) " >&6
11872else
11873 if test -n "$OBJDUMP"; then
11874 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11875else
11876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11877for as_dir in $PATH
11878do
11879 IFS=$as_save_IFS
11880 test -z "$as_dir" && as_dir=.
11881 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011882 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011883 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11885 break 2
11886 fi
11887done
11888 done
11889IFS=$as_save_IFS
11890
11891fi
11892fi
11893OBJDUMP=$ac_cv_prog_OBJDUMP
11894if test -n "$OBJDUMP"; then
11895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11896$as_echo "$OBJDUMP" >&6; }
11897else
11898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11899$as_echo "no" >&6; }
11900fi
11901
11902
11903fi
11904if test -z "$ac_cv_prog_OBJDUMP"; then
11905 ac_ct_OBJDUMP=$OBJDUMP
11906 # Extract the first word of "objdump", so it can be a program name with args.
11907set dummy objdump; ac_word=$2
11908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11909$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011910if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011911 $as_echo_n "(cached) " >&6
11912else
11913 if test -n "$ac_ct_OBJDUMP"; then
11914 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11915else
11916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11917for as_dir in $PATH
11918do
11919 IFS=$as_save_IFS
11920 test -z "$as_dir" && as_dir=.
11921 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011923 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11925 break 2
11926 fi
11927done
11928 done
11929IFS=$as_save_IFS
11930
11931fi
11932fi
11933ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11934if test -n "$ac_ct_OBJDUMP"; then
11935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11936$as_echo "$ac_ct_OBJDUMP" >&6; }
11937else
11938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11939$as_echo "no" >&6; }
11940fi
11941
11942 if test "x$ac_ct_OBJDUMP" = x; then
11943 OBJDUMP="false"
11944 else
11945 case $cross_compiling:$ac_tool_warned in
11946yes:)
11947{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11948$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11949ac_tool_warned=yes ;;
11950esac
11951 OBJDUMP=$ac_ct_OBJDUMP
11952 fi
11953else
11954 OBJDUMP="$ac_cv_prog_OBJDUMP"
11955fi
11956
11957test -z "$OBJDUMP" && OBJDUMP=objdump
11958
11959
11960
11961
11962
11963
11964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11965$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011966if ${lt_cv_deplibs_check_method+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011967 $as_echo_n "(cached) " >&6
11968else
11969 lt_cv_file_magic_cmd='$MAGIC_CMD'
11970lt_cv_file_magic_test_file=
11971lt_cv_deplibs_check_method='unknown'
11972# Need to set the preceding variable on all platforms that support
11973# interlibrary dependencies.
11974# 'none' -- dependencies not supported.
11975# `unknown' -- same as none, but documents that we really don't know.
11976# 'pass_all' -- all dependencies passed with no checks.
11977# 'test_compile' -- check by making test program.
11978# 'file_magic [[regex]]' -- check by looking for files in library path
11979# which responds to the $file_magic_cmd with a given extended regex.
11980# If you have `file' or equivalent on your system and you're not sure
11981# whether `pass_all' will *always* work, you probably want this one.
11982
11983case $host_os in
11984aix[4-9]*)
11985 lt_cv_deplibs_check_method=pass_all
11986 ;;
11987
11988beos*)
11989 lt_cv_deplibs_check_method=pass_all
11990 ;;
11991
11992bsdi[45]*)
11993 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11994 lt_cv_file_magic_cmd='/usr/bin/file -L'
11995 lt_cv_file_magic_test_file=/shlib/libc.so
11996 ;;
11997
11998cygwin*)
11999 # func_win32_libid is a shell function defined in ltmain.sh
12000 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12001 lt_cv_file_magic_cmd='func_win32_libid'
12002 ;;
12003
12004mingw* | pw32*)
12005 # Base MSYS/MinGW do not provide the 'file' command needed by
12006 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12007 # unless we find 'file', for example because we are cross-compiling.
cristy0c60a692010-11-04 01:09:47 +000012008 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12009 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
cristy73bd4a52010-10-05 11:24:23 +000012010 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12011 lt_cv_file_magic_cmd='func_win32_libid'
12012 else
cristy0c60a692010-11-04 01:09:47 +000012013 # Keep this pattern in sync with the one in func_win32_libid.
12014 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 +000012015 lt_cv_file_magic_cmd='$OBJDUMP -f'
12016 fi
12017 ;;
12018
cristy0c60a692010-11-04 01:09:47 +000012019cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000012020 # use the weaker test based on 'objdump'. See mingw*.
12021 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12022 lt_cv_file_magic_cmd='$OBJDUMP -f'
12023 ;;
12024
12025darwin* | rhapsody*)
12026 lt_cv_deplibs_check_method=pass_all
12027 ;;
12028
12029freebsd* | dragonfly*)
12030 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12031 case $host_cpu in
12032 i*86 )
12033 # Not sure whether the presence of OpenBSD here was a mistake.
12034 # Let's accept both of them until this is cleared up.
12035 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12036 lt_cv_file_magic_cmd=/usr/bin/file
12037 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12038 ;;
12039 esac
12040 else
12041 lt_cv_deplibs_check_method=pass_all
12042 fi
12043 ;;
12044
12045gnu*)
12046 lt_cv_deplibs_check_method=pass_all
12047 ;;
12048
cristy0c60a692010-11-04 01:09:47 +000012049haiku*)
12050 lt_cv_deplibs_check_method=pass_all
12051 ;;
12052
cristy73bd4a52010-10-05 11:24:23 +000012053hpux10.20* | hpux11*)
12054 lt_cv_file_magic_cmd=/usr/bin/file
12055 case $host_cpu in
12056 ia64*)
12057 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12058 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12059 ;;
12060 hppa*64*)
cristy0c60a692010-11-04 01:09:47 +000012061 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 +000012062 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12063 ;;
12064 *)
cristy0c60a692010-11-04 01:09:47 +000012065 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 +000012066 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12067 ;;
12068 esac
12069 ;;
12070
12071interix[3-9]*)
12072 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12073 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12074 ;;
12075
12076irix5* | irix6* | nonstopux*)
12077 case $LD in
12078 *-32|*"-32 ") libmagic=32-bit;;
12079 *-n32|*"-n32 ") libmagic=N32;;
12080 *-64|*"-64 ") libmagic=64-bit;;
12081 *) libmagic=never-match;;
12082 esac
12083 lt_cv_deplibs_check_method=pass_all
12084 ;;
12085
cristy99bd5232011-12-07 14:38:20 +000012086# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000012087linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000012088 lt_cv_deplibs_check_method=pass_all
12089 ;;
12090
12091netbsd*)
12092 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12093 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12094 else
12095 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12096 fi
12097 ;;
12098
12099newos6*)
12100 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12101 lt_cv_file_magic_cmd=/usr/bin/file
12102 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12103 ;;
12104
12105*nto* | *qnx*)
12106 lt_cv_deplibs_check_method=pass_all
12107 ;;
12108
12109openbsd*)
12110 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12111 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12112 else
12113 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12114 fi
12115 ;;
12116
12117osf3* | osf4* | osf5*)
12118 lt_cv_deplibs_check_method=pass_all
12119 ;;
12120
12121rdos*)
12122 lt_cv_deplibs_check_method=pass_all
12123 ;;
12124
12125solaris*)
12126 lt_cv_deplibs_check_method=pass_all
12127 ;;
12128
12129sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12130 lt_cv_deplibs_check_method=pass_all
12131 ;;
12132
12133sysv4 | sysv4.3*)
12134 case $host_vendor in
12135 motorola)
12136 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]'
12137 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12138 ;;
12139 ncr)
12140 lt_cv_deplibs_check_method=pass_all
12141 ;;
12142 sequent)
12143 lt_cv_file_magic_cmd='/bin/file'
12144 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12145 ;;
12146 sni)
12147 lt_cv_file_magic_cmd='/bin/file'
12148 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12149 lt_cv_file_magic_test_file=/lib/libc.so
12150 ;;
12151 siemens)
12152 lt_cv_deplibs_check_method=pass_all
12153 ;;
12154 pc)
12155 lt_cv_deplibs_check_method=pass_all
12156 ;;
12157 esac
12158 ;;
12159
12160tpf*)
12161 lt_cv_deplibs_check_method=pass_all
12162 ;;
12163esac
12164
12165fi
12166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12167$as_echo "$lt_cv_deplibs_check_method" >&6; }
cristyda16f162011-02-19 23:52:17 +000012168
12169file_magic_glob=
12170want_nocaseglob=no
12171if test "$build" = "$host"; then
12172 case $host_os in
12173 mingw* | pw32*)
12174 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
12175 want_nocaseglob=yes
12176 else
12177 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
12178 fi
12179 ;;
12180 esac
12181fi
12182
cristy73bd4a52010-10-05 11:24:23 +000012183file_magic_cmd=$lt_cv_file_magic_cmd
12184deplibs_check_method=$lt_cv_deplibs_check_method
12185test -z "$deplibs_check_method" && deplibs_check_method=unknown
12186
12187
12188
12189
12190
12191
12192
12193
12194
12195
12196
12197
cristyda16f162011-02-19 23:52:17 +000012198
12199
12200
12201
12202
12203
12204
12205
12206
12207
cristy73bd4a52010-10-05 11:24:23 +000012208if test -n "$ac_tool_prefix"; then
cristyda16f162011-02-19 23:52:17 +000012209 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12210set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000012211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12212$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012213if ${ac_cv_prog_DLLTOOL+:} false; then :
12214 $as_echo_n "(cached) " >&6
12215else
12216 if test -n "$DLLTOOL"; then
12217 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12218else
12219as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12220for as_dir in $PATH
12221do
12222 IFS=$as_save_IFS
12223 test -z "$as_dir" && as_dir=.
12224 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012225 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012226 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12228 break 2
12229 fi
12230done
12231 done
12232IFS=$as_save_IFS
12233
12234fi
12235fi
12236DLLTOOL=$ac_cv_prog_DLLTOOL
12237if test -n "$DLLTOOL"; then
12238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12239$as_echo "$DLLTOOL" >&6; }
12240else
12241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12242$as_echo "no" >&6; }
12243fi
12244
12245
12246fi
12247if test -z "$ac_cv_prog_DLLTOOL"; then
12248 ac_ct_DLLTOOL=$DLLTOOL
12249 # Extract the first word of "dlltool", so it can be a program name with args.
12250set dummy dlltool; ac_word=$2
12251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12252$as_echo_n "checking for $ac_word... " >&6; }
12253if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
12254 $as_echo_n "(cached) " >&6
12255else
12256 if test -n "$ac_ct_DLLTOOL"; then
12257 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12258else
12259as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12260for as_dir in $PATH
12261do
12262 IFS=$as_save_IFS
12263 test -z "$as_dir" && as_dir=.
12264 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012265 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012266 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12268 break 2
12269 fi
12270done
12271 done
12272IFS=$as_save_IFS
12273
12274fi
12275fi
12276ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12277if test -n "$ac_ct_DLLTOOL"; then
12278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12279$as_echo "$ac_ct_DLLTOOL" >&6; }
12280else
12281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12282$as_echo "no" >&6; }
12283fi
12284
12285 if test "x$ac_ct_DLLTOOL" = x; then
12286 DLLTOOL="false"
12287 else
12288 case $cross_compiling:$ac_tool_warned in
12289yes:)
12290{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12291$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12292ac_tool_warned=yes ;;
12293esac
12294 DLLTOOL=$ac_ct_DLLTOOL
12295 fi
12296else
12297 DLLTOOL="$ac_cv_prog_DLLTOOL"
12298fi
12299
12300test -z "$DLLTOOL" && DLLTOOL=dlltool
12301
12302
12303
12304
12305
12306
12307
12308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
12309$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
12310if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
12311 $as_echo_n "(cached) " >&6
12312else
12313 lt_cv_sharedlib_from_linklib_cmd='unknown'
12314
12315case $host_os in
12316cygwin* | mingw* | pw32* | cegcc*)
12317 # two different shell functions defined in ltmain.sh
12318 # decide which to use based on capabilities of $DLLTOOL
12319 case `$DLLTOOL --help 2>&1` in
12320 *--identify-strict*)
12321 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
12322 ;;
12323 *)
12324 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
12325 ;;
12326 esac
12327 ;;
12328*)
12329 # fallback: assume linklib IS sharedlib
12330 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
12331 ;;
12332esac
12333
12334fi
12335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
12336$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
12337sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
12338test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
12339
12340
12341
12342
12343
12344
12345
12346if test -n "$ac_tool_prefix"; then
12347 for ac_prog in ar
12348 do
12349 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12350set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12352$as_echo_n "checking for $ac_word... " >&6; }
12353if ${ac_cv_prog_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012354 $as_echo_n "(cached) " >&6
12355else
12356 if test -n "$AR"; then
12357 ac_cv_prog_AR="$AR" # Let the user override the test.
12358else
12359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12360for as_dir in $PATH
12361do
12362 IFS=$as_save_IFS
12363 test -z "$as_dir" && as_dir=.
12364 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012365 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012366 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000012367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12368 break 2
12369 fi
12370done
12371 done
12372IFS=$as_save_IFS
12373
12374fi
12375fi
12376AR=$ac_cv_prog_AR
12377if test -n "$AR"; then
12378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12379$as_echo "$AR" >&6; }
12380else
12381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12382$as_echo "no" >&6; }
12383fi
12384
12385
cristyda16f162011-02-19 23:52:17 +000012386 test -n "$AR" && break
12387 done
cristy73bd4a52010-10-05 11:24:23 +000012388fi
cristyda16f162011-02-19 23:52:17 +000012389if test -z "$AR"; then
cristy73bd4a52010-10-05 11:24:23 +000012390 ac_ct_AR=$AR
cristyda16f162011-02-19 23:52:17 +000012391 for ac_prog in ar
12392do
12393 # Extract the first word of "$ac_prog", so it can be a program name with args.
12394set dummy $ac_prog; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000012395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12396$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012397if ${ac_cv_prog_ac_ct_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012398 $as_echo_n "(cached) " >&6
12399else
12400 if test -n "$ac_ct_AR"; then
12401 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12402else
12403as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12404for as_dir in $PATH
12405do
12406 IFS=$as_save_IFS
12407 test -z "$as_dir" && as_dir=.
12408 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012409 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012410 ac_cv_prog_ac_ct_AR="$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000012411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12412 break 2
12413 fi
12414done
12415 done
12416IFS=$as_save_IFS
12417
12418fi
12419fi
12420ac_ct_AR=$ac_cv_prog_ac_ct_AR
12421if test -n "$ac_ct_AR"; then
12422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12423$as_echo "$ac_ct_AR" >&6; }
12424else
12425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12426$as_echo "no" >&6; }
12427fi
12428
cristyda16f162011-02-19 23:52:17 +000012429
12430 test -n "$ac_ct_AR" && break
12431done
12432
cristy73bd4a52010-10-05 11:24:23 +000012433 if test "x$ac_ct_AR" = x; then
12434 AR="false"
12435 else
12436 case $cross_compiling:$ac_tool_warned in
12437yes:)
12438{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12439$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12440ac_tool_warned=yes ;;
12441esac
12442 AR=$ac_ct_AR
12443 fi
cristy73bd4a52010-10-05 11:24:23 +000012444fi
12445
cristyda16f162011-02-19 23:52:17 +000012446: ${AR=ar}
12447: ${AR_FLAGS=cru}
cristy73bd4a52010-10-05 11:24:23 +000012448
12449
12450
12451
12452
12453
12454
12455
12456
12457
12458
cristyda16f162011-02-19 23:52:17 +000012459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
12460$as_echo_n "checking for archiver @FILE support... " >&6; }
12461if ${lt_cv_ar_at_file+:} false; then :
12462 $as_echo_n "(cached) " >&6
12463else
12464 lt_cv_ar_at_file=no
12465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12466/* end confdefs.h. */
12467
12468int
12469main ()
12470{
12471
12472 ;
12473 return 0;
12474}
12475_ACEOF
12476if ac_fn_c_try_compile "$LINENO"; then :
12477 echo conftest.$ac_objext > conftest.lst
12478 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
12479 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12480 (eval $lt_ar_try) 2>&5
12481 ac_status=$?
12482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12483 test $ac_status = 0; }
12484 if test "$ac_status" -eq 0; then
12485 # Ensure the archiver fails upon bogus file names.
12486 rm -f conftest.$ac_objext libconftest.a
12487 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12488 (eval $lt_ar_try) 2>&5
12489 ac_status=$?
12490 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12491 test $ac_status = 0; }
12492 if test "$ac_status" -ne 0; then
12493 lt_cv_ar_at_file=@
12494 fi
12495 fi
12496 rm -f conftest.* libconftest.a
12497
12498fi
12499rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12500
12501fi
12502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
12503$as_echo "$lt_cv_ar_at_file" >&6; }
12504
12505if test "x$lt_cv_ar_at_file" = xno; then
12506 archiver_list_spec=
12507else
12508 archiver_list_spec=$lt_cv_ar_at_file
12509fi
12510
12511
12512
12513
12514
12515
12516
cristy73bd4a52010-10-05 11:24:23 +000012517if test -n "$ac_tool_prefix"; then
12518 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12519set dummy ${ac_tool_prefix}strip; ac_word=$2
12520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12521$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012522if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012523 $as_echo_n "(cached) " >&6
12524else
12525 if test -n "$STRIP"; then
12526 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12527else
12528as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12529for as_dir in $PATH
12530do
12531 IFS=$as_save_IFS
12532 test -z "$as_dir" && as_dir=.
12533 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012534 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012535 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12537 break 2
12538 fi
12539done
12540 done
12541IFS=$as_save_IFS
12542
12543fi
12544fi
12545STRIP=$ac_cv_prog_STRIP
12546if test -n "$STRIP"; then
12547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12548$as_echo "$STRIP" >&6; }
12549else
12550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12551$as_echo "no" >&6; }
12552fi
12553
12554
12555fi
12556if test -z "$ac_cv_prog_STRIP"; then
12557 ac_ct_STRIP=$STRIP
12558 # Extract the first word of "strip", so it can be a program name with args.
12559set dummy strip; ac_word=$2
12560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12561$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012562if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012563 $as_echo_n "(cached) " >&6
12564else
12565 if test -n "$ac_ct_STRIP"; then
12566 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12567else
12568as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12569for as_dir in $PATH
12570do
12571 IFS=$as_save_IFS
12572 test -z "$as_dir" && as_dir=.
12573 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012574 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012575 ac_cv_prog_ac_ct_STRIP="strip"
12576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12577 break 2
12578 fi
12579done
12580 done
12581IFS=$as_save_IFS
12582
12583fi
12584fi
12585ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12586if test -n "$ac_ct_STRIP"; then
12587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12588$as_echo "$ac_ct_STRIP" >&6; }
12589else
12590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12591$as_echo "no" >&6; }
12592fi
12593
12594 if test "x$ac_ct_STRIP" = x; then
12595 STRIP=":"
12596 else
12597 case $cross_compiling:$ac_tool_warned in
12598yes:)
12599{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12600$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12601ac_tool_warned=yes ;;
12602esac
12603 STRIP=$ac_ct_STRIP
12604 fi
12605else
12606 STRIP="$ac_cv_prog_STRIP"
12607fi
12608
12609test -z "$STRIP" && STRIP=:
12610
12611
12612
12613
12614
12615
12616if test -n "$ac_tool_prefix"; then
12617 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12618set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12620$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012621if ${ac_cv_prog_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012622 $as_echo_n "(cached) " >&6
12623else
12624 if test -n "$RANLIB"; then
12625 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12626else
12627as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12628for as_dir in $PATH
12629do
12630 IFS=$as_save_IFS
12631 test -z "$as_dir" && as_dir=.
12632 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012633 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012634 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12636 break 2
12637 fi
12638done
12639 done
12640IFS=$as_save_IFS
12641
12642fi
12643fi
12644RANLIB=$ac_cv_prog_RANLIB
12645if test -n "$RANLIB"; then
12646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12647$as_echo "$RANLIB" >&6; }
12648else
12649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12650$as_echo "no" >&6; }
12651fi
12652
12653
12654fi
12655if test -z "$ac_cv_prog_RANLIB"; then
12656 ac_ct_RANLIB=$RANLIB
12657 # Extract the first word of "ranlib", so it can be a program name with args.
12658set dummy ranlib; ac_word=$2
12659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12660$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012661if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012662 $as_echo_n "(cached) " >&6
12663else
12664 if test -n "$ac_ct_RANLIB"; then
12665 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12666else
12667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12668for as_dir in $PATH
12669do
12670 IFS=$as_save_IFS
12671 test -z "$as_dir" && as_dir=.
12672 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012673 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012674 ac_cv_prog_ac_ct_RANLIB="ranlib"
12675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12676 break 2
12677 fi
12678done
12679 done
12680IFS=$as_save_IFS
12681
12682fi
12683fi
12684ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12685if test -n "$ac_ct_RANLIB"; then
12686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12687$as_echo "$ac_ct_RANLIB" >&6; }
12688else
12689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12690$as_echo "no" >&6; }
12691fi
12692
12693 if test "x$ac_ct_RANLIB" = x; then
12694 RANLIB=":"
12695 else
12696 case $cross_compiling:$ac_tool_warned in
12697yes:)
12698{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12699$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12700ac_tool_warned=yes ;;
12701esac
12702 RANLIB=$ac_ct_RANLIB
12703 fi
12704else
12705 RANLIB="$ac_cv_prog_RANLIB"
12706fi
12707
12708test -z "$RANLIB" && RANLIB=:
12709
12710
12711
12712
12713
12714
12715# Determine commands to create old-style static archives.
12716old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12717old_postinstall_cmds='chmod 644 $oldlib'
12718old_postuninstall_cmds=
12719
12720if test -n "$RANLIB"; then
12721 case $host_os in
12722 openbsd*)
cristy99bd5232011-12-07 14:38:20 +000012723 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000012724 ;;
12725 *)
cristy99bd5232011-12-07 14:38:20 +000012726 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000012727 ;;
12728 esac
cristy99bd5232011-12-07 14:38:20 +000012729 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000012730fi
12731
cristy0c60a692010-11-04 01:09:47 +000012732case $host_os in
12733 darwin*)
12734 lock_old_archive_extraction=yes ;;
12735 *)
12736 lock_old_archive_extraction=no ;;
12737esac
12738
12739
12740
12741
12742
12743
cristy73bd4a52010-10-05 11:24:23 +000012744
12745
12746
12747
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# If no C compiler was specified, use CC.
12778LTCC=${LTCC-"$CC"}
12779
12780# If no C compiler flags were specified, use CFLAGS.
12781LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12782
12783# Allow CC to be a program name with arguments.
12784compiler=$CC
12785
12786
12787# Check for command to grab the raw symbol name followed by C symbol from nm.
12788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12789$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012790if ${lt_cv_sys_global_symbol_pipe+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012791 $as_echo_n "(cached) " >&6
12792else
12793
12794# These are sane defaults that work on at least a few old systems.
12795# [They come from Ultrix. What could be older than Ultrix?!! ;)]
12796
12797# Character class describing NM global symbol codes.
12798symcode='[BCDEGRST]'
12799
12800# Regexp to match symbols that can be accessed directly from C.
12801sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12802
12803# Define system-specific variables.
12804case $host_os in
12805aix*)
12806 symcode='[BCDT]'
12807 ;;
12808cygwin* | mingw* | pw32* | cegcc*)
12809 symcode='[ABCDGISTW]'
12810 ;;
12811hpux*)
12812 if test "$host_cpu" = ia64; then
12813 symcode='[ABCDEGRST]'
12814 fi
12815 ;;
12816irix* | nonstopux*)
12817 symcode='[BCDEGRST]'
12818 ;;
12819osf*)
12820 symcode='[BCDEGQRST]'
12821 ;;
12822solaris*)
12823 symcode='[BDRT]'
12824 ;;
12825sco3.2v5*)
12826 symcode='[DT]'
12827 ;;
12828sysv4.2uw2*)
12829 symcode='[DT]'
12830 ;;
12831sysv5* | sco5v6* | unixware* | OpenUNIX*)
12832 symcode='[ABDT]'
12833 ;;
12834sysv4)
12835 symcode='[DFNSTU]'
12836 ;;
12837esac
12838
12839# If we're using GNU nm, then use its standard symbol codes.
12840case `$NM -V 2>&1` in
12841*GNU* | *'with BFD'*)
12842 symcode='[ABCDGIRSTW]' ;;
12843esac
12844
12845# Transform an extracted symbol line into a proper C declaration.
12846# Some systems (esp. on ia64) link data and code symbols differently,
12847# so use this general approach.
12848lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12849
12850# Transform an extracted symbol line into symbol name and symbol address
cristyda16f162011-02-19 23:52:17 +000012851lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
12852lt_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 +000012853
12854# Handle CRLF in mingw tool chain
12855opt_cr=
12856case $build_os in
12857mingw*)
12858 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12859 ;;
12860esac
12861
12862# Try without a prefix underscore, then with it.
12863for ac_symprfx in "" "_"; do
12864
12865 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12866 symxfrm="\\1 $ac_symprfx\\2 \\2"
12867
12868 # Write the raw and C identifiers.
12869 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12870 # Fake it for dumpbin and say T for any non-static function
12871 # and D for any global variable.
12872 # Also find C++ and __fastcall symbols from MSVC++,
12873 # which start with @ or ?.
12874 lt_cv_sys_global_symbol_pipe="$AWK '"\
12875" {last_section=section; section=\$ 3};"\
cristy99bd5232011-12-07 14:38:20 +000012876" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
cristy73bd4a52010-10-05 11:24:23 +000012877" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12878" \$ 0!~/External *\|/{next};"\
12879" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12880" {if(hide[section]) next};"\
12881" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12882" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12883" s[1]~/^[@?]/{print s[1], s[1]; next};"\
12884" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12885" ' prfx=^$ac_symprfx"
12886 else
12887 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12888 fi
cristyda16f162011-02-19 23:52:17 +000012889 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
cristy73bd4a52010-10-05 11:24:23 +000012890
12891 # Check to see that the pipe works correctly.
12892 pipe_works=no
12893
12894 rm -f conftest*
12895 cat > conftest.$ac_ext <<_LT_EOF
12896#ifdef __cplusplus
12897extern "C" {
12898#endif
12899char nm_test_var;
12900void nm_test_func(void);
12901void nm_test_func(void){}
12902#ifdef __cplusplus
12903}
12904#endif
12905int main(){nm_test_var='a';nm_test_func();return(0);}
12906_LT_EOF
12907
12908 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12909 (eval $ac_compile) 2>&5
12910 ac_status=$?
12911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12912 test $ac_status = 0; }; then
12913 # Now try to grab the symbols.
12914 nlist=conftest.nm
cristy0c60a692010-11-04 01:09:47 +000012915 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12916 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
cristy73bd4a52010-10-05 11:24:23 +000012917 ac_status=$?
12918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12919 test $ac_status = 0; } && test -s "$nlist"; then
12920 # Try sorting and uniquifying the output.
12921 if sort "$nlist" | uniq > "$nlist"T; then
12922 mv -f "$nlist"T "$nlist"
12923 else
12924 rm -f "$nlist"T
12925 fi
12926
12927 # Make sure that we snagged all the symbols we need.
12928 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12929 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12930 cat <<_LT_EOF > conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000012931/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
12932#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
12933/* DATA imports from DLLs on WIN32 con't be const, because runtime
12934 relocations are performed -- see ld's documentation on pseudo-relocs. */
12935# define LT_DLSYM_CONST
12936#elif defined(__osf__)
12937/* This system does not cope well with relocations in const data. */
12938# define LT_DLSYM_CONST
12939#else
12940# define LT_DLSYM_CONST const
12941#endif
12942
cristy73bd4a52010-10-05 11:24:23 +000012943#ifdef __cplusplus
12944extern "C" {
12945#endif
12946
12947_LT_EOF
12948 # Now generate the symbol file.
12949 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12950
12951 cat <<_LT_EOF >> conftest.$ac_ext
12952
12953/* The mapping between symbol names and symbols. */
cristyda16f162011-02-19 23:52:17 +000012954LT_DLSYM_CONST struct {
cristy73bd4a52010-10-05 11:24:23 +000012955 const char *name;
12956 void *address;
12957}
12958lt__PROGRAM__LTX_preloaded_symbols[] =
12959{
12960 { "@PROGRAM@", (void *) 0 },
12961_LT_EOF
12962 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12963 cat <<\_LT_EOF >> conftest.$ac_ext
12964 {0, (void *) 0}
12965};
12966
12967/* This works around a problem in FreeBSD linker */
12968#ifdef FREEBSD_WORKAROUND
12969static const void *lt_preloaded_setup() {
12970 return lt__PROGRAM__LTX_preloaded_symbols;
12971}
12972#endif
12973
12974#ifdef __cplusplus
12975}
12976#endif
12977_LT_EOF
12978 # Now try linking the two files.
12979 mv conftest.$ac_objext conftstm.$ac_objext
cristyda16f162011-02-19 23:52:17 +000012980 lt_globsym_save_LIBS=$LIBS
12981 lt_globsym_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000012982 LIBS="conftstm.$ac_objext"
12983 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12984 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12985 (eval $ac_link) 2>&5
12986 ac_status=$?
12987 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12988 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12989 pipe_works=yes
12990 fi
cristyda16f162011-02-19 23:52:17 +000012991 LIBS=$lt_globsym_save_LIBS
12992 CFLAGS=$lt_globsym_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000012993 else
12994 echo "cannot find nm_test_func in $nlist" >&5
12995 fi
12996 else
12997 echo "cannot find nm_test_var in $nlist" >&5
12998 fi
12999 else
13000 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13001 fi
13002 else
13003 echo "$progname: failed program was:" >&5
13004 cat conftest.$ac_ext >&5
13005 fi
13006 rm -rf conftest* conftst*
13007
13008 # Do not use the global_symbol_pipe unless it works.
13009 if test "$pipe_works" = yes; then
13010 break
13011 else
13012 lt_cv_sys_global_symbol_pipe=
13013 fi
13014done
13015
13016fi
13017
13018if test -z "$lt_cv_sys_global_symbol_pipe"; then
13019 lt_cv_sys_global_symbol_to_cdecl=
13020fi
13021if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13023$as_echo "failed" >&6; }
13024else
13025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13026$as_echo "ok" >&6; }
13027fi
13028
cristyda16f162011-02-19 23:52:17 +000013029# Response file support.
13030if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13031 nm_file_list_spec='@'
13032elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
13033 nm_file_list_spec='@'
13034fi
cristy73bd4a52010-10-05 11:24:23 +000013035
13036
13037
13038
13039
13040
13041
13042
13043
13044
13045
13046
13047
13048
13049
13050
13051
13052
13053
13054
13055
cristyda16f162011-02-19 23:52:17 +000013056
13057
13058
13059
13060
13061
13062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
13063$as_echo_n "checking for sysroot... " >&6; }
13064
13065# Check whether --with-sysroot was given.
13066if test "${with_sysroot+set}" = set; then :
13067 withval=$with_sysroot;
13068else
13069 with_sysroot=no
13070fi
13071
13072
13073lt_sysroot=
13074case ${with_sysroot} in #(
13075 yes)
13076 if test "$GCC" = yes; then
13077 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
13078 fi
13079 ;; #(
13080 /*)
13081 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
13082 ;; #(
13083 no|'')
13084 ;; #(
13085 *)
13086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
13087$as_echo "${with_sysroot}" >&6; }
13088 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
13089 ;;
13090esac
13091
13092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
13093$as_echo "${lt_sysroot:-no}" >&6; }
13094
13095
13096
13097
13098
cristy73bd4a52010-10-05 11:24:23 +000013099# Check whether --enable-libtool-lock was given.
13100if test "${enable_libtool_lock+set}" = set; then :
13101 enableval=$enable_libtool_lock;
13102fi
13103
13104test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13105
13106# Some flags need to be propagated to the compiler or linker for good
13107# libtool support.
13108case $host in
13109ia64-*-hpux*)
13110 # Find out which ABI we are using.
13111 echo 'int i;' > conftest.$ac_ext
13112 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13113 (eval $ac_compile) 2>&5
13114 ac_status=$?
13115 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13116 test $ac_status = 0; }; then
13117 case `/usr/bin/file conftest.$ac_objext` in
13118 *ELF-32*)
13119 HPUX_IA64_MODE="32"
13120 ;;
13121 *ELF-64*)
13122 HPUX_IA64_MODE="64"
13123 ;;
13124 esac
13125 fi
13126 rm -rf conftest*
13127 ;;
13128*-*-irix6*)
13129 # Find out which ABI we are using.
cristy0c60a692010-11-04 01:09:47 +000013130 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000013131 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13132 (eval $ac_compile) 2>&5
13133 ac_status=$?
13134 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13135 test $ac_status = 0; }; then
13136 if test "$lt_cv_prog_gnu_ld" = yes; then
13137 case `/usr/bin/file conftest.$ac_objext` in
13138 *32-bit*)
13139 LD="${LD-ld} -melf32bsmip"
13140 ;;
13141 *N32*)
13142 LD="${LD-ld} -melf32bmipn32"
13143 ;;
13144 *64-bit*)
13145 LD="${LD-ld} -melf64bmip"
13146 ;;
13147 esac
13148 else
13149 case `/usr/bin/file conftest.$ac_objext` in
13150 *32-bit*)
13151 LD="${LD-ld} -32"
13152 ;;
13153 *N32*)
13154 LD="${LD-ld} -n32"
13155 ;;
13156 *64-bit*)
13157 LD="${LD-ld} -64"
13158 ;;
13159 esac
13160 fi
13161 fi
13162 rm -rf conftest*
13163 ;;
13164
cristyd95b7a52013-10-23 13:12:53 +000013165x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
cristy73bd4a52010-10-05 11:24:23 +000013166s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13167 # Find out which ABI we are using.
13168 echo 'int i;' > conftest.$ac_ext
13169 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13170 (eval $ac_compile) 2>&5
13171 ac_status=$?
13172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13173 test $ac_status = 0; }; then
13174 case `/usr/bin/file conftest.o` in
13175 *32-bit*)
13176 case $host in
13177 x86_64-*kfreebsd*-gnu)
13178 LD="${LD-ld} -m elf_i386_fbsd"
13179 ;;
13180 x86_64-*linux*)
13181 LD="${LD-ld} -m elf_i386"
13182 ;;
cristya5bda012013-11-03 18:05:38 +000013183 powerpc64le-*linux*)
cristyd95b7a52013-10-23 13:12:53 +000013184 LD="${LD-ld} -m elf32lppclinux"
13185 ;;
cristya5bda012013-11-03 18:05:38 +000013186 powerpc64-*linux*)
cristy73bd4a52010-10-05 11:24:23 +000013187 LD="${LD-ld} -m elf32ppclinux"
13188 ;;
13189 s390x-*linux*)
13190 LD="${LD-ld} -m elf_s390"
13191 ;;
13192 sparc64-*linux*)
13193 LD="${LD-ld} -m elf32_sparc"
13194 ;;
13195 esac
13196 ;;
13197 *64-bit*)
13198 case $host in
13199 x86_64-*kfreebsd*-gnu)
13200 LD="${LD-ld} -m elf_x86_64_fbsd"
13201 ;;
13202 x86_64-*linux*)
13203 LD="${LD-ld} -m elf_x86_64"
13204 ;;
cristyd95b7a52013-10-23 13:12:53 +000013205 powerpcle-*linux*)
13206 LD="${LD-ld} -m elf64lppc"
13207 ;;
13208 powerpc-*linux*)
cristy73bd4a52010-10-05 11:24:23 +000013209 LD="${LD-ld} -m elf64ppc"
13210 ;;
13211 s390*-*linux*|s390*-*tpf*)
13212 LD="${LD-ld} -m elf64_s390"
13213 ;;
13214 sparc*-*linux*)
13215 LD="${LD-ld} -m elf64_sparc"
13216 ;;
13217 esac
13218 ;;
13219 esac
13220 fi
13221 rm -rf conftest*
13222 ;;
13223
13224*-*-sco3.2v5*)
13225 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13226 SAVE_CFLAGS="$CFLAGS"
13227 CFLAGS="$CFLAGS -belf"
13228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13229$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013230if ${lt_cv_cc_needs_belf+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013231 $as_echo_n "(cached) " >&6
13232else
13233 ac_ext=c
13234ac_cpp='$CPP $CPPFLAGS'
13235ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13236ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13237ac_compiler_gnu=$ac_cv_c_compiler_gnu
13238
13239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13240/* end confdefs.h. */
13241
13242int
13243main ()
13244{
13245
13246 ;
13247 return 0;
13248}
13249_ACEOF
13250if ac_fn_c_try_link "$LINENO"; then :
13251 lt_cv_cc_needs_belf=yes
13252else
13253 lt_cv_cc_needs_belf=no
13254fi
13255rm -f core conftest.err conftest.$ac_objext \
13256 conftest$ac_exeext conftest.$ac_ext
13257 ac_ext=c
13258ac_cpp='$CPP $CPPFLAGS'
13259ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13260ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13261ac_compiler_gnu=$ac_cv_c_compiler_gnu
13262
13263fi
13264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13265$as_echo "$lt_cv_cc_needs_belf" >&6; }
13266 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13267 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13268 CFLAGS="$SAVE_CFLAGS"
13269 fi
13270 ;;
cristy99bd5232011-12-07 14:38:20 +000013271*-*solaris*)
cristy73bd4a52010-10-05 11:24:23 +000013272 # Find out which ABI we are using.
13273 echo 'int i;' > conftest.$ac_ext
13274 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13275 (eval $ac_compile) 2>&5
13276 ac_status=$?
13277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13278 test $ac_status = 0; }; then
13279 case `/usr/bin/file conftest.o` in
13280 *64-bit*)
13281 case $lt_cv_prog_gnu_ld in
cristy99bd5232011-12-07 14:38:20 +000013282 yes*)
13283 case $host in
13284 i?86-*-solaris*)
13285 LD="${LD-ld} -m elf_x86_64"
13286 ;;
13287 sparc*-*-solaris*)
13288 LD="${LD-ld} -m elf64_sparc"
13289 ;;
13290 esac
13291 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
13292 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
13293 LD="${LD-ld}_sol2"
13294 fi
13295 ;;
cristy73bd4a52010-10-05 11:24:23 +000013296 *)
13297 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13298 LD="${LD-ld} -64"
13299 fi
13300 ;;
13301 esac
13302 ;;
13303 esac
13304 fi
13305 rm -rf conftest*
13306 ;;
13307esac
13308
13309need_locks="$enable_libtool_lock"
13310
cristyda16f162011-02-19 23:52:17 +000013311if test -n "$ac_tool_prefix"; then
13312 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
13313set dummy ${ac_tool_prefix}mt; ac_word=$2
13314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13315$as_echo_n "checking for $ac_word... " >&6; }
13316if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
13317 $as_echo_n "(cached) " >&6
13318else
13319 if test -n "$MANIFEST_TOOL"; then
13320 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
13321else
13322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13323for as_dir in $PATH
13324do
13325 IFS=$as_save_IFS
13326 test -z "$as_dir" && as_dir=.
13327 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013328 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000013329 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
13330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13331 break 2
13332 fi
13333done
13334 done
13335IFS=$as_save_IFS
13336
13337fi
13338fi
13339MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
13340if test -n "$MANIFEST_TOOL"; then
13341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
13342$as_echo "$MANIFEST_TOOL" >&6; }
13343else
13344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13345$as_echo "no" >&6; }
13346fi
13347
13348
13349fi
13350if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
13351 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
13352 # Extract the first word of "mt", so it can be a program name with args.
13353set dummy mt; ac_word=$2
13354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13355$as_echo_n "checking for $ac_word... " >&6; }
13356if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
13357 $as_echo_n "(cached) " >&6
13358else
13359 if test -n "$ac_ct_MANIFEST_TOOL"; then
13360 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
13361else
13362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13363for as_dir in $PATH
13364do
13365 IFS=$as_save_IFS
13366 test -z "$as_dir" && as_dir=.
13367 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013368 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000013369 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
13370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13371 break 2
13372 fi
13373done
13374 done
13375IFS=$as_save_IFS
13376
13377fi
13378fi
13379ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
13380if test -n "$ac_ct_MANIFEST_TOOL"; then
13381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
13382$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
13383else
13384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13385$as_echo "no" >&6; }
13386fi
13387
13388 if test "x$ac_ct_MANIFEST_TOOL" = x; then
13389 MANIFEST_TOOL=":"
13390 else
13391 case $cross_compiling:$ac_tool_warned in
13392yes:)
13393{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13394$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13395ac_tool_warned=yes ;;
13396esac
13397 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
13398 fi
13399else
13400 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
13401fi
13402
13403test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
13404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
13405$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
13406if ${lt_cv_path_mainfest_tool+:} false; then :
13407 $as_echo_n "(cached) " >&6
13408else
13409 lt_cv_path_mainfest_tool=no
13410 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
13411 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
13412 cat conftest.err >&5
13413 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
13414 lt_cv_path_mainfest_tool=yes
13415 fi
13416 rm -f conftest*
13417fi
13418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
13419$as_echo "$lt_cv_path_mainfest_tool" >&6; }
13420if test "x$lt_cv_path_mainfest_tool" != xyes; then
13421 MANIFEST_TOOL=:
13422fi
13423
13424
13425
13426
13427
cristy73bd4a52010-10-05 11:24:23 +000013428
13429 case $host_os in
13430 rhapsody* | darwin*)
13431 if test -n "$ac_tool_prefix"; then
13432 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13433set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13435$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013436if ${ac_cv_prog_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013437 $as_echo_n "(cached) " >&6
13438else
13439 if test -n "$DSYMUTIL"; then
13440 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13441else
13442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13443for as_dir in $PATH
13444do
13445 IFS=$as_save_IFS
13446 test -z "$as_dir" && as_dir=.
13447 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013448 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013449 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13451 break 2
13452 fi
13453done
13454 done
13455IFS=$as_save_IFS
13456
13457fi
13458fi
13459DSYMUTIL=$ac_cv_prog_DSYMUTIL
13460if test -n "$DSYMUTIL"; then
13461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13462$as_echo "$DSYMUTIL" >&6; }
13463else
13464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13465$as_echo "no" >&6; }
13466fi
13467
13468
13469fi
13470if test -z "$ac_cv_prog_DSYMUTIL"; then
13471 ac_ct_DSYMUTIL=$DSYMUTIL
13472 # Extract the first word of "dsymutil", so it can be a program name with args.
13473set dummy dsymutil; ac_word=$2
13474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13475$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013476if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013477 $as_echo_n "(cached) " >&6
13478else
13479 if test -n "$ac_ct_DSYMUTIL"; then
13480 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13481else
13482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13483for as_dir in $PATH
13484do
13485 IFS=$as_save_IFS
13486 test -z "$as_dir" && as_dir=.
13487 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013488 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013489 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13491 break 2
13492 fi
13493done
13494 done
13495IFS=$as_save_IFS
13496
13497fi
13498fi
13499ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13500if test -n "$ac_ct_DSYMUTIL"; then
13501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13502$as_echo "$ac_ct_DSYMUTIL" >&6; }
13503else
13504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13505$as_echo "no" >&6; }
13506fi
13507
13508 if test "x$ac_ct_DSYMUTIL" = x; then
13509 DSYMUTIL=":"
13510 else
13511 case $cross_compiling:$ac_tool_warned in
13512yes:)
13513{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13514$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13515ac_tool_warned=yes ;;
13516esac
13517 DSYMUTIL=$ac_ct_DSYMUTIL
13518 fi
13519else
13520 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13521fi
13522
13523 if test -n "$ac_tool_prefix"; then
13524 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13525set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13527$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013528if ${ac_cv_prog_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013529 $as_echo_n "(cached) " >&6
13530else
13531 if test -n "$NMEDIT"; then
13532 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13533else
13534as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13535for as_dir in $PATH
13536do
13537 IFS=$as_save_IFS
13538 test -z "$as_dir" && as_dir=.
13539 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013540 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013541 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13543 break 2
13544 fi
13545done
13546 done
13547IFS=$as_save_IFS
13548
13549fi
13550fi
13551NMEDIT=$ac_cv_prog_NMEDIT
13552if test -n "$NMEDIT"; then
13553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13554$as_echo "$NMEDIT" >&6; }
13555else
13556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13557$as_echo "no" >&6; }
13558fi
13559
13560
13561fi
13562if test -z "$ac_cv_prog_NMEDIT"; then
13563 ac_ct_NMEDIT=$NMEDIT
13564 # Extract the first word of "nmedit", so it can be a program name with args.
13565set dummy nmedit; ac_word=$2
13566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13567$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013568if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013569 $as_echo_n "(cached) " >&6
13570else
13571 if test -n "$ac_ct_NMEDIT"; then
13572 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13573else
13574as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13575for as_dir in $PATH
13576do
13577 IFS=$as_save_IFS
13578 test -z "$as_dir" && as_dir=.
13579 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013580 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013581 ac_cv_prog_ac_ct_NMEDIT="nmedit"
13582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13583 break 2
13584 fi
13585done
13586 done
13587IFS=$as_save_IFS
13588
13589fi
13590fi
13591ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13592if test -n "$ac_ct_NMEDIT"; then
13593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13594$as_echo "$ac_ct_NMEDIT" >&6; }
13595else
13596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13597$as_echo "no" >&6; }
13598fi
13599
13600 if test "x$ac_ct_NMEDIT" = x; then
13601 NMEDIT=":"
13602 else
13603 case $cross_compiling:$ac_tool_warned in
13604yes:)
13605{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13606$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13607ac_tool_warned=yes ;;
13608esac
13609 NMEDIT=$ac_ct_NMEDIT
13610 fi
13611else
13612 NMEDIT="$ac_cv_prog_NMEDIT"
13613fi
13614
13615 if test -n "$ac_tool_prefix"; then
13616 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13617set dummy ${ac_tool_prefix}lipo; ac_word=$2
13618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13619$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013620if ${ac_cv_prog_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013621 $as_echo_n "(cached) " >&6
13622else
13623 if test -n "$LIPO"; then
13624 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13625else
13626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13627for as_dir in $PATH
13628do
13629 IFS=$as_save_IFS
13630 test -z "$as_dir" && as_dir=.
13631 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013633 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13635 break 2
13636 fi
13637done
13638 done
13639IFS=$as_save_IFS
13640
13641fi
13642fi
13643LIPO=$ac_cv_prog_LIPO
13644if test -n "$LIPO"; then
13645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13646$as_echo "$LIPO" >&6; }
13647else
13648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13649$as_echo "no" >&6; }
13650fi
13651
13652
13653fi
13654if test -z "$ac_cv_prog_LIPO"; then
13655 ac_ct_LIPO=$LIPO
13656 # Extract the first word of "lipo", so it can be a program name with args.
13657set dummy lipo; ac_word=$2
13658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13659$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013660if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013661 $as_echo_n "(cached) " >&6
13662else
13663 if test -n "$ac_ct_LIPO"; then
13664 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13665else
13666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13667for as_dir in $PATH
13668do
13669 IFS=$as_save_IFS
13670 test -z "$as_dir" && as_dir=.
13671 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013672 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013673 ac_cv_prog_ac_ct_LIPO="lipo"
13674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13675 break 2
13676 fi
13677done
13678 done
13679IFS=$as_save_IFS
13680
13681fi
13682fi
13683ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13684if test -n "$ac_ct_LIPO"; then
13685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13686$as_echo "$ac_ct_LIPO" >&6; }
13687else
13688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13689$as_echo "no" >&6; }
13690fi
13691
13692 if test "x$ac_ct_LIPO" = x; then
13693 LIPO=":"
13694 else
13695 case $cross_compiling:$ac_tool_warned in
13696yes:)
13697{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13698$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13699ac_tool_warned=yes ;;
13700esac
13701 LIPO=$ac_ct_LIPO
13702 fi
13703else
13704 LIPO="$ac_cv_prog_LIPO"
13705fi
13706
13707 if test -n "$ac_tool_prefix"; then
13708 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13709set dummy ${ac_tool_prefix}otool; ac_word=$2
13710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13711$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013712if ${ac_cv_prog_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013713 $as_echo_n "(cached) " >&6
13714else
13715 if test -n "$OTOOL"; then
13716 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13717else
13718as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13719for as_dir in $PATH
13720do
13721 IFS=$as_save_IFS
13722 test -z "$as_dir" && as_dir=.
13723 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013724 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013725 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13727 break 2
13728 fi
13729done
13730 done
13731IFS=$as_save_IFS
13732
13733fi
13734fi
13735OTOOL=$ac_cv_prog_OTOOL
13736if test -n "$OTOOL"; then
13737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13738$as_echo "$OTOOL" >&6; }
13739else
13740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13741$as_echo "no" >&6; }
13742fi
13743
13744
13745fi
13746if test -z "$ac_cv_prog_OTOOL"; then
13747 ac_ct_OTOOL=$OTOOL
13748 # Extract the first word of "otool", so it can be a program name with args.
13749set dummy otool; ac_word=$2
13750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13751$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013752if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013753 $as_echo_n "(cached) " >&6
13754else
13755 if test -n "$ac_ct_OTOOL"; then
13756 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13757else
13758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13759for as_dir in $PATH
13760do
13761 IFS=$as_save_IFS
13762 test -z "$as_dir" && as_dir=.
13763 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013764 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013765 ac_cv_prog_ac_ct_OTOOL="otool"
13766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13767 break 2
13768 fi
13769done
13770 done
13771IFS=$as_save_IFS
13772
13773fi
13774fi
13775ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13776if test -n "$ac_ct_OTOOL"; then
13777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13778$as_echo "$ac_ct_OTOOL" >&6; }
13779else
13780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13781$as_echo "no" >&6; }
13782fi
13783
13784 if test "x$ac_ct_OTOOL" = x; then
13785 OTOOL=":"
13786 else
13787 case $cross_compiling:$ac_tool_warned in
13788yes:)
13789{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13790$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13791ac_tool_warned=yes ;;
13792esac
13793 OTOOL=$ac_ct_OTOOL
13794 fi
13795else
13796 OTOOL="$ac_cv_prog_OTOOL"
13797fi
13798
13799 if test -n "$ac_tool_prefix"; then
13800 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13801set dummy ${ac_tool_prefix}otool64; ac_word=$2
13802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13803$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013804if ${ac_cv_prog_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013805 $as_echo_n "(cached) " >&6
13806else
13807 if test -n "$OTOOL64"; then
13808 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13809else
13810as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13811for as_dir in $PATH
13812do
13813 IFS=$as_save_IFS
13814 test -z "$as_dir" && as_dir=.
13815 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013816 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013817 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13819 break 2
13820 fi
13821done
13822 done
13823IFS=$as_save_IFS
13824
13825fi
13826fi
13827OTOOL64=$ac_cv_prog_OTOOL64
13828if test -n "$OTOOL64"; then
13829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13830$as_echo "$OTOOL64" >&6; }
13831else
13832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13833$as_echo "no" >&6; }
13834fi
13835
13836
13837fi
13838if test -z "$ac_cv_prog_OTOOL64"; then
13839 ac_ct_OTOOL64=$OTOOL64
13840 # Extract the first word of "otool64", so it can be a program name with args.
13841set dummy otool64; ac_word=$2
13842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13843$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013844if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013845 $as_echo_n "(cached) " >&6
13846else
13847 if test -n "$ac_ct_OTOOL64"; then
13848 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13849else
13850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13851for as_dir in $PATH
13852do
13853 IFS=$as_save_IFS
13854 test -z "$as_dir" && as_dir=.
13855 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013856 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013857 ac_cv_prog_ac_ct_OTOOL64="otool64"
13858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13859 break 2
13860 fi
13861done
13862 done
13863IFS=$as_save_IFS
13864
13865fi
13866fi
13867ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13868if test -n "$ac_ct_OTOOL64"; then
13869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13870$as_echo "$ac_ct_OTOOL64" >&6; }
13871else
13872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13873$as_echo "no" >&6; }
13874fi
13875
13876 if test "x$ac_ct_OTOOL64" = x; then
13877 OTOOL64=":"
13878 else
13879 case $cross_compiling:$ac_tool_warned in
13880yes:)
13881{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13882$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13883ac_tool_warned=yes ;;
13884esac
13885 OTOOL64=$ac_ct_OTOOL64
13886 fi
13887else
13888 OTOOL64="$ac_cv_prog_OTOOL64"
13889fi
13890
13891
13892
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13918$as_echo_n "checking for -single_module linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013919if ${lt_cv_apple_cc_single_mod+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013920 $as_echo_n "(cached) " >&6
13921else
13922 lt_cv_apple_cc_single_mod=no
13923 if test -z "${LT_MULTI_MODULE}"; then
13924 # By default we will add the -single_module flag. You can override
13925 # by either setting the environment variable LT_MULTI_MODULE
13926 # non-empty at configure time, or by adding -multi_module to the
13927 # link flags.
13928 rm -rf libconftest.dylib*
13929 echo "int foo(void){return 1;}" > conftest.c
13930 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13931-dynamiclib -Wl,-single_module conftest.c" >&5
13932 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13933 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13934 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000013935 # If there is a non-empty error log, and "single_module"
13936 # appears in it, assume the flag caused a linker warning
13937 if test -s conftest.err && $GREP single_module conftest.err; then
13938 cat conftest.err >&5
13939 # Otherwise, if the output was created with a 0 exit code from
13940 # the compiler, it worked.
13941 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
cristy73bd4a52010-10-05 11:24:23 +000013942 lt_cv_apple_cc_single_mod=yes
13943 else
13944 cat conftest.err >&5
13945 fi
13946 rm -rf libconftest.dylib*
13947 rm -f conftest.*
13948 fi
13949fi
13950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13951$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
cristy99bd5232011-12-07 14:38:20 +000013952
cristy73bd4a52010-10-05 11:24:23 +000013953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13954$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013955if ${lt_cv_ld_exported_symbols_list+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013956 $as_echo_n "(cached) " >&6
13957else
13958 lt_cv_ld_exported_symbols_list=no
13959 save_LDFLAGS=$LDFLAGS
13960 echo "_main" > conftest.sym
13961 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13963/* end confdefs.h. */
13964
13965int
13966main ()
13967{
13968
13969 ;
13970 return 0;
13971}
13972_ACEOF
13973if ac_fn_c_try_link "$LINENO"; then :
13974 lt_cv_ld_exported_symbols_list=yes
13975else
13976 lt_cv_ld_exported_symbols_list=no
13977fi
13978rm -f core conftest.err conftest.$ac_objext \
13979 conftest$ac_exeext conftest.$ac_ext
13980 LDFLAGS="$save_LDFLAGS"
13981
13982fi
13983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13984$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
cristy99bd5232011-12-07 14:38:20 +000013985
cristy0c60a692010-11-04 01:09:47 +000013986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13987$as_echo_n "checking for -force_load linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013988if ${lt_cv_ld_force_load+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000013989 $as_echo_n "(cached) " >&6
13990else
13991 lt_cv_ld_force_load=no
13992 cat > conftest.c << _LT_EOF
13993int forced_loaded() { return 2;}
13994_LT_EOF
13995 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13996 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13997 echo "$AR cru libconftest.a conftest.o" >&5
13998 $AR cru libconftest.a conftest.o 2>&5
13999 echo "$RANLIB libconftest.a" >&5
14000 $RANLIB libconftest.a 2>&5
14001 cat > conftest.c << _LT_EOF
14002int main() { return 0;}
14003_LT_EOF
14004 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14005 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14006 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000014007 if test -s conftest.err && $GREP force_load conftest.err; then
14008 cat conftest.err >&5
14009 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
cristy0c60a692010-11-04 01:09:47 +000014010 lt_cv_ld_force_load=yes
14011 else
14012 cat conftest.err >&5
14013 fi
14014 rm -f conftest.err libconftest.a conftest conftest.c
14015 rm -rf conftest.dSYM
14016
14017fi
14018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14019$as_echo "$lt_cv_ld_force_load" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000014020 case $host_os in
14021 rhapsody* | darwin1.[012])
14022 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14023 darwin1.*)
14024 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14025 darwin*) # darwin 5.x on
14026 # if running on 10.5 or later, the deployment target defaults
14027 # to the OS version, if on x86, and 10.4, the deployment
14028 # target defaults to 10.4. Don't you love it?
14029 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14030 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14031 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14032 10.[012]*)
14033 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14034 10.*)
14035 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14036 esac
14037 ;;
14038 esac
14039 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14040 _lt_dar_single_mod='$single_module'
14041 fi
14042 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14043 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14044 else
14045 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14046 fi
cristy0c60a692010-11-04 01:09:47 +000014047 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
cristy73bd4a52010-10-05 11:24:23 +000014048 _lt_dsymutil='~$DSYMUTIL $lib || :'
14049 else
14050 _lt_dsymutil=
14051 fi
14052 ;;
14053 esac
14054
14055for ac_header in dlfcn.h
14056do :
14057 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
14058"
cristyda16f162011-02-19 23:52:17 +000014059if test "x$ac_cv_header_dlfcn_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000014060 cat >>confdefs.h <<_ACEOF
14061#define HAVE_DLFCN_H 1
14062_ACEOF
14063
14064fi
14065
14066done
14067
14068
14069
cristy73bd4a52010-10-05 11:24:23 +000014070
cristyda16f162011-02-19 23:52:17 +000014071func_stripname_cnf ()
14072{
14073 case ${2} in
14074 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
14075 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
14076 esac
14077} # func_stripname_cnf
14078
14079
14080
cristy73bd4a52010-10-05 11:24:23 +000014081
14082
14083# Set options
14084enable_win32_dll=yes
14085
14086case $host in
cristy0c60a692010-11-04 01:09:47 +000014087*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000014088 if test -n "$ac_tool_prefix"; then
14089 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
14090set dummy ${ac_tool_prefix}as; ac_word=$2
14091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14092$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014093if ${ac_cv_prog_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014094 $as_echo_n "(cached) " >&6
14095else
14096 if test -n "$AS"; then
14097 ac_cv_prog_AS="$AS" # Let the user override the test.
14098else
14099as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14100for as_dir in $PATH
14101do
14102 IFS=$as_save_IFS
14103 test -z "$as_dir" && as_dir=.
14104 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000014105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000014106 ac_cv_prog_AS="${ac_tool_prefix}as"
14107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14108 break 2
14109 fi
14110done
14111 done
14112IFS=$as_save_IFS
14113
14114fi
14115fi
14116AS=$ac_cv_prog_AS
14117if test -n "$AS"; then
14118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
14119$as_echo "$AS" >&6; }
14120else
14121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14122$as_echo "no" >&6; }
14123fi
14124
14125
14126fi
14127if test -z "$ac_cv_prog_AS"; then
14128 ac_ct_AS=$AS
14129 # Extract the first word of "as", so it can be a program name with args.
14130set dummy as; ac_word=$2
14131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14132$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014133if ${ac_cv_prog_ac_ct_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014134 $as_echo_n "(cached) " >&6
14135else
14136 if test -n "$ac_ct_AS"; then
14137 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
14138else
14139as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14140for as_dir in $PATH
14141do
14142 IFS=$as_save_IFS
14143 test -z "$as_dir" && as_dir=.
14144 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000014145 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000014146 ac_cv_prog_ac_ct_AS="as"
14147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14148 break 2
14149 fi
14150done
14151 done
14152IFS=$as_save_IFS
14153
14154fi
14155fi
14156ac_ct_AS=$ac_cv_prog_ac_ct_AS
14157if test -n "$ac_ct_AS"; then
14158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
14159$as_echo "$ac_ct_AS" >&6; }
14160else
14161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14162$as_echo "no" >&6; }
14163fi
14164
14165 if test "x$ac_ct_AS" = x; then
14166 AS="false"
14167 else
14168 case $cross_compiling:$ac_tool_warned in
14169yes:)
14170{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14171$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14172ac_tool_warned=yes ;;
14173esac
14174 AS=$ac_ct_AS
14175 fi
14176else
14177 AS="$ac_cv_prog_AS"
14178fi
14179
14180 if test -n "$ac_tool_prefix"; then
14181 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
14182set dummy ${ac_tool_prefix}dlltool; ac_word=$2
14183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14184$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014185if ${ac_cv_prog_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014186 $as_echo_n "(cached) " >&6
14187else
14188 if test -n "$DLLTOOL"; then
14189 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
14190else
14191as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14192for as_dir in $PATH
14193do
14194 IFS=$as_save_IFS
14195 test -z "$as_dir" && as_dir=.
14196 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000014197 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000014198 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
14199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14200 break 2
14201 fi
14202done
14203 done
14204IFS=$as_save_IFS
14205
14206fi
14207fi
14208DLLTOOL=$ac_cv_prog_DLLTOOL
14209if test -n "$DLLTOOL"; then
14210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
14211$as_echo "$DLLTOOL" >&6; }
14212else
14213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14214$as_echo "no" >&6; }
14215fi
14216
14217
14218fi
14219if test -z "$ac_cv_prog_DLLTOOL"; then
14220 ac_ct_DLLTOOL=$DLLTOOL
14221 # Extract the first word of "dlltool", so it can be a program name with args.
14222set dummy dlltool; ac_word=$2
14223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14224$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014225if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014226 $as_echo_n "(cached) " >&6
14227else
14228 if test -n "$ac_ct_DLLTOOL"; then
14229 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
14230else
14231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14232for as_dir in $PATH
14233do
14234 IFS=$as_save_IFS
14235 test -z "$as_dir" && as_dir=.
14236 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000014237 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000014238 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
14239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14240 break 2
14241 fi
14242done
14243 done
14244IFS=$as_save_IFS
14245
14246fi
14247fi
14248ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
14249if test -n "$ac_ct_DLLTOOL"; then
14250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
14251$as_echo "$ac_ct_DLLTOOL" >&6; }
14252else
14253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14254$as_echo "no" >&6; }
14255fi
14256
14257 if test "x$ac_ct_DLLTOOL" = x; then
14258 DLLTOOL="false"
14259 else
14260 case $cross_compiling:$ac_tool_warned in
14261yes:)
14262{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14263$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14264ac_tool_warned=yes ;;
14265esac
14266 DLLTOOL=$ac_ct_DLLTOOL
14267 fi
14268else
14269 DLLTOOL="$ac_cv_prog_DLLTOOL"
14270fi
14271
14272 if test -n "$ac_tool_prefix"; then
14273 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
14274set dummy ${ac_tool_prefix}objdump; ac_word=$2
14275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14276$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014277if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014278 $as_echo_n "(cached) " >&6
14279else
14280 if test -n "$OBJDUMP"; then
14281 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
14282else
14283as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14284for as_dir in $PATH
14285do
14286 IFS=$as_save_IFS
14287 test -z "$as_dir" && as_dir=.
14288 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000014289 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000014290 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
14291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14292 break 2
14293 fi
14294done
14295 done
14296IFS=$as_save_IFS
14297
14298fi
14299fi
14300OBJDUMP=$ac_cv_prog_OBJDUMP
14301if test -n "$OBJDUMP"; then
14302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
14303$as_echo "$OBJDUMP" >&6; }
14304else
14305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14306$as_echo "no" >&6; }
14307fi
14308
14309
14310fi
14311if test -z "$ac_cv_prog_OBJDUMP"; then
14312 ac_ct_OBJDUMP=$OBJDUMP
14313 # Extract the first word of "objdump", so it can be a program name with args.
14314set dummy objdump; ac_word=$2
14315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14316$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014317if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014318 $as_echo_n "(cached) " >&6
14319else
14320 if test -n "$ac_ct_OBJDUMP"; then
14321 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
14322else
14323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14324for as_dir in $PATH
14325do
14326 IFS=$as_save_IFS
14327 test -z "$as_dir" && as_dir=.
14328 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000014329 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000014330 ac_cv_prog_ac_ct_OBJDUMP="objdump"
14331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14332 break 2
14333 fi
14334done
14335 done
14336IFS=$as_save_IFS
14337
14338fi
14339fi
14340ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
14341if test -n "$ac_ct_OBJDUMP"; then
14342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
14343$as_echo "$ac_ct_OBJDUMP" >&6; }
14344else
14345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14346$as_echo "no" >&6; }
14347fi
14348
14349 if test "x$ac_ct_OBJDUMP" = x; then
14350 OBJDUMP="false"
14351 else
14352 case $cross_compiling:$ac_tool_warned in
14353yes:)
14354{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14355$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14356ac_tool_warned=yes ;;
14357esac
14358 OBJDUMP=$ac_ct_OBJDUMP
14359 fi
14360else
14361 OBJDUMP="$ac_cv_prog_OBJDUMP"
14362fi
14363
14364 ;;
14365esac
14366
14367test -z "$AS" && AS=as
14368
14369
14370
14371
14372
14373test -z "$DLLTOOL" && DLLTOOL=dlltool
14374
14375
14376
14377
14378
14379test -z "$OBJDUMP" && OBJDUMP=objdump
14380
14381
14382
14383
14384
14385
14386
14387
14388
14389 # Check whether --enable-shared was given.
14390if test "${enable_shared+set}" = set; then :
14391 enableval=$enable_shared; p=${PACKAGE-default}
14392 case $enableval in
14393 yes) enable_shared=yes ;;
14394 no) enable_shared=no ;;
14395 *)
14396 enable_shared=no
14397 # Look at the argument we got. We use all the common list separators.
14398 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14399 for pkg in $enableval; do
14400 IFS="$lt_save_ifs"
14401 if test "X$pkg" = "X$p"; then
14402 enable_shared=yes
14403 fi
14404 done
14405 IFS="$lt_save_ifs"
14406 ;;
14407 esac
14408else
14409 enable_shared=yes
14410fi
14411
14412
14413
14414
14415
14416
14417
14418
14419
14420 # Check whether --enable-static was given.
14421if test "${enable_static+set}" = set; then :
14422 enableval=$enable_static; p=${PACKAGE-default}
14423 case $enableval in
14424 yes) enable_static=yes ;;
14425 no) enable_static=no ;;
14426 *)
14427 enable_static=no
14428 # Look at the argument we got. We use all the common list separators.
14429 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14430 for pkg in $enableval; do
14431 IFS="$lt_save_ifs"
14432 if test "X$pkg" = "X$p"; then
14433 enable_static=yes
14434 fi
14435 done
14436 IFS="$lt_save_ifs"
14437 ;;
14438 esac
14439else
14440 enable_static=yes
14441fi
14442
14443
14444
14445
14446
14447
14448
14449
14450
14451
14452# Check whether --with-pic was given.
14453if test "${with_pic+set}" = set; then :
cristy99bd5232011-12-07 14:38:20 +000014454 withval=$with_pic; lt_p=${PACKAGE-default}
14455 case $withval in
14456 yes|no) pic_mode=$withval ;;
14457 *)
14458 pic_mode=default
14459 # Look at the argument we got. We use all the common list separators.
14460 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14461 for lt_pkg in $withval; do
14462 IFS="$lt_save_ifs"
14463 if test "X$lt_pkg" = "X$lt_p"; then
14464 pic_mode=yes
14465 fi
14466 done
14467 IFS="$lt_save_ifs"
14468 ;;
14469 esac
cristy73bd4a52010-10-05 11:24:23 +000014470else
14471 pic_mode=default
14472fi
14473
14474
14475test -z "$pic_mode" && pic_mode=default
14476
14477
14478
14479
14480
14481
14482
14483 # Check whether --enable-fast-install was given.
14484if test "${enable_fast_install+set}" = set; then :
14485 enableval=$enable_fast_install; p=${PACKAGE-default}
14486 case $enableval in
14487 yes) enable_fast_install=yes ;;
14488 no) enable_fast_install=no ;;
14489 *)
14490 enable_fast_install=no
14491 # Look at the argument we got. We use all the common list separators.
14492 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14493 for pkg in $enableval; do
14494 IFS="$lt_save_ifs"
14495 if test "X$pkg" = "X$p"; then
14496 enable_fast_install=yes
14497 fi
14498 done
14499 IFS="$lt_save_ifs"
14500 ;;
14501 esac
14502else
14503 enable_fast_install=yes
14504fi
14505
14506
14507
14508
14509
14510
14511
14512
14513
14514
14515
14516# This can be used to rebuild libtool when needed
14517LIBTOOL_DEPS="$ltmain"
14518
14519# Always use our own libtool.
14520LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14521
14522
14523
14524
14525
14526
14527
14528
14529
14530
14531
14532
14533
14534
14535
14536
14537
14538
14539
14540
14541
14542
14543
14544
14545
cristy0c60a692010-11-04 01:09:47 +000014546
cristy99bd5232011-12-07 14:38:20 +000014547
14548
14549
14550
cristy73bd4a52010-10-05 11:24:23 +000014551test -z "$LN_S" && LN_S="ln -s"
14552
14553
14554
14555
14556
14557
14558
14559
14560
14561
14562
14563
14564
14565
14566if test -n "${ZSH_VERSION+set}" ; then
14567 setopt NO_GLOB_SUBST
14568fi
14569
14570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14571$as_echo_n "checking for objdir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014572if ${lt_cv_objdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014573 $as_echo_n "(cached) " >&6
14574else
14575 rm -f .libs 2>/dev/null
14576mkdir .libs 2>/dev/null
14577if test -d .libs; then
14578 lt_cv_objdir=.libs
14579else
14580 # MS-DOS does not allow filenames that begin with a dot.
14581 lt_cv_objdir=_libs
14582fi
14583rmdir .libs 2>/dev/null
14584fi
14585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14586$as_echo "$lt_cv_objdir" >&6; }
14587objdir=$lt_cv_objdir
14588
14589
14590
14591
14592
14593cat >>confdefs.h <<_ACEOF
14594#define LT_OBJDIR "$lt_cv_objdir/"
14595_ACEOF
14596
14597
14598
14599
cristy73bd4a52010-10-05 11:24:23 +000014600case $host_os in
14601aix3*)
14602 # AIX sometimes has problems with the GCC collect2 program. For some
14603 # reason, if we set the COLLECT_NAMES environment variable, the problems
14604 # vanish in a puff of smoke.
14605 if test "X${COLLECT_NAMES+set}" != Xset; then
14606 COLLECT_NAMES=
14607 export COLLECT_NAMES
14608 fi
14609 ;;
14610esac
14611
cristy73bd4a52010-10-05 11:24:23 +000014612# Global variables:
14613ofile=libtool
14614can_build_shared=yes
14615
14616# All known linkers require a `.a' archive for static linking (except MSVC,
14617# which needs '.lib').
14618libext=a
14619
14620with_gnu_ld="$lt_cv_prog_gnu_ld"
14621
14622old_CC="$CC"
14623old_CFLAGS="$CFLAGS"
14624
14625# Set sane defaults for various variables
14626test -z "$CC" && CC=cc
14627test -z "$LTCC" && LTCC=$CC
14628test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14629test -z "$LD" && LD=ld
14630test -z "$ac_objext" && ac_objext=o
14631
14632for cc_temp in $compiler""; do
14633 case $cc_temp in
14634 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14635 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14636 \-*) ;;
14637 *) break;;
14638 esac
14639done
cristy0c60a692010-11-04 01:09:47 +000014640cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000014641
14642
14643# Only perform the check for file, if the check method requires it
14644test -z "$MAGIC_CMD" && MAGIC_CMD=file
14645case $deplibs_check_method in
14646file_magic*)
14647 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14649$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014650if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014651 $as_echo_n "(cached) " >&6
14652else
14653 case $MAGIC_CMD in
14654[\\/*] | ?:[\\/]*)
14655 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14656 ;;
14657*)
14658 lt_save_MAGIC_CMD="$MAGIC_CMD"
14659 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14660 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14661 for ac_dir in $ac_dummy; do
14662 IFS="$lt_save_ifs"
14663 test -z "$ac_dir" && ac_dir=.
14664 if test -f $ac_dir/${ac_tool_prefix}file; then
14665 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14666 if test -n "$file_magic_test_file"; then
14667 case $deplibs_check_method in
14668 "file_magic "*)
14669 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14670 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14671 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14672 $EGREP "$file_magic_regex" > /dev/null; then
14673 :
14674 else
14675 cat <<_LT_EOF 1>&2
14676
14677*** Warning: the command libtool uses to detect shared libraries,
14678*** $file_magic_cmd, produces output that libtool cannot recognize.
14679*** The result is that libtool may fail to recognize shared libraries
14680*** as such. This will affect the creation of libtool libraries that
14681*** depend on shared libraries, but programs linked with such libtool
14682*** libraries will work regardless of this problem. Nevertheless, you
14683*** may want to report the problem to your system manager and/or to
14684*** bug-libtool@gnu.org
14685
14686_LT_EOF
14687 fi ;;
14688 esac
14689 fi
14690 break
14691 fi
14692 done
14693 IFS="$lt_save_ifs"
14694 MAGIC_CMD="$lt_save_MAGIC_CMD"
14695 ;;
14696esac
14697fi
14698
14699MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14700if test -n "$MAGIC_CMD"; then
14701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14702$as_echo "$MAGIC_CMD" >&6; }
14703else
14704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14705$as_echo "no" >&6; }
14706fi
14707
14708
14709
14710
14711
14712if test -z "$lt_cv_path_MAGIC_CMD"; then
14713 if test -n "$ac_tool_prefix"; then
14714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14715$as_echo_n "checking for file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014716if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014717 $as_echo_n "(cached) " >&6
14718else
14719 case $MAGIC_CMD in
14720[\\/*] | ?:[\\/]*)
14721 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14722 ;;
14723*)
14724 lt_save_MAGIC_CMD="$MAGIC_CMD"
14725 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14726 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14727 for ac_dir in $ac_dummy; do
14728 IFS="$lt_save_ifs"
14729 test -z "$ac_dir" && ac_dir=.
14730 if test -f $ac_dir/file; then
14731 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14732 if test -n "$file_magic_test_file"; then
14733 case $deplibs_check_method in
14734 "file_magic "*)
14735 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14736 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14737 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14738 $EGREP "$file_magic_regex" > /dev/null; then
14739 :
14740 else
14741 cat <<_LT_EOF 1>&2
14742
14743*** Warning: the command libtool uses to detect shared libraries,
14744*** $file_magic_cmd, produces output that libtool cannot recognize.
14745*** The result is that libtool may fail to recognize shared libraries
14746*** as such. This will affect the creation of libtool libraries that
14747*** depend on shared libraries, but programs linked with such libtool
14748*** libraries will work regardless of this problem. Nevertheless, you
14749*** may want to report the problem to your system manager and/or to
14750*** bug-libtool@gnu.org
14751
14752_LT_EOF
14753 fi ;;
14754 esac
14755 fi
14756 break
14757 fi
14758 done
14759 IFS="$lt_save_ifs"
14760 MAGIC_CMD="$lt_save_MAGIC_CMD"
14761 ;;
14762esac
14763fi
14764
14765MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14766if test -n "$MAGIC_CMD"; then
14767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14768$as_echo "$MAGIC_CMD" >&6; }
14769else
14770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14771$as_echo "no" >&6; }
14772fi
14773
14774
14775 else
14776 MAGIC_CMD=:
14777 fi
14778fi
14779
14780 fi
14781 ;;
14782esac
14783
14784# Use C for the default configuration in the libtool script
14785
14786lt_save_CC="$CC"
14787ac_ext=c
14788ac_cpp='$CPP $CPPFLAGS'
14789ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14790ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14791ac_compiler_gnu=$ac_cv_c_compiler_gnu
14792
14793
14794# Source file extension for C test sources.
14795ac_ext=c
14796
14797# Object file extension for compiled C test sources.
14798objext=o
14799objext=$objext
14800
14801# Code to be used in simple compile tests
14802lt_simple_compile_test_code="int some_variable = 0;"
14803
14804# Code to be used in simple link tests
14805lt_simple_link_test_code='int main(){return(0);}'
14806
14807
14808
14809
14810
14811
14812
14813# If no C compiler was specified, use CC.
14814LTCC=${LTCC-"$CC"}
14815
14816# If no C compiler flags were specified, use CFLAGS.
14817LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14818
14819# Allow CC to be a program name with arguments.
14820compiler=$CC
14821
14822# Save the default compiler, since it gets overwritten when the other
14823# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14824compiler_DEFAULT=$CC
14825
14826# save warnings/boilerplate of simple test code
14827ac_outfile=conftest.$ac_objext
14828echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14829eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14830_lt_compiler_boilerplate=`cat conftest.err`
14831$RM conftest*
14832
14833ac_outfile=conftest.$ac_objext
14834echo "$lt_simple_link_test_code" >conftest.$ac_ext
14835eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14836_lt_linker_boilerplate=`cat conftest.err`
14837$RM -r conftest*
14838
14839
14840## CAVEAT EMPTOR:
14841## There is no encapsulation within the following macros, do not change
14842## the running order or otherwise move them around unless you know exactly
14843## what you are doing...
14844if test -n "$compiler"; then
14845
14846lt_prog_compiler_no_builtin_flag=
14847
14848if test "$GCC" = yes; then
cristy0c60a692010-11-04 01:09:47 +000014849 case $cc_basename in
14850 nvcc*)
14851 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14852 *)
14853 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14854 esac
cristy73bd4a52010-10-05 11:24:23 +000014855
14856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14857$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014858if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014859 $as_echo_n "(cached) " >&6
14860else
14861 lt_cv_prog_compiler_rtti_exceptions=no
14862 ac_outfile=conftest.$ac_objext
14863 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14864 lt_compiler_flag="-fno-rtti -fno-exceptions"
14865 # Insert the option either (1) after the last *FLAGS variable, or
14866 # (2) before a word containing "conftest.", or (3) at the end.
14867 # Note that $ac_compile itself does not contain backslashes and begins
14868 # with a dollar sign (not a hyphen), so the echo should work correctly.
14869 # The option is referenced via a variable to avoid confusing sed.
14870 lt_compile=`echo "$ac_compile" | $SED \
14871 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14872 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14873 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014874 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014875 (eval "$lt_compile" 2>conftest.err)
14876 ac_status=$?
14877 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014879 if (exit $ac_status) && test -s "$ac_outfile"; then
14880 # The compiler can only warn and ignore the option if not recognized
14881 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000014882 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014883 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14884 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14885 lt_cv_prog_compiler_rtti_exceptions=yes
14886 fi
14887 fi
14888 $RM conftest*
14889
14890fi
14891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14892$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14893
14894if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14895 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14896else
14897 :
14898fi
14899
14900fi
14901
14902
14903
14904
14905
14906
14907 lt_prog_compiler_wl=
14908lt_prog_compiler_pic=
14909lt_prog_compiler_static=
14910
cristy73bd4a52010-10-05 11:24:23 +000014911
14912 if test "$GCC" = yes; then
14913 lt_prog_compiler_wl='-Wl,'
14914 lt_prog_compiler_static='-static'
14915
14916 case $host_os in
14917 aix*)
14918 # All AIX code is PIC.
14919 if test "$host_cpu" = ia64; then
14920 # AIX 5 now supports IA64 processor
14921 lt_prog_compiler_static='-Bstatic'
14922 fi
14923 ;;
14924
14925 amigaos*)
14926 case $host_cpu in
14927 powerpc)
14928 # see comment about AmigaOS4 .so support
14929 lt_prog_compiler_pic='-fPIC'
14930 ;;
14931 m68k)
14932 # FIXME: we need at least 68020 code to build shared libraries, but
14933 # adding the `-m68020' flag to GCC prevents building anything better,
14934 # like `-m68040'.
14935 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14936 ;;
14937 esac
14938 ;;
14939
14940 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14941 # PIC is the default for these OSes.
14942 ;;
14943
14944 mingw* | cygwin* | pw32* | os2* | cegcc*)
14945 # This hack is so that the source file can tell whether it is being
14946 # built for inclusion in a dll (and should export symbols for example).
14947 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14948 # (--disable-auto-import) libraries
14949 lt_prog_compiler_pic='-DDLL_EXPORT'
14950 ;;
14951
14952 darwin* | rhapsody*)
14953 # PIC is the default on this platform
14954 # Common symbols not allowed in MH_DYLIB files
14955 lt_prog_compiler_pic='-fno-common'
14956 ;;
14957
cristy0c60a692010-11-04 01:09:47 +000014958 haiku*)
14959 # PIC is the default for Haiku.
14960 # The "-static" flag exists, but is broken.
14961 lt_prog_compiler_static=
14962 ;;
14963
cristy73bd4a52010-10-05 11:24:23 +000014964 hpux*)
14965 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14966 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14967 # sets the default TLS model and affects inlining.
14968 case $host_cpu in
14969 hppa*64*)
14970 # +Z the default
14971 ;;
14972 *)
14973 lt_prog_compiler_pic='-fPIC'
14974 ;;
14975 esac
14976 ;;
14977
14978 interix[3-9]*)
14979 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14980 # Instead, we relocate shared libraries at runtime.
14981 ;;
14982
14983 msdosdjgpp*)
14984 # Just because we use GCC doesn't mean we suddenly get shared libraries
14985 # on systems that don't support them.
14986 lt_prog_compiler_can_build_shared=no
14987 enable_shared=no
14988 ;;
14989
14990 *nto* | *qnx*)
14991 # QNX uses GNU C++, but need to define -shared option too, otherwise
14992 # it will coredump.
14993 lt_prog_compiler_pic='-fPIC -shared'
14994 ;;
14995
14996 sysv4*MP*)
14997 if test -d /usr/nec; then
14998 lt_prog_compiler_pic=-Kconform_pic
14999 fi
15000 ;;
15001
15002 *)
15003 lt_prog_compiler_pic='-fPIC'
15004 ;;
15005 esac
cristy0c60a692010-11-04 01:09:47 +000015006
15007 case $cc_basename in
15008 nvcc*) # Cuda Compiler Driver 2.2
15009 lt_prog_compiler_wl='-Xlinker '
cristy99bd5232011-12-07 14:38:20 +000015010 if test -n "$lt_prog_compiler_pic"; then
15011 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
15012 fi
cristy0c60a692010-11-04 01:09:47 +000015013 ;;
15014 esac
cristy73bd4a52010-10-05 11:24:23 +000015015 else
15016 # PORTME Check for flag to pass linker flags through the system compiler.
15017 case $host_os in
15018 aix*)
15019 lt_prog_compiler_wl='-Wl,'
15020 if test "$host_cpu" = ia64; then
15021 # AIX 5 now supports IA64 processor
15022 lt_prog_compiler_static='-Bstatic'
15023 else
15024 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15025 fi
15026 ;;
15027
15028 mingw* | cygwin* | pw32* | os2* | cegcc*)
15029 # This hack is so that the source file can tell whether it is being
15030 # built for inclusion in a dll (and should export symbols for example).
15031 lt_prog_compiler_pic='-DDLL_EXPORT'
15032 ;;
15033
15034 hpux9* | hpux10* | hpux11*)
15035 lt_prog_compiler_wl='-Wl,'
15036 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15037 # not for PA HP-UX.
15038 case $host_cpu in
15039 hppa*64*|ia64*)
15040 # +Z the default
15041 ;;
15042 *)
15043 lt_prog_compiler_pic='+Z'
15044 ;;
15045 esac
15046 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15047 lt_prog_compiler_static='${wl}-a ${wl}archive'
15048 ;;
15049
15050 irix5* | irix6* | nonstopux*)
15051 lt_prog_compiler_wl='-Wl,'
15052 # PIC (with -KPIC) is the default.
15053 lt_prog_compiler_static='-non_shared'
15054 ;;
15055
cristy0c60a692010-11-04 01:09:47 +000015056 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000015057 case $cc_basename in
15058 # old Intel for x86_64 which still supported -KPIC.
15059 ecc*)
15060 lt_prog_compiler_wl='-Wl,'
15061 lt_prog_compiler_pic='-KPIC'
15062 lt_prog_compiler_static='-static'
15063 ;;
15064 # icc used to be incompatible with GCC.
15065 # ICC 10 doesn't accept -KPIC any more.
15066 icc* | ifort*)
15067 lt_prog_compiler_wl='-Wl,'
15068 lt_prog_compiler_pic='-fPIC'
15069 lt_prog_compiler_static='-static'
15070 ;;
15071 # Lahey Fortran 8.1.
15072 lf95*)
15073 lt_prog_compiler_wl='-Wl,'
15074 lt_prog_compiler_pic='--shared'
15075 lt_prog_compiler_static='--static'
15076 ;;
cristyda16f162011-02-19 23:52:17 +000015077 nagfor*)
15078 # NAG Fortran compiler
15079 lt_prog_compiler_wl='-Wl,-Wl,,'
15080 lt_prog_compiler_pic='-PIC'
15081 lt_prog_compiler_static='-Bstatic'
15082 ;;
cristy0c60a692010-11-04 01:09:47 +000015083 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
cristy73bd4a52010-10-05 11:24:23 +000015084 # Portland Group compilers (*not* the Pentium gcc compiler,
15085 # which looks to be a dead project)
15086 lt_prog_compiler_wl='-Wl,'
15087 lt_prog_compiler_pic='-fpic'
15088 lt_prog_compiler_static='-Bstatic'
15089 ;;
15090 ccc*)
15091 lt_prog_compiler_wl='-Wl,'
15092 # All Alpha code is PIC.
15093 lt_prog_compiler_static='-non_shared'
15094 ;;
cristy0c60a692010-11-04 01:09:47 +000015095 xl* | bgxl* | bgf* | mpixl*)
15096 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000015097 lt_prog_compiler_wl='-Wl,'
15098 lt_prog_compiler_pic='-qpic'
15099 lt_prog_compiler_static='-qstaticlink'
15100 ;;
15101 *)
15102 case `$CC -V 2>&1 | sed 5q` in
cristy99bd5232011-12-07 14:38:20 +000015103 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
cristy0c60a692010-11-04 01:09:47 +000015104 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15105 lt_prog_compiler_pic='-KPIC'
15106 lt_prog_compiler_static='-Bstatic'
15107 lt_prog_compiler_wl=''
15108 ;;
cristy99bd5232011-12-07 14:38:20 +000015109 *Sun\ F* | *Sun*Fortran*)
15110 lt_prog_compiler_pic='-KPIC'
15111 lt_prog_compiler_static='-Bstatic'
15112 lt_prog_compiler_wl='-Qoption ld '
15113 ;;
cristy73bd4a52010-10-05 11:24:23 +000015114 *Sun\ C*)
15115 # Sun C 5.9
15116 lt_prog_compiler_pic='-KPIC'
15117 lt_prog_compiler_static='-Bstatic'
15118 lt_prog_compiler_wl='-Wl,'
15119 ;;
cristy99bd5232011-12-07 14:38:20 +000015120 *Intel*\ [CF]*Compiler*)
15121 lt_prog_compiler_wl='-Wl,'
15122 lt_prog_compiler_pic='-fPIC'
15123 lt_prog_compiler_static='-static'
15124 ;;
15125 *Portland\ Group*)
15126 lt_prog_compiler_wl='-Wl,'
15127 lt_prog_compiler_pic='-fpic'
15128 lt_prog_compiler_static='-Bstatic'
15129 ;;
cristy73bd4a52010-10-05 11:24:23 +000015130 esac
15131 ;;
15132 esac
15133 ;;
15134
15135 newsos6)
15136 lt_prog_compiler_pic='-KPIC'
15137 lt_prog_compiler_static='-Bstatic'
15138 ;;
15139
15140 *nto* | *qnx*)
15141 # QNX uses GNU C++, but need to define -shared option too, otherwise
15142 # it will coredump.
15143 lt_prog_compiler_pic='-fPIC -shared'
15144 ;;
15145
15146 osf3* | osf4* | osf5*)
15147 lt_prog_compiler_wl='-Wl,'
15148 # All OSF/1 code is PIC.
15149 lt_prog_compiler_static='-non_shared'
15150 ;;
15151
15152 rdos*)
15153 lt_prog_compiler_static='-non_shared'
15154 ;;
15155
15156 solaris*)
15157 lt_prog_compiler_pic='-KPIC'
15158 lt_prog_compiler_static='-Bstatic'
15159 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000015160 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
cristy73bd4a52010-10-05 11:24:23 +000015161 lt_prog_compiler_wl='-Qoption ld ';;
15162 *)
15163 lt_prog_compiler_wl='-Wl,';;
15164 esac
15165 ;;
15166
15167 sunos4*)
15168 lt_prog_compiler_wl='-Qoption ld '
15169 lt_prog_compiler_pic='-PIC'
15170 lt_prog_compiler_static='-Bstatic'
15171 ;;
15172
15173 sysv4 | sysv4.2uw2* | sysv4.3*)
15174 lt_prog_compiler_wl='-Wl,'
15175 lt_prog_compiler_pic='-KPIC'
15176 lt_prog_compiler_static='-Bstatic'
15177 ;;
15178
15179 sysv4*MP*)
15180 if test -d /usr/nec ;then
15181 lt_prog_compiler_pic='-Kconform_pic'
15182 lt_prog_compiler_static='-Bstatic'
15183 fi
15184 ;;
15185
15186 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15187 lt_prog_compiler_wl='-Wl,'
15188 lt_prog_compiler_pic='-KPIC'
15189 lt_prog_compiler_static='-Bstatic'
15190 ;;
15191
15192 unicos*)
15193 lt_prog_compiler_wl='-Wl,'
15194 lt_prog_compiler_can_build_shared=no
15195 ;;
15196
15197 uts4*)
15198 lt_prog_compiler_pic='-pic'
15199 lt_prog_compiler_static='-Bstatic'
15200 ;;
15201
15202 *)
15203 lt_prog_compiler_can_build_shared=no
15204 ;;
15205 esac
15206 fi
15207
15208case $host_os in
15209 # For platforms which do not support PIC, -DPIC is meaningless:
15210 *djgpp*)
15211 lt_prog_compiler_pic=
15212 ;;
15213 *)
15214 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15215 ;;
15216esac
cristy73bd4a52010-10-05 11:24:23 +000015217
cristyda16f162011-02-19 23:52:17 +000015218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15219$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15220if ${lt_cv_prog_compiler_pic+:} false; then :
15221 $as_echo_n "(cached) " >&6
15222else
15223 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
15224fi
15225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
15226$as_echo "$lt_cv_prog_compiler_pic" >&6; }
15227lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
cristy73bd4a52010-10-05 11:24:23 +000015228
15229#
15230# Check to make sure the PIC flag actually works.
15231#
15232if test -n "$lt_prog_compiler_pic"; then
15233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15234$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015235if ${lt_cv_prog_compiler_pic_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000015236 $as_echo_n "(cached) " >&6
15237else
15238 lt_cv_prog_compiler_pic_works=no
15239 ac_outfile=conftest.$ac_objext
15240 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15241 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15242 # Insert the option either (1) after the last *FLAGS variable, or
15243 # (2) before a word containing "conftest.", or (3) at the end.
15244 # Note that $ac_compile itself does not contain backslashes and begins
15245 # with a dollar sign (not a hyphen), so the echo should work correctly.
15246 # The option is referenced via a variable to avoid confusing sed.
15247 lt_compile=`echo "$ac_compile" | $SED \
15248 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15249 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15250 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000015251 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000015252 (eval "$lt_compile" 2>conftest.err)
15253 ac_status=$?
15254 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000015255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000015256 if (exit $ac_status) && test -s "$ac_outfile"; then
15257 # The compiler can only warn and ignore the option if not recognized
15258 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000015259 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000015260 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15261 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15262 lt_cv_prog_compiler_pic_works=yes
15263 fi
15264 fi
15265 $RM conftest*
15266
15267fi
15268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15269$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15270
15271if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15272 case $lt_prog_compiler_pic in
15273 "" | " "*) ;;
15274 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15275 esac
15276else
15277 lt_prog_compiler_pic=
15278 lt_prog_compiler_can_build_shared=no
15279fi
15280
15281fi
15282
15283
15284
15285
15286
15287
cristyda16f162011-02-19 23:52:17 +000015288
15289
15290
15291
15292
cristy73bd4a52010-10-05 11:24:23 +000015293#
15294# Check to make sure the static flag actually works.
15295#
15296wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15298$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015299if ${lt_cv_prog_compiler_static_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000015300 $as_echo_n "(cached) " >&6
15301else
15302 lt_cv_prog_compiler_static_works=no
15303 save_LDFLAGS="$LDFLAGS"
15304 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15305 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15306 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15307 # The linker can only warn and ignore the option if not recognized
15308 # So say no if there are warnings
15309 if test -s conftest.err; then
15310 # Append any errors to the config.log.
15311 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000015312 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000015313 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15314 if diff conftest.exp conftest.er2 >/dev/null; then
15315 lt_cv_prog_compiler_static_works=yes
15316 fi
15317 else
15318 lt_cv_prog_compiler_static_works=yes
15319 fi
15320 fi
15321 $RM -r conftest*
15322 LDFLAGS="$save_LDFLAGS"
15323
15324fi
15325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15326$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15327
15328if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15329 :
15330else
15331 lt_prog_compiler_static=
15332fi
15333
15334
15335
15336
15337
15338
15339
15340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15341$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015342if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000015343 $as_echo_n "(cached) " >&6
15344else
15345 lt_cv_prog_compiler_c_o=no
15346 $RM -r conftest 2>/dev/null
15347 mkdir conftest
15348 cd conftest
15349 mkdir out
15350 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15351
15352 lt_compiler_flag="-o out/conftest2.$ac_objext"
15353 # Insert the option either (1) after the last *FLAGS variable, or
15354 # (2) before a word containing "conftest.", or (3) at the end.
15355 # Note that $ac_compile itself does not contain backslashes and begins
15356 # with a dollar sign (not a hyphen), so the echo should work correctly.
15357 lt_compile=`echo "$ac_compile" | $SED \
15358 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15359 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15360 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000015361 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000015362 (eval "$lt_compile" 2>out/conftest.err)
15363 ac_status=$?
15364 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000015365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000015366 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15367 then
15368 # The compiler can only warn and ignore the option if not recognized
15369 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000015370 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000015371 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15372 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15373 lt_cv_prog_compiler_c_o=yes
15374 fi
15375 fi
15376 chmod u+w . 2>&5
15377 $RM conftest*
15378 # SGI C++ compiler will create directory out/ii_files/ for
15379 # template instantiation
15380 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15381 $RM out/* && rmdir out
15382 cd ..
15383 $RM -r conftest
15384 $RM conftest*
15385
15386fi
15387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15388$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15389
15390
15391
15392
15393
15394
15395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15396$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015397if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000015398 $as_echo_n "(cached) " >&6
15399else
15400 lt_cv_prog_compiler_c_o=no
15401 $RM -r conftest 2>/dev/null
15402 mkdir conftest
15403 cd conftest
15404 mkdir out
15405 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15406
15407 lt_compiler_flag="-o out/conftest2.$ac_objext"
15408 # Insert the option either (1) after the last *FLAGS variable, or
15409 # (2) before a word containing "conftest.", or (3) at the end.
15410 # Note that $ac_compile itself does not contain backslashes and begins
15411 # with a dollar sign (not a hyphen), so the echo should work correctly.
15412 lt_compile=`echo "$ac_compile" | $SED \
15413 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15414 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15415 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000015416 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000015417 (eval "$lt_compile" 2>out/conftest.err)
15418 ac_status=$?
15419 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000015420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000015421 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15422 then
15423 # The compiler can only warn and ignore the option if not recognized
15424 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000015425 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000015426 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15427 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15428 lt_cv_prog_compiler_c_o=yes
15429 fi
15430 fi
15431 chmod u+w . 2>&5
15432 $RM conftest*
15433 # SGI C++ compiler will create directory out/ii_files/ for
15434 # template instantiation
15435 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15436 $RM out/* && rmdir out
15437 cd ..
15438 $RM -r conftest
15439 $RM conftest*
15440
15441fi
15442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15443$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15444
15445
15446
15447
15448hard_links="nottested"
15449if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15450 # do not overwrite the value of need_locks provided by the user
15451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15452$as_echo_n "checking if we can lock with hard links... " >&6; }
15453 hard_links=yes
15454 $RM conftest*
15455 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15456 touch conftest.a
15457 ln conftest.a conftest.b 2>&5 || hard_links=no
15458 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15460$as_echo "$hard_links" >&6; }
15461 if test "$hard_links" = no; then
15462 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15463$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15464 need_locks=warn
15465 fi
15466else
15467 need_locks=no
15468fi
15469
15470
15471
15472
15473
15474
15475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15476$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15477
15478 runpath_var=
15479 allow_undefined_flag=
15480 always_export_symbols=no
15481 archive_cmds=
15482 archive_expsym_cmds=
15483 compiler_needs_object=no
15484 enable_shared_with_static_runtimes=no
15485 export_dynamic_flag_spec=
15486 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15487 hardcode_automatic=no
15488 hardcode_direct=no
15489 hardcode_direct_absolute=no
15490 hardcode_libdir_flag_spec=
cristy73bd4a52010-10-05 11:24:23 +000015491 hardcode_libdir_separator=
15492 hardcode_minus_L=no
15493 hardcode_shlibpath_var=unsupported
15494 inherit_rpath=no
15495 link_all_deplibs=unknown
15496 module_cmds=
15497 module_expsym_cmds=
15498 old_archive_from_new_cmds=
15499 old_archive_from_expsyms_cmds=
15500 thread_safe_flag_spec=
15501 whole_archive_flag_spec=
15502 # include_expsyms should be a list of space-separated symbols to be *always*
15503 # included in the symbol list
15504 include_expsyms=
15505 # exclude_expsyms can be an extended regexp of symbols to exclude
15506 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15507 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15508 # as well as any symbol that contains `d'.
15509 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15510 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15511 # platforms (ab)use it in PIC code, but their linkers get confused if
15512 # the symbol is explicitly referenced. Since portable code cannot
15513 # rely on this symbol name, it's probably fine to never include it in
15514 # preloaded symbol tables.
15515 # Exclude shared library initialization/finalization symbols.
15516 extract_expsyms_cmds=
15517
15518 case $host_os in
15519 cygwin* | mingw* | pw32* | cegcc*)
15520 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15521 # When not using gcc, we currently assume that we are using
15522 # Microsoft Visual C++.
15523 if test "$GCC" != yes; then
15524 with_gnu_ld=no
15525 fi
15526 ;;
15527 interix*)
15528 # we just hope/assume this is gcc and not c89 (= MSVC++)
15529 with_gnu_ld=yes
15530 ;;
15531 openbsd*)
15532 with_gnu_ld=no
15533 ;;
15534 esac
15535
15536 ld_shlibs=yes
cristy0c60a692010-11-04 01:09:47 +000015537
15538 # On some targets, GNU ld is compatible enough with the native linker
15539 # that we're better off using the native interface for both.
15540 lt_use_gnu_ld_interface=no
cristy73bd4a52010-10-05 11:24:23 +000015541 if test "$with_gnu_ld" = yes; then
cristy0c60a692010-11-04 01:09:47 +000015542 case $host_os in
15543 aix*)
15544 # The AIX port of GNU ld has always aspired to compatibility
15545 # with the native linker. However, as the warning in the GNU ld
15546 # block says, versions before 2.19.5* couldn't really create working
15547 # shared libraries, regardless of the interface used.
15548 case `$LD -v 2>&1` in
15549 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15550 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15551 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15552 *)
15553 lt_use_gnu_ld_interface=yes
15554 ;;
15555 esac
15556 ;;
15557 *)
15558 lt_use_gnu_ld_interface=yes
15559 ;;
15560 esac
15561 fi
15562
15563 if test "$lt_use_gnu_ld_interface" = yes; then
cristy73bd4a52010-10-05 11:24:23 +000015564 # If archive_cmds runs LD, not CC, wlarc should be empty
15565 wlarc='${wl}'
15566
15567 # Set some defaults for GNU ld with shared library support. These
15568 # are reset later if shared libraries are not supported. Putting them
15569 # here allows them to be overridden if necessary.
15570 runpath_var=LD_RUN_PATH
15571 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15572 export_dynamic_flag_spec='${wl}--export-dynamic'
15573 # ancient GNU ld didn't support --whole-archive et. al.
15574 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15575 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15576 else
15577 whole_archive_flag_spec=
15578 fi
15579 supports_anon_versioning=no
15580 case `$LD -v 2>&1` in
cristy0c60a692010-11-04 01:09:47 +000015581 *GNU\ gold*) supports_anon_versioning=yes ;;
cristy73bd4a52010-10-05 11:24:23 +000015582 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15583 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15584 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15585 *\ 2.11.*) ;; # other 2.11 versions
15586 *) supports_anon_versioning=yes ;;
15587 esac
15588
15589 # See if GNU ld supports shared libraries.
15590 case $host_os in
15591 aix[3-9]*)
15592 # On AIX/PPC, the GNU linker is very broken
15593 if test "$host_cpu" != ia64; then
15594 ld_shlibs=no
15595 cat <<_LT_EOF 1>&2
15596
cristy0c60a692010-11-04 01:09:47 +000015597*** Warning: the GNU linker, at least up to release 2.19, is reported
cristy73bd4a52010-10-05 11:24:23 +000015598*** to be unable to reliably create shared libraries on AIX.
15599*** Therefore, libtool is disabling shared libraries support. If you
cristy0c60a692010-11-04 01:09:47 +000015600*** really care for shared libraries, you may want to install binutils
15601*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15602*** You will then need to restart the configuration process.
cristy73bd4a52010-10-05 11:24:23 +000015603
15604_LT_EOF
15605 fi
15606 ;;
15607
15608 amigaos*)
15609 case $host_cpu in
15610 powerpc)
15611 # see comment about AmigaOS4 .so support
15612 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15613 archive_expsym_cmds=''
15614 ;;
15615 m68k)
15616 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)'
15617 hardcode_libdir_flag_spec='-L$libdir'
15618 hardcode_minus_L=yes
15619 ;;
15620 esac
15621 ;;
15622
15623 beos*)
15624 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15625 allow_undefined_flag=unsupported
15626 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15627 # support --undefined. This deserves some investigation. FIXME
15628 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15629 else
15630 ld_shlibs=no
15631 fi
15632 ;;
15633
15634 cygwin* | mingw* | pw32* | cegcc*)
15635 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15636 # as there is no search path for DLLs.
15637 hardcode_libdir_flag_spec='-L$libdir'
cristy0c60a692010-11-04 01:09:47 +000015638 export_dynamic_flag_spec='${wl}--export-all-symbols'
cristy73bd4a52010-10-05 11:24:23 +000015639 allow_undefined_flag=unsupported
15640 always_export_symbols=no
15641 enable_shared_with_static_runtimes=yes
cristyda16f162011-02-19 23:52:17 +000015642 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'
15643 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 +000015644
15645 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15646 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15647 # If the export-symbols file already is a .def file (1st line
15648 # is EXPORTS), use it as is; otherwise, prepend...
15649 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15650 cp $export_symbols $output_objdir/$soname.def;
15651 else
15652 echo EXPORTS > $output_objdir/$soname.def;
15653 cat $export_symbols >> $output_objdir/$soname.def;
15654 fi~
15655 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15656 else
15657 ld_shlibs=no
15658 fi
15659 ;;
15660
cristy0c60a692010-11-04 01:09:47 +000015661 haiku*)
15662 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15663 link_all_deplibs=yes
15664 ;;
15665
cristy73bd4a52010-10-05 11:24:23 +000015666 interix[3-9]*)
15667 hardcode_direct=no
15668 hardcode_shlibpath_var=no
15669 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15670 export_dynamic_flag_spec='${wl}-E'
15671 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15672 # Instead, shared libraries are loaded at an image base (0x10000000 by
15673 # default) and relocated if they conflict, which is a slow very memory
15674 # consuming and fragmenting process. To avoid this, we pick a random,
15675 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15676 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15677 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15678 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'
15679 ;;
15680
cristy0c60a692010-11-04 01:09:47 +000015681 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000015682 tmp_diet=no
15683 if test "$host_os" = linux-dietlibc; then
15684 case $cc_basename in
15685 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15686 esac
15687 fi
15688 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15689 && test "$tmp_diet" = no
15690 then
cristyda16f162011-02-19 23:52:17 +000015691 tmp_addflag=' $pic_flag'
cristy73bd4a52010-10-05 11:24:23 +000015692 tmp_sharedflag='-shared'
15693 case $cc_basename,$host_cpu in
15694 pgcc*) # Portland Group C compiler
cristy0c60a692010-11-04 01:09:47 +000015695 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 +000015696 tmp_addflag=' $pic_flag'
15697 ;;
cristy0c60a692010-11-04 01:09:47 +000015698 pgf77* | pgf90* | pgf95* | pgfortran*)
15699 # Portland Group f77 and f90 compilers
15700 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 +000015701 tmp_addflag=' $pic_flag -Mnomain' ;;
15702 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15703 tmp_addflag=' -i_dynamic' ;;
15704 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15705 tmp_addflag=' -i_dynamic -nofor_main' ;;
15706 ifc* | ifort*) # Intel Fortran compiler
15707 tmp_addflag=' -nofor_main' ;;
15708 lf95*) # Lahey Fortran 8.1
15709 whole_archive_flag_spec=
15710 tmp_sharedflag='--shared' ;;
cristy0c60a692010-11-04 01:09:47 +000015711 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cristy73bd4a52010-10-05 11:24:23 +000015712 tmp_sharedflag='-qmkshrobj'
15713 tmp_addflag= ;;
cristy0c60a692010-11-04 01:09:47 +000015714 nvcc*) # Cuda Compiler Driver 2.2
15715 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'
15716 compiler_needs_object=yes
15717 ;;
cristy73bd4a52010-10-05 11:24:23 +000015718 esac
15719 case `$CC -V 2>&1 | sed 5q` in
15720 *Sun\ C*) # Sun C 5.9
cristy0c60a692010-11-04 01:09:47 +000015721 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 +000015722 compiler_needs_object=yes
15723 tmp_sharedflag='-G' ;;
15724 *Sun\ F*) # Sun Fortran 8.3
15725 tmp_sharedflag='-G' ;;
15726 esac
15727 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15728
15729 if test "x$supports_anon_versioning" = xyes; then
15730 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15731 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15732 echo "local: *; };" >> $output_objdir/$libname.ver~
15733 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15734 fi
15735
15736 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000015737 xlf* | bgf* | bgxlf* | mpixlf*)
cristy73bd4a52010-10-05 11:24:23 +000015738 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15739 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
cristy99bd5232011-12-07 14:38:20 +000015740 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
cristy0c60a692010-11-04 01:09:47 +000015741 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000015742 if test "x$supports_anon_versioning" = xyes; then
15743 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15744 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15745 echo "local: *; };" >> $output_objdir/$libname.ver~
cristy0c60a692010-11-04 01:09:47 +000015746 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000015747 fi
15748 ;;
15749 esac
15750 else
15751 ld_shlibs=no
15752 fi
15753 ;;
15754
15755 netbsd*)
15756 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15757 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15758 wlarc=
15759 else
cristyda16f162011-02-19 23:52:17 +000015760 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15761 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 +000015762 fi
15763 ;;
15764
15765 solaris*)
15766 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15767 ld_shlibs=no
15768 cat <<_LT_EOF 1>&2
15769
15770*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15771*** create shared libraries on Solaris systems. Therefore, libtool
15772*** is disabling shared libraries support. We urge you to upgrade GNU
15773*** binutils to release 2.9.1 or newer. Another option is to modify
15774*** your PATH or compiler configuration so that the native linker is
15775*** used, and then restart.
15776
15777_LT_EOF
15778 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000015779 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15780 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 +000015781 else
15782 ld_shlibs=no
15783 fi
15784 ;;
15785
15786 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15787 case `$LD -v 2>&1` in
15788 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15789 ld_shlibs=no
15790 cat <<_LT_EOF 1>&2
15791
15792*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15793*** reliably create shared libraries on SCO systems. Therefore, libtool
15794*** is disabling shared libraries support. We urge you to upgrade GNU
15795*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15796*** your PATH or compiler configuration so that the native linker is
15797*** used, and then restart.
15798
15799_LT_EOF
15800 ;;
15801 *)
15802 # For security reasons, it is highly recommended that you always
15803 # use absolute paths for naming shared libraries, and exclude the
15804 # DT_RUNPATH tag from executables and libraries. But doing so
15805 # requires that you compile everything twice, which is a pain.
15806 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15807 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15808 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15809 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15810 else
15811 ld_shlibs=no
15812 fi
15813 ;;
15814 esac
15815 ;;
15816
15817 sunos4*)
15818 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15819 wlarc=
15820 hardcode_direct=yes
15821 hardcode_shlibpath_var=no
15822 ;;
15823
15824 *)
15825 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000015826 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15827 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 +000015828 else
15829 ld_shlibs=no
15830 fi
15831 ;;
15832 esac
15833
15834 if test "$ld_shlibs" = no; then
15835 runpath_var=
15836 hardcode_libdir_flag_spec=
15837 export_dynamic_flag_spec=
15838 whole_archive_flag_spec=
15839 fi
15840 else
15841 # PORTME fill in a description of your system's linker (not GNU ld)
15842 case $host_os in
15843 aix3*)
15844 allow_undefined_flag=unsupported
15845 always_export_symbols=yes
15846 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'
15847 # Note: this linker hardcodes the directories in LIBPATH if there
15848 # are no directories specified by -L.
15849 hardcode_minus_L=yes
15850 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15851 # Neither direct hardcoding nor static linking is supported with a
15852 # broken collect2.
15853 hardcode_direct=unsupported
15854 fi
15855 ;;
15856
15857 aix[4-9]*)
15858 if test "$host_cpu" = ia64; then
15859 # On IA64, the linker does run time linking by default, so we don't
15860 # have to do anything special.
15861 aix_use_runtimelinking=no
15862 exp_sym_flag='-Bexport'
15863 no_entry_flag=""
15864 else
15865 # If we're using GNU nm, then we don't want the "-C" option.
15866 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000015867 # Also, AIX nm treats weak defined symbols like other global
15868 # defined symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000015869 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000015870 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 +000015871 else
15872 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'
15873 fi
15874 aix_use_runtimelinking=no
15875
15876 # Test if we are trying to use run time linking or normal
15877 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15878 # need to do runtime linking.
15879 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15880 for ld_flag in $LDFLAGS; do
15881 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15882 aix_use_runtimelinking=yes
15883 break
15884 fi
15885 done
15886 ;;
15887 esac
15888
15889 exp_sym_flag='-bexport'
15890 no_entry_flag='-bnoentry'
15891 fi
15892
15893 # When large executables or shared objects are built, AIX ld can
15894 # have problems creating the table of contents. If linking a library
15895 # or program results in "error TOC overflow" add -mminimal-toc to
15896 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15897 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15898
15899 archive_cmds=''
15900 hardcode_direct=yes
15901 hardcode_direct_absolute=yes
15902 hardcode_libdir_separator=':'
15903 link_all_deplibs=yes
15904 file_list_spec='${wl}-f,'
15905
15906 if test "$GCC" = yes; then
15907 case $host_os in aix4.[012]|aix4.[012].*)
15908 # We only want to do this on AIX 4.2 and lower, the check
15909 # below for broken collect2 doesn't work under 4.3+
15910 collect2name=`${CC} -print-prog-name=collect2`
15911 if test -f "$collect2name" &&
15912 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15913 then
15914 # We have reworked collect2
15915 :
15916 else
15917 # We have old collect2
15918 hardcode_direct=unsupported
15919 # It fails to find uninstalled libraries when the uninstalled
15920 # path is not listed in the libpath. Setting hardcode_minus_L
15921 # to unsupported forces relinking
15922 hardcode_minus_L=yes
15923 hardcode_libdir_flag_spec='-L$libdir'
15924 hardcode_libdir_separator=
15925 fi
15926 ;;
15927 esac
15928 shared_flag='-shared'
15929 if test "$aix_use_runtimelinking" = yes; then
15930 shared_flag="$shared_flag "'${wl}-G'
15931 fi
15932 else
15933 # not using gcc
15934 if test "$host_cpu" = ia64; then
15935 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15936 # chokes on -Wl,-G. The following line is correct:
15937 shared_flag='-G'
15938 else
15939 if test "$aix_use_runtimelinking" = yes; then
15940 shared_flag='${wl}-G'
15941 else
15942 shared_flag='${wl}-bM:SRE'
15943 fi
15944 fi
15945 fi
15946
15947 export_dynamic_flag_spec='${wl}-bexpall'
15948 # It seems that -bexpall does not export symbols beginning with
15949 # underscore (_), so it is better to generate a list of symbols to export.
15950 always_export_symbols=yes
15951 if test "$aix_use_runtimelinking" = yes; then
15952 # Warning - without using the other runtime loading flags (-brtl),
15953 # -berok will link without error, but may produce a broken library.
15954 allow_undefined_flag='-berok'
15955 # Determine the default libpath from the value encoded in an
15956 # empty executable.
cristyda16f162011-02-19 23:52:17 +000015957 if test "${lt_cv_aix_libpath+set}" = set; then
15958 aix_libpath=$lt_cv_aix_libpath
15959else
15960 if ${lt_cv_aix_libpath_+:} false; then :
15961 $as_echo_n "(cached) " >&6
15962else
15963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015964/* end confdefs.h. */
15965
15966int
15967main ()
15968{
15969
15970 ;
15971 return 0;
15972}
15973_ACEOF
15974if ac_fn_c_try_link "$LINENO"; then :
15975
cristyda16f162011-02-19 23:52:17 +000015976 lt_aix_libpath_sed='
15977 /Import File Strings/,/^$/ {
15978 /^0/ {
15979 s/^0 *\([^ ]*\) *$/\1/
15980 p
15981 }
15982 }'
15983 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15984 # Check for a 64-bit object if we didn't find anything.
15985 if test -z "$lt_cv_aix_libpath_"; then
15986 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15987 fi
cristy73bd4a52010-10-05 11:24:23 +000015988fi
15989rm -f core conftest.err conftest.$ac_objext \
15990 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015991 if test -z "$lt_cv_aix_libpath_"; then
15992 lt_cv_aix_libpath_="/usr/lib:/lib"
15993 fi
15994
15995fi
15996
15997 aix_libpath=$lt_cv_aix_libpath_
15998fi
cristy73bd4a52010-10-05 11:24:23 +000015999
16000 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cristy0c60a692010-11-04 01:09:47 +000016001 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 +000016002 else
16003 if test "$host_cpu" = ia64; then
16004 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
16005 allow_undefined_flag="-z nodefs"
16006 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"
16007 else
16008 # Determine the default libpath from the value encoded in an
16009 # empty executable.
cristyda16f162011-02-19 23:52:17 +000016010 if test "${lt_cv_aix_libpath+set}" = set; then
16011 aix_libpath=$lt_cv_aix_libpath
16012else
16013 if ${lt_cv_aix_libpath_+:} false; then :
16014 $as_echo_n "(cached) " >&6
16015else
16016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000016017/* end confdefs.h. */
16018
16019int
16020main ()
16021{
16022
16023 ;
16024 return 0;
16025}
16026_ACEOF
16027if ac_fn_c_try_link "$LINENO"; then :
16028
cristyda16f162011-02-19 23:52:17 +000016029 lt_aix_libpath_sed='
16030 /Import File Strings/,/^$/ {
16031 /^0/ {
16032 s/^0 *\([^ ]*\) *$/\1/
16033 p
16034 }
16035 }'
16036 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16037 # Check for a 64-bit object if we didn't find anything.
16038 if test -z "$lt_cv_aix_libpath_"; then
16039 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16040 fi
cristy73bd4a52010-10-05 11:24:23 +000016041fi
16042rm -f core conftest.err conftest.$ac_objext \
16043 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000016044 if test -z "$lt_cv_aix_libpath_"; then
16045 lt_cv_aix_libpath_="/usr/lib:/lib"
16046 fi
16047
16048fi
16049
16050 aix_libpath=$lt_cv_aix_libpath_
16051fi
cristy73bd4a52010-10-05 11:24:23 +000016052
16053 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16054 # Warning - without using the other run time loading flags,
16055 # -berok will link without error, but may produce a broken library.
16056 no_undefined_flag=' ${wl}-bernotok'
16057 allow_undefined_flag=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000016058 if test "$with_gnu_ld" = yes; then
16059 # We only use this code for GNU lds that support --whole-archive.
16060 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16061 else
16062 # Exported symbols can be pulled into shared objects from archives
16063 whole_archive_flag_spec='$convenience'
16064 fi
cristy73bd4a52010-10-05 11:24:23 +000016065 archive_cmds_need_lc=yes
16066 # This is similar to how AIX traditionally builds its shared libraries.
16067 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'
16068 fi
16069 fi
16070 ;;
16071
16072 amigaos*)
16073 case $host_cpu in
16074 powerpc)
16075 # see comment about AmigaOS4 .so support
16076 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16077 archive_expsym_cmds=''
16078 ;;
16079 m68k)
16080 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)'
16081 hardcode_libdir_flag_spec='-L$libdir'
16082 hardcode_minus_L=yes
16083 ;;
16084 esac
16085 ;;
16086
16087 bsdi[45]*)
16088 export_dynamic_flag_spec=-rdynamic
16089 ;;
16090
16091 cygwin* | mingw* | pw32* | cegcc*)
16092 # When not using gcc, we currently assume that we are using
16093 # Microsoft Visual C++.
16094 # hardcode_libdir_flag_spec is actually meaningless, as there is
16095 # no search path for DLLs.
cristyda16f162011-02-19 23:52:17 +000016096 case $cc_basename in
16097 cl*)
16098 # Native MSVC
16099 hardcode_libdir_flag_spec=' '
16100 allow_undefined_flag=unsupported
16101 always_export_symbols=yes
16102 file_list_spec='@'
16103 # Tell ltmain to make .lib files, not .a files.
16104 libext=lib
16105 # Tell ltmain to make .dll files, not .so files.
16106 shrext_cmds=".dll"
16107 # FIXME: Setting linknames here is a bad hack.
16108 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
16109 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16110 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
16111 else
16112 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
16113 fi~
16114 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
16115 linknames='
16116 # The linker will not automatically build a static lib if we build a DLL.
16117 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
16118 enable_shared_with_static_runtimes=yes
cristy99bd5232011-12-07 14:38:20 +000016119 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
cristyda16f162011-02-19 23:52:17 +000016120 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16121 # Don't use ranlib
16122 old_postinstall_cmds='chmod 644 $oldlib'
16123 postlink_cmds='lt_outputfile="@OUTPUT@"~
16124 lt_tool_outputfile="@TOOL_OUTPUT@"~
16125 case $lt_outputfile in
16126 *.exe|*.EXE) ;;
16127 *)
16128 lt_outputfile="$lt_outputfile.exe"
16129 lt_tool_outputfile="$lt_tool_outputfile.exe"
16130 ;;
16131 esac~
16132 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
16133 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
16134 $RM "$lt_outputfile.manifest";
16135 fi'
16136 ;;
16137 *)
16138 # Assume MSVC wrapper
16139 hardcode_libdir_flag_spec=' '
16140 allow_undefined_flag=unsupported
16141 # Tell ltmain to make .lib files, not .a files.
16142 libext=lib
16143 # Tell ltmain to make .dll files, not .so files.
16144 shrext_cmds=".dll"
16145 # FIXME: Setting linknames here is a bad hack.
16146 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16147 # The linker will automatically build a .lib file if we build a DLL.
16148 old_archive_from_new_cmds='true'
16149 # FIXME: Should let the user specify the lib program.
16150 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16151 enable_shared_with_static_runtimes=yes
16152 ;;
16153 esac
cristy73bd4a52010-10-05 11:24:23 +000016154 ;;
16155
16156 darwin* | rhapsody*)
16157
16158
16159 archive_cmds_need_lc=no
16160 hardcode_direct=no
16161 hardcode_automatic=yes
16162 hardcode_shlibpath_var=unsupported
cristy0c60a692010-11-04 01:09:47 +000016163 if test "$lt_cv_ld_force_load" = "yes"; then
16164 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 +000016165
cristy0c60a692010-11-04 01:09:47 +000016166 else
16167 whole_archive_flag_spec=''
16168 fi
cristy73bd4a52010-10-05 11:24:23 +000016169 link_all_deplibs=yes
16170 allow_undefined_flag="$_lt_dar_allow_undefined"
16171 case $cc_basename in
16172 ifort*) _lt_dar_can_shared=yes ;;
16173 *) _lt_dar_can_shared=$GCC ;;
16174 esac
16175 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000016176 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000016177 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16178 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16179 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}"
16180 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}"
16181
16182 else
16183 ld_shlibs=no
16184 fi
16185
16186 ;;
16187
16188 dgux*)
16189 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16190 hardcode_libdir_flag_spec='-L$libdir'
16191 hardcode_shlibpath_var=no
16192 ;;
16193
cristy73bd4a52010-10-05 11:24:23 +000016194 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16195 # support. Future versions do this automatically, but an explicit c++rt0.o
16196 # does not break anything, and helps significantly (at the cost of a little
16197 # extra space).
16198 freebsd2.2*)
16199 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16200 hardcode_libdir_flag_spec='-R$libdir'
16201 hardcode_direct=yes
16202 hardcode_shlibpath_var=no
16203 ;;
16204
16205 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
cristy99bd5232011-12-07 14:38:20 +000016206 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000016207 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16208 hardcode_direct=yes
16209 hardcode_minus_L=yes
16210 hardcode_shlibpath_var=no
16211 ;;
16212
16213 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16214 freebsd* | dragonfly*)
cristyda16f162011-02-19 23:52:17 +000016215 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000016216 hardcode_libdir_flag_spec='-R$libdir'
16217 hardcode_direct=yes
16218 hardcode_shlibpath_var=no
16219 ;;
16220
16221 hpux9*)
16222 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000016223 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 +000016224 else
16225 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'
16226 fi
16227 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16228 hardcode_libdir_separator=:
16229 hardcode_direct=yes
16230
16231 # hardcode_minus_L: Not really in the search PATH,
16232 # but as the default location of the library.
16233 hardcode_minus_L=yes
16234 export_dynamic_flag_spec='${wl}-E'
16235 ;;
16236
16237 hpux10*)
cristy0c60a692010-11-04 01:09:47 +000016238 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000016239 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 +000016240 else
16241 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16242 fi
16243 if test "$with_gnu_ld" = no; then
16244 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
cristy73bd4a52010-10-05 11:24:23 +000016245 hardcode_libdir_separator=:
16246 hardcode_direct=yes
16247 hardcode_direct_absolute=yes
16248 export_dynamic_flag_spec='${wl}-E'
16249 # hardcode_minus_L: Not really in the search PATH,
16250 # but as the default location of the library.
16251 hardcode_minus_L=yes
16252 fi
16253 ;;
16254
16255 hpux11*)
cristy0c60a692010-11-04 01:09:47 +000016256 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristy73bd4a52010-10-05 11:24:23 +000016257 case $host_cpu in
16258 hppa*64*)
16259 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16260 ;;
16261 ia64*)
cristyda16f162011-02-19 23:52:17 +000016262 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000016263 ;;
16264 *)
cristyda16f162011-02-19 23:52:17 +000016265 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 +000016266 ;;
16267 esac
16268 else
16269 case $host_cpu in
16270 hppa*64*)
16271 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16272 ;;
16273 ia64*)
16274 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16275 ;;
16276 *)
cristy0c60a692010-11-04 01:09:47 +000016277
16278 # Older versions of the 11.00 compiler do not understand -b yet
16279 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16281$as_echo_n "checking if $CC understands -b... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016282if ${lt_cv_prog_compiler__b+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000016283 $as_echo_n "(cached) " >&6
16284else
16285 lt_cv_prog_compiler__b=no
16286 save_LDFLAGS="$LDFLAGS"
16287 LDFLAGS="$LDFLAGS -b"
16288 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16289 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16290 # The linker can only warn and ignore the option if not recognized
16291 # So say no if there are warnings
16292 if test -s conftest.err; then
16293 # Append any errors to the config.log.
16294 cat conftest.err 1>&5
16295 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16296 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16297 if diff conftest.exp conftest.er2 >/dev/null; then
16298 lt_cv_prog_compiler__b=yes
16299 fi
16300 else
16301 lt_cv_prog_compiler__b=yes
16302 fi
16303 fi
16304 $RM -r conftest*
16305 LDFLAGS="$save_LDFLAGS"
16306
16307fi
16308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16309$as_echo "$lt_cv_prog_compiler__b" >&6; }
16310
16311if test x"$lt_cv_prog_compiler__b" = xyes; then
16312 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16313else
16314 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16315fi
16316
cristy73bd4a52010-10-05 11:24:23 +000016317 ;;
16318 esac
16319 fi
16320 if test "$with_gnu_ld" = no; then
16321 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16322 hardcode_libdir_separator=:
16323
16324 case $host_cpu in
16325 hppa*64*|ia64*)
16326 hardcode_direct=no
16327 hardcode_shlibpath_var=no
16328 ;;
16329 *)
16330 hardcode_direct=yes
16331 hardcode_direct_absolute=yes
16332 export_dynamic_flag_spec='${wl}-E'
16333
16334 # hardcode_minus_L: Not really in the search PATH,
16335 # but as the default location of the library.
16336 hardcode_minus_L=yes
16337 ;;
16338 esac
16339 fi
16340 ;;
16341
16342 irix5* | irix6* | nonstopux*)
16343 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000016344 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 +000016345 # Try to use the -exported_symbol ld option, if it does not
16346 # work, assume that -exports_file does not work either and
16347 # implicitly export all symbols.
cristyda16f162011-02-19 23:52:17 +000016348 # This should be the same for all languages, so no per-tag cache variable.
16349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
16350$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
16351if ${lt_cv_irix_exported_symbol+:} false; then :
16352 $as_echo_n "(cached) " >&6
16353else
16354 save_LDFLAGS="$LDFLAGS"
16355 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000016357/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000016358int foo (void) { return 0; }
cristy73bd4a52010-10-05 11:24:23 +000016359_ACEOF
16360if ac_fn_c_try_link "$LINENO"; then :
cristyda16f162011-02-19 23:52:17 +000016361 lt_cv_irix_exported_symbol=yes
16362else
16363 lt_cv_irix_exported_symbol=no
cristy73bd4a52010-10-05 11:24:23 +000016364fi
16365rm -f core conftest.err conftest.$ac_objext \
16366 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000016367 LDFLAGS="$save_LDFLAGS"
16368fi
16369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
16370$as_echo "$lt_cv_irix_exported_symbol" >&6; }
16371 if test "$lt_cv_irix_exported_symbol" = yes; then
16372 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'
16373 fi
cristy73bd4a52010-10-05 11:24:23 +000016374 else
cristy0c60a692010-11-04 01:09:47 +000016375 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'
16376 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 +000016377 fi
16378 archive_cmds_need_lc='no'
16379 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16380 hardcode_libdir_separator=:
16381 inherit_rpath=yes
16382 link_all_deplibs=yes
16383 ;;
16384
16385 netbsd*)
16386 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16387 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16388 else
16389 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16390 fi
16391 hardcode_libdir_flag_spec='-R$libdir'
16392 hardcode_direct=yes
16393 hardcode_shlibpath_var=no
16394 ;;
16395
16396 newsos6)
16397 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16398 hardcode_direct=yes
16399 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16400 hardcode_libdir_separator=:
16401 hardcode_shlibpath_var=no
16402 ;;
16403
16404 *nto* | *qnx*)
16405 ;;
16406
16407 openbsd*)
16408 if test -f /usr/libexec/ld.so; then
16409 hardcode_direct=yes
16410 hardcode_shlibpath_var=no
16411 hardcode_direct_absolute=yes
16412 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16413 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16414 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16415 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16416 export_dynamic_flag_spec='${wl}-E'
16417 else
16418 case $host_os in
16419 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16420 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16421 hardcode_libdir_flag_spec='-R$libdir'
16422 ;;
16423 *)
16424 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16425 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16426 ;;
16427 esac
16428 fi
16429 else
16430 ld_shlibs=no
16431 fi
16432 ;;
16433
16434 os2*)
16435 hardcode_libdir_flag_spec='-L$libdir'
16436 hardcode_minus_L=yes
16437 allow_undefined_flag=unsupported
cristy0c60a692010-11-04 01:09:47 +000016438 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 +000016439 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16440 ;;
16441
16442 osf3*)
16443 if test "$GCC" = yes; then
16444 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000016445 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 +000016446 else
16447 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000016448 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 +000016449 fi
16450 archive_cmds_need_lc='no'
16451 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16452 hardcode_libdir_separator=:
16453 ;;
16454
16455 osf4* | osf5*) # as osf3* with the addition of -msym flag
16456 if test "$GCC" = yes; then
16457 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristyda16f162011-02-19 23:52:17 +000016458 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 +000016459 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16460 else
16461 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000016462 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 +000016463 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 +000016464 $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 +000016465
16466 # Both c and cxx compiler support -rpath directly
16467 hardcode_libdir_flag_spec='-rpath $libdir'
16468 fi
16469 archive_cmds_need_lc='no'
16470 hardcode_libdir_separator=:
16471 ;;
16472
16473 solaris*)
16474 no_undefined_flag=' -z defs'
16475 if test "$GCC" = yes; then
16476 wlarc='${wl}'
cristyda16f162011-02-19 23:52:17 +000016477 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 +000016478 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 +000016479 $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 +000016480 else
16481 case `$CC -V 2>&1` in
16482 *"Compilers 5.0"*)
16483 wlarc=''
16484 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16485 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16486 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16487 ;;
16488 *)
16489 wlarc='${wl}'
16490 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16491 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16492 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16493 ;;
16494 esac
16495 fi
16496 hardcode_libdir_flag_spec='-R$libdir'
16497 hardcode_shlibpath_var=no
16498 case $host_os in
16499 solaris2.[0-5] | solaris2.[0-5].*) ;;
16500 *)
16501 # The compiler driver will combine and reorder linker options,
16502 # but understands `-z linker_flag'. GCC discards it without `$wl',
16503 # but is careful enough not to reorder.
16504 # Supported since Solaris 2.6 (maybe 2.5.1?)
16505 if test "$GCC" = yes; then
16506 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16507 else
16508 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16509 fi
16510 ;;
16511 esac
16512 link_all_deplibs=yes
16513 ;;
16514
16515 sunos4*)
16516 if test "x$host_vendor" = xsequent; then
16517 # Use $CC to link under sequent, because it throws in some extra .o
16518 # files that make .init and .fini sections work.
16519 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16520 else
16521 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16522 fi
16523 hardcode_libdir_flag_spec='-L$libdir'
16524 hardcode_direct=yes
16525 hardcode_minus_L=yes
16526 hardcode_shlibpath_var=no
16527 ;;
16528
16529 sysv4)
16530 case $host_vendor in
16531 sni)
16532 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16533 hardcode_direct=yes # is this really true???
16534 ;;
16535 siemens)
16536 ## LD is ld it makes a PLAMLIB
16537 ## CC just makes a GrossModule.
16538 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16539 reload_cmds='$CC -r -o $output$reload_objs'
16540 hardcode_direct=no
16541 ;;
16542 motorola)
16543 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16544 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16545 ;;
16546 esac
16547 runpath_var='LD_RUN_PATH'
16548 hardcode_shlibpath_var=no
16549 ;;
16550
16551 sysv4.3*)
16552 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16553 hardcode_shlibpath_var=no
16554 export_dynamic_flag_spec='-Bexport'
16555 ;;
16556
16557 sysv4*MP*)
16558 if test -d /usr/nec; then
16559 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16560 hardcode_shlibpath_var=no
16561 runpath_var=LD_RUN_PATH
16562 hardcode_runpath_var=yes
16563 ld_shlibs=yes
16564 fi
16565 ;;
16566
16567 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16568 no_undefined_flag='${wl}-z,text'
16569 archive_cmds_need_lc=no
16570 hardcode_shlibpath_var=no
16571 runpath_var='LD_RUN_PATH'
16572
16573 if test "$GCC" = yes; then
16574 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16575 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16576 else
16577 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16578 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16579 fi
16580 ;;
16581
16582 sysv5* | sco3.2v5* | sco5v6*)
16583 # Note: We can NOT use -z defs as we might desire, because we do not
16584 # link with -lc, and that would cause any symbols used from libc to
16585 # always be unresolved, which means just about no library would
16586 # ever link correctly. If we're not using GNU ld we use -z text
16587 # though, which does catch some bad symbols but isn't as heavy-handed
16588 # as -z defs.
16589 no_undefined_flag='${wl}-z,text'
16590 allow_undefined_flag='${wl}-z,nodefs'
16591 archive_cmds_need_lc=no
16592 hardcode_shlibpath_var=no
16593 hardcode_libdir_flag_spec='${wl}-R,$libdir'
16594 hardcode_libdir_separator=':'
16595 link_all_deplibs=yes
16596 export_dynamic_flag_spec='${wl}-Bexport'
16597 runpath_var='LD_RUN_PATH'
16598
16599 if test "$GCC" = yes; then
16600 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16601 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16602 else
16603 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16604 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16605 fi
16606 ;;
16607
16608 uts4*)
16609 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16610 hardcode_libdir_flag_spec='-L$libdir'
16611 hardcode_shlibpath_var=no
16612 ;;
16613
16614 *)
16615 ld_shlibs=no
16616 ;;
16617 esac
16618
16619 if test x$host_vendor = xsni; then
16620 case $host in
16621 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16622 export_dynamic_flag_spec='${wl}-Blargedynsym'
16623 ;;
16624 esac
16625 fi
16626 fi
16627
16628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16629$as_echo "$ld_shlibs" >&6; }
16630test "$ld_shlibs" = no && can_build_shared=no
16631
16632with_gnu_ld=$with_gnu_ld
16633
16634
16635
16636
16637
16638
16639
16640
16641
16642
16643
16644
16645
16646
16647
16648#
16649# Do we need to explicitly link libc?
16650#
16651case "x$archive_cmds_need_lc" in
16652x|xyes)
16653 # Assume -lc should be added
16654 archive_cmds_need_lc=yes
16655
16656 if test "$enable_shared" = yes && test "$GCC" = yes; then
16657 case $archive_cmds in
16658 *'~'*)
16659 # FIXME: we may have to deal with multi-command sequences.
16660 ;;
16661 '$CC '*)
16662 # Test whether the compiler implicitly links with -lc since on some
16663 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16664 # to ld, don't add -lc before -lgcc.
16665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16666$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016667if ${lt_cv_archive_cmds_need_lc+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000016668 $as_echo_n "(cached) " >&6
16669else
16670 $RM conftest*
16671 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000016672
cristy0c60a692010-11-04 01:09:47 +000016673 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000016674 (eval $ac_compile) 2>&5
16675 ac_status=$?
16676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16677 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000016678 soname=conftest
16679 lib=conftest
16680 libobjs=conftest.$ac_objext
16681 deplibs=
16682 wl=$lt_prog_compiler_wl
16683 pic_flag=$lt_prog_compiler_pic
16684 compiler_flags=-v
16685 linker_flags=-v
16686 verstring=
16687 output_objdir=.
16688 libname=conftest
16689 lt_save_allow_undefined_flag=$allow_undefined_flag
16690 allow_undefined_flag=
16691 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 +000016692 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16693 ac_status=$?
16694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16695 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000016696 then
16697 lt_cv_archive_cmds_need_lc=no
16698 else
16699 lt_cv_archive_cmds_need_lc=yes
16700 fi
16701 allow_undefined_flag=$lt_save_allow_undefined_flag
16702 else
16703 cat conftest.err 1>&5
16704 fi
16705 $RM conftest*
16706
16707fi
16708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16709$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16710 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
cristy73bd4a52010-10-05 11:24:23 +000016711 ;;
16712 esac
16713 fi
16714 ;;
16715esac
16716
16717
16718
16719
16720
16721
16722
16723
16724
16725
16726
16727
16728
16729
16730
16731
16732
16733
16734
16735
16736
16737
16738
16739
16740
16741
16742
16743
16744
16745
16746
16747
16748
16749
16750
16751
16752
16753
16754
16755
16756
16757
16758
16759
16760
16761
16762
16763
16764
16765
16766
16767
16768
16769
16770
16771
16772
16773
16774
16775
16776
16777
16778
16779
16780
16781
16782
16783
16784
16785
16786
16787
16788
16789
16790
16791
16792
16793
16794
16795
16796
16797
16798
16799
16800
16801
16802
16803
16804
16805
16806
16807
16808
16809
16810
16811
16812
16813
16814
16815
16816
16817
16818
16819
16820
16821
16822
16823
16824
16825
16826
16827
16828
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
cristy73bd4a52010-10-05 11:24:23 +000016868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16869$as_echo_n "checking dynamic linker characteristics... " >&6; }
16870
16871if test "$GCC" = yes; then
16872 case $host_os in
16873 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16874 *) lt_awk_arg="/^libraries:/" ;;
16875 esac
cristy0c60a692010-11-04 01:09:47 +000016876 case $host_os in
16877 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16878 *) lt_sed_strip_eq="s,=/,/,g" ;;
16879 esac
16880 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16881 case $lt_search_path_spec in
16882 *\;*)
cristy73bd4a52010-10-05 11:24:23 +000016883 # if the path contains ";" then we assume it to be the separator
16884 # otherwise default to the standard path separator (i.e. ":") - it is
16885 # assumed that no part of a normal pathname contains ";" but that should
16886 # okay in the real world where ";" in dirpaths is itself problematic.
cristy0c60a692010-11-04 01:09:47 +000016887 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16888 ;;
16889 *)
16890 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16891 ;;
16892 esac
cristy73bd4a52010-10-05 11:24:23 +000016893 # Ok, now we have the path, separated by spaces, we can step through it
16894 # and add multilib dir if necessary.
16895 lt_tmp_lt_search_path_spec=
16896 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16897 for lt_sys_path in $lt_search_path_spec; do
16898 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16899 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16900 else
16901 test -d "$lt_sys_path" && \
16902 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16903 fi
16904 done
cristy0c60a692010-11-04 01:09:47 +000016905 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
cristy73bd4a52010-10-05 11:24:23 +000016906BEGIN {RS=" "; FS="/|\n";} {
16907 lt_foo="";
16908 lt_count=0;
16909 for (lt_i = NF; lt_i > 0; lt_i--) {
16910 if ($lt_i != "" && $lt_i != ".") {
16911 if ($lt_i == "..") {
16912 lt_count++;
16913 } else {
16914 if (lt_count == 0) {
16915 lt_foo="/" $lt_i lt_foo;
16916 } else {
16917 lt_count--;
16918 }
16919 }
16920 }
16921 }
16922 if (lt_foo != "") { lt_freq[lt_foo]++; }
16923 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16924}'`
cristy0c60a692010-11-04 01:09:47 +000016925 # AWK program above erroneously prepends '/' to C:/dos/paths
16926 # for these hosts.
16927 case $host_os in
16928 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16929 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16930 esac
16931 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
cristy73bd4a52010-10-05 11:24:23 +000016932else
16933 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16934fi
16935library_names_spec=
16936libname_spec='lib$name'
16937soname_spec=
16938shrext_cmds=".so"
16939postinstall_cmds=
16940postuninstall_cmds=
16941finish_cmds=
16942finish_eval=
16943shlibpath_var=
16944shlibpath_overrides_runpath=unknown
16945version_type=none
16946dynamic_linker="$host_os ld.so"
16947sys_lib_dlsearch_path_spec="/lib /usr/lib"
16948need_lib_prefix=unknown
16949hardcode_into_libs=no
16950
16951# when you set need_version to no, make sure it does not cause -set_version
16952# flags to be left without arguments
16953need_version=unknown
16954
16955case $host_os in
16956aix3*)
cristy99bd5232011-12-07 14:38:20 +000016957 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016958 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16959 shlibpath_var=LIBPATH
16960
16961 # AIX 3 has no versioning support, so we append a major version to the name.
16962 soname_spec='${libname}${release}${shared_ext}$major'
16963 ;;
16964
16965aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000016966 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016967 need_lib_prefix=no
16968 need_version=no
16969 hardcode_into_libs=yes
16970 if test "$host_cpu" = ia64; then
16971 # AIX 5 supports IA64
16972 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16973 shlibpath_var=LD_LIBRARY_PATH
16974 else
16975 # With GCC up to 2.95.x, collect2 would create an import file
16976 # for dependence libraries. The import file would start with
16977 # the line `#! .'. This would cause the generated library to
16978 # depend on `.', always an invalid library. This was fixed in
16979 # development snapshots of GCC prior to 3.0.
16980 case $host_os in
16981 aix4 | aix4.[01] | aix4.[01].*)
16982 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16983 echo ' yes '
16984 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16985 :
16986 else
16987 can_build_shared=no
16988 fi
16989 ;;
16990 esac
16991 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16992 # soname into executable. Probably we can add versioning support to
16993 # collect2, so additional links can be useful in future.
16994 if test "$aix_use_runtimelinking" = yes; then
16995 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16996 # instead of lib<name>.a to let people know that these are not
16997 # typical AIX shared libraries.
16998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16999 else
17000 # We preserve .a as extension for shared libraries through AIX4.2
17001 # and later when we are not doing run time linking.
17002 library_names_spec='${libname}${release}.a $libname.a'
17003 soname_spec='${libname}${release}${shared_ext}$major'
17004 fi
17005 shlibpath_var=LIBPATH
17006 fi
17007 ;;
17008
17009amigaos*)
17010 case $host_cpu in
17011 powerpc)
17012 # Since July 2007 AmigaOS4 officially supports .so libraries.
17013 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17015 ;;
17016 m68k)
17017 library_names_spec='$libname.ixlibrary $libname.a'
17018 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000017019 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 +000017020 ;;
17021 esac
17022 ;;
17023
17024beos*)
17025 library_names_spec='${libname}${shared_ext}'
17026 dynamic_linker="$host_os ld.so"
17027 shlibpath_var=LIBRARY_PATH
17028 ;;
17029
17030bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000017031 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017032 need_version=no
17033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17034 soname_spec='${libname}${release}${shared_ext}$major'
17035 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17036 shlibpath_var=LD_LIBRARY_PATH
17037 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17038 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17039 # the default ld.so.conf also contains /usr/contrib/lib and
17040 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17041 # libtool to hard-code these into programs
17042 ;;
17043
17044cygwin* | mingw* | pw32* | cegcc*)
17045 version_type=windows
17046 shrext_cmds=".dll"
17047 need_version=no
17048 need_lib_prefix=no
17049
cristyda16f162011-02-19 23:52:17 +000017050 case $GCC,$cc_basename in
17051 yes,*)
17052 # gcc
cristy73bd4a52010-10-05 11:24:23 +000017053 library_names_spec='$libname.dll.a'
17054 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17055 postinstall_cmds='base_file=`basename \${file}`~
17056 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17057 dldir=$destdir/`dirname \$dlpath`~
17058 test -d \$dldir || mkdir -p \$dldir~
17059 $install_prog $dir/$dlname \$dldir/$dlname~
17060 chmod a+x \$dldir/$dlname~
17061 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17062 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17063 fi'
17064 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17065 dlpath=$dir/\$dldll~
17066 $RM \$dlpath'
17067 shlibpath_overrides_runpath=yes
17068
17069 case $host_os in
17070 cygwin*)
17071 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17072 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000017073
17074 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
cristy73bd4a52010-10-05 11:24:23 +000017075 ;;
17076 mingw* | cegcc*)
17077 # MinGW DLLs use traditional 'lib' prefix
17078 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000017079 ;;
17080 pw32*)
17081 # pw32 DLLs use 'pw' prefix rather than 'lib'
17082 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17083 ;;
17084 esac
cristyda16f162011-02-19 23:52:17 +000017085 dynamic_linker='Win32 ld.exe'
17086 ;;
17087
17088 *,cl*)
17089 # Native MSVC
17090 libname_spec='$name'
17091 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17092 library_names_spec='${libname}.dll.lib'
17093
17094 case $build_os in
17095 mingw*)
17096 sys_lib_search_path_spec=
17097 lt_save_ifs=$IFS
17098 IFS=';'
17099 for lt_path in $LIB
17100 do
17101 IFS=$lt_save_ifs
17102 # Let DOS variable expansion print the short 8.3 style file name.
17103 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17104 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17105 done
17106 IFS=$lt_save_ifs
17107 # Convert to MSYS style.
17108 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17109 ;;
17110 cygwin*)
17111 # Convert to unix form, then to dos form, then back to unix form
17112 # but this time dos style (no spaces!) so that the unix form looks
17113 # like /cygdrive/c/PROGRA~1:/cygdr...
17114 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17115 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17116 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17117 ;;
17118 *)
17119 sys_lib_search_path_spec="$LIB"
17120 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17121 # It is most probably a Windows format PATH.
17122 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17123 else
17124 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17125 fi
17126 # FIXME: find the short name or the path components, as spaces are
17127 # common. (e.g. "Program Files" -> "PROGRA~1")
17128 ;;
17129 esac
17130
17131 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17132 postinstall_cmds='base_file=`basename \${file}`~
17133 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17134 dldir=$destdir/`dirname \$dlpath`~
17135 test -d \$dldir || mkdir -p \$dldir~
17136 $install_prog $dir/$dlname \$dldir/$dlname'
17137 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17138 dlpath=$dir/\$dldll~
17139 $RM \$dlpath'
17140 shlibpath_overrides_runpath=yes
17141 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000017142 ;;
17143
17144 *)
cristyda16f162011-02-19 23:52:17 +000017145 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000017146 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000017147 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000017148 ;;
17149 esac
cristy73bd4a52010-10-05 11:24:23 +000017150 # FIXME: first we should search . and the directory the executable is in
17151 shlibpath_var=PATH
17152 ;;
17153
17154darwin* | rhapsody*)
17155 dynamic_linker="$host_os dyld"
17156 version_type=darwin
17157 need_lib_prefix=no
17158 need_version=no
17159 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17160 soname_spec='${libname}${release}${major}$shared_ext'
17161 shlibpath_overrides_runpath=yes
17162 shlibpath_var=DYLD_LIBRARY_PATH
17163 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17164
17165 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17166 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17167 ;;
17168
17169dgux*)
cristy99bd5232011-12-07 14:38:20 +000017170 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017171 need_lib_prefix=no
17172 need_version=no
17173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17174 soname_spec='${libname}${release}${shared_ext}$major'
17175 shlibpath_var=LD_LIBRARY_PATH
17176 ;;
17177
cristy73bd4a52010-10-05 11:24:23 +000017178freebsd* | dragonfly*)
17179 # DragonFly does not have aout. When/if they implement a new
17180 # versioning mechanism, adjust this.
17181 if test -x /usr/bin/objformat; then
17182 objformat=`/usr/bin/objformat`
17183 else
17184 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000017185 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000017186 *) objformat=elf ;;
17187 esac
17188 fi
17189 version_type=freebsd-$objformat
17190 case $version_type in
17191 freebsd-elf*)
17192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17193 need_version=no
17194 need_lib_prefix=no
17195 ;;
17196 freebsd-*)
17197 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17198 need_version=yes
17199 ;;
17200 esac
17201 shlibpath_var=LD_LIBRARY_PATH
17202 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000017203 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000017204 shlibpath_overrides_runpath=yes
17205 ;;
17206 freebsd3.[01]* | freebsdelf3.[01]*)
17207 shlibpath_overrides_runpath=yes
17208 hardcode_into_libs=yes
17209 ;;
17210 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17211 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17212 shlibpath_overrides_runpath=no
17213 hardcode_into_libs=yes
17214 ;;
17215 *) # from 4.6 on, and DragonFly
17216 shlibpath_overrides_runpath=yes
17217 hardcode_into_libs=yes
17218 ;;
17219 esac
17220 ;;
17221
17222gnu*)
cristy99bd5232011-12-07 14:38:20 +000017223 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017224 need_lib_prefix=no
17225 need_version=no
17226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17227 soname_spec='${libname}${release}${shared_ext}$major'
17228 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000017229 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000017230 hardcode_into_libs=yes
17231 ;;
17232
cristy0c60a692010-11-04 01:09:47 +000017233haiku*)
cristy99bd5232011-12-07 14:38:20 +000017234 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000017235 need_lib_prefix=no
17236 need_version=no
17237 dynamic_linker="$host_os runtime_loader"
17238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17239 soname_spec='${libname}${release}${shared_ext}$major'
17240 shlibpath_var=LIBRARY_PATH
17241 shlibpath_overrides_runpath=yes
17242 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
17243 hardcode_into_libs=yes
17244 ;;
17245
cristy73bd4a52010-10-05 11:24:23 +000017246hpux9* | hpux10* | hpux11*)
17247 # Give a soname corresponding to the major version so that dld.sl refuses to
17248 # link against other versions.
17249 version_type=sunos
17250 need_lib_prefix=no
17251 need_version=no
17252 case $host_cpu in
17253 ia64*)
17254 shrext_cmds='.so'
17255 hardcode_into_libs=yes
17256 dynamic_linker="$host_os dld.so"
17257 shlibpath_var=LD_LIBRARY_PATH
17258 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17260 soname_spec='${libname}${release}${shared_ext}$major'
17261 if test "X$HPUX_IA64_MODE" = X32; then
17262 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17263 else
17264 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17265 fi
17266 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17267 ;;
17268 hppa*64*)
17269 shrext_cmds='.sl'
17270 hardcode_into_libs=yes
17271 dynamic_linker="$host_os dld.sl"
17272 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17273 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17275 soname_spec='${libname}${release}${shared_ext}$major'
17276 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17277 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17278 ;;
17279 *)
17280 shrext_cmds='.sl'
17281 dynamic_linker="$host_os dld.sl"
17282 shlibpath_var=SHLIB_PATH
17283 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17285 soname_spec='${libname}${release}${shared_ext}$major'
17286 ;;
17287 esac
cristy0c60a692010-11-04 01:09:47 +000017288 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000017289 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000017290 # or fails outright, so override atomically:
17291 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000017292 ;;
17293
17294interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000017295 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017296 need_lib_prefix=no
17297 need_version=no
17298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17299 soname_spec='${libname}${release}${shared_ext}$major'
17300 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17301 shlibpath_var=LD_LIBRARY_PATH
17302 shlibpath_overrides_runpath=no
17303 hardcode_into_libs=yes
17304 ;;
17305
17306irix5* | irix6* | nonstopux*)
17307 case $host_os in
17308 nonstopux*) version_type=nonstopux ;;
17309 *)
17310 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000017311 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017312 else
17313 version_type=irix
17314 fi ;;
17315 esac
17316 need_lib_prefix=no
17317 need_version=no
17318 soname_spec='${libname}${release}${shared_ext}$major'
17319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17320 case $host_os in
17321 irix5* | nonstopux*)
17322 libsuff= shlibsuff=
17323 ;;
17324 *)
17325 case $LD in # libtool.m4 will add one of these switches to LD
17326 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17327 libsuff= shlibsuff= libmagic=32-bit;;
17328 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17329 libsuff=32 shlibsuff=N32 libmagic=N32;;
17330 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17331 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17332 *) libsuff= shlibsuff= libmagic=never-match;;
17333 esac
17334 ;;
17335 esac
17336 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17337 shlibpath_overrides_runpath=no
17338 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17339 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17340 hardcode_into_libs=yes
17341 ;;
17342
17343# No shared lib support for Linux oldld, aout, or coff.
17344linux*oldld* | linux*aout* | linux*coff*)
17345 dynamic_linker=no
17346 ;;
17347
cristy99bd5232011-12-07 14:38:20 +000017348# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000017349linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000017350 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017351 need_lib_prefix=no
17352 need_version=no
17353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17354 soname_spec='${libname}${release}${shared_ext}$major'
17355 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17356 shlibpath_var=LD_LIBRARY_PATH
17357 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000017358
cristy73bd4a52010-10-05 11:24:23 +000017359 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000017360 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000017361 $as_echo_n "(cached) " >&6
17362else
17363 lt_cv_shlibpath_overrides_runpath=no
17364 save_LDFLAGS=$LDFLAGS
17365 save_libdir=$libdir
17366 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17367 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000017369/* end confdefs.h. */
17370
17371int
17372main ()
17373{
17374
17375 ;
17376 return 0;
17377}
17378_ACEOF
17379if ac_fn_c_try_link "$LINENO"; then :
17380 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000017381 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000017382fi
17383fi
17384rm -f core conftest.err conftest.$ac_objext \
17385 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017386 LDFLAGS=$save_LDFLAGS
17387 libdir=$save_libdir
17388
17389fi
17390
17391 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000017392
17393 # This implies no fast_install, which is unacceptable.
17394 # Some rework will be needed to allow for fast_install
17395 # before this can be enabled.
17396 hardcode_into_libs=yes
17397
17398 # Add ABI-specific directories to the system library path.
17399 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
17400
17401 # Append ld.so.conf contents to the search path
17402 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000017403 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 +000017404 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000017405
cristy73bd4a52010-10-05 11:24:23 +000017406 fi
17407
17408 # We used to test for /lib/ld.so.1 and disable shared libraries on
17409 # powerpc, because MkLinux only supported shared libraries with the
17410 # GNU dynamic linker. Since this was broken with cross compilers,
17411 # most powerpc-linux boxes support dynamic linking these days and
17412 # people can always --disable-shared, the test was removed, and we
17413 # assume the GNU/Linux dynamic linker is in use.
17414 dynamic_linker='GNU/Linux ld.so'
17415 ;;
17416
17417netbsd*)
17418 version_type=sunos
17419 need_lib_prefix=no
17420 need_version=no
17421 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17423 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17424 dynamic_linker='NetBSD (a.out) ld.so'
17425 else
17426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17427 soname_spec='${libname}${release}${shared_ext}$major'
17428 dynamic_linker='NetBSD ld.elf_so'
17429 fi
17430 shlibpath_var=LD_LIBRARY_PATH
17431 shlibpath_overrides_runpath=yes
17432 hardcode_into_libs=yes
17433 ;;
17434
17435newsos6)
cristy99bd5232011-12-07 14:38:20 +000017436 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17438 shlibpath_var=LD_LIBRARY_PATH
17439 shlibpath_overrides_runpath=yes
17440 ;;
17441
17442*nto* | *qnx*)
17443 version_type=qnx
17444 need_lib_prefix=no
17445 need_version=no
17446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17447 soname_spec='${libname}${release}${shared_ext}$major'
17448 shlibpath_var=LD_LIBRARY_PATH
17449 shlibpath_overrides_runpath=no
17450 hardcode_into_libs=yes
17451 dynamic_linker='ldqnx.so'
17452 ;;
17453
17454openbsd*)
17455 version_type=sunos
17456 sys_lib_dlsearch_path_spec="/usr/lib"
17457 need_lib_prefix=no
17458 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17459 case $host_os in
17460 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17461 *) need_version=no ;;
17462 esac
17463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17464 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17465 shlibpath_var=LD_LIBRARY_PATH
17466 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17467 case $host_os in
17468 openbsd2.[89] | openbsd2.[89].*)
17469 shlibpath_overrides_runpath=no
17470 ;;
17471 *)
17472 shlibpath_overrides_runpath=yes
17473 ;;
17474 esac
17475 else
17476 shlibpath_overrides_runpath=yes
17477 fi
17478 ;;
17479
17480os2*)
17481 libname_spec='$name'
17482 shrext_cmds=".dll"
17483 need_lib_prefix=no
17484 library_names_spec='$libname${shared_ext} $libname.a'
17485 dynamic_linker='OS/2 ld.exe'
17486 shlibpath_var=LIBPATH
17487 ;;
17488
17489osf3* | osf4* | osf5*)
17490 version_type=osf
17491 need_lib_prefix=no
17492 need_version=no
17493 soname_spec='${libname}${release}${shared_ext}$major'
17494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17495 shlibpath_var=LD_LIBRARY_PATH
17496 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17497 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17498 ;;
17499
17500rdos*)
17501 dynamic_linker=no
17502 ;;
17503
17504solaris*)
cristy99bd5232011-12-07 14:38:20 +000017505 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017506 need_lib_prefix=no
17507 need_version=no
17508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17509 soname_spec='${libname}${release}${shared_ext}$major'
17510 shlibpath_var=LD_LIBRARY_PATH
17511 shlibpath_overrides_runpath=yes
17512 hardcode_into_libs=yes
17513 # ldd complains unless libraries are executable
17514 postinstall_cmds='chmod +x $lib'
17515 ;;
17516
17517sunos4*)
17518 version_type=sunos
17519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17520 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17521 shlibpath_var=LD_LIBRARY_PATH
17522 shlibpath_overrides_runpath=yes
17523 if test "$with_gnu_ld" = yes; then
17524 need_lib_prefix=no
17525 fi
17526 need_version=yes
17527 ;;
17528
17529sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000017530 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17532 soname_spec='${libname}${release}${shared_ext}$major'
17533 shlibpath_var=LD_LIBRARY_PATH
17534 case $host_vendor in
17535 sni)
17536 shlibpath_overrides_runpath=no
17537 need_lib_prefix=no
17538 runpath_var=LD_RUN_PATH
17539 ;;
17540 siemens)
17541 need_lib_prefix=no
17542 ;;
17543 motorola)
17544 need_lib_prefix=no
17545 need_version=no
17546 shlibpath_overrides_runpath=no
17547 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17548 ;;
17549 esac
17550 ;;
17551
17552sysv4*MP*)
17553 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000017554 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017555 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17556 soname_spec='$libname${shared_ext}.$major'
17557 shlibpath_var=LD_LIBRARY_PATH
17558 fi
17559 ;;
17560
17561sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17562 version_type=freebsd-elf
17563 need_lib_prefix=no
17564 need_version=no
17565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17566 soname_spec='${libname}${release}${shared_ext}$major'
17567 shlibpath_var=LD_LIBRARY_PATH
17568 shlibpath_overrides_runpath=yes
17569 hardcode_into_libs=yes
17570 if test "$with_gnu_ld" = yes; then
17571 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17572 else
17573 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17574 case $host_os in
17575 sco3.2v5*)
17576 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17577 ;;
17578 esac
17579 fi
17580 sys_lib_dlsearch_path_spec='/usr/lib'
17581 ;;
17582
17583tpf*)
17584 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000017585 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017586 need_lib_prefix=no
17587 need_version=no
17588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17589 shlibpath_var=LD_LIBRARY_PATH
17590 shlibpath_overrides_runpath=no
17591 hardcode_into_libs=yes
17592 ;;
17593
17594uts4*)
cristy99bd5232011-12-07 14:38:20 +000017595 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17597 soname_spec='${libname}${release}${shared_ext}$major'
17598 shlibpath_var=LD_LIBRARY_PATH
17599 ;;
17600
17601*)
17602 dynamic_linker=no
17603 ;;
17604esac
17605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17606$as_echo "$dynamic_linker" >&6; }
17607test "$dynamic_linker" = no && can_build_shared=no
17608
17609variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17610if test "$GCC" = yes; then
17611 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17612fi
17613
17614if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17615 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17616fi
17617if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17618 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17619fi
17620
17621
17622
17623
17624
17625
17626
17627
17628
17629
17630
17631
17632
17633
17634
17635
17636
17637
17638
17639
17640
17641
17642
17643
17644
17645
17646
17647
17648
17649
17650
17651
17652
17653
17654
17655
17656
17657
17658
17659
17660
17661
17662
17663
17664
17665
17666
17667
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
cristy0c60a692010-11-04 01:09:47 +000017707
17708
17709
17710
17711
cristy73bd4a52010-10-05 11:24:23 +000017712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17713$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17714hardcode_action=
17715if test -n "$hardcode_libdir_flag_spec" ||
17716 test -n "$runpath_var" ||
17717 test "X$hardcode_automatic" = "Xyes" ; then
17718
17719 # We can hardcode non-existent directories.
17720 if test "$hardcode_direct" != no &&
17721 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17722 # have to relink, otherwise we might link with an installed library
17723 # when we should be linking with a yet-to-be-installed one
17724 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17725 test "$hardcode_minus_L" != no; then
17726 # Linking always hardcodes the temporary library directory.
17727 hardcode_action=relink
17728 else
17729 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17730 hardcode_action=immediate
17731 fi
17732else
17733 # We cannot hardcode anything, or else we can only hardcode existing
17734 # directories.
17735 hardcode_action=unsupported
17736fi
17737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17738$as_echo "$hardcode_action" >&6; }
17739
17740if test "$hardcode_action" = relink ||
17741 test "$inherit_rpath" = yes; then
17742 # Fast installation is not supported
17743 enable_fast_install=no
17744elif test "$shlibpath_overrides_runpath" = yes ||
17745 test "$enable_shared" = no; then
17746 # Fast installation is not necessary
17747 enable_fast_install=needless
17748fi
17749
17750
17751
17752
17753
17754
17755 if test "x$enable_dlopen" != xyes; then
17756 enable_dlopen=unknown
17757 enable_dlopen_self=unknown
17758 enable_dlopen_self_static=unknown
17759else
17760 lt_cv_dlopen=no
17761 lt_cv_dlopen_libs=
17762
17763 case $host_os in
17764 beos*)
17765 lt_cv_dlopen="load_add_on"
17766 lt_cv_dlopen_libs=
17767 lt_cv_dlopen_self=yes
17768 ;;
17769
17770 mingw* | pw32* | cegcc*)
17771 lt_cv_dlopen="LoadLibrary"
17772 lt_cv_dlopen_libs=
17773 ;;
17774
17775 cygwin*)
17776 lt_cv_dlopen="dlopen"
17777 lt_cv_dlopen_libs=
17778 ;;
17779
17780 darwin*)
17781 # if libdl is installed we need to link against it
17782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17783$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017784if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017785 $as_echo_n "(cached) " >&6
17786else
17787 ac_check_lib_save_LIBS=$LIBS
17788LIBS="-ldl $LIBS"
17789cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17790/* end confdefs.h. */
17791
17792/* Override any GCC internal prototype to avoid an error.
17793 Use char because int might match the return type of a GCC
17794 builtin and then its argument prototype would still apply. */
17795#ifdef __cplusplus
17796extern "C"
17797#endif
17798char dlopen ();
17799int
17800main ()
17801{
17802return dlopen ();
17803 ;
17804 return 0;
17805}
17806_ACEOF
17807if ac_fn_c_try_link "$LINENO"; then :
17808 ac_cv_lib_dl_dlopen=yes
17809else
17810 ac_cv_lib_dl_dlopen=no
17811fi
17812rm -f core conftest.err conftest.$ac_objext \
17813 conftest$ac_exeext conftest.$ac_ext
17814LIBS=$ac_check_lib_save_LIBS
17815fi
17816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17817$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000017818if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017819 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17820else
17821
17822 lt_cv_dlopen="dyld"
17823 lt_cv_dlopen_libs=
17824 lt_cv_dlopen_self=yes
17825
17826fi
17827
17828 ;;
17829
17830 *)
17831 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000017832if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017833 lt_cv_dlopen="shl_load"
17834else
17835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17836$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017837if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017838 $as_echo_n "(cached) " >&6
17839else
17840 ac_check_lib_save_LIBS=$LIBS
17841LIBS="-ldld $LIBS"
17842cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17843/* end confdefs.h. */
17844
17845/* Override any GCC internal prototype to avoid an error.
17846 Use char because int might match the return type of a GCC
17847 builtin and then its argument prototype would still apply. */
17848#ifdef __cplusplus
17849extern "C"
17850#endif
17851char shl_load ();
17852int
17853main ()
17854{
17855return shl_load ();
17856 ;
17857 return 0;
17858}
17859_ACEOF
17860if ac_fn_c_try_link "$LINENO"; then :
17861 ac_cv_lib_dld_shl_load=yes
17862else
17863 ac_cv_lib_dld_shl_load=no
17864fi
17865rm -f core conftest.err conftest.$ac_objext \
17866 conftest$ac_exeext conftest.$ac_ext
17867LIBS=$ac_check_lib_save_LIBS
17868fi
17869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17870$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000017871if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017872 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17873else
17874 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
cristyda16f162011-02-19 23:52:17 +000017875if test "x$ac_cv_func_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017876 lt_cv_dlopen="dlopen"
17877else
17878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17879$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017880if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017881 $as_echo_n "(cached) " >&6
17882else
17883 ac_check_lib_save_LIBS=$LIBS
17884LIBS="-ldl $LIBS"
17885cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17886/* end confdefs.h. */
17887
17888/* Override any GCC internal prototype to avoid an error.
17889 Use char because int might match the return type of a GCC
17890 builtin and then its argument prototype would still apply. */
17891#ifdef __cplusplus
17892extern "C"
17893#endif
17894char dlopen ();
17895int
17896main ()
17897{
17898return dlopen ();
17899 ;
17900 return 0;
17901}
17902_ACEOF
17903if ac_fn_c_try_link "$LINENO"; then :
17904 ac_cv_lib_dl_dlopen=yes
17905else
17906 ac_cv_lib_dl_dlopen=no
17907fi
17908rm -f core conftest.err conftest.$ac_objext \
17909 conftest$ac_exeext conftest.$ac_ext
17910LIBS=$ac_check_lib_save_LIBS
17911fi
17912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17913$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000017914if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017915 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17916else
17917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17918$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017919if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017920 $as_echo_n "(cached) " >&6
17921else
17922 ac_check_lib_save_LIBS=$LIBS
17923LIBS="-lsvld $LIBS"
17924cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17925/* end confdefs.h. */
17926
17927/* Override any GCC internal prototype to avoid an error.
17928 Use char because int might match the return type of a GCC
17929 builtin and then its argument prototype would still apply. */
17930#ifdef __cplusplus
17931extern "C"
17932#endif
17933char dlopen ();
17934int
17935main ()
17936{
17937return dlopen ();
17938 ;
17939 return 0;
17940}
17941_ACEOF
17942if ac_fn_c_try_link "$LINENO"; then :
17943 ac_cv_lib_svld_dlopen=yes
17944else
17945 ac_cv_lib_svld_dlopen=no
17946fi
17947rm -f core conftest.err conftest.$ac_objext \
17948 conftest$ac_exeext conftest.$ac_ext
17949LIBS=$ac_check_lib_save_LIBS
17950fi
17951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17952$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000017953if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017954 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17955else
17956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17957$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017958if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017959 $as_echo_n "(cached) " >&6
17960else
17961 ac_check_lib_save_LIBS=$LIBS
17962LIBS="-ldld $LIBS"
17963cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17964/* end confdefs.h. */
17965
17966/* Override any GCC internal prototype to avoid an error.
17967 Use char because int might match the return type of a GCC
17968 builtin and then its argument prototype would still apply. */
17969#ifdef __cplusplus
17970extern "C"
17971#endif
17972char dld_link ();
17973int
17974main ()
17975{
17976return dld_link ();
17977 ;
17978 return 0;
17979}
17980_ACEOF
17981if ac_fn_c_try_link "$LINENO"; then :
17982 ac_cv_lib_dld_dld_link=yes
17983else
17984 ac_cv_lib_dld_dld_link=no
17985fi
17986rm -f core conftest.err conftest.$ac_objext \
17987 conftest$ac_exeext conftest.$ac_ext
17988LIBS=$ac_check_lib_save_LIBS
17989fi
17990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17991$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000017992if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017993 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17994fi
17995
17996
17997fi
17998
17999
18000fi
18001
18002
18003fi
18004
18005
18006fi
18007
18008
18009fi
18010
18011 ;;
18012 esac
18013
18014 if test "x$lt_cv_dlopen" != xno; then
18015 enable_dlopen=yes
18016 else
18017 enable_dlopen=no
18018 fi
18019
18020 case $lt_cv_dlopen in
18021 dlopen)
18022 save_CPPFLAGS="$CPPFLAGS"
18023 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18024
18025 save_LDFLAGS="$LDFLAGS"
18026 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18027
18028 save_LIBS="$LIBS"
18029 LIBS="$lt_cv_dlopen_libs $LIBS"
18030
18031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18032$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018033if ${lt_cv_dlopen_self+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018034 $as_echo_n "(cached) " >&6
18035else
18036 if test "$cross_compiling" = yes; then :
18037 lt_cv_dlopen_self=cross
18038else
18039 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18040 lt_status=$lt_dlunknown
18041 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000018042#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000018043#include "confdefs.h"
18044
18045#if HAVE_DLFCN_H
18046#include <dlfcn.h>
18047#endif
18048
18049#include <stdio.h>
18050
18051#ifdef RTLD_GLOBAL
18052# define LT_DLGLOBAL RTLD_GLOBAL
18053#else
18054# ifdef DL_GLOBAL
18055# define LT_DLGLOBAL DL_GLOBAL
18056# else
18057# define LT_DLGLOBAL 0
18058# endif
18059#endif
18060
18061/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18062 find out it does not work in some platform. */
18063#ifndef LT_DLLAZY_OR_NOW
18064# ifdef RTLD_LAZY
18065# define LT_DLLAZY_OR_NOW RTLD_LAZY
18066# else
18067# ifdef DL_LAZY
18068# define LT_DLLAZY_OR_NOW DL_LAZY
18069# else
18070# ifdef RTLD_NOW
18071# define LT_DLLAZY_OR_NOW RTLD_NOW
18072# else
18073# ifdef DL_NOW
18074# define LT_DLLAZY_OR_NOW DL_NOW
18075# else
18076# define LT_DLLAZY_OR_NOW 0
18077# endif
18078# endif
18079# endif
18080# endif
18081#endif
18082
cristy0c60a692010-11-04 01:09:47 +000018083/* When -fvisbility=hidden is used, assume the code has been annotated
18084 correspondingly for the symbols needed. */
18085#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000018086int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000018087#endif
18088
cristyda16f162011-02-19 23:52:17 +000018089int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000018090int main ()
18091{
18092 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18093 int status = $lt_dlunknown;
18094
18095 if (self)
18096 {
18097 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000018098 else
18099 {
18100 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18101 else puts (dlerror ());
18102 }
cristy73bd4a52010-10-05 11:24:23 +000018103 /* dlclose (self); */
18104 }
18105 else
18106 puts (dlerror ());
18107
18108 return status;
18109}
18110_LT_EOF
18111 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18112 (eval $ac_link) 2>&5
18113 ac_status=$?
18114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18115 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18116 (./conftest; exit; ) >&5 2>/dev/null
18117 lt_status=$?
18118 case x$lt_status in
18119 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18120 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18121 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18122 esac
18123 else :
18124 # compilation failed
18125 lt_cv_dlopen_self=no
18126 fi
18127fi
18128rm -fr conftest*
18129
18130
18131fi
18132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18133$as_echo "$lt_cv_dlopen_self" >&6; }
18134
18135 if test "x$lt_cv_dlopen_self" = xyes; then
18136 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18138$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018139if ${lt_cv_dlopen_self_static+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018140 $as_echo_n "(cached) " >&6
18141else
18142 if test "$cross_compiling" = yes; then :
18143 lt_cv_dlopen_self_static=cross
18144else
18145 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18146 lt_status=$lt_dlunknown
18147 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000018148#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000018149#include "confdefs.h"
18150
18151#if HAVE_DLFCN_H
18152#include <dlfcn.h>
18153#endif
18154
18155#include <stdio.h>
18156
18157#ifdef RTLD_GLOBAL
18158# define LT_DLGLOBAL RTLD_GLOBAL
18159#else
18160# ifdef DL_GLOBAL
18161# define LT_DLGLOBAL DL_GLOBAL
18162# else
18163# define LT_DLGLOBAL 0
18164# endif
18165#endif
18166
18167/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18168 find out it does not work in some platform. */
18169#ifndef LT_DLLAZY_OR_NOW
18170# ifdef RTLD_LAZY
18171# define LT_DLLAZY_OR_NOW RTLD_LAZY
18172# else
18173# ifdef DL_LAZY
18174# define LT_DLLAZY_OR_NOW DL_LAZY
18175# else
18176# ifdef RTLD_NOW
18177# define LT_DLLAZY_OR_NOW RTLD_NOW
18178# else
18179# ifdef DL_NOW
18180# define LT_DLLAZY_OR_NOW DL_NOW
18181# else
18182# define LT_DLLAZY_OR_NOW 0
18183# endif
18184# endif
18185# endif
18186# endif
18187#endif
18188
cristy0c60a692010-11-04 01:09:47 +000018189/* When -fvisbility=hidden is used, assume the code has been annotated
18190 correspondingly for the symbols needed. */
18191#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000018192int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000018193#endif
18194
cristyda16f162011-02-19 23:52:17 +000018195int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000018196int main ()
18197{
18198 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18199 int status = $lt_dlunknown;
18200
18201 if (self)
18202 {
18203 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000018204 else
18205 {
18206 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18207 else puts (dlerror ());
18208 }
cristy73bd4a52010-10-05 11:24:23 +000018209 /* dlclose (self); */
18210 }
18211 else
18212 puts (dlerror ());
18213
18214 return status;
18215}
18216_LT_EOF
18217 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18218 (eval $ac_link) 2>&5
18219 ac_status=$?
18220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18221 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18222 (./conftest; exit; ) >&5 2>/dev/null
18223 lt_status=$?
18224 case x$lt_status in
18225 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18226 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18227 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18228 esac
18229 else :
18230 # compilation failed
18231 lt_cv_dlopen_self_static=no
18232 fi
18233fi
18234rm -fr conftest*
18235
18236
18237fi
18238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18239$as_echo "$lt_cv_dlopen_self_static" >&6; }
18240 fi
18241
18242 CPPFLAGS="$save_CPPFLAGS"
18243 LDFLAGS="$save_LDFLAGS"
18244 LIBS="$save_LIBS"
18245 ;;
18246 esac
18247
18248 case $lt_cv_dlopen_self in
18249 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18250 *) enable_dlopen_self=unknown ;;
18251 esac
18252
18253 case $lt_cv_dlopen_self_static in
18254 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18255 *) enable_dlopen_self_static=unknown ;;
18256 esac
18257fi
18258
18259
18260
18261
18262
18263
18264
18265
18266
18267
18268
18269
18270
18271
18272
18273
18274
18275striplib=
18276old_striplib=
18277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18278$as_echo_n "checking whether stripping libraries is possible... " >&6; }
18279if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18280 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18281 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18283$as_echo "yes" >&6; }
18284else
18285# FIXME - insert some real tests, host_os isn't really good enough
18286 case $host_os in
18287 darwin*)
18288 if test -n "$STRIP" ; then
18289 striplib="$STRIP -x"
18290 old_striplib="$STRIP -S"
18291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18292$as_echo "yes" >&6; }
18293 else
18294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18295$as_echo "no" >&6; }
18296 fi
18297 ;;
18298 *)
18299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18300$as_echo "no" >&6; }
18301 ;;
18302 esac
18303fi
18304
18305
18306
18307
18308
18309
18310
18311
18312
18313
18314
18315
18316 # Report which library types will actually be built
18317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18318$as_echo_n "checking if libtool supports shared libraries... " >&6; }
18319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18320$as_echo "$can_build_shared" >&6; }
18321
18322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18323$as_echo_n "checking whether to build shared libraries... " >&6; }
18324 test "$can_build_shared" = "no" && enable_shared=no
18325
18326 # On AIX, shared libraries and static libraries use the same namespace, and
18327 # are all built from PIC.
18328 case $host_os in
18329 aix3*)
18330 test "$enable_shared" = yes && enable_static=no
18331 if test -n "$RANLIB"; then
18332 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18333 postinstall_cmds='$RANLIB $lib'
18334 fi
18335 ;;
18336
18337 aix[4-9]*)
18338 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18339 test "$enable_shared" = yes && enable_static=no
18340 fi
18341 ;;
18342 esac
18343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18344$as_echo "$enable_shared" >&6; }
18345
18346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18347$as_echo_n "checking whether to build static libraries... " >&6; }
18348 # Make sure either enable_shared or enable_static is yes.
18349 test "$enable_shared" = yes || enable_static=yes
18350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18351$as_echo "$enable_static" >&6; }
18352
18353
18354
18355
18356fi
18357ac_ext=c
18358ac_cpp='$CPP $CPPFLAGS'
18359ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18360ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18361ac_compiler_gnu=$ac_cv_c_compiler_gnu
18362
18363CC="$lt_save_CC"
18364
cristy0c60a692010-11-04 01:09:47 +000018365 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18366 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18367 (test "X$CXX" != "Xg++"))) ; then
18368 ac_ext=cpp
18369ac_cpp='$CXXCPP $CPPFLAGS'
18370ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18371ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18372ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18374$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18375if test -z "$CXXCPP"; then
cristyda16f162011-02-19 23:52:17 +000018376 if ${ac_cv_prog_CXXCPP+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000018377 $as_echo_n "(cached) " >&6
18378else
18379 # Double quotes because CXXCPP needs to be expanded
18380 for CXXCPP in "$CXX -E" "/lib/cpp"
18381 do
18382 ac_preproc_ok=false
18383for ac_cxx_preproc_warn_flag in '' yes
18384do
18385 # Use a header file that comes with gcc, so configuring glibc
18386 # with a fresh cross-compiler works.
18387 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18388 # <limits.h> exists even on freestanding compilers.
18389 # On the NeXT, cc -E runs the code through the compiler's parser,
18390 # not just through cpp. "Syntax error" is here to catch this case.
18391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18392/* end confdefs.h. */
18393#ifdef __STDC__
18394# include <limits.h>
18395#else
18396# include <assert.h>
18397#endif
18398 Syntax error
18399_ACEOF
18400if ac_fn_cxx_try_cpp "$LINENO"; then :
18401
18402else
18403 # Broken: fails on valid input.
18404continue
18405fi
cristyda16f162011-02-19 23:52:17 +000018406rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018407
18408 # OK, works on sane cases. Now check whether nonexistent headers
18409 # can be detected and how.
18410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18411/* end confdefs.h. */
18412#include <ac_nonexistent.h>
18413_ACEOF
18414if ac_fn_cxx_try_cpp "$LINENO"; then :
18415 # Broken: success on invalid input.
18416continue
18417else
18418 # Passes both tests.
18419ac_preproc_ok=:
18420break
18421fi
cristyda16f162011-02-19 23:52:17 +000018422rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018423
18424done
18425# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000018426rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018427if $ac_preproc_ok; then :
18428 break
18429fi
18430
18431 done
18432 ac_cv_prog_CXXCPP=$CXXCPP
18433
18434fi
18435 CXXCPP=$ac_cv_prog_CXXCPP
18436else
18437 ac_cv_prog_CXXCPP=$CXXCPP
18438fi
18439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18440$as_echo "$CXXCPP" >&6; }
18441ac_preproc_ok=false
18442for ac_cxx_preproc_warn_flag in '' yes
18443do
18444 # Use a header file that comes with gcc, so configuring glibc
18445 # with a fresh cross-compiler works.
18446 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18447 # <limits.h> exists even on freestanding compilers.
18448 # On the NeXT, cc -E runs the code through the compiler's parser,
18449 # not just through cpp. "Syntax error" is here to catch this case.
18450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18451/* end confdefs.h. */
18452#ifdef __STDC__
18453# include <limits.h>
18454#else
18455# include <assert.h>
18456#endif
18457 Syntax error
18458_ACEOF
18459if ac_fn_cxx_try_cpp "$LINENO"; then :
18460
18461else
18462 # Broken: fails on valid input.
18463continue
18464fi
cristyda16f162011-02-19 23:52:17 +000018465rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018466
18467 # OK, works on sane cases. Now check whether nonexistent headers
18468 # can be detected and how.
18469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18470/* end confdefs.h. */
18471#include <ac_nonexistent.h>
18472_ACEOF
18473if ac_fn_cxx_try_cpp "$LINENO"; then :
18474 # Broken: success on invalid input.
18475continue
18476else
18477 # Passes both tests.
18478ac_preproc_ok=:
18479break
18480fi
cristyda16f162011-02-19 23:52:17 +000018481rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018482
18483done
18484# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000018485rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018486if $ac_preproc_ok; then :
18487
18488else
18489 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18490$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18491as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
18492See \`config.log' for more details" "$LINENO" 5; }
18493fi
18494
18495ac_ext=c
18496ac_cpp='$CPP $CPPFLAGS'
18497ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18498ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18499ac_compiler_gnu=$ac_cv_c_compiler_gnu
18500
18501else
18502 _lt_caught_CXX_error=yes
18503fi
cristy73bd4a52010-10-05 11:24:23 +000018504
18505ac_ext=cpp
18506ac_cpp='$CXXCPP $CPPFLAGS'
18507ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18508ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18509ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18510
18511archive_cmds_need_lc_CXX=no
18512allow_undefined_flag_CXX=
18513always_export_symbols_CXX=no
18514archive_expsym_cmds_CXX=
18515compiler_needs_object_CXX=no
18516export_dynamic_flag_spec_CXX=
18517hardcode_direct_CXX=no
18518hardcode_direct_absolute_CXX=no
18519hardcode_libdir_flag_spec_CXX=
cristy73bd4a52010-10-05 11:24:23 +000018520hardcode_libdir_separator_CXX=
18521hardcode_minus_L_CXX=no
18522hardcode_shlibpath_var_CXX=unsupported
18523hardcode_automatic_CXX=no
18524inherit_rpath_CXX=no
18525module_cmds_CXX=
18526module_expsym_cmds_CXX=
18527link_all_deplibs_CXX=unknown
18528old_archive_cmds_CXX=$old_archive_cmds
cristy0c60a692010-11-04 01:09:47 +000018529reload_flag_CXX=$reload_flag
18530reload_cmds_CXX=$reload_cmds
cristy73bd4a52010-10-05 11:24:23 +000018531no_undefined_flag_CXX=
18532whole_archive_flag_spec_CXX=
18533enable_shared_with_static_runtimes_CXX=no
18534
18535# Source file extension for C++ test sources.
18536ac_ext=cpp
18537
18538# Object file extension for compiled C++ test sources.
18539objext=o
18540objext_CXX=$objext
18541
18542# No sense in running all these tests if we already determined that
18543# the CXX compiler isn't working. Some variables (like enable_shared)
18544# are currently assumed to apply to all compilers on this platform,
18545# and will be corrupted by setting them based on a non-working compiler.
18546if test "$_lt_caught_CXX_error" != yes; then
18547 # Code to be used in simple compile tests
18548 lt_simple_compile_test_code="int some_variable = 0;"
18549
18550 # Code to be used in simple link tests
18551 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18552
18553 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18554
18555
18556
18557
18558
18559
18560# If no C compiler was specified, use CC.
18561LTCC=${LTCC-"$CC"}
18562
18563# If no C compiler flags were specified, use CFLAGS.
18564LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18565
18566# Allow CC to be a program name with arguments.
18567compiler=$CC
18568
18569
18570 # save warnings/boilerplate of simple test code
18571 ac_outfile=conftest.$ac_objext
18572echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18573eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18574_lt_compiler_boilerplate=`cat conftest.err`
18575$RM conftest*
18576
18577 ac_outfile=conftest.$ac_objext
18578echo "$lt_simple_link_test_code" >conftest.$ac_ext
18579eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18580_lt_linker_boilerplate=`cat conftest.err`
18581$RM -r conftest*
18582
18583
18584 # Allow CC to be a program name with arguments.
18585 lt_save_CC=$CC
cristyda16f162011-02-19 23:52:17 +000018586 lt_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000018587 lt_save_LD=$LD
18588 lt_save_GCC=$GCC
18589 GCC=$GXX
18590 lt_save_with_gnu_ld=$with_gnu_ld
18591 lt_save_path_LD=$lt_cv_path_LD
18592 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18593 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18594 else
18595 $as_unset lt_cv_prog_gnu_ld
18596 fi
18597 if test -n "${lt_cv_path_LDCXX+set}"; then
18598 lt_cv_path_LD=$lt_cv_path_LDCXX
18599 else
18600 $as_unset lt_cv_path_LD
18601 fi
18602 test -z "${LDCXX+set}" || LD=$LDCXX
18603 CC=${CXX-"c++"}
cristyda16f162011-02-19 23:52:17 +000018604 CFLAGS=$CXXFLAGS
cristy73bd4a52010-10-05 11:24:23 +000018605 compiler=$CC
18606 compiler_CXX=$CC
18607 for cc_temp in $compiler""; do
18608 case $cc_temp in
18609 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18610 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18611 \-*) ;;
18612 *) break;;
18613 esac
18614done
cristy0c60a692010-11-04 01:09:47 +000018615cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000018616
18617
18618 if test -n "$compiler"; then
18619 # We don't want -fno-exception when compiling C++ code, so set the
18620 # no_builtin_flag separately
18621 if test "$GXX" = yes; then
18622 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18623 else
18624 lt_prog_compiler_no_builtin_flag_CXX=
18625 fi
18626
18627 if test "$GXX" = yes; then
18628 # Set up default GNU C++ configuration
18629
18630
18631
18632# Check whether --with-gnu-ld was given.
18633if test "${with_gnu_ld+set}" = set; then :
18634 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18635else
18636 with_gnu_ld=no
18637fi
18638
18639ac_prog=ld
18640if test "$GCC" = yes; then
18641 # Check if gcc -print-prog-name=ld gives a path.
18642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18643$as_echo_n "checking for ld used by $CC... " >&6; }
18644 case $host in
18645 *-*-mingw*)
18646 # gcc leaves a trailing carriage return which upsets mingw
18647 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18648 *)
18649 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18650 esac
18651 case $ac_prog in
18652 # Accept absolute paths.
18653 [\\/]* | ?:[\\/]*)
18654 re_direlt='/[^/][^/]*/\.\./'
18655 # Canonicalize the pathname of ld
18656 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18657 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18658 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18659 done
18660 test -z "$LD" && LD="$ac_prog"
18661 ;;
18662 "")
18663 # If it fails, then pretend we aren't using GCC.
18664 ac_prog=ld
18665 ;;
18666 *)
18667 # If it is relative, then search for the first ld in PATH.
18668 with_gnu_ld=unknown
18669 ;;
18670 esac
18671elif test "$with_gnu_ld" = yes; then
18672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18673$as_echo_n "checking for GNU ld... " >&6; }
18674else
18675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18676$as_echo_n "checking for non-GNU ld... " >&6; }
18677fi
cristyda16f162011-02-19 23:52:17 +000018678if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018679 $as_echo_n "(cached) " >&6
18680else
18681 if test -z "$LD"; then
18682 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18683 for ac_dir in $PATH; do
18684 IFS="$lt_save_ifs"
18685 test -z "$ac_dir" && ac_dir=.
18686 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18687 lt_cv_path_LD="$ac_dir/$ac_prog"
18688 # Check to see if the program is GNU ld. I'd rather use --version,
18689 # but apparently some variants of GNU ld only accept -v.
18690 # Break only if it was the GNU/non-GNU ld that we prefer.
18691 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18692 *GNU* | *'with BFD'*)
18693 test "$with_gnu_ld" != no && break
18694 ;;
18695 *)
18696 test "$with_gnu_ld" != yes && break
18697 ;;
18698 esac
18699 fi
18700 done
18701 IFS="$lt_save_ifs"
18702else
18703 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18704fi
18705fi
18706
18707LD="$lt_cv_path_LD"
18708if test -n "$LD"; then
18709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18710$as_echo "$LD" >&6; }
18711else
18712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18713$as_echo "no" >&6; }
18714fi
cristy98dddb52010-11-04 00:30:15 +000018715test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000018716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18717$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018718if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018719 $as_echo_n "(cached) " >&6
18720else
18721 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18722case `$LD -v 2>&1 </dev/null` in
18723*GNU* | *'with BFD'*)
18724 lt_cv_prog_gnu_ld=yes
18725 ;;
18726*)
18727 lt_cv_prog_gnu_ld=no
18728 ;;
18729esac
18730fi
18731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18732$as_echo "$lt_cv_prog_gnu_ld" >&6; }
18733with_gnu_ld=$lt_cv_prog_gnu_ld
18734
18735
18736
18737
18738
18739
18740
18741 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18742 # archiving commands below assume that GNU ld is being used.
18743 if test "$with_gnu_ld" = yes; then
cristyda16f162011-02-19 23:52:17 +000018744 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18745 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 +000018746
18747 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18748 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18749
18750 # If archive_cmds runs LD, not CC, wlarc should be empty
18751 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18752 # investigate it a little bit more. (MM)
18753 wlarc='${wl}'
18754
18755 # ancient GNU ld didn't support --whole-archive et. al.
18756 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18757 $GREP 'no-whole-archive' > /dev/null; then
18758 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18759 else
18760 whole_archive_flag_spec_CXX=
18761 fi
18762 else
18763 with_gnu_ld=no
18764 wlarc=
18765
18766 # A generic and very simple default shared library creation
18767 # command for GNU C++ for the case where it uses the native
18768 # linker, instead of GNU ld. If possible, this setting should
18769 # overridden to take advantage of the native linker features on
18770 # the platform it is being used on.
18771 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18772 fi
18773
18774 # Commands to make compiler produce verbose output that lists
18775 # what "hidden" libraries, object files and flags are used when
18776 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018777 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018778
18779 else
18780 GXX=no
18781 with_gnu_ld=no
18782 wlarc=
18783 fi
18784
18785 # PORTME: fill in a description of your system's C++ link characteristics
18786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18787$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18788 ld_shlibs_CXX=yes
18789 case $host_os in
18790 aix3*)
18791 # FIXME: insert proper C++ library support
18792 ld_shlibs_CXX=no
18793 ;;
18794 aix[4-9]*)
18795 if test "$host_cpu" = ia64; then
18796 # On IA64, the linker does run time linking by default, so we don't
18797 # have to do anything special.
18798 aix_use_runtimelinking=no
18799 exp_sym_flag='-Bexport'
18800 no_entry_flag=""
18801 else
18802 aix_use_runtimelinking=no
18803
18804 # Test if we are trying to use run time linking or normal
18805 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18806 # need to do runtime linking.
18807 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18808 for ld_flag in $LDFLAGS; do
18809 case $ld_flag in
18810 *-brtl*)
18811 aix_use_runtimelinking=yes
18812 break
18813 ;;
18814 esac
18815 done
18816 ;;
18817 esac
18818
18819 exp_sym_flag='-bexport'
18820 no_entry_flag='-bnoentry'
18821 fi
18822
18823 # When large executables or shared objects are built, AIX ld can
18824 # have problems creating the table of contents. If linking a library
18825 # or program results in "error TOC overflow" add -mminimal-toc to
18826 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18827 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18828
18829 archive_cmds_CXX=''
18830 hardcode_direct_CXX=yes
18831 hardcode_direct_absolute_CXX=yes
18832 hardcode_libdir_separator_CXX=':'
18833 link_all_deplibs_CXX=yes
18834 file_list_spec_CXX='${wl}-f,'
18835
18836 if test "$GXX" = yes; then
18837 case $host_os in aix4.[012]|aix4.[012].*)
18838 # We only want to do this on AIX 4.2 and lower, the check
18839 # below for broken collect2 doesn't work under 4.3+
18840 collect2name=`${CC} -print-prog-name=collect2`
18841 if test -f "$collect2name" &&
18842 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18843 then
18844 # We have reworked collect2
18845 :
18846 else
18847 # We have old collect2
18848 hardcode_direct_CXX=unsupported
18849 # It fails to find uninstalled libraries when the uninstalled
18850 # path is not listed in the libpath. Setting hardcode_minus_L
18851 # to unsupported forces relinking
18852 hardcode_minus_L_CXX=yes
18853 hardcode_libdir_flag_spec_CXX='-L$libdir'
18854 hardcode_libdir_separator_CXX=
18855 fi
18856 esac
18857 shared_flag='-shared'
18858 if test "$aix_use_runtimelinking" = yes; then
18859 shared_flag="$shared_flag "'${wl}-G'
18860 fi
18861 else
18862 # not using gcc
18863 if test "$host_cpu" = ia64; then
18864 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18865 # chokes on -Wl,-G. The following line is correct:
18866 shared_flag='-G'
18867 else
18868 if test "$aix_use_runtimelinking" = yes; then
18869 shared_flag='${wl}-G'
18870 else
18871 shared_flag='${wl}-bM:SRE'
18872 fi
18873 fi
18874 fi
18875
18876 export_dynamic_flag_spec_CXX='${wl}-bexpall'
18877 # It seems that -bexpall does not export symbols beginning with
18878 # underscore (_), so it is better to generate a list of symbols to
18879 # export.
18880 always_export_symbols_CXX=yes
18881 if test "$aix_use_runtimelinking" = yes; then
18882 # Warning - without using the other runtime loading flags (-brtl),
18883 # -berok will link without error, but may produce a broken library.
18884 allow_undefined_flag_CXX='-berok'
18885 # Determine the default libpath from the value encoded in an empty
18886 # executable.
cristyda16f162011-02-19 23:52:17 +000018887 if test "${lt_cv_aix_libpath+set}" = set; then
18888 aix_libpath=$lt_cv_aix_libpath
18889else
18890 if ${lt_cv_aix_libpath__CXX+:} false; then :
18891 $as_echo_n "(cached) " >&6
18892else
18893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000018894/* end confdefs.h. */
18895
18896int
18897main ()
18898{
18899
18900 ;
18901 return 0;
18902}
18903_ACEOF
18904if ac_fn_cxx_try_link "$LINENO"; then :
18905
cristyda16f162011-02-19 23:52:17 +000018906 lt_aix_libpath_sed='
18907 /Import File Strings/,/^$/ {
18908 /^0/ {
18909 s/^0 *\([^ ]*\) *$/\1/
18910 p
18911 }
18912 }'
18913 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18914 # Check for a 64-bit object if we didn't find anything.
18915 if test -z "$lt_cv_aix_libpath__CXX"; then
18916 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18917 fi
cristy73bd4a52010-10-05 11:24:23 +000018918fi
18919rm -f core conftest.err conftest.$ac_objext \
18920 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000018921 if test -z "$lt_cv_aix_libpath__CXX"; then
18922 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
18923 fi
18924
18925fi
18926
18927 aix_libpath=$lt_cv_aix_libpath__CXX
18928fi
cristy73bd4a52010-10-05 11:24:23 +000018929
18930 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18931
cristy0c60a692010-11-04 01:09:47 +000018932 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 +000018933 else
18934 if test "$host_cpu" = ia64; then
18935 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18936 allow_undefined_flag_CXX="-z nodefs"
18937 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"
18938 else
18939 # Determine the default libpath from the value encoded in an
18940 # empty executable.
cristyda16f162011-02-19 23:52:17 +000018941 if test "${lt_cv_aix_libpath+set}" = set; then
18942 aix_libpath=$lt_cv_aix_libpath
18943else
18944 if ${lt_cv_aix_libpath__CXX+:} false; then :
18945 $as_echo_n "(cached) " >&6
18946else
18947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000018948/* end confdefs.h. */
18949
18950int
18951main ()
18952{
18953
18954 ;
18955 return 0;
18956}
18957_ACEOF
18958if ac_fn_cxx_try_link "$LINENO"; then :
18959
cristyda16f162011-02-19 23:52:17 +000018960 lt_aix_libpath_sed='
18961 /Import File Strings/,/^$/ {
18962 /^0/ {
18963 s/^0 *\([^ ]*\) *$/\1/
18964 p
18965 }
18966 }'
18967 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18968 # Check for a 64-bit object if we didn't find anything.
18969 if test -z "$lt_cv_aix_libpath__CXX"; then
18970 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18971 fi
cristy73bd4a52010-10-05 11:24:23 +000018972fi
18973rm -f core conftest.err conftest.$ac_objext \
18974 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000018975 if test -z "$lt_cv_aix_libpath__CXX"; then
18976 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
18977 fi
18978
18979fi
18980
18981 aix_libpath=$lt_cv_aix_libpath__CXX
18982fi
cristy73bd4a52010-10-05 11:24:23 +000018983
18984 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18985 # Warning - without using the other run time loading flags,
18986 # -berok will link without error, but may produce a broken library.
18987 no_undefined_flag_CXX=' ${wl}-bernotok'
18988 allow_undefined_flag_CXX=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000018989 if test "$with_gnu_ld" = yes; then
18990 # We only use this code for GNU lds that support --whole-archive.
18991 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18992 else
18993 # Exported symbols can be pulled into shared objects from archives
18994 whole_archive_flag_spec_CXX='$convenience'
18995 fi
cristy73bd4a52010-10-05 11:24:23 +000018996 archive_cmds_need_lc_CXX=yes
18997 # This is similar to how AIX traditionally builds its shared
18998 # libraries.
18999 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'
19000 fi
19001 fi
19002 ;;
19003
19004 beos*)
19005 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19006 allow_undefined_flag_CXX=unsupported
19007 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19008 # support --undefined. This deserves some investigation. FIXME
19009 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19010 else
19011 ld_shlibs_CXX=no
19012 fi
19013 ;;
19014
19015 chorus*)
19016 case $cc_basename in
19017 *)
19018 # FIXME: insert proper C++ library support
19019 ld_shlibs_CXX=no
19020 ;;
19021 esac
19022 ;;
19023
19024 cygwin* | mingw* | pw32* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000019025 case $GXX,$cc_basename in
19026 ,cl* | no,cl*)
19027 # Native MSVC
19028 # hardcode_libdir_flag_spec is actually meaningless, as there is
19029 # no search path for DLLs.
19030 hardcode_libdir_flag_spec_CXX=' '
19031 allow_undefined_flag_CXX=unsupported
19032 always_export_symbols_CXX=yes
19033 file_list_spec_CXX='@'
19034 # Tell ltmain to make .lib files, not .a files.
19035 libext=lib
19036 # Tell ltmain to make .dll files, not .so files.
19037 shrext_cmds=".dll"
19038 # FIXME: Setting linknames here is a bad hack.
19039 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
19040 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19041 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
19042 else
19043 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
19044 fi~
19045 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
19046 linknames='
19047 # The linker will not automatically build a static lib if we build a DLL.
19048 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
19049 enable_shared_with_static_runtimes_CXX=yes
19050 # Don't use ranlib
19051 old_postinstall_cmds_CXX='chmod 644 $oldlib'
19052 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
19053 lt_tool_outputfile="@TOOL_OUTPUT@"~
19054 case $lt_outputfile in
19055 *.exe|*.EXE) ;;
19056 *)
19057 lt_outputfile="$lt_outputfile.exe"
19058 lt_tool_outputfile="$lt_tool_outputfile.exe"
19059 ;;
19060 esac~
19061 func_to_tool_file "$lt_outputfile"~
19062 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
19063 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
19064 $RM "$lt_outputfile.manifest";
19065 fi'
19066 ;;
19067 *)
19068 # g++
19069 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19070 # as there is no search path for DLLs.
19071 hardcode_libdir_flag_spec_CXX='-L$libdir'
19072 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
19073 allow_undefined_flag_CXX=unsupported
19074 always_export_symbols_CXX=no
19075 enable_shared_with_static_runtimes_CXX=yes
cristy73bd4a52010-10-05 11:24:23 +000019076
cristyda16f162011-02-19 23:52:17 +000019077 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19078 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'
19079 # If the export-symbols file already is a .def file (1st line
19080 # is EXPORTS), use it as is; otherwise, prepend...
19081 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19082 cp $export_symbols $output_objdir/$soname.def;
19083 else
19084 echo EXPORTS > $output_objdir/$soname.def;
19085 cat $export_symbols >> $output_objdir/$soname.def;
19086 fi~
19087 $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'
19088 else
19089 ld_shlibs_CXX=no
19090 fi
19091 ;;
19092 esac
19093 ;;
cristy73bd4a52010-10-05 11:24:23 +000019094 darwin* | rhapsody*)
19095
19096
19097 archive_cmds_need_lc_CXX=no
19098 hardcode_direct_CXX=no
19099 hardcode_automatic_CXX=yes
19100 hardcode_shlibpath_var_CXX=unsupported
cristy0c60a692010-11-04 01:09:47 +000019101 if test "$lt_cv_ld_force_load" = "yes"; then
19102 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 +000019103
cristy0c60a692010-11-04 01:09:47 +000019104 else
19105 whole_archive_flag_spec_CXX=''
19106 fi
cristy73bd4a52010-10-05 11:24:23 +000019107 link_all_deplibs_CXX=yes
19108 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
19109 case $cc_basename in
19110 ifort*) _lt_dar_can_shared=yes ;;
19111 *) _lt_dar_can_shared=$GCC ;;
19112 esac
19113 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000019114 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000019115 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}"
19116 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19117 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}"
19118 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}"
19119 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19120 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}"
19121 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}"
19122 fi
19123
19124 else
19125 ld_shlibs_CXX=no
19126 fi
19127
19128 ;;
19129
19130 dgux*)
19131 case $cc_basename in
19132 ec++*)
19133 # FIXME: insert proper C++ library support
19134 ld_shlibs_CXX=no
19135 ;;
19136 ghcx*)
19137 # Green Hills C++ Compiler
19138 # FIXME: insert proper C++ library support
19139 ld_shlibs_CXX=no
19140 ;;
19141 *)
19142 # FIXME: insert proper C++ library support
19143 ld_shlibs_CXX=no
19144 ;;
19145 esac
19146 ;;
19147
cristy99bd5232011-12-07 14:38:20 +000019148 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000019149 # C++ shared libraries reported to be fairly broken before
19150 # switch to ELF
19151 ld_shlibs_CXX=no
19152 ;;
19153
19154 freebsd-elf*)
19155 archive_cmds_need_lc_CXX=no
19156 ;;
19157
19158 freebsd* | dragonfly*)
19159 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19160 # conventions
19161 ld_shlibs_CXX=yes
19162 ;;
19163
19164 gnu*)
19165 ;;
19166
cristy0c60a692010-11-04 01:09:47 +000019167 haiku*)
19168 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19169 link_all_deplibs_CXX=yes
19170 ;;
19171
cristy73bd4a52010-10-05 11:24:23 +000019172 hpux9*)
19173 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19174 hardcode_libdir_separator_CXX=:
19175 export_dynamic_flag_spec_CXX='${wl}-E'
19176 hardcode_direct_CXX=yes
19177 hardcode_minus_L_CXX=yes # Not in the search PATH,
19178 # but as the default
19179 # location of the library.
19180
19181 case $cc_basename in
19182 CC*)
19183 # FIXME: insert proper C++ library support
19184 ld_shlibs_CXX=no
19185 ;;
19186 aCC*)
19187 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'
19188 # Commands to make compiler produce verbose output that lists
19189 # what "hidden" libraries, object files and flags are used when
19190 # linking a shared library.
19191 #
19192 # There doesn't appear to be a way to prevent this compiler from
19193 # explicitly linking system object files so we need to strip them
19194 # from the output so that they don't get included in the library
19195 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000019196 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 +000019197 ;;
19198 *)
19199 if test "$GXX" = yes; then
cristyda16f162011-02-19 23:52:17 +000019200 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 +000019201 else
19202 # FIXME: insert proper C++ library support
19203 ld_shlibs_CXX=no
19204 fi
19205 ;;
19206 esac
19207 ;;
19208
19209 hpux10*|hpux11*)
19210 if test $with_gnu_ld = no; then
19211 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19212 hardcode_libdir_separator_CXX=:
19213
19214 case $host_cpu in
19215 hppa*64*|ia64*)
19216 ;;
19217 *)
19218 export_dynamic_flag_spec_CXX='${wl}-E'
19219 ;;
19220 esac
19221 fi
19222 case $host_cpu in
19223 hppa*64*|ia64*)
19224 hardcode_direct_CXX=no
19225 hardcode_shlibpath_var_CXX=no
19226 ;;
19227 *)
19228 hardcode_direct_CXX=yes
19229 hardcode_direct_absolute_CXX=yes
19230 hardcode_minus_L_CXX=yes # Not in the search PATH,
19231 # but as the default
19232 # location of the library.
19233 ;;
19234 esac
19235
19236 case $cc_basename in
19237 CC*)
19238 # FIXME: insert proper C++ library support
19239 ld_shlibs_CXX=no
19240 ;;
19241 aCC*)
19242 case $host_cpu in
19243 hppa*64*)
19244 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19245 ;;
19246 ia64*)
19247 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19248 ;;
19249 *)
19250 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19251 ;;
19252 esac
19253 # Commands to make compiler produce verbose output that lists
19254 # what "hidden" libraries, object files and flags are used when
19255 # linking a shared library.
19256 #
19257 # There doesn't appear to be a way to prevent this compiler from
19258 # explicitly linking system object files so we need to strip them
19259 # from the output so that they don't get included in the library
19260 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000019261 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 +000019262 ;;
19263 *)
19264 if test "$GXX" = yes; then
19265 if test $with_gnu_ld = no; then
19266 case $host_cpu in
19267 hppa*64*)
19268 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19269 ;;
19270 ia64*)
cristyda16f162011-02-19 23:52:17 +000019271 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 +000019272 ;;
19273 *)
cristyda16f162011-02-19 23:52:17 +000019274 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 +000019275 ;;
19276 esac
19277 fi
19278 else
19279 # FIXME: insert proper C++ library support
19280 ld_shlibs_CXX=no
19281 fi
19282 ;;
19283 esac
19284 ;;
19285
19286 interix[3-9]*)
19287 hardcode_direct_CXX=no
19288 hardcode_shlibpath_var_CXX=no
19289 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19290 export_dynamic_flag_spec_CXX='${wl}-E'
19291 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19292 # Instead, shared libraries are loaded at an image base (0x10000000 by
19293 # default) and relocated if they conflict, which is a slow very memory
19294 # consuming and fragmenting process. To avoid this, we pick a random,
19295 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19296 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19297 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'
19298 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'
19299 ;;
19300 irix5* | irix6*)
19301 case $cc_basename in
19302 CC*)
19303 # SGI C++
cristy0c60a692010-11-04 01:09:47 +000019304 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 +000019305
19306 # Archives containing C++ object files must be created using
19307 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19308 # necessary to make sure instantiated templates are included
19309 # in the archive.
19310 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19311 ;;
19312 *)
19313 if test "$GXX" = yes; then
19314 if test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000019315 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 +000019316 else
cristyda16f162011-02-19 23:52:17 +000019317 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 +000019318 fi
19319 fi
19320 link_all_deplibs_CXX=yes
19321 ;;
19322 esac
19323 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19324 hardcode_libdir_separator_CXX=:
19325 inherit_rpath_CXX=yes
19326 ;;
19327
cristy0c60a692010-11-04 01:09:47 +000019328 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000019329 case $cc_basename in
19330 KCC*)
19331 # Kuck and Associates, Inc. (KAI) C++ Compiler
19332
19333 # KCC will only create a shared library if the output file
19334 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19335 # to its proper name (with version) after linking.
19336 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'
19337 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'
19338 # Commands to make compiler produce verbose output that lists
19339 # what "hidden" libraries, object files and flags are used when
19340 # linking a shared library.
19341 #
19342 # There doesn't appear to be a way to prevent this compiler from
19343 # explicitly linking system object files so we need to strip them
19344 # from the output so that they don't get included in the library
19345 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000019346 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 +000019347
19348 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19349 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19350
19351 # Archives containing C++ object files must be created using
19352 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19353 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19354 ;;
19355 icpc* | ecpc* )
19356 # Intel C++
19357 with_gnu_ld=yes
19358 # version 8.0 and above of icpc choke on multiply defined symbols
19359 # if we add $predep_objects and $postdep_objects, however 7.1 and
19360 # earlier do not add the objects themselves.
19361 case `$CC -V 2>&1` in
19362 *"Version 7."*)
19363 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19364 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'
19365 ;;
19366 *) # Version 8.0 or newer
19367 tmp_idyn=
19368 case $host_cpu in
19369 ia64*) tmp_idyn=' -i_dynamic';;
19370 esac
19371 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19372 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'
19373 ;;
19374 esac
19375 archive_cmds_need_lc_CXX=no
19376 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19377 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19378 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19379 ;;
19380 pgCC* | pgcpp*)
19381 # Portland Group C++ compiler
19382 case `$CC -V` in
cristy0c60a692010-11-04 01:09:47 +000019383 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
cristy73bd4a52010-10-05 11:24:23 +000019384 prelink_cmds_CXX='tpldir=Template.dir~
19385 rm -rf $tpldir~
19386 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
cristy0c60a692010-11-04 01:09:47 +000019387 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
cristy73bd4a52010-10-05 11:24:23 +000019388 old_archive_cmds_CXX='tpldir=Template.dir~
19389 rm -rf $tpldir~
19390 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
cristy0c60a692010-11-04 01:09:47 +000019391 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
cristy73bd4a52010-10-05 11:24:23 +000019392 $RANLIB $oldlib'
19393 archive_cmds_CXX='tpldir=Template.dir~
19394 rm -rf $tpldir~
19395 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000019396 $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 +000019397 archive_expsym_cmds_CXX='tpldir=Template.dir~
19398 rm -rf $tpldir~
19399 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000019400 $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 +000019401 ;;
cristy0c60a692010-11-04 01:09:47 +000019402 *) # Version 6 and above use weak symbols
cristy73bd4a52010-10-05 11:24:23 +000019403 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19404 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'
19405 ;;
19406 esac
19407
19408 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19409 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cristy0c60a692010-11-04 01:09:47 +000019410 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 +000019411 ;;
19412 cxx*)
19413 # Compaq C++
19414 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19415 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'
19416
19417 runpath_var=LD_RUN_PATH
19418 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19419 hardcode_libdir_separator_CXX=:
19420
19421 # Commands to make compiler produce verbose output that lists
19422 # what "hidden" libraries, object files and flags are used when
19423 # linking a shared library.
19424 #
19425 # There doesn't appear to be a way to prevent this compiler from
19426 # explicitly linking system object files so we need to strip them
19427 # from the output so that they don't get included in the library
19428 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000019429 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 +000019430 ;;
cristy0c60a692010-11-04 01:09:47 +000019431 xl* | mpixl* | bgxl*)
cristy73bd4a52010-10-05 11:24:23 +000019432 # IBM XL 8.0 on PPC, with GNU ld
19433 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19434 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19435 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19436 if test "x$supports_anon_versioning" = xyes; then
19437 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19438 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19439 echo "local: *; };" >> $output_objdir/$libname.ver~
19440 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19441 fi
19442 ;;
19443 *)
19444 case `$CC -V 2>&1 | sed 5q` in
19445 *Sun\ C*)
19446 # Sun C++ 5.9
19447 no_undefined_flag_CXX=' -zdefs'
19448 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19449 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'
19450 hardcode_libdir_flag_spec_CXX='-R$libdir'
cristy0c60a692010-11-04 01:09:47 +000019451 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 +000019452 compiler_needs_object_CXX=yes
19453
19454 # Not sure whether something based on
19455 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19456 # would be better.
cristy0c60a692010-11-04 01:09:47 +000019457 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000019458
19459 # Archives containing C++ object files must be created using
19460 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19461 # necessary to make sure instantiated templates are included
19462 # in the archive.
19463 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19464 ;;
19465 esac
19466 ;;
19467 esac
19468 ;;
19469
19470 lynxos*)
19471 # FIXME: insert proper C++ library support
19472 ld_shlibs_CXX=no
19473 ;;
19474
19475 m88k*)
19476 # FIXME: insert proper C++ library support
19477 ld_shlibs_CXX=no
19478 ;;
19479
19480 mvs*)
19481 case $cc_basename in
19482 cxx*)
19483 # FIXME: insert proper C++ library support
19484 ld_shlibs_CXX=no
19485 ;;
19486 *)
19487 # FIXME: insert proper C++ library support
19488 ld_shlibs_CXX=no
19489 ;;
19490 esac
19491 ;;
19492
19493 netbsd*)
19494 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19495 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19496 wlarc=
19497 hardcode_libdir_flag_spec_CXX='-R$libdir'
19498 hardcode_direct_CXX=yes
19499 hardcode_shlibpath_var_CXX=no
19500 fi
19501 # Workaround some broken pre-1.5 toolchains
19502 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19503 ;;
19504
19505 *nto* | *qnx*)
19506 ld_shlibs_CXX=yes
19507 ;;
19508
19509 openbsd2*)
19510 # C++ shared libraries are fairly broken
19511 ld_shlibs_CXX=no
19512 ;;
19513
19514 openbsd*)
19515 if test -f /usr/libexec/ld.so; then
19516 hardcode_direct_CXX=yes
19517 hardcode_shlibpath_var_CXX=no
19518 hardcode_direct_absolute_CXX=yes
19519 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19520 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19521 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19522 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19523 export_dynamic_flag_spec_CXX='${wl}-E'
19524 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19525 fi
cristy0c60a692010-11-04 01:09:47 +000019526 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000019527 else
19528 ld_shlibs_CXX=no
19529 fi
19530 ;;
19531
19532 osf3* | osf4* | osf5*)
19533 case $cc_basename in
19534 KCC*)
19535 # Kuck and Associates, Inc. (KAI) C++ Compiler
19536
19537 # KCC will only create a shared library if the output file
19538 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19539 # to its proper name (with version) after linking.
19540 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'
19541
19542 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19543 hardcode_libdir_separator_CXX=:
19544
19545 # Archives containing C++ object files must be created using
19546 # the KAI C++ compiler.
19547 case $host in
19548 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19549 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19550 esac
19551 ;;
19552 RCC*)
19553 # Rational C++ 2.4.1
19554 # FIXME: insert proper C++ library support
19555 ld_shlibs_CXX=no
19556 ;;
19557 cxx*)
19558 case $host in
19559 osf3*)
19560 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000019561 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 +000019562 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19563 ;;
19564 *)
19565 allow_undefined_flag_CXX=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000019566 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 +000019567 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19568 echo "-hidden">> $lib.exp~
cristy0c60a692010-11-04 01:09:47 +000019569 $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 +000019570 $RM $lib.exp'
19571 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19572 ;;
19573 esac
19574
19575 hardcode_libdir_separator_CXX=:
19576
19577 # Commands to make compiler produce verbose output that lists
19578 # what "hidden" libraries, object files and flags are used when
19579 # linking a shared library.
19580 #
19581 # There doesn't appear to be a way to prevent this compiler from
19582 # explicitly linking system object files so we need to strip them
19583 # from the output so that they don't get included in the library
19584 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000019585 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 +000019586 ;;
19587 *)
19588 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19589 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19590 case $host in
19591 osf3*)
cristy0c60a692010-11-04 01:09:47 +000019592 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 +000019593 ;;
19594 *)
cristyda16f162011-02-19 23:52:17 +000019595 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 +000019596 ;;
19597 esac
19598
19599 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19600 hardcode_libdir_separator_CXX=:
19601
19602 # Commands to make compiler produce verbose output that lists
19603 # what "hidden" libraries, object files and flags are used when
19604 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000019605 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000019606
19607 else
19608 # FIXME: insert proper C++ library support
19609 ld_shlibs_CXX=no
19610 fi
19611 ;;
19612 esac
19613 ;;
19614
19615 psos*)
19616 # FIXME: insert proper C++ library support
19617 ld_shlibs_CXX=no
19618 ;;
19619
19620 sunos4*)
19621 case $cc_basename in
19622 CC*)
19623 # Sun C++ 4.x
19624 # FIXME: insert proper C++ library support
19625 ld_shlibs_CXX=no
19626 ;;
19627 lcc*)
19628 # Lucid
19629 # FIXME: insert proper C++ library support
19630 ld_shlibs_CXX=no
19631 ;;
19632 *)
19633 # FIXME: insert proper C++ library support
19634 ld_shlibs_CXX=no
19635 ;;
19636 esac
19637 ;;
19638
19639 solaris*)
19640 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000019641 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000019642 # Sun C++ 4.2, 5.x and Centerline C++
19643 archive_cmds_need_lc_CXX=yes
19644 no_undefined_flag_CXX=' -zdefs'
19645 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19646 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19647 $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'
19648
19649 hardcode_libdir_flag_spec_CXX='-R$libdir'
19650 hardcode_shlibpath_var_CXX=no
19651 case $host_os in
19652 solaris2.[0-5] | solaris2.[0-5].*) ;;
19653 *)
19654 # The compiler driver will combine and reorder linker options,
19655 # but understands `-z linker_flag'.
19656 # Supported since Solaris 2.6 (maybe 2.5.1?)
19657 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19658 ;;
19659 esac
19660 link_all_deplibs_CXX=yes
19661
cristy0c60a692010-11-04 01:09:47 +000019662 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000019663
19664 # Archives containing C++ object files must be created using
19665 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19666 # necessary to make sure instantiated templates are included
19667 # in the archive.
19668 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19669 ;;
19670 gcx*)
19671 # Green Hills C++ Compiler
19672 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19673
19674 # The C++ compiler must be used to create the archive.
19675 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19676 ;;
19677 *)
19678 # GNU C++ compiler with Solaris linker
19679 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19680 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19681 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000019682 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 +000019683 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 +000019684 $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 +000019685
19686 # Commands to make compiler produce verbose output that lists
19687 # what "hidden" libraries, object files and flags are used when
19688 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000019689 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000019690 else
19691 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19692 # platform.
19693 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19694 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19695 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19696
19697 # Commands to make compiler produce verbose output that lists
19698 # what "hidden" libraries, object files and flags are used when
19699 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000019700 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000019701 fi
19702
19703 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19704 case $host_os in
19705 solaris2.[0-5] | solaris2.[0-5].*) ;;
19706 *)
19707 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19708 ;;
19709 esac
19710 fi
19711 ;;
19712 esac
19713 ;;
19714
19715 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19716 no_undefined_flag_CXX='${wl}-z,text'
19717 archive_cmds_need_lc_CXX=no
19718 hardcode_shlibpath_var_CXX=no
19719 runpath_var='LD_RUN_PATH'
19720
19721 case $cc_basename in
19722 CC*)
19723 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19724 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19725 ;;
19726 *)
19727 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19728 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19729 ;;
19730 esac
19731 ;;
19732
19733 sysv5* | sco3.2v5* | sco5v6*)
19734 # Note: We can NOT use -z defs as we might desire, because we do not
19735 # link with -lc, and that would cause any symbols used from libc to
19736 # always be unresolved, which means just about no library would
19737 # ever link correctly. If we're not using GNU ld we use -z text
19738 # though, which does catch some bad symbols but isn't as heavy-handed
19739 # as -z defs.
19740 no_undefined_flag_CXX='${wl}-z,text'
19741 allow_undefined_flag_CXX='${wl}-z,nodefs'
19742 archive_cmds_need_lc_CXX=no
19743 hardcode_shlibpath_var_CXX=no
19744 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19745 hardcode_libdir_separator_CXX=':'
19746 link_all_deplibs_CXX=yes
19747 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19748 runpath_var='LD_RUN_PATH'
19749
19750 case $cc_basename in
19751 CC*)
19752 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19753 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 +000019754 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19755 '"$old_archive_cmds_CXX"
19756 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19757 '"$reload_cmds_CXX"
cristy73bd4a52010-10-05 11:24:23 +000019758 ;;
19759 *)
19760 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19761 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19762 ;;
19763 esac
19764 ;;
19765
19766 tandem*)
19767 case $cc_basename in
19768 NCC*)
19769 # NonStop-UX NCC 3.20
19770 # FIXME: insert proper C++ library support
19771 ld_shlibs_CXX=no
19772 ;;
19773 *)
19774 # FIXME: insert proper C++ library support
19775 ld_shlibs_CXX=no
19776 ;;
19777 esac
19778 ;;
19779
19780 vxworks*)
19781 # FIXME: insert proper C++ library support
19782 ld_shlibs_CXX=no
19783 ;;
19784
19785 *)
19786 # FIXME: insert proper C++ library support
19787 ld_shlibs_CXX=no
19788 ;;
19789 esac
19790
19791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19792$as_echo "$ld_shlibs_CXX" >&6; }
19793 test "$ld_shlibs_CXX" = no && can_build_shared=no
19794
19795 GCC_CXX="$GXX"
19796 LD_CXX="$LD"
19797
19798 ## CAVEAT EMPTOR:
19799 ## There is no encapsulation within the following macros, do not change
19800 ## the running order or otherwise move them around unless you know exactly
19801 ## what you are doing...
19802 # Dependencies to place before and after the object being linked:
19803predep_objects_CXX=
19804postdep_objects_CXX=
19805predeps_CXX=
19806postdeps_CXX=
19807compiler_lib_search_path_CXX=
19808
19809cat > conftest.$ac_ext <<_LT_EOF
19810class Foo
19811{
19812public:
19813 Foo (void) { a = 0; }
19814private:
19815 int a;
19816};
19817_LT_EOF
19818
cristyda16f162011-02-19 23:52:17 +000019819
19820_lt_libdeps_save_CFLAGS=$CFLAGS
19821case "$CC $CFLAGS " in #(
19822*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
19823*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
cristy99bd5232011-12-07 14:38:20 +000019824*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
cristyda16f162011-02-19 23:52:17 +000019825esac
19826
cristy73bd4a52010-10-05 11:24:23 +000019827if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19828 (eval $ac_compile) 2>&5
19829 ac_status=$?
19830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19831 test $ac_status = 0; }; then
19832 # Parse the compiler output and extract the necessary
19833 # objects, libraries and library flags.
19834
19835 # Sentinel used to keep track of whether or not we are before
19836 # the conftest object file.
19837 pre_test_object_deps_done=no
19838
19839 for p in `eval "$output_verbose_link_cmd"`; do
cristyda16f162011-02-19 23:52:17 +000019840 case ${prev}${p} in
cristy73bd4a52010-10-05 11:24:23 +000019841
19842 -L* | -R* | -l*)
19843 # Some compilers place space between "-{L,R}" and the path.
19844 # Remove the space.
19845 if test $p = "-L" ||
19846 test $p = "-R"; then
19847 prev=$p
19848 continue
cristy73bd4a52010-10-05 11:24:23 +000019849 fi
19850
cristyda16f162011-02-19 23:52:17 +000019851 # Expand the sysroot to ease extracting the directories later.
19852 if test -z "$prev"; then
19853 case $p in
19854 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
19855 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
19856 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
19857 esac
19858 fi
19859 case $p in
19860 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
19861 esac
cristy73bd4a52010-10-05 11:24:23 +000019862 if test "$pre_test_object_deps_done" = no; then
cristyda16f162011-02-19 23:52:17 +000019863 case ${prev} in
19864 -L | -R)
cristy73bd4a52010-10-05 11:24:23 +000019865 # Internal compiler library paths should come after those
19866 # provided the user. The postdeps already come after the
19867 # user supplied libs so there is no need to process them.
19868 if test -z "$compiler_lib_search_path_CXX"; then
19869 compiler_lib_search_path_CXX="${prev}${p}"
19870 else
19871 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19872 fi
19873 ;;
19874 # The "-l" case would never come before the object being
19875 # linked, so don't bother handling this case.
19876 esac
19877 else
19878 if test -z "$postdeps_CXX"; then
19879 postdeps_CXX="${prev}${p}"
19880 else
19881 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19882 fi
19883 fi
cristyda16f162011-02-19 23:52:17 +000019884 prev=
cristy73bd4a52010-10-05 11:24:23 +000019885 ;;
19886
cristyda16f162011-02-19 23:52:17 +000019887 *.lto.$objext) ;; # Ignore GCC LTO objects
cristy73bd4a52010-10-05 11:24:23 +000019888 *.$objext)
19889 # This assumes that the test object file only shows up
19890 # once in the compiler output.
19891 if test "$p" = "conftest.$objext"; then
19892 pre_test_object_deps_done=yes
19893 continue
19894 fi
19895
19896 if test "$pre_test_object_deps_done" = no; then
19897 if test -z "$predep_objects_CXX"; then
19898 predep_objects_CXX="$p"
19899 else
19900 predep_objects_CXX="$predep_objects_CXX $p"
19901 fi
19902 else
19903 if test -z "$postdep_objects_CXX"; then
19904 postdep_objects_CXX="$p"
19905 else
19906 postdep_objects_CXX="$postdep_objects_CXX $p"
19907 fi
19908 fi
19909 ;;
19910
19911 *) ;; # Ignore the rest.
19912
19913 esac
19914 done
19915
19916 # Clean up.
19917 rm -f a.out a.exe
19918else
19919 echo "libtool.m4: error: problem compiling CXX test program"
19920fi
19921
19922$RM -f confest.$objext
cristyda16f162011-02-19 23:52:17 +000019923CFLAGS=$_lt_libdeps_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000019924
19925# PORTME: override above test on systems where it is broken
19926case $host_os in
19927interix[3-9]*)
19928 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19929 # hack all around it, let's just trust "g++" to DTRT.
19930 predep_objects_CXX=
19931 postdep_objects_CXX=
19932 postdeps_CXX=
19933 ;;
19934
19935linux*)
19936 case `$CC -V 2>&1 | sed 5q` in
19937 *Sun\ C*)
19938 # Sun C++ 5.9
19939
19940 # The more standards-conforming stlport4 library is
19941 # incompatible with the Cstd library. Avoid specifying
19942 # it if it's in CXXFLAGS. Ignore libCrun as
19943 # -library=stlport4 depends on it.
19944 case " $CXX $CXXFLAGS " in
19945 *" -library=stlport4 "*)
19946 solaris_use_stlport4=yes
19947 ;;
19948 esac
19949
19950 if test "$solaris_use_stlport4" != yes; then
19951 postdeps_CXX='-library=Cstd -library=Crun'
19952 fi
19953 ;;
19954 esac
19955 ;;
19956
19957solaris*)
19958 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000019959 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000019960 # The more standards-conforming stlport4 library is
19961 # incompatible with the Cstd library. Avoid specifying
19962 # it if it's in CXXFLAGS. Ignore libCrun as
19963 # -library=stlport4 depends on it.
19964 case " $CXX $CXXFLAGS " in
19965 *" -library=stlport4 "*)
19966 solaris_use_stlport4=yes
19967 ;;
19968 esac
19969
19970 # Adding this requires a known-good setup of shared libraries for
19971 # Sun compiler versions before 5.6, else PIC objects from an old
19972 # archive will be linked into the output, leading to subtle bugs.
19973 if test "$solaris_use_stlport4" != yes; then
19974 postdeps_CXX='-library=Cstd -library=Crun'
19975 fi
19976 ;;
19977 esac
19978 ;;
19979esac
19980
19981
19982case " $postdeps_CXX " in
19983*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19984esac
19985 compiler_lib_search_dirs_CXX=
19986if test -n "${compiler_lib_search_path_CXX}"; then
19987 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19988fi
19989
19990
19991
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 lt_prog_compiler_wl_CXX=
20021lt_prog_compiler_pic_CXX=
20022lt_prog_compiler_static_CXX=
20023
cristy73bd4a52010-10-05 11:24:23 +000020024
20025 # C++ specific cases for pic, static, wl, etc.
20026 if test "$GXX" = yes; then
20027 lt_prog_compiler_wl_CXX='-Wl,'
20028 lt_prog_compiler_static_CXX='-static'
20029
20030 case $host_os in
20031 aix*)
20032 # All AIX code is PIC.
20033 if test "$host_cpu" = ia64; then
20034 # AIX 5 now supports IA64 processor
20035 lt_prog_compiler_static_CXX='-Bstatic'
20036 fi
20037 ;;
20038
20039 amigaos*)
20040 case $host_cpu in
20041 powerpc)
20042 # see comment about AmigaOS4 .so support
20043 lt_prog_compiler_pic_CXX='-fPIC'
20044 ;;
20045 m68k)
20046 # FIXME: we need at least 68020 code to build shared libraries, but
20047 # adding the `-m68020' flag to GCC prevents building anything better,
20048 # like `-m68040'.
20049 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
20050 ;;
20051 esac
20052 ;;
20053
20054 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20055 # PIC is the default for these OSes.
20056 ;;
20057 mingw* | cygwin* | os2* | pw32* | cegcc*)
20058 # This hack is so that the source file can tell whether it is being
20059 # built for inclusion in a dll (and should export symbols for example).
20060 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20061 # (--disable-auto-import) libraries
20062 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20063 ;;
20064 darwin* | rhapsody*)
20065 # PIC is the default on this platform
20066 # Common symbols not allowed in MH_DYLIB files
20067 lt_prog_compiler_pic_CXX='-fno-common'
20068 ;;
20069 *djgpp*)
20070 # DJGPP does not support shared libraries at all
20071 lt_prog_compiler_pic_CXX=
20072 ;;
cristy0c60a692010-11-04 01:09:47 +000020073 haiku*)
20074 # PIC is the default for Haiku.
20075 # The "-static" flag exists, but is broken.
20076 lt_prog_compiler_static_CXX=
20077 ;;
cristy73bd4a52010-10-05 11:24:23 +000020078 interix[3-9]*)
20079 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20080 # Instead, we relocate shared libraries at runtime.
20081 ;;
20082 sysv4*MP*)
20083 if test -d /usr/nec; then
20084 lt_prog_compiler_pic_CXX=-Kconform_pic
20085 fi
20086 ;;
20087 hpux*)
20088 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20089 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20090 # sets the default TLS model and affects inlining.
20091 case $host_cpu in
20092 hppa*64*)
20093 ;;
20094 *)
20095 lt_prog_compiler_pic_CXX='-fPIC'
20096 ;;
20097 esac
20098 ;;
20099 *qnx* | *nto*)
20100 # QNX uses GNU C++, but need to define -shared option too, otherwise
20101 # it will coredump.
20102 lt_prog_compiler_pic_CXX='-fPIC -shared'
20103 ;;
20104 *)
20105 lt_prog_compiler_pic_CXX='-fPIC'
20106 ;;
20107 esac
20108 else
20109 case $host_os in
20110 aix[4-9]*)
20111 # All AIX code is PIC.
20112 if test "$host_cpu" = ia64; then
20113 # AIX 5 now supports IA64 processor
20114 lt_prog_compiler_static_CXX='-Bstatic'
20115 else
20116 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
20117 fi
20118 ;;
20119 chorus*)
20120 case $cc_basename in
20121 cxch68*)
20122 # Green Hills C++ Compiler
20123 # _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"
20124 ;;
20125 esac
20126 ;;
cristyda16f162011-02-19 23:52:17 +000020127 mingw* | cygwin* | os2* | pw32* | cegcc*)
20128 # This hack is so that the source file can tell whether it is being
20129 # built for inclusion in a dll (and should export symbols for example).
20130 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20131 ;;
cristy73bd4a52010-10-05 11:24:23 +000020132 dgux*)
20133 case $cc_basename in
20134 ec++*)
20135 lt_prog_compiler_pic_CXX='-KPIC'
20136 ;;
20137 ghcx*)
20138 # Green Hills C++ Compiler
20139 lt_prog_compiler_pic_CXX='-pic'
20140 ;;
20141 *)
20142 ;;
20143 esac
20144 ;;
20145 freebsd* | dragonfly*)
20146 # FreeBSD uses GNU C++
20147 ;;
20148 hpux9* | hpux10* | hpux11*)
20149 case $cc_basename in
20150 CC*)
20151 lt_prog_compiler_wl_CXX='-Wl,'
20152 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20153 if test "$host_cpu" != ia64; then
20154 lt_prog_compiler_pic_CXX='+Z'
20155 fi
20156 ;;
20157 aCC*)
20158 lt_prog_compiler_wl_CXX='-Wl,'
20159 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20160 case $host_cpu in
20161 hppa*64*|ia64*)
20162 # +Z the default
20163 ;;
20164 *)
20165 lt_prog_compiler_pic_CXX='+Z'
20166 ;;
20167 esac
20168 ;;
20169 *)
20170 ;;
20171 esac
20172 ;;
20173 interix*)
20174 # This is c89, which is MS Visual C++ (no shared libs)
20175 # Anyone wants to do a port?
20176 ;;
20177 irix5* | irix6* | nonstopux*)
20178 case $cc_basename in
20179 CC*)
20180 lt_prog_compiler_wl_CXX='-Wl,'
20181 lt_prog_compiler_static_CXX='-non_shared'
20182 # CC pic flag -KPIC is the default.
20183 ;;
20184 *)
20185 ;;
20186 esac
20187 ;;
cristy0c60a692010-11-04 01:09:47 +000020188 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000020189 case $cc_basename in
20190 KCC*)
20191 # KAI C++ Compiler
20192 lt_prog_compiler_wl_CXX='--backend -Wl,'
20193 lt_prog_compiler_pic_CXX='-fPIC'
20194 ;;
20195 ecpc* )
20196 # old Intel C++ for x86_64 which still supported -KPIC.
20197 lt_prog_compiler_wl_CXX='-Wl,'
20198 lt_prog_compiler_pic_CXX='-KPIC'
20199 lt_prog_compiler_static_CXX='-static'
20200 ;;
20201 icpc* )
20202 # Intel C++, used to be incompatible with GCC.
20203 # ICC 10 doesn't accept -KPIC any more.
20204 lt_prog_compiler_wl_CXX='-Wl,'
20205 lt_prog_compiler_pic_CXX='-fPIC'
20206 lt_prog_compiler_static_CXX='-static'
20207 ;;
20208 pgCC* | pgcpp*)
20209 # Portland Group C++ compiler
20210 lt_prog_compiler_wl_CXX='-Wl,'
20211 lt_prog_compiler_pic_CXX='-fpic'
20212 lt_prog_compiler_static_CXX='-Bstatic'
20213 ;;
20214 cxx*)
20215 # Compaq C++
20216 # Make sure the PIC flag is empty. It appears that all Alpha
20217 # Linux and Compaq Tru64 Unix objects are PIC.
20218 lt_prog_compiler_pic_CXX=
20219 lt_prog_compiler_static_CXX='-non_shared'
20220 ;;
cristy0c60a692010-11-04 01:09:47 +000020221 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
20222 # IBM XL 8.0, 9.0 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000020223 lt_prog_compiler_wl_CXX='-Wl,'
20224 lt_prog_compiler_pic_CXX='-qpic'
20225 lt_prog_compiler_static_CXX='-qstaticlink'
20226 ;;
20227 *)
20228 case `$CC -V 2>&1 | sed 5q` in
20229 *Sun\ C*)
20230 # Sun C++ 5.9
20231 lt_prog_compiler_pic_CXX='-KPIC'
20232 lt_prog_compiler_static_CXX='-Bstatic'
20233 lt_prog_compiler_wl_CXX='-Qoption ld '
20234 ;;
20235 esac
20236 ;;
20237 esac
20238 ;;
20239 lynxos*)
20240 ;;
20241 m88k*)
20242 ;;
20243 mvs*)
20244 case $cc_basename in
20245 cxx*)
20246 lt_prog_compiler_pic_CXX='-W c,exportall'
20247 ;;
20248 *)
20249 ;;
20250 esac
20251 ;;
20252 netbsd*)
20253 ;;
20254 *qnx* | *nto*)
20255 # QNX uses GNU C++, but need to define -shared option too, otherwise
20256 # it will coredump.
20257 lt_prog_compiler_pic_CXX='-fPIC -shared'
20258 ;;
20259 osf3* | osf4* | osf5*)
20260 case $cc_basename in
20261 KCC*)
20262 lt_prog_compiler_wl_CXX='--backend -Wl,'
20263 ;;
20264 RCC*)
20265 # Rational C++ 2.4.1
20266 lt_prog_compiler_pic_CXX='-pic'
20267 ;;
20268 cxx*)
20269 # Digital/Compaq C++
20270 lt_prog_compiler_wl_CXX='-Wl,'
20271 # Make sure the PIC flag is empty. It appears that all Alpha
20272 # Linux and Compaq Tru64 Unix objects are PIC.
20273 lt_prog_compiler_pic_CXX=
20274 lt_prog_compiler_static_CXX='-non_shared'
20275 ;;
20276 *)
20277 ;;
20278 esac
20279 ;;
20280 psos*)
20281 ;;
20282 solaris*)
20283 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000020284 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000020285 # Sun C++ 4.2, 5.x and Centerline C++
20286 lt_prog_compiler_pic_CXX='-KPIC'
20287 lt_prog_compiler_static_CXX='-Bstatic'
20288 lt_prog_compiler_wl_CXX='-Qoption ld '
20289 ;;
20290 gcx*)
20291 # Green Hills C++ Compiler
20292 lt_prog_compiler_pic_CXX='-PIC'
20293 ;;
20294 *)
20295 ;;
20296 esac
20297 ;;
20298 sunos4*)
20299 case $cc_basename in
20300 CC*)
20301 # Sun C++ 4.x
20302 lt_prog_compiler_pic_CXX='-pic'
20303 lt_prog_compiler_static_CXX='-Bstatic'
20304 ;;
20305 lcc*)
20306 # Lucid
20307 lt_prog_compiler_pic_CXX='-pic'
20308 ;;
20309 *)
20310 ;;
20311 esac
20312 ;;
20313 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20314 case $cc_basename in
20315 CC*)
20316 lt_prog_compiler_wl_CXX='-Wl,'
20317 lt_prog_compiler_pic_CXX='-KPIC'
20318 lt_prog_compiler_static_CXX='-Bstatic'
20319 ;;
20320 esac
20321 ;;
20322 tandem*)
20323 case $cc_basename in
20324 NCC*)
20325 # NonStop-UX NCC 3.20
20326 lt_prog_compiler_pic_CXX='-KPIC'
20327 ;;
20328 *)
20329 ;;
20330 esac
20331 ;;
20332 vxworks*)
20333 ;;
20334 *)
20335 lt_prog_compiler_can_build_shared_CXX=no
20336 ;;
20337 esac
20338 fi
20339
20340case $host_os in
20341 # For platforms which do not support PIC, -DPIC is meaningless:
20342 *djgpp*)
20343 lt_prog_compiler_pic_CXX=
20344 ;;
20345 *)
20346 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20347 ;;
20348esac
cristy73bd4a52010-10-05 11:24:23 +000020349
cristyda16f162011-02-19 23:52:17 +000020350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20351$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20352if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
20353 $as_echo_n "(cached) " >&6
20354else
20355 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
20356fi
20357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
20358$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
20359lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
cristy73bd4a52010-10-05 11:24:23 +000020360
20361#
20362# Check to make sure the PIC flag actually works.
20363#
20364if test -n "$lt_prog_compiler_pic_CXX"; then
20365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20366$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020367if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020368 $as_echo_n "(cached) " >&6
20369else
20370 lt_cv_prog_compiler_pic_works_CXX=no
20371 ac_outfile=conftest.$ac_objext
20372 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20373 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20374 # Insert the option either (1) after the last *FLAGS variable, or
20375 # (2) before a word containing "conftest.", or (3) at the end.
20376 # Note that $ac_compile itself does not contain backslashes and begins
20377 # with a dollar sign (not a hyphen), so the echo should work correctly.
20378 # The option is referenced via a variable to avoid confusing sed.
20379 lt_compile=`echo "$ac_compile" | $SED \
20380 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20381 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20382 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000020383 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000020384 (eval "$lt_compile" 2>conftest.err)
20385 ac_status=$?
20386 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000020387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000020388 if (exit $ac_status) && test -s "$ac_outfile"; then
20389 # The compiler can only warn and ignore the option if not recognized
20390 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000020391 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000020392 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20393 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20394 lt_cv_prog_compiler_pic_works_CXX=yes
20395 fi
20396 fi
20397 $RM conftest*
20398
20399fi
20400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20401$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20402
20403if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20404 case $lt_prog_compiler_pic_CXX in
20405 "" | " "*) ;;
20406 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20407 esac
20408else
20409 lt_prog_compiler_pic_CXX=
20410 lt_prog_compiler_can_build_shared_CXX=no
20411fi
20412
20413fi
20414
20415
20416
cristyda16f162011-02-19 23:52:17 +000020417
20418
cristy73bd4a52010-10-05 11:24:23 +000020419#
20420# Check to make sure the static flag actually works.
20421#
20422wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20424$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020425if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020426 $as_echo_n "(cached) " >&6
20427else
20428 lt_cv_prog_compiler_static_works_CXX=no
20429 save_LDFLAGS="$LDFLAGS"
20430 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20431 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20432 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20433 # The linker can only warn and ignore the option if not recognized
20434 # So say no if there are warnings
20435 if test -s conftest.err; then
20436 # Append any errors to the config.log.
20437 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000020438 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000020439 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20440 if diff conftest.exp conftest.er2 >/dev/null; then
20441 lt_cv_prog_compiler_static_works_CXX=yes
20442 fi
20443 else
20444 lt_cv_prog_compiler_static_works_CXX=yes
20445 fi
20446 fi
20447 $RM -r conftest*
20448 LDFLAGS="$save_LDFLAGS"
20449
20450fi
20451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20452$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20453
20454if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20455 :
20456else
20457 lt_prog_compiler_static_CXX=
20458fi
20459
20460
20461
20462
20463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20464$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020465if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020466 $as_echo_n "(cached) " >&6
20467else
20468 lt_cv_prog_compiler_c_o_CXX=no
20469 $RM -r conftest 2>/dev/null
20470 mkdir conftest
20471 cd conftest
20472 mkdir out
20473 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20474
20475 lt_compiler_flag="-o out/conftest2.$ac_objext"
20476 # Insert the option either (1) after the last *FLAGS variable, or
20477 # (2) before a word containing "conftest.", or (3) at the end.
20478 # Note that $ac_compile itself does not contain backslashes and begins
20479 # with a dollar sign (not a hyphen), so the echo should work correctly.
20480 lt_compile=`echo "$ac_compile" | $SED \
20481 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20482 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20483 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000020484 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000020485 (eval "$lt_compile" 2>out/conftest.err)
20486 ac_status=$?
20487 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000020488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000020489 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20490 then
20491 # The compiler can only warn and ignore the option if not recognized
20492 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000020493 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000020494 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20495 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20496 lt_cv_prog_compiler_c_o_CXX=yes
20497 fi
20498 fi
20499 chmod u+w . 2>&5
20500 $RM conftest*
20501 # SGI C++ compiler will create directory out/ii_files/ for
20502 # template instantiation
20503 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20504 $RM out/* && rmdir out
20505 cd ..
20506 $RM -r conftest
20507 $RM conftest*
20508
20509fi
20510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20511$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20512
20513
20514
20515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20516$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020517if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020518 $as_echo_n "(cached) " >&6
20519else
20520 lt_cv_prog_compiler_c_o_CXX=no
20521 $RM -r conftest 2>/dev/null
20522 mkdir conftest
20523 cd conftest
20524 mkdir out
20525 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20526
20527 lt_compiler_flag="-o out/conftest2.$ac_objext"
20528 # Insert the option either (1) after the last *FLAGS variable, or
20529 # (2) before a word containing "conftest.", or (3) at the end.
20530 # Note that $ac_compile itself does not contain backslashes and begins
20531 # with a dollar sign (not a hyphen), so the echo should work correctly.
20532 lt_compile=`echo "$ac_compile" | $SED \
20533 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20534 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20535 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000020536 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000020537 (eval "$lt_compile" 2>out/conftest.err)
20538 ac_status=$?
20539 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000020540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000020541 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20542 then
20543 # The compiler can only warn and ignore the option if not recognized
20544 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000020545 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000020546 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20547 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20548 lt_cv_prog_compiler_c_o_CXX=yes
20549 fi
20550 fi
20551 chmod u+w . 2>&5
20552 $RM conftest*
20553 # SGI C++ compiler will create directory out/ii_files/ for
20554 # template instantiation
20555 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20556 $RM out/* && rmdir out
20557 cd ..
20558 $RM -r conftest
20559 $RM conftest*
20560
20561fi
20562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20563$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20564
20565
20566
20567
20568hard_links="nottested"
20569if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20570 # do not overwrite the value of need_locks provided by the user
20571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20572$as_echo_n "checking if we can lock with hard links... " >&6; }
20573 hard_links=yes
20574 $RM conftest*
20575 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20576 touch conftest.a
20577 ln conftest.a conftest.b 2>&5 || hard_links=no
20578 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20580$as_echo "$hard_links" >&6; }
20581 if test "$hard_links" = no; then
20582 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20583$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20584 need_locks=warn
20585 fi
20586else
20587 need_locks=no
20588fi
20589
20590
20591
20592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20593$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20594
20595 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000020596 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
cristy73bd4a52010-10-05 11:24:23 +000020597 case $host_os in
20598 aix[4-9]*)
20599 # If we're using GNU nm, then we don't want the "-C" option.
20600 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000020601 # Also, AIX nm treats weak defined symbols like other global defined
20602 # symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000020603 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000020604 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 +000020605 else
20606 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'
20607 fi
20608 ;;
20609 pw32*)
20610 export_symbols_cmds_CXX="$ltdll_cmds"
cristyda16f162011-02-19 23:52:17 +000020611 ;;
cristy73bd4a52010-10-05 11:24:23 +000020612 cygwin* | mingw* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000020613 case $cc_basename in
cristy99bd5232011-12-07 14:38:20 +000020614 cl*)
20615 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
20616 ;;
cristyda16f162011-02-19 23:52:17 +000020617 *)
20618 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'
20619 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
20620 ;;
20621 esac
20622 ;;
cristy73bd4a52010-10-05 11:24:23 +000020623 *)
20624 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000020625 ;;
cristy73bd4a52010-10-05 11:24:23 +000020626 esac
cristy73bd4a52010-10-05 11:24:23 +000020627
20628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20629$as_echo "$ld_shlibs_CXX" >&6; }
20630test "$ld_shlibs_CXX" = no && can_build_shared=no
20631
20632with_gnu_ld_CXX=$with_gnu_ld
20633
20634
20635
20636
20637
20638
20639#
20640# Do we need to explicitly link libc?
20641#
20642case "x$archive_cmds_need_lc_CXX" in
20643x|xyes)
20644 # Assume -lc should be added
20645 archive_cmds_need_lc_CXX=yes
20646
20647 if test "$enable_shared" = yes && test "$GCC" = yes; then
20648 case $archive_cmds_CXX in
20649 *'~'*)
20650 # FIXME: we may have to deal with multi-command sequences.
20651 ;;
20652 '$CC '*)
20653 # Test whether the compiler implicitly links with -lc since on some
20654 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20655 # to ld, don't add -lc before -lgcc.
20656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20657$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020658if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000020659 $as_echo_n "(cached) " >&6
20660else
20661 $RM conftest*
20662 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000020663
cristy0c60a692010-11-04 01:09:47 +000020664 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000020665 (eval $ac_compile) 2>&5
20666 ac_status=$?
20667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20668 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000020669 soname=conftest
20670 lib=conftest
20671 libobjs=conftest.$ac_objext
20672 deplibs=
20673 wl=$lt_prog_compiler_wl_CXX
20674 pic_flag=$lt_prog_compiler_pic_CXX
20675 compiler_flags=-v
20676 linker_flags=-v
20677 verstring=
20678 output_objdir=.
20679 libname=conftest
20680 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20681 allow_undefined_flag_CXX=
20682 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 +000020683 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20684 ac_status=$?
20685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20686 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000020687 then
20688 lt_cv_archive_cmds_need_lc_CXX=no
20689 else
20690 lt_cv_archive_cmds_need_lc_CXX=yes
20691 fi
20692 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20693 else
20694 cat conftest.err 1>&5
20695 fi
20696 $RM conftest*
20697
20698fi
20699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20700$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20701 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
cristy73bd4a52010-10-05 11:24:23 +000020702 ;;
20703 esac
20704 fi
20705 ;;
20706esac
20707
20708
20709
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
cristy73bd4a52010-10-05 11:24:23 +000020769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20770$as_echo_n "checking dynamic linker characteristics... " >&6; }
20771
20772library_names_spec=
20773libname_spec='lib$name'
20774soname_spec=
20775shrext_cmds=".so"
20776postinstall_cmds=
20777postuninstall_cmds=
20778finish_cmds=
20779finish_eval=
20780shlibpath_var=
20781shlibpath_overrides_runpath=unknown
20782version_type=none
20783dynamic_linker="$host_os ld.so"
20784sys_lib_dlsearch_path_spec="/lib /usr/lib"
20785need_lib_prefix=unknown
20786hardcode_into_libs=no
20787
20788# when you set need_version to no, make sure it does not cause -set_version
20789# flags to be left without arguments
20790need_version=unknown
20791
20792case $host_os in
20793aix3*)
cristy99bd5232011-12-07 14:38:20 +000020794 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020795 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20796 shlibpath_var=LIBPATH
20797
20798 # AIX 3 has no versioning support, so we append a major version to the name.
20799 soname_spec='${libname}${release}${shared_ext}$major'
20800 ;;
20801
20802aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000020803 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020804 need_lib_prefix=no
20805 need_version=no
20806 hardcode_into_libs=yes
20807 if test "$host_cpu" = ia64; then
20808 # AIX 5 supports IA64
20809 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20810 shlibpath_var=LD_LIBRARY_PATH
20811 else
20812 # With GCC up to 2.95.x, collect2 would create an import file
20813 # for dependence libraries. The import file would start with
20814 # the line `#! .'. This would cause the generated library to
20815 # depend on `.', always an invalid library. This was fixed in
20816 # development snapshots of GCC prior to 3.0.
20817 case $host_os in
20818 aix4 | aix4.[01] | aix4.[01].*)
20819 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20820 echo ' yes '
20821 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20822 :
20823 else
20824 can_build_shared=no
20825 fi
20826 ;;
20827 esac
20828 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20829 # soname into executable. Probably we can add versioning support to
20830 # collect2, so additional links can be useful in future.
20831 if test "$aix_use_runtimelinking" = yes; then
20832 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20833 # instead of lib<name>.a to let people know that these are not
20834 # typical AIX shared libraries.
20835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20836 else
20837 # We preserve .a as extension for shared libraries through AIX4.2
20838 # and later when we are not doing run time linking.
20839 library_names_spec='${libname}${release}.a $libname.a'
20840 soname_spec='${libname}${release}${shared_ext}$major'
20841 fi
20842 shlibpath_var=LIBPATH
20843 fi
20844 ;;
20845
20846amigaos*)
20847 case $host_cpu in
20848 powerpc)
20849 # Since July 2007 AmigaOS4 officially supports .so libraries.
20850 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20852 ;;
20853 m68k)
20854 library_names_spec='$libname.ixlibrary $libname.a'
20855 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000020856 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 +000020857 ;;
20858 esac
20859 ;;
20860
20861beos*)
20862 library_names_spec='${libname}${shared_ext}'
20863 dynamic_linker="$host_os ld.so"
20864 shlibpath_var=LIBRARY_PATH
20865 ;;
20866
20867bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000020868 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020869 need_version=no
20870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20871 soname_spec='${libname}${release}${shared_ext}$major'
20872 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20873 shlibpath_var=LD_LIBRARY_PATH
20874 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20875 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20876 # the default ld.so.conf also contains /usr/contrib/lib and
20877 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20878 # libtool to hard-code these into programs
20879 ;;
20880
20881cygwin* | mingw* | pw32* | cegcc*)
20882 version_type=windows
20883 shrext_cmds=".dll"
20884 need_version=no
20885 need_lib_prefix=no
20886
cristyda16f162011-02-19 23:52:17 +000020887 case $GCC,$cc_basename in
20888 yes,*)
20889 # gcc
cristy73bd4a52010-10-05 11:24:23 +000020890 library_names_spec='$libname.dll.a'
20891 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20892 postinstall_cmds='base_file=`basename \${file}`~
20893 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20894 dldir=$destdir/`dirname \$dlpath`~
20895 test -d \$dldir || mkdir -p \$dldir~
20896 $install_prog $dir/$dlname \$dldir/$dlname~
20897 chmod a+x \$dldir/$dlname~
20898 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20899 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20900 fi'
20901 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20902 dlpath=$dir/\$dldll~
20903 $RM \$dlpath'
20904 shlibpath_overrides_runpath=yes
20905
20906 case $host_os in
20907 cygwin*)
20908 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20909 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000020910
cristy73bd4a52010-10-05 11:24:23 +000020911 ;;
20912 mingw* | cegcc*)
20913 # MinGW DLLs use traditional 'lib' prefix
20914 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000020915 ;;
20916 pw32*)
20917 # pw32 DLLs use 'pw' prefix rather than 'lib'
20918 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20919 ;;
20920 esac
cristyda16f162011-02-19 23:52:17 +000020921 dynamic_linker='Win32 ld.exe'
20922 ;;
20923
20924 *,cl*)
20925 # Native MSVC
20926 libname_spec='$name'
20927 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20928 library_names_spec='${libname}.dll.lib'
20929
20930 case $build_os in
20931 mingw*)
20932 sys_lib_search_path_spec=
20933 lt_save_ifs=$IFS
20934 IFS=';'
20935 for lt_path in $LIB
20936 do
20937 IFS=$lt_save_ifs
20938 # Let DOS variable expansion print the short 8.3 style file name.
20939 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
20940 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
20941 done
20942 IFS=$lt_save_ifs
20943 # Convert to MSYS style.
20944 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
20945 ;;
20946 cygwin*)
20947 # Convert to unix form, then to dos form, then back to unix form
20948 # but this time dos style (no spaces!) so that the unix form looks
20949 # like /cygdrive/c/PROGRA~1:/cygdr...
20950 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
20951 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
20952 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20953 ;;
20954 *)
20955 sys_lib_search_path_spec="$LIB"
20956 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
20957 # It is most probably a Windows format PATH.
20958 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20959 else
20960 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20961 fi
20962 # FIXME: find the short name or the path components, as spaces are
20963 # common. (e.g. "Program Files" -> "PROGRA~1")
20964 ;;
20965 esac
20966
20967 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20968 postinstall_cmds='base_file=`basename \${file}`~
20969 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20970 dldir=$destdir/`dirname \$dlpath`~
20971 test -d \$dldir || mkdir -p \$dldir~
20972 $install_prog $dir/$dlname \$dldir/$dlname'
20973 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20974 dlpath=$dir/\$dldll~
20975 $RM \$dlpath'
20976 shlibpath_overrides_runpath=yes
20977 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000020978 ;;
20979
20980 *)
cristyda16f162011-02-19 23:52:17 +000020981 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000020982 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000020983 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000020984 ;;
20985 esac
cristy73bd4a52010-10-05 11:24:23 +000020986 # FIXME: first we should search . and the directory the executable is in
20987 shlibpath_var=PATH
20988 ;;
20989
20990darwin* | rhapsody*)
20991 dynamic_linker="$host_os dyld"
20992 version_type=darwin
20993 need_lib_prefix=no
20994 need_version=no
20995 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20996 soname_spec='${libname}${release}${major}$shared_ext'
20997 shlibpath_overrides_runpath=yes
20998 shlibpath_var=DYLD_LIBRARY_PATH
20999 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
21000
21001 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
21002 ;;
21003
21004dgux*)
cristy99bd5232011-12-07 14:38:20 +000021005 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021006 need_lib_prefix=no
21007 need_version=no
21008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21009 soname_spec='${libname}${release}${shared_ext}$major'
21010 shlibpath_var=LD_LIBRARY_PATH
21011 ;;
21012
cristy73bd4a52010-10-05 11:24:23 +000021013freebsd* | dragonfly*)
21014 # DragonFly does not have aout. When/if they implement a new
21015 # versioning mechanism, adjust this.
21016 if test -x /usr/bin/objformat; then
21017 objformat=`/usr/bin/objformat`
21018 else
21019 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000021020 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000021021 *) objformat=elf ;;
21022 esac
21023 fi
21024 version_type=freebsd-$objformat
21025 case $version_type in
21026 freebsd-elf*)
21027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21028 need_version=no
21029 need_lib_prefix=no
21030 ;;
21031 freebsd-*)
21032 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21033 need_version=yes
21034 ;;
21035 esac
21036 shlibpath_var=LD_LIBRARY_PATH
21037 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000021038 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000021039 shlibpath_overrides_runpath=yes
21040 ;;
21041 freebsd3.[01]* | freebsdelf3.[01]*)
21042 shlibpath_overrides_runpath=yes
21043 hardcode_into_libs=yes
21044 ;;
21045 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
21046 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
21047 shlibpath_overrides_runpath=no
21048 hardcode_into_libs=yes
21049 ;;
21050 *) # from 4.6 on, and DragonFly
21051 shlibpath_overrides_runpath=yes
21052 hardcode_into_libs=yes
21053 ;;
21054 esac
21055 ;;
21056
21057gnu*)
cristy99bd5232011-12-07 14:38:20 +000021058 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021059 need_lib_prefix=no
21060 need_version=no
21061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21062 soname_spec='${libname}${release}${shared_ext}$major'
21063 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000021064 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000021065 hardcode_into_libs=yes
21066 ;;
21067
cristy0c60a692010-11-04 01:09:47 +000021068haiku*)
cristy99bd5232011-12-07 14:38:20 +000021069 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000021070 need_lib_prefix=no
21071 need_version=no
21072 dynamic_linker="$host_os runtime_loader"
21073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21074 soname_spec='${libname}${release}${shared_ext}$major'
21075 shlibpath_var=LIBRARY_PATH
21076 shlibpath_overrides_runpath=yes
21077 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
21078 hardcode_into_libs=yes
21079 ;;
21080
cristy73bd4a52010-10-05 11:24:23 +000021081hpux9* | hpux10* | hpux11*)
21082 # Give a soname corresponding to the major version so that dld.sl refuses to
21083 # link against other versions.
21084 version_type=sunos
21085 need_lib_prefix=no
21086 need_version=no
21087 case $host_cpu in
21088 ia64*)
21089 shrext_cmds='.so'
21090 hardcode_into_libs=yes
21091 dynamic_linker="$host_os dld.so"
21092 shlibpath_var=LD_LIBRARY_PATH
21093 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21095 soname_spec='${libname}${release}${shared_ext}$major'
21096 if test "X$HPUX_IA64_MODE" = X32; then
21097 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21098 else
21099 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21100 fi
21101 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21102 ;;
21103 hppa*64*)
21104 shrext_cmds='.sl'
21105 hardcode_into_libs=yes
21106 dynamic_linker="$host_os dld.sl"
21107 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21108 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21110 soname_spec='${libname}${release}${shared_ext}$major'
21111 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21112 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21113 ;;
21114 *)
21115 shrext_cmds='.sl'
21116 dynamic_linker="$host_os dld.sl"
21117 shlibpath_var=SHLIB_PATH
21118 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21120 soname_spec='${libname}${release}${shared_ext}$major'
21121 ;;
21122 esac
cristy0c60a692010-11-04 01:09:47 +000021123 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000021124 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000021125 # or fails outright, so override atomically:
21126 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000021127 ;;
21128
21129interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000021130 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021131 need_lib_prefix=no
21132 need_version=no
21133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21134 soname_spec='${libname}${release}${shared_ext}$major'
21135 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21136 shlibpath_var=LD_LIBRARY_PATH
21137 shlibpath_overrides_runpath=no
21138 hardcode_into_libs=yes
21139 ;;
21140
21141irix5* | irix6* | nonstopux*)
21142 case $host_os in
21143 nonstopux*) version_type=nonstopux ;;
21144 *)
21145 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000021146 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021147 else
21148 version_type=irix
21149 fi ;;
21150 esac
21151 need_lib_prefix=no
21152 need_version=no
21153 soname_spec='${libname}${release}${shared_ext}$major'
21154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21155 case $host_os in
21156 irix5* | nonstopux*)
21157 libsuff= shlibsuff=
21158 ;;
21159 *)
21160 case $LD in # libtool.m4 will add one of these switches to LD
21161 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21162 libsuff= shlibsuff= libmagic=32-bit;;
21163 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21164 libsuff=32 shlibsuff=N32 libmagic=N32;;
21165 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21166 libsuff=64 shlibsuff=64 libmagic=64-bit;;
21167 *) libsuff= shlibsuff= libmagic=never-match;;
21168 esac
21169 ;;
21170 esac
21171 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21172 shlibpath_overrides_runpath=no
21173 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21174 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21175 hardcode_into_libs=yes
21176 ;;
21177
21178# No shared lib support for Linux oldld, aout, or coff.
21179linux*oldld* | linux*aout* | linux*coff*)
21180 dynamic_linker=no
21181 ;;
21182
cristy99bd5232011-12-07 14:38:20 +000021183# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000021184linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000021185 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021186 need_lib_prefix=no
21187 need_version=no
21188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21189 soname_spec='${libname}${release}${shared_ext}$major'
21190 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21191 shlibpath_var=LD_LIBRARY_PATH
21192 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000021193
cristy73bd4a52010-10-05 11:24:23 +000021194 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000021195 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000021196 $as_echo_n "(cached) " >&6
21197else
21198 lt_cv_shlibpath_overrides_runpath=no
21199 save_LDFLAGS=$LDFLAGS
21200 save_libdir=$libdir
21201 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21202 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000021204/* end confdefs.h. */
21205
21206int
21207main ()
21208{
21209
21210 ;
21211 return 0;
21212}
21213_ACEOF
21214if ac_fn_cxx_try_link "$LINENO"; then :
21215 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000021216 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000021217fi
21218fi
21219rm -f core conftest.err conftest.$ac_objext \
21220 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000021221 LDFLAGS=$save_LDFLAGS
21222 libdir=$save_libdir
21223
21224fi
21225
21226 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000021227
21228 # This implies no fast_install, which is unacceptable.
21229 # Some rework will be needed to allow for fast_install
21230 # before this can be enabled.
21231 hardcode_into_libs=yes
21232
21233 # Add ABI-specific directories to the system library path.
21234 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
21235
21236 # Append ld.so.conf contents to the search path
21237 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000021238 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 +000021239 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000021240
cristy73bd4a52010-10-05 11:24:23 +000021241 fi
21242
21243 # We used to test for /lib/ld.so.1 and disable shared libraries on
21244 # powerpc, because MkLinux only supported shared libraries with the
21245 # GNU dynamic linker. Since this was broken with cross compilers,
21246 # most powerpc-linux boxes support dynamic linking these days and
21247 # people can always --disable-shared, the test was removed, and we
21248 # assume the GNU/Linux dynamic linker is in use.
21249 dynamic_linker='GNU/Linux ld.so'
21250 ;;
21251
21252netbsd*)
21253 version_type=sunos
21254 need_lib_prefix=no
21255 need_version=no
21256 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21258 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21259 dynamic_linker='NetBSD (a.out) ld.so'
21260 else
21261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21262 soname_spec='${libname}${release}${shared_ext}$major'
21263 dynamic_linker='NetBSD ld.elf_so'
21264 fi
21265 shlibpath_var=LD_LIBRARY_PATH
21266 shlibpath_overrides_runpath=yes
21267 hardcode_into_libs=yes
21268 ;;
21269
21270newsos6)
cristy99bd5232011-12-07 14:38:20 +000021271 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21273 shlibpath_var=LD_LIBRARY_PATH
21274 shlibpath_overrides_runpath=yes
21275 ;;
21276
21277*nto* | *qnx*)
21278 version_type=qnx
21279 need_lib_prefix=no
21280 need_version=no
21281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21282 soname_spec='${libname}${release}${shared_ext}$major'
21283 shlibpath_var=LD_LIBRARY_PATH
21284 shlibpath_overrides_runpath=no
21285 hardcode_into_libs=yes
21286 dynamic_linker='ldqnx.so'
21287 ;;
21288
21289openbsd*)
21290 version_type=sunos
21291 sys_lib_dlsearch_path_spec="/usr/lib"
21292 need_lib_prefix=no
21293 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21294 case $host_os in
21295 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21296 *) need_version=no ;;
21297 esac
21298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21299 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21300 shlibpath_var=LD_LIBRARY_PATH
21301 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21302 case $host_os in
21303 openbsd2.[89] | openbsd2.[89].*)
21304 shlibpath_overrides_runpath=no
21305 ;;
21306 *)
21307 shlibpath_overrides_runpath=yes
21308 ;;
21309 esac
21310 else
21311 shlibpath_overrides_runpath=yes
21312 fi
21313 ;;
21314
21315os2*)
21316 libname_spec='$name'
21317 shrext_cmds=".dll"
21318 need_lib_prefix=no
21319 library_names_spec='$libname${shared_ext} $libname.a'
21320 dynamic_linker='OS/2 ld.exe'
21321 shlibpath_var=LIBPATH
21322 ;;
21323
21324osf3* | osf4* | osf5*)
21325 version_type=osf
21326 need_lib_prefix=no
21327 need_version=no
21328 soname_spec='${libname}${release}${shared_ext}$major'
21329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21330 shlibpath_var=LD_LIBRARY_PATH
21331 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21332 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21333 ;;
21334
21335rdos*)
21336 dynamic_linker=no
21337 ;;
21338
21339solaris*)
cristy99bd5232011-12-07 14:38:20 +000021340 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021341 need_lib_prefix=no
21342 need_version=no
21343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21344 soname_spec='${libname}${release}${shared_ext}$major'
21345 shlibpath_var=LD_LIBRARY_PATH
21346 shlibpath_overrides_runpath=yes
21347 hardcode_into_libs=yes
21348 # ldd complains unless libraries are executable
21349 postinstall_cmds='chmod +x $lib'
21350 ;;
21351
21352sunos4*)
21353 version_type=sunos
21354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21355 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21356 shlibpath_var=LD_LIBRARY_PATH
21357 shlibpath_overrides_runpath=yes
21358 if test "$with_gnu_ld" = yes; then
21359 need_lib_prefix=no
21360 fi
21361 need_version=yes
21362 ;;
21363
21364sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000021365 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21367 soname_spec='${libname}${release}${shared_ext}$major'
21368 shlibpath_var=LD_LIBRARY_PATH
21369 case $host_vendor in
21370 sni)
21371 shlibpath_overrides_runpath=no
21372 need_lib_prefix=no
21373 runpath_var=LD_RUN_PATH
21374 ;;
21375 siemens)
21376 need_lib_prefix=no
21377 ;;
21378 motorola)
21379 need_lib_prefix=no
21380 need_version=no
21381 shlibpath_overrides_runpath=no
21382 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21383 ;;
21384 esac
21385 ;;
21386
21387sysv4*MP*)
21388 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000021389 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021390 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21391 soname_spec='$libname${shared_ext}.$major'
21392 shlibpath_var=LD_LIBRARY_PATH
21393 fi
21394 ;;
21395
21396sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21397 version_type=freebsd-elf
21398 need_lib_prefix=no
21399 need_version=no
21400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21401 soname_spec='${libname}${release}${shared_ext}$major'
21402 shlibpath_var=LD_LIBRARY_PATH
21403 shlibpath_overrides_runpath=yes
21404 hardcode_into_libs=yes
21405 if test "$with_gnu_ld" = yes; then
21406 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21407 else
21408 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21409 case $host_os in
21410 sco3.2v5*)
21411 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21412 ;;
21413 esac
21414 fi
21415 sys_lib_dlsearch_path_spec='/usr/lib'
21416 ;;
21417
21418tpf*)
21419 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000021420 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021421 need_lib_prefix=no
21422 need_version=no
21423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21424 shlibpath_var=LD_LIBRARY_PATH
21425 shlibpath_overrides_runpath=no
21426 hardcode_into_libs=yes
21427 ;;
21428
21429uts4*)
cristy99bd5232011-12-07 14:38:20 +000021430 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21432 soname_spec='${libname}${release}${shared_ext}$major'
21433 shlibpath_var=LD_LIBRARY_PATH
21434 ;;
21435
21436*)
21437 dynamic_linker=no
21438 ;;
21439esac
21440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21441$as_echo "$dynamic_linker" >&6; }
21442test "$dynamic_linker" = no && can_build_shared=no
21443
21444variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21445if test "$GCC" = yes; then
21446 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21447fi
21448
21449if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21450 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21451fi
21452if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21453 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21454fi
21455
21456
21457
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
cristy0c60a692010-11-04 01:09:47 +000021491
21492
cristy73bd4a52010-10-05 11:24:23 +000021493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21494$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21495hardcode_action_CXX=
21496if test -n "$hardcode_libdir_flag_spec_CXX" ||
21497 test -n "$runpath_var_CXX" ||
21498 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21499
21500 # We can hardcode non-existent directories.
21501 if test "$hardcode_direct_CXX" != no &&
21502 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21503 # have to relink, otherwise we might link with an installed library
21504 # when we should be linking with a yet-to-be-installed one
21505 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21506 test "$hardcode_minus_L_CXX" != no; then
21507 # Linking always hardcodes the temporary library directory.
21508 hardcode_action_CXX=relink
21509 else
21510 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21511 hardcode_action_CXX=immediate
21512 fi
21513else
21514 # We cannot hardcode anything, or else we can only hardcode existing
21515 # directories.
21516 hardcode_action_CXX=unsupported
21517fi
21518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21519$as_echo "$hardcode_action_CXX" >&6; }
21520
21521if test "$hardcode_action_CXX" = relink ||
21522 test "$inherit_rpath_CXX" = yes; then
21523 # Fast installation is not supported
21524 enable_fast_install=no
21525elif test "$shlibpath_overrides_runpath" = yes ||
21526 test "$enable_shared" = no; then
21527 # Fast installation is not necessary
21528 enable_fast_install=needless
21529fi
21530
21531
21532
21533
21534
21535
21536
21537 fi # test -n "$compiler"
21538
21539 CC=$lt_save_CC
cristyda16f162011-02-19 23:52:17 +000021540 CFLAGS=$lt_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000021541 LDCXX=$LD
21542 LD=$lt_save_LD
21543 GCC=$lt_save_GCC
21544 with_gnu_ld=$lt_save_with_gnu_ld
21545 lt_cv_path_LDCXX=$lt_cv_path_LD
21546 lt_cv_path_LD=$lt_save_path_LD
21547 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21548 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21549fi # test "$_lt_caught_CXX_error" != yes
21550
21551ac_ext=c
21552ac_cpp='$CPP $CPPFLAGS'
21553ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21554ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21555ac_compiler_gnu=$ac_cv_c_compiler_gnu
21556
21557
21558
21559
21560
21561
21562
21563
21564
21565
21566
21567
21568
cristy99bd5232011-12-07 14:38:20 +000021569
21570
cristy73bd4a52010-10-05 11:24:23 +000021571 ac_config_commands="$ac_config_commands libtool"
21572
21573
21574
21575
21576# Only expand once:
21577
21578
21579
cristy3ed852e2009-09-05 21:47:34 +000021580
21581
cristy3ed852e2009-09-05 21:47:34 +000021582# Check to see if building shared libraries
21583libtool_build_shared_libs='no'
21584if test "$enable_shared" = 'yes'; then
21585 libtool_build_shared_libs='yes'
21586fi
21587
21588# Check to see if building static libraries
21589libtool_build_static_libs='no'
21590if test "$enable_static" = 'yes'; then
21591 libtool_build_static_libs='yes'
21592fi
21593
cristy73bd4a52010-10-05 11:24:23 +000021594 if test "${libtool_build_shared_libs}" = 'yes'; then
21595 WITH_SHARED_LIBS_TRUE=
21596 WITH_SHARED_LIBS_FALSE='#'
21597else
21598 WITH_SHARED_LIBS_TRUE='#'
21599 WITH_SHARED_LIBS_FALSE=
21600fi
21601
cristy3ed852e2009-09-05 21:47:34 +000021602#
21603# Enable support for building loadable modules
21604#
cristyaf4cbf32012-10-16 23:47:41 +000021605build_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000021606
21607# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000021608if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021609 withval=$with_modules; with_modules=$withval
21610else
cristy5a1cefd2010-01-06 20:42:35 +000021611 with_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000021612fi
21613
21614
21615# Only allow building loadable modules if we are building shared libraries
21616if test "$with_modules" != 'no' ; then
21617 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000021618 { $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 +000021619$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
cristyc6722092012-10-14 00:19:31 +000021620 build_modules='no'
21621 else
21622 build_modules='yes'
21623 fi
cristy3ed852e2009-09-05 21:47:34 +000021624fi
cristyc6722092012-10-14 00:19:31 +000021625if test "$build_modules" != 'no' ; then
cristy3ed852e2009-09-05 21:47:34 +000021626
cristy8b350f62009-11-15 23:12:43 +000021627$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021628
cristyfa161182012-12-19 15:45:28 +000021629 MAGICK_FEATURES="$MAGICK_FEATURES Modules"
cristy3ed852e2009-09-05 21:47:34 +000021630fi
cristyc6722092012-10-14 00:19:31 +000021631 if test "$build_modules" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +000021632 WITH_MODULES_TRUE=
21633 WITH_MODULES_FALSE='#'
21634else
21635 WITH_MODULES_TRUE='#'
21636 WITH_MODULES_FALSE=
21637fi
21638
cristy3ed852e2009-09-05 21:47:34 +000021639
cristy3ed852e2009-09-05 21:47:34 +000021640# Enable build using delegate libraries built in subdirectories rather than installed
cristyfbb0ef02010-12-19 02:32:11 +000021641# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms lzma png tiff ttf wmf xml zlib)
cristy3ed852e2009-09-05 21:47:34 +000021642# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000021643if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021644 enableval=$enable_delegate_build; enable_delegate_build=$enableval
21645else
21646 enable_delegate_build='no'
21647fi
21648
21649
21650# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000021651if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021652 enableval=$enable_deprecated; enable_deprecated=$enableval
21653else
21654 enable_deprecated='no'
21655fi
21656
21657
21658if test "$enable_deprecated" = 'yes'; then
21659
cristy8b350f62009-11-15 23:12:43 +000021660$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021661
21662else
21663 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
21664fi
21665
21666# Build a version of ImageMagick which operates uninstalled.
21667# Used to build distributions located via MAGICK_HOME / executable path
21668# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000021669if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021670 enableval=$enable_installed; enable_installed=$enableval
21671else
21672 enable_installed='yes'
21673fi
21674
21675
21676if test "$enable_installed" = 'yes'; then
21677
cristy8b350f62009-11-15 23:12:43 +000021678$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021679
21680else
21681 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
21682fi
21683
21684# Permit enciphering and deciphering image pixels.
21685# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000021686if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021687 enableval=$enable_cipher; enable_cipher=$enableval
21688else
21689 enable_cipher='yes'
21690fi
21691
21692
21693if test "$enable_cipher" = 'yes'; then
21694
cristy8b350f62009-11-15 23:12:43 +000021695$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021696
cristy0f6fc2d2015-05-30 00:49:11 +000021697 MAGICK_FEATURES="Cipher $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000021698fi
21699
cristy6e3607c2011-09-13 13:59:17 +000021700# Build a zero-configuration version of ImageMagick.
21701# Check whether --enable-zero-configuration was given.
21702if test "${enable_zero_configuration+set}" = set; then :
21703 enableval=$enable_zero_configuration; enable_zero_configuration=$enableval
cristy3ed852e2009-09-05 21:47:34 +000021704else
cristy6e3607c2011-09-13 13:59:17 +000021705 enable_zero_configuration='no'
cristy3ed852e2009-09-05 21:47:34 +000021706fi
21707
21708
cristy6e3607c2011-09-13 13:59:17 +000021709if test "$enable_zero_configuration" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000021710
cristy6e3607c2011-09-13 13:59:17 +000021711$as_echo "#define ZERO_CONFIGURATION_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021712
cristy0f6fc2d2015-05-30 00:49:11 +000021713 MAGICK_FEATURES="Zero-configuration $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000021714fi
21715
21716# Build a high dynamic range version of ImageMagick.
21717# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000021718if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021719 enableval=$enable_hdri; enable_hdri=$enableval
21720else
cristy191c0b72012-08-12 16:29:52 +000021721 enable_hdri='yes'
cristy3ed852e2009-09-05 21:47:34 +000021722fi
21723
21724
21725MAGICK_HDRI=""
21726if test "$enable_hdri" = 'yes'; then
21727 MAGICK_HDRI="HDRI"
cristye52f12f2012-12-31 15:32:36 +000021728 magick_hdri_enable='1';
cristyfd9dcd42010-08-08 18:07:02 +000021729 MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
cristye52f12f2012-12-31 15:32:36 +000021730else
21731 magick_hdri_enable='0'
cristy3ed852e2009-09-05 21:47:34 +000021732fi
21733
cristye52f12f2012-12-31 15:32:36 +000021734cat >>confdefs.h <<_ACEOF
21735#define HDRI_ENABLE_OBSOLETE_IN_H $magick_hdri_enable
21736_ACEOF
21737
21738MAGICK_PCFLAGS="$MAGICK_PCFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
21739CFLAGS="$CFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
cristy72062382012-12-31 16:49:52 +000021740CPPFLAGS="$CPPFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
cristye52f12f2012-12-31 15:32:36 +000021741
cristy3ed852e2009-09-05 21:47:34 +000021742# Build a version of ImageMagick with assert statements.
21743# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000021744if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021745 enableval=$enable_assert; enable_assert=$enableval
21746else
21747 enable_assert='yes'
21748fi
21749
21750
21751if test "$enable_assert" = 'no'; then
21752
cristy8b350f62009-11-15 23:12:43 +000021753$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021754
21755fi
21756
cristya448bd22011-10-14 12:38:13 +000021757# Don't emit "rebuild rules" for configure, Makefile.ins, etc.
cristy73bd4a52010-10-05 11:24:23 +000021758
21759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
21760$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
21761 # Check whether --enable-maintainer-mode was given.
21762if test "${enable_maintainer_mode+set}" = set; then :
21763 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
21764else
21765 USE_MAINTAINER_MODE=no
21766fi
21767
21768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
21769$as_echo "$USE_MAINTAINER_MODE" >&6; }
21770 if test $USE_MAINTAINER_MODE = yes; then
21771 MAINTAINER_MODE_TRUE=
21772 MAINTAINER_MODE_FALSE='#'
21773else
21774 MAINTAINER_MODE_TRUE='#'
21775 MAINTAINER_MODE_FALSE=
21776fi
21777
21778 MAINT=$MAINTAINER_MODE_TRUE
21779
21780
cristy3ed852e2009-09-05 21:47:34 +000021781
cristy944e51f2013-04-16 18:45:02 +000021782# Enable hugepages support
21783# Check whether --enable-hugepages was given.
21784if test "${enable_hugepages+set}" = set; then :
21785 enableval=$enable_hugepages; enable_hugepages=$enableval
21786else
21787 enable_hugepages='no'
21788fi
21789
21790
cristy3ed852e2009-09-05 21:47:34 +000021791# Enable ccmalloc memory debugging support
21792# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000021793if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021794 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
21795else
21796 enable_ccmalloc='no'
21797fi
21798
21799
21800# Enable Electric Fence memory debugging support
21801# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000021802if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021803 enableval=$enable_efence; enable_efence=$enableval
21804else
21805 enable_efence='no'
21806fi
21807
21808
21809# Enable prof-based profiling support
21810# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000021811if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021812 enableval=$enable_prof; enable_prof=$enableval
21813else
21814 enable_prof='no'
21815fi
21816
21817
21818# Enable gprof-based profiling support
21819# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000021820if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021821 enableval=$enable_gprof; enable_gprof=$enableval
21822else
21823 enable_gprof='no'
21824fi
21825
21826
21827# Enable gcov-based profiling support
21828# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000021829if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021830 enableval=$enable_gcov; enable_gcov=$enableval
21831else
21832 enable_gcov='no'
21833fi
21834
21835
21836enable_profiling='no'
21837if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
21838 enable_profiling='yes'
21839 if test "$libtool_build_shared_libs" = 'yes'; then
21840 echo "Warning: Can not profile code using shared libraries"
21841 fi
21842fi
21843
21844# Magick API method prefix
21845
21846# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000021847if test "${with_method_prefix+set}" = set; then :
cristyfc3d0222012-02-07 15:05:57 +000021848 withval=$with_method_prefix; with_method_prefix=$withval
cristy3ed852e2009-09-05 21:47:34 +000021849else
cristyfc3d0222012-02-07 15:05:57 +000021850 with_method_prefix='no'
cristy3ed852e2009-09-05 21:47:34 +000021851fi
21852
21853
cristyfc3d0222012-02-07 15:05:57 +000021854if test "$with_method_prefix" != 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000021855
21856cat >>confdefs.h <<_ACEOF
21857#define NAMESPACE_PREFIX $with_method_prefix
21858_ACEOF
21859
cristyfc3d0222012-02-07 15:05:57 +000021860 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-method-prefix "
cristy3ed852e2009-09-05 21:47:34 +000021861fi
21862
cristy71d8c202012-03-20 17:05:01 +000021863# Enable legacy support (default no)
21864# Check whether --enable-legacy-support was given.
21865if test "${enable_legacy_support+set}" = set; then :
21866 enableval=$enable_legacy_support; with_legacy_support=$enableval
21867else
21868 with_legacy_support='no'
21869fi
21870
21871 if test "$with_legacy_support" != 'no'; then
21872 LEGACY_SUPPORT_TRUE=
21873 LEGACY_SUPPORT_FALSE='#'
21874else
21875 LEGACY_SUPPORT_TRUE='#'
21876 LEGACY_SUPPORT_FALSE=
21877fi
21878
21879
cristy3ed852e2009-09-05 21:47:34 +000021880# Number of bits in a Quantum
21881
21882# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000021883if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021884 withval=$with_quantum_depth; with_quantum_depth=$withval
21885else
21886 with_quantum_depth=16
21887fi
21888
21889
21890if test "$with_quantum_depth" != '8'; then
21891 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
21892fi
21893
21894case "${with_quantum_depth}" in
21895 8 ) ;;
21896 16 ) ;;
21897 32 ) ;;
21898 64 ) ;;
cristy98dddb52010-11-04 00:30:15 +000021899 * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000021900esac
21901QUANTUM_DEPTH="$with_quantum_depth"
21902
21903cat >>confdefs.h <<_ACEOF
cristye52f12f2012-12-31 15:32:36 +000021904#define QUANTUM_DEPTH_OBSOLETE_IN_H $QUANTUM_DEPTH
cristy3ed852e2009-09-05 21:47:34 +000021905_ACEOF
21906
cristya371edf2013-02-06 13:42:17 +000021907MAGICK_PCFLAGS="$MAGICK_PCFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristye52f12f2012-12-31 15:32:36 +000021908CFLAGS="$CFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristy72062382012-12-31 16:49:52 +000021909CPPFLAGS="$CPPFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristy3ed852e2009-09-05 21:47:34 +000021910
cristy01ff9f32012-12-01 18:15:29 +000021911# define a lib suffix for abi purpose
cristy7a26abd2012-12-03 00:18:59 +000021912MAGICK_ABI_SUFFIX="Q${QUANTUM_DEPTH}"
cristye386d192012-12-01 21:05:20 +000021913if test "$enable_hdri" = 'yes'; then
cristy7a26abd2012-12-03 00:18:59 +000021914 MAGICK_ABI_SUFFIX="Q${QUANTUM_DEPTH}${MAGICK_HDRI}"
cristye386d192012-12-01 21:05:20 +000021915fi
cristy01ff9f32012-12-01 18:15:29 +000021916
21917
cristy3ed852e2009-09-05 21:47:34 +000021918# Set pixel cache threshold
21919
21920# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000021921if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021922 withval=$with_cache; with_cache=$withval
21923else
21924 with_cache=''
21925fi
21926
21927
21928if test "$with_cache" != ''; then
21929
21930cat >>confdefs.h <<_ACEOF
21931#define PixelCacheThreshold $with_cache
21932_ACEOF
21933
21934 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
21935fi
21936
21937# Disable/Enable support for full delegate paths
21938
21939# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000021940if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021941 withval=$with_frozenpaths; with_frozenpaths=$withval
21942else
21943 with_frozenpaths='no'
21944fi
21945
21946
21947# Enable build/install of Magick++
21948
21949# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000021950if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021951 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
21952else
21953 with_magick_plus_plus='yes'
21954fi
21955
21956
cristy3a75f062012-09-08 23:29:40 +000021957# Encode the this name into the shared library.
21958
21959# Check whether --with-package-release-name was given.
21960if test "${with_package_release_name+set}" = set; then :
21961 withval=$with_package_release_name; MAGICK_LT_RELEASE_OPTS="-release $withval"
21962fi
21963
21964
21965
cristy3ed852e2009-09-05 21:47:34 +000021966# Disable build/install of PerlMagick.
21967
21968# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000021969if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021970 withval=$with_perl; with_perl=$withval
21971else
cristyb5f4e2f2010-04-25 00:49:11 +000021972 with_perl='no'
cristy3ed852e2009-09-05 21:47:34 +000021973fi
21974
21975
21976# Options to pass when configuring PerlMagick
21977
21978# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000021979if test "${with_perl_options+set}" = set; then :
cristy949301e2010-01-06 01:38:40 +000021980 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
cristy3ed852e2009-09-05 21:47:34 +000021981fi
21982
21983
cristy3ed852e2009-09-05 21:47:34 +000021984
cristy3b0097d2014-11-04 15:34:47 +000021985# Enable jemalloc, object-caching memory allocation library.
21986
21987# Check whether --with-jemalloc was given.
21988if test "${with_jemalloc+set}" = set; then :
21989 withval=$with_jemalloc; with_jemalloc=$withval
21990else
21991 with_jemalloc='no'
21992fi
21993
21994if test "$with_jemalloc" != 'yes' ; then
21995 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jemalloc=$with_jemalloc "
21996fi
21997
cristy3ed852e2009-09-05 21:47:34 +000021998# Enable umem, object-caching memory allocation library.
21999
22000# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000022001if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022002 withval=$with_umem; with_umem=$withval
22003else
22004 with_umem='no'
22005fi
22006
22007if test "$with_umem" != 'yes' ; then
22008 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
22009fi
22010
22011#
22012# Specify path to shared libstdc++ if not in normal location
22013#
22014
22015# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000022016if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022017 withval=$with_libstdc; with_libstdc=$withval
22018else
22019 with_libstdc=''
22020fi
22021
22022
22023if test "$with_libstdc" != ''; then
22024 if test -d "$with_libstdc"; then
22025 LIBSTDCLDFLAGS="-L$with_libstdc"
22026 fi
22027fi
22028
22029
22030# Does gcc required -traditional?
22031if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000022032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000022033$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022034if ${ac_cv_prog_gcc_traditional+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022035 $as_echo_n "(cached) " >&6
22036else
22037 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000022038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022039/* end confdefs.h. */
22040#include <sgtty.h>
22041Autoconf TIOCGETP
22042_ACEOF
22043if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022044 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000022045 ac_cv_prog_gcc_traditional=yes
22046else
22047 ac_cv_prog_gcc_traditional=no
22048fi
22049rm -f conftest*
22050
22051
22052 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000022053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022054/* end confdefs.h. */
22055#include <termio.h>
22056Autoconf TCGETA
22057_ACEOF
22058if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022059 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000022060 ac_cv_prog_gcc_traditional=yes
22061fi
22062rm -f conftest*
22063
22064 fi
22065fi
cristy8b350f62009-11-15 23:12:43 +000022066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000022067$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
22068 if test $ac_cv_prog_gcc_traditional = yes; then
22069 CC="$CC -traditional"
22070 fi
22071fi
22072
22073
22074########
22075#
22076# Set defines required to build DLLs and modules using MinGW
22077#
22078########
22079# These options are set for multi-thread DLL module build
22080# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
22081# module: _DLL
22082# executable/Magick++: _DLL _MAGICKMOD_
22083MODULE_EXTRA_CPPFLAGS=''
22084LIBRARY_EXTRA_CPPFLAGS=''
22085if test "${native_win32_build}" = 'yes'; then
22086 if test "${libtool_build_shared_libs}" = 'yes'; then
22087 CPPFLAGS="$CPPFLAGS -D_DLL"
22088 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
22089 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
22090 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
cristyc6722092012-10-14 00:19:31 +000022091 if test "$build_modules" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000022092 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
22093 else
22094 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
22095 fi
22096 else
22097 CPPFLAGS="$CPPFLAGS -D_LIB"
22098 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
22099 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
22100 fi
22101 if test "$with_threads" = 'yes'; then
22102 CPPFLAGS="$CPPFLAGS -D_MT"
22103 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
22104 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
22105 fi
22106fi
22107
22108
22109
22110# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000022111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000022112$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022113if ${ac_cv_header_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022114 $as_echo_n "(cached) " >&6
22115else
cristy8b350f62009-11-15 23:12:43 +000022116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022117/* end confdefs.h. */
22118#include <stdlib.h>
22119#include <stdarg.h>
22120#include <string.h>
22121#include <float.h>
22122
22123int
22124main ()
22125{
22126
22127 ;
22128 return 0;
22129}
22130_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022131if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022132 ac_cv_header_stdc=yes
22133else
cristy8b350f62009-11-15 23:12:43 +000022134 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000022135fi
cristy3ed852e2009-09-05 21:47:34 +000022136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22137
22138if test $ac_cv_header_stdc = yes; then
22139 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000022140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022141/* end confdefs.h. */
22142#include <string.h>
22143
22144_ACEOF
22145if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022146 $EGREP "memchr" >/dev/null 2>&1; then :
22147
cristy3ed852e2009-09-05 21:47:34 +000022148else
22149 ac_cv_header_stdc=no
22150fi
22151rm -f conftest*
22152
22153fi
22154
22155if test $ac_cv_header_stdc = yes; then
22156 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000022157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022158/* end confdefs.h. */
22159#include <stdlib.h>
22160
22161_ACEOF
22162if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022163 $EGREP "free" >/dev/null 2>&1; then :
22164
cristy3ed852e2009-09-05 21:47:34 +000022165else
22166 ac_cv_header_stdc=no
22167fi
22168rm -f conftest*
22169
22170fi
22171
22172if test $ac_cv_header_stdc = yes; then
22173 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000022174 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022175 :
22176else
cristy8b350f62009-11-15 23:12:43 +000022177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022178/* end confdefs.h. */
22179#include <ctype.h>
22180#include <stdlib.h>
22181#if ((' ' & 0x0FF) == 0x020)
22182# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
22183# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
22184#else
22185# define ISLOWER(c) \
22186 (('a' <= (c) && (c) <= 'i') \
22187 || ('j' <= (c) && (c) <= 'r') \
22188 || ('s' <= (c) && (c) <= 'z'))
22189# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
22190#endif
22191
22192#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
22193int
22194main ()
22195{
22196 int i;
22197 for (i = 0; i < 256; i++)
22198 if (XOR (islower (i), ISLOWER (i))
22199 || toupper (i) != TOUPPER (i))
22200 return 2;
22201 return 0;
22202}
22203_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022204if ac_fn_c_try_run "$LINENO"; then :
22205
cristy3ed852e2009-09-05 21:47:34 +000022206else
cristy8b350f62009-11-15 23:12:43 +000022207 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000022208fi
cristy8b350f62009-11-15 23:12:43 +000022209rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22210 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022211fi
22212
cristy3ed852e2009-09-05 21:47:34 +000022213fi
22214fi
cristy8b350f62009-11-15 23:12:43 +000022215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000022216$as_echo "$ac_cv_header_stdc" >&6; }
22217if test $ac_cv_header_stdc = yes; then
22218
cristy8b350f62009-11-15 23:12:43 +000022219$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022220
22221fi
22222
22223if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000022224 { $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 +000022225 header files. Compilation cannot proceed. Please install the ANSI C
22226 headers and rerun this script." >&5
22227$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
22228 header files. Compilation cannot proceed. Please install the ANSI C
22229 headers and rerun this script." >&2;};
22230fi
cristya0b81c32010-01-22 02:54:33 +000022231
22232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
22233$as_echo_n "checking whether to enable assertions... " >&6; }
22234 # Check whether --enable-assert was given.
22235if test "${enable_assert+set}" = set; then :
22236 enableval=$enable_assert; ac_enable_assert=$enableval
22237 if test "x$enableval" = xno; then :
22238
22239$as_echo "#define NDEBUG 1" >>confdefs.h
22240
22241elif test "x$enableval" != xyes; then :
22242 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
22243$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
22244 ac_enable_assert=yes
22245fi
22246else
22247 ac_enable_assert=yes
22248fi
22249
22250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
22251$as_echo "$ac_enable_assert" >&6; }
22252
cristy3ed852e2009-09-05 21:47:34 +000022253ac_header_dirent=no
22254for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22255 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000022256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000022257$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022258if eval \${$as_ac_Header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022259 $as_echo_n "(cached) " >&6
22260else
cristy8b350f62009-11-15 23:12:43 +000022261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022262/* end confdefs.h. */
22263#include <sys/types.h>
22264#include <$ac_hdr>
22265
22266int
22267main ()
22268{
22269if ((DIR *) 0)
22270return 0;
22271 ;
22272 return 0;
22273}
22274_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022275if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022276 eval "$as_ac_Header=yes"
22277else
cristy8b350f62009-11-15 23:12:43 +000022278 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000022279fi
cristy3ed852e2009-09-05 21:47:34 +000022280rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22281fi
cristy8b350f62009-11-15 23:12:43 +000022282eval ac_res=\$$as_ac_Header
22283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000022284$as_echo "$ac_res" >&6; }
cristy98dddb52010-11-04 00:30:15 +000022285if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000022286 cat >>confdefs.h <<_ACEOF
22287#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22288_ACEOF
22289
22290ac_header_dirent=$ac_hdr; break
22291fi
22292
22293done
22294# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22295if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000022296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000022297$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022298if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022299 $as_echo_n "(cached) " >&6
22300else
22301 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000022302cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022303/* end confdefs.h. */
22304
22305/* Override any GCC internal prototype to avoid an error.
22306 Use char because int might match the return type of a GCC
22307 builtin and then its argument prototype would still apply. */
22308#ifdef __cplusplus
22309extern "C"
22310#endif
22311char opendir ();
22312int
22313main ()
22314{
22315return opendir ();
22316 ;
22317 return 0;
22318}
22319_ACEOF
22320for ac_lib in '' dir; do
22321 if test -z "$ac_lib"; then
22322 ac_res="none required"
22323 else
22324 ac_res=-l$ac_lib
22325 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22326 fi
cristy8b350f62009-11-15 23:12:43 +000022327 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022328 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000022329fi
cristy8b350f62009-11-15 23:12:43 +000022330rm -f core conftest.err conftest.$ac_objext \
22331 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000022332 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022333 break
22334fi
22335done
cristyda16f162011-02-19 23:52:17 +000022336if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000022337
cristy3ed852e2009-09-05 21:47:34 +000022338else
22339 ac_cv_search_opendir=no
22340fi
22341rm conftest.$ac_ext
22342LIBS=$ac_func_search_save_LIBS
22343fi
cristy8b350f62009-11-15 23:12:43 +000022344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000022345$as_echo "$ac_cv_search_opendir" >&6; }
22346ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000022347if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000022348 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22349
22350fi
22351
22352else
cristy8b350f62009-11-15 23:12:43 +000022353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000022354$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022355if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022356 $as_echo_n "(cached) " >&6
22357else
22358 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000022359cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022360/* end confdefs.h. */
22361
22362/* Override any GCC internal prototype to avoid an error.
22363 Use char because int might match the return type of a GCC
22364 builtin and then its argument prototype would still apply. */
22365#ifdef __cplusplus
22366extern "C"
22367#endif
22368char opendir ();
22369int
22370main ()
22371{
22372return opendir ();
22373 ;
22374 return 0;
22375}
22376_ACEOF
22377for ac_lib in '' x; do
22378 if test -z "$ac_lib"; then
22379 ac_res="none required"
22380 else
22381 ac_res=-l$ac_lib
22382 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22383 fi
cristy8b350f62009-11-15 23:12:43 +000022384 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022385 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000022386fi
cristy8b350f62009-11-15 23:12:43 +000022387rm -f core conftest.err conftest.$ac_objext \
22388 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000022389 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022390 break
22391fi
22392done
cristyda16f162011-02-19 23:52:17 +000022393if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000022394
cristy3ed852e2009-09-05 21:47:34 +000022395else
22396 ac_cv_search_opendir=no
22397fi
22398rm conftest.$ac_ext
22399LIBS=$ac_func_search_save_LIBS
22400fi
cristy8b350f62009-11-15 23:12:43 +000022401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000022402$as_echo "$ac_cv_search_opendir" >&6; }
22403ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000022404if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000022405 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22406
22407fi
22408
22409fi
22410
22411
22412# Check additional headers
cristy66988ab2015-05-30 17:20:38 +000022413for 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 +000022414do :
22415 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22416ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000022417if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000022418 cat >>confdefs.h <<_ACEOF
22419#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22420_ACEOF
22421
22422fi
22423
22424done
22425
22426
22427########
22428#
22429# Checks for typedefs, structures, and compiler characteristics.
22430#
22431########
22432
cristy8b350f62009-11-15 23:12:43 +000022433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000022434$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022435if ${ac_cv_header_stdbool_h+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022436 $as_echo_n "(cached) " >&6
22437else
cristy8b350f62009-11-15 23:12:43 +000022438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022439/* end confdefs.h. */
22440
cristy14fefe52012-05-21 00:59:18 +000022441 #include <stdbool.h>
22442 #ifndef bool
22443 "error: bool is not defined"
22444 #endif
22445 #ifndef false
22446 "error: false is not defined"
22447 #endif
22448 #if false
22449 "error: false is not 0"
22450 #endif
22451 #ifndef true
22452 "error: true is not defined"
22453 #endif
22454 #if true != 1
22455 "error: true is not 1"
22456 #endif
22457 #ifndef __bool_true_false_are_defined
22458 "error: __bool_true_false_are_defined is not defined"
22459 #endif
cristy3ed852e2009-09-05 21:47:34 +000022460
cristy14fefe52012-05-21 00:59:18 +000022461 struct s { _Bool s: 1; _Bool t; } s;
cristy3ed852e2009-09-05 21:47:34 +000022462
cristy14fefe52012-05-21 00:59:18 +000022463 char a[true == 1 ? 1 : -1];
22464 char b[false == 0 ? 1 : -1];
22465 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
22466 char d[(bool) 0.5 == true ? 1 : -1];
22467 /* See body of main program for 'e'. */
22468 char f[(_Bool) 0.0 == false ? 1 : -1];
22469 char g[true];
22470 char h[sizeof (_Bool)];
22471 char i[sizeof s.t];
22472 enum { j = false, k = true, l = false * true, m = true * 256 };
22473 /* The following fails for
22474 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
22475 _Bool n[m];
22476 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
22477 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
22478 /* Catch a bug in an HP-UX C compiler. See
22479 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
22480 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
22481 */
22482 _Bool q = true;
22483 _Bool *pq = &q;
cristy3ed852e2009-09-05 21:47:34 +000022484
22485int
22486main ()
22487{
22488
cristy14fefe52012-05-21 00:59:18 +000022489 bool e = &s;
22490 *pq |= q;
22491 *pq |= ! q;
22492 /* Refer to every declared value, to avoid compiler optimizations. */
22493 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
22494 + !m + !n + !o + !p + !q + !pq);
cristy3ed852e2009-09-05 21:47:34 +000022495
22496 ;
22497 return 0;
22498}
22499_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022500if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022501 ac_cv_header_stdbool_h=yes
22502else
cristy8b350f62009-11-15 23:12:43 +000022503 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000022504fi
cristy3ed852e2009-09-05 21:47:34 +000022505rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22506fi
cristy8b350f62009-11-15 23:12:43 +000022507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000022508$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy14fefe52012-05-21 00:59:18 +000022509 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000022510if test "x$ac_cv_type__Bool" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000022511
22512cat >>confdefs.h <<_ACEOF
22513#define HAVE__BOOL 1
22514_ACEOF
22515
22516
22517fi
22518
cristy14fefe52012-05-21 00:59:18 +000022519
cristy3ed852e2009-09-05 21:47:34 +000022520if test $ac_cv_header_stdbool_h = yes; then
22521
cristy8b350f62009-11-15 23:12:43 +000022522$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022523
22524fi
22525
cristy8b350f62009-11-15 23:12:43 +000022526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000022527$as_echo_n "checking for working volatile... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022528if ${ac_cv_c_volatile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022529 $as_echo_n "(cached) " >&6
22530else
cristy8b350f62009-11-15 23:12:43 +000022531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022532/* end confdefs.h. */
22533
22534int
22535main ()
22536{
22537
22538volatile int x;
22539int * volatile y = (int *) 0;
22540return !x && !y;
22541 ;
22542 return 0;
22543}
22544_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022545if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022546 ac_cv_c_volatile=yes
22547else
cristy8b350f62009-11-15 23:12:43 +000022548 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000022549fi
cristy3ed852e2009-09-05 21:47:34 +000022550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22551fi
cristy8b350f62009-11-15 23:12:43 +000022552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000022553$as_echo "$ac_cv_c_volatile" >&6; }
22554if test $ac_cv_c_volatile = no; then
22555
cristy8b350f62009-11-15 23:12:43 +000022556$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022557
22558fi
22559
cristy8b350f62009-11-15 23:12:43 +000022560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000022561$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022562if ${ac_cv_c_stringize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022563 $as_echo_n "(cached) " >&6
22564else
cristy8b350f62009-11-15 23:12:43 +000022565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022566/* end confdefs.h. */
22567#define x(y) #y
22568
22569char *s = x(teststring);
22570_ACEOF
22571if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022572 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000022573 ac_cv_c_stringize=no
22574else
22575 ac_cv_c_stringize=yes
22576fi
22577rm -f conftest*
22578
22579fi
cristy8b350f62009-11-15 23:12:43 +000022580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000022581$as_echo "$ac_cv_c_stringize" >&6; }
22582if test $ac_cv_c_stringize = yes; then
22583
cristy8b350f62009-11-15 23:12:43 +000022584$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022585
22586fi
22587
cristy8b350f62009-11-15 23:12:43 +000022588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000022589$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022590if ${ac_cv_header_stat_broken+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022591 $as_echo_n "(cached) " >&6
22592else
cristy8b350f62009-11-15 23:12:43 +000022593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022594/* end confdefs.h. */
22595#include <sys/types.h>
22596#include <sys/stat.h>
22597
22598#if defined S_ISBLK && defined S_IFDIR
22599extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
22600#endif
22601
22602#if defined S_ISBLK && defined S_IFCHR
22603extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
22604#endif
22605
22606#if defined S_ISLNK && defined S_IFREG
22607extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
22608#endif
22609
22610#if defined S_ISSOCK && defined S_IFREG
22611extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
22612#endif
22613
22614_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022615if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022616 ac_cv_header_stat_broken=no
22617else
cristy8b350f62009-11-15 23:12:43 +000022618 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000022619fi
cristy3ed852e2009-09-05 21:47:34 +000022620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22621fi
cristy8b350f62009-11-15 23:12:43 +000022622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000022623$as_echo "$ac_cv_header_stat_broken" >&6; }
22624if test $ac_cv_header_stat_broken = yes; then
22625
cristy8b350f62009-11-15 23:12:43 +000022626$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022627
22628fi
22629
cristy8b350f62009-11-15 23:12:43 +000022630{ $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 +000022631$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022632if ${ac_cv_header_time+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022633 $as_echo_n "(cached) " >&6
22634else
cristy8b350f62009-11-15 23:12:43 +000022635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022636/* end confdefs.h. */
22637#include <sys/types.h>
22638#include <sys/time.h>
22639#include <time.h>
22640
22641int
22642main ()
22643{
22644if ((struct tm *) 0)
22645return 0;
22646 ;
22647 return 0;
22648}
22649_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022650if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022651 ac_cv_header_time=yes
22652else
cristy8b350f62009-11-15 23:12:43 +000022653 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000022654fi
cristy3ed852e2009-09-05 21:47:34 +000022655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22656fi
cristy8b350f62009-11-15 23:12:43 +000022657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000022658$as_echo "$ac_cv_header_time" >&6; }
22659if test $ac_cv_header_time = yes; then
22660
cristy8b350f62009-11-15 23:12:43 +000022661$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022662
22663fi
22664
cristy8b350f62009-11-15 23:12:43 +000022665{ $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 +000022666$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022667if ${ac_cv_struct_tm+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022668 $as_echo_n "(cached) " >&6
22669else
cristy8b350f62009-11-15 23:12:43 +000022670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022671/* end confdefs.h. */
22672#include <sys/types.h>
22673#include <time.h>
22674
22675int
22676main ()
22677{
22678struct tm tm;
22679 int *p = &tm.tm_sec;
22680 return !p;
22681 ;
22682 return 0;
22683}
22684_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022685if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022686 ac_cv_struct_tm=time.h
22687else
cristy8b350f62009-11-15 23:12:43 +000022688 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000022689fi
cristy3ed852e2009-09-05 21:47:34 +000022690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22691fi
cristy8b350f62009-11-15 23:12:43 +000022692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000022693$as_echo "$ac_cv_struct_tm" >&6; }
22694if test $ac_cv_struct_tm = sys/time.h; then
22695
cristy8b350f62009-11-15 23:12:43 +000022696$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022697
22698fi
22699
cristy92703d82010-04-26 00:18:18 +000022700ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
22701#include <$ac_cv_struct_tm>
22702
22703"
cristyda16f162011-02-19 23:52:17 +000022704if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000022705
22706cat >>confdefs.h <<_ACEOF
22707#define HAVE_STRUCT_TM_TM_ZONE 1
22708_ACEOF
22709
22710
22711fi
22712
22713if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
22714
22715$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
22716
22717else
22718 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
22719"
cristyda16f162011-02-19 23:52:17 +000022720if test "x$ac_cv_have_decl_tzname" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000022721 ac_have_decl=1
22722else
22723 ac_have_decl=0
22724fi
22725
22726cat >>confdefs.h <<_ACEOF
22727#define HAVE_DECL_TZNAME $ac_have_decl
22728_ACEOF
22729
22730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
22731$as_echo_n "checking for tzname... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022732if ${ac_cv_var_tzname+:} false; then :
cristy92703d82010-04-26 00:18:18 +000022733 $as_echo_n "(cached) " >&6
22734else
22735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22736/* end confdefs.h. */
22737#include <time.h>
22738#if !HAVE_DECL_TZNAME
22739extern char *tzname[];
22740#endif
22741
22742int
22743main ()
22744{
22745return tzname[0][0];
22746 ;
22747 return 0;
22748}
22749_ACEOF
22750if ac_fn_c_try_link "$LINENO"; then :
22751 ac_cv_var_tzname=yes
22752else
22753 ac_cv_var_tzname=no
22754fi
22755rm -f core conftest.err conftest.$ac_objext \
22756 conftest$ac_exeext conftest.$ac_ext
22757fi
22758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
22759$as_echo "$ac_cv_var_tzname" >&6; }
22760 if test $ac_cv_var_tzname = yes; then
22761
22762$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
22763
22764 fi
22765fi
22766
cristy8b350f62009-11-15 23:12:43 +000022767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000022768$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022769if ${ac_cv_sys_interpreter+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022770 $as_echo_n "(cached) " >&6
22771else
22772 echo '#! /bin/cat
22773exit 69
22774' >conftest
22775chmod u+x conftest
22776(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
22777if test $? -ne 69; then
22778 ac_cv_sys_interpreter=yes
22779else
22780 ac_cv_sys_interpreter=no
22781fi
22782rm -f conftest
22783fi
cristy8b350f62009-11-15 23:12:43 +000022784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000022785$as_echo "$ac_cv_sys_interpreter" >&6; }
22786interpval=$ac_cv_sys_interpreter
22787
22788
cristye80f9cb2013-01-09 01:09:31 +000022789#
22790# Checks for language qualifiers and semantics.
22791#
22792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
22793$as_echo_n "checking whether char is unsigned... " >&6; }
22794if ${ac_cv_c_char_unsigned+:} false; then :
22795 $as_echo_n "(cached) " >&6
22796else
22797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22798/* end confdefs.h. */
22799$ac_includes_default
22800int
22801main ()
22802{
22803static int test_array [1 - 2 * !(((char) -1) < 0)];
22804test_array [0] = 0;
22805return test_array [0];
22806
22807 ;
22808 return 0;
22809}
22810_ACEOF
22811if ac_fn_c_try_compile "$LINENO"; then :
22812 ac_cv_c_char_unsigned=no
22813else
22814 ac_cv_c_char_unsigned=yes
22815fi
22816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22817fi
22818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
22819$as_echo "$ac_cv_c_char_unsigned" >&6; }
22820if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
22821 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
22822
22823fi
22824
22825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
22826$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
22827if ${ac_cv_c_const+:} false; then :
22828 $as_echo_n "(cached) " >&6
22829else
22830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22831/* end confdefs.h. */
22832
22833int
22834main ()
22835{
22836
22837#ifndef __cplusplus
22838 /* Ultrix mips cc rejects this sort of thing. */
22839 typedef int charset[2];
22840 const charset cs = { 0, 0 };
22841 /* SunOS 4.1.1 cc rejects this. */
22842 char const *const *pcpcc;
22843 char **ppc;
22844 /* NEC SVR4.0.2 mips cc rejects this. */
22845 struct point {int x, y;};
22846 static struct point const zero = {0,0};
22847 /* AIX XL C 1.02.0.0 rejects this.
22848 It does not let you subtract one const X* pointer from another in
22849 an arm of an if-expression whose if-part is not a constant
22850 expression */
22851 const char *g = "string";
22852 pcpcc = &g + (g ? g-g : 0);
22853 /* HPUX 7.0 cc rejects these. */
22854 ++pcpcc;
22855 ppc = (char**) pcpcc;
22856 pcpcc = (char const *const *) ppc;
22857 { /* SCO 3.2v4 cc rejects this sort of thing. */
22858 char tx;
22859 char *t = &tx;
22860 char const *s = 0 ? (char *) 0 : (char const *) 0;
22861
22862 *t++ = 0;
22863 if (s) return 0;
22864 }
22865 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
22866 int x[] = {25, 17};
22867 const int *foo = &x[0];
22868 ++foo;
22869 }
22870 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22871 typedef const int *iptr;
22872 iptr p = 0;
22873 ++p;
22874 }
22875 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
22876 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22877 struct s { int j; const int *ap[3]; } bx;
22878 struct s *b = &bx; b->j = 5;
22879 }
22880 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22881 const int foo = 10;
22882 if (!foo) return 0;
22883 }
22884 return !cs[0] && !zero.x;
22885#endif
22886
22887 ;
22888 return 0;
22889}
22890_ACEOF
22891if ac_fn_c_try_compile "$LINENO"; then :
22892 ac_cv_c_const=yes
22893else
22894 ac_cv_c_const=no
22895fi
22896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22897fi
22898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
22899$as_echo "$ac_cv_c_const" >&6; }
22900if test $ac_cv_c_const = no; then
22901
22902$as_echo "#define const /**/" >>confdefs.h
22903
22904fi
22905
cristy8b350f62009-11-15 23:12:43 +000022906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022907$as_echo_n "checking for inline... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022908if ${ac_cv_c_inline+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022909 $as_echo_n "(cached) " >&6
22910else
22911 ac_cv_c_inline=no
22912for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000022913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022914/* end confdefs.h. */
22915#ifndef __cplusplus
22916typedef int foo_t;
22917static $ac_kw foo_t static_foo () {return 0; }
22918$ac_kw foo_t foo () {return 0; }
22919#endif
22920
22921_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022922if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022923 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022924fi
cristy3ed852e2009-09-05 21:47:34 +000022925rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22926 test "$ac_cv_c_inline" != no && break
22927done
22928
22929fi
cristy8b350f62009-11-15 23:12:43 +000022930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022931$as_echo "$ac_cv_c_inline" >&6; }
22932
cristy3ed852e2009-09-05 21:47:34 +000022933case $ac_cv_c_inline in
22934 inline | yes) ;;
22935 *)
22936 case $ac_cv_c_inline in
22937 no) ac_val=;;
22938 *) ac_val=$ac_cv_c_inline;;
22939 esac
22940 cat >>confdefs.h <<_ACEOF
22941#ifndef __cplusplus
22942#define inline $ac_val
22943#endif
22944_ACEOF
22945 ;;
22946esac
22947
cristy8b350f62009-11-15 23:12:43 +000022948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000022949$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022950if ${ac_cv_c_restrict+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022951 $as_echo_n "(cached) " >&6
22952else
22953 ac_cv_c_restrict=no
22954 # The order here caters to the fact that C++ does not require restrict.
22955 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000022956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022957/* end confdefs.h. */
22958typedef int * int_ptr;
22959 int foo (int_ptr $ac_kw ip) {
22960 return ip[0];
22961 }
22962int
22963main ()
22964{
22965int s[1];
22966 int * $ac_kw t = s;
22967 t[0] = 0;
22968 return foo(t)
22969 ;
22970 return 0;
22971}
22972_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022973if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022974 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022975fi
cristy3ed852e2009-09-05 21:47:34 +000022976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22977 test "$ac_cv_c_restrict" != no && break
22978 done
22979
22980fi
cristy8b350f62009-11-15 23:12:43 +000022981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000022982$as_echo "$ac_cv_c_restrict" >&6; }
22983
cristy3ed852e2009-09-05 21:47:34 +000022984 case $ac_cv_c_restrict in
22985 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000022986 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022987 ;;
22988 *) cat >>confdefs.h <<_ACEOF
22989#define restrict $ac_cv_c_restrict
22990_ACEOF
22991 ;;
22992 esac
22993
cristye80f9cb2013-01-09 01:09:31 +000022994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
22995$as_echo_n "checking for working volatile... " >&6; }
22996if ${ac_cv_c_volatile+:} false; then :
22997 $as_echo_n "(cached) " >&6
22998else
22999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23000/* end confdefs.h. */
23001
23002int
23003main ()
23004{
23005
23006volatile int x;
23007int * volatile y = (int *) 0;
23008return !x && !y;
23009 ;
23010 return 0;
23011}
23012_ACEOF
23013if ac_fn_c_try_compile "$LINENO"; then :
23014 ac_cv_c_volatile=yes
23015else
23016 ac_cv_c_volatile=no
23017fi
23018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23019fi
23020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
23021$as_echo "$ac_cv_c_volatile" >&6; }
23022if test $ac_cv_c_volatile = no; then
23023
23024$as_echo "#define volatile /**/" >>confdefs.h
23025
23026fi
23027
cristy3ed852e2009-09-05 21:47:34 +000023028
23029# If words are stored with the most significant byte first (like
23030# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000023031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000023032$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023033if ${ac_cv_c_bigendian+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023034 $as_echo_n "(cached) " >&6
23035else
23036 ac_cv_c_bigendian=unknown
23037 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000023038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023039/* end confdefs.h. */
23040#ifndef __APPLE_CC__
23041 not a universal capable compiler
23042 #endif
23043 typedef int dummy;
23044
23045_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023046if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023047
23048 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000023049 # there are at least two -arch flags with different values.
23050 ac_arch=
23051 ac_prev=
23052 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
23053 if test -n "$ac_prev"; then
23054 case $ac_word in
23055 i?86 | x86_64 | ppc | ppc64)
23056 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
23057 ac_arch=$ac_word
23058 else
23059 ac_cv_c_bigendian=universal
23060 break
23061 fi
23062 ;;
23063 esac
23064 ac_prev=
23065 elif test "x$ac_word" = "x-arch"; then
23066 ac_prev=arch
23067 fi
23068 done
cristy3ed852e2009-09-05 21:47:34 +000023069fi
cristy3ed852e2009-09-05 21:47:34 +000023070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23071 if test $ac_cv_c_bigendian = unknown; then
23072 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000023073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023074/* end confdefs.h. */
23075#include <sys/types.h>
23076 #include <sys/param.h>
23077
23078int
23079main ()
23080{
23081#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
23082 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
23083 && LITTLE_ENDIAN)
23084 bogus endian macros
23085 #endif
23086
23087 ;
23088 return 0;
23089}
23090_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023091if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023092 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000023093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023094/* end confdefs.h. */
23095#include <sys/types.h>
23096 #include <sys/param.h>
23097
23098int
23099main ()
23100{
23101#if BYTE_ORDER != BIG_ENDIAN
23102 not big endian
23103 #endif
23104
23105 ;
23106 return 0;
23107}
23108_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023109if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023110 ac_cv_c_bigendian=yes
23111else
cristy8b350f62009-11-15 23:12:43 +000023112 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000023113fi
cristy3ed852e2009-09-05 21:47:34 +000023114rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023115fi
cristy3ed852e2009-09-05 21:47:34 +000023116rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23117 fi
23118 if test $ac_cv_c_bigendian = unknown; then
23119 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000023120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023121/* end confdefs.h. */
23122#include <limits.h>
23123
23124int
23125main ()
23126{
23127#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
23128 bogus endian macros
23129 #endif
23130
23131 ;
23132 return 0;
23133}
23134_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023135if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023136 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000023137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023138/* end confdefs.h. */
23139#include <limits.h>
23140
23141int
23142main ()
23143{
23144#ifndef _BIG_ENDIAN
23145 not big endian
23146 #endif
23147
23148 ;
23149 return 0;
23150}
23151_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023152if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023153 ac_cv_c_bigendian=yes
23154else
cristy8b350f62009-11-15 23:12:43 +000023155 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000023156fi
cristy3ed852e2009-09-05 21:47:34 +000023157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023158fi
cristy3ed852e2009-09-05 21:47:34 +000023159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23160 fi
23161 if test $ac_cv_c_bigendian = unknown; then
23162 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000023163 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023164 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000023165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023166/* end confdefs.h. */
23167short int ascii_mm[] =
23168 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
23169 short int ascii_ii[] =
23170 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
23171 int use_ascii (int i) {
23172 return ascii_mm[i] + ascii_ii[i];
23173 }
23174 short int ebcdic_ii[] =
23175 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
23176 short int ebcdic_mm[] =
23177 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
23178 int use_ebcdic (int i) {
23179 return ebcdic_mm[i] + ebcdic_ii[i];
23180 }
23181 extern int foo;
23182
23183int
23184main ()
23185{
23186return use_ascii (foo) == use_ebcdic (foo);
23187 ;
23188 return 0;
23189}
23190_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023191if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023192 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
23193 ac_cv_c_bigendian=yes
23194 fi
23195 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
23196 if test "$ac_cv_c_bigendian" = unknown; then
23197 ac_cv_c_bigendian=no
23198 else
23199 # finding both strings is unlikely to happen, but who knows?
23200 ac_cv_c_bigendian=unknown
23201 fi
23202 fi
cristy3ed852e2009-09-05 21:47:34 +000023203fi
cristy3ed852e2009-09-05 21:47:34 +000023204rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23205else
cristy8b350f62009-11-15 23:12:43 +000023206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023207/* end confdefs.h. */
23208$ac_includes_default
23209int
23210main ()
23211{
23212
23213 /* Are we little or big endian? From Harbison&Steele. */
23214 union
23215 {
23216 long int l;
23217 char c[sizeof (long int)];
23218 } u;
23219 u.l = 1;
23220 return u.c[sizeof (long int) - 1] == 1;
23221
23222 ;
23223 return 0;
23224}
23225_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023226if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023227 ac_cv_c_bigendian=no
23228else
cristy8b350f62009-11-15 23:12:43 +000023229 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000023230fi
cristy8b350f62009-11-15 23:12:43 +000023231rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23232 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023233fi
23234
cristy3ed852e2009-09-05 21:47:34 +000023235 fi
23236fi
cristy8b350f62009-11-15 23:12:43 +000023237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000023238$as_echo "$ac_cv_c_bigendian" >&6; }
23239 case $ac_cv_c_bigendian in #(
23240 yes)
cristy8b350f62009-11-15 23:12:43 +000023241 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023242;; #(
23243 no)
23244 ;; #(
23245 universal)
23246
cristy8b350f62009-11-15 23:12:43 +000023247$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023248
23249 ;; #(
23250 *)
cristy98dddb52010-11-04 00:30:15 +000023251 as_fn_error $? "unknown endianness
cristy8b350f62009-11-15 23:12:43 +000023252 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000023253 esac
23254
23255
cristy501c8042011-05-26 17:46:28 +000023256# Define to a suitable type, if standard headers do not define it.
23257ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
23258case $ac_cv_c_int8_t in #(
23259 no|yes) ;; #(
23260 *)
cristy3ed852e2009-09-05 21:47:34 +000023261
23262cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000023263#define int8_t $ac_cv_c_int8_t
23264_ACEOF
23265;;
23266esac
23267
23268ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
23269case $ac_cv_c_int16_t in #(
23270 no|yes) ;; #(
23271 *)
23272
23273cat >>confdefs.h <<_ACEOF
23274#define int16_t $ac_cv_c_int16_t
23275_ACEOF
23276;;
23277esac
23278
23279ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
23280case $ac_cv_c_int32_t in #(
23281 no|yes) ;; #(
23282 *)
23283
23284cat >>confdefs.h <<_ACEOF
23285#define int32_t $ac_cv_c_int32_t
23286_ACEOF
23287;;
23288esac
23289
23290ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
23291case $ac_cv_c_int64_t in #(
23292 no|yes) ;; #(
23293 *)
23294
23295cat >>confdefs.h <<_ACEOF
23296#define int64_t $ac_cv_c_int64_t
23297_ACEOF
23298;;
23299esac
23300
23301
cristy045228a2013-06-23 11:00:16 +000023302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23303$as_echo_n "checking for unsigned long long int... " >&6; }
23304if ${ac_cv_type_unsigned_long_long_int+:} false; then :
cristy501c8042011-05-26 17:46:28 +000023305 $as_echo_n "(cached) " >&6
23306else
cristy045228a2013-06-23 11:00:16 +000023307 ac_cv_type_unsigned_long_long_int=yes
23308 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
23309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy501c8042011-05-26 17:46:28 +000023310/* end confdefs.h. */
23311
23312 /* For now, do not test the preprocessor; as of 2007 there are too many
cristy5ed9c6e2013-07-14 21:20:31 +000023313 implementations with broken preprocessors. Perhaps this can
23314 be revisited in 2012. In the meantime, code should not expect
23315 #if to work with literals wider than 32 bits. */
cristy501c8042011-05-26 17:46:28 +000023316 /* Test literals. */
23317 long long int ll = 9223372036854775807ll;
23318 long long int nll = -9223372036854775807LL;
23319 unsigned long long int ull = 18446744073709551615ULL;
23320 /* Test constant expressions. */
23321 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
cristy5ed9c6e2013-07-14 21:20:31 +000023322 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000023323 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
cristy5ed9c6e2013-07-14 21:20:31 +000023324 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000023325 int i = 63;
23326int
23327main ()
23328{
23329/* Test availability of runtime routines for shift and division. */
23330 long long int llmax = 9223372036854775807ll;
23331 unsigned long long int ullmax = 18446744073709551615ull;
23332 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
cristy5ed9c6e2013-07-14 21:20:31 +000023333 | (llmax / ll) | (llmax % ll)
23334 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23335 | (ullmax / ull) | (ullmax % ull));
cristy501c8042011-05-26 17:46:28 +000023336 ;
23337 return 0;
23338}
23339
23340_ACEOF
23341if ac_fn_c_try_link "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000023342
23343else
23344 ac_cv_type_unsigned_long_long_int=no
23345fi
23346rm -f core conftest.err conftest.$ac_objext \
23347 conftest$ac_exeext conftest.$ac_ext
23348 fi
23349fi
23350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23351$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23352 if test $ac_cv_type_unsigned_long_long_int = yes; then
23353
23354$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23355
23356 fi
23357
23358
23359
23360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
23361$as_echo_n "checking for long long int... " >&6; }
23362if ${ac_cv_type_long_long_int+:} false; then :
23363 $as_echo_n "(cached) " >&6
23364else
cristy501c8042011-05-26 17:46:28 +000023365 ac_cv_type_long_long_int=yes
cristy045228a2013-06-23 11:00:16 +000023366 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
cristy5ed9c6e2013-07-14 21:20:31 +000023367 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
23368 if test $ac_cv_type_long_long_int = yes; then
23369 if test "$cross_compiling" = yes; then :
cristy045228a2013-06-23 11:00:16 +000023370 :
cristy501c8042011-05-26 17:46:28 +000023371else
23372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23373/* end confdefs.h. */
23374#include <limits.h>
cristy5ed9c6e2013-07-14 21:20:31 +000023375 #ifndef LLONG_MAX
23376 # define HALF \
23377 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
23378 # define LLONG_MAX (HALF - 1 + HALF)
23379 #endif
cristy501c8042011-05-26 17:46:28 +000023380int
23381main ()
23382{
23383long long int n = 1;
cristy5ed9c6e2013-07-14 21:20:31 +000023384 int i;
23385 for (i = 0; ; i++)
23386 {
23387 long long int m = n << i;
23388 if (m >> i != n)
23389 return 1;
23390 if (LLONG_MAX / 2 < m)
23391 break;
23392 }
23393 return 0;
cristy501c8042011-05-26 17:46:28 +000023394 ;
23395 return 0;
23396}
23397_ACEOF
23398if ac_fn_c_try_run "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000023399
cristy501c8042011-05-26 17:46:28 +000023400else
23401 ac_cv_type_long_long_int=no
23402fi
23403rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23404 conftest.$ac_objext conftest.beam conftest.$ac_ext
23405fi
23406
cristy5ed9c6e2013-07-14 21:20:31 +000023407 fi
cristy045228a2013-06-23 11:00:16 +000023408 fi
cristy501c8042011-05-26 17:46:28 +000023409fi
23410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
23411$as_echo "$ac_cv_type_long_long_int" >&6; }
23412 if test $ac_cv_type_long_long_int = yes; then
23413
23414$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
23415
23416 fi
23417
23418
23419
23420 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
23421if test "x$ac_cv_type_intmax_t" = xyes; then :
23422
23423$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
23424
23425else
23426 test $ac_cv_type_long_long_int = yes \
23427 && ac_type='long long int' \
23428 || ac_type='long int'
23429
23430cat >>confdefs.h <<_ACEOF
23431#define intmax_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000023432_ACEOF
23433
23434fi
23435
23436
cristy501c8042011-05-26 17:46:28 +000023437
23438 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
23439if test "x$ac_cv_type_intptr_t" = xyes; then :
23440
23441$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023442
cristy3ed852e2009-09-05 21:47:34 +000023443else
cristy501c8042011-05-26 17:46:28 +000023444 for ac_type in 'int' 'long int' 'long long int'; do
23445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23446/* end confdefs.h. */
23447$ac_includes_default
23448int
23449main ()
23450{
23451static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
cristy14fefe52012-05-21 00:59:18 +000023452test_array [0] = 0;
23453return test_array [0];
cristy501c8042011-05-26 17:46:28 +000023454
23455 ;
23456 return 0;
23457}
23458_ACEOF
23459if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023460
23461cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000023462#define intptr_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000023463_ACEOF
23464
cristy501c8042011-05-26 17:46:28 +000023465 ac_type=
23466fi
23467rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23468 test -z "$ac_type" && break
23469 done
cristy3ed852e2009-09-05 21:47:34 +000023470fi
23471
23472
cristy3ed852e2009-09-05 21:47:34 +000023473
cristy501c8042011-05-26 17:46:28 +000023474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
23475$as_echo_n "checking for long double... " >&6; }
23476if ${ac_cv_type_long_double+:} false; then :
23477 $as_echo_n "(cached) " >&6
cristy3ed852e2009-09-05 21:47:34 +000023478else
cristy501c8042011-05-26 17:46:28 +000023479 if test "$GCC" = yes; then
23480 ac_cv_type_long_double=yes
23481 else
23482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23483/* end confdefs.h. */
23484/* The Stardent Vistra knows sizeof (long double), but does
23485 not support it. */
23486 long double foo = 0.0L;
23487int
23488main ()
23489{
23490static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
23491 sizeof (double) <= sizeof (long double))];
cristy14fefe52012-05-21 00:59:18 +000023492test_array [0] = 0;
23493return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000023494
cristy501c8042011-05-26 17:46:28 +000023495 ;
23496 return 0;
23497}
cristy3ed852e2009-09-05 21:47:34 +000023498_ACEOF
cristy501c8042011-05-26 17:46:28 +000023499if ac_fn_c_try_compile "$LINENO"; then :
23500 ac_cv_type_long_double=yes
cristy3ed852e2009-09-05 21:47:34 +000023501else
cristy501c8042011-05-26 17:46:28 +000023502 ac_cv_type_long_double=no
cristy3ed852e2009-09-05 21:47:34 +000023503fi
cristy501c8042011-05-26 17:46:28 +000023504rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23505 fi
cristy3ed852e2009-09-05 21:47:34 +000023506fi
cristy501c8042011-05-26 17:46:28 +000023507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
23508$as_echo "$ac_cv_type_long_double" >&6; }
23509 if test $ac_cv_type_long_double = yes; then
cristy3ed852e2009-09-05 21:47:34 +000023510
cristy501c8042011-05-26 17:46:28 +000023511$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023512
cristy501c8042011-05-26 17:46:28 +000023513 fi
23514
cristy3ed852e2009-09-05 21:47:34 +000023515
cristy8b350f62009-11-15 23:12:43 +000023516 { $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 +000023517$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023518if ${ac_cv_type_long_double_wider+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023519 $as_echo_n "(cached) " >&6
23520else
cristy8b350f62009-11-15 23:12:43 +000023521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023522/* end confdefs.h. */
23523#include <float.h>
23524 long double const a[] =
23525 {
23526 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
23527 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
23528 };
23529 long double
23530 f (long double x)
23531 {
23532 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
23533 + (x ? f (x) : 'c'));
23534 }
23535
23536int
23537main ()
23538{
23539static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
23540 + (DBL_MANT_DIG < LDBL_MANT_DIG)
23541 - (LDBL_MAX_EXP < DBL_MAX_EXP)
23542 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
23543 && (int) LDBL_EPSILON == 0
23544 )];
cristy14fefe52012-05-21 00:59:18 +000023545test_array [0] = 0;
23546return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000023547
23548 ;
23549 return 0;
23550}
23551_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023552if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023553 ac_cv_type_long_double_wider=yes
23554else
cristy8b350f62009-11-15 23:12:43 +000023555 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000023556fi
cristy3ed852e2009-09-05 21:47:34 +000023557rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23558fi
cristy8b350f62009-11-15 23:12:43 +000023559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000023560$as_echo "$ac_cv_type_long_double_wider" >&6; }
23561 if test $ac_cv_type_long_double_wider = yes; then
23562
cristy8b350f62009-11-15 23:12:43 +000023563$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023564
23565 fi
23566
23567
cristy045228a2013-06-23 11:00:16 +000023568
cristy501c8042011-05-26 17:46:28 +000023569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
23570$as_echo_n "checking for long long int... " >&6; }
23571if ${ac_cv_type_long_long_int+:} false; then :
23572 $as_echo_n "(cached) " >&6
23573else
cristy501c8042011-05-26 17:46:28 +000023574 ac_cv_type_long_long_int=yes
cristy045228a2013-06-23 11:00:16 +000023575 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
cristy5ed9c6e2013-07-14 21:20:31 +000023576 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
23577 if test $ac_cv_type_long_long_int = yes; then
23578 if test "$cross_compiling" = yes; then :
cristy045228a2013-06-23 11:00:16 +000023579 :
cristy501c8042011-05-26 17:46:28 +000023580else
23581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23582/* end confdefs.h. */
23583#include <limits.h>
cristy5ed9c6e2013-07-14 21:20:31 +000023584 #ifndef LLONG_MAX
23585 # define HALF \
23586 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
23587 # define LLONG_MAX (HALF - 1 + HALF)
23588 #endif
cristy501c8042011-05-26 17:46:28 +000023589int
23590main ()
23591{
23592long long int n = 1;
cristy5ed9c6e2013-07-14 21:20:31 +000023593 int i;
23594 for (i = 0; ; i++)
23595 {
23596 long long int m = n << i;
23597 if (m >> i != n)
23598 return 1;
23599 if (LLONG_MAX / 2 < m)
23600 break;
23601 }
23602 return 0;
cristy501c8042011-05-26 17:46:28 +000023603 ;
23604 return 0;
23605}
23606_ACEOF
23607if ac_fn_c_try_run "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000023608
cristy501c8042011-05-26 17:46:28 +000023609else
23610 ac_cv_type_long_long_int=no
23611fi
23612rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23613 conftest.$ac_objext conftest.beam conftest.$ac_ext
23614fi
23615
cristy5ed9c6e2013-07-14 21:20:31 +000023616 fi
cristy045228a2013-06-23 11:00:16 +000023617 fi
cristy501c8042011-05-26 17:46:28 +000023618fi
23619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
23620$as_echo "$ac_cv_type_long_long_int" >&6; }
23621 if test $ac_cv_type_long_long_int = yes; then
23622
23623$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
23624
23625 fi
23626
23627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
23628$as_echo_n "checking for mbstate_t... " >&6; }
23629if ${ac_cv_type_mbstate_t+:} false; then :
23630 $as_echo_n "(cached) " >&6
23631else
23632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23633/* end confdefs.h. */
23634$ac_includes_default
23635# include <wchar.h>
23636int
23637main ()
23638{
23639mbstate_t x; return sizeof x;
23640 ;
23641 return 0;
23642}
23643_ACEOF
23644if ac_fn_c_try_compile "$LINENO"; then :
23645 ac_cv_type_mbstate_t=yes
23646else
23647 ac_cv_type_mbstate_t=no
23648fi
23649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23650fi
23651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
23652$as_echo "$ac_cv_type_mbstate_t" >&6; }
23653 if test $ac_cv_type_mbstate_t = yes; then
23654
23655$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
23656
23657 else
23658
23659$as_echo "#define mbstate_t int" >>confdefs.h
23660
23661 fi
23662ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
23663if test "x$ac_cv_type_mode_t" = xyes; then :
23664
23665else
23666
23667cat >>confdefs.h <<_ACEOF
23668#define mode_t int
23669_ACEOF
23670
23671fi
23672
23673ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
23674if test "x$ac_cv_type_off_t" = xyes; then :
23675
23676else
23677
23678cat >>confdefs.h <<_ACEOF
23679#define off_t long int
23680_ACEOF
23681
23682fi
23683
23684ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
23685if test "x$ac_cv_type_pid_t" = xyes; then :
23686
23687else
23688
23689cat >>confdefs.h <<_ACEOF
23690#define pid_t int
23691_ACEOF
23692
23693fi
23694
23695ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
23696if test "x$ac_cv_type_size_t" = xyes; then :
23697
23698else
23699
23700cat >>confdefs.h <<_ACEOF
23701#define size_t unsigned int
23702_ACEOF
23703
23704fi
23705
23706ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
23707if test "x$ac_cv_type_ssize_t" = xyes; then :
23708
23709else
23710
23711cat >>confdefs.h <<_ACEOF
23712#define ssize_t int
23713_ACEOF
23714
23715fi
23716
23717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
23718$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
23719if ${ac_cv_type_uid_t+:} false; then :
23720 $as_echo_n "(cached) " >&6
23721else
23722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23723/* end confdefs.h. */
23724#include <sys/types.h>
23725
23726_ACEOF
23727if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23728 $EGREP "uid_t" >/dev/null 2>&1; then :
23729 ac_cv_type_uid_t=yes
23730else
23731 ac_cv_type_uid_t=no
23732fi
23733rm -f conftest*
23734
23735fi
23736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
23737$as_echo "$ac_cv_type_uid_t" >&6; }
23738if test $ac_cv_type_uid_t = no; then
23739
23740$as_echo "#define uid_t int" >>confdefs.h
23741
23742
23743$as_echo "#define gid_t int" >>confdefs.h
23744
23745fi
23746
23747ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
23748case $ac_cv_c_uint8_t in #(
23749 no|yes) ;; #(
23750 *)
23751
23752$as_echo "#define _UINT8_T 1" >>confdefs.h
23753
23754
23755cat >>confdefs.h <<_ACEOF
23756#define uint8_t $ac_cv_c_uint8_t
23757_ACEOF
23758;;
23759 esac
23760
23761ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
23762case $ac_cv_c_uint16_t in #(
23763 no|yes) ;; #(
23764 *)
23765
23766
23767cat >>confdefs.h <<_ACEOF
23768#define uint16_t $ac_cv_c_uint16_t
23769_ACEOF
23770;;
23771 esac
23772
23773ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
23774case $ac_cv_c_uint32_t in #(
23775 no|yes) ;; #(
23776 *)
23777
23778$as_echo "#define _UINT32_T 1" >>confdefs.h
23779
23780
23781cat >>confdefs.h <<_ACEOF
23782#define uint32_t $ac_cv_c_uint32_t
23783_ACEOF
23784;;
23785 esac
23786
23787ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
23788case $ac_cv_c_uint64_t in #(
23789 no|yes) ;; #(
23790 *)
23791
23792$as_echo "#define _UINT64_T 1" >>confdefs.h
23793
23794
23795cat >>confdefs.h <<_ACEOF
23796#define uint64_t $ac_cv_c_uint64_t
23797_ACEOF
23798;;
23799 esac
23800
23801
cristy501c8042011-05-26 17:46:28 +000023802
23803 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
23804if test "x$ac_cv_type_uintmax_t" = xyes; then :
23805
23806$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
23807
23808else
23809 test $ac_cv_type_unsigned_long_long_int = yes \
23810 && ac_type='unsigned long long int' \
23811 || ac_type='unsigned long int'
23812
23813cat >>confdefs.h <<_ACEOF
23814#define uintmax_t $ac_type
23815_ACEOF
23816
23817fi
23818
23819
23820
23821 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
23822if test "x$ac_cv_type_uintptr_t" = xyes; then :
23823
23824$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
23825
23826else
23827 for ac_type in 'unsigned int' 'unsigned long int' \
23828 'unsigned long long int'; do
23829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23830/* end confdefs.h. */
23831$ac_includes_default
23832int
23833main ()
23834{
23835static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
cristy14fefe52012-05-21 00:59:18 +000023836test_array [0] = 0;
23837return test_array [0];
cristy501c8042011-05-26 17:46:28 +000023838
23839 ;
23840 return 0;
23841}
23842_ACEOF
23843if ac_fn_c_try_compile "$LINENO"; then :
23844
23845cat >>confdefs.h <<_ACEOF
23846#define uintptr_t $ac_type
23847_ACEOF
23848
23849 ac_type=
23850fi
23851rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23852 test -z "$ac_type" && break
23853 done
23854fi
23855
23856
23857
23858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23859$as_echo_n "checking for unsigned long long int... " >&6; }
23860if ${ac_cv_type_unsigned_long_long_int+:} false; then :
23861 $as_echo_n "(cached) " >&6
23862else
cristy045228a2013-06-23 11:00:16 +000023863 ac_cv_type_unsigned_long_long_int=yes
23864 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
23865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy501c8042011-05-26 17:46:28 +000023866/* end confdefs.h. */
23867
23868 /* For now, do not test the preprocessor; as of 2007 there are too many
cristy5ed9c6e2013-07-14 21:20:31 +000023869 implementations with broken preprocessors. Perhaps this can
23870 be revisited in 2012. In the meantime, code should not expect
23871 #if to work with literals wider than 32 bits. */
cristy501c8042011-05-26 17:46:28 +000023872 /* Test literals. */
23873 long long int ll = 9223372036854775807ll;
23874 long long int nll = -9223372036854775807LL;
23875 unsigned long long int ull = 18446744073709551615ULL;
23876 /* Test constant expressions. */
23877 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
cristy5ed9c6e2013-07-14 21:20:31 +000023878 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000023879 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
cristy5ed9c6e2013-07-14 21:20:31 +000023880 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000023881 int i = 63;
23882int
23883main ()
23884{
23885/* Test availability of runtime routines for shift and division. */
23886 long long int llmax = 9223372036854775807ll;
23887 unsigned long long int ullmax = 18446744073709551615ull;
23888 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
cristy5ed9c6e2013-07-14 21:20:31 +000023889 | (llmax / ll) | (llmax % ll)
23890 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23891 | (ullmax / ull) | (ullmax % ull));
cristy501c8042011-05-26 17:46:28 +000023892 ;
23893 return 0;
23894}
23895
23896_ACEOF
23897if ac_fn_c_try_link "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000023898
cristy501c8042011-05-26 17:46:28 +000023899else
23900 ac_cv_type_unsigned_long_long_int=no
23901fi
23902rm -f core conftest.err conftest.$ac_objext \
23903 conftest$ac_exeext conftest.$ac_ext
cristy045228a2013-06-23 11:00:16 +000023904 fi
cristy501c8042011-05-26 17:46:28 +000023905fi
23906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23907$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23908 if test $ac_cv_type_unsigned_long_long_int = yes; then
23909
23910$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23911
23912 fi
23913
23914
cristy708922a2015-05-17 02:33:56 +000023915ac_fn_c_check_type "$LINENO" "locale_t" "ac_cv_type_locale_t" "#include <xlocale.h>
23916"
cristy98beafc2015-05-14 19:55:55 +000023917if test "x$ac_cv_type_locale_t" = xyes; then :
23918
23919cat >>confdefs.h <<_ACEOF
23920#define HAVE_LOCALE_T 1
23921_ACEOF
23922
23923
23924fi
23925
23926
cristyfec31822013-05-23 12:32:12 +000023927# Float_t and double_t are intended to be the the most efficient type.
23928ac_fn_c_check_type "$LINENO" "float_t" "ac_cv_type_float_t" "#include <math.h>
23929"
23930if test "x$ac_cv_type_float_t" = xyes; then :
23931
23932cat >>confdefs.h <<_ACEOF
23933#define HAVE_FLOAT_T 1
23934_ACEOF
23935
23936
23937fi
23938
23939ac_fn_c_check_type "$LINENO" "double_t" "ac_cv_type_double_t" "#include <math.h>
23940"
23941if test "x$ac_cv_type_double_t" = xyes; then :
23942
23943cat >>confdefs.h <<_ACEOF
23944#define HAVE_DOUBLE_T 1
23945_ACEOF
23946
23947
23948fi
23949
23950# The cast to long int works around a bug in the HP C Compiler
23951# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23952# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23953# This bug is HP SR number 8606223364.
23954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float_t" >&5
23955$as_echo_n "checking size of float_t... " >&6; }
23956if ${ac_cv_sizeof_float_t+:} false; then :
23957 $as_echo_n "(cached) " >&6
23958else
23959 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float_t))" "ac_cv_sizeof_float_t" "#include <math.h>
23960"; then :
23961
23962else
23963 if test "$ac_cv_type_float_t" = yes; then
23964 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23965$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23966as_fn_error 77 "cannot compute sizeof (float_t)
23967See \`config.log' for more details" "$LINENO" 5; }
23968 else
23969 ac_cv_sizeof_float_t=0
23970 fi
23971fi
23972
23973fi
23974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float_t" >&5
23975$as_echo "$ac_cv_sizeof_float_t" >&6; }
23976
23977
23978
23979cat >>confdefs.h <<_ACEOF
23980#define SIZEOF_FLOAT_T $ac_cv_sizeof_float_t
23981_ACEOF
23982
23983
23984# The cast to long int works around a bug in the HP C Compiler
23985# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23986# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23987# This bug is HP SR number 8606223364.
23988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double_t" >&5
23989$as_echo_n "checking size of double_t... " >&6; }
23990if ${ac_cv_sizeof_double_t+:} false; then :
23991 $as_echo_n "(cached) " >&6
23992else
23993 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double_t))" "ac_cv_sizeof_double_t" "#include <math.h>
23994"; then :
23995
23996else
23997 if test "$ac_cv_type_double_t" = yes; then
23998 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23999$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24000as_fn_error 77 "cannot compute sizeof (double_t)
24001See \`config.log' for more details" "$LINENO" 5; }
24002 else
24003 ac_cv_sizeof_double_t=0
24004 fi
24005fi
24006
24007fi
24008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double_t" >&5
24009$as_echo "$ac_cv_sizeof_double_t" >&6; }
24010
24011
24012
24013cat >>confdefs.h <<_ACEOF
24014#define SIZEOF_DOUBLE_T $ac_cv_sizeof_double_t
24015_ACEOF
24016
24017
24018
cristy9b86f202012-11-28 21:55:35 +000024019# Get size of float, double and long double for comparaison.
24020# The cast to long int works around a bug in the HP C Compiler
24021# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24022# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24023# This bug is HP SR number 8606223364.
24024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
24025$as_echo_n "checking size of float... " >&6; }
24026if ${ac_cv_sizeof_float+:} false; then :
24027 $as_echo_n "(cached) " >&6
24028else
24029 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then :
24030
24031else
24032 if test "$ac_cv_type_float" = yes; then
24033 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24034$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24035as_fn_error 77 "cannot compute sizeof (float)
24036See \`config.log' for more details" "$LINENO" 5; }
24037 else
24038 ac_cv_sizeof_float=0
24039 fi
24040fi
24041
24042fi
24043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
24044$as_echo "$ac_cv_sizeof_float" >&6; }
24045
24046
24047
24048cat >>confdefs.h <<_ACEOF
24049#define SIZEOF_FLOAT $ac_cv_sizeof_float
24050_ACEOF
24051
24052
24053# The cast to long int works around a bug in the HP C Compiler
24054# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24055# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24056# This bug is HP SR number 8606223364.
24057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
24058$as_echo_n "checking size of double... " >&6; }
24059if ${ac_cv_sizeof_double+:} false; then :
24060 $as_echo_n "(cached) " >&6
24061else
24062 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
24063
24064else
24065 if test "$ac_cv_type_double" = yes; then
24066 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24067$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24068as_fn_error 77 "cannot compute sizeof (double)
24069See \`config.log' for more details" "$LINENO" 5; }
24070 else
24071 ac_cv_sizeof_double=0
24072 fi
24073fi
24074
24075fi
24076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
24077$as_echo "$ac_cv_sizeof_double" >&6; }
24078
24079
24080
24081cat >>confdefs.h <<_ACEOF
24082#define SIZEOF_DOUBLE $ac_cv_sizeof_double
24083_ACEOF
24084
24085
cristy9e2b6242014-03-25 11:49:41 +000024086# The cast to long int works around a bug in the HP C Compiler
cristyfec31822013-05-23 12:32:12 +000024087# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24088# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24089# This bug is HP SR number 8606223364.
24090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
24091$as_echo_n "checking size of long double... " >&6; }
24092if ${ac_cv_sizeof_long_double+:} false; then :
24093 $as_echo_n "(cached) " >&6
24094else
24095 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
24096
24097else
24098 if test "$ac_cv_type_long_double" = yes; then
24099 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24100$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24101as_fn_error 77 "cannot compute sizeof (long double)
24102See \`config.log' for more details" "$LINENO" 5; }
24103 else
24104 ac_cv_sizeof_long_double=0
24105 fi
24106fi
24107
24108fi
24109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
24110$as_echo "$ac_cv_sizeof_long_double" >&6; }
24111
24112
24113
24114cat >>confdefs.h <<_ACEOF
24115#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
24116_ACEOF
24117
24118
cristyf0cf9a22012-10-24 12:05:01 +000024119
cristy3ed852e2009-09-05 21:47:34 +000024120# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
24121# The cast to long int works around a bug in the HP C Compiler
24122# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24123# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24124# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000024126$as_echo_n "checking size of signed short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024127if ${ac_cv_sizeof_signed_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024128 $as_echo_n "(cached) " >&6
24129else
cristy8b350f62009-11-15 23:12:43 +000024130 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 +000024131
cristy3ed852e2009-09-05 21:47:34 +000024132else
cristy8b350f62009-11-15 23:12:43 +000024133 if test "$ac_cv_type_signed_short" = yes; then
24134 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024135$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024136as_fn_error 77 "cannot compute sizeof (signed short)
24137See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024138 else
24139 ac_cv_sizeof_signed_short=0
24140 fi
24141fi
cristy8b350f62009-11-15 23:12:43 +000024142
cristy3ed852e2009-09-05 21:47:34 +000024143fi
cristy8b350f62009-11-15 23:12:43 +000024144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000024145$as_echo "$ac_cv_sizeof_signed_short" >&6; }
24146
24147
24148
24149cat >>confdefs.h <<_ACEOF
24150#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
24151_ACEOF
24152
24153
24154
24155# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
24156# The cast to long int works around a bug in the HP C Compiler
24157# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24158# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24159# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000024161$as_echo_n "checking size of unsigned short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024162if ${ac_cv_sizeof_unsigned_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024163 $as_echo_n "(cached) " >&6
24164else
cristy8b350f62009-11-15 23:12:43 +000024165 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 +000024166
cristy3ed852e2009-09-05 21:47:34 +000024167else
cristy8b350f62009-11-15 23:12:43 +000024168 if test "$ac_cv_type_unsigned_short" = yes; then
24169 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024170$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024171as_fn_error 77 "cannot compute sizeof (unsigned short)
24172See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024173 else
24174 ac_cv_sizeof_unsigned_short=0
24175 fi
24176fi
cristy8b350f62009-11-15 23:12:43 +000024177
cristy3ed852e2009-09-05 21:47:34 +000024178fi
cristy8b350f62009-11-15 23:12:43 +000024179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000024180$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
24181
24182
24183
24184cat >>confdefs.h <<_ACEOF
24185#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
24186_ACEOF
24187
24188
24189
24190# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
24191# The cast to long int works around a bug in the HP C Compiler
24192# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24193# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24194# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000024196$as_echo_n "checking size of signed int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024197if ${ac_cv_sizeof_signed_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024198 $as_echo_n "(cached) " >&6
24199else
cristy8b350f62009-11-15 23:12:43 +000024200 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 +000024201
cristy3ed852e2009-09-05 21:47:34 +000024202else
cristy8b350f62009-11-15 23:12:43 +000024203 if test "$ac_cv_type_signed_int" = yes; then
24204 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024205$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024206as_fn_error 77 "cannot compute sizeof (signed int)
24207See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024208 else
24209 ac_cv_sizeof_signed_int=0
24210 fi
24211fi
cristy8b350f62009-11-15 23:12:43 +000024212
cristy3ed852e2009-09-05 21:47:34 +000024213fi
cristy8b350f62009-11-15 23:12:43 +000024214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000024215$as_echo "$ac_cv_sizeof_signed_int" >&6; }
24216
24217
24218
24219cat >>confdefs.h <<_ACEOF
24220#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
24221_ACEOF
24222
24223
24224
24225# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
24226# The cast to long int works around a bug in the HP C Compiler
24227# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24228# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24229# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000024231$as_echo_n "checking size of unsigned int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024232if ${ac_cv_sizeof_unsigned_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024233 $as_echo_n "(cached) " >&6
24234else
cristy8b350f62009-11-15 23:12:43 +000024235 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 +000024236
cristy3ed852e2009-09-05 21:47:34 +000024237else
cristy8b350f62009-11-15 23:12:43 +000024238 if test "$ac_cv_type_unsigned_int" = yes; then
24239 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024240$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024241as_fn_error 77 "cannot compute sizeof (unsigned int)
24242See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024243 else
24244 ac_cv_sizeof_unsigned_int=0
24245 fi
24246fi
cristy8b350f62009-11-15 23:12:43 +000024247
cristy3ed852e2009-09-05 21:47:34 +000024248fi
cristy8b350f62009-11-15 23:12:43 +000024249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000024250$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
24251
24252
24253
24254cat >>confdefs.h <<_ACEOF
24255#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
24256_ACEOF
24257
24258
24259
24260# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
24261# The cast to long int works around a bug in the HP C Compiler
24262# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24263# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24264# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024266$as_echo_n "checking size of signed long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024267if ${ac_cv_sizeof_signed_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024268 $as_echo_n "(cached) " >&6
24269else
cristy8b350f62009-11-15 23:12:43 +000024270 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 +000024271
cristy3ed852e2009-09-05 21:47:34 +000024272else
cristy8b350f62009-11-15 23:12:43 +000024273 if test "$ac_cv_type_signed_long" = yes; then
24274 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024275$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024276as_fn_error 77 "cannot compute sizeof (signed long)
24277See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024278 else
24279 ac_cv_sizeof_signed_long=0
24280 fi
24281fi
cristy8b350f62009-11-15 23:12:43 +000024282
cristy3ed852e2009-09-05 21:47:34 +000024283fi
cristy8b350f62009-11-15 23:12:43 +000024284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024285$as_echo "$ac_cv_sizeof_signed_long" >&6; }
24286
24287
24288
24289cat >>confdefs.h <<_ACEOF
24290#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
24291_ACEOF
24292
24293
24294
24295# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
24296# The cast to long int works around a bug in the HP C Compiler
24297# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24298# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24299# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024301$as_echo_n "checking size of unsigned long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024302if ${ac_cv_sizeof_unsigned_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024303 $as_echo_n "(cached) " >&6
24304else
cristy8b350f62009-11-15 23:12:43 +000024305 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 +000024306
cristy3ed852e2009-09-05 21:47:34 +000024307else
cristy8b350f62009-11-15 23:12:43 +000024308 if test "$ac_cv_type_unsigned_long" = yes; then
24309 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024310$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024311as_fn_error 77 "cannot compute sizeof (unsigned long)
24312See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024313 else
24314 ac_cv_sizeof_unsigned_long=0
24315 fi
24316fi
cristy8b350f62009-11-15 23:12:43 +000024317
cristy3ed852e2009-09-05 21:47:34 +000024318fi
cristy8b350f62009-11-15 23:12:43 +000024319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024320$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
24321
24322
24323
24324cat >>confdefs.h <<_ACEOF
24325#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
24326_ACEOF
24327
24328
24329
24330# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
24331# 'signed long long' is not supported then the value defined is zero.
24332# The cast to long int works around a bug in the HP C Compiler
24333# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24334# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24335# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024337$as_echo_n "checking size of signed long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024338if ${ac_cv_sizeof_signed_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024339 $as_echo_n "(cached) " >&6
24340else
cristy8b350f62009-11-15 23:12:43 +000024341 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 +000024342
cristy3ed852e2009-09-05 21:47:34 +000024343else
cristy8b350f62009-11-15 23:12:43 +000024344 if test "$ac_cv_type_signed_long_long" = yes; then
24345 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024346$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024347as_fn_error 77 "cannot compute sizeof (signed long long)
24348See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024349 else
24350 ac_cv_sizeof_signed_long_long=0
24351 fi
24352fi
cristy8b350f62009-11-15 23:12:43 +000024353
cristy3ed852e2009-09-05 21:47:34 +000024354fi
cristy8b350f62009-11-15 23:12:43 +000024355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024356$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
24357
24358
24359
24360cat >>confdefs.h <<_ACEOF
24361#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
24362_ACEOF
24363
24364
24365
24366# Obtain size of a 'unsigned long long' and define as
24367# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
24368# supported then the value defined is zero.
24369# The cast to long int works around a bug in the HP C Compiler
24370# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24371# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24372# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024374$as_echo_n "checking size of unsigned long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024375if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024376 $as_echo_n "(cached) " >&6
24377else
cristy8b350f62009-11-15 23:12:43 +000024378 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 +000024379
cristy3ed852e2009-09-05 21:47:34 +000024380else
cristy8b350f62009-11-15 23:12:43 +000024381 if test "$ac_cv_type_unsigned_long_long" = yes; then
24382 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024383$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024384as_fn_error 77 "cannot compute sizeof (unsigned long long)
24385See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024386 else
24387 ac_cv_sizeof_unsigned_long_long=0
24388 fi
24389fi
cristy8b350f62009-11-15 23:12:43 +000024390
cristy3ed852e2009-09-05 21:47:34 +000024391fi
cristy8b350f62009-11-15 23:12:43 +000024392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024393$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
24394
24395
24396
24397cat >>confdefs.h <<_ACEOF
24398#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
24399_ACEOF
24400
24401
24402
cristyfec31822013-05-23 12:32:12 +000024403# Obtain size of off_t and define as SIZEOF_OFF_T
24404# The cast to long int works around a bug in the HP C Compiler
24405# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24406# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24407# This bug is HP SR number 8606223364.
24408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
24409$as_echo_n "checking size of off_t... " >&6; }
24410if ${ac_cv_sizeof_off_t+:} false; then :
24411 $as_echo_n "(cached) " >&6
24412else
24413 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
24414
24415else
24416 if test "$ac_cv_type_off_t" = yes; then
24417 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24418$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24419as_fn_error 77 "cannot compute sizeof (off_t)
24420See \`config.log' for more details" "$LINENO" 5; }
24421 else
24422 ac_cv_sizeof_off_t=0
24423 fi
24424fi
24425
24426fi
24427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
24428$as_echo "$ac_cv_sizeof_off_t" >&6; }
24429
24430
24431
24432cat >>confdefs.h <<_ACEOF
24433#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
24434_ACEOF
24435
24436
24437
24438# Obtain size of size_t and define as SIZEOF_SIZE_T
24439# The cast to long int works around a bug in the HP C Compiler
24440# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24441# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24442# This bug is HP SR number 8606223364.
24443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
24444$as_echo_n "checking size of size_t... " >&6; }
24445if ${ac_cv_sizeof_size_t+:} false; then :
24446 $as_echo_n "(cached) " >&6
24447else
24448 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
24449
24450else
24451 if test "$ac_cv_type_size_t" = yes; then
24452 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24453$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24454as_fn_error 77 "cannot compute sizeof (size_t)
24455See \`config.log' for more details" "$LINENO" 5; }
24456 else
24457 ac_cv_sizeof_size_t=0
24458 fi
24459fi
24460
24461fi
24462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
24463$as_echo "$ac_cv_sizeof_size_t" >&6; }
24464
24465
24466
24467cat >>confdefs.h <<_ACEOF
24468#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
24469_ACEOF
24470
24471
24472
24473# Obtain size of ssize_t and define as SIZEOF_SSIZE_T
24474# The cast to long int works around a bug in the HP C Compiler
24475# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24476# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24477# This bug is HP SR number 8606223364.
24478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
24479$as_echo_n "checking size of ssize_t... " >&6; }
24480if ${ac_cv_sizeof_ssize_t+:} false; then :
24481 $as_echo_n "(cached) " >&6
24482else
24483 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
24484
24485else
24486 if test "$ac_cv_type_ssize_t" = yes; then
24487 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24488$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24489as_fn_error 77 "cannot compute sizeof (ssize_t)
24490See \`config.log' for more details" "$LINENO" 5; }
24491 else
24492 ac_cv_sizeof_ssize_t=0
24493 fi
24494fi
24495
24496fi
24497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
24498$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
24499
24500
24501
24502cat >>confdefs.h <<_ACEOF
24503#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
24504_ACEOF
24505
24506
24507
cristy3ed852e2009-09-05 21:47:34 +000024508# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
24509# The cast to long int works around a bug in the HP C Compiler
24510# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24511# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24512# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000024514$as_echo_n "checking size of unsigned int*... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024515if ${ac_cv_sizeof_unsigned_intp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024516 $as_echo_n "(cached) " >&6
24517else
cristy8b350f62009-11-15 23:12:43 +000024518 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 +000024519
cristy3ed852e2009-09-05 21:47:34 +000024520else
cristy8b350f62009-11-15 23:12:43 +000024521 if test "$ac_cv_type_unsigned_intp" = yes; then
24522 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024523$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024524as_fn_error 77 "cannot compute sizeof (unsigned int*)
24525See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024526 else
24527 ac_cv_sizeof_unsigned_intp=0
24528 fi
24529fi
cristy8b350f62009-11-15 23:12:43 +000024530
cristy3ed852e2009-09-05 21:47:34 +000024531fi
cristy8b350f62009-11-15 23:12:43 +000024532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024533$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
24534
24535
24536
24537cat >>confdefs.h <<_ACEOF
24538#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
24539_ACEOF
24540
24541
24542
24543#
24544# Compute sized types for current CPU and compiler options.
24545#
24546
cristy8b350f62009-11-15 23:12:43 +000024547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024548$as_echo_n "checking for signed 8-bit type... " >&6; }
24549INT8_T='signed char'
cristyad38abe2012-12-23 23:03:21 +000024550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
24551$as_echo "$INT8_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024552
24553
cristy8b350f62009-11-15 23:12:43 +000024554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024555$as_echo_n "checking for unsigned 8-bit type... " >&6; }
24556UINT8_T='unsigned char'
cristyad38abe2012-12-23 23:03:21 +000024557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
24558$as_echo "$UINT8_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024559
24560
cristy8b350f62009-11-15 23:12:43 +000024561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024562$as_echo_n "checking for signed 16-bit type... " >&6; }
24563INT16_T='signed short'
cristyad38abe2012-12-23 23:03:21 +000024564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
24565$as_echo "$INT16_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024566
24567
cristy8b350f62009-11-15 23:12:43 +000024568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024569$as_echo_n "checking for unsigned 16-bit type... " >&6; }
24570UINT16_T='unsigned short'
cristyad38abe2012-12-23 23:03:21 +000024571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
24572$as_echo "$UINT16_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024573
24574
cristy8b350f62009-11-15 23:12:43 +000024575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024576$as_echo_n "checking for signed 32-bit type... " >&6; }
24577INT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024578INT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024579if test $ac_cv_sizeof_signed_int -eq 4; then
24580 INT32_T='signed int'
cristy6d5e20f2011-04-25 13:48:54 +000024581 INT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000024582elif test $ac_cv_sizeof_signed_long -eq 4; then
24583 INT32_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000024584 INT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024585fi
cristyad38abe2012-12-23 23:03:21 +000024586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
24587$as_echo "$INT32_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024588
24589
cristy6d5e20f2011-04-25 13:48:54 +000024590
cristy8b350f62009-11-15 23:12:43 +000024591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024592$as_echo_n "checking for unsigned 32-bit type... " >&6; }
24593UINT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024594UINT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024595if test $ac_cv_sizeof_unsigned_int -eq 4; then
24596 UINT32_T='unsigned int'
cristy6d5e20f2011-04-25 13:48:54 +000024597 UINT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000024598elif test $ac_cv_sizeof_unsigned_long -eq 4; then
24599 UINT32_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000024600 UINT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024601fi
cristyad38abe2012-12-23 23:03:21 +000024602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
24603$as_echo "$UINT32_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024604
24605
cristy6d5e20f2011-04-25 13:48:54 +000024606
cristy8b350f62009-11-15 23:12:43 +000024607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024608$as_echo_n "checking for signed 64-bit type... " >&6; }
24609INT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024610INT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024611if test $ac_cv_sizeof_signed_long -eq 8; then
24612 INT64_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000024613 INT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024614elif test $ac_cv_sizeof_signed_long_long -eq 8; then
24615 INT64_T='signed long long'
cristy6d5e20f2011-04-25 13:48:54 +000024616 INT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000024617fi
cristy3a99dcf2011-12-17 01:29:40 +000024618case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000024619 mingw* )
24620 INT64_F='"I64"'
24621 ;;
24622esac
cristyad38abe2012-12-23 23:03:21 +000024623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
24624$as_echo "$INT64_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024625
24626
cristy6d5e20f2011-04-25 13:48:54 +000024627
cristy8b350f62009-11-15 23:12:43 +000024628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024629$as_echo_n "checking for unsigned 64-bit type... " >&6; }
24630UINT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024631UINT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024632if test $ac_cv_sizeof_unsigned_long -eq 8; then
24633 UINT64_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000024634 UINT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024635elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
24636 UINT64_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000024637 UINT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000024638fi
cristy3a99dcf2011-12-17 01:29:40 +000024639case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000024640 mingw* )
24641 UINT64_F='"I64"'
24642 ;;
24643esac
cristyad38abe2012-12-23 23:03:21 +000024644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
24645$as_echo "$UINT64_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024646
24647
cristy6d5e20f2011-04-25 13:48:54 +000024648
cristy8b350f62009-11-15 23:12:43 +000024649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024650$as_echo_n "checking for unsigned maximum type... " >&6; }
24651UINTMAX_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024652UINTMAX_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024653if test "$UINT64_T" != 'none'; then
24654 UINTMAX_T=$UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +000024655 UINTMAX_F=$UINT64_F
cristy3ed852e2009-09-05 21:47:34 +000024656elif test "$UINT32_T" != 'none'; then
24657 UINTMAX_T=$UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +000024658 UINTMAX_F=$UINT32_F
cristy3ed852e2009-09-05 21:47:34 +000024659fi
cristyad38abe2012-12-23 23:03:21 +000024660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5
24661$as_echo "$UINTMAX_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024662
24663
cristy6d5e20f2011-04-25 13:48:54 +000024664
cristy8b350f62009-11-15 23:12:43 +000024665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024666$as_echo_n "checking for pointer difference type... " >&6; }
24667UINTPTR_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024668UINTPTR_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024669if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
24670 UINTPTR_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000024671 UINTPTR_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024672elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
24673 UINTPTR_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000024674 UINTPTR_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000024675fi
cristyad38abe2012-12-23 23:03:21 +000024676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5
24677$as_echo "$UINTPTR_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024678
24679
cristy6d5e20f2011-04-25 13:48:54 +000024680
cristy8b350f62009-11-15 23:12:43 +000024681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000024682$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024683cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024684/* end confdefs.h. */
24685
24686int
24687main ()
24688{
24689{ const char *func = __func__; return(func != 0 ? 0 : 1); }
24690 ;
24691 return 0;
24692}
24693_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024694if ac_fn_c_try_compile "$LINENO"; then :
cristyad38abe2012-12-23 23:03:21 +000024695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24696$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024697else
cristyad38abe2012-12-23 23:03:21 +000024698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24699$as_echo "no" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000024701$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024703/* end confdefs.h. */
24704
24705int
24706main ()
24707{
24708{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
24709 ;
24710 return 0;
24711}
24712_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024713if ac_fn_c_try_compile "$LINENO"; then :
cristyad38abe2012-12-23 23:03:21 +000024714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24715$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024716
cristy8b350f62009-11-15 23:12:43 +000024717$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024718
24719else
cristyad38abe2012-12-23 23:03:21 +000024720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24721$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024722
cristy8b350f62009-11-15 23:12:43 +000024723$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024724
24725fi
cristy3ed852e2009-09-05 21:47:34 +000024726rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24727fi
cristy3ed852e2009-09-05 21:47:34 +000024728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24729
24730########
24731#
24732# Check for functions
24733#
24734########
cristy8b350f62009-11-15 23:12:43 +000024735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024736$as_echo_n "checking whether closedir returns void... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024737if ${ac_cv_func_closedir_void+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024738 $as_echo_n "(cached) " >&6
24739else
cristy8b350f62009-11-15 23:12:43 +000024740 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024741 ac_cv_func_closedir_void=yes
24742else
cristy8b350f62009-11-15 23:12:43 +000024743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024744/* end confdefs.h. */
24745$ac_includes_default
24746#include <$ac_header_dirent>
24747#ifndef __cplusplus
24748int closedir ();
24749#endif
24750
24751int
24752main ()
24753{
24754return closedir (opendir (".")) != 0;
24755 ;
24756 return 0;
24757}
24758_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024759if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024760 ac_cv_func_closedir_void=no
24761else
cristy8b350f62009-11-15 23:12:43 +000024762 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000024763fi
cristy8b350f62009-11-15 23:12:43 +000024764rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24765 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024766fi
24767
cristy3ed852e2009-09-05 21:47:34 +000024768fi
cristy8b350f62009-11-15 23:12:43 +000024769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024770$as_echo "$ac_cv_func_closedir_void" >&6; }
24771if test $ac_cv_func_closedir_void = yes; then
24772
cristy8b350f62009-11-15 23:12:43 +000024773$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024774
24775fi
24776
cristycd4c5312009-11-22 01:19:08 +000024777
24778
24779
24780 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000024781do :
24782 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000024783ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
24784"
cristy98dddb52010-11-04 00:30:15 +000024785if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024786 cat >>confdefs.h <<_ACEOF
24787#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24788_ACEOF
24789
24790fi
24791
24792done
24793
cristycd4c5312009-11-22 01:19:08 +000024794
24795
24796
24797
24798
24799
24800
cristy3ed852e2009-09-05 21:47:34 +000024801for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000024802do :
24803 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000024804if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024805 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024806#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000024807_ACEOF
24808
24809fi
24810done
24811
cristy8b350f62009-11-15 23:12:43 +000024812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000024813$as_echo_n "checking for working mmap... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024814if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024815 $as_echo_n "(cached) " >&6
24816else
cristy8b350f62009-11-15 23:12:43 +000024817 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024818 ac_cv_func_mmap_fixed_mapped=no
24819else
cristy8b350f62009-11-15 23:12:43 +000024820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024821/* end confdefs.h. */
24822$ac_includes_default
24823/* malloc might have been renamed as rpl_malloc. */
24824#undef malloc
24825
24826/* Thanks to Mike Haertel and Jim Avera for this test.
24827 Here is a matrix of mmap possibilities:
24828 mmap private not fixed
24829 mmap private fixed at somewhere currently unmapped
24830 mmap private fixed at somewhere already mapped
24831 mmap shared not fixed
24832 mmap shared fixed at somewhere currently unmapped
24833 mmap shared fixed at somewhere already mapped
24834 For private mappings, we should verify that changes cannot be read()
24835 back from the file, nor mmap's back from the file at a different
24836 address. (There have been systems where private was not correctly
24837 implemented like the infamous i386 svr4.0, and systems where the
24838 VM page cache was not coherent with the file system buffer cache
24839 like early versions of FreeBSD and possibly contemporary NetBSD.)
24840 For shared mappings, we should conversely verify that changes get
24841 propagated back to all the places they're supposed to be.
24842
24843 Grep wants private fixed already mapped.
24844 The main things grep needs to know about mmap are:
24845 * does it exist and is it safe to write into the mmap'd area
24846 * how to use it (BSD variants) */
24847
24848#include <fcntl.h>
24849#include <sys/mman.h>
24850
24851#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
24852char *malloc ();
24853#endif
24854
24855/* This mess was copied from the GNU getpagesize.h. */
24856#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000024857# ifdef _SC_PAGESIZE
24858# define getpagesize() sysconf(_SC_PAGESIZE)
24859# else /* no _SC_PAGESIZE */
24860# ifdef HAVE_SYS_PARAM_H
24861# include <sys/param.h>
24862# ifdef EXEC_PAGESIZE
24863# define getpagesize() EXEC_PAGESIZE
24864# else /* no EXEC_PAGESIZE */
24865# ifdef NBPG
24866# define getpagesize() NBPG * CLSIZE
24867# ifndef CLSIZE
24868# define CLSIZE 1
24869# endif /* no CLSIZE */
24870# else /* no NBPG */
24871# ifdef NBPC
24872# define getpagesize() NBPC
24873# else /* no NBPC */
24874# ifdef PAGESIZE
24875# define getpagesize() PAGESIZE
24876# endif /* PAGESIZE */
24877# endif /* no NBPC */
24878# endif /* no NBPG */
24879# endif /* no EXEC_PAGESIZE */
24880# else /* no HAVE_SYS_PARAM_H */
24881# define getpagesize() 8192 /* punt totally */
24882# endif /* no HAVE_SYS_PARAM_H */
24883# endif /* no _SC_PAGESIZE */
24884
24885#endif /* no HAVE_GETPAGESIZE */
24886
24887int
24888main ()
24889{
24890 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000024891 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000024892 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000024893 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000024894
24895 pagesize = getpagesize ();
24896
24897 /* First, make a file with some known garbage in it. */
24898 data = (char *) malloc (pagesize);
24899 if (!data)
24900 return 1;
24901 for (i = 0; i < pagesize; ++i)
24902 *(data + i) = rand ();
24903 umask (0);
24904 fd = creat ("conftest.mmap", 0600);
24905 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024906 return 2;
cristy3ed852e2009-09-05 21:47:34 +000024907 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024908 return 3;
cristy3ed852e2009-09-05 21:47:34 +000024909 close (fd);
24910
cristycd4c5312009-11-22 01:19:08 +000024911 /* Next, check that the tail of a page is zero-filled. File must have
24912 non-zero length, otherwise we risk SIGBUS for entire page. */
24913 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
24914 if (fd2 < 0)
24915 return 4;
cristyc54f5d42009-11-27 21:36:31 +000024916 cdata2 = "";
24917 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000024918 return 5;
cristyc54f5d42009-11-27 21:36:31 +000024919 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000024920 if (data2 == MAP_FAILED)
24921 return 6;
24922 for (i = 0; i < pagesize; ++i)
24923 if (*(data2 + i))
24924 return 7;
24925 close (fd2);
24926 if (munmap (data2, pagesize))
24927 return 8;
24928
cristy3ed852e2009-09-05 21:47:34 +000024929 /* Next, try to mmap the file at a fixed address which already has
24930 something else allocated at it. If we can, also make sure that
24931 we see the same garbage. */
24932 fd = open ("conftest.mmap", O_RDWR);
24933 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024934 return 9;
cristy3ed852e2009-09-05 21:47:34 +000024935 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
24936 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000024937 return 10;
cristy3ed852e2009-09-05 21:47:34 +000024938 for (i = 0; i < pagesize; ++i)
24939 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000024940 return 11;
cristy3ed852e2009-09-05 21:47:34 +000024941
24942 /* Finally, make sure that changes to the mapped area do not
24943 percolate back to the file as seen by read(). (This is a bug on
24944 some variants of i386 svr4.0.) */
24945 for (i = 0; i < pagesize; ++i)
24946 *(data2 + i) = *(data2 + i) + 1;
24947 data3 = (char *) malloc (pagesize);
24948 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000024949 return 12;
cristy3ed852e2009-09-05 21:47:34 +000024950 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024951 return 13;
cristy3ed852e2009-09-05 21:47:34 +000024952 for (i = 0; i < pagesize; ++i)
24953 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000024954 return 14;
cristy3ed852e2009-09-05 21:47:34 +000024955 close (fd);
24956 return 0;
24957}
24958_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024959if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024960 ac_cv_func_mmap_fixed_mapped=yes
24961else
cristy8b350f62009-11-15 23:12:43 +000024962 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000024963fi
cristy8b350f62009-11-15 23:12:43 +000024964rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24965 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024966fi
24967
cristy3ed852e2009-09-05 21:47:34 +000024968fi
cristy8b350f62009-11-15 23:12:43 +000024969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000024970$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
24971if test $ac_cv_func_mmap_fixed_mapped = yes; then
24972
cristy8b350f62009-11-15 23:12:43 +000024973$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024974
24975fi
cristycd4c5312009-11-22 01:19:08 +000024976rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000024977
cristy3ed852e2009-09-05 21:47:34 +000024978for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000024979do :
24980 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000024981if test "x$ac_cv_header_vfork_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024982 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024983#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000024984_ACEOF
24985
24986fi
24987
24988done
24989
cristy3ed852e2009-09-05 21:47:34 +000024990for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000024991do :
24992 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24993ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000024994if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024995 cat >>confdefs.h <<_ACEOF
24996#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24997_ACEOF
24998
24999fi
25000done
25001
25002if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000025003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000025004$as_echo_n "checking for working fork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025005if ${ac_cv_func_fork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025006 $as_echo_n "(cached) " >&6
25007else
cristy8b350f62009-11-15 23:12:43 +000025008 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025009 ac_cv_func_fork_works=cross
25010else
cristy8b350f62009-11-15 23:12:43 +000025011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025012/* end confdefs.h. */
25013$ac_includes_default
25014int
25015main ()
25016{
25017
25018 /* By Ruediger Kuhlmann. */
25019 return fork () < 0;
25020
25021 ;
25022 return 0;
25023}
25024_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025025if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025026 ac_cv_func_fork_works=yes
25027else
cristy8b350f62009-11-15 23:12:43 +000025028 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000025029fi
cristy8b350f62009-11-15 23:12:43 +000025030rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25031 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025032fi
25033
cristy3ed852e2009-09-05 21:47:34 +000025034fi
cristy8b350f62009-11-15 23:12:43 +000025035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000025036$as_echo "$ac_cv_func_fork_works" >&6; }
25037
25038else
25039 ac_cv_func_fork_works=$ac_cv_func_fork
25040fi
25041if test "x$ac_cv_func_fork_works" = xcross; then
25042 case $host in
25043 *-*-amigaos* | *-*-msdosdjgpp*)
25044 # Override, as these systems have only a dummy fork() stub
25045 ac_cv_func_fork_works=no
25046 ;;
25047 *)
25048 ac_cv_func_fork_works=yes
25049 ;;
25050 esac
cristy8b350f62009-11-15 23:12:43 +000025051 { $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 +000025052$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
25053fi
25054ac_cv_func_vfork_works=$ac_cv_func_vfork
25055if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000025056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000025057$as_echo_n "checking for working vfork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025058if ${ac_cv_func_vfork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025059 $as_echo_n "(cached) " >&6
25060else
cristy8b350f62009-11-15 23:12:43 +000025061 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025062 ac_cv_func_vfork_works=cross
25063else
cristy8b350f62009-11-15 23:12:43 +000025064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025065/* end confdefs.h. */
25066/* Thanks to Paul Eggert for this test. */
25067$ac_includes_default
25068#include <sys/wait.h>
25069#ifdef HAVE_VFORK_H
25070# include <vfork.h>
25071#endif
25072/* On some sparc systems, changes by the child to local and incoming
25073 argument registers are propagated back to the parent. The compiler
25074 is told about this with #include <vfork.h>, but some compilers
25075 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
25076 static variable whose address is put into a register that is
25077 clobbered by the vfork. */
25078static void
25079#ifdef __cplusplus
25080sparc_address_test (int arg)
25081# else
25082sparc_address_test (arg) int arg;
25083#endif
25084{
25085 static pid_t child;
25086 if (!child) {
25087 child = vfork ();
25088 if (child < 0) {
25089 perror ("vfork");
25090 _exit(2);
25091 }
25092 if (!child) {
25093 arg = getpid();
25094 write(-1, "", 0);
25095 _exit (arg);
25096 }
25097 }
25098}
25099
25100int
25101main ()
25102{
25103 pid_t parent = getpid ();
25104 pid_t child;
25105
25106 sparc_address_test (0);
25107
25108 child = vfork ();
25109
25110 if (child == 0) {
25111 /* Here is another test for sparc vfork register problems. This
25112 test uses lots of local variables, at least as many local
25113 variables as main has allocated so far including compiler
25114 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
25115 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
25116 reuse the register of parent for one of the local variables,
25117 since it will think that parent can't possibly be used any more
25118 in this routine. Assigning to the local variable will thus
25119 munge parent in the parent process. */
25120 pid_t
25121 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
25122 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
25123 /* Convince the compiler that p..p7 are live; otherwise, it might
25124 use the same hardware register for all 8 local variables. */
25125 if (p != p1 || p != p2 || p != p3 || p != p4
25126 || p != p5 || p != p6 || p != p7)
25127 _exit(1);
25128
25129 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
25130 from child file descriptors. If the child closes a descriptor
25131 before it execs or exits, this munges the parent's descriptor
25132 as well. Test for this by closing stdout in the child. */
25133 _exit(close(fileno(stdout)) != 0);
25134 } else {
25135 int status;
25136 struct stat st;
25137
25138 while (wait(&status) != child)
25139 ;
25140 return (
25141 /* Was there some problem with vforking? */
25142 child < 0
25143
25144 /* Did the child fail? (This shouldn't happen.) */
25145 || status
25146
25147 /* Did the vfork/compiler bug occur? */
25148 || parent != getpid()
25149
25150 /* Did the file descriptor bug occur? */
25151 || fstat(fileno(stdout), &st) != 0
25152 );
25153 }
25154}
25155_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025156if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025157 ac_cv_func_vfork_works=yes
25158else
cristy8b350f62009-11-15 23:12:43 +000025159 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000025160fi
cristy8b350f62009-11-15 23:12:43 +000025161rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25162 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025163fi
25164
cristy3ed852e2009-09-05 21:47:34 +000025165fi
cristy8b350f62009-11-15 23:12:43 +000025166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000025167$as_echo "$ac_cv_func_vfork_works" >&6; }
25168
25169fi;
25170if test "x$ac_cv_func_fork_works" = xcross; then
25171 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000025172 { $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 +000025173$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
25174fi
25175
25176if test "x$ac_cv_func_vfork_works" = xyes; then
25177
cristy8b350f62009-11-15 23:12:43 +000025178$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025179
25180else
25181
cristy8b350f62009-11-15 23:12:43 +000025182$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025183
25184fi
25185if test "x$ac_cv_func_fork_works" = xyes; then
25186
cristy8b350f62009-11-15 23:12:43 +000025187$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025188
25189fi
25190
cristy8b350f62009-11-15 23:12:43 +000025191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025192$as_echo_n "checking for working memcmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025193if ${ac_cv_func_memcmp_working+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025194 $as_echo_n "(cached) " >&6
25195else
cristy8b350f62009-11-15 23:12:43 +000025196 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025197 ac_cv_func_memcmp_working=no
25198else
cristy8b350f62009-11-15 23:12:43 +000025199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025200/* end confdefs.h. */
25201$ac_includes_default
25202int
25203main ()
25204{
25205
25206 /* Some versions of memcmp are not 8-bit clean. */
25207 char c0 = '\100', c1 = '\200', c2 = '\201';
25208 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
25209 return 1;
25210
25211 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
25212 or more and with at least one buffer not starting on a 4-byte boundary.
25213 William Lewis provided this test program. */
25214 {
25215 char foo[21];
25216 char bar[21];
25217 int i;
25218 for (i = 0; i < 4; i++)
25219 {
25220 char *a = foo + i;
25221 char *b = bar + i;
25222 strcpy (a, "--------01111111");
25223 strcpy (b, "--------10000000");
25224 if (memcmp (a, b, 16) >= 0)
25225 return 1;
25226 }
25227 return 0;
25228 }
25229
25230 ;
25231 return 0;
25232}
25233_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025234if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025235 ac_cv_func_memcmp_working=yes
25236else
cristy8b350f62009-11-15 23:12:43 +000025237 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000025238fi
cristy8b350f62009-11-15 23:12:43 +000025239rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25240 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025241fi
25242
cristy3ed852e2009-09-05 21:47:34 +000025243fi
cristy8b350f62009-11-15 23:12:43 +000025244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000025245$as_echo "$ac_cv_func_memcmp_working" >&6; }
25246test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
25247 *" memcmp.$ac_objext "* ) ;;
25248 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
25249 ;;
25250esac
25251
25252
cristy3ed852e2009-09-05 21:47:34 +000025253for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000025254do :
25255 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25256ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000025257if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000025258 cat >>confdefs.h <<_ACEOF
25259#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25260_ACEOF
25261
25262fi
25263
25264done
25265
cristy8b350f62009-11-15 23:12:43 +000025266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000025267$as_echo_n "checking types of arguments for select... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025268if ${ac_cv_func_select_args+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025269 $as_echo_n "(cached) " >&6
25270else
25271 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
25272 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
25273 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000025274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025275/* end confdefs.h. */
25276$ac_includes_default
25277#ifdef HAVE_SYS_SELECT_H
25278# include <sys/select.h>
25279#endif
25280#ifdef HAVE_SYS_SOCKET_H
25281# include <sys/socket.h>
25282#endif
25283
25284int
25285main ()
25286{
25287extern int select ($ac_arg1,
25288 $ac_arg234, $ac_arg234, $ac_arg234,
25289 $ac_arg5);
25290 ;
25291 return 0;
25292}
25293_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025294if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025295 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000025296fi
cristy3ed852e2009-09-05 21:47:34 +000025297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25298 done
25299 done
25300done
25301# Provide a safe default value.
cristyda16f162011-02-19 23:52:17 +000025302: "${ac_cv_func_select_args=int,int *,struct timeval *}"
cristy3ed852e2009-09-05 21:47:34 +000025303
25304fi
cristy8b350f62009-11-15 23:12:43 +000025305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000025306$as_echo "$ac_cv_func_select_args" >&6; }
25307ac_save_IFS=$IFS; IFS=','
25308set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
25309IFS=$ac_save_IFS
25310shift
25311
25312cat >>confdefs.h <<_ACEOF
25313#define SELECT_TYPE_ARG1 $1
25314_ACEOF
25315
25316
25317cat >>confdefs.h <<_ACEOF
25318#define SELECT_TYPE_ARG234 ($2)
25319_ACEOF
25320
25321
25322cat >>confdefs.h <<_ACEOF
25323#define SELECT_TYPE_ARG5 ($3)
25324_ACEOF
25325
25326rm -f conftest*
25327
cristyda16f162011-02-19 23:52:17 +000025328if ${ac_cv_func_setvbuf_reversed+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025329 $as_echo_n "(cached) " >&6
25330else
25331 ac_cv_func_setvbuf_reversed=no
25332fi
25333
25334
cristy8b350f62009-11-15 23:12:43 +000025335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000025336$as_echo_n "checking return type of signal handlers... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025337if ${ac_cv_type_signal+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025338 $as_echo_n "(cached) " >&6
25339else
cristy8b350f62009-11-15 23:12:43 +000025340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025341/* end confdefs.h. */
25342#include <sys/types.h>
25343#include <signal.h>
25344
25345int
25346main ()
25347{
25348return *(signal (0, 0)) (0) == 1;
25349 ;
25350 return 0;
25351}
25352_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025353if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025354 ac_cv_type_signal=int
25355else
cristy8b350f62009-11-15 23:12:43 +000025356 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000025357fi
cristy3ed852e2009-09-05 21:47:34 +000025358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25359fi
cristy8b350f62009-11-15 23:12:43 +000025360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000025361$as_echo "$ac_cv_type_signal" >&6; }
25362
25363cat >>confdefs.h <<_ACEOF
25364#define RETSIGTYPE $ac_cv_type_signal
25365_ACEOF
25366
25367
cristy8b350f62009-11-15 23:12:43 +000025368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000025369$as_echo_n "checking for working strtod... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025370if ${ac_cv_func_strtod+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025371 $as_echo_n "(cached) " >&6
25372else
cristy8b350f62009-11-15 23:12:43 +000025373 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025374 ac_cv_func_strtod=no
25375else
cristy8b350f62009-11-15 23:12:43 +000025376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025377/* end confdefs.h. */
25378
25379$ac_includes_default
25380#ifndef strtod
25381double strtod ();
25382#endif
25383int
25384main()
25385{
25386 {
25387 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
25388 char *string = " +69";
25389 char *term;
25390 double value;
25391 value = strtod (string, &term);
25392 if (value != 69 || term != (string + 4))
25393 return 1;
25394 }
25395
25396 {
25397 /* Under Solaris 2.4, strtod returns the wrong value for the
25398 terminating character under some conditions. */
25399 char *string = "NaN";
25400 char *term;
25401 strtod (string, &term);
25402 if (term != string && *(term - 1) == 0)
25403 return 1;
25404 }
25405 return 0;
25406}
25407
25408_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025409if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025410 ac_cv_func_strtod=yes
25411else
cristy8b350f62009-11-15 23:12:43 +000025412 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000025413fi
cristy8b350f62009-11-15 23:12:43 +000025414rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25415 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025416fi
25417
cristy3ed852e2009-09-05 21:47:34 +000025418fi
cristy8b350f62009-11-15 23:12:43 +000025419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000025420$as_echo "$ac_cv_func_strtod" >&6; }
25421if test $ac_cv_func_strtod = no; then
25422 case " $LIBOBJS " in
25423 *" strtod.$ac_objext "* ) ;;
25424 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
25425 ;;
25426esac
25427
cristy8b350f62009-11-15 23:12:43 +000025428ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
cristyda16f162011-02-19 23:52:17 +000025429if test "x$ac_cv_func_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025430
cristy3ed852e2009-09-05 21:47:34 +000025431fi
25432
cristy3ed852e2009-09-05 21:47:34 +000025433if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000025434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000025435$as_echo_n "checking for pow in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025436if ${ac_cv_lib_m_pow+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025437 $as_echo_n "(cached) " >&6
25438else
25439 ac_check_lib_save_LIBS=$LIBS
25440LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025441cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025442/* end confdefs.h. */
25443
25444/* Override any GCC internal prototype to avoid an error.
25445 Use char because int might match the return type of a GCC
25446 builtin and then its argument prototype would still apply. */
25447#ifdef __cplusplus
25448extern "C"
25449#endif
25450char pow ();
25451int
25452main ()
25453{
25454return pow ();
25455 ;
25456 return 0;
25457}
25458_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025459if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025460 ac_cv_lib_m_pow=yes
25461else
cristy8b350f62009-11-15 23:12:43 +000025462 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000025463fi
cristy8b350f62009-11-15 23:12:43 +000025464rm -f core conftest.err conftest.$ac_objext \
25465 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025466LIBS=$ac_check_lib_save_LIBS
25467fi
cristy8b350f62009-11-15 23:12:43 +000025468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000025469$as_echo "$ac_cv_lib_m_pow" >&6; }
cristyda16f162011-02-19 23:52:17 +000025470if test "x$ac_cv_lib_m_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025471 POW_LIB=-lm
25472else
cristy8b350f62009-11-15 23:12:43 +000025473 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000025474$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
25475fi
25476
25477fi
25478
25479fi
25480
cristy7d4a1d62011-10-13 15:54:12 +000025481ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
25482if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
25483 ac_have_decl=1
25484else
25485 ac_have_decl=0
25486fi
25487
25488cat >>confdefs.h <<_ACEOF
25489#define HAVE_DECL_STRERROR_R $ac_have_decl
25490_ACEOF
25491
25492for ac_func in strerror_r
25493do :
25494 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
25495if test "x$ac_cv_func_strerror_r" = xyes; then :
25496 cat >>confdefs.h <<_ACEOF
25497#define HAVE_STRERROR_R 1
25498_ACEOF
25499
25500fi
25501done
25502
25503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
25504$as_echo_n "checking whether strerror_r returns char *... " >&6; }
25505if ${ac_cv_func_strerror_r_char_p+:} false; then :
25506 $as_echo_n "(cached) " >&6
25507else
25508
25509 ac_cv_func_strerror_r_char_p=no
25510 if test $ac_cv_have_decl_strerror_r = yes; then
25511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25512/* end confdefs.h. */
25513$ac_includes_default
25514int
25515main ()
25516{
25517
25518 char buf[100];
25519 char x = *strerror_r (0, buf, sizeof buf);
25520 char *p = strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000025521 return !p || x;
cristy7d4a1d62011-10-13 15:54:12 +000025522
25523 ;
25524 return 0;
25525}
25526_ACEOF
25527if ac_fn_c_try_compile "$LINENO"; then :
25528 ac_cv_func_strerror_r_char_p=yes
25529fi
25530rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25531 else
25532 # strerror_r is not declared. Choose between
25533 # systems that have relatively inaccessible declarations for the
25534 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
25535 # former has a strerror_r that returns char*, while the latter
25536 # has a strerror_r that returns `int'.
25537 # This test should segfault on the DEC system.
25538 if test "$cross_compiling" = yes; then :
25539 :
25540else
25541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25542/* end confdefs.h. */
25543$ac_includes_default
25544 extern char *strerror_r ();
25545int
25546main ()
25547{
25548char buf[100];
25549 char x = *strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000025550 return ! isalpha (x);
cristy7d4a1d62011-10-13 15:54:12 +000025551 ;
25552 return 0;
25553}
25554_ACEOF
25555if ac_fn_c_try_run "$LINENO"; then :
25556 ac_cv_func_strerror_r_char_p=yes
25557fi
25558rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25559 conftest.$ac_objext conftest.beam conftest.$ac_ext
25560fi
25561
25562 fi
25563
25564fi
25565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
25566$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
25567if test $ac_cv_func_strerror_r_char_p = yes; then
25568
25569$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
25570
25571fi
25572
cristy3ed852e2009-09-05 21:47:34 +000025573for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000025574do :
25575 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
cristyda16f162011-02-19 23:52:17 +000025576if test "x$ac_cv_func_vprintf" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025577 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025578#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000025579_ACEOF
25580
cristy8b350f62009-11-15 23:12:43 +000025581ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
cristyda16f162011-02-19 23:52:17 +000025582if test "x$ac_cv_func__doprnt" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025583
cristy8b350f62009-11-15 23:12:43 +000025584$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025585
25586fi
25587
25588fi
25589done
25590
25591
25592
cristy161b9262010-03-20 19:34:32 +000025593#
25594# Find math library
25595#
25596MATH_LIBS=''
25597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
25598$as_echo_n "checking for sqrt in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025599if ${ac_cv_lib_m_sqrt+:} false; then :
cristy161b9262010-03-20 19:34:32 +000025600 $as_echo_n "(cached) " >&6
25601else
25602 ac_check_lib_save_LIBS=$LIBS
25603LIBS="-lm $LIBS"
25604cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25605/* end confdefs.h. */
25606
25607/* Override any GCC internal prototype to avoid an error.
25608 Use char because int might match the return type of a GCC
25609 builtin and then its argument prototype would still apply. */
25610#ifdef __cplusplus
25611extern "C"
25612#endif
25613char sqrt ();
25614int
25615main ()
25616{
25617return sqrt ();
25618 ;
25619 return 0;
25620}
25621_ACEOF
25622if ac_fn_c_try_link "$LINENO"; then :
25623 ac_cv_lib_m_sqrt=yes
25624else
25625 ac_cv_lib_m_sqrt=no
25626fi
25627rm -f core conftest.err conftest.$ac_objext \
25628 conftest$ac_exeext conftest.$ac_ext
25629LIBS=$ac_check_lib_save_LIBS
25630fi
25631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
25632$as_echo "$ac_cv_lib_m_sqrt" >&6; }
cristyda16f162011-02-19 23:52:17 +000025633if test "x$ac_cv_lib_m_sqrt" = xyes; then :
cristy161b9262010-03-20 19:34:32 +000025634 MATH_LIBS="-lm"
25635fi
25636
25637LIBS="$MATH_LIBS $LIBS"
25638
25639
cristy85572162013-01-04 19:19:32 +000025640#
25641# Find socket library
25642#
cristy8a5d7f42013-01-06 15:24:33 +000025643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
25644$as_echo_n "checking for library containing gethostbyname... " >&6; }
25645if ${ac_cv_search_gethostbyname+:} false; then :
25646 $as_echo_n "(cached) " >&6
25647else
25648 ac_func_search_save_LIBS=$LIBS
25649cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25650/* end confdefs.h. */
25651
25652/* Override any GCC internal prototype to avoid an error.
25653 Use char because int might match the return type of a GCC
25654 builtin and then its argument prototype would still apply. */
25655#ifdef __cplusplus
25656extern "C"
25657#endif
25658char gethostbyname ();
25659int
25660main ()
25661{
25662return gethostbyname ();
25663 ;
25664 return 0;
25665}
25666_ACEOF
25667for ac_lib in '' resolv nsl; do
25668 if test -z "$ac_lib"; then
25669 ac_res="none required"
25670 else
25671 ac_res=-l$ac_lib
25672 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25673 fi
25674 if ac_fn_c_try_link "$LINENO"; then :
25675 ac_cv_search_gethostbyname=$ac_res
25676fi
25677rm -f core conftest.err conftest.$ac_objext \
25678 conftest$ac_exeext
25679 if ${ac_cv_search_gethostbyname+:} false; then :
25680 break
25681fi
25682done
25683if ${ac_cv_search_gethostbyname+:} false; then :
25684
25685else
25686 ac_cv_search_gethostbyname=no
25687fi
25688rm conftest.$ac_ext
25689LIBS=$ac_func_search_save_LIBS
25690fi
25691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
25692$as_echo "$ac_cv_search_gethostbyname" >&6; }
25693ac_res=$ac_cv_search_gethostbyname
25694if test "$ac_res" != no; then :
25695 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25696
25697fi
25698
cristy85572162013-01-04 19:19:32 +000025699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
25700$as_echo_n "checking for library containing socket... " >&6; }
25701if ${ac_cv_search_socket+:} false; then :
25702 $as_echo_n "(cached) " >&6
25703else
25704 ac_func_search_save_LIBS=$LIBS
25705cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25706/* end confdefs.h. */
25707
25708/* Override any GCC internal prototype to avoid an error.
25709 Use char because int might match the return type of a GCC
25710 builtin and then its argument prototype would still apply. */
25711#ifdef __cplusplus
25712extern "C"
25713#endif
25714char socket ();
25715int
25716main ()
25717{
25718return socket ();
25719 ;
25720 return 0;
25721}
25722_ACEOF
25723for ac_lib in '' socket; do
25724 if test -z "$ac_lib"; then
25725 ac_res="none required"
25726 else
25727 ac_res=-l$ac_lib
25728 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25729 fi
25730 if ac_fn_c_try_link "$LINENO"; then :
25731 ac_cv_search_socket=$ac_res
25732fi
25733rm -f core conftest.err conftest.$ac_objext \
25734 conftest$ac_exeext
25735 if ${ac_cv_search_socket+:} false; then :
25736 break
25737fi
25738done
25739if ${ac_cv_search_socket+:} false; then :
25740
25741else
25742 ac_cv_search_socket=no
25743fi
25744rm conftest.$ac_ext
25745LIBS=$ac_func_search_save_LIBS
25746fi
25747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
25748$as_echo "$ac_cv_search_socket" >&6; }
25749ac_res=$ac_cv_search_socket
25750if test "$ac_res" != no; then :
25751 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25752
cristy85572162013-01-04 19:19:32 +000025753
cristy8a5d7f42013-01-06 15:24:33 +000025754$as_echo "#define HAVE_SOCKET 1" >>confdefs.h
cristy85572162013-01-04 19:19:32 +000025755
cristy03f187e2013-01-24 00:22:19 +000025756 MAGICK_FEATURES="DPC $MAGICK_FEATURES"
cristy85572162013-01-04 19:19:32 +000025757
25758fi
25759
25760
cristya29f2b82015-05-30 14:10:30 +000025761for 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 +000025762do :
25763 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25764ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025765if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000025766 cat >>confdefs.h <<_ACEOF
25767#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25768_ACEOF
25769
25770fi
25771done
25772
25773
cristye43a45e2009-09-28 14:49:00 +000025774#
25775# Check for clock_gettime().
25776#
cristy8b350f62009-11-15 23:12:43 +000025777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000025778$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025779if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000025780 $as_echo_n "(cached) " >&6
25781else
25782 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000025783cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000025784/* end confdefs.h. */
25785
25786/* Override any GCC internal prototype to avoid an error.
25787 Use char because int might match the return type of a GCC
25788 builtin and then its argument prototype would still apply. */
25789#ifdef __cplusplus
25790extern "C"
25791#endif
25792char clock_gettime ();
25793int
25794main ()
25795{
25796return clock_gettime ();
25797 ;
25798 return 0;
25799}
25800_ACEOF
25801for ac_lib in '' rt; do
25802 if test -z "$ac_lib"; then
25803 ac_res="none required"
25804 else
25805 ac_res=-l$ac_lib
25806 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25807 fi
cristy8b350f62009-11-15 23:12:43 +000025808 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025809 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000025810fi
cristy8b350f62009-11-15 23:12:43 +000025811rm -f core conftest.err conftest.$ac_objext \
25812 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000025813 if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000025814 break
25815fi
25816done
cristyda16f162011-02-19 23:52:17 +000025817if ${ac_cv_search_clock_gettime+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000025818
cristye43a45e2009-09-28 14:49:00 +000025819else
25820 ac_cv_search_clock_gettime=no
25821fi
25822rm conftest.$ac_ext
25823LIBS=$ac_func_search_save_LIBS
25824fi
cristy8b350f62009-11-15 23:12:43 +000025825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000025826$as_echo "$ac_cv_search_clock_gettime" >&6; }
25827ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000025828if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000025829 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25830
25831
cristy8b350f62009-11-15 23:12:43 +000025832$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025833
cristy8b350f62009-11-15 23:12:43 +000025834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000025835$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000025837/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000025838
25839 #include <time.h>
cristye43a45e2009-09-28 14:49:00 +000025840int
25841main ()
25842{
25843clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000025844 ;
25845 return 0;
25846}
25847_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025848if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025849
cristyad38abe2012-12-23 23:03:21 +000025850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25851$as_echo "yes" >&6; }
cristye43a45e2009-09-28 14:49:00 +000025852
cristy8b350f62009-11-15 23:12:43 +000025853$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025854
25855
25856else
cristyad38abe2012-12-23 23:03:21 +000025857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25858$as_echo "no" >&6; }
cristye43a45e2009-09-28 14:49:00 +000025859
25860fi
cristye43a45e2009-09-28 14:49:00 +000025861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25862
25863else
25864
cristy8b350f62009-11-15 23:12:43 +000025865 for ac_func in gettimeofday ftime
25866do :
25867 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25868ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025869if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristye43a45e2009-09-28 14:49:00 +000025870 cat >>confdefs.h <<_ACEOF
25871#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25872_ACEOF
25873 break
25874fi
25875done
25876
25877
25878
25879fi
25880
25881
cristy3ed852e2009-09-05 21:47:34 +000025882########
25883#
25884# Check for function prototypes
25885#
25886########
25887
cristy8b350f62009-11-15 23:12:43 +000025888ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000025889#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025890"
cristyda16f162011-02-19 23:52:17 +000025891if test "x$ac_cv_have_decl_pread" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025892 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025893else
cristy8b350f62009-11-15 23:12:43 +000025894 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025895fi
25896
cristy3ed852e2009-09-05 21:47:34 +000025897cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025898#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025899_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025900ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000025901#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025902"
cristyda16f162011-02-19 23:52:17 +000025903if test "x$ac_cv_have_decl_pwrite" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025904 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025905else
cristy8b350f62009-11-15 23:12:43 +000025906 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025907fi
25908
cristy3ed852e2009-09-05 21:47:34 +000025909cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025910#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025911_ACEOF
25912
25913
cristy8b350f62009-11-15 23:12:43 +000025914ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000025915#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000025916"
cristyda16f162011-02-19 23:52:17 +000025917if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025918 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025919else
cristy8b350f62009-11-15 23:12:43 +000025920 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025921fi
25922
cristy3ed852e2009-09-05 21:47:34 +000025923cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025924#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025925_ACEOF
25926
25927
cristy8b350f62009-11-15 23:12:43 +000025928ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000025929#include <stdio.h>
25930#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000025931"
cristyda16f162011-02-19 23:52:17 +000025932if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025933 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025934else
cristy8b350f62009-11-15 23:12:43 +000025935 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025936fi
25937
cristy3ed852e2009-09-05 21:47:34 +000025938cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025939#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025940_ACEOF
25941
25942
cristy3ed852e2009-09-05 21:47:34 +000025943########
25944#
25945# C++ Support Tests (For Magick++)
25946#
25947########
25948have_magick_plus_plus='no'
25949if test "$with_magick_plus_plus" = 'yes'; then
25950 OLIBS="$LIBS"
25951 LIBS=''
25952 ac_ext=cpp
25953ac_cpp='$CXXCPP $CPPFLAGS'
25954ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25955ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25956ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25957
25958
25959 # Full set of headers used...
25960 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
25961 # functional iomanip iosfwd iostream iterator list string strstream utility
25962 ac_ext=cpp
25963ac_cpp='$CXXCPP $CPPFLAGS'
25964ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25965ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25966ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25967
25968 ac_ext=cpp
25969ac_cpp='$CXXCPP $CPPFLAGS'
25970ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25971ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25972ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25973if test -z "$CXX"; then
25974 if test -n "$CCC"; then
25975 CXX=$CCC
25976 else
25977 if test -n "$ac_tool_prefix"; then
25978 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25979 do
25980 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
25981set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025983$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025984if ${ac_cv_prog_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025985 $as_echo_n "(cached) " >&6
25986else
25987 if test -n "$CXX"; then
25988 ac_cv_prog_CXX="$CXX" # Let the user override the test.
25989else
25990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25991for as_dir in $PATH
25992do
25993 IFS=$as_save_IFS
25994 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025995 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000025996 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000025997 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025999 break 2
26000 fi
26001done
cristy8b350f62009-11-15 23:12:43 +000026002 done
cristy3ed852e2009-09-05 21:47:34 +000026003IFS=$as_save_IFS
26004
26005fi
26006fi
26007CXX=$ac_cv_prog_CXX
26008if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000026009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000026010$as_echo "$CXX" >&6; }
26011else
cristy8b350f62009-11-15 23:12:43 +000026012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026013$as_echo "no" >&6; }
26014fi
26015
26016
26017 test -n "$CXX" && break
26018 done
26019fi
26020if test -z "$CXX"; then
26021 ac_ct_CXX=$CXX
26022 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
26023do
26024 # Extract the first word of "$ac_prog", so it can be a program name with args.
26025set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000026026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000026027$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026028if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026029 $as_echo_n "(cached) " >&6
26030else
26031 if test -n "$ac_ct_CXX"; then
26032 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
26033else
26034as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26035for as_dir in $PATH
26036do
26037 IFS=$as_save_IFS
26038 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000026039 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000026040 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000026041 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000026042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000026043 break 2
26044 fi
26045done
cristy8b350f62009-11-15 23:12:43 +000026046 done
cristy3ed852e2009-09-05 21:47:34 +000026047IFS=$as_save_IFS
26048
26049fi
26050fi
26051ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
26052if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000026053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000026054$as_echo "$ac_ct_CXX" >&6; }
26055else
cristy8b350f62009-11-15 23:12:43 +000026056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026057$as_echo "no" >&6; }
26058fi
26059
26060
26061 test -n "$ac_ct_CXX" && break
26062done
26063
26064 if test "x$ac_ct_CXX" = x; then
26065 CXX="g++"
26066 else
26067 case $cross_compiling:$ac_tool_warned in
26068yes:)
cristy8b350f62009-11-15 23:12:43 +000026069{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000026070$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26071ac_tool_warned=yes ;;
26072esac
26073 CXX=$ac_ct_CXX
26074 fi
26075fi
26076
26077 fi
26078fi
26079# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000026080$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000026081set X $ac_compile
26082ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000026083for ac_option in --version -v -V -qversion; do
26084 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000026085case "(($ac_try" in
26086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26087 *) ac_try_echo=$ac_try;;
26088esac
cristy8b350f62009-11-15 23:12:43 +000026089eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
26090$as_echo "$ac_try_echo"; } >&5
26091 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000026092 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026093 if test -s conftest.err; then
26094 sed '10a\
26095... rest of stderr output deleted ...
26096 10q' conftest.err >conftest.er1
26097 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000026098 fi
cristycd4c5312009-11-22 01:19:08 +000026099 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000026100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26101 test $ac_status = 0; }
26102done
cristy3ed852e2009-09-05 21:47:34 +000026103
cristy8b350f62009-11-15 23:12:43 +000026104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000026105$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026106if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026107 $as_echo_n "(cached) " >&6
26108else
cristy8b350f62009-11-15 23:12:43 +000026109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026110/* end confdefs.h. */
26111
26112int
26113main ()
26114{
26115#ifndef __GNUC__
26116 choke me
26117#endif
26118
26119 ;
26120 return 0;
26121}
26122_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026123if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026124 ac_compiler_gnu=yes
26125else
cristy8b350f62009-11-15 23:12:43 +000026126 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000026127fi
cristy3ed852e2009-09-05 21:47:34 +000026128rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26129ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
26130
26131fi
cristy8b350f62009-11-15 23:12:43 +000026132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000026133$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
26134if test $ac_compiler_gnu = yes; then
26135 GXX=yes
26136else
26137 GXX=
26138fi
26139ac_test_CXXFLAGS=${CXXFLAGS+set}
26140ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000026141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000026142$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026143if ${ac_cv_prog_cxx_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026144 $as_echo_n "(cached) " >&6
26145else
26146 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
26147 ac_cxx_werror_flag=yes
26148 ac_cv_prog_cxx_g=no
26149 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000026150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026151/* end confdefs.h. */
26152
26153int
26154main ()
26155{
26156
26157 ;
26158 return 0;
26159}
26160_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026161if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026162 ac_cv_prog_cxx_g=yes
26163else
cristy8b350f62009-11-15 23:12:43 +000026164 CXXFLAGS=""
26165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026166/* end confdefs.h. */
26167
26168int
26169main ()
26170{
26171
26172 ;
26173 return 0;
26174}
26175_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026176if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026177
cristy8b350f62009-11-15 23:12:43 +000026178else
26179 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000026180 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000026181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026182/* end confdefs.h. */
26183
26184int
26185main ()
26186{
26187
26188 ;
26189 return 0;
26190}
26191_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026192if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026193 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000026194fi
cristy3ed852e2009-09-05 21:47:34 +000026195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26196fi
cristy3ed852e2009-09-05 21:47:34 +000026197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26198fi
cristy3ed852e2009-09-05 21:47:34 +000026199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26200 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
26201fi
cristy8b350f62009-11-15 23:12:43 +000026202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000026203$as_echo "$ac_cv_prog_cxx_g" >&6; }
26204if test "$ac_test_CXXFLAGS" = set; then
26205 CXXFLAGS=$ac_save_CXXFLAGS
26206elif test $ac_cv_prog_cxx_g = yes; then
26207 if test "$GXX" = yes; then
26208 CXXFLAGS="-g -O2"
26209 else
26210 CXXFLAGS="-g"
26211 fi
26212else
26213 if test "$GXX" = yes; then
26214 CXXFLAGS="-O2"
26215 else
26216 CXXFLAGS=
26217 fi
26218fi
26219ac_ext=cpp
26220ac_cpp='$CXXCPP $CPPFLAGS'
26221ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26222ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26223ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26224
cristy73bd4a52010-10-05 11:24:23 +000026225depcc="$CXX" am_compiler_list=
26226
26227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
26228$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026229if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026230 $as_echo_n "(cached) " >&6
26231else
26232 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
26233 # We make a subdir and do the tests there. Otherwise we can end up
26234 # making bogus files that we don't know about and never remove. For
26235 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +000026236 # making a dummy file named 'D' -- because '-MD' means "put the output
26237 # in D".
cristy7247bba2012-02-05 16:37:27 +000026238 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +000026239 mkdir conftest.dir
26240 # Copy depcomp to subdir because otherwise we won't find it if we're
26241 # using a relative directory.
26242 cp "$am_depcomp" conftest.dir
26243 cd conftest.dir
26244 # We will build objects and dependencies in a subdirectory because
26245 # it helps to detect inapplicable dependency modes. For instance
26246 # both Tru64's cc and ICC support -MD to output dependencies as a
26247 # side effect of compilation, but ICC will put the dependencies in
26248 # the current directory while Tru64 will put them in the object
26249 # directory.
26250 mkdir sub
26251
26252 am_cv_CXX_dependencies_compiler_type=none
26253 if test "$am_compiler_list" = ""; then
26254 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
26255 fi
26256 am__universal=false
26257 case " $depcc " in #(
26258 *\ -arch\ *\ -arch\ *) am__universal=true ;;
26259 esac
26260
26261 for depmode in $am_compiler_list; do
26262 # Setup a source with many dependencies, because some compilers
26263 # like to wrap large dependency lists on column 80 (with \), and
26264 # we should not choose a depcomp mode which is confused by this.
26265 #
26266 # We need to recreate these files for each test, as the compiler may
26267 # overwrite some of them when testing with obscure command lines.
26268 # This happens at least with the AIX C compiler.
26269 : > sub/conftest.c
26270 for i in 1 2 3 4 5 6; do
26271 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +000026272 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
26273 # Solaris 10 /bin/sh.
26274 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +000026275 done
26276 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
26277
cristyc0890a62012-07-19 00:18:20 +000026278 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +000026279 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +000026280 # handle '-M -o', and we need to detect this. Also, some Intel
26281 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +000026282 am__obj=sub/conftest.${OBJEXT-o}
26283 am__minus_obj="-o $am__obj"
26284 case $depmode in
26285 gcc)
26286 # This depmode causes a compiler race in universal mode.
26287 test "$am__universal" = false || continue
26288 ;;
26289 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +000026290 # After this tag, mechanisms are not by side-effect, so they'll
26291 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +000026292 if test "x$enable_dependency_tracking" = xyes; then
26293 continue
26294 else
26295 break
26296 fi
26297 ;;
cristy7247bba2012-02-05 16:37:27 +000026298 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +000026299 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +000026300 # not run yet. These depmodes are late enough in the game, and
26301 # so weak that their functioning should not be impacted.
26302 am__obj=conftest.${OBJEXT-o}
26303 am__minus_obj=
26304 ;;
26305 none) break ;;
26306 esac
26307 if depmode=$depmode \
26308 source=sub/conftest.c object=$am__obj \
26309 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
26310 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
26311 >/dev/null 2>conftest.err &&
26312 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
26313 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
26314 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
26315 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
26316 # icc doesn't choke on unknown options, it will just issue warnings
26317 # or remarks (even with -Werror). So we grep stderr for any message
26318 # that says an option was ignored or not supported.
26319 # When given -MP, icc 7.0 and 7.1 complain thusly:
26320 # icc: Command line warning: ignoring option '-M'; no argument required
26321 # The diagnosis changed in icc 8.0:
26322 # icc: Command line remark: option '-MP' not supported
26323 if (grep 'ignoring option' conftest.err ||
26324 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
26325 am_cv_CXX_dependencies_compiler_type=$depmode
26326 break
26327 fi
26328 fi
26329 done
26330
26331 cd ..
26332 rm -rf conftest.dir
26333else
26334 am_cv_CXX_dependencies_compiler_type=none
26335fi
26336
26337fi
26338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
26339$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
26340CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
26341
26342 if
26343 test "x$enable_dependency_tracking" != xno \
26344 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
26345 am__fastdepCXX_TRUE=
26346 am__fastdepCXX_FALSE='#'
26347else
26348 am__fastdepCXX_TRUE='#'
26349 am__fastdepCXX_FALSE=
26350fi
26351
26352
cristy146497a2015-05-17 22:46:16 +000026353 { $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 +000026354$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026355if ${ax_cv_cxx_bool+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026356 $as_echo_n "(cached) " >&6
26357else
cristy146497a2015-05-17 22:46:16 +000026358 ac_ext=cpp
cristy73bd4a52010-10-05 11:24:23 +000026359ac_cpp='$CXXCPP $CPPFLAGS'
26360ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26361ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26362ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26363
cristy146497a2015-05-17 22:46:16 +000026364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000026365/* end confdefs.h. */
cristy146497a2015-05-17 22:46:16 +000026366 int f(int x){return 1;}
26367 int f(char x){return 1;}
26368 int f(bool x){return 1;}
cristy73bd4a52010-10-05 11:24:23 +000026369int
26370main ()
26371{
26372bool b = true; return f(b);
26373 ;
26374 return 0;
26375}
26376_ACEOF
26377if ac_fn_cxx_try_compile "$LINENO"; then :
26378 ax_cv_cxx_bool=yes
26379else
26380 ax_cv_cxx_bool=no
26381fi
26382rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy146497a2015-05-17 22:46:16 +000026383 ac_ext=cpp
cristy73bd4a52010-10-05 11:24:23 +000026384ac_cpp='$CXXCPP $CPPFLAGS'
26385ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26386ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26387ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26388
26389
26390fi
26391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
26392$as_echo "$ax_cv_cxx_bool" >&6; }
cristy146497a2015-05-17 22:46:16 +000026393 if test "X$ax_cv_cxx_bool" = Xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000026394
26395$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
26396
26397fi
26398
26399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
26400$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026401if ${ax_cv_cxx_namespaces+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026402 $as_echo_n "(cached) " >&6
26403else
cristy17491be2014-06-24 01:10:53 +000026404 ac_ext=cpp
cristy73bd4a52010-10-05 11:24:23 +000026405ac_cpp='$CXXCPP $CPPFLAGS'
26406ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26407ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26408ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26409
26410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26411/* end confdefs.h. */
26412namespace Outer { namespace Inner { int i = 0; }}
cristy17491be2014-06-24 01:10:53 +000026413 using namespace Outer::Inner; int foo(void) { return i;}
cristy73bd4a52010-10-05 11:24:23 +000026414_ACEOF
26415if ac_fn_cxx_try_compile "$LINENO"; then :
26416 ax_cv_cxx_namespaces=yes
26417else
26418 ax_cv_cxx_namespaces=no
26419fi
26420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26421 ac_ext=cpp
26422ac_cpp='$CXXCPP $CPPFLAGS'
26423ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26424ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26425ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26426
26427
26428fi
26429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
26430$as_echo "$ax_cv_cxx_namespaces" >&6; }
26431if test "$ax_cv_cxx_namespaces" = yes; then
26432
26433$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
26434
26435fi
26436
26437
26438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
26439$as_echo_n "checking if g++ supports namespace std... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026440if ${ax_cv_cxx_have_std_namespace+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026441 $as_echo_n "(cached) " >&6
26442else
26443
26444 ac_ext=cpp
26445ac_cpp='$CXXCPP $CPPFLAGS'
26446ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26447ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26448ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26449
26450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26451/* end confdefs.h. */
26452#include <iostream>
26453 std::istream& is = std::cin;
26454int
26455main ()
26456{
26457
26458 ;
26459 return 0;
26460}
26461_ACEOF
26462if ac_fn_cxx_try_compile "$LINENO"; then :
26463 ax_cv_cxx_have_std_namespace=yes
26464else
26465 ax_cv_cxx_have_std_namespace=no
26466fi
26467rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26468 ac_ext=cpp
26469ac_cpp='$CXXCPP $CPPFLAGS'
26470ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26471ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26472ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26473
26474
26475fi
26476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
26477$as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
26478 if test "$ax_cv_cxx_have_std_namespace" = yes; then
26479
26480$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
26481
26482 fi
26483
26484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
26485$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026486if ${ac_cv_cxx_have_std_libs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026487 $as_echo_n "(cached) " >&6
26488else
26489
26490
26491 ac_ext=cpp
26492ac_cpp='$CXXCPP $CPPFLAGS'
26493ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26494ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26495ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26496
26497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26498/* end confdefs.h. */
26499#include <iostream>
26500#include <map>
26501#include <iomanip>
26502#include <cmath>
26503#ifdef HAVE_NAMESPACES
26504using namespace std;
26505#endif
26506int
26507main ()
26508{
26509return 0;
26510 ;
26511 return 0;
26512}
26513_ACEOF
26514if ac_fn_cxx_try_compile "$LINENO"; then :
26515 ac_cv_cxx_have_std_libs=yes
26516else
26517 ac_cv_cxx_have_std_libs=no
26518fi
26519rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26520 ac_ext=cpp
26521ac_cpp='$CXXCPP $CPPFLAGS'
26522ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26523ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26524ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26525
26526
26527fi
26528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
26529$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
26530if test "$ac_cv_cxx_have_std_libs" = yes; then
26531
26532$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
26533
26534fi
26535
cristy3ed852e2009-09-05 21:47:34 +000026536
26537 OPENMP_CXXFLAGS=
26538 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000026539if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026540 enableval=$enable_openmp;
26541fi
26542
26543 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000026544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
26545$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026546if ${ac_cv_prog_cxx_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026547 $as_echo_n "(cached) " >&6
26548else
cristy8b350f62009-11-15 23:12:43 +000026549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26550/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000026551
26552#ifndef _OPENMP
26553 choke me
26554#endif
26555#include <omp.h>
26556int main () { return omp_get_num_threads (); }
26557
26558_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026559if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026560 ac_cv_prog_cxx_openmp='none needed'
26561else
cristy8b350f62009-11-15 23:12:43 +000026562 ac_cv_prog_cxx_openmp='unsupported'
cristy14fefe52012-05-21 00:59:18 +000026563 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
26564 -Popenmp --openmp; do
cristy3ed852e2009-09-05 21:47:34 +000026565 ac_save_CXXFLAGS=$CXXFLAGS
26566 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000026567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26568/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000026569
26570#ifndef _OPENMP
26571 choke me
26572#endif
26573#include <omp.h>
26574int main () { return omp_get_num_threads (); }
26575
26576_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026577if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026578 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000026579fi
cristy8b350f62009-11-15 23:12:43 +000026580rm -f core conftest.err conftest.$ac_objext \
26581 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026582 CXXFLAGS=$ac_save_CXXFLAGS
26583 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
26584 break
26585 fi
26586 done
26587fi
cristy8b350f62009-11-15 23:12:43 +000026588rm -f core conftest.err conftest.$ac_objext \
26589 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026590fi
cristy8b350f62009-11-15 23:12:43 +000026591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026592$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
26593 case $ac_cv_prog_cxx_openmp in #(
26594 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000026595 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000026596 *)
cristy8b350f62009-11-15 23:12:43 +000026597 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000026598 esac
26599 fi
26600
26601
26602 ac_ext=c
26603ac_cpp='$CPP $CPPFLAGS'
26604ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26605ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26606ac_compiler_gnu=$ac_cv_c_compiler_gnu
26607
26608
cristy8b350f62009-11-15 23:12:43 +000026609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000026610$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
26611 if \
cristy964cb7f2010-04-25 23:18:00 +000026612 test $ax_cv_cxx_bool = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000026613 test $ax_cv_cxx_namespaces = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000026614 test $ac_cv_cxx_have_std_libs = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000026615 test $ax_cv_cxx_have_std_namespace = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000026616 have_magick_plus_plus='yes'
26617 else
26618 have_magick_plus_plus='no (failed tests)'
26619 fi
cristyad38abe2012-12-23 23:03:21 +000026620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
26621$as_echo "$have_magick_plus_plus" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026622 LIBS="$OLIBS"
26623fi
cristy73bd4a52010-10-05 11:24:23 +000026624 if test "$have_magick_plus_plus" = 'yes'; then
26625 WITH_MAGICK_PLUS_PLUS_TRUE=
26626 WITH_MAGICK_PLUS_PLUS_FALSE='#'
26627else
26628 WITH_MAGICK_PLUS_PLUS_TRUE='#'
26629 WITH_MAGICK_PLUS_PLUS_FALSE=
26630fi
26631
cristy3ed852e2009-09-05 21:47:34 +000026632
26633# Only check for delegate libraries in subdirectories if requested.
26634if test "$enable_delegate_build" != 'no'; then
26635 # Check for delegate sub-directories and add -I & -L options as required.
26636 # This presumes that delegates are installed as detailed in the ImageMagick
26637 # README. If delegates are installed in a standard location where the
26638 # compiler will automatically find them then these options should not be
26639 # required.
26640
26641 #
26642 # Most delegates have includes in the same directory as the library, but not all...
26643 #
26644 # Includes
cristy834307f2015-01-25 00:43:41 +000026645 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 +000026646 if test -d "$builddir/$dir"; then
26647 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
26648 else
26649 if test -d "$srcdirfull/$dir"; then
26650 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
26651 fi
26652 fi
26653 done
26654
26655 # Libraries
cristy834307f2015-01-25 00:43:41 +000026656 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 +000026657 if test -d "$builddir/$dir/.libs"; then
26658 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
26659 else
26660 if test -d "$srcdirfull/$dir/.libs"; then
26661 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
26662 fi
26663 fi
26664 if test -d "$builddir/$dir"; then
26665 LDFLAGS="$LDFLAGS -L$builddir/$dir"
26666 else
26667 if test -d "$srcdirfull/$dir"; then
26668 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
26669 fi
26670 fi
26671 done
26672fi
26673
26674# Assume that delegate headers reside under same directory as ImageMagick
26675# installation prefix.
cristybdabdd62013-03-04 17:43:36 +000026676MAGICK_CPPFLAGS="-I$INCLUDE_DIR/${PACKAGE_NAME}-$MAGICK_MAJOR_VERSION $MAGICK_CPPFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000026677
26678#
26679# Find the X11 RGB database
26680#
cristy8b350f62009-11-15 23:12:43 +000026681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000026682$as_echo_n "checking for X11 configure files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026683if ${im_cv_x_configure+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026684 $as_echo_n "(cached) " >&6
26685else
26686 # Look for the header file in a standard set of common directories.
26687# Check X11 before X11Rn because it is often a symlink to the current release.
26688 for ac_dir in \
26689 /lib/usr/lib/X11 \
26690 /usr/X11/lib \
26691 /usr/X11R4/lib \
26692 /usr/X11R5/lib \
26693 /usr/X11R6/lib \
26694 /usr/X11R7/lib \
26695 /usr/X386/lib \
26696 /usr/XFree86/lib/X11 \
26697 /usr/athena/lib \
26698 /usr/lib \
26699 /usr/lib/X11 \
26700 /usr/lib/X11R4 \
26701 /usr/lib/X11R5 \
26702 /usr/lib/X11R6 \
26703 /usr/lib/X11R7 \
26704 /usr/local/X11/lib \
26705 /usr/local/X11R4/lib \
26706 /usr/local/X11R5/lib \
26707 /usr/local/X11R6/lib \
26708 /usr/local/lib \
26709 /usr/local/lib/X11 \
26710 /usr/local/lib/X11R4 \
26711 /usr/local/lib/X11R5 \
26712 /usr/local/lib/X11R6 \
26713 /usr/local/lib/X11R7 \
26714 /usr/local/x11r5/lib \
26715 /usr/lpp/Xamples/lib \
26716 /usr/openwin/lib \
26717 /usr/openwin/share/lib \
26718 /usr/unsupported/lib \
26719 /usr/x386/lib \
26720 ; do
26721 if test -f "$ac_dir/X11/rgb.txt"; then
26722 im_cv_x_configure="$ac_dir/X11/"
26723 break
26724 elif test -f "$ac_dir/rgb.txt"; then
26725 im_cv_x_configure="$ac_dir/"
26726 break
26727 fi
26728
26729 done
26730fi
cristy8b350f62009-11-15 23:12:43 +000026731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000026732$as_echo "$im_cv_x_configure" >&6; }
26733X11_CONFIGURE_PATH="$im_cv_x_configure"
26734case "${build_os}" in
26735 mingw* )
26736 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
26737 ;;
26738esac
26739
26740cat >>confdefs.h <<_ACEOF
26741#define X11_CONFIGURE_PATH "$X11ConfigurePath"
26742_ACEOF
26743
26744
26745#
26746# Find OpenMP library
26747#
26748GOMP_LIBS=''
26749if test "$enable_openmp" != 'no'; then
26750 if test "${GCC}" = "yes"; then
cristy18307f12011-12-30 01:20:16 +000026751 # Open64 (passes for GCC but uses different OpenMP implementation)
26752 if test "x$GOMP_LIBS" = x ; then
26753 if $CC --version 2>&1 | grep Open64 > /dev/null ; then
26754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for omp_get_num_procs in -lopenmp" >&5
26755$as_echo_n "checking for omp_get_num_procs in -lopenmp... " >&6; }
26756if ${ac_cv_lib_openmp_omp_get_num_procs+:} false; then :
26757 $as_echo_n "(cached) " >&6
26758else
26759 ac_check_lib_save_LIBS=$LIBS
26760LIBS="-lopenmp $LIBS"
26761cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26762/* end confdefs.h. */
26763
26764/* Override any GCC internal prototype to avoid an error.
26765 Use char because int might match the return type of a GCC
26766 builtin and then its argument prototype would still apply. */
26767#ifdef __cplusplus
26768extern "C"
26769#endif
26770char omp_get_num_procs ();
26771int
26772main ()
26773{
26774return omp_get_num_procs ();
26775 ;
26776 return 0;
26777}
26778_ACEOF
26779if ac_fn_c_try_link "$LINENO"; then :
26780 ac_cv_lib_openmp_omp_get_num_procs=yes
26781else
26782 ac_cv_lib_openmp_omp_get_num_procs=no
26783fi
26784rm -f core conftest.err conftest.$ac_objext \
26785 conftest$ac_exeext conftest.$ac_ext
26786LIBS=$ac_check_lib_save_LIBS
26787fi
26788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_openmp_omp_get_num_procs" >&5
26789$as_echo "$ac_cv_lib_openmp_omp_get_num_procs" >&6; }
26790if test "x$ac_cv_lib_openmp_omp_get_num_procs" = xyes; then :
26791 GOMP_LIBS="-lopenmp"
26792fi
26793
26794 fi
26795 fi
26796 # GCC
26797 if test "x$GOMP_LIBS" = x ; then
26798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026799$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026800if ${ac_cv_lib_gomp_GOMP_parallel_start+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026801 $as_echo_n "(cached) " >&6
26802else
26803 ac_check_lib_save_LIBS=$LIBS
26804LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026805cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026806/* end confdefs.h. */
26807
26808/* Override any GCC internal prototype to avoid an error.
26809 Use char because int might match the return type of a GCC
26810 builtin and then its argument prototype would still apply. */
26811#ifdef __cplusplus
26812extern "C"
26813#endif
26814char GOMP_parallel_start ();
26815int
26816main ()
26817{
26818return GOMP_parallel_start ();
26819 ;
26820 return 0;
26821}
26822_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026823if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026824 ac_cv_lib_gomp_GOMP_parallel_start=yes
26825else
cristy8b350f62009-11-15 23:12:43 +000026826 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000026827fi
cristy8b350f62009-11-15 23:12:43 +000026828rm -f core conftest.err conftest.$ac_objext \
26829 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026830LIBS=$ac_check_lib_save_LIBS
26831fi
cristy8b350f62009-11-15 23:12:43 +000026832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000026833$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristyda16f162011-02-19 23:52:17 +000026834if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026835 GOMP_LIBS="-lgomp"
26836fi
cristy18307f12011-12-30 01:20:16 +000026837
26838 fi
cristy3ed852e2009-09-05 21:47:34 +000026839 else
cristy18307f12011-12-30 01:20:16 +000026840 # Sun CC
26841 if test "x$GOMP_LIBS" = x ; then
26842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000026843$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026844if ${ac_cv_lib_mtsk_sunw_mp_register_warn+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026845 $as_echo_n "(cached) " >&6
26846else
26847 ac_check_lib_save_LIBS=$LIBS
26848LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026849cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026850/* end confdefs.h. */
26851
26852/* Override any GCC internal prototype to avoid an error.
26853 Use char because int might match the return type of a GCC
26854 builtin and then its argument prototype would still apply. */
26855#ifdef __cplusplus
26856extern "C"
26857#endif
26858char sunw_mp_register_warn ();
26859int
26860main ()
26861{
26862return sunw_mp_register_warn ();
26863 ;
26864 return 0;
26865}
26866_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026867if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026868 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
26869else
cristy8b350f62009-11-15 23:12:43 +000026870 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000026871fi
cristy8b350f62009-11-15 23:12:43 +000026872rm -f core conftest.err conftest.$ac_objext \
26873 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026874LIBS=$ac_check_lib_save_LIBS
26875fi
cristy8b350f62009-11-15 23:12:43 +000026876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000026877$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristyda16f162011-02-19 23:52:17 +000026878if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026879 GOMP_LIBS="-lmtsk"
26880fi
cristy18307f12011-12-30 01:20:16 +000026881
26882 fi
26883 # AIX xlc
26884 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000026885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026886$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026887if ${ac_cv_lib_xlsmp__xlsmpFlush+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026888 $as_echo_n "(cached) " >&6
26889else
26890 ac_check_lib_save_LIBS=$LIBS
26891LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026892cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026893/* end confdefs.h. */
26894
26895/* Override any GCC internal prototype to avoid an error.
26896 Use char because int might match the return type of a GCC
26897 builtin and then its argument prototype would still apply. */
26898#ifdef __cplusplus
26899extern "C"
26900#endif
26901char _xlsmpFlush ();
26902int
26903main ()
26904{
26905return _xlsmpFlush ();
26906 ;
26907 return 0;
26908}
26909_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026910if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026911 ac_cv_lib_xlsmp__xlsmpFlush=yes
26912else
cristy8b350f62009-11-15 23:12:43 +000026913 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000026914fi
cristy8b350f62009-11-15 23:12:43 +000026915rm -f core conftest.err conftest.$ac_objext \
26916 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026917LIBS=$ac_check_lib_save_LIBS
26918fi
cristy8b350f62009-11-15 23:12:43 +000026919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000026920$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristyda16f162011-02-19 23:52:17 +000026921if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026922 GOMP_LIBS="-lxlsmp"
26923fi
cristy18307f12011-12-30 01:20:16 +000026924
26925 fi
26926 # SGI IRIX 6.5 MIPSpro C/C++
26927 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000026928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026929$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026930if ${ac_cv_lib_mp_mp_destroy+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026931 $as_echo_n "(cached) " >&6
26932else
26933 ac_check_lib_save_LIBS=$LIBS
26934LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026935cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026936/* end confdefs.h. */
26937
26938/* Override any GCC internal prototype to avoid an error.
26939 Use char because int might match the return type of a GCC
26940 builtin and then its argument prototype would still apply. */
26941#ifdef __cplusplus
26942extern "C"
26943#endif
26944char mp_destroy ();
26945int
26946main ()
26947{
26948return mp_destroy ();
26949 ;
26950 return 0;
26951}
26952_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026953if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026954 ac_cv_lib_mp_mp_destroy=yes
26955else
cristy8b350f62009-11-15 23:12:43 +000026956 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000026957fi
cristy8b350f62009-11-15 23:12:43 +000026958rm -f core conftest.err conftest.$ac_objext \
26959 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026960LIBS=$ac_check_lib_save_LIBS
26961fi
cristy8b350f62009-11-15 23:12:43 +000026962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000026963$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristyda16f162011-02-19 23:52:17 +000026964if test "x$ac_cv_lib_mp_mp_destroy" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026965 GOMP_LIBS="-lmp"
26966fi
cristy18307f12011-12-30 01:20:16 +000026967
26968 fi
cristy3ed852e2009-09-05 21:47:34 +000026969 fi
26970 LIBS="$GOMP_LIBS $LIBS"
26971fi
26972
26973
cristy12ac8192014-11-04 13:59:13 +000026974#
cristy3b0097d2014-11-04 15:34:47 +000026975# Check for jemalloc.
cristy12ac8192014-11-04 13:59:13 +000026976#
cristy3b0097d2014-11-04 15:34:47 +000026977have_jemalloc='no'
26978JEMALLOC_LIBS=''
26979if test "$with_jemalloc" != 'no'; then
26980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JEMALLOC support " >&5
26981$as_echo_n "checking for JEMALLOC support ... " >&6; }
26982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26983$as_echo "" >&6; }
26984 failed=0
26985 passed=0
26986 ac_fn_c_check_header_mongrel "$LINENO" "jemalloc/jemalloc.h" "ac_cv_header_jemalloc_jemalloc_h" "$ac_includes_default"
26987if test "x$ac_cv_header_jemalloc_jemalloc_h" = xyes; then :
cristy22007ae2014-11-04 15:59:22 +000026988 passed=`expr $passed + 1`
26989else
26990 failed=`expr $failed + 1`
cristy12ac8192014-11-04 13:59:13 +000026991fi
26992
26993
cristy3b0097d2014-11-04 15:34:47 +000026994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc_stats_print in -ljemalloc" >&5
26995$as_echo_n "checking for malloc_stats_print in -ljemalloc... " >&6; }
26996if ${ac_cv_lib_jemalloc_malloc_stats_print+:} false; then :
cristy12ac8192014-11-04 13:59:13 +000026997 $as_echo_n "(cached) " >&6
26998else
26999 ac_check_lib_save_LIBS=$LIBS
27000LIBS="-ljemalloc $LIBS"
27001cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27002/* end confdefs.h. */
27003
27004/* Override any GCC internal prototype to avoid an error.
27005 Use char because int might match the return type of a GCC
27006 builtin and then its argument prototype would still apply. */
27007#ifdef __cplusplus
27008extern "C"
27009#endif
cristy3b0097d2014-11-04 15:34:47 +000027010char malloc_stats_print ();
cristy12ac8192014-11-04 13:59:13 +000027011int
27012main ()
27013{
cristy3b0097d2014-11-04 15:34:47 +000027014return malloc_stats_print ();
cristy12ac8192014-11-04 13:59:13 +000027015 ;
27016 return 0;
27017}
27018_ACEOF
27019if ac_fn_c_try_link "$LINENO"; then :
cristy3b0097d2014-11-04 15:34:47 +000027020 ac_cv_lib_jemalloc_malloc_stats_print=yes
cristy12ac8192014-11-04 13:59:13 +000027021else
cristy3b0097d2014-11-04 15:34:47 +000027022 ac_cv_lib_jemalloc_malloc_stats_print=no
cristy12ac8192014-11-04 13:59:13 +000027023fi
27024rm -f core conftest.err conftest.$ac_objext \
27025 conftest$ac_exeext conftest.$ac_ext
27026LIBS=$ac_check_lib_save_LIBS
27027fi
cristy3b0097d2014-11-04 15:34:47 +000027028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jemalloc_malloc_stats_print" >&5
27029$as_echo "$ac_cv_lib_jemalloc_malloc_stats_print" >&6; }
27030if test "x$ac_cv_lib_jemalloc_malloc_stats_print" = xyes; then :
cristy22007ae2014-11-04 15:59:22 +000027031 passed=`expr $passed + 1`
27032else
27033 failed=`expr $failed + 1`
cristy12ac8192014-11-04 13:59:13 +000027034fi
27035
cristy3b0097d2014-11-04 15:34:47 +000027036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if jemalloc memory allocation library is complete" >&5
27037$as_echo_n "checking if jemalloc memory allocation library is complete... " >&6; }
27038 if test $passed -gt 0; then
27039 if test $failed -gt 0; then
27040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27041$as_echo "no -- some components failed test" >&6; }
27042 have_jemalloc='no (failed tests)'
27043 else
27044 JEMALLOC_LIBS='-ljemalloc'
27045 LIBS="$JEMALLOC_LIBS $LIBS"
cristy12ac8192014-11-04 13:59:13 +000027046
cristy3b0097d2014-11-04 15:34:47 +000027047$as_echo "#define HasJEMALLOC 1" >>confdefs.h
cristy12ac8192014-11-04 13:59:13 +000027048
cristy3b0097d2014-11-04 15:34:47 +000027049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27050$as_echo "yes" >&6; }
27051 have_jemalloc='yes'
27052 fi
cristy12ac8192014-11-04 13:59:13 +000027053 else
cristy3b0097d2014-11-04 15:34:47 +000027054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27055$as_echo "no" >&6; }
cristy12ac8192014-11-04 13:59:13 +000027056 fi
27057fi
cristy3b0097d2014-11-04 15:34:47 +000027058 if test "$have_jemalloc" = 'yes'; then
27059 HasJEMALLOC_TRUE=
27060 HasJEMALLOC_FALSE='#'
27061else
27062 HasJEMALLOC_TRUE='#'
27063 HasJEMALLOC_FALSE=
cristy12ac8192014-11-04 13:59:13 +000027064fi
27065
cristy3b0097d2014-11-04 15:34:47 +000027066
27067
cristy3ed852e2009-09-05 21:47:34 +000027068#
27069# Check for umem.
27070#
27071have_umem='no'
27072UMEM_LIBS=''
27073if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000027075$as_echo_n "checking for UMEM support ... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000027076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27077$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027078 failed=0
27079 passed=0
cristy8b350f62009-11-15 23:12:43 +000027080 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027081if test "x$ac_cv_header_umem_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027082 passed=`expr $passed + 1`
27083else
27084 failed=`expr $failed + 1`
27085fi
27086
27087
cristy8b350f62009-11-15 23:12:43 +000027088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000027089$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027090if ${ac_cv_lib_umem_umem_alloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027091 $as_echo_n "(cached) " >&6
27092else
27093 ac_check_lib_save_LIBS=$LIBS
27094LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027095cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027096/* end confdefs.h. */
27097
27098/* Override any GCC internal prototype to avoid an error.
27099 Use char because int might match the return type of a GCC
27100 builtin and then its argument prototype would still apply. */
27101#ifdef __cplusplus
27102extern "C"
27103#endif
27104char umem_alloc ();
27105int
27106main ()
27107{
27108return umem_alloc ();
27109 ;
27110 return 0;
27111}
27112_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027113if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027114 ac_cv_lib_umem_umem_alloc=yes
27115else
cristy8b350f62009-11-15 23:12:43 +000027116 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000027117fi
cristy8b350f62009-11-15 23:12:43 +000027118rm -f core conftest.err conftest.$ac_objext \
27119 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027120LIBS=$ac_check_lib_save_LIBS
27121fi
cristy8b350f62009-11-15 23:12:43 +000027122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027123$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000027124if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027125 passed=`expr $passed + 1`
27126else
27127 failed=`expr $failed + 1`
27128fi
27129
cristy8b350f62009-11-15 23:12:43 +000027130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000027131$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027132if ${ac_cv_lib_umem_umem_free+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027133 $as_echo_n "(cached) " >&6
27134else
27135 ac_check_lib_save_LIBS=$LIBS
27136LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027137cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027138/* end confdefs.h. */
27139
27140/* Override any GCC internal prototype to avoid an error.
27141 Use char because int might match the return type of a GCC
27142 builtin and then its argument prototype would still apply. */
27143#ifdef __cplusplus
27144extern "C"
27145#endif
27146char umem_free ();
27147int
27148main ()
27149{
27150return umem_free ();
27151 ;
27152 return 0;
27153}
27154_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027155if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027156 ac_cv_lib_umem_umem_free=yes
27157else
cristy8b350f62009-11-15 23:12:43 +000027158 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000027159fi
cristy8b350f62009-11-15 23:12:43 +000027160rm -f core conftest.err conftest.$ac_objext \
27161 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027162LIBS=$ac_check_lib_save_LIBS
27163fi
cristy8b350f62009-11-15 23:12:43 +000027164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000027165$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristyda16f162011-02-19 23:52:17 +000027166if test "x$ac_cv_lib_umem_umem_free" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027167 passed=`expr $passed + 1`
27168else
27169 failed=`expr $failed + 1`
27170fi
27171
cristy8b350f62009-11-15 23:12:43 +000027172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027173$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
27174 if test $passed -gt 0; then
27175 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000027176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27177$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027178 have_umem='no (failed tests)'
27179 else
27180 UMEM_LIBS='-lumem'
27181 LIBS="$UMEM_LIBS $LIBS"
27182
cristy8b350f62009-11-15 23:12:43 +000027183$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027184
cristyad38abe2012-12-23 23:03:21 +000027185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27186$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027187 have_umem='yes'
27188 fi
27189 else
cristyad38abe2012-12-23 23:03:21 +000027190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27191$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027192 fi
27193fi
cristy73bd4a52010-10-05 11:24:23 +000027194 if test "$have_umem" = 'yes'; then
27195 HasUMEM_TRUE=
27196 HasUMEM_FALSE='#'
27197else
27198 HasUMEM_TRUE='#'
27199 HasUMEM_FALSE=
27200fi
27201
cristy3ed852e2009-09-05 21:47:34 +000027202
27203
27204#
27205# Add support for ccmalloc memory debugging library if requested
27206#
27207have_ccmalloc='no'
27208CCMALLOC_LIBS=''
27209if test "$enable_ccmalloc" = 'yes'; then
27210 # Extract the first word of "ccmalloc", so it can be a program name with args.
27211set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000027212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000027213$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027214if ${ac_cv_path_CCMALLOCDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027215 $as_echo_n "(cached) " >&6
27216else
27217 case $CCMALLOCDelegate in
27218 [\\/]* | ?:[\\/]*)
27219 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
27220 ;;
27221 *)
27222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27223for as_dir in $PATH
27224do
27225 IFS=$as_save_IFS
27226 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000027227 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000027228 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000027229 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000027230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027231 break 2
27232 fi
27233done
cristy8b350f62009-11-15 23:12:43 +000027234 done
cristy3ed852e2009-09-05 21:47:34 +000027235IFS=$as_save_IFS
27236
27237 ;;
27238esac
27239fi
27240CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
27241if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000027242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000027243$as_echo "$CCMALLOCDelegate" >&6; }
27244else
cristy8b350f62009-11-15 23:12:43 +000027245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027246$as_echo "no" >&6; }
27247fi
27248
27249
27250 if test -n "$CCMALLOCDelegate"; then
27251 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
27252 OLIBS="$LIBS"
27253 # Assume that gcc is used with ccmalloc.
27254 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000027255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027256$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027257if ${ac_cv_lib_ccmalloc_ccmalloc_malloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027258 $as_echo_n "(cached) " >&6
27259else
27260 ac_check_lib_save_LIBS=$LIBS
27261LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027262cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027263/* end confdefs.h. */
27264
27265/* Override any GCC internal prototype to avoid an error.
27266 Use char because int might match the return type of a GCC
27267 builtin and then its argument prototype would still apply. */
27268#ifdef __cplusplus
27269extern "C"
27270#endif
27271char ccmalloc_malloc ();
27272int
27273main ()
27274{
27275return ccmalloc_malloc ();
27276 ;
27277 return 0;
27278}
27279_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027280if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027281 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
27282else
cristy8b350f62009-11-15 23:12:43 +000027283 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000027284fi
cristy8b350f62009-11-15 23:12:43 +000027285rm -f core conftest.err conftest.$ac_objext \
27286 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027287LIBS=$ac_check_lib_save_LIBS
27288fi
cristy8b350f62009-11-15 23:12:43 +000027289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027290$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000027291if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027292 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
27293fi
27294
27295 if test -n "$CCMALLOC_LIBS"; then
27296 LIBS="$OLIBS"
27297 LIBS="$LIBS $CCMALLOC_LIBS"
27298 have_ccmalloc='yes'
27299 else
27300 LIBS="$OLIBS"
27301 fi
27302 fi
27303fi
27304
27305#
cristy944e51f2013-04-16 18:45:02 +000027306# Add support for 'huge pages' if requested
27307#
27308if test "x$enable_hugepages" != "xno"; then :
27309
27310
27311$as_echo "#define HAVE_HUGEPAGES 1" >>confdefs.h
27312
27313
27314fi
27315
27316#
cristy3ed852e2009-09-05 21:47:34 +000027317# Add support for efence memory debugging library if requested
27318#
27319if test "$enable_efence" = 'yes'; then
27320 EFENCE_LIBS='-lefence'
27321 LIBS="$EFENCE_LIBS $LIBS"
27322fi
27323
cristy3ed852e2009-09-05 21:47:34 +000027324
27325#
27326# Check for BZLIB
27327#
27328
27329
27330# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000027331if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027332 withval=$with_bzlib; with_bzlib=$withval
27333else
27334 with_bzlib='yes'
27335fi
27336
27337
27338if test "$with_bzlib" != 'yes'; then
27339 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
27340fi
27341
27342have_bzlib='no'
27343if test "$with_bzlib" != 'no'; then
27344 BZLIB_LIBS=''
cristyad38abe2012-12-23 23:03:21 +000027345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27346$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000027348$as_echo_n "checking for BZLIB... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000027349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27350$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027351 failed=0
27352 passed=0
27353 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000027354 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027355if test "x$ac_cv_header_bzlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027356 passed=`expr $passed + 1`
27357else
27358 failed=`expr $failed + 1`
27359fi
27360
27361
cristy8b350f62009-11-15 23:12:43 +000027362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000027363$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027364if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027365 $as_echo_n "(cached) " >&6
27366else
27367 ac_check_lib_save_LIBS=$LIBS
27368LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027369cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027370/* end confdefs.h. */
27371
27372/* Override any GCC internal prototype to avoid an error.
27373 Use char because int might match the return type of a GCC
27374 builtin and then its argument prototype would still apply. */
27375#ifdef __cplusplus
27376extern "C"
27377#endif
27378char BZ2_bzDecompress ();
27379int
27380main ()
27381{
27382return BZ2_bzDecompress ();
27383 ;
27384 return 0;
27385}
27386_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027387if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027388 ac_cv_lib_bz2_BZ2_bzDecompress=yes
27389else
cristy8b350f62009-11-15 23:12:43 +000027390 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000027391fi
cristy8b350f62009-11-15 23:12:43 +000027392rm -f core conftest.err conftest.$ac_objext \
27393 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027394LIBS=$ac_check_lib_save_LIBS
27395fi
cristy8b350f62009-11-15 23:12:43 +000027396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027397$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027398if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027399 found_libbz=`expr $found_libbz + 1`
27400fi
27401
27402 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000027404$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027405if ${ac_cv_lib_bz2__imp__BZ2_decompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027406 $as_echo_n "(cached) " >&6
27407else
27408 ac_check_lib_save_LIBS=$LIBS
27409LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027410cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027411/* end confdefs.h. */
27412
27413/* Override any GCC internal prototype to avoid an error.
27414 Use char because int might match the return type of a GCC
27415 builtin and then its argument prototype would still apply. */
27416#ifdef __cplusplus
27417extern "C"
27418#endif
27419char _imp__BZ2_decompress ();
27420int
27421main ()
27422{
27423return _imp__BZ2_decompress ();
27424 ;
27425 return 0;
27426}
27427_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027428if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027429 ac_cv_lib_bz2__imp__BZ2_decompress=yes
27430else
cristy8b350f62009-11-15 23:12:43 +000027431 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000027432fi
cristy8b350f62009-11-15 23:12:43 +000027433rm -f core conftest.err conftest.$ac_objext \
27434 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027435LIBS=$ac_check_lib_save_LIBS
27436fi
cristy8b350f62009-11-15 23:12:43 +000027437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027438$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027439if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027440 found_libbz=`expr $found_libbz + 1`
27441fi
27442
27443 fi
27444 if test $found_libbz -gt 0; then
27445 passed=`expr $passed + 1`
27446 else
27447 failed=`expr $failed + 1`
27448 fi
cristy8b350f62009-11-15 23:12:43 +000027449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027450$as_echo_n "checking if BZLIB package is complete... " >&6; }
27451 if test $passed -gt 0; then
27452 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000027453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27454$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027455 have_bzlib='no (failed tests)'
27456 else
27457 BZLIB_LIBS='-lbz2'
27458 LIBS="$BZLIB_LIBS $LIBS"
27459
cristy8b350f62009-11-15 23:12:43 +000027460$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027461
cristyad38abe2012-12-23 23:03:21 +000027462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27463$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027464 have_bzlib='yes'
27465 fi
27466 else
cristyad38abe2012-12-23 23:03:21 +000027467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27468$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027469 fi
27470fi
cristy73bd4a52010-10-05 11:24:23 +000027471 if test "$have_bzlib" = 'yes'; then
27472 BZLIB_DELEGATE_TRUE=
27473 BZLIB_DELEGATE_FALSE='#'
27474else
27475 BZLIB_DELEGATE_TRUE='#'
27476 BZLIB_DELEGATE_FALSE=
27477fi
27478
cristy3ed852e2009-09-05 21:47:34 +000027479
27480
27481#
27482# Find the X11 include and library directories.
27483#
27484IPC_LIBS=''
27485X11_LIBS=''
27486XEXT_LIBS=''
27487XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000027488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000027489$as_echo_n "checking for X... " >&6; }
27490
27491
27492# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000027493if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000027494 withval=$with_x;
27495fi
27496
27497# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
27498if test "x$with_x" = xno; then
27499 # The user explicitly disabled X.
27500 have_x=disabled
27501else
27502 case $x_includes,$x_libraries in #(
cristy98dddb52010-11-04 00:30:15 +000027503 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
cristyda16f162011-02-19 23:52:17 +000027504 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
cristyc7083c12009-10-14 03:16:55 +000027505 $as_echo_n "(cached) " >&6
27506else
27507 # One or both of the vars are not set, and there is no cached value.
27508ac_x_includes=no ac_x_libraries=no
27509rm -f -r conftest.dir
27510if mkdir conftest.dir; then
27511 cd conftest.dir
27512 cat >Imakefile <<'_ACEOF'
27513incroot:
27514 @echo incroot='${INCROOT}'
27515usrlibdir:
27516 @echo usrlibdir='${USRLIBDIR}'
27517libdir:
27518 @echo libdir='${LIBDIR}'
27519_ACEOF
27520 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
cristy98dddb52010-11-04 00:30:15 +000027521 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristyc7083c12009-10-14 03:16:55 +000027522 for ac_var in incroot usrlibdir libdir; do
27523 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
27524 done
27525 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
27526 for ac_extension in a so sl dylib la dll; do
27527 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
27528 test -f "$ac_im_libdir/libX11.$ac_extension"; then
27529 ac_im_usrlibdir=$ac_im_libdir; break
27530 fi
27531 done
27532 # Screen out bogus values from the imake configuration. They are
27533 # bogus both because they are the default anyway, and because
27534 # using them would break gcc on systems where it needs fixed includes.
27535 case $ac_im_incroot in
27536 /usr/include) ac_x_includes= ;;
27537 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
27538 esac
27539 case $ac_im_usrlibdir in
27540 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
27541 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
27542 esac
27543 fi
27544 cd ..
27545 rm -f -r conftest.dir
27546fi
27547
27548# Standard set of common directories for X headers.
27549# Check X11 before X11Rn because it is often a symlink to the current release.
27550ac_x_header_dirs='
27551/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000027552/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000027553/usr/X11R6/include
27554/usr/X11R5/include
27555/usr/X11R4/include
27556
27557/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000027558/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000027559/usr/include/X11R6
27560/usr/include/X11R5
27561/usr/include/X11R4
27562
27563/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000027564/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000027565/usr/local/X11R6/include
27566/usr/local/X11R5/include
27567/usr/local/X11R4/include
27568
27569/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000027570/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000027571/usr/local/include/X11R6
27572/usr/local/include/X11R5
27573/usr/local/include/X11R4
27574
27575/usr/X386/include
27576/usr/x386/include
27577/usr/XFree86/include/X11
27578
27579/usr/include
27580/usr/local/include
27581/usr/unsupported/include
27582/usr/athena/include
27583/usr/local/x11r5/include
27584/usr/lpp/Xamples/include
27585
27586/usr/openwin/include
27587/usr/openwin/share/include'
27588
27589if test "$ac_x_includes" = no; then
27590 # Guess where to find include files, by looking for Xlib.h.
27591 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000027592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027593/* end confdefs.h. */
27594#include <X11/Xlib.h>
27595_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027596if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000027597 # We can compile using X headers with no special include directory.
27598ac_x_includes=
27599else
cristyc7083c12009-10-14 03:16:55 +000027600 for ac_dir in $ac_x_header_dirs; do
27601 if test -r "$ac_dir/X11/Xlib.h"; then
27602 ac_x_includes=$ac_dir
27603 break
27604 fi
27605done
27606fi
cristyda16f162011-02-19 23:52:17 +000027607rm -f conftest.err conftest.i conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027608fi # $ac_x_includes = no
27609
27610if test "$ac_x_libraries" = no; then
27611 # Check for the libraries.
27612 # See if we find them without any special options.
27613 # Don't add to $LIBS permanently.
27614 ac_save_LIBS=$LIBS
27615 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027617/* end confdefs.h. */
27618#include <X11/Xlib.h>
27619int
27620main ()
27621{
27622XrmInitialize ()
27623 ;
27624 return 0;
27625}
27626_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027627if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000027628 LIBS=$ac_save_LIBS
27629# We can link X programs with no special library path.
27630ac_x_libraries=
27631else
cristy8b350f62009-11-15 23:12:43 +000027632 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000027633for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
27634do
27635 # Don't even attempt the hair of trying to link an X program!
27636 for ac_extension in a so sl dylib la dll; do
27637 if test -r "$ac_dir/libX11.$ac_extension"; then
27638 ac_x_libraries=$ac_dir
27639 break 2
27640 fi
27641 done
27642done
27643fi
cristy8b350f62009-11-15 23:12:43 +000027644rm -f core conftest.err conftest.$ac_objext \
27645 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027646fi # $ac_x_libraries = no
27647
27648case $ac_x_includes,$ac_x_libraries in #(
27649 no,* | *,no | *\'*)
27650 # Didn't find X, or a directory has "'" in its name.
27651 ac_cv_have_x="have_x=no";; #(
27652 *)
27653 # Record where we found X for the cache.
27654 ac_cv_have_x="have_x=yes\
27655 ac_x_includes='$ac_x_includes'\
27656 ac_x_libraries='$ac_x_libraries'"
27657esac
27658fi
27659;; #(
27660 *) have_x=yes;;
27661 esac
27662 eval "$ac_cv_have_x"
27663fi # $with_x != no
27664
27665if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000027666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000027667$as_echo "$have_x" >&6; }
27668 no_x=yes
27669else
27670 # If each of the values was on the command line, it overrides each guess.
27671 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
27672 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
27673 # Update the cache value to reflect the command line values.
27674 ac_cv_have_x="have_x=yes\
27675 ac_x_includes='$x_includes'\
27676 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000027677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000027678$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
27679fi
27680
cristy3ed852e2009-09-05 21:47:34 +000027681if test "$no_x" = yes; then
27682 # Not all programs may use this symbol, but it does not hurt to define it.
27683
cristy8b350f62009-11-15 23:12:43 +000027684$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027685
27686 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
27687else
27688 if test -n "$x_includes"; then
27689 X_CFLAGS="$X_CFLAGS -I$x_includes"
27690 fi
27691
27692 # It would also be nice to do this for all -L options, not just this one.
27693 if test -n "$x_libraries"; then
27694 X_LIBS="$X_LIBS -L$x_libraries"
27695 # For Solaris; some versions of Sun CC require a space after -R and
27696 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000027697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000027698$as_echo_n "checking whether -R must be followed by a space... " >&6; }
27699 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
27700 ac_xsave_c_werror_flag=$ac_c_werror_flag
27701 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000027702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027703/* end confdefs.h. */
27704
27705int
27706main ()
27707{
27708
27709 ;
27710 return 0;
27711}
27712_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027713if ac_fn_c_try_link "$LINENO"; then :
27714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027715$as_echo "no" >&6; }
27716 X_LIBS="$X_LIBS -R$x_libraries"
27717else
cristy8b350f62009-11-15 23:12:43 +000027718 LIBS="$ac_xsave_LIBS -R $x_libraries"
27719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027720/* end confdefs.h. */
27721
27722int
27723main ()
27724{
27725
27726 ;
27727 return 0;
27728}
27729_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027730if ac_fn_c_try_link "$LINENO"; then :
27731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027732$as_echo "yes" >&6; }
27733 X_LIBS="$X_LIBS -R $x_libraries"
27734else
cristy8b350f62009-11-15 23:12:43 +000027735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000027736$as_echo "neither works" >&6; }
27737fi
cristy8b350f62009-11-15 23:12:43 +000027738rm -f core conftest.err conftest.$ac_objext \
27739 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027740fi
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 +000027743 ac_c_werror_flag=$ac_xsave_c_werror_flag
27744 LIBS=$ac_xsave_LIBS
27745 fi
27746
27747 # Check for system-dependent libraries X programs must link with.
27748 # Do this before checking for the system-independent R6 libraries
27749 # (-lICE), since we may need -lsocket or whatever for X linking.
27750
27751 if test "$ISC" = yes; then
27752 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
27753 else
27754 # Martyn Johnson says this is needed for Ultrix, if the X
27755 # libraries were built with DECnet support. And Karl Berry says
27756 # the Alpha needs dnet_stub (dnet does not exist).
27757 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000027758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027759/* end confdefs.h. */
27760
27761/* Override any GCC internal prototype to avoid an error.
27762 Use char because int might match the return type of a GCC
27763 builtin and then its argument prototype would still apply. */
27764#ifdef __cplusplus
27765extern "C"
27766#endif
27767char XOpenDisplay ();
27768int
27769main ()
27770{
27771return XOpenDisplay ();
27772 ;
27773 return 0;
27774}
27775_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027776if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027777
cristy8b350f62009-11-15 23:12:43 +000027778else
27779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000027780$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027781if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027782 $as_echo_n "(cached) " >&6
27783else
27784 ac_check_lib_save_LIBS=$LIBS
27785LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027786cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027787/* end confdefs.h. */
27788
27789/* Override any GCC internal prototype to avoid an error.
27790 Use char because int might match the return type of a GCC
27791 builtin and then its argument prototype would still apply. */
27792#ifdef __cplusplus
27793extern "C"
27794#endif
27795char dnet_ntoa ();
27796int
27797main ()
27798{
27799return dnet_ntoa ();
27800 ;
27801 return 0;
27802}
27803_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027804if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027805 ac_cv_lib_dnet_dnet_ntoa=yes
27806else
cristy8b350f62009-11-15 23:12:43 +000027807 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000027808fi
cristy8b350f62009-11-15 23:12:43 +000027809rm -f core conftest.err conftest.$ac_objext \
27810 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027811LIBS=$ac_check_lib_save_LIBS
27812fi
cristy8b350f62009-11-15 23:12:43 +000027813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027814$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027815if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027816 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
27817fi
27818
27819 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000027820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000027821$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027822if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027823 $as_echo_n "(cached) " >&6
27824else
27825 ac_check_lib_save_LIBS=$LIBS
27826LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027827cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027828/* end confdefs.h. */
27829
27830/* Override any GCC internal prototype to avoid an error.
27831 Use char because int might match the return type of a GCC
27832 builtin and then its argument prototype would still apply. */
27833#ifdef __cplusplus
27834extern "C"
27835#endif
27836char dnet_ntoa ();
27837int
27838main ()
27839{
27840return dnet_ntoa ();
27841 ;
27842 return 0;
27843}
27844_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027845if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027846 ac_cv_lib_dnet_stub_dnet_ntoa=yes
27847else
cristy8b350f62009-11-15 23:12:43 +000027848 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000027849fi
cristy8b350f62009-11-15 23:12:43 +000027850rm -f core conftest.err conftest.$ac_objext \
27851 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027852LIBS=$ac_check_lib_save_LIBS
27853fi
cristy8b350f62009-11-15 23:12:43 +000027854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027855$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027856if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027857 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
27858fi
27859
27860 fi
27861fi
cristy8b350f62009-11-15 23:12:43 +000027862rm -f core conftest.err conftest.$ac_objext \
27863 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027864 LIBS="$ac_xsave_LIBS"
27865
27866 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
27867 # to get the SysV transport functions.
27868 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
27869 # needs -lnsl.
27870 # The nsl library prevents programs from opening the X display
27871 # on Irix 5.2, according to T.E. Dickey.
27872 # The functions gethostbyname, getservbyname, and inet_addr are
27873 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000027874 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
cristyda16f162011-02-19 23:52:17 +000027875if test "x$ac_cv_func_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027876
cristy3ed852e2009-09-05 21:47:34 +000027877fi
27878
cristy3ed852e2009-09-05 21:47:34 +000027879 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000027881$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027882if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027883 $as_echo_n "(cached) " >&6
27884else
27885 ac_check_lib_save_LIBS=$LIBS
27886LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027887cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027888/* end confdefs.h. */
27889
27890/* Override any GCC internal prototype to avoid an error.
27891 Use char because int might match the return type of a GCC
27892 builtin and then its argument prototype would still apply. */
27893#ifdef __cplusplus
27894extern "C"
27895#endif
27896char gethostbyname ();
27897int
27898main ()
27899{
27900return gethostbyname ();
27901 ;
27902 return 0;
27903}
27904_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027905if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027906 ac_cv_lib_nsl_gethostbyname=yes
27907else
cristy8b350f62009-11-15 23:12:43 +000027908 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027909fi
cristy8b350f62009-11-15 23:12:43 +000027910rm -f core conftest.err conftest.$ac_objext \
27911 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027912LIBS=$ac_check_lib_save_LIBS
27913fi
cristy8b350f62009-11-15 23:12:43 +000027914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027915$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027916if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027917 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
27918fi
27919
27920 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000027922$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027923if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027924 $as_echo_n "(cached) " >&6
27925else
27926 ac_check_lib_save_LIBS=$LIBS
27927LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027928cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027929/* end confdefs.h. */
27930
27931/* Override any GCC internal prototype to avoid an error.
27932 Use char because int might match the return type of a GCC
27933 builtin and then its argument prototype would still apply. */
27934#ifdef __cplusplus
27935extern "C"
27936#endif
27937char gethostbyname ();
27938int
27939main ()
27940{
27941return gethostbyname ();
27942 ;
27943 return 0;
27944}
27945_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027946if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027947 ac_cv_lib_bsd_gethostbyname=yes
27948else
cristy8b350f62009-11-15 23:12:43 +000027949 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027950fi
cristy8b350f62009-11-15 23:12:43 +000027951rm -f core conftest.err conftest.$ac_objext \
27952 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027953LIBS=$ac_check_lib_save_LIBS
27954fi
cristy8b350f62009-11-15 23:12:43 +000027955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027956$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027957if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027958 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
27959fi
27960
27961 fi
27962 fi
27963
27964 # lieder@skyler.mavd.honeywell.com says without -lsocket,
27965 # socket/setsockopt and other routines are undefined under SCO ODT
27966 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
27967 # on later versions), says Simon Leinen: it contains gethostby*
27968 # variants that don't use the name server (or something). -lsocket
27969 # must be given before -lnsl if both are needed. We assume that
27970 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000027971 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
cristyda16f162011-02-19 23:52:17 +000027972if test "x$ac_cv_func_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027973
cristy3ed852e2009-09-05 21:47:34 +000027974fi
27975
cristy3ed852e2009-09-05 21:47:34 +000027976 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000027977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000027978$as_echo_n "checking for connect in -lsocket... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027979if ${ac_cv_lib_socket_connect+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027980 $as_echo_n "(cached) " >&6
27981else
27982 ac_check_lib_save_LIBS=$LIBS
27983LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027984cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027985/* end confdefs.h. */
27986
27987/* Override any GCC internal prototype to avoid an error.
27988 Use char because int might match the return type of a GCC
27989 builtin and then its argument prototype would still apply. */
27990#ifdef __cplusplus
27991extern "C"
27992#endif
27993char connect ();
27994int
27995main ()
27996{
27997return connect ();
27998 ;
27999 return 0;
28000}
28001_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028002if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028003 ac_cv_lib_socket_connect=yes
28004else
cristy8b350f62009-11-15 23:12:43 +000028005 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000028006fi
cristy8b350f62009-11-15 23:12:43 +000028007rm -f core conftest.err conftest.$ac_objext \
28008 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028009LIBS=$ac_check_lib_save_LIBS
28010fi
cristy8b350f62009-11-15 23:12:43 +000028011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000028012$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristyda16f162011-02-19 23:52:17 +000028013if test "x$ac_cv_lib_socket_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028014 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
28015fi
28016
28017 fi
28018
28019 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000028020 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
cristyda16f162011-02-19 23:52:17 +000028021if test "x$ac_cv_func_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028022
cristy3ed852e2009-09-05 21:47:34 +000028023fi
28024
cristy3ed852e2009-09-05 21:47:34 +000028025 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000028026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000028027$as_echo_n "checking for remove in -lposix... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028028if ${ac_cv_lib_posix_remove+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028029 $as_echo_n "(cached) " >&6
28030else
28031 ac_check_lib_save_LIBS=$LIBS
28032LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028033cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028034/* end confdefs.h. */
28035
28036/* Override any GCC internal prototype to avoid an error.
28037 Use char because int might match the return type of a GCC
28038 builtin and then its argument prototype would still apply. */
28039#ifdef __cplusplus
28040extern "C"
28041#endif
28042char remove ();
28043int
28044main ()
28045{
28046return remove ();
28047 ;
28048 return 0;
28049}
28050_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028051if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028052 ac_cv_lib_posix_remove=yes
28053else
cristy8b350f62009-11-15 23:12:43 +000028054 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000028055fi
cristy8b350f62009-11-15 23:12:43 +000028056rm -f core conftest.err conftest.$ac_objext \
28057 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028058LIBS=$ac_check_lib_save_LIBS
28059fi
cristy8b350f62009-11-15 23:12:43 +000028060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000028061$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristyda16f162011-02-19 23:52:17 +000028062if test "x$ac_cv_lib_posix_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028063 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
28064fi
28065
28066 fi
28067
28068 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000028069 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
cristyda16f162011-02-19 23:52:17 +000028070if test "x$ac_cv_func_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028071
cristy3ed852e2009-09-05 21:47:34 +000028072fi
28073
cristy3ed852e2009-09-05 21:47:34 +000028074 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000028075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000028076$as_echo_n "checking for shmat in -lipc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028077if ${ac_cv_lib_ipc_shmat+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028078 $as_echo_n "(cached) " >&6
28079else
28080 ac_check_lib_save_LIBS=$LIBS
28081LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028082cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028083/* end confdefs.h. */
28084
28085/* Override any GCC internal prototype to avoid an error.
28086 Use char because int might match the return type of a GCC
28087 builtin and then its argument prototype would still apply. */
28088#ifdef __cplusplus
28089extern "C"
28090#endif
28091char shmat ();
28092int
28093main ()
28094{
28095return shmat ();
28096 ;
28097 return 0;
28098}
28099_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028100if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028101 ac_cv_lib_ipc_shmat=yes
28102else
cristy8b350f62009-11-15 23:12:43 +000028103 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000028104fi
cristy8b350f62009-11-15 23:12:43 +000028105rm -f core conftest.err conftest.$ac_objext \
28106 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028107LIBS=$ac_check_lib_save_LIBS
28108fi
cristy8b350f62009-11-15 23:12:43 +000028109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000028110$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristyda16f162011-02-19 23:52:17 +000028111if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028112 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
28113fi
28114
28115 fi
28116 fi
28117
28118 # Check for libraries that X11R6 Xt/Xaw programs need.
28119 ac_save_LDFLAGS=$LDFLAGS
28120 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
28121 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
28122 # check for ICE first), but we must link in the order -lSM -lICE or
28123 # we get undefined symbols. So assume we have SM if we have ICE.
28124 # These have to be linked with before -lX11, unlike the other
28125 # libraries we check for below, so use a different variable.
28126 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000028127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000028128$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028129if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028130 $as_echo_n "(cached) " >&6
28131else
28132 ac_check_lib_save_LIBS=$LIBS
28133LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028134cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028135/* end confdefs.h. */
28136
28137/* Override any GCC internal prototype to avoid an error.
28138 Use char because int might match the return type of a GCC
28139 builtin and then its argument prototype would still apply. */
28140#ifdef __cplusplus
28141extern "C"
28142#endif
28143char IceConnectionNumber ();
28144int
28145main ()
28146{
28147return IceConnectionNumber ();
28148 ;
28149 return 0;
28150}
28151_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028152if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028153 ac_cv_lib_ICE_IceConnectionNumber=yes
28154else
cristy8b350f62009-11-15 23:12:43 +000028155 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000028156fi
cristy8b350f62009-11-15 23:12:43 +000028157rm -f core conftest.err conftest.$ac_objext \
28158 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028159LIBS=$ac_check_lib_save_LIBS
28160fi
cristy8b350f62009-11-15 23:12:43 +000028161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000028162$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristyda16f162011-02-19 23:52:17 +000028163if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028164 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
28165fi
28166
28167 LDFLAGS=$ac_save_LDFLAGS
28168
28169fi
28170
28171if test "$no_x" != 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000028172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28173$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000028175$as_echo_n "checking for X11... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28177$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028178 LDFLAGS="$LDFLAGS $X_LIBS"
28179 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
28180 LIBS="$X11_LIBS $LIBS"
28181 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
28182
28183
cristy8b350f62009-11-15 23:12:43 +000028184$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028185
28186 #
28187 # Check for X11 shared memory extension
28188 #
28189 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000028190 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
cristyda16f162011-02-19 23:52:17 +000028191if test "x$ac_cv_func_shmctl" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028192 have_shmctl='yes'
28193fi
28194
28195 if test "$have_shmctl" != 'yes'; then
28196 PERSIST_LIBS=$LIBS
28197 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000028198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028199/* end confdefs.h. */
28200
28201/* Override any GCC internal prototype to avoid an error.
28202 Use char because int might match the return type of a GCC
28203 builtin and then its argument prototype would still apply. */
28204#ifdef __cplusplus
28205extern "C"
28206#endif
28207char shmctl ();
28208int
28209main ()
28210{
28211return shmctl ();
28212 ;
28213 return 0;
28214}
28215_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028216if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028217 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000028218fi
cristy8b350f62009-11-15 23:12:43 +000028219rm -f core conftest.err conftest.$ac_objext \
28220 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028221 LIBS=$PERSIST_LIBS
28222 fi
28223
28224 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000028225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028226$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028227if ${ac_cv_lib_Xext_XShmAttach+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028228 $as_echo_n "(cached) " >&6
28229else
28230 ac_check_lib_save_LIBS=$LIBS
28231LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028232cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028233/* end confdefs.h. */
28234
28235/* Override any GCC internal prototype to avoid an error.
28236 Use char because int might match the return type of a GCC
28237 builtin and then its argument prototype would still apply. */
28238#ifdef __cplusplus
28239extern "C"
28240#endif
28241char XShmAttach ();
28242int
28243main ()
28244{
28245return XShmAttach ();
28246 ;
28247 return 0;
28248}
28249_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028250if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028251 ac_cv_lib_Xext_XShmAttach=yes
28252else
cristy8b350f62009-11-15 23:12:43 +000028253 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000028254fi
cristy8b350f62009-11-15 23:12:43 +000028255rm -f core conftest.err conftest.$ac_objext \
28256 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028257LIBS=$ac_check_lib_save_LIBS
28258fi
cristy8b350f62009-11-15 23:12:43 +000028259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000028260$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristyda16f162011-02-19 23:52:17 +000028261if test "x$ac_cv_lib_Xext_XShmAttach" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028262 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000028263$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028264
28265fi
28266
28267 fi
28268
28269 #
28270 # Check for X11 shape extension
28271 #
cristy8b350f62009-11-15 23:12:43 +000028272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028273$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028274if ${ac_cv_lib_Xext_XShapeCombineMask+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028275 $as_echo_n "(cached) " >&6
28276else
28277 ac_check_lib_save_LIBS=$LIBS
28278LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028279cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028280/* end confdefs.h. */
28281
28282/* Override any GCC internal prototype to avoid an error.
28283 Use char because int might match the return type of a GCC
28284 builtin and then its argument prototype would still apply. */
28285#ifdef __cplusplus
28286extern "C"
28287#endif
28288char XShapeCombineMask ();
28289int
28290main ()
28291{
28292return XShapeCombineMask ();
28293 ;
28294 return 0;
28295}
28296_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028297if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028298 ac_cv_lib_Xext_XShapeCombineMask=yes
28299else
cristy8b350f62009-11-15 23:12:43 +000028300 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000028301fi
cristy8b350f62009-11-15 23:12:43 +000028302rm -f core conftest.err conftest.$ac_objext \
28303 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028304LIBS=$ac_check_lib_save_LIBS
28305fi
cristy8b350f62009-11-15 23:12:43 +000028306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000028307$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristyda16f162011-02-19 23:52:17 +000028308if test "x$ac_cv_lib_Xext_XShapeCombineMask" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028309 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000028310$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028311
28312fi
28313
cristy8b350f62009-11-15 23:12:43 +000028314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000028315$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028316if ${ac_cv_lib_Xt_XtSetEventDispatcher+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028317 $as_echo_n "(cached) " >&6
28318else
28319 ac_check_lib_save_LIBS=$LIBS
28320LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028321cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028322/* end confdefs.h. */
28323
28324/* Override any GCC internal prototype to avoid an error.
28325 Use char because int might match the return type of a GCC
28326 builtin and then its argument prototype would still apply. */
28327#ifdef __cplusplus
28328extern "C"
28329#endif
28330char XtSetEventDispatcher ();
28331int
28332main ()
28333{
28334return XtSetEventDispatcher ();
28335 ;
28336 return 0;
28337}
28338_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028339if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028340 ac_cv_lib_Xt_XtSetEventDispatcher=yes
28341else
cristy8b350f62009-11-15 23:12:43 +000028342 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000028343fi
cristy8b350f62009-11-15 23:12:43 +000028344rm -f core conftest.err conftest.$ac_objext \
28345 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028346LIBS=$ac_check_lib_save_LIBS
28347fi
cristy8b350f62009-11-15 23:12:43 +000028348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000028349$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristyda16f162011-02-19 23:52:17 +000028350if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028351 XT_LIBS='-lXt'
28352fi
28353
28354 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
28355fi
28356if test "$no_x" != 'yes'; then
28357 have_x='yes'
28358else
28359 have_x='no'
28360fi
cristy73bd4a52010-10-05 11:24:23 +000028361 if test "$have_x" = 'yes'; then
28362 X11_DELEGATE_TRUE=
28363 X11_DELEGATE_FALSE='#'
28364else
28365 X11_DELEGATE_TRUE='#'
28366 X11_DELEGATE_FALSE=
28367fi
28368
cristy3ed852e2009-09-05 21:47:34 +000028369
28370
28371
28372
28373#
28374# Check for ZLIB
28375#
28376
28377# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000028378if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028379 withval=$with_zlib; with_zlib=$withval
28380else
28381 with_zlib='yes'
28382fi
28383
28384
28385if test "$with_zlib" != 'yes'; then
28386 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
28387fi
28388
28389have_zlib='no'
cristy32f75d42015-06-05 18:46:23 +000028390ZLIB_CFLAGS=""
28391ZLIB_LIBS=""
28392ZLIB_PKG=""
28393if test "x$with_zlib" = "xyes"; then
28394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristyad38abe2012-12-23 23:03:21 +000028395$as_echo "-------------------------------------------------------------" >&6; }
cristy32f75d42015-06-05 18:46:23 +000028396
28397pkg_failed=no
28398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000028399$as_echo_n "checking for ZLIB... " >&6; }
cristy32f75d42015-06-05 18:46:23 +000028400
28401if test -n "$ZLIB_CFLAGS"; then
28402 pkg_cv_ZLIB_CFLAGS="$ZLIB_CFLAGS"
28403 elif test -n "$PKG_CONFIG"; then
28404 if test -n "$PKG_CONFIG" && \
28405 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib >= 1.0.0\""; } >&5
28406 ($PKG_CONFIG --exists --print-errors "zlib >= 1.0.0") 2>&5
28407 ac_status=$?
28408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28409 test $ac_status = 0; }; then
28410 pkg_cv_ZLIB_CFLAGS=`$PKG_CONFIG --cflags "zlib >= 1.0.0" 2>/dev/null`
28411 test "x$?" != "x0" && pkg_failed=yes
cristy3ed852e2009-09-05 21:47:34 +000028412else
cristy32f75d42015-06-05 18:46:23 +000028413 pkg_failed=yes
28414fi
28415 else
28416 pkg_failed=untried
28417fi
28418if test -n "$ZLIB_LIBS"; then
28419 pkg_cv_ZLIB_LIBS="$ZLIB_LIBS"
28420 elif test -n "$PKG_CONFIG"; then
28421 if test -n "$PKG_CONFIG" && \
28422 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib >= 1.0.0\""; } >&5
28423 ($PKG_CONFIG --exists --print-errors "zlib >= 1.0.0") 2>&5
28424 ac_status=$?
28425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28426 test $ac_status = 0; }; then
28427 pkg_cv_ZLIB_LIBS=`$PKG_CONFIG --libs "zlib >= 1.0.0" 2>/dev/null`
28428 test "x$?" != "x0" && pkg_failed=yes
28429else
28430 pkg_failed=yes
28431fi
28432 else
28433 pkg_failed=untried
cristy3ed852e2009-09-05 21:47:34 +000028434fi
28435
28436
cristy3ed852e2009-09-05 21:47:34 +000028437
cristy32f75d42015-06-05 18:46:23 +000028438if test $pkg_failed = yes; then
28439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28440$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028441
cristy32f75d42015-06-05 18:46:23 +000028442if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28443 _pkg_short_errors_supported=yes
cristy3ed852e2009-09-05 21:47:34 +000028444else
cristy32f75d42015-06-05 18:46:23 +000028445 _pkg_short_errors_supported=no
cristy3ed852e2009-09-05 21:47:34 +000028446fi
cristy32f75d42015-06-05 18:46:23 +000028447 if test $_pkg_short_errors_supported = yes; then
28448 ZLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "zlib >= 1.0.0" 2>&1`
cristy3ed852e2009-09-05 21:47:34 +000028449 else
cristy32f75d42015-06-05 18:46:23 +000028450 ZLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "zlib >= 1.0.0" 2>&1`
28451 fi
28452 # Put the nasty error message in config.log where it belongs
28453 echo "$ZLIB_PKG_ERRORS" >&5
28454
28455 have_zlib=no
28456elif test $pkg_failed = untried; then
28457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28458$as_echo "no" >&6; }
28459 have_zlib=no
28460else
28461 ZLIB_CFLAGS=$pkg_cv_ZLIB_CFLAGS
28462 ZLIB_LIBS=$pkg_cv_ZLIB_LIBS
28463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28464$as_echo "yes" >&6; }
28465 have_zlib=yes
28466fi
28467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28468$as_echo "" >&6; }
28469fi
28470
28471if test "$have_zlib" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000028472
cristy8b350f62009-11-15 23:12:43 +000028473$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028474
cristy32f75d42015-06-05 18:46:23 +000028475 CFLAGS="$ZLIB_CFLAGS $CFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000028476fi
cristy32f75d42015-06-05 18:46:23 +000028477
cristy73bd4a52010-10-05 11:24:23 +000028478 if test "$have_zlib" = 'yes'; then
28479 ZLIB_DELEGATE_TRUE=
28480 ZLIB_DELEGATE_FALSE='#'
28481else
28482 ZLIB_DELEGATE_TRUE='#'
28483 ZLIB_DELEGATE_FALSE=
28484fi
28485
cristy3ed852e2009-09-05 21:47:34 +000028486
28487
cristy32f75d42015-06-05 18:46:23 +000028488
28489
cristy5eef09f2012-10-16 12:08:28 +000028490# whether modules are built or not.
28491with_ltdl='yes'
28492have_ltdl='no'
28493LTDL_LIBS=''
28494if test "$build_modules" != 'no' ; then
cristyad38abe2012-12-23 23:03:21 +000028495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28496$as_echo "-------------------------------------------------------------" >&6; }
cristy5eef09f2012-10-16 12:08:28 +000028497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libltdl" >&5
28498$as_echo_n "checking for libltdl... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28500$as_echo "" >&6; }
cristy5eef09f2012-10-16 12:08:28 +000028501 failed=0
28502 passed=0
28503 ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default"
28504if test "x$ac_cv_header_ltdl_h" = xyes; then :
28505 passed=`expr $passed + 1`
28506else
28507 failed=`expr $failed + 1`
28508fi
28509
28510
28511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlinit in -lltdl" >&5
28512$as_echo_n "checking for lt_dlinit in -lltdl... " >&6; }
28513if ${ac_cv_lib_ltdl_lt_dlinit+:} false; then :
28514 $as_echo_n "(cached) " >&6
28515else
28516 ac_check_lib_save_LIBS=$LIBS
28517LIBS="-lltdl $LIBS"
28518cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28519/* end confdefs.h. */
28520
28521/* Override any GCC internal prototype to avoid an error.
28522 Use char because int might match the return type of a GCC
28523 builtin and then its argument prototype would still apply. */
28524#ifdef __cplusplus
28525extern "C"
28526#endif
28527char lt_dlinit ();
28528int
28529main ()
28530{
28531return lt_dlinit ();
28532 ;
28533 return 0;
28534}
28535_ACEOF
28536if ac_fn_c_try_link "$LINENO"; then :
28537 ac_cv_lib_ltdl_lt_dlinit=yes
28538else
28539 ac_cv_lib_ltdl_lt_dlinit=no
28540fi
28541rm -f core conftest.err conftest.$ac_objext \
28542 conftest$ac_exeext conftest.$ac_ext
28543LIBS=$ac_check_lib_save_LIBS
28544fi
28545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
28546$as_echo "$ac_cv_lib_ltdl_lt_dlinit" >&6; }
28547if test "x$ac_cv_lib_ltdl_lt_dlinit" = xyes; then :
28548 passed=`expr $passed + 1`
28549else
28550 failed=`expr $failed + 1`
28551fi
28552
28553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libltdl package is complete" >&5
28554$as_echo_n "checking if libltdl package is complete... " >&6; }
28555 if test $passed -gt 0 ; then
28556 if test $failed -gt 0 ; then
28557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28558$as_echo "no -- some components failed test" >&6; }
28559 have_ltdl='no (failed tests)'
28560 else
28561 LTDL_LIBS='-lltdl'
28562 LIBS="$LTDL_LIBS $LIBS"
28563
28564$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
28565
28566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28567$as_echo "yes" >&6; }
28568 have_ltdl='yes'
28569 fi
28570 else
28571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28572$as_echo "no" >&6; }
28573 fi
cristyaf4cbf32012-10-16 23:47:41 +000028574 if test "$have_ltdl" != 'yes' ; then
28575 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28576$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28577as_fn_error 1 "libltdl is required for modules build
28578See \`config.log' for more details" "$LINENO" 5; }
28579 fi
cristy5eef09f2012-10-16 12:08:28 +000028580fi
28581 if test "$have_ltdl" != 'no'; then
28582 WITH_LTDL_TRUE=
28583 WITH_LTDL_FALSE='#'
28584else
28585 WITH_LTDL_TRUE='#'
28586 WITH_LTDL_FALSE=
28587fi
28588
28589
cristy3ed852e2009-09-05 21:47:34 +000028590#
28591# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
28592#
28593LIB_DL=''
28594if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000028595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000028596$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028597if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028598 $as_echo_n "(cached) " >&6
28599else
28600 ac_check_lib_save_LIBS=$LIBS
28601LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028602cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028603/* end confdefs.h. */
28604
28605/* Override any GCC internal prototype to avoid an error.
28606 Use char because int might match the return type of a GCC
28607 builtin and then its argument prototype would still apply. */
28608#ifdef __cplusplus
28609extern "C"
28610#endif
28611char dlopen ();
28612int
28613main ()
28614{
28615return dlopen ();
28616 ;
28617 return 0;
28618}
28619_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028620if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028621 ac_cv_lib_dl_dlopen=yes
28622else
cristy8b350f62009-11-15 23:12:43 +000028623 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000028624fi
cristy8b350f62009-11-15 23:12:43 +000028625rm -f core conftest.err conftest.$ac_objext \
28626 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028627LIBS=$ac_check_lib_save_LIBS
28628fi
cristy8b350f62009-11-15 23:12:43 +000028629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000028630$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000028631if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028632 LIB_DL='-ldl'
28633fi
28634
28635 LIBS="$LIB_DL $LIBS"
28636fi
28637
28638
28639
28640#
cristy5a3dc992014-12-05 19:50:04 +000028641# Set Apple font directory.
28642#
28643
28644# Check whether --with-apple-font-dir was given.
28645if test "${with_apple_font_dir+set}" = set; then :
28646 withval=$with_apple_font_dir; with_apple_font_dir=$withval
28647else
28648 with_apple_font_dir='default'
28649fi
28650
28651
28652if test "$with_apple_font_dir" != 'default'; then
28653 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-apple-font-dir=$with_apple_font_dir "
28654fi
28655
28656
28657#
cristy3ed852e2009-09-05 21:47:34 +000028658# Check for Autotrace delegate library.
28659#
28660
28661# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000028662if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028663 withval=$with_autotrace; with_autotrace=$withval
28664else
28665 with_autotrace='no'
28666fi
28667
28668
28669if test "$with_autotrace" != 'yes'; then
28670 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
28671fi
28672
28673have_autotrace='no'
28674AUTOTRACE_CFLAGS=""
28675AUTOTRACE_LIBS=""
28676AUTOTRACE_PKG=""
28677if test "x$with_autotrace" = "xyes"; then
cristy32f75d42015-06-05 18:46:23 +000028678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristyad38abe2012-12-23 23:03:21 +000028679$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000028680
28681pkg_failed=no
28682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
28683$as_echo_n "checking for AUTOTRACE... " >&6; }
28684
28685if test -n "$AUTOTRACE_CFLAGS"; then
28686 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
28687 elif test -n "$PKG_CONFIG"; then
28688 if test -n "$PKG_CONFIG" && \
28689 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28690 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28691 ac_status=$?
28692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28693 test $ac_status = 0; }; then
28694 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000028695 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000028696else
28697 pkg_failed=yes
28698fi
28699 else
28700 pkg_failed=untried
28701fi
28702if test -n "$AUTOTRACE_LIBS"; then
28703 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
28704 elif test -n "$PKG_CONFIG"; then
28705 if test -n "$PKG_CONFIG" && \
28706 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28707 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28708 ac_status=$?
28709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28710 test $ac_status = 0; }; then
28711 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000028712 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000028713else
28714 pkg_failed=yes
28715fi
28716 else
28717 pkg_failed=untried
28718fi
28719
28720
28721
28722if test $pkg_failed = yes; then
cristy146497a2015-05-17 22:46:16 +000028723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28724$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000028725
28726if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28727 _pkg_short_errors_supported=yes
28728else
28729 _pkg_short_errors_supported=no
28730fi
28731 if test $_pkg_short_errors_supported = yes; then
cristy146497a2015-05-17 22:46:16 +000028732 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "autotrace >= 0.31.1" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000028733 else
cristy146497a2015-05-17 22:46:16 +000028734 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "autotrace >= 0.31.1" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000028735 fi
28736 # Put the nasty error message in config.log where it belongs
28737 echo "$AUTOTRACE_PKG_ERRORS" >&5
28738
cristy146497a2015-05-17 22:46:16 +000028739 have_autotrace=no
cristy73bd4a52010-10-05 11:24:23 +000028740elif test $pkg_failed = untried; then
cristy146497a2015-05-17 22:46:16 +000028741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28742$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000028743 have_autotrace=no
28744else
28745 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
28746 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
28747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28748$as_echo "yes" >&6; }
28749 have_autotrace=yes
28750fi
cristy32f75d42015-06-05 18:46:23 +000028751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristyad38abe2012-12-23 23:03:21 +000028752$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028753fi
28754
28755if test "$have_autotrace" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000028756
cristy8b350f62009-11-15 23:12:43 +000028757$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028758
cristy32f75d42015-06-05 18:46:23 +000028759 CFLAGS="$AUTOTRACE_CFLAGS $CFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000028760fi
28761
cristy73bd4a52010-10-05 11:24:23 +000028762 if test "$have_autotrace" = 'yes'; then
28763 AUTOTRACE_DELEGATE_TRUE=
28764 AUTOTRACE_DELEGATE_FALSE='#'
28765else
28766 AUTOTRACE_DELEGATE_TRUE='#'
28767 AUTOTRACE_DELEGATE_FALSE=
28768fi
28769
cristy3ed852e2009-09-05 21:47:34 +000028770
28771
28772
28773
28774#
28775# Check for Display Postscript delegate library.
28776#
28777
28778# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000028779if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028780 withval=$with_dps; with_dps=$withval
28781else
28782 with_dps='yes'
28783fi
28784
28785
28786if test "$with_dps" != 'yes'; then
28787 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
28788fi
28789
28790have_dps='no'
28791DPS_LIBS=''
28792if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28794$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000028796$as_echo_n "checking for DPS... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28798$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028799 failed=0
28800 passed=0
28801 PERSIST_CPPFLAGS="$CPPFLAGS"
28802 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000028803 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 +000028804if test "x$ac_cv_header_DPS_dpsXclient_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028805 passed=`expr $passed + 1`
28806else
28807 failed=`expr $failed + 1`
28808fi
28809
28810
28811 # DPS issues:
28812 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
28813 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
28814 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
28815 # ImageMagick itself doesn't use -lXt.
28816 have_libdps='no'
28817 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000028818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028819$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028820if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028821 $as_echo_n "(cached) " >&6
28822else
28823 ac_check_lib_save_LIBS=$LIBS
28824LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028825cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028826/* end confdefs.h. */
28827
28828/* Override any GCC internal prototype to avoid an error.
28829 Use char because int might match the return type of a GCC
28830 builtin and then its argument prototype would still apply. */
28831#ifdef __cplusplus
28832extern "C"
28833#endif
28834char DPSInitialize ();
28835int
28836main ()
28837{
28838return DPSInitialize ();
28839 ;
28840 return 0;
28841}
28842_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028843if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028844 ac_cv_lib_dps_DPSInitialize=yes
28845else
cristy8b350f62009-11-15 23:12:43 +000028846 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028847fi
cristy8b350f62009-11-15 23:12:43 +000028848rm -f core conftest.err conftest.$ac_objext \
28849 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028850LIBS=$ac_check_lib_save_LIBS
28851fi
cristy8b350f62009-11-15 23:12:43 +000028852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028853$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028854if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028855 have_libdps='yes'
28856else
28857 have_libdps='no'
28858fi
28859
28860 if test "$have_libdps" != 'yes'; then
28861 # Unset cache variable so we can try again.
28862 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000028863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028864$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028865if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028866 $as_echo_n "(cached) " >&6
28867else
28868 ac_check_lib_save_LIBS=$LIBS
28869LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028870cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028871/* end confdefs.h. */
28872
28873/* Override any GCC internal prototype to avoid an error.
28874 Use char because int might match the return type of a GCC
28875 builtin and then its argument prototype would still apply. */
28876#ifdef __cplusplus
28877extern "C"
28878#endif
28879char DPSInitialize ();
28880int
28881main ()
28882{
28883return DPSInitialize ();
28884 ;
28885 return 0;
28886}
28887_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028888if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028889 ac_cv_lib_dps_DPSInitialize=yes
28890else
cristy8b350f62009-11-15 23:12:43 +000028891 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028892fi
cristy8b350f62009-11-15 23:12:43 +000028893rm -f core conftest.err conftest.$ac_objext \
28894 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028895LIBS=$ac_check_lib_save_LIBS
28896fi
cristy8b350f62009-11-15 23:12:43 +000028897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028898$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028899if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028900 have_libdps='yes'
28901else
28902 have_libdps='no'
28903fi
28904
28905 if test "$have_libdps" = 'yes'; then
28906 LIBDPS_XT='-lXt'
28907 fi
28908 fi
28909 if test "$have_libdps" = 'yes'; then
28910 passed=`expr $passed + 1`
28911 else
28912 failed=`expr $failed + 1`
28913 fi
cristy8b350f62009-11-15 23:12:43 +000028914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000028915$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028916if ${ac_cv_lib_dpstk_XDPSPixelsPerPoint+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028917 $as_echo_n "(cached) " >&6
28918else
28919 ac_check_lib_save_LIBS=$LIBS
28920LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028921cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028922/* end confdefs.h. */
28923
28924/* Override any GCC internal prototype to avoid an error.
28925 Use char because int might match the return type of a GCC
28926 builtin and then its argument prototype would still apply. */
28927#ifdef __cplusplus
28928extern "C"
28929#endif
28930char XDPSPixelsPerPoint ();
28931int
28932main ()
28933{
28934return XDPSPixelsPerPoint ();
28935 ;
28936 return 0;
28937}
28938_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028939if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028940 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
28941else
cristy8b350f62009-11-15 23:12:43 +000028942 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000028943fi
cristy8b350f62009-11-15 23:12:43 +000028944rm -f core conftest.err conftest.$ac_objext \
28945 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028946LIBS=$ac_check_lib_save_LIBS
28947fi
cristy8b350f62009-11-15 23:12:43 +000028948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000028949$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristyda16f162011-02-19 23:52:17 +000028950if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028951 passed=`expr $passed + 1`
28952else
28953 failed=`expr $failed + 1`
28954fi
28955
cristy8b350f62009-11-15 23:12:43 +000028956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028957$as_echo_n "checking if DPS package is complete... " >&6; }
28958 if test $passed -gt 0; then
28959 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28961$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028962 have_dps='no (failed tests)'
28963 CPPFLAGS="$PERSIST_CPPFLAGS"
28964 else
28965 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
28966 LIBS="$DPS_LIBS $LIBS"
28967
cristy8b350f62009-11-15 23:12:43 +000028968$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028969
cristyad38abe2012-12-23 23:03:21 +000028970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28971$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028972 have_dps='yes'
28973 fi
28974 else
cristyad38abe2012-12-23 23:03:21 +000028975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28976$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028977 CPPFLAGS=$PERSIST_CPPFLAGS
28978 fi
28979fi
cristy73bd4a52010-10-05 11:24:23 +000028980 if test "$have_dps" = 'yes'; then
28981 DPS_DELEGATE_TRUE=
28982 DPS_DELEGATE_FALSE='#'
28983else
28984 DPS_DELEGATE_TRUE='#'
28985 DPS_DELEGATE_FALSE=
28986fi
28987
cristy3ed852e2009-09-05 21:47:34 +000028988
28989
28990
28991#
cristy430a7312010-01-21 20:44:04 +000028992# Set DejaVu font directory.
28993#
28994
28995# Check whether --with-dejavu-font-dir was given.
28996if test "${with_dejavu_font_dir+set}" = set; then :
28997 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
28998else
28999 with_dejavu_font_dir='default'
29000fi
29001
29002
29003if test "$with_dejavu_font_dir" != 'default'; then
29004 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
29005fi
29006
29007
29008#
cristy3ed852e2009-09-05 21:47:34 +000029009# Check for FFTW delegate library.
29010#
29011
29012# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000029013if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029014 withval=$with_fftw; with_fftw=$withval
29015else
29016 with_fftw='yes'
29017fi
29018
29019
29020if test "$with_fftw" != 'yes'; then
29021 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
29022fi
29023
cristy81beccd2011-10-03 18:17:24 +000029024have_fftw='no'
cristy32f75d42015-06-05 18:46:23 +000029025FFTW_CFLAGS=""
29026FFTW_LIBS=""
29027FFTW_PKG=""
29028if test "x$with_fftw" = "xyes"; then
29029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristyad38abe2012-12-23 23:03:21 +000029030$as_echo "-------------------------------------------------------------" >&6; }
cristy32f75d42015-06-05 18:46:23 +000029031
29032pkg_failed=no
29033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw3" >&5
29034$as_echo_n "checking for fftw3... " >&6; }
29035
29036if test -n "$fftw3_CFLAGS"; then
29037 pkg_cv_fftw3_CFLAGS="$fftw3_CFLAGS"
29038 elif test -n "$PKG_CONFIG"; then
29039 if test -n "$PKG_CONFIG" && \
29040 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fftw3 >= 3.0.0\""; } >&5
29041 ($PKG_CONFIG --exists --print-errors "fftw3 >= 3.0.0") 2>&5
29042 ac_status=$?
29043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29044 test $ac_status = 0; }; then
29045 pkg_cv_fftw3_CFLAGS=`$PKG_CONFIG --cflags "fftw3 >= 3.0.0" 2>/dev/null`
29046 test "x$?" != "x0" && pkg_failed=yes
cristy81beccd2011-10-03 18:17:24 +000029047else
cristy32f75d42015-06-05 18:46:23 +000029048 pkg_failed=yes
29049fi
29050 else
29051 pkg_failed=untried
29052fi
29053if test -n "$fftw3_LIBS"; then
29054 pkg_cv_fftw3_LIBS="$fftw3_LIBS"
29055 elif test -n "$PKG_CONFIG"; then
29056 if test -n "$PKG_CONFIG" && \
29057 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fftw3 >= 3.0.0\""; } >&5
29058 ($PKG_CONFIG --exists --print-errors "fftw3 >= 3.0.0") 2>&5
29059 ac_status=$?
29060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29061 test $ac_status = 0; }; then
29062 pkg_cv_fftw3_LIBS=`$PKG_CONFIG --libs "fftw3 >= 3.0.0" 2>/dev/null`
29063 test "x$?" != "x0" && pkg_failed=yes
29064else
29065 pkg_failed=yes
29066fi
29067 else
29068 pkg_failed=untried
cristy3ed852e2009-09-05 21:47:34 +000029069fi
29070
cristy81beccd2011-10-03 18:17:24 +000029071
cristy81beccd2011-10-03 18:17:24 +000029072
cristy32f75d42015-06-05 18:46:23 +000029073if test $pkg_failed = yes; then
29074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29075$as_echo "no" >&6; }
cristy81beccd2011-10-03 18:17:24 +000029076
cristy32f75d42015-06-05 18:46:23 +000029077if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29078 _pkg_short_errors_supported=yes
29079else
29080 _pkg_short_errors_supported=no
29081fi
29082 if test $_pkg_short_errors_supported = yes; then
29083 fftw3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fftw3 >= 3.0.0" 2>&1`
cristy81beccd2011-10-03 18:17:24 +000029084 else
cristy32f75d42015-06-05 18:46:23 +000029085 fftw3_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fftw3 >= 3.0.0" 2>&1`
29086 fi
29087 # Put the nasty error message in config.log where it belongs
29088 echo "$fftw3_PKG_ERRORS" >&5
29089
29090 have_fftw=no
29091elif test $pkg_failed = untried; then
29092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29093$as_echo "no" >&6; }
29094 have_fftw=no
29095else
29096 fftw3_CFLAGS=$pkg_cv_fftw3_CFLAGS
29097 fftw3_LIBS=$pkg_cv_fftw3_LIBS
29098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29099$as_echo "yes" >&6; }
29100 have_fftw=yes
29101fi
29102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29103$as_echo "" >&6; }
29104fi
29105
29106if test "$have_fftw" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000029107
cristy8b350f62009-11-15 23:12:43 +000029108$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029109
cristy32f75d42015-06-05 18:46:23 +000029110 CFLAGS="$fftw3_CFLAGS $CFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000029111fi
cristy32f75d42015-06-05 18:46:23 +000029112
cristy73bd4a52010-10-05 11:24:23 +000029113 if test "$have_fftw" = 'yes'; then
29114 FFTW_DELEGATE_TRUE=
29115 FFTW_DELEGATE_FALSE='#'
29116else
29117 FFTW_DELEGATE_TRUE='#'
29118 FFTW_DELEGATE_FALSE=
29119fi
29120
cristy3ed852e2009-09-05 21:47:34 +000029121
29122
29123
cristy32f75d42015-06-05 18:46:23 +000029124
cristy3ed852e2009-09-05 21:47:34 +000029125#
29126# Check for FlashPIX delegate library.
29127#
29128
29129# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000029130if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029131 withval=$with_fpx; with_fpx=$withval
29132else
29133 with_fpx='yes'
29134fi
29135
29136
29137if test "$with_fpx" != 'yes'; then
29138 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
29139fi
29140
29141have_fpx='no'
29142FPX_LIBS=''
29143if test "$with_fpx" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29145$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000029147$as_echo_n "checking for FlashPIX... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29149$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029150 failed=0
29151 passed=0
29152 ac_ext=cpp
29153ac_cpp='$CXXCPP $CPPFLAGS'
29154ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29155ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29156ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29157
29158
cristy8b350f62009-11-15 23:12:43 +000029159ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029160if test "x$ac_cv_header_fpxlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029161 passed=`expr $passed + 1`
29162else
29163 failed=`expr $failed + 1`
29164fi
29165
29166
cristy8b350f62009-11-15 23:12:43 +000029167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000029168$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029169if ${ac_cv_lib_fpx_FPX_OpenImageByFilename+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029170 $as_echo_n "(cached) " >&6
29171else
29172 ac_check_lib_save_LIBS=$LIBS
29173LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029174cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029175/* end confdefs.h. */
29176
29177/* Override any GCC internal prototype to avoid an error.
29178 Use char because int might match the return type of a GCC
29179 builtin and then its argument prototype would still apply. */
29180#ifdef __cplusplus
29181extern "C"
29182#endif
29183char FPX_OpenImageByFilename ();
29184int
29185main ()
29186{
29187return FPX_OpenImageByFilename ();
29188 ;
29189 return 0;
29190}
29191_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029192if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029193 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
29194else
cristy8b350f62009-11-15 23:12:43 +000029195 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000029196fi
cristy8b350f62009-11-15 23:12:43 +000029197rm -f core conftest.err conftest.$ac_objext \
29198 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029199LIBS=$ac_check_lib_save_LIBS
29200fi
cristy8b350f62009-11-15 23:12:43 +000029201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000029202$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristyda16f162011-02-19 23:52:17 +000029203if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029204 passed=`expr $passed + 1`
29205else
29206 failed=`expr $failed + 1`
29207fi
29208
29209 ac_ext=c
29210ac_cpp='$CPP $CPPFLAGS'
29211ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29212ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29213ac_compiler_gnu=$ac_cv_c_compiler_gnu
29214
cristy8b350f62009-11-15 23:12:43 +000029215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029216$as_echo_n "checking if FlashPIX package is complete... " >&6; }
29217 if test $passed -gt 0; then
29218 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29220$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029221 have_fpx='no (failed tests)'
29222 else
29223 FPX_LIBS='-lfpx'
29224
cristy8b350f62009-11-15 23:12:43 +000029225$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029226
cristyad38abe2012-12-23 23:03:21 +000029227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29228$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029229 have_fpx='yes'
29230 PERLMAINCC="$CXX"
29231 fi
29232 else
cristyad38abe2012-12-23 23:03:21 +000029233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29234$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029235 fi
29236fi
cristy73bd4a52010-10-05 11:24:23 +000029237 if test "$have_fpx" = 'yes'; then
29238 FPX_DELEGATE_TRUE=
29239 FPX_DELEGATE_FALSE='#'
29240else
29241 FPX_DELEGATE_TRUE='#'
29242 FPX_DELEGATE_FALSE=
29243fi
29244
cristy3ed852e2009-09-05 21:47:34 +000029245
cristy853d9902014-08-21 18:50:43 +000029246
29247
29248#
29249# Check for DJVU delegate library.
29250#
29251
29252# Check whether --with-djvu was given.
29253if test "${with_djvu+set}" = set; then :
29254 withval=$with_djvu; with_djvu=$withval
29255else
29256 with_djvu='yes'
29257fi
29258
29259
29260if test "$with_djvu" != 'yes'; then
29261 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
29262fi
29263
29264have_djvu='no'
cristy32f75d42015-06-05 18:46:23 +000029265DJVU_CFLAGS=""
29266DJVU_LIBS=""
29267DJVU_PKG=""
29268if test "x$with_djvu" = "xyes"; then
29269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy853d9902014-08-21 18:50:43 +000029270$as_echo "-------------------------------------------------------------" >&6; }
cristy32f75d42015-06-05 18:46:23 +000029271
29272pkg_failed=no
29273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvuapi" >&5
29274$as_echo_n "checking for ddjvuapi... " >&6; }
29275
29276if test -n "$ddjvuapi_CFLAGS"; then
29277 pkg_cv_ddjvuapi_CFLAGS="$ddjvuapi_CFLAGS"
29278 elif test -n "$PKG_CONFIG"; then
29279 if test -n "$PKG_CONFIG" && \
29280 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ddjvuapi >= 3.5.0\""; } >&5
29281 ($PKG_CONFIG --exists --print-errors "ddjvuapi >= 3.5.0") 2>&5
29282 ac_status=$?
29283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29284 test $ac_status = 0; }; then
29285 pkg_cv_ddjvuapi_CFLAGS=`$PKG_CONFIG --cflags "ddjvuapi >= 3.5.0" 2>/dev/null`
29286 test "x$?" != "x0" && pkg_failed=yes
cristy853d9902014-08-21 18:50:43 +000029287else
cristy32f75d42015-06-05 18:46:23 +000029288 pkg_failed=yes
29289fi
29290 else
29291 pkg_failed=untried
29292fi
29293if test -n "$ddjvuapi_LIBS"; then
29294 pkg_cv_ddjvuapi_LIBS="$ddjvuapi_LIBS"
29295 elif test -n "$PKG_CONFIG"; then
29296 if test -n "$PKG_CONFIG" && \
29297 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ddjvuapi >= 3.5.0\""; } >&5
29298 ($PKG_CONFIG --exists --print-errors "ddjvuapi >= 3.5.0") 2>&5
29299 ac_status=$?
29300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29301 test $ac_status = 0; }; then
29302 pkg_cv_ddjvuapi_LIBS=`$PKG_CONFIG --libs "ddjvuapi >= 3.5.0" 2>/dev/null`
29303 test "x$?" != "x0" && pkg_failed=yes
29304else
29305 pkg_failed=yes
29306fi
29307 else
29308 pkg_failed=untried
cristy853d9902014-08-21 18:50:43 +000029309fi
29310
29311
cristy853d9902014-08-21 18:50:43 +000029312
cristy32f75d42015-06-05 18:46:23 +000029313if test $pkg_failed = yes; then
29314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29315$as_echo "no" >&6; }
cristy853d9902014-08-21 18:50:43 +000029316
cristy32f75d42015-06-05 18:46:23 +000029317if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29318 _pkg_short_errors_supported=yes
29319else
29320 _pkg_short_errors_supported=no
29321fi
29322 if test $_pkg_short_errors_supported = yes; then
29323 ddjvuapi_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ddjvuapi >= 3.5.0" 2>&1`
cristy853d9902014-08-21 18:50:43 +000029324 else
cristy32f75d42015-06-05 18:46:23 +000029325 ddjvuapi_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ddjvuapi >= 3.5.0" 2>&1`
29326 fi
29327 # Put the nasty error message in config.log where it belongs
29328 echo "$ddjvuapi_PKG_ERRORS" >&5
29329
29330 have_djvu=no
29331elif test $pkg_failed = untried; then
29332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29333$as_echo "no" >&6; }
29334 have_djvu=no
29335else
29336 ddjvuapi_CFLAGS=$pkg_cv_ddjvuapi_CFLAGS
29337 ddjvuapi_LIBS=$pkg_cv_ddjvuapi_LIBS
29338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29339$as_echo "yes" >&6; }
29340 have_djvu=yes
29341fi
29342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29343$as_echo "" >&6; }
29344fi
29345
29346if test "$have_djvu" = 'yes'; then
cristy853d9902014-08-21 18:50:43 +000029347
29348$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
29349
cristy32f75d42015-06-05 18:46:23 +000029350 CFLAGS="$DDJVUAPI_CFLAGS $CFLAGS"
cristy853d9902014-08-21 18:50:43 +000029351fi
cristy32f75d42015-06-05 18:46:23 +000029352
cristy853d9902014-08-21 18:50:43 +000029353 if test "$have_djvu" = 'yes'; then
29354 DJVU_DELEGATE_TRUE=
29355 DJVU_DELEGATE_FALSE='#'
29356else
29357 DJVU_DELEGATE_TRUE='#'
29358 DJVU_DELEGATE_FALSE=
29359fi
29360
29361
cristy3ed852e2009-09-05 21:47:34 +000029362
29363
cristy32f75d42015-06-05 18:46:23 +000029364
cristy3ed852e2009-09-05 21:47:34 +000029365#
29366# Check for fontconfig delegate library.
29367#
29368
29369# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000029370if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029371 withval=$with_fontconfig; with_fontconfig=$withval
29372else
cristyfc3d0222012-02-07 15:05:57 +000029373 with_fontconfig='yes'
cristy3ed852e2009-09-05 21:47:34 +000029374fi
29375
29376
29377if test "$with_fontconfig" != 'yes'; then
29378 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
29379fi
29380
29381have_fontconfig='no'
29382FONTCONFIG_CFLAGS=""
29383FONTCONFIG_LIBS=""
29384FONTCONFIG_PKG=""
29385if test "x$with_fontconfig" = "xyes"; then
cristy32f75d42015-06-05 18:46:23 +000029386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristyad38abe2012-12-23 23:03:21 +000029387$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029388
29389pkg_failed=no
29390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
29391$as_echo_n "checking for FONTCONFIG... " >&6; }
29392
29393if test -n "$FONTCONFIG_CFLAGS"; then
29394 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
29395 elif test -n "$PKG_CONFIG"; then
29396 if test -n "$PKG_CONFIG" && \
29397 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
29398 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
29399 ac_status=$?
29400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29401 test $ac_status = 0; }; then
29402 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000029403 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000029404else
29405 pkg_failed=yes
29406fi
29407 else
29408 pkg_failed=untried
29409fi
29410if test -n "$FONTCONFIG_LIBS"; then
29411 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
29412 elif test -n "$PKG_CONFIG"; then
29413 if test -n "$PKG_CONFIG" && \
29414 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
29415 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
29416 ac_status=$?
29417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29418 test $ac_status = 0; }; then
29419 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000029420 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000029421else
29422 pkg_failed=yes
29423fi
29424 else
29425 pkg_failed=untried
29426fi
29427
29428
29429
29430if test $pkg_failed = yes; then
cristy146497a2015-05-17 22:46:16 +000029431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29432$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029433
29434if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29435 _pkg_short_errors_supported=yes
29436else
29437 _pkg_short_errors_supported=no
29438fi
29439 if test $_pkg_short_errors_supported = yes; then
cristy146497a2015-05-17 22:46:16 +000029440 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fontconfig >= 2.1.0" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000029441 else
cristy146497a2015-05-17 22:46:16 +000029442 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fontconfig >= 2.1.0" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000029443 fi
29444 # Put the nasty error message in config.log where it belongs
29445 echo "$FONTCONFIG_PKG_ERRORS" >&5
29446
cristy146497a2015-05-17 22:46:16 +000029447 have_fontconfig=no
cristy73bd4a52010-10-05 11:24:23 +000029448elif test $pkg_failed = untried; then
cristy146497a2015-05-17 22:46:16 +000029449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29450$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029451 have_fontconfig=no
29452else
29453 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
29454 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
29455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29456$as_echo "yes" >&6; }
29457 have_fontconfig=yes
29458fi
cristy32f75d42015-06-05 18:46:23 +000029459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristyad38abe2012-12-23 23:03:21 +000029460$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029461fi
29462
29463if test "$have_fontconfig" = 'yes'; then
29464
cristy8b350f62009-11-15 23:12:43 +000029465$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029466
cristy32f75d42015-06-05 18:46:23 +000029467 CFLAGS="$FONTCONFIG_CFLAGS $CFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000029468fi
29469
cristy73bd4a52010-10-05 11:24:23 +000029470 if test "$have_fontconfig" = 'yes'; then
29471 FONTCONFIG_DELEGATE_TRUE=
29472 FONTCONFIG_DELEGATE_FALSE='#'
29473else
29474 FONTCONFIG_DELEGATE_TRUE='#'
29475 FONTCONFIG_DELEGATE_FALSE=
29476fi
29477
cristy3ed852e2009-09-05 21:47:34 +000029478
29479
29480
29481
29482#
cristy03f187e2013-01-24 00:22:19 +000029483# Check for the Freetype delegate library.
cristy3ed852e2009-09-05 21:47:34 +000029484#
29485
29486# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000029487if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029488 withval=$with_freetype; with_freetype=$withval
29489else
29490 with_freetype='yes'
29491fi
29492
29493
cristy3ed852e2009-09-05 21:47:34 +000029494if test "$with_freetype" != 'yes'; then
29495 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
29496fi
29497
cristy81beccd2011-10-03 18:17:24 +000029498have_freetype='no'
cristy03f187e2013-01-24 00:22:19 +000029499FREETYPE_CFLAGS=""
29500FREETYPE_LIBS=""
29501FREETYPE_PKG=""
29502if test "x$with_freetype" = "xyes"; then
cristy32f75d42015-06-05 18:46:23 +000029503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristyad38abe2012-12-23 23:03:21 +000029504$as_echo "-------------------------------------------------------------" >&6; }
cristy03f187e2013-01-24 00:22:19 +000029505
29506pkg_failed=no
29507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5
29508$as_echo_n "checking for FREETYPE... " >&6; }
29509
29510if test -n "$FREETYPE_CFLAGS"; then
29511 pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS"
29512 elif test -n "$PKG_CONFIG"; then
29513 if test -n "$PKG_CONFIG" && \
29514 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
29515 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
29516 ac_status=$?
29517 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29518 test $ac_status = 0; }; then
29519 pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000029520 test "x$?" != "x0" && pkg_failed=yes
cristy03f187e2013-01-24 00:22:19 +000029521else
29522 pkg_failed=yes
29523fi
29524 else
29525 pkg_failed=untried
29526fi
29527if test -n "$FREETYPE_LIBS"; then
29528 pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS"
29529 elif test -n "$PKG_CONFIG"; then
29530 if test -n "$PKG_CONFIG" && \
29531 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
29532 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
29533 ac_status=$?
29534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29535 test $ac_status = 0; }; then
29536 pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000029537 test "x$?" != "x0" && pkg_failed=yes
cristy03f187e2013-01-24 00:22:19 +000029538else
29539 pkg_failed=yes
29540fi
29541 else
29542 pkg_failed=untried
29543fi
29544
29545
29546
29547if test $pkg_failed = yes; then
cristy146497a2015-05-17 22:46:16 +000029548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29549$as_echo "no" >&6; }
cristy03f187e2013-01-24 00:22:19 +000029550
29551if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29552 _pkg_short_errors_supported=yes
29553else
29554 _pkg_short_errors_supported=no
29555fi
29556 if test $_pkg_short_errors_supported = yes; then
cristy146497a2015-05-17 22:46:16 +000029557 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "freetype2" 2>&1`
cristy03f187e2013-01-24 00:22:19 +000029558 else
cristy146497a2015-05-17 22:46:16 +000029559 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "freetype2" 2>&1`
cristy03f187e2013-01-24 00:22:19 +000029560 fi
29561 # Put the nasty error message in config.log where it belongs
29562 echo "$FREETYPE_PKG_ERRORS" >&5
29563
cristy146497a2015-05-17 22:46:16 +000029564 have_freetype=no
cristy03f187e2013-01-24 00:22:19 +000029565elif test $pkg_failed = untried; then
cristy146497a2015-05-17 22:46:16 +000029566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29567$as_echo "no" >&6; }
cristy03f187e2013-01-24 00:22:19 +000029568 have_freetype=no
29569else
29570 FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS
29571 FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS
29572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29573$as_echo "yes" >&6; }
29574 have_freetype=yes
29575fi
cristy32f75d42015-06-05 18:46:23 +000029576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristyad38abe2012-12-23 23:03:21 +000029577$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029578fi
29579
cristy03f187e2013-01-24 00:22:19 +000029580if test "$have_freetype" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000029581
cristy8b350f62009-11-15 23:12:43 +000029582$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029583
cristy32f75d42015-06-05 18:46:23 +000029584 CFLAGS="$FREETYPE_CFLAGS $CFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000029585fi
cristy03f187e2013-01-24 00:22:19 +000029586
cristy73bd4a52010-10-05 11:24:23 +000029587 if test "$have_freetype" = 'yes'; then
29588 FREETYPE_DELEGATE_TRUE=
29589 FREETYPE_DELEGATE_FALSE='#'
29590else
29591 FREETYPE_DELEGATE_TRUE='#'
29592 FREETYPE_DELEGATE_FALSE=
29593fi
29594
cristy3ed852e2009-09-05 21:47:34 +000029595
29596
29597
cristy03f187e2013-01-24 00:22:19 +000029598
cristy3ed852e2009-09-05 21:47:34 +000029599#
29600# Check for Ghostscript library or framework.
29601#
29602# Test for iapi.h & test for gsapi_new_instance in -lgs
29603# or -framework Ghostscript
29604
29605
29606# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000029607if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029608 withval=$with_gslib; with_gslib=$withval
29609else
29610 with_gslib='no'
29611fi
29612
29613
cristyb7931f12009-09-25 10:22:21 +000029614gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000029615if test "$with_gslib" != 'yes'; then
29616 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
29617fi
29618
29619have_gslib='no'
29620GS_LIBS=''
29621if test "$with_gslib" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29623$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000029625$as_echo_n "checking for Ghostscript... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29627$as_echo "" >&6; }
cristyb7931f12009-09-25 10:22:21 +000029628 framework=0
cristy3ed852e2009-09-05 21:47:34 +000029629 failed=0
29630 passed=0
cristy8b350f62009-11-15 23:12:43 +000029631 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 +000029632if test "x$ac_cv_header_ghostscript_iapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029633 passed=`expr $passed + 1`
29634else
29635 failed=`expr $failed + 1`
29636fi
29637
29638
cristy8b350f62009-11-15 23:12:43 +000029639 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 +000029640if test "x$ac_cv_header_ghostscript_ierrors_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029641 passed=`expr $passed + 1`
29642else
29643 failed=`expr $failed + 1`
29644fi
29645
29646
cristy73bd4a52010-10-05 11:24:23 +000029647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
29648$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029649if ${ac_cv_framework_Ghostscript_gsapi_new_instance+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000029650 $as_echo_n "(cached) " >&6
29651else
29652 ac_check_framework_save_LIBS=$LIBS
29653LIBS="-framework Ghostscript $LIBS"
29654cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29655/* end confdefs.h. */
29656
29657/* Override any GCC internal prototype to avoid an error.
29658 Use char because int might match the return type of a GCC
29659 builtin and then its argument prototype would still apply. */
29660#ifdef __cplusplus
29661extern "C"
29662#endif
29663char gsapi_new_instance ();
29664int
29665main ()
29666{
29667return gsapi_new_instance ();
29668 ;
29669 return 0;
29670}
29671_ACEOF
29672if ac_fn_c_try_link "$LINENO"; then :
29673 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
29674else
29675 ac_cv_framework_Ghostscript_gsapi_new_instance=no
29676fi
29677rm -f core conftest.err conftest.$ac_objext \
29678 conftest$ac_exeext conftest.$ac_ext
29679LIBS=$ac_check_framework_save_LIBS
29680fi
29681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
29682$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
29683if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
29684 framework=`expr $framework + 1`
29685else
29686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000029687$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029688if ${ac_cv_lib_gs_gsapi_new_instance+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029689 $as_echo_n "(cached) " >&6
29690else
29691 ac_check_lib_save_LIBS=$LIBS
29692LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029693cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029694/* end confdefs.h. */
29695
29696/* Override any GCC internal prototype to avoid an error.
29697 Use char because int might match the return type of a GCC
29698 builtin and then its argument prototype would still apply. */
29699#ifdef __cplusplus
29700extern "C"
29701#endif
29702char gsapi_new_instance ();
29703int
29704main ()
29705{
29706return gsapi_new_instance ();
29707 ;
29708 return 0;
29709}
29710_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029711if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029712 ac_cv_lib_gs_gsapi_new_instance=yes
29713else
cristy8b350f62009-11-15 23:12:43 +000029714 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000029715fi
cristy8b350f62009-11-15 23:12:43 +000029716rm -f core conftest.err conftest.$ac_objext \
29717 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029718LIBS=$ac_check_lib_save_LIBS
29719fi
cristy8b350f62009-11-15 23:12:43 +000029720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000029721$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristyda16f162011-02-19 23:52:17 +000029722if test "x$ac_cv_lib_gs_gsapi_new_instance" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029723 passed=`expr $passed + 1`
29724else
29725 failed=`expr $failed + 1`
29726fi
cristy73bd4a52010-10-05 11:24:23 +000029727
29728fi
cristy8b350f62009-11-15 23:12:43 +000029729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029730$as_echo_n "checking if Ghostscript package is complete... " >&6; }
29731 if test $passed -gt 0; then
29732 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29734$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029735 have_gslib='no (failed tests)'
29736 else
29737 if test $framework -gt 0; then
29738 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000029739 gslib_framework='yes'
cristyad38abe2012-12-23 23:03:21 +000029740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
29741$as_echo "yes, using framework." >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029742 else
cristyad38abe2012-12-23 23:03:21 +000029743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
29744$as_echo "yes, using library." >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029745 GS_LIBS='-lgs'
29746 fi
29747 LIBS="$GS_LIBS $LIBS"
29748
cristy8b350f62009-11-15 23:12:43 +000029749$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029750
29751 have_gslib='yes'
29752 fi
29753 else
cristyad38abe2012-12-23 23:03:21 +000029754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29755$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029756 fi
29757fi
cristy73bd4a52010-10-05 11:24:23 +000029758 if test "$have_gslib" = 'yes'; then
29759 GS_DELEGATE_TRUE=
29760 GS_DELEGATE_FALSE='#'
29761else
29762 GS_DELEGATE_TRUE='#'
29763 GS_DELEGATE_FALSE=
29764fi
29765
cristy3ed852e2009-09-05 21:47:34 +000029766
29767
29768# Set default font search path
29769
29770# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000029771if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029772 withval=$with_fontpath; with_fontpath=$withval
29773else
29774 with_fontpath=''
29775fi
29776
29777
29778if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
29779 with_fontpath=''
29780else
29781
29782cat >>confdefs.h <<_ACEOF
29783#define MAGICK_FONT_PATH "$with_fontpath"
29784_ACEOF
29785
29786fi
29787if test "$with_fontpath=" != ''; then
29788 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
29789fi
29790
29791# Set Ghostscript font directory
29792
29793# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000029794if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029795 withval=$with_gs_font_dir; with_gs_font_dir=$withval
29796else
29797 with_gs_font_dir='default'
29798fi
29799
29800
29801if test "$with_gs_font_dir" != 'default'; then
29802 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
29803fi
29804
29805
29806#
29807# Check for GVC delegate library.
29808#
29809
29810# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000029811if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029812 withval=$with_gvc; with_gvc=$withval
29813else
cristy1b70dc82012-07-01 23:15:05 +000029814 with_gvc='no'
cristy3ed852e2009-09-05 21:47:34 +000029815fi
29816
29817
29818if test "$with_gvc" != 'yes'; then
29819 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
29820fi
29821
29822GVC_PKG=""
29823if test "x$with_gvc" = "xyes"; then
cristy32f75d42015-06-05 18:46:23 +000029824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristyad38abe2012-12-23 23:03:21 +000029825$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029826
29827pkg_failed=no
29828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
29829$as_echo_n "checking for GVC... " >&6; }
29830
29831if test -n "$GVC_CFLAGS"; then
29832 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
29833 elif test -n "$PKG_CONFIG"; then
29834 if test -n "$PKG_CONFIG" && \
29835 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29836 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29837 ac_status=$?
29838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29839 test $ac_status = 0; }; then
29840 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000029841 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000029842else
29843 pkg_failed=yes
29844fi
29845 else
29846 pkg_failed=untried
29847fi
29848if test -n "$GVC_LIBS"; then
29849 pkg_cv_GVC_LIBS="$GVC_LIBS"
29850 elif test -n "$PKG_CONFIG"; then
29851 if test -n "$PKG_CONFIG" && \
29852 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29853 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29854 ac_status=$?
29855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29856 test $ac_status = 0; }; then
29857 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000029858 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000029859else
29860 pkg_failed=yes
29861fi
29862 else
29863 pkg_failed=untried
29864fi
29865
29866
29867
29868if test $pkg_failed = yes; then
cristy146497a2015-05-17 22:46:16 +000029869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29870$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029871
29872if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29873 _pkg_short_errors_supported=yes
29874else
29875 _pkg_short_errors_supported=no
29876fi
29877 if test $_pkg_short_errors_supported = yes; then
cristy146497a2015-05-17 22:46:16 +000029878 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libgvc >= 2.9.0" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000029879 else
cristy146497a2015-05-17 22:46:16 +000029880 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libgvc >= 2.9.0" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000029881 fi
29882 # Put the nasty error message in config.log where it belongs
29883 echo "$GVC_PKG_ERRORS" >&5
29884
cristy146497a2015-05-17 22:46:16 +000029885 have_gvc=no
cristy73bd4a52010-10-05 11:24:23 +000029886elif test $pkg_failed = untried; then
cristy146497a2015-05-17 22:46:16 +000029887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29888$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029889 have_gvc=no
29890else
29891 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
29892 GVC_LIBS=$pkg_cv_GVC_LIBS
29893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29894$as_echo "yes" >&6; }
29895 have_gvc=yes
29896fi
cristy32f75d42015-06-05 18:46:23 +000029897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristyad38abe2012-12-23 23:03:21 +000029898$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029899fi
29900
29901if test "$have_gvc" = 'yes'; then
29902
cristy8b350f62009-11-15 23:12:43 +000029903$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029904
cristy32f75d42015-06-05 18:46:23 +000029905 CFLAGS="$GVC_CFLAGS $CFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000029906fi
29907
cristy73bd4a52010-10-05 11:24:23 +000029908 if test "$have_gvc" = 'yes'; then
29909 GVC_DELEGATE_TRUE=
29910 GVC_DELEGATE_FALSE='#'
29911else
29912 GVC_DELEGATE_TRUE='#'
29913 GVC_DELEGATE_FALSE=
29914fi
29915
cristy3ed852e2009-09-05 21:47:34 +000029916
29917
29918
29919
29920#
29921# Check for JBIG delegate library.
29922#
29923
29924
29925# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000029926if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029927 withval=$with_jbig; with_jbig=$withval
29928else
29929 with_jbig='yes'
29930fi
29931
29932
29933have_jbig='no'
29934JBIG_LIBS=''
29935if test "$with_jbig" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29937$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029939$as_echo_n "checking for JBIG... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29941$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029942 failed=0
29943 passed=0
cristy8b350f62009-11-15 23:12:43 +000029944 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029945if test "x$ac_cv_header_jbig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029946 passed=`expr $passed + 1`
29947else
29948 failed=`expr $failed + 1`
29949fi
29950
29951
cristy8b350f62009-11-15 23:12:43 +000029952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000029953$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029954if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029955 $as_echo_n "(cached) " >&6
29956else
29957 ac_check_lib_save_LIBS=$LIBS
29958LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029959cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029960/* end confdefs.h. */
29961
29962/* Override any GCC internal prototype to avoid an error.
29963 Use char because int might match the return type of a GCC
29964 builtin and then its argument prototype would still apply. */
29965#ifdef __cplusplus
29966extern "C"
29967#endif
29968char jbg_dec_init ();
29969int
29970main ()
29971{
29972return jbg_dec_init ();
29973 ;
29974 return 0;
29975}
29976_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029977if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029978 ac_cv_lib_jbig_jbg_dec_init=yes
29979else
cristy8b350f62009-11-15 23:12:43 +000029980 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000029981fi
cristy8b350f62009-11-15 23:12:43 +000029982rm -f core conftest.err conftest.$ac_objext \
29983 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029984LIBS=$ac_check_lib_save_LIBS
29985fi
cristy8b350f62009-11-15 23:12:43 +000029986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000029987$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000029988if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029989 passed=`expr $passed + 1`
29990else
29991 failed=`expr $failed + 1`
29992fi
29993
cristy8b350f62009-11-15 23:12:43 +000029994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029995$as_echo_n "checking if JBIG package is complete... " >&6; }
29996 if test $passed -gt 0; then
29997 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29999$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030000 have_jbig='no (failed tests)'
30001 else
30002 JBIG_LIBS='-ljbig'
30003 LIBS="$JBIG_LIBS $LIBS"
30004
cristy8b350f62009-11-15 23:12:43 +000030005$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030006
cristyad38abe2012-12-23 23:03:21 +000030007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30008$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030009 have_jbig='yes'
30010 fi
30011 else
cristyad38abe2012-12-23 23:03:21 +000030012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30013$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030014 fi
30015fi
cristy73bd4a52010-10-05 11:24:23 +000030016 if test "$have_jbig" = 'yes'; then
30017 JBIG_DELEGATE_TRUE=
30018 JBIG_DELEGATE_FALSE='#'
30019else
30020 JBIG_DELEGATE_TRUE='#'
30021 JBIG_DELEGATE_FALSE=
30022fi
30023
cristy3ed852e2009-09-05 21:47:34 +000030024
30025
30026
30027#
30028# Check for JPEG delegate library.
30029#
30030
30031# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000030032if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030033 withval=$with_jpeg; with_jpeg=$withval
30034else
30035 with_jpeg='yes'
30036fi
30037
30038
30039if test "$with_jpeg" != 'yes'; then
30040 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
30041fi
30042
30043have_jpeg='no'
30044JPEG_LIBS=''
30045if test "$with_jpeg" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000030046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30047$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000030049$as_echo_n "checking for JPEG... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000030050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30051$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030052 failed=0
30053 passed=0
cristy8b350f62009-11-15 23:12:43 +000030054 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030055if test "x$ac_cv_header_jconfig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030056 passed=`expr $passed + 1`
30057else
30058 failed=`expr $failed + 1`
30059fi
30060
30061
cristy8b350f62009-11-15 23:12:43 +000030062 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030063if test "x$ac_cv_header_jerror_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030064 passed=`expr $passed + 1`
30065else
30066 failed=`expr $failed + 1`
30067fi
30068
30069
cristy8b350f62009-11-15 23:12:43 +000030070 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030071if test "x$ac_cv_header_jmorecfg_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030072 passed=`expr $passed + 1`
30073else
30074 failed=`expr $failed + 1`
30075fi
30076
30077
cristy8b350f62009-11-15 23:12:43 +000030078 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030079if test "x$ac_cv_header_jpeglib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030080 passed=`expr $passed + 1`
30081else
30082 failed=`expr $failed + 1`
30083fi
30084
30085
cristy8b350f62009-11-15 23:12:43 +000030086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000030087$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030088if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030089 $as_echo_n "(cached) " >&6
30090else
30091 ac_check_lib_save_LIBS=$LIBS
30092LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030093cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030094/* end confdefs.h. */
30095
30096/* Override any GCC internal prototype to avoid an error.
30097 Use char because int might match the return type of a GCC
30098 builtin and then its argument prototype would still apply. */
30099#ifdef __cplusplus
30100extern "C"
30101#endif
30102char jpeg_read_header ();
30103int
30104main ()
30105{
30106return jpeg_read_header ();
30107 ;
30108 return 0;
30109}
30110_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030111if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030112 ac_cv_lib_jpeg_jpeg_read_header=yes
30113else
cristy8b350f62009-11-15 23:12:43 +000030114 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000030115fi
cristy8b350f62009-11-15 23:12:43 +000030116rm -f core conftest.err conftest.$ac_objext \
30117 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030118LIBS=$ac_check_lib_save_LIBS
30119fi
cristy8b350f62009-11-15 23:12:43 +000030120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000030121$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristyda16f162011-02-19 23:52:17 +000030122if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030123 passed=`expr $passed + 1`
30124else
30125 failed=`expr $failed + 1`
30126fi
30127
30128
30129# Test for compatible JPEG library
30130if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000030131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000030132$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030133if ${ac_cv_jpeg_version_ok+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030134 $as_echo_n "(cached) " >&6
30135else
cristy8b350f62009-11-15 23:12:43 +000030136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030137/* end confdefs.h. */
30138#include <stdio.h>
30139#include <stdlib.h>
30140#include <jpeglib.h>
30141
30142int
30143main ()
30144{
30145
30146#if JPEG_LIB_VERSION < 62
30147#error IJG JPEG library must be version 6b or newer!
30148#endif
30149return 0;
30150
30151 ;
30152 return 0;
30153}
30154_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030155if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030156 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
30157else
cristy8b350f62009-11-15 23:12:43 +000030158 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000030159fi
cristy3ed852e2009-09-05 21:47:34 +000030160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30161fi
cristy8b350f62009-11-15 23:12:43 +000030162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000030163$as_echo "$ac_cv_jpeg_version_ok" >&6; }
30164fi
cristy8b350f62009-11-15 23:12:43 +000030165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030166$as_echo_n "checking if JPEG package is complete... " >&6; }
30167 if test $passed -gt 0; then
30168 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000030169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30170$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030171 have_jpeg='no (failed tests)'
30172 else
30173 JPEG_LIBS='-ljpeg'
30174 LIBS="$JPEG_LIBS $LIBS"
30175
cristy8b350f62009-11-15 23:12:43 +000030176$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030177
cristyad38abe2012-12-23 23:03:21 +000030178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30179$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030180 have_jpeg='yes'
30181 fi
30182 else
cristyad38abe2012-12-23 23:03:21 +000030183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30184$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030185 fi
30186fi
cristy73bd4a52010-10-05 11:24:23 +000030187 if test "$have_jpeg" = 'yes'; then
30188 JPEG_DELEGATE_TRUE=
30189 JPEG_DELEGATE_FALSE='#'
30190else
30191 JPEG_DELEGATE_TRUE='#'
30192 JPEG_DELEGATE_FALSE=
30193fi
30194
cristy3ed852e2009-09-05 21:47:34 +000030195
30196
30197
30198#
cristy3ed852e2009-09-05 21:47:34 +000030199# Check for LCMS delegate library.
30200#
30201
30202# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000030203if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030204 withval=$with_lcms; with_lcms=$withval
30205else
30206 with_lcms='yes'
30207fi
30208
cristy71203402010-06-18 13:12:03 +000030209if test "$with_lcms" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000030210 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
30211fi
30212
cristy71203402010-06-18 13:12:03 +000030213have_lcms='no'
cristy32f75d42015-06-05 18:46:23 +000030214LCMS_CFLAGS=""
30215LCMS_LIBS=""
30216LCMS_PKG=""
30217if test "x$with_lcms" = "xyes"; then
30218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristyad38abe2012-12-23 23:03:21 +000030219$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000030220
cristy32f75d42015-06-05 18:46:23 +000030221pkg_failed=no
30222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS" >&5
30223$as_echo_n "checking for LCMS... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030224
cristy32f75d42015-06-05 18:46:23 +000030225if test -n "$LCMS_CFLAGS"; then
30226 pkg_cv_LCMS_CFLAGS="$LCMS_CFLAGS"
30227 elif test -n "$PKG_CONFIG"; then
30228 if test -n "$PKG_CONFIG" && \
30229 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms >= 1.0.0\""; } >&5
30230 ($PKG_CONFIG --exists --print-errors "lcms >= 1.0.0") 2>&5
30231 ac_status=$?
30232 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30233 test $ac_status = 0; }; then
30234 pkg_cv_LCMS_CFLAGS=`$PKG_CONFIG --cflags "lcms >= 1.0.0" 2>/dev/null`
30235 test "x$?" != "x0" && pkg_failed=yes
cristy3ed852e2009-09-05 21:47:34 +000030236else
cristy32f75d42015-06-05 18:46:23 +000030237 pkg_failed=yes
cristy3ed852e2009-09-05 21:47:34 +000030238fi
cristy32f75d42015-06-05 18:46:23 +000030239 else
30240 pkg_failed=untried
cristy3ed852e2009-09-05 21:47:34 +000030241fi
cristy32f75d42015-06-05 18:46:23 +000030242if test -n "$LCMS_LIBS"; then
30243 pkg_cv_LCMS_LIBS="$LCMS_LIBS"
30244 elif test -n "$PKG_CONFIG"; then
30245 if test -n "$PKG_CONFIG" && \
30246 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms >= 1.0.0\""; } >&5
30247 ($PKG_CONFIG --exists --print-errors "lcms >= 1.0.0") 2>&5
30248 ac_status=$?
30249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30250 test $ac_status = 0; }; then
30251 pkg_cv_LCMS_LIBS=`$PKG_CONFIG --libs "lcms >= 1.0.0" 2>/dev/null`
30252 test "x$?" != "x0" && pkg_failed=yes
cristy3ed852e2009-09-05 21:47:34 +000030253else
cristy32f75d42015-06-05 18:46:23 +000030254 pkg_failed=yes
30255fi
30256 else
30257 pkg_failed=untried
cristy3ed852e2009-09-05 21:47:34 +000030258fi
30259
cristy32f75d42015-06-05 18:46:23 +000030260
30261
30262if test $pkg_failed = yes; then
30263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30264$as_echo "no" >&6; }
30265
30266if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30267 _pkg_short_errors_supported=yes
30268else
30269 _pkg_short_errors_supported=no
30270fi
30271 if test $_pkg_short_errors_supported = yes; then
30272 LCMS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lcms >= 1.0.0" 2>&1`
30273 else
30274 LCMS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lcms >= 1.0.0" 2>&1`
30275 fi
30276 # Put the nasty error message in config.log where it belongs
30277 echo "$LCMS_PKG_ERRORS" >&5
30278
30279 have_lcms=no
30280elif test $pkg_failed = untried; then
30281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30282$as_echo "no" >&6; }
30283 have_lcms=no
30284else
30285 LCMS_CFLAGS=$pkg_cv_LCMS_CFLAGS
30286 LCMS_LIBS=$pkg_cv_LCMS_LIBS
cristyad38abe2012-12-23 23:03:21 +000030287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30288$as_echo "yes" >&6; }
cristy32f75d42015-06-05 18:46:23 +000030289 have_lcms=yes
30290fi
30291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30292$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030293fi
cristy71203402010-06-18 13:12:03 +000030294
cristy32f75d42015-06-05 18:46:23 +000030295if test "$have_lcms" = 'yes'; then
30296
30297$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
30298
30299 CFLAGS="$LCMS_CFLAGS $CFLAGS"
30300fi
30301
30302 if test "$have_lcms" = 'yes'; then
cristy73bd4a52010-10-05 11:24:23 +000030303 LCMS_DELEGATE_TRUE=
30304 LCMS_DELEGATE_FALSE='#'
30305else
30306 LCMS_DELEGATE_TRUE='#'
30307 LCMS_DELEGATE_FALSE=
30308fi
30309
cristy71203402010-06-18 13:12:03 +000030310
cristy3ed852e2009-09-05 21:47:34 +000030311
30312
30313
30314#
cristy99db3872014-01-01 15:11:34 +000030315# Check for the OpenJP2 delegate library.
30316#
30317
30318# Check whether --with-openjp2 was given.
30319if test "${with_openjp2+set}" = set; then :
30320 withval=$with_openjp2; with_openjp2=$withval
30321else
30322 with_openjp2='yes'
30323fi
30324
30325
30326if test "$with_openjp2" != 'yes'; then
30327 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openjp2=$with_openjp2 "
30328fi
30329
30330have_openjp2='no'
30331LIBOPENJP2_CFLAGS=""
30332LIBOPENJP2_LIBS=""
30333LIBOPENJP2_PKG=""
30334if test "x$with_openjp2" = "xyes"; then
cristy32f75d42015-06-05 18:46:23 +000030335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy99db3872014-01-01 15:11:34 +000030336$as_echo "-------------------------------------------------------------" >&6; }
30337
30338pkg_failed=no
30339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBOPENJP2" >&5
30340$as_echo_n "checking for LIBOPENJP2... " >&6; }
30341
30342if test -n "$LIBOPENJP2_CFLAGS"; then
30343 pkg_cv_LIBOPENJP2_CFLAGS="$LIBOPENJP2_CFLAGS"
30344 elif test -n "$PKG_CONFIG"; then
30345 if test -n "$PKG_CONFIG" && \
cristybc964932014-05-08 21:45:03 +000030346 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libopenjp2 >= 2.1.0\""; } >&5
30347 ($PKG_CONFIG --exists --print-errors "libopenjp2 >= 2.1.0") 2>&5
cristy99db3872014-01-01 15:11:34 +000030348 ac_status=$?
30349 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30350 test $ac_status = 0; }; then
cristybc964932014-05-08 21:45:03 +000030351 pkg_cv_LIBOPENJP2_CFLAGS=`$PKG_CONFIG --cflags "libopenjp2 >= 2.1.0" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000030352 test "x$?" != "x0" && pkg_failed=yes
cristy99db3872014-01-01 15:11:34 +000030353else
30354 pkg_failed=yes
30355fi
30356 else
30357 pkg_failed=untried
30358fi
30359if test -n "$LIBOPENJP2_LIBS"; then
30360 pkg_cv_LIBOPENJP2_LIBS="$LIBOPENJP2_LIBS"
30361 elif test -n "$PKG_CONFIG"; then
30362 if test -n "$PKG_CONFIG" && \
cristybc964932014-05-08 21:45:03 +000030363 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libopenjp2 >= 2.1.0\""; } >&5
30364 ($PKG_CONFIG --exists --print-errors "libopenjp2 >= 2.1.0") 2>&5
cristy99db3872014-01-01 15:11:34 +000030365 ac_status=$?
30366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30367 test $ac_status = 0; }; then
cristybc964932014-05-08 21:45:03 +000030368 pkg_cv_LIBOPENJP2_LIBS=`$PKG_CONFIG --libs "libopenjp2 >= 2.1.0" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000030369 test "x$?" != "x0" && pkg_failed=yes
cristy99db3872014-01-01 15:11:34 +000030370else
30371 pkg_failed=yes
30372fi
30373 else
30374 pkg_failed=untried
30375fi
30376
30377
30378
30379if test $pkg_failed = yes; then
cristy146497a2015-05-17 22:46:16 +000030380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30381$as_echo "no" >&6; }
cristy99db3872014-01-01 15:11:34 +000030382
30383if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30384 _pkg_short_errors_supported=yes
30385else
30386 _pkg_short_errors_supported=no
30387fi
30388 if test $_pkg_short_errors_supported = yes; then
cristy146497a2015-05-17 22:46:16 +000030389 LIBOPENJP2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libopenjp2 >= 2.1.0" 2>&1`
cristy99db3872014-01-01 15:11:34 +000030390 else
cristy146497a2015-05-17 22:46:16 +000030391 LIBOPENJP2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libopenjp2 >= 2.1.0" 2>&1`
cristy99db3872014-01-01 15:11:34 +000030392 fi
30393 # Put the nasty error message in config.log where it belongs
30394 echo "$LIBOPENJP2_PKG_ERRORS" >&5
30395
cristy146497a2015-05-17 22:46:16 +000030396 have_openjp2=no
cristy99db3872014-01-01 15:11:34 +000030397elif test $pkg_failed = untried; then
cristy146497a2015-05-17 22:46:16 +000030398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30399$as_echo "no" >&6; }
cristy99db3872014-01-01 15:11:34 +000030400 have_openjp2=no
30401else
30402 LIBOPENJP2_CFLAGS=$pkg_cv_LIBOPENJP2_CFLAGS
30403 LIBOPENJP2_LIBS=$pkg_cv_LIBOPENJP2_LIBS
30404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30405$as_echo "yes" >&6; }
30406 have_openjp2=yes
30407fi
cristy32f75d42015-06-05 18:46:23 +000030408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy99db3872014-01-01 15:11:34 +000030409$as_echo "" >&6; }
30410fi
30411
30412if test "$have_openjp2" = 'yes'; then
30413
30414$as_echo "#define LIBOPENJP2_DELEGATE 1" >>confdefs.h
30415
cristy32f75d42015-06-05 18:46:23 +000030416 CFLAGS="$LIBOPENJP2_CFLAGS $CFLAGS"
cristy99db3872014-01-01 15:11:34 +000030417fi
30418
30419 if test "$have_openjp2" = 'yes'; then
30420 LIBOPENJP2_DELEGATE_TRUE=
30421 LIBOPENJP2_DELEGATE_FALSE='#'
30422else
30423 LIBOPENJP2_DELEGATE_TRUE='#'
30424 LIBOPENJP2_DELEGATE_FALSE=
30425fi
30426
30427
30428
30429
30430
30431
30432#
cristy3ed852e2009-09-05 21:47:34 +000030433# Check for the LQR (Liquid Rescale) delegate library.
30434#
30435
30436# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000030437if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030438 withval=$with_lqr; with_lqr=$withval
30439else
30440 with_lqr='yes'
30441fi
30442
30443
30444if test "$with_lqr" != 'yes'; then
30445 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
30446fi
30447
30448have_lqr='no'
30449LQR_CFLAGS=""
30450LQR_LIBS=""
30451LQR_PKG=""
30452if test "x$with_lqr" = "xyes"; then
cristy32f75d42015-06-05 18:46:23 +000030453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristyad38abe2012-12-23 23:03:21 +000030454$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030455
30456pkg_failed=no
30457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
30458$as_echo_n "checking for LQR... " >&6; }
30459
30460if test -n "$LQR_CFLAGS"; then
30461 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
30462 elif test -n "$PKG_CONFIG"; then
30463 if test -n "$PKG_CONFIG" && \
30464 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
30465 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
30466 ac_status=$?
30467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30468 test $ac_status = 0; }; then
30469 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000030470 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000030471else
30472 pkg_failed=yes
30473fi
30474 else
30475 pkg_failed=untried
30476fi
30477if test -n "$LQR_LIBS"; then
30478 pkg_cv_LQR_LIBS="$LQR_LIBS"
30479 elif test -n "$PKG_CONFIG"; then
30480 if test -n "$PKG_CONFIG" && \
30481 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
30482 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
30483 ac_status=$?
30484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30485 test $ac_status = 0; }; then
30486 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000030487 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000030488else
30489 pkg_failed=yes
30490fi
30491 else
30492 pkg_failed=untried
30493fi
30494
30495
30496
30497if test $pkg_failed = yes; then
cristy146497a2015-05-17 22:46:16 +000030498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30499$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030500
30501if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30502 _pkg_short_errors_supported=yes
30503else
30504 _pkg_short_errors_supported=no
30505fi
30506 if test $_pkg_short_errors_supported = yes; then
cristy146497a2015-05-17 22:46:16 +000030507 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lqr-1 >= 0.1.0" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000030508 else
cristy146497a2015-05-17 22:46:16 +000030509 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lqr-1 >= 0.1.0" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000030510 fi
30511 # Put the nasty error message in config.log where it belongs
30512 echo "$LQR_PKG_ERRORS" >&5
30513
cristy146497a2015-05-17 22:46:16 +000030514 have_lqr=no
cristy73bd4a52010-10-05 11:24:23 +000030515elif test $pkg_failed = untried; then
cristy146497a2015-05-17 22:46:16 +000030516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30517$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030518 have_lqr=no
30519else
30520 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
30521 LQR_LIBS=$pkg_cv_LQR_LIBS
30522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30523$as_echo "yes" >&6; }
30524 have_lqr=yes
30525fi
cristy32f75d42015-06-05 18:46:23 +000030526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristyad38abe2012-12-23 23:03:21 +000030527$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030528fi
30529
30530if test "$have_lqr" = 'yes'; then
30531
cristy8b350f62009-11-15 23:12:43 +000030532$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030533
cristy32f75d42015-06-05 18:46:23 +000030534 CFLAGS="$LQR_CFLAGS $CFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000030535fi
30536
cristy73bd4a52010-10-05 11:24:23 +000030537 if test "$have_lqr" = 'yes'; then
30538 LQR_DELEGATE_TRUE=
30539 LQR_DELEGATE_FALSE='#'
30540else
30541 LQR_DELEGATE_TRUE='#'
30542 LQR_DELEGATE_FALSE=
30543fi
30544
cristy3ed852e2009-09-05 21:47:34 +000030545
30546
30547
30548
cristy81beccd2011-10-03 18:17:24 +000030549# Disable LZMA (lzma library)
cristyfbb0ef02010-12-19 02:32:11 +000030550
30551# Check whether --with-lzma was given.
30552if test "${with_lzma+set}" = set; then :
30553 withval=$with_lzma; with_lzma=$withval
30554else
30555 with_lzma='yes'
30556fi
30557
cristy81beccd2011-10-03 18:17:24 +000030558if test "$with_lzma" != 'yes' ; then
cristyfbb0ef02010-12-19 02:32:11 +000030559 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma "
30560fi
30561
cristyb94e5002011-11-14 13:20:10 +000030562LZMA_PKG=""
30563if test "x$with_lzma" = "xyes"; then
cristy32f75d42015-06-05 18:46:23 +000030564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristyad38abe2012-12-23 23:03:21 +000030565$as_echo "-------------------------------------------------------------" >&6; }
cristyb94e5002011-11-14 13:20:10 +000030566
30567pkg_failed=no
30568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5
cristyfbb0ef02010-12-19 02:32:11 +000030569$as_echo_n "checking for LZMA... " >&6; }
cristyb94e5002011-11-14 13:20:10 +000030570
30571if test -n "$LZMA_CFLAGS"; then
30572 pkg_cv_LZMA_CFLAGS="$LZMA_CFLAGS"
30573 elif test -n "$PKG_CONFIG"; then
30574 if test -n "$PKG_CONFIG" && \
30575 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30576 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30577 ac_status=$?
30578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30579 test $ac_status = 0; }; then
30580 pkg_cv_LZMA_CFLAGS=`$PKG_CONFIG --cflags "liblzma >= 2.9.0" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000030581 test "x$?" != "x0" && pkg_failed=yes
cristyb94e5002011-11-14 13:20:10 +000030582else
30583 pkg_failed=yes
30584fi
30585 else
30586 pkg_failed=untried
30587fi
30588if test -n "$LZMA_LIBS"; then
30589 pkg_cv_LZMA_LIBS="$LZMA_LIBS"
30590 elif test -n "$PKG_CONFIG"; then
30591 if test -n "$PKG_CONFIG" && \
30592 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30593 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30594 ac_status=$?
30595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30596 test $ac_status = 0; }; then
30597 pkg_cv_LZMA_LIBS=`$PKG_CONFIG --libs "liblzma >= 2.9.0" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000030598 test "x$?" != "x0" && pkg_failed=yes
cristyb94e5002011-11-14 13:20:10 +000030599else
30600 pkg_failed=yes
30601fi
30602 else
30603 pkg_failed=untried
30604fi
30605
30606
30607
30608if test $pkg_failed = yes; then
cristy146497a2015-05-17 22:46:16 +000030609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30610$as_echo "no" >&6; }
cristyb94e5002011-11-14 13:20:10 +000030611
30612if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30613 _pkg_short_errors_supported=yes
30614else
30615 _pkg_short_errors_supported=no
30616fi
30617 if test $_pkg_short_errors_supported = yes; then
cristy146497a2015-05-17 22:46:16 +000030618 LZMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "liblzma >= 2.9.0" 2>&1`
cristyb94e5002011-11-14 13:20:10 +000030619 else
cristy146497a2015-05-17 22:46:16 +000030620 LZMA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "liblzma >= 2.9.0" 2>&1`
cristyb94e5002011-11-14 13:20:10 +000030621 fi
30622 # Put the nasty error message in config.log where it belongs
30623 echo "$LZMA_PKG_ERRORS" >&5
30624
cristy146497a2015-05-17 22:46:16 +000030625 have_lzma=no
cristyb94e5002011-11-14 13:20:10 +000030626elif test $pkg_failed = untried; then
cristy146497a2015-05-17 22:46:16 +000030627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30628$as_echo "no" >&6; }
cristyb94e5002011-11-14 13:20:10 +000030629 have_lzma=no
30630else
30631 LZMA_CFLAGS=$pkg_cv_LZMA_CFLAGS
30632 LZMA_LIBS=$pkg_cv_LZMA_LIBS
30633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30634$as_echo "yes" >&6; }
30635 have_lzma=yes
30636fi
cristy32f75d42015-06-05 18:46:23 +000030637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristyad38abe2012-12-23 23:03:21 +000030638$as_echo "" >&6; }
cristyfbb0ef02010-12-19 02:32:11 +000030639fi
30640
cristyb94e5002011-11-14 13:20:10 +000030641if test "$have_lzma" = 'yes'; then
cristyfbb0ef02010-12-19 02:32:11 +000030642
30643$as_echo "#define LZMA_DELEGATE 1" >>confdefs.h
30644
cristy32f75d42015-06-05 18:46:23 +000030645 CFLAGS="$LZMA_CFLAGS $CFLAGS"
cristyfbb0ef02010-12-19 02:32:11 +000030646fi
cristyb94e5002011-11-14 13:20:10 +000030647
cristyfbb0ef02010-12-19 02:32:11 +000030648 if test "$have_lzma" = 'yes'; then
30649 LZMA_DELEGATE_TRUE=
30650 LZMA_DELEGATE_FALSE='#'
30651else
30652 LZMA_DELEGATE_TRUE='#'
30653 LZMA_DELEGATE_FALSE=
30654fi
30655
30656
30657
30658
cristyb94e5002011-11-14 13:20:10 +000030659
cristy3ed852e2009-09-05 21:47:34 +000030660#
30661# Check for the OpenEXR delegate library.
30662#
30663
30664# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000030665if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030666 withval=$with_openexr; with_openexr=$withval
30667else
30668 with_openexr='yes'
30669fi
30670
30671
30672if test "$with_openexr" != 'yes'; then
30673 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
30674fi
30675
30676have_openexr='no'
30677OPENEXR_CFLAGS=""
30678OPENEXR_LIBS=""
30679OPENEXR_PKG=""
30680if test "x$with_openexr" = "xyes"; then
cristy32f75d42015-06-05 18:46:23 +000030681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristyad38abe2012-12-23 23:03:21 +000030682$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030683
30684pkg_failed=no
30685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
30686$as_echo_n "checking for OPENEXR... " >&6; }
30687
30688if test -n "$OPENEXR_CFLAGS"; then
30689 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
30690 elif test -n "$PKG_CONFIG"; then
30691 if test -n "$PKG_CONFIG" && \
30692 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30693 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30694 ac_status=$?
30695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30696 test $ac_status = 0; }; then
30697 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000030698 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000030699else
30700 pkg_failed=yes
30701fi
30702 else
30703 pkg_failed=untried
30704fi
30705if test -n "$OPENEXR_LIBS"; then
30706 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
30707 elif test -n "$PKG_CONFIG"; then
30708 if test -n "$PKG_CONFIG" && \
30709 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30710 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30711 ac_status=$?
30712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30713 test $ac_status = 0; }; then
30714 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000030715 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000030716else
30717 pkg_failed=yes
30718fi
30719 else
30720 pkg_failed=untried
30721fi
30722
30723
30724
30725if test $pkg_failed = yes; then
cristy146497a2015-05-17 22:46:16 +000030726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30727$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030728
30729if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30730 _pkg_short_errors_supported=yes
30731else
30732 _pkg_short_errors_supported=no
30733fi
30734 if test $_pkg_short_errors_supported = yes; then
cristy146497a2015-05-17 22:46:16 +000030735 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "OpenEXR >= 1.0.6" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000030736 else
cristy146497a2015-05-17 22:46:16 +000030737 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "OpenEXR >= 1.0.6" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000030738 fi
30739 # Put the nasty error message in config.log where it belongs
30740 echo "$OPENEXR_PKG_ERRORS" >&5
30741
cristy146497a2015-05-17 22:46:16 +000030742 have_openexr=no
cristy73bd4a52010-10-05 11:24:23 +000030743elif test $pkg_failed = untried; then
cristy146497a2015-05-17 22:46:16 +000030744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30745$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030746 have_openexr=no
30747else
30748 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
30749 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
30750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30751$as_echo "yes" >&6; }
30752 have_openexr=yes
30753fi
cristy32f75d42015-06-05 18:46:23 +000030754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristyad38abe2012-12-23 23:03:21 +000030755$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030756fi
30757
30758if test "$have_openexr" = 'yes'; then
30759
cristy8b350f62009-11-15 23:12:43 +000030760$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030761
cristy32f75d42015-06-05 18:46:23 +000030762 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000030763fi
30764
cristy73bd4a52010-10-05 11:24:23 +000030765 if test "$have_openexr" = 'yes'; then
30766 OPENEXR_DELEGATE_TRUE=
30767 OPENEXR_DELEGATE_FALSE='#'
30768else
30769 OPENEXR_DELEGATE_TRUE='#'
30770 OPENEXR_DELEGATE_FALSE=
30771fi
30772
cristy3ed852e2009-09-05 21:47:34 +000030773
30774
30775
30776
30777#
cristy41cbe8a2011-10-27 01:35:18 +000030778# Check for PANGO delegate library.
30779#
30780
30781# Check whether --with-pango was given.
30782if test "${with_pango+set}" = set; then :
30783 withval=$with_pango; with_pango=$withval
30784else
cristyfc3d0222012-02-07 15:05:57 +000030785 with_pango='yes'
cristy41cbe8a2011-10-27 01:35:18 +000030786fi
30787
30788
30789if test "$with_pango" != 'yes'; then
30790 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-pango=$with_pango "
30791fi
30792
30793have_pango='no'
cristya054b762012-03-26 23:16:00 +000030794have_pangocairo='no'
cristy41cbe8a2011-10-27 01:35:18 +000030795PANGO_CFLAGS=""
30796PANGO_LIBS=""
30797PANGO_PKG=""
30798if test "x$with_pango" = "xyes"; then
cristy32f75d42015-06-05 18:46:23 +000030799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy41cbe8a2011-10-27 01:35:18 +000030800$as_echo "-------------------------------------------------------------" >&6; }
30801
30802pkg_failed=no
30803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
30804$as_echo_n "checking for PANGO... " >&6; }
30805
30806if test -n "$PANGO_CFLAGS"; then
30807 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
30808 elif test -n "$PKG_CONFIG"; then
30809 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000030810 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
30811 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000030812 ac_status=$?
30813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30814 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000030815 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pangocairo >= 1.28.1" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000030816 test "x$?" != "x0" && pkg_failed=yes
cristy41cbe8a2011-10-27 01:35:18 +000030817else
30818 pkg_failed=yes
30819fi
30820 else
30821 pkg_failed=untried
30822fi
30823if test -n "$PANGO_LIBS"; then
30824 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
30825 elif test -n "$PKG_CONFIG"; then
30826 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000030827 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
30828 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000030829 ac_status=$?
30830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30831 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000030832 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pangocairo >= 1.28.1" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000030833 test "x$?" != "x0" && pkg_failed=yes
cristy41cbe8a2011-10-27 01:35:18 +000030834else
30835 pkg_failed=yes
30836fi
30837 else
30838 pkg_failed=untried
30839fi
30840
30841
30842
30843if test $pkg_failed = yes; then
cristy146497a2015-05-17 22:46:16 +000030844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30845$as_echo "no" >&6; }
cristy41cbe8a2011-10-27 01:35:18 +000030846
30847if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30848 _pkg_short_errors_supported=yes
30849else
30850 _pkg_short_errors_supported=no
30851fi
30852 if test $_pkg_short_errors_supported = yes; then
cristy146497a2015-05-17 22:46:16 +000030853 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000030854 else
cristy146497a2015-05-17 22:46:16 +000030855 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000030856 fi
30857 # Put the nasty error message in config.log where it belongs
30858 echo "$PANGO_PKG_ERRORS" >&5
30859
cristy146497a2015-05-17 22:46:16 +000030860 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000030861elif test $pkg_failed = untried; then
cristy146497a2015-05-17 22:46:16 +000030862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30863$as_echo "no" >&6; }
cristya054b762012-03-26 23:16:00 +000030864 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000030865else
30866 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
30867 PANGO_LIBS=$pkg_cv_PANGO_LIBS
30868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30869$as_echo "yes" >&6; }
cristya054b762012-03-26 23:16:00 +000030870 have_pangocairo=yes
cristy41cbe8a2011-10-27 01:35:18 +000030871fi
cristy32f75d42015-06-05 18:46:23 +000030872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy41cbe8a2011-10-27 01:35:18 +000030873$as_echo "" >&6; }
cristy7dc48ed2011-10-28 14:11:43 +000030874
30875pkg_failed=no
30876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
30877$as_echo_n "checking for PANGO... " >&6; }
30878
30879if test -n "$PANGO_CFLAGS"; then
30880 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
30881 elif test -n "$PKG_CONFIG"; then
30882 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000030883 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
30884 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000030885 ac_status=$?
30886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30887 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000030888 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pango >= 1.28.1" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000030889 test "x$?" != "x0" && pkg_failed=yes
cristy7dc48ed2011-10-28 14:11:43 +000030890else
30891 pkg_failed=yes
30892fi
30893 else
30894 pkg_failed=untried
30895fi
30896if test -n "$PANGO_LIBS"; then
30897 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
30898 elif test -n "$PKG_CONFIG"; then
30899 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000030900 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
30901 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000030902 ac_status=$?
30903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30904 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000030905 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pango >= 1.28.1" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000030906 test "x$?" != "x0" && pkg_failed=yes
cristy7dc48ed2011-10-28 14:11:43 +000030907else
30908 pkg_failed=yes
30909fi
30910 else
30911 pkg_failed=untried
30912fi
30913
30914
30915
30916if test $pkg_failed = yes; then
cristy146497a2015-05-17 22:46:16 +000030917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30918$as_echo "no" >&6; }
cristy7dc48ed2011-10-28 14:11:43 +000030919
30920if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30921 _pkg_short_errors_supported=yes
30922else
30923 _pkg_short_errors_supported=no
30924fi
30925 if test $_pkg_short_errors_supported = yes; then
cristy146497a2015-05-17 22:46:16 +000030926 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000030927 else
cristy146497a2015-05-17 22:46:16 +000030928 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000030929 fi
30930 # Put the nasty error message in config.log where it belongs
30931 echo "$PANGO_PKG_ERRORS" >&5
30932
cristy146497a2015-05-17 22:46:16 +000030933 have_pango=no
cristy7dc48ed2011-10-28 14:11:43 +000030934elif test $pkg_failed = untried; then
cristy146497a2015-05-17 22:46:16 +000030935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30936$as_echo "no" >&6; }
cristy7dc48ed2011-10-28 14:11:43 +000030937 have_pango=no
30938else
30939 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
30940 PANGO_LIBS=$pkg_cv_PANGO_LIBS
30941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30942$as_echo "yes" >&6; }
30943 have_pango=yes
30944fi
cristy32f75d42015-06-05 18:46:23 +000030945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy7dc48ed2011-10-28 14:11:43 +000030946$as_echo "" >&6; }
cristy41cbe8a2011-10-27 01:35:18 +000030947fi
30948
30949if test "$have_pango" = 'yes'; then
30950
30951$as_echo "#define PANGO_DELEGATE 1" >>confdefs.h
30952
cristy32f75d42015-06-05 18:46:23 +000030953 CFLAGS="$PANGO_CFLAGS $CFLAGS"
cristy41cbe8a2011-10-27 01:35:18 +000030954fi
30955
cristya054b762012-03-26 23:16:00 +000030956if test "$have_pangocairo" = 'yes'; then
cristy41cbe8a2011-10-27 01:35:18 +000030957
cristya054b762012-03-26 23:16:00 +000030958$as_echo "#define PANGOCAIRO_DELEGATE 1" >>confdefs.h
cristy41cbe8a2011-10-27 01:35:18 +000030959
cristy32f75d42015-06-05 18:46:23 +000030960 CFLAGS="$PANGOCAIRO_CFLAGS $CFLAGS"
cristy41cbe8a2011-10-27 01:35:18 +000030961fi
30962
30963 if test "$have_pango" = 'yes'; then
30964 PANGO_DELEGATE_TRUE=
30965 PANGO_DELEGATE_FALSE='#'
30966else
30967 PANGO_DELEGATE_TRUE='#'
30968 PANGO_DELEGATE_FALSE=
30969fi
30970
cristya054b762012-03-26 23:16:00 +000030971 if test "$have_pangocairo" = 'yes'; then
30972 PANGOCAIRO_DELEGATE_TRUE=
30973 PANGOCAIRO_DELEGATE_FALSE='#'
cristy41cbe8a2011-10-27 01:35:18 +000030974else
cristya054b762012-03-26 23:16:00 +000030975 PANGOCAIRO_DELEGATE_TRUE='#'
30976 PANGOCAIRO_DELEGATE_FALSE=
cristy41cbe8a2011-10-27 01:35:18 +000030977fi
30978
30979
30980
30981
30982
30983#
cristy3ed852e2009-09-05 21:47:34 +000030984# Check for PNG delegate library.
30985#
30986
30987# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000030988if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030989 withval=$with_png; with_png=$withval
30990else
30991 with_png='yes'
30992fi
30993
30994
30995if test "$with_png" != 'yes'; then
30996 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
30997fi
30998
cristy81beccd2011-10-03 18:17:24 +000030999have_png='no'
cristy32f75d42015-06-05 18:46:23 +000031000PNG_CFLAGS=""
31001PNG_LIBS=""
31002PNG_PKG=""
31003if test "x$with_png" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000031004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31005$as_echo "-------------------------------------------------------------" >&6; }
cristy32f75d42015-06-05 18:46:23 +000031006
31007pkg_failed=no
31008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
31009$as_echo_n "checking for PNG... " >&6; }
31010
31011if test -n "$PNG_CFLAGS"; then
31012 pkg_cv_PNG_CFLAGS="$PNG_CFLAGS"
31013 elif test -n "$PKG_CONFIG"; then
31014 if test -n "$PKG_CONFIG" && \
31015 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng >= 1.0.0\""; } >&5
31016 ($PKG_CONFIG --exists --print-errors "libpng >= 1.0.0") 2>&5
31017 ac_status=$?
31018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31019 test $ac_status = 0; }; then
31020 pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng >= 1.0.0" 2>/dev/null`
31021 test "x$?" != "x0" && pkg_failed=yes
31022else
31023 pkg_failed=yes
31024fi
31025 else
31026 pkg_failed=untried
31027fi
31028if test -n "$PNG_LIBS"; then
31029 pkg_cv_PNG_LIBS="$PNG_LIBS"
31030 elif test -n "$PKG_CONFIG"; then
31031 if test -n "$PKG_CONFIG" && \
31032 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng >= 1.0.0\""; } >&5
31033 ($PKG_CONFIG --exists --print-errors "libpng >= 1.0.0") 2>&5
31034 ac_status=$?
31035 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31036 test $ac_status = 0; }; then
31037 pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng >= 1.0.0" 2>/dev/null`
31038 test "x$?" != "x0" && pkg_failed=yes
31039else
31040 pkg_failed=yes
31041fi
31042 else
31043 pkg_failed=untried
31044fi
31045
31046
31047
31048if test $pkg_failed = yes; then
31049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31050$as_echo "no" >&6; }
31051
31052if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31053 _pkg_short_errors_supported=yes
31054else
31055 _pkg_short_errors_supported=no
31056fi
31057 if test $_pkg_short_errors_supported = yes; then
31058 PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpng >= 1.0.0" 2>&1`
31059 else
31060 PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpng >= 1.0.0" 2>&1`
31061 fi
31062 # Put the nasty error message in config.log where it belongs
31063 echo "$PNG_PKG_ERRORS" >&5
31064
31065 have_png=no
31066elif test $pkg_failed = untried; then
31067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31068$as_echo "no" >&6; }
31069 have_png=no
31070else
31071 PNG_CFLAGS=$pkg_cv_PNG_CFLAGS
31072 PNG_LIBS=$pkg_cv_PNG_LIBS
31073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31074$as_echo "yes" >&6; }
31075 have_png=yes
31076fi
cristyad38abe2012-12-23 23:03:21 +000031077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31078$as_echo "" >&6; }
cristy64877302011-08-23 19:10:31 +000031079fi
31080
cristy32f75d42015-06-05 18:46:23 +000031081if test "$have_png" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000031082
cristy8b350f62009-11-15 23:12:43 +000031083$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031084
cristy32f75d42015-06-05 18:46:23 +000031085 CFLAGS="$PNG_CFLAGS $CFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000031086fi
cristy64877302011-08-23 19:10:31 +000031087
cristy73bd4a52010-10-05 11:24:23 +000031088 if test "$have_png" = 'yes'; then
31089 PNG_DELEGATE_TRUE=
31090 PNG_DELEGATE_FALSE='#'
31091else
31092 PNG_DELEGATE_TRUE='#'
31093 PNG_DELEGATE_FALSE=
31094fi
31095
cristy3ed852e2009-09-05 21:47:34 +000031096
cristy50d3f5c2011-09-10 20:09:06 +000031097
cristy3ed852e2009-09-05 21:47:34 +000031098
31099
31100#
31101# Check for RSVG delegate library.
31102#
31103
31104# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000031105if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031106 withval=$with_rsvg; with_rsvg=$withval
31107else
cristy1164d5f2012-08-15 00:58:25 +000031108 with_rsvg='no'
cristy3ed852e2009-09-05 21:47:34 +000031109fi
31110
31111
31112if test "$with_rsvg" != 'yes'; then
31113 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
31114fi
31115
31116have_rsvg='no'
31117have_cairo='no'
31118RSVG_CFLAGS=""
31119RSVG_LIBS=""
31120RSVG_PKG=""
31121if test "x$with_rsvg" = "xyes"; then
cristy32f75d42015-06-05 18:46:23 +000031122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristyad38abe2012-12-23 23:03:21 +000031123$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031124
31125pkg_failed=no
31126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
31127$as_echo_n "checking for RSVG... " >&6; }
31128
31129if test -n "$RSVG_CFLAGS"; then
31130 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
31131 elif test -n "$PKG_CONFIG"; then
31132 if test -n "$PKG_CONFIG" && \
31133 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31134 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31135 ac_status=$?
31136 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31137 test $ac_status = 0; }; then
31138 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000031139 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000031140else
31141 pkg_failed=yes
31142fi
31143 else
31144 pkg_failed=untried
31145fi
31146if test -n "$RSVG_LIBS"; then
31147 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
31148 elif test -n "$PKG_CONFIG"; then
31149 if test -n "$PKG_CONFIG" && \
31150 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31151 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31152 ac_status=$?
31153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31154 test $ac_status = 0; }; then
31155 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000031156 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000031157else
31158 pkg_failed=yes
31159fi
31160 else
31161 pkg_failed=untried
31162fi
31163
31164
31165
31166if test $pkg_failed = yes; then
cristy146497a2015-05-17 22:46:16 +000031167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31168$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031169
31170if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31171 _pkg_short_errors_supported=yes
31172else
31173 _pkg_short_errors_supported=no
31174fi
31175 if test $_pkg_short_errors_supported = yes; then
cristy146497a2015-05-17 22:46:16 +000031176 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 +000031177 else
cristy146497a2015-05-17 22:46:16 +000031178 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "librsvg-2.0 >= 2.9.0" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000031179 fi
31180 # Put the nasty error message in config.log where it belongs
31181 echo "$RSVG_PKG_ERRORS" >&5
31182
cristy146497a2015-05-17 22:46:16 +000031183 have_rsvg=no
cristy73bd4a52010-10-05 11:24:23 +000031184elif test $pkg_failed = untried; then
cristy146497a2015-05-17 22:46:16 +000031185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31186$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031187 have_rsvg=no
31188else
31189 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
31190 RSVG_LIBS=$pkg_cv_RSVG_LIBS
31191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31192$as_echo "yes" >&6; }
31193 have_rsvg=yes
31194fi
cristy32f75d42015-06-05 18:46:23 +000031195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristyad38abe2012-12-23 23:03:21 +000031196$as_echo "" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031197
31198pkg_failed=no
31199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
31200$as_echo_n "checking for CAIRO_SVG... " >&6; }
31201
31202if test -n "$CAIRO_SVG_CFLAGS"; then
31203 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
31204 elif test -n "$PKG_CONFIG"; then
31205 if test -n "$PKG_CONFIG" && \
31206 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31207 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31208 ac_status=$?
31209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31210 test $ac_status = 0; }; then
31211 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000031212 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000031213else
31214 pkg_failed=yes
31215fi
31216 else
31217 pkg_failed=untried
31218fi
31219if test -n "$CAIRO_SVG_LIBS"; then
31220 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
31221 elif test -n "$PKG_CONFIG"; then
31222 if test -n "$PKG_CONFIG" && \
31223 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31224 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31225 ac_status=$?
31226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31227 test $ac_status = 0; }; then
31228 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000031229 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000031230else
31231 pkg_failed=yes
31232fi
31233 else
31234 pkg_failed=untried
31235fi
31236
31237
31238
31239if test $pkg_failed = yes; then
cristy146497a2015-05-17 22:46:16 +000031240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31241$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031242
31243if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31244 _pkg_short_errors_supported=yes
31245else
31246 _pkg_short_errors_supported=no
31247fi
31248 if test $_pkg_short_errors_supported = yes; then
cristy146497a2015-05-17 22:46:16 +000031249 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cairo-svg" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000031250 else
cristy146497a2015-05-17 22:46:16 +000031251 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cairo-svg" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000031252 fi
31253 # Put the nasty error message in config.log where it belongs
31254 echo "$CAIRO_SVG_PKG_ERRORS" >&5
31255
cristy146497a2015-05-17 22:46:16 +000031256 have_cairo=no
cristy73bd4a52010-10-05 11:24:23 +000031257elif test $pkg_failed = untried; then
cristy146497a2015-05-17 22:46:16 +000031258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31259$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031260 have_cairo=no
31261else
31262 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
31263 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
31264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31265$as_echo "yes" >&6; }
31266 have_cairo=yes
31267fi
cristy32f75d42015-06-05 18:46:23 +000031268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristyad38abe2012-12-23 23:03:21 +000031269$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031270fi
31271
31272if test "$have_rsvg" = 'yes'; then
31273
cristy8b350f62009-11-15 23:12:43 +000031274$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031275
cristy32f75d42015-06-05 18:46:23 +000031276 CFLAGS="$RSVG_CFLAGS $CFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000031277fi
31278
31279if test "$have_cairo" = 'yes'; then
31280
cristy8b350f62009-11-15 23:12:43 +000031281$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031282
cristy32f75d42015-06-05 18:46:23 +000031283 CFLAGS="$CAIRO_SVG_CFLAGS $CFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000031284fi
31285
cristy73bd4a52010-10-05 11:24:23 +000031286 if test "$have_rsvg" = 'yes'; then
31287 RSVG_DELEGATE_TRUE=
31288 RSVG_DELEGATE_FALSE='#'
31289else
31290 RSVG_DELEGATE_TRUE='#'
31291 RSVG_DELEGATE_FALSE=
31292fi
31293
31294 if test "$have_cairo" = 'yes'; then
31295 CAIRO_DELEGATE_TRUE=
31296 CAIRO_DELEGATE_FALSE='#'
31297else
31298 CAIRO_DELEGATE_TRUE='#'
31299 CAIRO_DELEGATE_FALSE=
31300fi
31301
cristy3ed852e2009-09-05 21:47:34 +000031302
31303
31304
31305
31306#
31307# Check for TIFF delegate library.
31308#
31309
31310# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000031311if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031312 withval=$with_tiff; with_tiff=$withval
31313else
31314 with_tiff='yes'
31315fi
31316
31317
31318if test "$with_tiff" != 'yes'; then
31319 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
31320fi
31321
31322have_tiff='no'
31323TIFF_LIBS=''
31324if test "$with_tiff" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000031325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31326$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000031328$as_echo_n "checking for TIFF... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000031329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31330$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031331 failed=0
31332 passed=0
cristy8b350f62009-11-15 23:12:43 +000031333 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031334if test "x$ac_cv_header_tiff_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031335 passed=`expr $passed + 1`
31336else
31337 failed=`expr $failed + 1`
31338fi
31339
31340
cristy8b350f62009-11-15 23:12:43 +000031341 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031342if test "x$ac_cv_header_tiffio_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031343 passed=`expr $passed + 1`
31344else
31345 failed=`expr $failed + 1`
31346fi
31347
31348
cristy8b350f62009-11-15 23:12:43 +000031349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031350$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031351if ${ac_cv_lib_tiff_TIFFOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031352 $as_echo_n "(cached) " >&6
31353else
31354 ac_check_lib_save_LIBS=$LIBS
31355LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031356cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031357/* end confdefs.h. */
31358
31359/* Override any GCC internal prototype to avoid an error.
31360 Use char because int might match the return type of a GCC
31361 builtin and then its argument prototype would still apply. */
31362#ifdef __cplusplus
31363extern "C"
31364#endif
31365char TIFFOpen ();
31366int
31367main ()
31368{
31369return TIFFOpen ();
31370 ;
31371 return 0;
31372}
31373_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031374if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031375 ac_cv_lib_tiff_TIFFOpen=yes
31376else
cristy8b350f62009-11-15 23:12:43 +000031377 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031378fi
cristy8b350f62009-11-15 23:12:43 +000031379rm -f core conftest.err conftest.$ac_objext \
31380 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031381LIBS=$ac_check_lib_save_LIBS
31382fi
cristy8b350f62009-11-15 23:12:43 +000031383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031384$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031385if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031386 passed=`expr $passed + 1`
31387else
31388 failed=`expr $failed + 1`
31389fi
31390
cristy8b350f62009-11-15 23:12:43 +000031391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031392$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031393if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031394 $as_echo_n "(cached) " >&6
31395else
31396 ac_check_lib_save_LIBS=$LIBS
31397LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031398cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031399/* end confdefs.h. */
31400
31401/* Override any GCC internal prototype to avoid an error.
31402 Use char because int might match the return type of a GCC
31403 builtin and then its argument prototype would still apply. */
31404#ifdef __cplusplus
31405extern "C"
31406#endif
31407char TIFFClientOpen ();
31408int
31409main ()
31410{
31411return TIFFClientOpen ();
31412 ;
31413 return 0;
31414}
31415_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031416if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031417 ac_cv_lib_tiff_TIFFClientOpen=yes
31418else
cristy8b350f62009-11-15 23:12:43 +000031419 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031420fi
cristy8b350f62009-11-15 23:12:43 +000031421rm -f core conftest.err conftest.$ac_objext \
31422 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031423LIBS=$ac_check_lib_save_LIBS
31424fi
cristy8b350f62009-11-15 23:12:43 +000031425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031426$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031427if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031428 passed=`expr $passed + 1`
31429else
31430 failed=`expr $failed + 1`
31431fi
31432
cristy8b350f62009-11-15 23:12:43 +000031433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031434$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031435if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031436 $as_echo_n "(cached) " >&6
31437else
31438 ac_check_lib_save_LIBS=$LIBS
31439LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031440cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031441/* end confdefs.h. */
31442
31443/* Override any GCC internal prototype to avoid an error.
31444 Use char because int might match the return type of a GCC
31445 builtin and then its argument prototype would still apply. */
31446#ifdef __cplusplus
31447extern "C"
31448#endif
31449char TIFFIsByteSwapped ();
31450int
31451main ()
31452{
31453return TIFFIsByteSwapped ();
31454 ;
31455 return 0;
31456}
31457_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031458if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031459 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
31460else
cristy8b350f62009-11-15 23:12:43 +000031461 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000031462fi
cristy8b350f62009-11-15 23:12:43 +000031463rm -f core conftest.err conftest.$ac_objext \
31464 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031465LIBS=$ac_check_lib_save_LIBS
31466fi
cristy8b350f62009-11-15 23:12:43 +000031467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000031468$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristyda16f162011-02-19 23:52:17 +000031469if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031470 passed=`expr $passed + 1`
31471else
31472 failed=`expr $failed + 1`
31473fi
31474
cristy8b350f62009-11-15 23:12:43 +000031475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031476$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031477if ${ac_cv_lib_tiff_TIFFReadRGBATile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031478 $as_echo_n "(cached) " >&6
31479else
31480 ac_check_lib_save_LIBS=$LIBS
31481LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031482cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031483/* end confdefs.h. */
31484
31485/* Override any GCC internal prototype to avoid an error.
31486 Use char because int might match the return type of a GCC
31487 builtin and then its argument prototype would still apply. */
31488#ifdef __cplusplus
31489extern "C"
31490#endif
31491char TIFFReadRGBATile ();
31492int
31493main ()
31494{
31495return TIFFReadRGBATile ();
31496 ;
31497 return 0;
31498}
31499_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031500if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031501 ac_cv_lib_tiff_TIFFReadRGBATile=yes
31502else
cristy8b350f62009-11-15 23:12:43 +000031503 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000031504fi
cristy8b350f62009-11-15 23:12:43 +000031505rm -f core conftest.err conftest.$ac_objext \
31506 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031507LIBS=$ac_check_lib_save_LIBS
31508fi
cristy8b350f62009-11-15 23:12:43 +000031509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000031510$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristyda16f162011-02-19 23:52:17 +000031511if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031512 passed=`expr $passed + 1`
31513else
31514 failed=`expr $failed + 1`
31515fi
31516
cristy8b350f62009-11-15 23:12:43 +000031517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031518$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031519if ${ac_cv_lib_tiff_TIFFReadRGBAStrip+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031520 $as_echo_n "(cached) " >&6
31521else
31522 ac_check_lib_save_LIBS=$LIBS
31523LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031524cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031525/* end confdefs.h. */
31526
31527/* Override any GCC internal prototype to avoid an error.
31528 Use char because int might match the return type of a GCC
31529 builtin and then its argument prototype would still apply. */
31530#ifdef __cplusplus
31531extern "C"
31532#endif
31533char TIFFReadRGBAStrip ();
31534int
31535main ()
31536{
31537return TIFFReadRGBAStrip ();
31538 ;
31539 return 0;
31540}
31541_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031542if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031543 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
31544else
cristy8b350f62009-11-15 23:12:43 +000031545 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000031546fi
cristy8b350f62009-11-15 23:12:43 +000031547rm -f core conftest.err conftest.$ac_objext \
31548 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031549LIBS=$ac_check_lib_save_LIBS
31550fi
cristy8b350f62009-11-15 23:12:43 +000031551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000031552$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristyda16f162011-02-19 23:52:17 +000031553if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031554 passed=`expr $passed + 1`
31555else
31556 failed=`expr $failed + 1`
31557fi
31558
cristy8b350f62009-11-15 23:12:43 +000031559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000031560$as_echo_n "checking if TIFF package is complete... " >&6; }
31561 if test $passed -gt 0; then
31562 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000031563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31564$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031565 have_tiff='no (failed tests)'
31566 else
31567 TIFF_LIBS='-ltiff'
31568 LIBS="$TIFF_LIBS $LIBS"
31569
cristy8b350f62009-11-15 23:12:43 +000031570$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031571
cristyad38abe2012-12-23 23:03:21 +000031572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31573$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031574 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000031575 for ac_header in tiffconf.h
31576do :
31577 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031578if test "x$ac_cv_header_tiffconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031579 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031580#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000031581_ACEOF
31582
31583fi
31584
31585done
31586
cristy8b350f62009-11-15 23:12:43 +000031587 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3f590e52011-11-14 14:29:44 +000031588 TIFFIsBigEndian TIFFReadEXIFDirectory TIFFSetErrorHandlerExt \
31589 TIFFSetTagExtender TIFFSetWarningHandlerExt \
31590 TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000031591do :
31592 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31593ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000031594if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000031595 cat >>confdefs.h <<_ACEOF
31596#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31597_ACEOF
31598
31599fi
31600done
31601
31602 fi
31603 else
cristyad38abe2012-12-23 23:03:21 +000031604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31605$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031606 fi
31607fi
cristy73bd4a52010-10-05 11:24:23 +000031608 if test "$have_tiff" = 'yes'; then
31609 TIFF_DELEGATE_TRUE=
31610 TIFF_DELEGATE_FALSE='#'
31611else
31612 TIFF_DELEGATE_TRUE='#'
31613 TIFF_DELEGATE_FALSE=
31614fi
31615
cristy3ed852e2009-09-05 21:47:34 +000031616
31617
31618
31619#
cristyb1860752011-03-14 00:27:46 +000031620# Check for WEBP delegate library.
31621#
31622
31623# Check whether --with-webp was given.
31624if test "${with_webp+set}" = set; then :
31625 withval=$with_webp; with_webp=$withval
31626else
31627 with_webp='yes'
31628fi
31629
31630
31631if test "$with_webp" != 'yes'; then
31632 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-webp=$with_webp "
31633fi
31634
31635have_webp='no'
31636WEBP_LIBS=''
31637if test "$with_webp" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000031638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31639$as_echo "-------------------------------------------------------------" >&6; }
cristyb1860752011-03-14 00:27:46 +000031640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBP" >&5
31641$as_echo_n "checking for WEBP... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000031642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31643$as_echo "" >&6; }
cristyb1860752011-03-14 00:27:46 +000031644 failed=0
31645 passed=0
31646 ac_fn_c_check_header_mongrel "$LINENO" "webp/decode.h" "ac_cv_header_webp_decode_h" "$ac_includes_default"
31647if test "x$ac_cv_header_webp_decode_h" = xyes; then :
31648 passed=`expr $passed + 1`
31649else
31650 failed=`expr $failed + 1`
31651fi
31652
31653
cristy6d670312013-03-22 23:23:01 +000031654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPPictureInitInternal in -lwebp" >&5
31655$as_echo_n "checking for WebPPictureInitInternal in -lwebp... " >&6; }
31656if ${ac_cv_lib_webp_WebPPictureInitInternal+:} false; then :
cristyb1860752011-03-14 00:27:46 +000031657 $as_echo_n "(cached) " >&6
31658else
31659 ac_check_lib_save_LIBS=$LIBS
31660LIBS="-lwebp $LIBS"
31661cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31662/* end confdefs.h. */
31663
31664/* Override any GCC internal prototype to avoid an error.
31665 Use char because int might match the return type of a GCC
31666 builtin and then its argument prototype would still apply. */
31667#ifdef __cplusplus
31668extern "C"
31669#endif
cristy6d670312013-03-22 23:23:01 +000031670char WebPPictureInitInternal ();
cristyb1860752011-03-14 00:27:46 +000031671int
31672main ()
31673{
cristy6d670312013-03-22 23:23:01 +000031674return WebPPictureInitInternal ();
cristyb1860752011-03-14 00:27:46 +000031675 ;
31676 return 0;
31677}
31678_ACEOF
31679if ac_fn_c_try_link "$LINENO"; then :
cristy6d670312013-03-22 23:23:01 +000031680 ac_cv_lib_webp_WebPPictureInitInternal=yes
cristyb1860752011-03-14 00:27:46 +000031681else
cristy6d670312013-03-22 23:23:01 +000031682 ac_cv_lib_webp_WebPPictureInitInternal=no
cristyb1860752011-03-14 00:27:46 +000031683fi
31684rm -f core conftest.err conftest.$ac_objext \
31685 conftest$ac_exeext conftest.$ac_ext
31686LIBS=$ac_check_lib_save_LIBS
31687fi
cristy6d670312013-03-22 23:23:01 +000031688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPPictureInitInternal" >&5
31689$as_echo "$ac_cv_lib_webp_WebPPictureInitInternal" >&6; }
31690if test "x$ac_cv_lib_webp_WebPPictureInitInternal" = xyes; then :
cristyb1860752011-03-14 00:27:46 +000031691 passed=`expr $passed + 1`
31692else
31693 failed=`expr $failed + 1`
31694fi
31695
31696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WEBP package is complete" >&5
31697$as_echo_n "checking if WEBP package is complete... " >&6; }
31698 if test $passed -gt 0; then
31699 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000031700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31701$as_echo "no -- some components failed test" >&6; }
cristyb1860752011-03-14 00:27:46 +000031702 have_webp='no (failed tests)'
31703 else
31704 WEBP_LIBS='-lwebp'
31705 LIBS="$WEBP_LIBS $LIBS"
31706
31707$as_echo "#define WEBP_DELEGATE 1" >>confdefs.h
31708
cristyad38abe2012-12-23 23:03:21 +000031709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31710$as_echo "yes" >&6; }
cristyb1860752011-03-14 00:27:46 +000031711 have_webp='yes'
31712 fi
31713 else
cristyad38abe2012-12-23 23:03:21 +000031714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31715$as_echo "no" >&6; }
cristyb1860752011-03-14 00:27:46 +000031716 fi
31717fi
31718 if test "$have_webp" = 'yes'; then
31719 WEBP_DELEGATE_TRUE=
31720 WEBP_DELEGATE_FALSE='#'
31721else
31722 WEBP_DELEGATE_TRUE='#'
31723 WEBP_DELEGATE_FALSE=
31724fi
31725
31726
31727
31728
31729#
cristy3ed852e2009-09-05 21:47:34 +000031730# Set Windows font directory.
31731#
31732
31733# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000031734if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031735 withval=$with_windows_font_dir; with_windows_font_dir=$withval
31736else
cristy5a3dc992014-12-05 19:50:04 +000031737 with_windows_font_dir='default'
cristy3ed852e2009-09-05 21:47:34 +000031738fi
31739
cristy5a3dc992014-12-05 19:50:04 +000031740
31741if test "$with_windows_font_dir" != 'default'; then
cristy3ed852e2009-09-05 21:47:34 +000031742 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
31743fi
31744
31745
31746#
31747# Check for WMF delegate library.
31748#
31749
31750# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000031751if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031752 withval=$with_wmf; with_wmf=$withval
31753else
cristy32f75d42015-06-05 18:46:23 +000031754 with_wmf='yes'
cristy3ed852e2009-09-05 21:47:34 +000031755fi
31756
31757
31758if test "$with_wmf" != 'yes'; then
31759 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
31760fi
31761
31762have_wmf='no'
cristy32f75d42015-06-05 18:46:23 +000031763WMF_CFLAGS=""
31764WMF_LIBS=""
31765WMF_PKG=""
31766if test "x$with_wmf" = "xyes"; then
31767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy03f7cf92011-12-15 01:40:41 +000031768$as_echo "-------------------------------------------------------------" >&6; }
cristy32f75d42015-06-05 18:46:23 +000031769
31770pkg_failed=no
31771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
cristy3ed852e2009-09-05 21:47:34 +000031772$as_echo_n "checking for WMF... " >&6; }
cristy03f7cf92011-12-15 01:40:41 +000031773
cristy32f75d42015-06-05 18:46:23 +000031774if test -n "$WMF_CFLAGS"; then
31775 pkg_cv_WMF_CFLAGS="$WMF_CFLAGS"
31776 elif test -n "$PKG_CONFIG"; then
31777 if test -n "$PKG_CONFIG" && \
31778 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"wmf >= 0.2.8\""; } >&5
31779 ($PKG_CONFIG --exists --print-errors "wmf >= 0.2.8") 2>&5
31780 ac_status=$?
31781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31782 test $ac_status = 0; }; then
31783 pkg_cv_WMF_CFLAGS=`$PKG_CONFIG --cflags "wmf >= 0.2.8" 2>/dev/null`
31784 test "x$?" != "x0" && pkg_failed=yes
cristy3ed852e2009-09-05 21:47:34 +000031785else
cristy32f75d42015-06-05 18:46:23 +000031786 pkg_failed=yes
31787fi
31788 else
31789 pkg_failed=untried
31790fi
31791if test -n "$WMF_LIBS"; then
31792 pkg_cv_WMF_LIBS="$WMF_LIBS"
31793 elif test -n "$PKG_CONFIG"; then
31794 if test -n "$PKG_CONFIG" && \
31795 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"wmf >= 0.2.8\""; } >&5
31796 ($PKG_CONFIG --exists --print-errors "wmf >= 0.2.8") 2>&5
31797 ac_status=$?
31798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31799 test $ac_status = 0; }; then
31800 pkg_cv_WMF_LIBS=`$PKG_CONFIG --libs "wmf >= 0.2.8" 2>/dev/null`
31801 test "x$?" != "x0" && pkg_failed=yes
cristy3ed852e2009-09-05 21:47:34 +000031802else
cristy32f75d42015-06-05 18:46:23 +000031803 pkg_failed=yes
cristy3ed852e2009-09-05 21:47:34 +000031804fi
cristy32f75d42015-06-05 18:46:23 +000031805 else
31806 pkg_failed=untried
cristy9243a2d2011-08-22 17:32:32 +000031807fi
31808
cristy03f7cf92011-12-15 01:40:41 +000031809
cristy03f7cf92011-12-15 01:40:41 +000031810
cristy32f75d42015-06-05 18:46:23 +000031811if test $pkg_failed = yes; then
31812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31813$as_echo "no" >&6; }
31814
31815if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31816 _pkg_short_errors_supported=yes
31817else
31818 _pkg_short_errors_supported=no
31819fi
31820 if test $_pkg_short_errors_supported = yes; then
31821 WMF_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "wmf >= 0.2.8" 2>&1`
cristy03f7cf92011-12-15 01:40:41 +000031822 else
cristy32f75d42015-06-05 18:46:23 +000031823 WMF_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "wmf >= 0.2.8" 2>&1`
31824 fi
31825 # Put the nasty error message in config.log where it belongs
31826 echo "$WMF_PKG_ERRORS" >&5
cristy03f7cf92011-12-15 01:40:41 +000031827
cristy32f75d42015-06-05 18:46:23 +000031828 have_wmf=no
31829elif test $pkg_failed = untried; then
31830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31831$as_echo "no" >&6; }
31832 have_wmf=no
cristy03f7cf92011-12-15 01:40:41 +000031833else
cristy32f75d42015-06-05 18:46:23 +000031834 WMF_CFLAGS=$pkg_cv_WMF_CFLAGS
31835 WMF_LIBS=$pkg_cv_WMF_LIBS
31836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31837$as_echo "yes" >&6; }
31838 have_wmf=yes
cristy03f7cf92011-12-15 01:40:41 +000031839fi
cristy32f75d42015-06-05 18:46:23 +000031840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31841$as_echo "" >&6; }
cristy03f7cf92011-12-15 01:40:41 +000031842fi
31843
cristy32f75d42015-06-05 18:46:23 +000031844if test "$have_wmf" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000031845
cristy8b350f62009-11-15 23:12:43 +000031846$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031847
cristy32f75d42015-06-05 18:46:23 +000031848 CFLAGS="$WMF_CFLAGS $CFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000031849fi
cristy32f75d42015-06-05 18:46:23 +000031850
cristy73bd4a52010-10-05 11:24:23 +000031851 if test "$have_wmf" = 'yes'; then
31852 WMF_DELEGATE_TRUE=
31853 WMF_DELEGATE_FALSE='#'
31854else
31855 WMF_DELEGATE_TRUE='#'
31856 WMF_DELEGATE_FALSE=
31857fi
31858
cristy3ed852e2009-09-05 21:47:34 +000031859
31860
31861
cristy81beccd2011-10-03 18:17:24 +000031862
cristy3ed852e2009-09-05 21:47:34 +000031863#
31864# Check for XML delegate library.
31865#
31866
31867# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000031868if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031869 withval=$with_xml; with_xml=$withval
31870else
cristyfc3d0222012-02-07 15:05:57 +000031871 with_xml='yes'
cristy3ed852e2009-09-05 21:47:34 +000031872fi
31873
31874
cristy81beccd2011-10-03 18:17:24 +000031875if test "$with_xml" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000031876 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
31877fi
31878
cristy81beccd2011-10-03 18:17:24 +000031879have_xml='no'
cristy32f75d42015-06-05 18:46:23 +000031880XML_CFLAGS=""
31881XML_LIBS=""
31882XML_PKG=""
31883if test "x$with_xml" = "xyes"; then
31884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristyad38abe2012-12-23 23:03:21 +000031885$as_echo "-------------------------------------------------------------" >&6; }
cristy32f75d42015-06-05 18:46:23 +000031886
31887pkg_failed=no
31888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
cristy81beccd2011-10-03 18:17:24 +000031889$as_echo_n "checking for XML... " >&6; }
cristy81beccd2011-10-03 18:17:24 +000031890
cristy32f75d42015-06-05 18:46:23 +000031891if test -n "$XML_CFLAGS"; then
31892 pkg_cv_XML_CFLAGS="$XML_CFLAGS"
31893 elif test -n "$PKG_CONFIG"; then
31894 if test -n "$PKG_CONFIG" && \
31895 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.0.0\""; } >&5
31896 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.0.0") 2>&5
31897 ac_status=$?
31898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31899 test $ac_status = 0; }; then
31900 pkg_cv_XML_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.0.0" 2>/dev/null`
31901 test "x$?" != "x0" && pkg_failed=yes
cristy81beccd2011-10-03 18:17:24 +000031902else
cristy32f75d42015-06-05 18:46:23 +000031903 pkg_failed=yes
31904fi
31905 else
31906 pkg_failed=untried
31907fi
31908if test -n "$XML_LIBS"; then
31909 pkg_cv_XML_LIBS="$XML_LIBS"
31910 elif test -n "$PKG_CONFIG"; then
31911 if test -n "$PKG_CONFIG" && \
31912 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.0.0\""; } >&5
31913 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.0.0") 2>&5
31914 ac_status=$?
31915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31916 test $ac_status = 0; }; then
31917 pkg_cv_XML_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.0.0" 2>/dev/null`
31918 test "x$?" != "x0" && pkg_failed=yes
31919else
31920 pkg_failed=yes
31921fi
31922 else
31923 pkg_failed=untried
31924fi
31925
31926
31927
31928if test $pkg_failed = yes; then
31929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy81beccd2011-10-03 18:17:24 +000031930$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031931
cristy32f75d42015-06-05 18:46:23 +000031932if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31933 _pkg_short_errors_supported=yes
cristy81beccd2011-10-03 18:17:24 +000031934else
cristy32f75d42015-06-05 18:46:23 +000031935 _pkg_short_errors_supported=no
cristy81beccd2011-10-03 18:17:24 +000031936fi
cristy32f75d42015-06-05 18:46:23 +000031937 if test $_pkg_short_errors_supported = yes; then
31938 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 +000031939 else
cristy32f75d42015-06-05 18:46:23 +000031940 XML_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0 >= 2.0.0" 2>&1`
31941 fi
31942 # Put the nasty error message in config.log where it belongs
31943 echo "$XML_PKG_ERRORS" >&5
31944
31945 have_xml=no
31946elif test $pkg_failed = untried; then
31947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31948$as_echo "no" >&6; }
31949 have_xml=no
31950else
31951 XML_CFLAGS=$pkg_cv_XML_CFLAGS
31952 XML_LIBS=$pkg_cv_XML_LIBS
31953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31954$as_echo "yes" >&6; }
31955 have_xml=yes
31956fi
31957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31958$as_echo "" >&6; }
31959fi
31960
31961if test "$have_xml" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000031962
cristy8b350f62009-11-15 23:12:43 +000031963$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031964
cristy32f75d42015-06-05 18:46:23 +000031965 CFLAGS="$XML_CFLAGS $CFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000031966fi
cristy32f75d42015-06-05 18:46:23 +000031967
cristy73bd4a52010-10-05 11:24:23 +000031968 if test "$have_xml" = 'yes'; then
31969 XML_DELEGATE_TRUE=
31970 XML_DELEGATE_FALSE='#'
31971else
31972 XML_DELEGATE_TRUE='#'
31973 XML_DELEGATE_FALSE=
31974fi
31975
cristy3ed852e2009-09-05 21:47:34 +000031976
31977
31978
cristy32f75d42015-06-05 18:46:23 +000031979
cristy3ed852e2009-09-05 21:47:34 +000031980# Substitute compiler name to build/link PerlMagick
31981#
31982
31983
31984#
31985# Configure install Paths
31986#
cristy7def36a2011-10-28 19:04:41 +000031987
cristy2a11bef2011-10-28 18:33:11 +000031988# Path to ImageMagick header files
cristybdabdd62013-03-04 17:43:36 +000031989INCLUDE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristye52f12f2012-12-31 15:32:36 +000031990INCLUDE_PATH="${INCLUDE_DIR}/${INCLUDE_RELATIVE_PATH}"
31991DEFINE_INCLUDE_PATH="${INCLUDE_DIR}/${INCLUDE_RELATIVE_PATH}/"
cristy2a11bef2011-10-28 18:33:11 +000031992case "${build_os}" in
31993 mingw* )
31994 DEFINE_INCLUDE_PATH=`$WinPathScript "$DEFINE_INCLUDE_PATH" 1`
31995 ;;
31996esac
31997
31998cat >>confdefs.h <<_ACEOF
31999#define INCLUDE_PATH "$DEFINE_INCLUDE_PATH"
32000_ACEOF
32001
32002
cristy3ed852e2009-09-05 21:47:34 +000032003
cristye52f12f2012-12-31 15:32:36 +000032004# Path to ImageMagick header files (arch part)
32005INCLUDEARCH_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}"
32006DEFINE_INCLUDEARCH_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}/"
32007case "${build_os}" in
32008 mingw* )
32009 DEFINE_INCLUDEARCH_PATH=`$WinPathScript "$DEFINE_INCLUDEARCH_PATH" 1`
32010 ;;
32011esac
32012
32013cat >>confdefs.h <<_ACEOF
32014#define INCLUDEARCH_PATH "$DEFINE_INCLUDE_PATH"
32015_ACEOF
32016
32017
32018
cristy3ed852e2009-09-05 21:47:34 +000032019# Subdirectory under lib to place ImageMagick lib files
32020LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
32021
32022cat >>confdefs.h <<_ACEOF
32023#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
32024_ACEOF
32025
32026
32027# Path to ImageMagick bin directory
32028EXECUTABLE_PATH="${BIN_DIR}"
32029DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
32030case "${build_os}" in
32031 mingw* )
32032 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
32033 ;;
32034esac
32035
32036cat >>confdefs.h <<_ACEOF
32037#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
32038_ACEOF
32039
32040
32041
32042# Path to ImageMagick lib
32043LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
32044DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
32045case "${build_os}" in
32046 mingw* )
32047 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
32048 ;;
32049esac
32050
32051cat >>confdefs.h <<_ACEOF
32052#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
32053_ACEOF
32054
32055
32056
cristy3ed852e2009-09-05 21:47:34 +000032057#
cristy8d0ff762013-03-10 20:33:28 +000032058# path to local binaries
32059if test "x$LIB_BIN_BASEDIRNAME" = "x"; then
32060 LIB_BIN_BASEDIRNAME="bin"
32061fi
32062
32063cat >>confdefs.h <<_ACEOF
32064#define LIB_BIN_BASEDIRNAME "$LIB_BIN_BASEDIRNAME"
32065_ACEOF
32066
32067
32068
32069if test "x$LIB_BIN_DIR" = "x"; then
32070 LIB_BIN_DIR=${LIB_BIN_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
32071fi
32072
32073
32074LIB_BIN_DIR_RELATIVE_PATH=$LIB_BIN_DIR
32075
32076LIB_BIN_DIR_PATH="${LIBRARY_PATH}/${LIB_BIN_DIR_RELATIVE_PATH}"
32077
32078
32079#
cristy01ff9f32012-12-01 18:15:29 +000032080# path to modules lib
32081if test "x$MODULES_BASEDIRNAME" = "x"; then
32082 MODULES_BASEDIRNAME="modules"
32083fi
cristy3ed852e2009-09-05 21:47:34 +000032084
32085cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000032086#define MODULES_BASEDIRNAME "$MODULES_BASEDIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000032087_ACEOF
32088
cristy01ff9f32012-12-01 18:15:29 +000032089
32090
32091if test "x$MODULES_DIRNAME" = "x"; then
cristy4bdbd342012-12-03 18:41:18 +000032092 MODULES_DIRNAME=${MODULES_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
32093else
cristy3ed852e2009-09-05 21:47:34 +000032094
32095cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000032096#define MODULES_DIRNAME "$MODULES_DIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000032097_ACEOF
32098
cristycf4a3c22012-12-02 21:47:25 +000032099fi
cristy01ff9f32012-12-01 18:15:29 +000032100
32101
cristy371d4812012-12-01 19:48:10 +000032102MODULES_RELATIVE_PATH="${MODULES_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000032103
32104MODULES_PATH="${LIBRARY_PATH}/${MODULES_RELATIVE_PATH}"
32105
32106
32107#
32108# path to coders lib
32109if test "x$CODER_DIRNAME" = "x"; then
32110 CODER_DIRNAME="coders"
32111fi
32112
32113cat >>confdefs.h <<_ACEOF
32114#define CODER_DIRNAME "$CODER_DIRNAME"
32115_ACEOF
32116
32117
32118
cristy371d4812012-12-01 19:48:10 +000032119CODER_RELATIVE_PATH="${CODER_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000032120CODER_PATH="${MODULES_PATH}/${CODER_DIRNAME}"
cristy3ed852e2009-09-05 21:47:34 +000032121
32122
32123#
32124# Subdirectory under lib to place ImageMagick filter module files
cristy01ff9f32012-12-01 18:15:29 +000032125#
32126# path to coders lib
32127if test "x$FILTER_DIRNAME" = "x"; then
32128 FILTER_DIRNAME="filters"
32129fi
cristy3ed852e2009-09-05 21:47:34 +000032130
32131cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000032132#define FILTER_DIRNAME "$FILTER_DIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000032133_ACEOF
32134
cristy3ed852e2009-09-05 21:47:34 +000032135
cristy3ed852e2009-09-05 21:47:34 +000032136
cristy371d4812012-12-01 19:48:10 +000032137FILTER_RELATIVE_PATH="${FILTER_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000032138FILTER_PATH="${MODULES_PATH}/${FILTER_DIRNAME}"
cristy3ed852e2009-09-05 21:47:34 +000032139
32140
32141#
32142# Path to ImageMagick documentation files
cristybdabdd62013-03-04 17:43:36 +000032143DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristyd55889c2011-03-27 00:50:24 +000032144DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}"
32145DEFINE_DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032146case "${build_os}" in
32147 mingw* )
32148 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
32149 ;;
32150esac
32151
32152cat >>confdefs.h <<_ACEOF
32153#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
32154_ACEOF
32155
32156
32157
cristydd17feb2014-03-05 02:06:32 +000032158#
32159# Enable/Disable documentation
32160# Check whether --enable-docs was given.
32161if test "${enable_docs+set}" = set; then :
32162 enableval=$enable_docs; wantdocs=$enableval
32163else
cristy02272312014-03-07 00:55:25 +000032164 wantdocs=yes
cristydd17feb2014-03-05 02:06:32 +000032165fi
32166
cristy02272312014-03-07 00:55:25 +000032167 if test "$wantdocs" = "yes"; then
cristydd17feb2014-03-05 02:06:32 +000032168 INSTALL_DOC_TRUE=
32169 INSTALL_DOC_FALSE='#'
32170else
32171 INSTALL_DOC_TRUE='#'
32172 INSTALL_DOC_FALSE=
32173fi
32174
32175
cristy2a11bef2011-10-28 18:33:11 +000032176# Subdirectory to place architecture-dependent configuration files
cristybdabdd62013-03-04 17:43:36 +000032177CONFIGURE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristy45dbd322011-03-27 16:40:38 +000032178
32179cat >>confdefs.h <<_ACEOF
32180#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
32181_ACEOF
32182
cristy7def36a2011-10-28 19:04:41 +000032183CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
cristy45dbd322011-03-27 16:40:38 +000032184DEFINE_CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
32185case "${build_os}" in
32186 mingw* )
32187 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
32188 ;;
32189esac
32190
32191cat >>confdefs.h <<_ACEOF
32192#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
32193_ACEOF
32194
32195
32196
cristy2a11bef2011-10-28 18:33:11 +000032197# Subdirectory to place architecture-independent configuration files
cristybdabdd62013-03-04 17:43:36 +000032198SHARE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristy3ed852e2009-09-05 21:47:34 +000032199
32200cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032201#define SHARE_RELATIVE_PATH "$SHARE_RELATIVE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032202_ACEOF
32203
cristy670aa3c2011-11-03 00:54:00 +000032204SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
cristy4f820712011-04-01 12:35:43 +000032205DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032206case "${build_os}" in
32207 mingw* )
cristy4f820712011-04-01 12:35:43 +000032208 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
cristy3ed852e2009-09-05 21:47:34 +000032209 ;;
32210esac
32211
32212cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032213#define SHARE_PATH "$DEFINE_SHARE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032214_ACEOF
32215
32216
32217
cristy54378032012-12-04 15:52:20 +000032218#
32219# Subdirectory to place architecture-dependent configuration files.
32220if test "x$SHAREARCH_BASEDIRNAME" = "x"; then
32221 SHAREARCH_BASEDIRNAME="config"
32222fi
cristy670aa3c2011-11-03 00:54:00 +000032223
32224cat >>confdefs.h <<_ACEOF
cristy54378032012-12-04 15:52:20 +000032225#define SHAREARCH_BASEDIRNAME "$SHAREARCH_BASEDIRNAME"
cristy670aa3c2011-11-03 00:54:00 +000032226_ACEOF
32227
cristy54378032012-12-04 15:52:20 +000032228
32229
32230if test "x$SHAREARCH_DIRNAME" = "x"; then
32231 SHAREARCH_DIRNAME=${SHAREARCH_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
32232else
cristy670aa3c2011-11-03 00:54:00 +000032233
32234cat >>confdefs.h <<_ACEOF
cristy54378032012-12-04 15:52:20 +000032235#define SHAREARCH_DIRNAME "$SHAREARCH_DIRNAME"
cristy670aa3c2011-11-03 00:54:00 +000032236_ACEOF
32237
cristy54378032012-12-04 15:52:20 +000032238fi
32239
32240
32241SHAREARCH_RELATIVE_PATH="${SHAREARCH_DIRNAME}"
32242
32243SHAREARCH_PATH="${LIBRARY_PATH}/${SHAREARCH_RELATIVE_PATH}"
cristy670aa3c2011-11-03 00:54:00 +000032244
32245
cristy3ed852e2009-09-05 21:47:34 +000032246#
32247# program_transform_name is formed for use in a Makefile, so create a
32248# modified version for use in a shell script.
32249configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
32250
32251# Default delegate definitions
cristyad38abe2012-12-23 23:03:21 +000032252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32253$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000032255$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000032256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32257$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032258AutotraceDecodeDelegateDefault='autotrace'
cristy16b412d2014-12-15 11:09:48 +000032259BPGDecodeDelegateDefault='bpgdec'
32260BPGEncodeDelegateDefault='bpgenc'
cristy3d7f8062009-09-24 20:45:35 +000032261BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000032262BZIPDelegateDefault='bzip2'
32263BrowseDelegateDefault='xdg-open'
cristy3ed852e2009-09-05 21:47:34 +000032264CatDelegateDefault='cat'
32265DNGDecodeDelegateDefault='ufraw-batch'
cristy66f238e2014-05-16 12:21:48 +000032266DOCDecodeDelegateDefault='soffice'
cristy3ed852e2009-09-05 21:47:34 +000032267GVCDecodeDelegateDefault='dot'
32268DVIDecodeDelegateDefault='dvips'
32269EchoDelegateDefault='echo'
32270EditorDelegateDefault='xterm'
cristy3ed852e2009-09-05 21:47:34 +000032271ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
32272DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
32273MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
32274GnuplotDecodeDelegateDefault='gnuplot'
cristy3ed852e2009-09-05 21:47:34 +000032275HPGLDecodeDelegateDefault='hp2xx'
32276HTMLDecodeDelegateDefault='html2ps'
32277ILBMDecodeDelegateDefault='ilbmtoppm'
32278ILBMEncodeDelegateDefault='ppmtoilbm'
cristy71f53d52013-04-27 13:33:59 +000032279JXRDecodeDelegateDefault='JxrDecApp'
32280JXREncodeDelegateDefault='JxrEncApp'
cristy3ed852e2009-09-05 21:47:34 +000032281LPDelegateDefault='lp'
32282LPRDelegateDefault='lpr'
cristy3ed852e2009-09-05 21:47:34 +000032283LaunchDelegateDefault='gimp'
32284MANDelegateDefault='groff'
cristy81ab5af2013-10-06 18:28:39 +000032285MPEGDecodeDelegateDefault='avconv'
32286MPEGEncodeDelegateDefault='avconv'
cristy935c86e2010-06-05 23:50:07 +000032287MrSIDDecodeDelegateDefault='mrsidgeodecode'
cristy3ed852e2009-09-05 21:47:34 +000032288MVDelegateDefault='mv'
32289PCLDelegateDefault='pcl6'
32290PGPDecodeDelegateDefault='pgpv'
32291POVDelegateDefault='povray'
32292if test "$native_win32_build" = 'yes'; then
32293 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000032294elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000032295 PSDelegateDefault='gsc'
32296else
32297 PSDelegateDefault='gs'
32298fi
32299RLEEncodeDelegateDefault='rawtorle'
32300RMDelegateDefault='rm'
cristy5281e322012-02-09 21:12:45 +000032301RSVGDecodeDelegateDefault='rsvg-convert'
cristy3ed852e2009-09-05 21:47:34 +000032302SCANDecodeDelegateDefault='scanimage'
cristyec6934f2012-08-14 18:38:40 +000032303SVGDecodeDelegateDefault='inkscape'
cristy3ed852e2009-09-05 21:47:34 +000032304TXTDelegateDefault='enscript'
cristy16db5ed2010-07-29 13:32:02 +000032305UniconvertorDelegateDefault='uniconvertor'
cristy86e86092013-08-04 17:43:57 +000032306WebPDecodeDelegateDefault='dwebp'
32307WebPEncodeDelegateDefault='cwebp'
cristy3ed852e2009-09-05 21:47:34 +000032308WMFDecodeDelegateDefault='wmf2eps'
32309WWWDecodeDelegateDefault='curl'
32310XPSDelegateDefault='gxps'
32311ZipDelegateDefault='gzip'
32312
32313# Search for delegates
32314# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
32315set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032317$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032318if ${ac_cv_path_AutotraceDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032319 $as_echo_n "(cached) " >&6
32320else
32321 case $AutotraceDecodeDelegate in
32322 [\\/]* | ?:[\\/]*)
32323 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
32324 ;;
32325 *)
32326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32327for as_dir in $PATH
32328do
32329 IFS=$as_save_IFS
32330 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032331 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032333 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032335 break 2
32336 fi
32337done
cristy8b350f62009-11-15 23:12:43 +000032338 done
cristy3ed852e2009-09-05 21:47:34 +000032339IFS=$as_save_IFS
32340
32341 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
32342 ;;
32343esac
32344fi
32345AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
32346if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032348$as_echo "$AutotraceDecodeDelegate" >&6; }
32349else
cristy8b350f62009-11-15 23:12:43 +000032350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032351$as_echo "no" >&6; }
32352fi
32353
32354
cristy16b412d2014-12-15 11:09:48 +000032355# Extract the first word of ""$BGPDecodeDelegateDefault"", so it can be a program name with args.
32356set dummy "$BGPDecodeDelegateDefault"; ac_word=$2
32357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32358$as_echo_n "checking for $ac_word... " >&6; }
32359if ${ac_cv_path_BGPDecodeDelegate+:} false; then :
32360 $as_echo_n "(cached) " >&6
32361else
32362 case $BGPDecodeDelegate in
32363 [\\/]* | ?:[\\/]*)
32364 ac_cv_path_BGPDecodeDelegate="$BGPDecodeDelegate" # Let the user override the test with a path.
32365 ;;
32366 *)
32367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32368for as_dir in $PATH
32369do
32370 IFS=$as_save_IFS
32371 test -z "$as_dir" && as_dir=.
32372 for ac_exec_ext in '' $ac_executable_extensions; do
32373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32374 ac_cv_path_BGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
32375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32376 break 2
32377 fi
32378done
32379 done
32380IFS=$as_save_IFS
32381
32382 test -z "$ac_cv_path_BGPDecodeDelegate" && ac_cv_path_BGPDecodeDelegate=""$BGPDecodeDelegateDefault""
32383 ;;
32384esac
32385fi
32386BGPDecodeDelegate=$ac_cv_path_BGPDecodeDelegate
32387if test -n "$BGPDecodeDelegate"; then
32388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BGPDecodeDelegate" >&5
32389$as_echo "$BGPDecodeDelegate" >&6; }
32390else
32391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32392$as_echo "no" >&6; }
32393fi
32394
32395
32396# Extract the first word of ""$BGPEncodeDelegateDefault"", so it can be a program name with args.
32397set dummy "$BGPEncodeDelegateDefault"; ac_word=$2
32398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32399$as_echo_n "checking for $ac_word... " >&6; }
32400if ${ac_cv_path_BGPEncodeDelegate+:} false; then :
32401 $as_echo_n "(cached) " >&6
32402else
32403 case $BGPEncodeDelegate in
32404 [\\/]* | ?:[\\/]*)
32405 ac_cv_path_BGPEncodeDelegate="$BGPEncodeDelegate" # Let the user override the test with a path.
32406 ;;
32407 *)
32408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32409for as_dir in $PATH
32410do
32411 IFS=$as_save_IFS
32412 test -z "$as_dir" && as_dir=.
32413 for ac_exec_ext in '' $ac_executable_extensions; do
32414 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32415 ac_cv_path_BGPEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
32416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32417 break 2
32418 fi
32419done
32420 done
32421IFS=$as_save_IFS
32422
32423 test -z "$ac_cv_path_BGPEncodeDelegate" && ac_cv_path_BGPEncodeDelegate=""$BGPEncodeDelegateDefault""
32424 ;;
32425esac
32426fi
32427BGPEncodeDelegate=$ac_cv_path_BGPEncodeDelegate
32428if test -n "$BGPEncodeDelegate"; then
32429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BGPEncodeDelegate" >&5
32430$as_echo "$BGPEncodeDelegate" >&6; }
32431else
32432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32433$as_echo "no" >&6; }
32434fi
32435
32436
cristy3ed852e2009-09-05 21:47:34 +000032437# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
32438set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032440$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032441if ${ac_cv_path_BlenderDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032442 $as_echo_n "(cached) " >&6
32443else
32444 case $BlenderDecodeDelegate in
32445 [\\/]* | ?:[\\/]*)
32446 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
32447 ;;
32448 *)
32449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32450for as_dir in $PATH
32451do
32452 IFS=$as_save_IFS
32453 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032454 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032455 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032456 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032458 break 2
32459 fi
32460done
cristy8b350f62009-11-15 23:12:43 +000032461 done
cristy3ed852e2009-09-05 21:47:34 +000032462IFS=$as_save_IFS
32463
32464 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
32465 ;;
32466esac
32467fi
32468BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
32469if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032471$as_echo "$BlenderDecodeDelegate" >&6; }
32472else
cristy8b350f62009-11-15 23:12:43 +000032473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032474$as_echo "no" >&6; }
32475fi
32476
32477
32478# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
32479set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032481$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032482if ${ac_cv_path_BZIPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032483 $as_echo_n "(cached) " >&6
32484else
32485 case $BZIPDelegate in
32486 [\\/]* | ?:[\\/]*)
32487 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
32488 ;;
32489 *)
32490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32491for as_dir in $PATH
32492do
32493 IFS=$as_save_IFS
32494 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032495 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032496 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032497 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032499 break 2
32500 fi
32501done
cristy8b350f62009-11-15 23:12:43 +000032502 done
cristy3ed852e2009-09-05 21:47:34 +000032503IFS=$as_save_IFS
32504
32505 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
32506 ;;
32507esac
32508fi
32509BZIPDelegate=$ac_cv_path_BZIPDelegate
32510if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032512$as_echo "$BZIPDelegate" >&6; }
32513else
cristy8b350f62009-11-15 23:12:43 +000032514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032515$as_echo "no" >&6; }
32516fi
32517
32518
cristyc59f0e72012-08-27 12:59:33 +000032519for ac_prog in "$BrowseDelegateDefault" google-chrome firefox konqueror mozilla lynx
32520do
32521 # Extract the first word of "$ac_prog", so it can be a program name with args.
32522set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032524$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032525if ${ac_cv_path_BrowseDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032526 $as_echo_n "(cached) " >&6
32527else
32528 case $BrowseDelegate in
32529 [\\/]* | ?:[\\/]*)
32530 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
32531 ;;
32532 *)
32533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32534for as_dir in $PATH
32535do
32536 IFS=$as_save_IFS
32537 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032538 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032539 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032540 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032542 break 2
32543 fi
32544done
cristy8b350f62009-11-15 23:12:43 +000032545 done
cristy3ed852e2009-09-05 21:47:34 +000032546IFS=$as_save_IFS
32547
cristy3ed852e2009-09-05 21:47:34 +000032548 ;;
32549esac
32550fi
32551BrowseDelegate=$ac_cv_path_BrowseDelegate
32552if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032554$as_echo "$BrowseDelegate" >&6; }
32555else
cristy8b350f62009-11-15 23:12:43 +000032556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032557$as_echo "no" >&6; }
32558fi
32559
32560
cristyc59f0e72012-08-27 12:59:33 +000032561 test -n "$BrowseDelegate" && break
32562done
32563test -n "$BrowseDelegate" || BrowseDelegate=""$BrowseDelegateDefault""
32564
cristy3ed852e2009-09-05 21:47:34 +000032565# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
32566set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032568$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032569if ${ac_cv_path_CatDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032570 $as_echo_n "(cached) " >&6
32571else
32572 case $CatDelegate in
32573 [\\/]* | ?:[\\/]*)
32574 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
32575 ;;
32576 *)
32577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32578for as_dir in $PATH
32579do
32580 IFS=$as_save_IFS
32581 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032582 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032584 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032586 break 2
32587 fi
32588done
cristy8b350f62009-11-15 23:12:43 +000032589 done
cristy3ed852e2009-09-05 21:47:34 +000032590IFS=$as_save_IFS
32591
32592 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
32593 ;;
32594esac
32595fi
32596CatDelegate=$ac_cv_path_CatDelegate
32597if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032599$as_echo "$CatDelegate" >&6; }
32600else
cristy8b350f62009-11-15 23:12:43 +000032601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032602$as_echo "no" >&6; }
32603fi
32604
32605
32606# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
32607set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032609$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032610if ${ac_cv_path_DNGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032611 $as_echo_n "(cached) " >&6
32612else
32613 case $DNGDecodeDelegate in
32614 [\\/]* | ?:[\\/]*)
32615 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
32616 ;;
32617 *)
32618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32619for as_dir in $PATH
32620do
32621 IFS=$as_save_IFS
32622 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032623 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032624 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032625 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032627 break 2
32628 fi
32629done
cristy8b350f62009-11-15 23:12:43 +000032630 done
cristy3ed852e2009-09-05 21:47:34 +000032631IFS=$as_save_IFS
32632
32633 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
32634 ;;
32635esac
32636fi
32637DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
32638if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032640$as_echo "$DNGDecodeDelegate" >&6; }
32641else
cristy8b350f62009-11-15 23:12:43 +000032642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032643$as_echo "no" >&6; }
32644fi
32645
32646
cristy66f238e2014-05-16 12:21:48 +000032647# Extract the first word of ""$DOCDecodeDelegateDefault"", so it can be a program name with args.
32648set dummy "$DOCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032650$as_echo_n "checking for $ac_word... " >&6; }
cristy66f238e2014-05-16 12:21:48 +000032651if ${ac_cv_path_DOCDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032652 $as_echo_n "(cached) " >&6
32653else
cristy66f238e2014-05-16 12:21:48 +000032654 case $DOCDecodeDelegate in
cristy3ed852e2009-09-05 21:47:34 +000032655 [\\/]* | ?:[\\/]*)
cristy66f238e2014-05-16 12:21:48 +000032656 ac_cv_path_DOCDecodeDelegate="$DOCDecodeDelegate" # Let the user override the test with a path.
cristy3ed852e2009-09-05 21:47:34 +000032657 ;;
32658 *)
32659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32660for as_dir in $PATH
32661do
32662 IFS=$as_save_IFS
32663 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032664 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032665 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy66f238e2014-05-16 12:21:48 +000032666 ac_cv_path_DOCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032668 break 2
32669 fi
32670done
cristy8b350f62009-11-15 23:12:43 +000032671 done
cristy3ed852e2009-09-05 21:47:34 +000032672IFS=$as_save_IFS
32673
cristy66f238e2014-05-16 12:21:48 +000032674 test -z "$ac_cv_path_DOCDecodeDelegate" && ac_cv_path_DOCDecodeDelegate=""$DOCDecodeDelegateDefault""
cristy3ed852e2009-09-05 21:47:34 +000032675 ;;
32676esac
32677fi
cristy66f238e2014-05-16 12:21:48 +000032678DOCDecodeDelegate=$ac_cv_path_DOCDecodeDelegate
32679if test -n "$DOCDecodeDelegate"; then
32680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOCDecodeDelegate" >&5
32681$as_echo "$DOCDecodeDelegate" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032682else
cristy8b350f62009-11-15 23:12:43 +000032683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032684$as_echo "no" >&6; }
32685fi
32686
32687
32688# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
32689set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032691$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032692if ${ac_cv_path_DVIDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032693 $as_echo_n "(cached) " >&6
32694else
32695 case $DVIDecodeDelegate in
32696 [\\/]* | ?:[\\/]*)
32697 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
32698 ;;
32699 *)
32700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32701for as_dir in $PATH
32702do
32703 IFS=$as_save_IFS
32704 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032705 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032707 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032709 break 2
32710 fi
32711done
cristy8b350f62009-11-15 23:12:43 +000032712 done
cristy3ed852e2009-09-05 21:47:34 +000032713IFS=$as_save_IFS
32714
32715 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
32716 ;;
32717esac
32718fi
32719DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
32720if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032722$as_echo "$DVIDecodeDelegate" >&6; }
32723else
cristy8b350f62009-11-15 23:12:43 +000032724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032725$as_echo "no" >&6; }
32726fi
32727
32728
cristy3ed852e2009-09-05 21:47:34 +000032729# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
32730set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032732$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032733if ${ac_cv_path_ConvertDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032734 $as_echo_n "(cached) " >&6
32735else
32736 case $ConvertDelegate in
32737 [\\/]* | ?:[\\/]*)
32738 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
32739 ;;
32740 *)
32741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32742for as_dir in $PATH
32743do
32744 IFS=$as_save_IFS
32745 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032746 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032748 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032750 break 2
32751 fi
32752done
cristy8b350f62009-11-15 23:12:43 +000032753 done
cristy3ed852e2009-09-05 21:47:34 +000032754IFS=$as_save_IFS
32755
32756 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
32757 ;;
32758esac
32759fi
32760ConvertDelegate=$ac_cv_path_ConvertDelegate
32761if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032763$as_echo "$ConvertDelegate" >&6; }
32764else
cristy8b350f62009-11-15 23:12:43 +000032765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032766$as_echo "no" >&6; }
32767fi
32768
32769
32770# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
32771set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032773$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032774if ${ac_cv_path_DisplayDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032775 $as_echo_n "(cached) " >&6
32776else
32777 case $DisplayDelegate in
32778 [\\/]* | ?:[\\/]*)
32779 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
32780 ;;
32781 *)
32782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32783for as_dir in $PATH
32784do
32785 IFS=$as_save_IFS
32786 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032787 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032788 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032789 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032791 break 2
32792 fi
32793done
cristy8b350f62009-11-15 23:12:43 +000032794 done
cristy3ed852e2009-09-05 21:47:34 +000032795IFS=$as_save_IFS
32796
32797 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
32798 ;;
32799esac
32800fi
32801DisplayDelegate=$ac_cv_path_DisplayDelegate
32802if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032804$as_echo "$DisplayDelegate" >&6; }
32805else
cristy8b350f62009-11-15 23:12:43 +000032806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032807$as_echo "no" >&6; }
32808fi
32809
32810
cristy66f238e2014-05-16 12:21:48 +000032811# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
32812set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032814$as_echo_n "checking for $ac_word... " >&6; }
cristy66f238e2014-05-16 12:21:48 +000032815if ${ac_cv_path_EchoDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032816 $as_echo_n "(cached) " >&6
32817else
cristy66f238e2014-05-16 12:21:48 +000032818 case $EchoDelegate in
cristy3ed852e2009-09-05 21:47:34 +000032819 [\\/]* | ?:[\\/]*)
cristy66f238e2014-05-16 12:21:48 +000032820 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
cristy3ed852e2009-09-05 21:47:34 +000032821 ;;
32822 *)
32823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32824for as_dir in $PATH
32825do
32826 IFS=$as_save_IFS
32827 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032828 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032829 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy66f238e2014-05-16 12:21:48 +000032830 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032832 break 2
32833 fi
32834done
cristy8b350f62009-11-15 23:12:43 +000032835 done
cristy3ed852e2009-09-05 21:47:34 +000032836IFS=$as_save_IFS
32837
cristy66f238e2014-05-16 12:21:48 +000032838 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
cristy3ed852e2009-09-05 21:47:34 +000032839 ;;
32840esac
32841fi
cristy66f238e2014-05-16 12:21:48 +000032842EchoDelegate=$ac_cv_path_EchoDelegate
32843if test -n "$EchoDelegate"; then
32844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
32845$as_echo "$EchoDelegate" >&6; }
32846else
32847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32848$as_echo "no" >&6; }
32849fi
32850
32851
32852# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
32853set dummy "$EditorDelegateDefault"; ac_word=$2
32854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32855$as_echo_n "checking for $ac_word... " >&6; }
32856if ${ac_cv_path_EditorDelegate+:} false; then :
32857 $as_echo_n "(cached) " >&6
32858else
32859 case $EditorDelegate in
32860 [\\/]* | ?:[\\/]*)
32861 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
32862 ;;
32863 *)
32864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32865for as_dir in $PATH
32866do
32867 IFS=$as_save_IFS
32868 test -z "$as_dir" && as_dir=.
32869 for ac_exec_ext in '' $ac_executable_extensions; do
32870 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32871 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
32872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32873 break 2
32874 fi
32875done
32876 done
32877IFS=$as_save_IFS
32878
32879 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
32880 ;;
32881esac
32882fi
32883EditorDelegate=$ac_cv_path_EditorDelegate
32884if test -n "$EditorDelegate"; then
32885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
32886$as_echo "$EditorDelegate" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032887else
cristy8b350f62009-11-15 23:12:43 +000032888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032889$as_echo "no" >&6; }
32890fi
32891
32892
32893# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
32894set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032896$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032897if ${ac_cv_path_GnuplotDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032898 $as_echo_n "(cached) " >&6
32899else
32900 case $GnuplotDecodeDelegate in
32901 [\\/]* | ?:[\\/]*)
32902 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
32903 ;;
32904 *)
32905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32906for as_dir in $PATH
32907do
32908 IFS=$as_save_IFS
32909 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032910 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032912 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032914 break 2
32915 fi
32916done
cristy8b350f62009-11-15 23:12:43 +000032917 done
cristy3ed852e2009-09-05 21:47:34 +000032918IFS=$as_save_IFS
32919
32920 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
32921 ;;
32922esac
32923fi
32924GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
32925if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032927$as_echo "$GnuplotDecodeDelegate" >&6; }
32928else
cristy8b350f62009-11-15 23:12:43 +000032929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032930$as_echo "no" >&6; }
32931fi
32932
32933
cristy66f238e2014-05-16 12:21:48 +000032934# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
32935set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
32936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32937$as_echo_n "checking for $ac_word... " >&6; }
32938if ${ac_cv_path_GVCDecodeDelegate+:} false; then :
32939 $as_echo_n "(cached) " >&6
32940else
32941 case $GVCDecodeDelegate in
32942 [\\/]* | ?:[\\/]*)
32943 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
32944 ;;
32945 *)
32946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32947for as_dir in $PATH
32948do
32949 IFS=$as_save_IFS
32950 test -z "$as_dir" && as_dir=.
32951 for ac_exec_ext in '' $ac_executable_extensions; do
32952 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32953 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
32954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32955 break 2
32956 fi
32957done
32958 done
32959IFS=$as_save_IFS
32960
32961 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
32962 ;;
32963esac
32964fi
32965GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
32966if test -n "$GVCDecodeDelegate"; then
32967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
32968$as_echo "$GVCDecodeDelegate" >&6; }
32969else
32970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32971$as_echo "no" >&6; }
32972fi
32973
32974
cristy3ed852e2009-09-05 21:47:34 +000032975# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
32976set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032978$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032979if ${ac_cv_path_HPGLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032980 $as_echo_n "(cached) " >&6
32981else
32982 case $HPGLDecodeDelegate in
32983 [\\/]* | ?:[\\/]*)
32984 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
32985 ;;
32986 *)
32987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32988for as_dir in $PATH
32989do
32990 IFS=$as_save_IFS
32991 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032992 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032994 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032996 break 2
32997 fi
32998done
cristy8b350f62009-11-15 23:12:43 +000032999 done
cristy3ed852e2009-09-05 21:47:34 +000033000IFS=$as_save_IFS
33001
33002 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
33003 ;;
33004esac
33005fi
33006HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
33007if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033009$as_echo "$HPGLDecodeDelegate" >&6; }
33010else
cristy8b350f62009-11-15 23:12:43 +000033011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033012$as_echo "no" >&6; }
33013fi
33014
33015
33016# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
33017set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033019$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033020if ${ac_cv_path_HTMLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033021 $as_echo_n "(cached) " >&6
33022else
33023 case $HTMLDecodeDelegate in
33024 [\\/]* | ?:[\\/]*)
33025 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
33026 ;;
33027 *)
33028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33029for as_dir in $PATH
33030do
33031 IFS=$as_save_IFS
33032 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033033 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033034 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033035 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033037 break 2
33038 fi
33039done
cristy8b350f62009-11-15 23:12:43 +000033040 done
cristy3ed852e2009-09-05 21:47:34 +000033041IFS=$as_save_IFS
33042
33043 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
33044 ;;
33045esac
33046fi
33047HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
33048if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033050$as_echo "$HTMLDecodeDelegate" >&6; }
33051else
cristy8b350f62009-11-15 23:12:43 +000033052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033053$as_echo "no" >&6; }
33054fi
33055
33056
33057# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
33058set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033060$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033061if ${ac_cv_path_ILBMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033062 $as_echo_n "(cached) " >&6
33063else
33064 case $ILBMDecodeDelegate in
33065 [\\/]* | ?:[\\/]*)
33066 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
33067 ;;
33068 *)
33069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33070for as_dir in $PATH
33071do
33072 IFS=$as_save_IFS
33073 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033074 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033075 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033076 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033078 break 2
33079 fi
33080done
cristy8b350f62009-11-15 23:12:43 +000033081 done
cristy3ed852e2009-09-05 21:47:34 +000033082IFS=$as_save_IFS
33083
33084 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
33085 ;;
33086esac
33087fi
33088ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
33089if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033091$as_echo "$ILBMDecodeDelegate" >&6; }
33092else
cristy8b350f62009-11-15 23:12:43 +000033093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033094$as_echo "no" >&6; }
33095fi
33096
33097
33098# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
33099set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033101$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033102if ${ac_cv_path_ILBMEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033103 $as_echo_n "(cached) " >&6
33104else
33105 case $ILBMEncodeDelegate in
33106 [\\/]* | ?:[\\/]*)
33107 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
33108 ;;
33109 *)
33110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33111for as_dir in $PATH
33112do
33113 IFS=$as_save_IFS
33114 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033115 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033116 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033117 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033119 break 2
33120 fi
33121done
cristy8b350f62009-11-15 23:12:43 +000033122 done
cristy3ed852e2009-09-05 21:47:34 +000033123IFS=$as_save_IFS
33124
33125 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
33126 ;;
33127esac
33128fi
33129ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
33130if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033132$as_echo "$ILBMEncodeDelegate" >&6; }
33133else
cristy8b350f62009-11-15 23:12:43 +000033134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033135$as_echo "no" >&6; }
33136fi
33137
33138
cristy71f53d52013-04-27 13:33:59 +000033139# Extract the first word of ""$JXRDecodeDelegateDefault"", so it can be a program name with args.
33140set dummy "$JXRDecodeDelegateDefault"; ac_word=$2
33141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33142$as_echo_n "checking for $ac_word... " >&6; }
33143if ${ac_cv_path_JXRDecodeDelegate+:} false; then :
33144 $as_echo_n "(cached) " >&6
33145else
33146 case $JXRDecodeDelegate in
33147 [\\/]* | ?:[\\/]*)
33148 ac_cv_path_JXRDecodeDelegate="$JXRDecodeDelegate" # Let the user override the test with a path.
33149 ;;
33150 *)
33151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33152for as_dir in $PATH
33153do
33154 IFS=$as_save_IFS
33155 test -z "$as_dir" && as_dir=.
33156 for ac_exec_ext in '' $ac_executable_extensions; do
33157 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33158 ac_cv_path_JXRDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33160 break 2
33161 fi
33162done
33163 done
33164IFS=$as_save_IFS
33165
33166 test -z "$ac_cv_path_JXRDecodeDelegate" && ac_cv_path_JXRDecodeDelegate=""$JXRDecodeDelegateDefault""
33167 ;;
33168esac
33169fi
33170JXRDecodeDelegate=$ac_cv_path_JXRDecodeDelegate
33171if test -n "$JXRDecodeDelegate"; then
33172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JXRDecodeDelegate" >&5
33173$as_echo "$JXRDecodeDelegate" >&6; }
33174else
33175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33176$as_echo "no" >&6; }
33177fi
33178
33179
33180# Extract the first word of ""$JXREncodeDelegateDefault"", so it can be a program name with args.
33181set dummy "$JXREncodeDelegateDefault"; ac_word=$2
33182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33183$as_echo_n "checking for $ac_word... " >&6; }
33184if ${ac_cv_path_JXREncodeDelegate+:} false; then :
33185 $as_echo_n "(cached) " >&6
33186else
33187 case $JXREncodeDelegate in
33188 [\\/]* | ?:[\\/]*)
33189 ac_cv_path_JXREncodeDelegate="$JXREncodeDelegate" # Let the user override the test with a path.
33190 ;;
33191 *)
33192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33193for as_dir in $PATH
33194do
33195 IFS=$as_save_IFS
33196 test -z "$as_dir" && as_dir=.
33197 for ac_exec_ext in '' $ac_executable_extensions; do
33198 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33199 ac_cv_path_JXREncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33201 break 2
33202 fi
33203done
33204 done
33205IFS=$as_save_IFS
33206
33207 test -z "$ac_cv_path_JXREncodeDelegate" && ac_cv_path_JXREncodeDelegate=""$JXREncodeDelegateDefault""
33208 ;;
33209esac
33210fi
33211JXREncodeDelegate=$ac_cv_path_JXREncodeDelegate
33212if test -n "$JXREncodeDelegate"; then
33213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JXREncodeDelegate" >&5
33214$as_echo "$JXREncodeDelegate" >&6; }
33215else
33216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33217$as_echo "no" >&6; }
33218fi
33219
33220
cristy3ed852e2009-09-05 21:47:34 +000033221# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
33222set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033224$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033225if ${ac_cv_path_LPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033226 $as_echo_n "(cached) " >&6
33227else
33228 case $LPDelegate in
33229 [\\/]* | ?:[\\/]*)
33230 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
33231 ;;
33232 *)
33233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33234for as_dir in $PATH
33235do
33236 IFS=$as_save_IFS
33237 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033238 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033239 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033240 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033242 break 2
33243 fi
33244done
cristy8b350f62009-11-15 23:12:43 +000033245 done
cristy3ed852e2009-09-05 21:47:34 +000033246IFS=$as_save_IFS
33247
33248 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
33249 ;;
33250esac
33251fi
33252LPDelegate=$ac_cv_path_LPDelegate
33253if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033255$as_echo "$LPDelegate" >&6; }
33256else
cristy8b350f62009-11-15 23:12:43 +000033257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033258$as_echo "no" >&6; }
33259fi
33260
33261
33262# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
33263set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033265$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033266if ${ac_cv_path_LPRDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033267 $as_echo_n "(cached) " >&6
33268else
33269 case $LPRDelegate in
33270 [\\/]* | ?:[\\/]*)
33271 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
33272 ;;
33273 *)
33274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33275for as_dir in $PATH
33276do
33277 IFS=$as_save_IFS
33278 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033279 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033280 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033281 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033283 break 2
33284 fi
33285done
cristy8b350f62009-11-15 23:12:43 +000033286 done
cristy3ed852e2009-09-05 21:47:34 +000033287IFS=$as_save_IFS
33288
33289 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
33290 ;;
33291esac
33292fi
33293LPRDelegate=$ac_cv_path_LPRDelegate
33294if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033296$as_echo "$LPRDelegate" >&6; }
33297else
cristy8b350f62009-11-15 23:12:43 +000033298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033299$as_echo "no" >&6; }
33300fi
33301
33302
cristy3ed852e2009-09-05 21:47:34 +000033303# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
33304set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033306$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033307if ${ac_cv_path_LaunchDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033308 $as_echo_n "(cached) " >&6
33309else
33310 case $LaunchDelegate in
33311 [\\/]* | ?:[\\/]*)
33312 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
33313 ;;
33314 *)
33315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33316for as_dir in $PATH
33317do
33318 IFS=$as_save_IFS
33319 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033320 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033321 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033322 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033324 break 2
33325 fi
33326done
cristy8b350f62009-11-15 23:12:43 +000033327 done
cristy3ed852e2009-09-05 21:47:34 +000033328IFS=$as_save_IFS
33329
33330 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
33331 ;;
33332esac
33333fi
33334LaunchDelegate=$ac_cv_path_LaunchDelegate
33335if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033337$as_echo "$LaunchDelegate" >&6; }
33338else
cristy8b350f62009-11-15 23:12:43 +000033339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033340$as_echo "no" >&6; }
33341fi
33342
33343
33344# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
33345set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033347$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033348if ${ac_cv_path_MANDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033349 $as_echo_n "(cached) " >&6
33350else
33351 case $MANDelegate in
33352 [\\/]* | ?:[\\/]*)
33353 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
33354 ;;
33355 *)
33356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33357for as_dir in $PATH
33358do
33359 IFS=$as_save_IFS
33360 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033361 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033362 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033363 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033365 break 2
33366 fi
33367done
cristy8b350f62009-11-15 23:12:43 +000033368 done
cristy3ed852e2009-09-05 21:47:34 +000033369IFS=$as_save_IFS
33370
33371 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
33372 ;;
33373esac
33374fi
33375MANDelegate=$ac_cv_path_MANDelegate
33376if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033378$as_echo "$MANDelegate" >&6; }
33379else
cristy8b350f62009-11-15 23:12:43 +000033380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033381$as_echo "no" >&6; }
33382fi
33383
33384
cristy66f238e2014-05-16 12:21:48 +000033385# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
33386set dummy "$MogrifyDelegateDefault"; ac_word=$2
33387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33388$as_echo_n "checking for $ac_word... " >&6; }
33389if ${ac_cv_path_MogrifyDelegate+:} false; then :
33390 $as_echo_n "(cached) " >&6
33391else
33392 case $MogrifyDelegate in
33393 [\\/]* | ?:[\\/]*)
33394 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
33395 ;;
33396 *)
33397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33398for as_dir in $PATH
33399do
33400 IFS=$as_save_IFS
33401 test -z "$as_dir" && as_dir=.
33402 for ac_exec_ext in '' $ac_executable_extensions; do
33403 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33404 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
33405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33406 break 2
33407 fi
33408done
33409 done
33410IFS=$as_save_IFS
33411
33412 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
33413 ;;
33414esac
33415fi
33416MogrifyDelegate=$ac_cv_path_MogrifyDelegate
33417if test -n "$MogrifyDelegate"; then
33418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
33419$as_echo "$MogrifyDelegate" >&6; }
33420else
33421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33422$as_echo "no" >&6; }
33423fi
33424
33425
cristy3ed852e2009-09-05 21:47:34 +000033426# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
33427set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033429$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033430if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033431 $as_echo_n "(cached) " >&6
33432else
33433 case $MPEGDecodeDelegate in
33434 [\\/]* | ?:[\\/]*)
33435 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
33436 ;;
33437 *)
33438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33439for as_dir in $PATH
33440do
33441 IFS=$as_save_IFS
33442 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033443 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033444 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033445 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033447 break 2
33448 fi
33449done
cristy8b350f62009-11-15 23:12:43 +000033450 done
cristy3ed852e2009-09-05 21:47:34 +000033451IFS=$as_save_IFS
33452
33453 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
33454 ;;
33455esac
33456fi
33457MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
33458if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033460$as_echo "$MPEGDecodeDelegate" >&6; }
33461else
cristy8b350f62009-11-15 23:12:43 +000033462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033463$as_echo "no" >&6; }
33464fi
33465
33466
cristy058d15f2014-08-21 18:53:03 +000033467if test "$MPEGDecodeDelegate" = "$MPEGDecodeDelegateDefault" ; then
cristy81ab5af2013-10-06 18:28:39 +000033468 MPEGDecodeDelegateDefault='ffmpeg'
33469 # Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
33470set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
33471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33472$as_echo_n "checking for $ac_word... " >&6; }
33473if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
33474 $as_echo_n "(cached) " >&6
33475else
33476 case $MPEGDecodeDelegate in
33477 [\\/]* | ?:[\\/]*)
33478 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
33479 ;;
33480 *)
33481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33482for as_dir in $PATH
33483do
33484 IFS=$as_save_IFS
33485 test -z "$as_dir" && as_dir=.
33486 for ac_exec_ext in '' $ac_executable_extensions; do
33487 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33488 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33490 break 2
33491 fi
33492done
33493 done
33494IFS=$as_save_IFS
33495
33496 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
33497 ;;
33498esac
33499fi
33500MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
33501if test -n "$MPEGDecodeDelegate"; then
33502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
33503$as_echo "$MPEGDecodeDelegate" >&6; }
33504else
33505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33506$as_echo "no" >&6; }
33507fi
33508
33509
33510fi;
cristy3ed852e2009-09-05 21:47:34 +000033511# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
33512set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033514$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033515if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033516 $as_echo_n "(cached) " >&6
33517else
33518 case $MPEGEncodeDelegate in
33519 [\\/]* | ?:[\\/]*)
33520 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
33521 ;;
33522 *)
33523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33524for as_dir in $PATH
33525do
33526 IFS=$as_save_IFS
33527 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033528 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033530 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033532 break 2
33533 fi
33534done
cristy8b350f62009-11-15 23:12:43 +000033535 done
cristy3ed852e2009-09-05 21:47:34 +000033536IFS=$as_save_IFS
33537
33538 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
33539 ;;
33540esac
33541fi
33542MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
33543if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033545$as_echo "$MPEGEncodeDelegate" >&6; }
33546else
cristy8b350f62009-11-15 23:12:43 +000033547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033548$as_echo "no" >&6; }
33549fi
33550
33551
cristy058d15f2014-08-21 18:53:03 +000033552if test "$MPEGEncodeDelegate" = "$MPEGEncodeDelegateDefault" ; then
cristy81ab5af2013-10-06 18:28:39 +000033553 MPEGEncodeDelegateDefault='ffmpeg'
33554 # Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
33555set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
33556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33557$as_echo_n "checking for $ac_word... " >&6; }
33558if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
33559 $as_echo_n "(cached) " >&6
33560else
33561 case $MPEGEncodeDelegate in
33562 [\\/]* | ?:[\\/]*)
33563 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
33564 ;;
33565 *)
33566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33567for as_dir in $PATH
33568do
33569 IFS=$as_save_IFS
33570 test -z "$as_dir" && as_dir=.
33571 for ac_exec_ext in '' $ac_executable_extensions; do
33572 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33573 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33575 break 2
33576 fi
33577done
33578 done
33579IFS=$as_save_IFS
33580
33581 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
33582 ;;
33583esac
33584fi
33585MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
33586if test -n "$MPEGEncodeDelegate"; then
33587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
33588$as_echo "$MPEGEncodeDelegate" >&6; }
33589else
33590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33591$as_echo "no" >&6; }
33592fi
33593
33594
33595fi;
cristy935c86e2010-06-05 23:50:07 +000033596# Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
33597set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
33598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33599$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033600if ${ac_cv_path_MrSIDDecodeDelegate+:} false; then :
cristy935c86e2010-06-05 23:50:07 +000033601 $as_echo_n "(cached) " >&6
33602else
33603 case $MrSIDDecodeDelegate in
33604 [\\/]* | ?:[\\/]*)
33605 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
33606 ;;
33607 *)
33608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33609for as_dir in $PATH
33610do
33611 IFS=$as_save_IFS
33612 test -z "$as_dir" && as_dir=.
33613 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033614 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy935c86e2010-06-05 23:50:07 +000033615 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33617 break 2
33618 fi
33619done
33620 done
33621IFS=$as_save_IFS
33622
33623 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
33624 ;;
33625esac
33626fi
33627MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
33628if test -n "$MrSIDDecodeDelegate"; then
33629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
33630$as_echo "$MrSIDDecodeDelegate" >&6; }
33631else
33632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33633$as_echo "no" >&6; }
33634fi
33635
33636
cristy3ed852e2009-09-05 21:47:34 +000033637# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
33638set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033640$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033641if ${ac_cv_path_MVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033642 $as_echo_n "(cached) " >&6
33643else
33644 case $MVDelegate in
33645 [\\/]* | ?:[\\/]*)
33646 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
33647 ;;
33648 *)
33649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33650for as_dir in $PATH
33651do
33652 IFS=$as_save_IFS
33653 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033654 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033655 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033656 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033658 break 2
33659 fi
33660done
cristy8b350f62009-11-15 23:12:43 +000033661 done
cristy3ed852e2009-09-05 21:47:34 +000033662IFS=$as_save_IFS
33663
33664 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
33665 ;;
33666esac
33667fi
33668MVDelegate=$ac_cv_path_MVDelegate
33669if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033671$as_echo "$MVDelegate" >&6; }
33672else
cristy8b350f62009-11-15 23:12:43 +000033673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033674$as_echo "no" >&6; }
33675fi
33676
33677
33678# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
33679set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033681$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033682if ${ac_cv_path_PCLDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033683 $as_echo_n "(cached) " >&6
33684else
33685 case $PCLDelegate in
33686 [\\/]* | ?:[\\/]*)
33687 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
33688 ;;
33689 *)
33690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33691for as_dir in $PATH
33692do
33693 IFS=$as_save_IFS
33694 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033695 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033696 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033697 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033699 break 2
33700 fi
33701done
cristy8b350f62009-11-15 23:12:43 +000033702 done
cristy3ed852e2009-09-05 21:47:34 +000033703IFS=$as_save_IFS
33704
33705 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
33706 ;;
33707esac
33708fi
33709PCLDelegate=$ac_cv_path_PCLDelegate
33710if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033712$as_echo "$PCLDelegate" >&6; }
33713else
cristy8b350f62009-11-15 23:12:43 +000033714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033715$as_echo "no" >&6; }
33716fi
33717
33718
33719# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
33720set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033722$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033723if ${ac_cv_path_PGPDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033724 $as_echo_n "(cached) " >&6
33725else
33726 case $PGPDecodeDelegate in
33727 [\\/]* | ?:[\\/]*)
33728 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
33729 ;;
33730 *)
33731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33732for as_dir in $PATH
33733do
33734 IFS=$as_save_IFS
33735 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033736 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033738 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033740 break 2
33741 fi
33742done
cristy8b350f62009-11-15 23:12:43 +000033743 done
cristy3ed852e2009-09-05 21:47:34 +000033744IFS=$as_save_IFS
33745
33746 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
33747 ;;
33748esac
33749fi
33750PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
33751if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033753$as_echo "$PGPDecodeDelegate" >&6; }
33754else
cristy8b350f62009-11-15 23:12:43 +000033755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033756$as_echo "no" >&6; }
33757fi
33758
33759
33760# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
33761set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033763$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033764if ${ac_cv_path_POVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033765 $as_echo_n "(cached) " >&6
33766else
33767 case $POVDelegate in
33768 [\\/]* | ?:[\\/]*)
33769 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
33770 ;;
33771 *)
33772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33773for as_dir in $PATH
33774do
33775 IFS=$as_save_IFS
33776 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033777 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033778 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033779 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033781 break 2
33782 fi
33783done
cristy8b350f62009-11-15 23:12:43 +000033784 done
cristy3ed852e2009-09-05 21:47:34 +000033785IFS=$as_save_IFS
33786
33787 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
33788 ;;
33789esac
33790fi
33791POVDelegate=$ac_cv_path_POVDelegate
33792if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033794$as_echo "$POVDelegate" >&6; }
33795else
cristy8b350f62009-11-15 23:12:43 +000033796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033797$as_echo "no" >&6; }
33798fi
33799
33800
33801for ac_prog in gsx gsc "$PSDelegateDefault"
33802do
33803 # Extract the first word of "$ac_prog", so it can be a program name with args.
33804set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033806$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033807if ${ac_cv_path_PSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033808 $as_echo_n "(cached) " >&6
33809else
33810 case $PSDelegate in
33811 [\\/]* | ?:[\\/]*)
33812 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
33813 ;;
33814 *)
33815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33816for as_dir in $PATH
33817do
33818 IFS=$as_save_IFS
33819 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033820 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033821 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033822 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033824 break 2
33825 fi
33826done
cristy8b350f62009-11-15 23:12:43 +000033827 done
cristy3ed852e2009-09-05 21:47:34 +000033828IFS=$as_save_IFS
33829
33830 ;;
33831esac
33832fi
33833PSDelegate=$ac_cv_path_PSDelegate
33834if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033836$as_echo "$PSDelegate" >&6; }
33837else
cristy8b350f62009-11-15 23:12:43 +000033838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033839$as_echo "no" >&6; }
33840fi
33841
33842
33843 test -n "$PSDelegate" && break
33844done
33845test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
33846
33847# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
33848set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033850$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033851if ${ac_cv_path_RLEEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033852 $as_echo_n "(cached) " >&6
33853else
33854 case $RLEEncodeDelegate in
33855 [\\/]* | ?:[\\/]*)
33856 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
33857 ;;
33858 *)
33859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33860for as_dir in $PATH
33861do
33862 IFS=$as_save_IFS
33863 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033864 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033866 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033868 break 2
33869 fi
33870done
cristy8b350f62009-11-15 23:12:43 +000033871 done
cristy3ed852e2009-09-05 21:47:34 +000033872IFS=$as_save_IFS
33873
33874 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
33875 ;;
33876esac
33877fi
33878RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
33879if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033881$as_echo "$RLEEncodeDelegate" >&6; }
33882else
cristy8b350f62009-11-15 23:12:43 +000033883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033884$as_echo "no" >&6; }
33885fi
33886
33887
33888# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
33889set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033891$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033892if ${ac_cv_path_RMDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033893 $as_echo_n "(cached) " >&6
33894else
33895 case $RMDelegate in
33896 [\\/]* | ?:[\\/]*)
33897 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
33898 ;;
33899 *)
33900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33901for as_dir in $PATH
33902do
33903 IFS=$as_save_IFS
33904 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033905 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033906 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033907 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033909 break 2
33910 fi
33911done
cristy8b350f62009-11-15 23:12:43 +000033912 done
cristy3ed852e2009-09-05 21:47:34 +000033913IFS=$as_save_IFS
33914
33915 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
33916 ;;
33917esac
33918fi
33919RMDelegate=$ac_cv_path_RMDelegate
33920if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033922$as_echo "$RMDelegate" >&6; }
33923else
cristy8b350f62009-11-15 23:12:43 +000033924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033925$as_echo "no" >&6; }
33926fi
33927
33928
cristy4689cf02010-02-17 21:15:45 +000033929# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
33930set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
33931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33932$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033933if ${ac_cv_path_RSVGDecodeDelegate+:} false; then :
cristy4689cf02010-02-17 21:15:45 +000033934 $as_echo_n "(cached) " >&6
33935else
33936 case $RSVGDecodeDelegate in
33937 [\\/]* | ?:[\\/]*)
33938 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
33939 ;;
33940 *)
33941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33942for as_dir in $PATH
33943do
33944 IFS=$as_save_IFS
33945 test -z "$as_dir" && as_dir=.
33946 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033947 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy4689cf02010-02-17 21:15:45 +000033948 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33950 break 2
33951 fi
33952done
33953 done
33954IFS=$as_save_IFS
33955
33956 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
33957 ;;
33958esac
33959fi
33960RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
33961if test -n "$RSVGDecodeDelegate"; then
33962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
33963$as_echo "$RSVGDecodeDelegate" >&6; }
33964else
33965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33966$as_echo "no" >&6; }
33967fi
33968
33969
cristy3ed852e2009-09-05 21:47:34 +000033970# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
33971set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033973$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033974if ${ac_cv_path_SCANDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033975 $as_echo_n "(cached) " >&6
33976else
33977 case $SCANDecodeDelegate in
33978 [\\/]* | ?:[\\/]*)
33979 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
33980 ;;
33981 *)
33982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33983for as_dir in $PATH
33984do
33985 IFS=$as_save_IFS
33986 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033987 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033988 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033989 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033991 break 2
33992 fi
33993done
cristy8b350f62009-11-15 23:12:43 +000033994 done
cristy3ed852e2009-09-05 21:47:34 +000033995IFS=$as_save_IFS
33996
33997 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
33998 ;;
33999esac
34000fi
34001SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
34002if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034004$as_echo "$SCANDecodeDelegate" >&6; }
34005else
cristy8b350f62009-11-15 23:12:43 +000034006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034007$as_echo "no" >&6; }
34008fi
34009
34010
cristyec6934f2012-08-14 18:38:40 +000034011# Extract the first word of ""$SVGDecodeDelegateDefault"", so it can be a program name with args.
34012set dummy "$SVGDecodeDelegateDefault"; ac_word=$2
34013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34014$as_echo_n "checking for $ac_word... " >&6; }
34015if ${ac_cv_path_SVGDecodeDelegate+:} false; then :
34016 $as_echo_n "(cached) " >&6
34017else
34018 case $SVGDecodeDelegate in
34019 [\\/]* | ?:[\\/]*)
34020 ac_cv_path_SVGDecodeDelegate="$SVGDecodeDelegate" # Let the user override the test with a path.
34021 ;;
34022 *)
34023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34024for as_dir in $PATH
34025do
34026 IFS=$as_save_IFS
34027 test -z "$as_dir" && as_dir=.
34028 for ac_exec_ext in '' $ac_executable_extensions; do
34029 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34030 ac_cv_path_SVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34032 break 2
34033 fi
34034done
34035 done
34036IFS=$as_save_IFS
34037
34038 test -z "$ac_cv_path_SVGDecodeDelegate" && ac_cv_path_SVGDecodeDelegate=""$SVGDecodeDelegateDefault""
34039 ;;
34040esac
34041fi
34042SVGDecodeDelegate=$ac_cv_path_SVGDecodeDelegate
34043if test -n "$SVGDecodeDelegate"; then
34044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SVGDecodeDelegate" >&5
34045$as_echo "$SVGDecodeDelegate" >&6; }
34046else
34047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34048$as_echo "no" >&6; }
34049fi
34050
34051
cristy3ed852e2009-09-05 21:47:34 +000034052# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
34053set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034055$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034056if ${ac_cv_path_TXTDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034057 $as_echo_n "(cached) " >&6
34058else
34059 case $TXTDelegate in
34060 [\\/]* | ?:[\\/]*)
34061 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
34062 ;;
34063 *)
34064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34065for as_dir in $PATH
34066do
34067 IFS=$as_save_IFS
34068 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034069 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034070 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034071 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034073 break 2
34074 fi
34075done
cristy8b350f62009-11-15 23:12:43 +000034076 done
cristy3ed852e2009-09-05 21:47:34 +000034077IFS=$as_save_IFS
34078
34079 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
34080 ;;
34081esac
34082fi
34083TXTDelegate=$ac_cv_path_TXTDelegate
34084if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034086$as_echo "$TXTDelegate" >&6; }
34087else
cristy8b350f62009-11-15 23:12:43 +000034088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034089$as_echo "no" >&6; }
34090fi
34091
34092
cristy5ac9ac82010-07-29 13:24:24 +000034093# Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
34094set dummy "$UniconvertorDelegateDefault"; ac_word=$2
34095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34096$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034097if ${ac_cv_path_UniconvertorDelegate+:} false; then :
cristy5ac9ac82010-07-29 13:24:24 +000034098 $as_echo_n "(cached) " >&6
34099else
34100 case $UniconvertorDelegate in
34101 [\\/]* | ?:[\\/]*)
34102 ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
34103 ;;
34104 *)
34105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34106for as_dir in $PATH
34107do
34108 IFS=$as_save_IFS
34109 test -z "$as_dir" && as_dir=.
34110 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034111 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy5ac9ac82010-07-29 13:24:24 +000034112 ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
34113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34114 break 2
34115 fi
34116done
34117 done
34118IFS=$as_save_IFS
34119
34120 test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
34121 ;;
34122esac
34123fi
34124UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
34125if test -n "$UniconvertorDelegate"; then
34126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
34127$as_echo "$UniconvertorDelegate" >&6; }
34128else
34129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34130$as_echo "no" >&6; }
34131fi
34132
34133
cristy86e86092013-08-04 17:43:57 +000034134# Extract the first word of ""$WebPDecodeDelegateDefault"", so it can be a program name with args.
34135set dummy "$WebPDecodeDelegateDefault"; ac_word=$2
34136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34137$as_echo_n "checking for $ac_word... " >&6; }
34138if ${ac_cv_path_WebPDecodeDelegate+:} false; then :
34139 $as_echo_n "(cached) " >&6
34140else
34141 case $WebPDecodeDelegate in
34142 [\\/]* | ?:[\\/]*)
34143 ac_cv_path_WebPDecodeDelegate="$WebPDecodeDelegate" # Let the user override the test with a path.
34144 ;;
34145 *)
34146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34147for as_dir in $PATH
34148do
34149 IFS=$as_save_IFS
34150 test -z "$as_dir" && as_dir=.
34151 for ac_exec_ext in '' $ac_executable_extensions; do
34152 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34153 ac_cv_path_WebPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34155 break 2
34156 fi
34157done
34158 done
34159IFS=$as_save_IFS
34160
34161 test -z "$ac_cv_path_WebPDecodeDelegate" && ac_cv_path_WebPDecodeDelegate=""$WebPDecodeDelegateDefault""
34162 ;;
34163esac
34164fi
34165WebPDecodeDelegate=$ac_cv_path_WebPDecodeDelegate
34166if test -n "$WebPDecodeDelegate"; then
34167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WebPDecodeDelegate" >&5
34168$as_echo "$WebPDecodeDelegate" >&6; }
34169else
34170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34171$as_echo "no" >&6; }
34172fi
34173
34174
34175# Extract the first word of ""$WebPEncodeDelegateDefault"", so it can be a program name with args.
34176set dummy "$WebPEncodeDelegateDefault"; ac_word=$2
34177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34178$as_echo_n "checking for $ac_word... " >&6; }
34179if ${ac_cv_path_WebPEncodeDelegate+:} false; then :
34180 $as_echo_n "(cached) " >&6
34181else
34182 case $WebPEncodeDelegate in
34183 [\\/]* | ?:[\\/]*)
34184 ac_cv_path_WebPEncodeDelegate="$WebPEncodeDelegate" # Let the user override the test with a path.
34185 ;;
34186 *)
34187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34188for as_dir in $PATH
34189do
34190 IFS=$as_save_IFS
34191 test -z "$as_dir" && as_dir=.
34192 for ac_exec_ext in '' $ac_executable_extensions; do
34193 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34194 ac_cv_path_WebPEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34196 break 2
34197 fi
34198done
34199 done
34200IFS=$as_save_IFS
34201
34202 test -z "$ac_cv_path_WebPEncodeDelegate" && ac_cv_path_WebPEncodeDelegate=""$WebPEncodeDelegateDefault""
34203 ;;
34204esac
34205fi
34206WebPEncodeDelegate=$ac_cv_path_WebPEncodeDelegate
34207if test -n "$WebPEncodeDelegate"; then
34208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WebPEncodeDelegate" >&5
34209$as_echo "$WebPEncodeDelegate" >&6; }
34210else
34211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34212$as_echo "no" >&6; }
34213fi
34214
34215
cristy3ed852e2009-09-05 21:47:34 +000034216# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
34217set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034219$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034220if ${ac_cv_path_WMFDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034221 $as_echo_n "(cached) " >&6
34222else
34223 case $WMFDecodeDelegate in
34224 [\\/]* | ?:[\\/]*)
34225 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
34226 ;;
34227 *)
34228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34229for as_dir in $PATH
34230do
34231 IFS=$as_save_IFS
34232 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034233 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034234 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034235 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034237 break 2
34238 fi
34239done
cristy8b350f62009-11-15 23:12:43 +000034240 done
cristy3ed852e2009-09-05 21:47:34 +000034241IFS=$as_save_IFS
34242
34243 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
34244 ;;
34245esac
34246fi
34247WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
34248if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034250$as_echo "$WMFDecodeDelegate" >&6; }
34251else
cristy8b350f62009-11-15 23:12:43 +000034252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034253$as_echo "no" >&6; }
34254fi
34255
34256
34257# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
34258set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034260$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034261if ${ac_cv_path_WWWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034262 $as_echo_n "(cached) " >&6
34263else
34264 case $WWWDecodeDelegate in
34265 [\\/]* | ?:[\\/]*)
34266 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
34267 ;;
34268 *)
34269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34270for as_dir in $PATH
34271do
34272 IFS=$as_save_IFS
34273 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034274 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034275 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034276 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034278 break 2
34279 fi
34280done
cristy8b350f62009-11-15 23:12:43 +000034281 done
cristy3ed852e2009-09-05 21:47:34 +000034282IFS=$as_save_IFS
34283
34284 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
34285 ;;
34286esac
34287fi
34288WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
34289if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034291$as_echo "$WWWDecodeDelegate" >&6; }
34292else
cristy8b350f62009-11-15 23:12:43 +000034293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034294$as_echo "no" >&6; }
34295fi
34296
34297
34298# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
34299set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034301$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034302if ${ac_cv_path_XPSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034303 $as_echo_n "(cached) " >&6
34304else
34305 case $XPSDelegate in
34306 [\\/]* | ?:[\\/]*)
34307 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
34308 ;;
34309 *)
34310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34311for as_dir in $PATH
34312do
34313 IFS=$as_save_IFS
34314 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034315 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034317 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034319 break 2
34320 fi
34321done
cristy8b350f62009-11-15 23:12:43 +000034322 done
cristy3ed852e2009-09-05 21:47:34 +000034323IFS=$as_save_IFS
34324
34325 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
34326 ;;
34327esac
34328fi
34329XPSDelegate=$ac_cv_path_XPSDelegate
34330if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034332$as_echo "$XPSDelegate" >&6; }
34333else
cristy8b350f62009-11-15 23:12:43 +000034334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034335$as_echo "no" >&6; }
34336fi
34337
34338
34339# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
34340set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034342$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034343if ${ac_cv_path_ZipDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034344 $as_echo_n "(cached) " >&6
34345else
34346 case $ZipDelegate in
34347 [\\/]* | ?:[\\/]*)
34348 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
34349 ;;
34350 *)
34351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34352for as_dir in $PATH
34353do
34354 IFS=$as_save_IFS
34355 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034356 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034357 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034358 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034360 break 2
34361 fi
34362done
cristy8b350f62009-11-15 23:12:43 +000034363 done
cristy3ed852e2009-09-05 21:47:34 +000034364IFS=$as_save_IFS
34365
34366 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
34367 ;;
34368esac
34369fi
34370ZipDelegate=$ac_cv_path_ZipDelegate
34371if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034373$as_echo "$ZipDelegate" >&6; }
34374else
cristy8b350f62009-11-15 23:12:43 +000034375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034376$as_echo "no" >&6; }
34377fi
34378
34379
34380
34381# Prefer lpr to lp; lp needs options tacked on.
34382if test "$LPRDelegate" != no; then
34383 PrintDelegate="$LPRDelegate"
34384else
34385 PrintDelegate="$LPDelegate -c -s"
34386fi
34387
34388
34389# Installed ImageMagick utiltity paths
34390ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
34391DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
34392MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
34393
34394# Set delegate booleans
cristy81ab5af2013-10-06 18:28:39 +000034395have_avconv='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_avconv='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000034396have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
34397have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
34398have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
cristy935c86e2010-06-05 23:50:07 +000034399have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000034400have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
34401have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000034402have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
34403
34404#
34405# Test for font directories
34406#
34407type_include_files=''
34408
cristy5a3dc992014-12-05 19:50:04 +000034409 Apple fonts.
34410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Apple fonts directory" >&5
34411$as_echo_n "checking for Apple fonts directory... " >&6; }
34412apple_font_dir=''
34413if test "${with_apple_font_dir}" != 'default'; then
34414 apple_font_dir="${with_apple_font_dir}/"
34415else
34416 for font_dir in '/Library/Fonts/'; do
34417 if test -f "${font_dir}Arial.ttf"; then
34418 apple_font_dir="${font_dir}"
34419 break 1
34420 fi
34421 done
34422fi
34423if test "${apple_font_dir}x" != 'x'; then
34424 type_include_files="${type_include_files} "'<include file="type-apple.xml" />'
34425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apple_font_dir" >&5
34426$as_echo "$apple_font_dir" >&6; }
34427else
34428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
34429$as_echo "not found!" >&6; };
34430fi
34431
34432
cristy430a7312010-01-21 20:44:04 +000034433# Dejavu fonts.
34434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
34435$as_echo_n "checking for Dejavu fonts directory... " >&6; }
34436dejavu_font_dir=''
34437if test "${with_dejavu_font_dir}" != 'default'; then
34438 dejavu_font_dir="${with_dejavu_font_dir}/"
34439else
34440 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
34441 if test -f "${font_dir}DejaVuSerif.ttf"; then
34442 dejavu_font_dir="${font_dir}"
34443 break 1
34444 fi
34445 done
34446fi
34447if test "${dejavu_font_dir}x" != 'x'; then
34448 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
cristyad38abe2012-12-23 23:03:21 +000034449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dejavu_font_dir" >&5
34450$as_echo "$dejavu_font_dir" >&6; }
cristy430a7312010-01-21 20:44:04 +000034451else
cristyad38abe2012-12-23 23:03:21 +000034452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
34453$as_echo "not found!" >&6; };
cristy430a7312010-01-21 20:44:04 +000034454fi
34455
34456
cristy3ed852e2009-09-05 21:47:34 +000034457# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000034458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000034459$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
34460ghostscript_font_dir=''
34461if test "${with_gs_font_dir}" != 'default'; then
34462 ghostscript_font_dir="${with_gs_font_dir}/"
34463else
34464 if test "${native_win32_build}" = 'yes'; then
34465 # Native Windows Build
34466 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
34467 if test -f "${font_dir}a010013l.pfb"; then
34468 ghostscript_font_dir="$font_dir"
34469 break 1
34470 fi
34471 done
34472 if test "${PSDelegate}" != 'gswin32c'; then
34473 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
34474 fi
34475 else
34476 # Linux / Mac OS X / Unix Build
34477 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
34478 if test -f "${font_dir}a010013l.pfb"; then
34479 ghostscript_font_dir="${font_dir}"
34480 break 1
34481 fi
34482 done
34483 if test "${ghostscript_font_dir}x" = 'x'; then
34484 if test "$PSDelegate" != 'gs'; then
34485 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
34486 fi
34487 fi
34488 fi
34489fi
34490if test "${ghostscript_font_dir}x" != 'x'; then
34491 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristyad38abe2012-12-23 23:03:21 +000034492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
34493$as_echo "$ghostscript_font_dir" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034494else
cristyad38abe2012-12-23 23:03:21 +000034495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
34496$as_echo "not found!" >&6; };
cristy3ed852e2009-09-05 21:47:34 +000034497fi
34498
34499case "${build_os}" in
34500 mingw* )
34501 PSDelegate=`$WinPathScript "$PSDelegate" 1`
34502 ;;
34503esac
34504
cristy5a3dc992014-12-05 19:50:04 +000034505# Windows fonts.
34506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Windows fonts directory" >&5
34507$as_echo_n "checking for Windows fonts directory... " >&6; }
34508windows_font_dir=''
34509if test "${with_windows_font_dir}" != 'default'; then
34510 windows_font_dir="${with_windows_font_dir}/"
34511else
34512 for font_dir in '/usr/X11R6/lib/X11/fonts/truetype/' '/usr/X11R7/lib/X11/fonts/truetype/' '/usr/share/fonts/msttcore/'; do
34513 if test -f "${font_dir}arial.ttf"; then
34514 windows_font_dir="${font_dir}"
34515 break 1
34516 fi
34517 done
34518fi
34519if test "${windows_font_dir}x" != 'x'; then
34520 type_include_files="${type_include_files} "'<include file="type-windows.xml" />'
34521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $windows_font_dir" >&5
34522$as_echo "$windows_font_dir" >&6; }
34523else
34524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
34525$as_echo "not found!" >&6; };
34526fi
34527
34528
cristy3ed852e2009-09-05 21:47:34 +000034529
34530
34531#
34532# Handle case where user doesn't want frozen paths
34533#
34534if test "$with_frozenpaths" != 'yes'; then
34535 # Re-set delegate definitions to default (no paths)
34536 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
cristy16b412d2014-12-15 11:09:48 +000034537 BGPDecodeDelegate="$BGPDecodeDelegateDefault"
34538 BGPEncodeDelegate="$BGPEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034539 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
34540 BZIPDelegate="$BZIPDelegateDefault"
34541 BrowseDelegate="$BrowseDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034542 CatDelegate="$CatDelegateDefault"
34543 ConvertDelegate="$ConvertDelegateDefault"
cristy71f53d52013-04-27 13:33:59 +000034544 DisplayDelegate="$DisplayDelegateDefault"
34545 DNGDecodeDelegate="$DNGDecodeDelegateDefault"
cristy66f238e2014-05-16 12:21:48 +000034546 DOCDecodeDelegate="$DOCDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034547 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
34548 EchoDelegate="$EchoDelegateDefault"
34549 EditorDelegate="$EditorDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034550 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
cristy71f53d52013-04-27 13:33:59 +000034551 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034552 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
34553 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
34554 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
34555 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
cristy71f53d52013-04-27 13:33:59 +000034556 JXRDecodeDelegate="$JXRDecodeDelegateDefault"
34557 JXREncodeDelegate="$JXREncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034558 LPDelegate="$LPDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034559 LaunchDelegate="$LaunchDelegateDefault"
34560 MANDelegate="$MANDelegateDefault"
34561 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
34562 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034563 MogrifyDelegate="$MogrifyDelegateDefault"
cristy935c86e2010-06-05 23:50:07 +000034564 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
34565 MVDelegate="$MVDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034566 PCLDelegate="$PCLDelegateDefault"
34567 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
34568 POVDelegate="$POVDelegateDefault"
34569 PSDelegate="$PSDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034570 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
34571 RMDelegate="$RMDelegateDefault"
cristy4689cf02010-02-17 21:15:45 +000034572 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034573 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
cristyec6934f2012-08-14 18:38:40 +000034574 SVGDecodeDelegate="$SVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034575 ShowImageDelegate="$ShowImageDelegateDefault"
34576 TXTDelegate="$TXTDelegateDefault"
cristy5ac9ac82010-07-29 13:24:24 +000034577 UniconvertorDelegate="$UniconvertorDelegateDefault"
cristy86e86092013-08-04 17:43:57 +000034578 WebPDecodeDelegate="$WebPDecodeDelegateDefault"
34579 WebPEncodeDelegate="$WebPEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034580 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
34581 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
34582 XPSDelegate="$XPSDelegateDefault"
34583 ZipDelegate="$ZipDelegateDefault"
34584fi
34585
34586# Delegate substitutions
34587
34588
34589
34590
34591
34592
34593
34594
34595
34596
34597
34598
34599
34600
34601
34602
34603
34604
34605
34606
34607
34608
34609
34610
34611
34612
34613
34614
34615
34616
34617
34618
34619
34620
34621
34622
34623
34624
34625
34626
cristy71f53d52013-04-27 13:33:59 +000034627
34628
cristy16b412d2014-12-15 11:09:48 +000034629
34630
cristy3ed852e2009-09-05 21:47:34 +000034631#
34632# RPM support.
34633#
34634RPM=''
34635for ac_prog in gnutar gtar tar
34636do
34637 # Extract the first word of "$ac_prog", so it can be a program name with args.
34638set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034640$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034641if ${ac_cv_prog_TAR+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034642 $as_echo_n "(cached) " >&6
34643else
34644 if test -n "$TAR"; then
34645 ac_cv_prog_TAR="$TAR" # Let the user override the test.
34646else
34647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34648for as_dir in $PATH
34649do
34650 IFS=$as_save_IFS
34651 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034652 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034654 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034656 break 2
34657 fi
34658done
cristy8b350f62009-11-15 23:12:43 +000034659 done
cristy3ed852e2009-09-05 21:47:34 +000034660IFS=$as_save_IFS
34661
34662fi
34663fi
34664TAR=$ac_cv_prog_TAR
34665if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000034666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000034667$as_echo "$TAR" >&6; }
34668else
cristy8b350f62009-11-15 23:12:43 +000034669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034670$as_echo "no" >&6; }
34671fi
34672
34673
34674 test -n "$TAR" && break
34675done
34676
34677for ac_prog in perl
34678do
34679 # Extract the first word of "$ac_prog", so it can be a program name with args.
34680set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034682$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034683if ${ac_cv_prog_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034684 $as_echo_n "(cached) " >&6
34685else
34686 if test -n "$PERL"; then
34687 ac_cv_prog_PERL="$PERL" # Let the user override the test.
34688else
34689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34690for as_dir in $PATH
34691do
34692 IFS=$as_save_IFS
34693 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034694 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034695 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034696 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034698 break 2
34699 fi
34700done
cristy8b350f62009-11-15 23:12:43 +000034701 done
cristy3ed852e2009-09-05 21:47:34 +000034702IFS=$as_save_IFS
34703
34704fi
34705fi
34706PERL=$ac_cv_prog_PERL
34707if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000034708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034709$as_echo "$PERL" >&6; }
34710else
cristy8b350f62009-11-15 23:12:43 +000034711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034712$as_echo "no" >&6; }
34713fi
34714
34715
34716 test -n "$PERL" && break
34717done
34718
34719for ac_prog in rpmbuild rpm
34720do
34721 # Extract the first word of "$ac_prog", so it can be a program name with args.
34722set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034724$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034725if ${ac_cv_prog_RPM+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034726 $as_echo_n "(cached) " >&6
34727else
34728 if test -n "$RPM"; then
34729 ac_cv_prog_RPM="$RPM" # Let the user override the test.
34730else
34731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34732for as_dir in $PATH
34733do
34734 IFS=$as_save_IFS
34735 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034736 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034738 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034740 break 2
34741 fi
34742done
cristy8b350f62009-11-15 23:12:43 +000034743 done
cristy3ed852e2009-09-05 21:47:34 +000034744IFS=$as_save_IFS
34745
34746fi
34747fi
34748RPM=$ac_cv_prog_RPM
34749if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000034750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000034751$as_echo "$RPM" >&6; }
34752else
cristy8b350f62009-11-15 23:12:43 +000034753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034754$as_echo "no" >&6; }
34755fi
34756
34757
34758 test -n "$RPM" && break
34759done
34760
34761
cristy73bd4a52010-10-05 11:24:23 +000034762ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
34763
34764
34765AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
34766
34767
34768AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
34769
34770
34771AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
34772
34773
34774 if test "x$RPM" != "x" ; then
34775 RPM_DELEGATE_TRUE=
34776 RPM_DELEGATE_FALSE='#'
34777else
34778 RPM_DELEGATE_TRUE='#'
34779 RPM_DELEGATE_FALSE=
34780fi
34781
cristy3ed852e2009-09-05 21:47:34 +000034782
34783#
34784# 7ZIP support (http://p7zip.sourceforge.net/)
34785#
34786P7ZIP=''
34787for ac_prog in 7za
34788do
34789 # Extract the first word of "$ac_prog", so it can be a program name with args.
34790set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034792$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034793if ${ac_cv_prog_P7ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034794 $as_echo_n "(cached) " >&6
34795else
34796 if test -n "$P7ZIP"; then
34797 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
34798else
34799as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34800for as_dir in $PATH
34801do
34802 IFS=$as_save_IFS
34803 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034804 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034805 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034806 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034808 break 2
34809 fi
34810done
cristy8b350f62009-11-15 23:12:43 +000034811 done
cristy3ed852e2009-09-05 21:47:34 +000034812IFS=$as_save_IFS
34813
34814fi
34815fi
34816P7ZIP=$ac_cv_prog_P7ZIP
34817if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000034818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000034819$as_echo "$P7ZIP" >&6; }
34820else
cristy8b350f62009-11-15 23:12:43 +000034821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034822$as_echo "no" >&6; }
34823fi
34824
34825
34826 test -n "$P7ZIP" && break
34827done
34828
34829
cristy73bd4a52010-10-05 11:24:23 +000034830 if test "x$P7ZIP" != "x" ; then
34831 P7ZIP_DELEGATE_TRUE=
34832 P7ZIP_DELEGATE_FALSE='#'
34833else
34834 P7ZIP_DELEGATE_TRUE='#'
34835 P7ZIP_DELEGATE_FALSE=
34836fi
34837
cristy3ed852e2009-09-05 21:47:34 +000034838
34839#
34840# ZIP support (http://www.info-zip.org/Zip.html)
34841#
34842ZIP=''
34843for ac_prog in zip
34844do
34845 # Extract the first word of "$ac_prog", so it can be a program name with args.
34846set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034848$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034849if ${ac_cv_prog_ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034850 $as_echo_n "(cached) " >&6
34851else
34852 if test -n "$ZIP"; then
34853 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
34854else
34855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34856for as_dir in $PATH
34857do
34858 IFS=$as_save_IFS
34859 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034860 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034861 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034862 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034864 break 2
34865 fi
34866done
cristy8b350f62009-11-15 23:12:43 +000034867 done
cristy3ed852e2009-09-05 21:47:34 +000034868IFS=$as_save_IFS
34869
34870fi
34871fi
34872ZIP=$ac_cv_prog_ZIP
34873if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000034874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000034875$as_echo "$ZIP" >&6; }
34876else
cristy8b350f62009-11-15 23:12:43 +000034877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034878$as_echo "no" >&6; }
34879fi
34880
34881
34882 test -n "$ZIP" && break
34883done
34884
34885
cristy73bd4a52010-10-05 11:24:23 +000034886 if test "x$ZIP" != "x" ; then
34887 ZIP_DELEGATE_TRUE=
34888 ZIP_DELEGATE_FALSE='#'
34889else
34890 ZIP_DELEGATE_TRUE='#'
34891 ZIP_DELEGATE_FALSE=
34892fi
34893
cristy3ed852e2009-09-05 21:47:34 +000034894
34895#
34896# GhostPCL related configuration.
34897#
34898PCLColorDevice=ppmraw
cristy8bc84082011-09-07 13:57:00 +000034899PCLCMYKDevice=pamcmyk32
cristy3ed852e2009-09-05 21:47:34 +000034900PCLMonoDevice=pbmraw
34901if test -z "$PCLVersion"; then
34902 PCLVersion='unknown'
34903fi
34904if test $have_pcl = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000034905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
34906$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000034907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034908$as_echo_n "checking for PCL... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000034909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
34910$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034911 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000034912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034913$as_echo_n "checking for pcl color device... " >&6; }
34914 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34915 :
34916 else
34917 PCLColorDevice=ppmraw
34918 fi
cristyad38abe2012-12-23 23:03:21 +000034919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
34920$as_echo "$PCLColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034921
34922 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000034923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034924$as_echo_n "checking for pcl CMYK device... " >&6; }
34925 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34926 :
34927 else
34928 PCLCMYKDevice=$PCLColorDevice
34929 fi
cristyad38abe2012-12-23 23:03:21 +000034930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
34931$as_echo "$PCLCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034932
34933 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000034934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034935$as_echo_n "checking for pcl mono device... " >&6; }
34936 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34937 :
34938 else
34939 PCLMonoDevice=$PCLColorDevice
34940 fi
cristyad38abe2012-12-23 23:03:21 +000034941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
34942$as_echo "$PCLMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034943fi
34944
34945
34946
34947
34948
34949
34950#
34951# GhostXPS related configuration.
34952#
34953XPSColorDevice=ppmraw
34954XPSCMYKDevice=bmpsep8
34955XPSMonoDevice=pbmraw
34956if test -z "$XPSVersion"; then
34957 XPSVersion='unknown'
34958fi
34959if test $have_xps = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000034960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
34961$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000034962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000034963$as_echo_n "checking for XPS... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000034964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
34965$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034966 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000034967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034968$as_echo_n "checking for xps color device... " >&6; }
34969 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34970 :
34971 else
34972 XPSColorDevice=ppmraw
34973 fi
cristyad38abe2012-12-23 23:03:21 +000034974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
34975$as_echo "$XPSColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034976
34977 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000034978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034979$as_echo_n "checking for xps CMYK device... " >&6; }
34980 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34981 :
34982 else
34983 XPSCMYKDevice=$XPSColorDevice
34984 fi
cristyad38abe2012-12-23 23:03:21 +000034985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
34986$as_echo "$XPSCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034987
34988 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000034989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034990$as_echo_n "checking for xps mono device... " >&6; }
34991 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34992 :
34993 else
34994 XPSMonoDevice=$XPSColorDevice
34995 fi
cristyad38abe2012-12-23 23:03:21 +000034996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
34997$as_echo "$XPSMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034998fi
34999
35000
35001
35002
35003
35004
35005#
35006# Ghostscript related configuration.
35007#
cristya97426c2011-02-04 01:41:27 +000035008GSAlphaDevice=pngalpha
cristy3ed852e2009-09-05 21:47:34 +000035009GSColorDevice=pnmraw
35010GSCMYKDevice=pam
35011GSMonoDevice=pbmraw
35012GSPDFDevice=pdfwrite
cristyb096ea52013-10-26 20:56:38 +000035013GSPSDevice=ps2write
cristya5b91e72015-01-07 15:39:36 +000035014GSEPSDevice=eps2write
cristy3ed852e2009-09-05 21:47:34 +000035015GSVersion='unknown'
35016if test $have_gs = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000035017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35018$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000035020$as_echo_n "checking for Ghostscript... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35022$as_echo "" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000035024$as_echo_n "checking for Ghostscript version... " >&6; }
35025 if GSVersion=`$PSDelegate --version`; then
35026 :
35027 else
35028 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
35029 fi
cristyad38abe2012-12-23 23:03:21 +000035030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
35031$as_echo "$GSVersion" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035032
35033 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000035034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035035$as_echo_n "checking for gs alpha device... " >&6; }
35036 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35037 :
35038 else
35039 GSAlphaDevice=pnmraw
35040 fi
cristyad38abe2012-12-23 23:03:21 +000035041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
35042$as_echo "$GSAlphaDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035043
35044 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000035045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035046$as_echo_n "checking for gs color device... " >&6; }
35047 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35048 :
35049 else
35050 GSColorDevice=pnmraw
35051 fi
cristyad38abe2012-12-23 23:03:21 +000035052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
35053$as_echo "$GSColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035054
35055 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035057$as_echo_n "checking for gs CMYK device... " >&6; }
35058 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35059 :
35060 else
35061 GSCMYKDevice=bmpsep8
35062 fi
cristyad38abe2012-12-23 23:03:21 +000035063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
35064$as_echo "$GSCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035065
35066 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035068$as_echo_n "checking for gs mono device... " >&6; }
35069 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35070 :
35071 else
35072 GSMonoDevice=$GSColorDevice
35073 fi
cristyad38abe2012-12-23 23:03:21 +000035074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
35075$as_echo "$GSMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035076
35077 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000035078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035079$as_echo_n "checking for gs PDF writing device... " >&6; }
35080 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35081 :
35082 else
35083 GSPDFDevice=nodevice
35084 fi
cristyad38abe2012-12-23 23:03:21 +000035085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
35086$as_echo "$GSPDFDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035087
35088 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000035089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035090$as_echo_n "checking for gs PS writing device... " >&6; }
35091 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35092 :
35093 else
cristy15308162015-01-09 23:43:12 +000035094 GSPSDevice=pswrite
cristy3ed852e2009-09-05 21:47:34 +000035095 fi
cristyad38abe2012-12-23 23:03:21 +000035096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
35097$as_echo "$GSPSDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035098
35099 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000035100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035101$as_echo_n "checking for gs EPS writing device... " >&6; }
35102 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35103 :
35104 else
cristy15308162015-01-09 23:43:12 +000035105 GSEPSDevice=epswrite
cristy3ed852e2009-09-05 21:47:34 +000035106 fi
cristyad38abe2012-12-23 23:03:21 +000035107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
35108$as_echo "$GSEPSDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035109fi
35110
35111
35112
35113
35114
35115
35116
35117
35118
35119
35120#
35121# PerlMagick-related configuration
35122#
35123
35124# Look for PERL if PerlMagick requested
35125# If name/path of desired PERL interpreter is specified, look for that one first
35126have_perl='no'
35127if test "$with_perl" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000035128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35129$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000035131$as_echo_n "checking for Perl... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35133$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035134 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000035135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000035136$as_echo_n "checking for perl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035137if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035138 $as_echo_n "(cached) " >&6
35139else
35140 ac_cv_path_PERL="$with_perl"
35141fi
cristy8b350f62009-11-15 23:12:43 +000035142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035143$as_echo "$ac_cv_path_PERL" >&6; };
35144 PERL=$ac_cv_path_PERL
35145 have_perl="$ac_cv_path_PERL"
35146 else
35147 for ac_prog in perl perl5
35148do
35149 # Extract the first word of "$ac_prog", so it can be a program name with args.
35150set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035152$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035153if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035154 $as_echo_n "(cached) " >&6
35155else
35156 case $PERL in
35157 [\\/]* | ?:[\\/]*)
35158 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
35159 ;;
35160 *)
35161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35162for as_dir in $PATH
35163do
35164 IFS=$as_save_IFS
35165 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035166 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035167 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035168 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000035169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035170 break 2
35171 fi
35172done
cristy8b350f62009-11-15 23:12:43 +000035173 done
cristy3ed852e2009-09-05 21:47:34 +000035174IFS=$as_save_IFS
35175
35176 ;;
35177esac
35178fi
35179PERL=$ac_cv_path_PERL
35180if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000035181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035182$as_echo "$PERL" >&6; }
35183else
cristy8b350f62009-11-15 23:12:43 +000035184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035185$as_echo "no" >&6; }
35186fi
35187
35188
35189 test -n "$PERL" && break
35190done
35191 if test "$ac_cv_path_PERL"; then
35192 have_perl="$ac_cv_path_PERL"
35193 fi
35194 fi
35195fi
35196
cristy949301e2010-01-06 01:38:40 +000035197if test "$with_perl" != 'yes' ; then
35198 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
35199fi
35200
35201PERL_SUPPORTS_DESTDIR='no'
35202
cristy3ed852e2009-09-05 21:47:34 +000035203with_perl_static='no'
35204with_perl_dynamic='no'
35205if test "$have_perl" != 'no'; then
35206 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
35207 with_perl_static='yes'
35208 fi
35209 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
35210 with_perl_dynamic='yes'
35211 fi
35212 # Is PERL's MakeMaker new enough to support DESTDIR?
cristy73bd4a52010-10-05 11:24:23 +000035213
35214
35215
35216
35217 if test -n "$PERL"; then :
35218
35219 ax_perl_version="5.8.1"
35220
35221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
35222$as_echo_n "checking for perl version... " >&6; }
35223
cristy17491be2014-06-24 01:10:53 +000035224 perl_version=`$PERL --version 2>&1 \
35225 | $SED -n -e '/This is perl/b inspect
35226b
35227: inspect
35228s/.* (\{0,1\}v\([0-9]*\.[0-9]*\.[0-9]*\))\{0,1\} .*/\1/;p'`
cristy73bd4a52010-10-05 11:24:23 +000035229
35230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
35231$as_echo "$perl_version" >&6; }
35232
35233 PERL_VERSION=$perl_version
35234
35235
35236
35237
35238
35239 # Used to indicate true or false condition
35240 ax_compare_version=false
35241
35242 # Convert the two version strings to be compared into a format that
35243 # allows a simple string comparison. The end result is that a version
35244 # string of the form 1.12.5-r617 will be converted to the form
35245 # 0001001200050617. In other words, each number is zero padded to four
35246 # digits, and non digits are removed.
35247
35248 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
35249 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
35250 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
35251 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
35252 -e 's/[^0-9]//g'`
35253
35254
35255 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
35256 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
35257 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
35258 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
35259 -e 's/[^0-9]//g'`
35260
35261
35262 ax_compare_version=`echo "x$ax_compare_version_A
35263x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
35264
35265
35266
35267 if test "$ax_compare_version" = "true" ; then
35268
35269 :
35270 PERL_SUPPORTS_DESTDIR='yes'
35271
35272 else
35273 :
35274 PERL_SUPPORTS_DESTDIR='no'
35275
35276 fi
35277
35278
35279else
35280
35281 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
35282$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
35283 PERL_SUPPORTS_DESTDIR='no'
35284
cristy3ed852e2009-09-05 21:47:34 +000035285fi
cristy73bd4a52010-10-05 11:24:23 +000035286
35287fi
35288 if test "$have_perl" != 'no'; then
35289 WITH_PERL_TRUE=
35290 WITH_PERL_FALSE='#'
35291else
35292 WITH_PERL_TRUE='#'
35293 WITH_PERL_FALSE=
35294fi
35295
35296 if test $with_perl_static = 'yes'; then
35297 WITH_PERL_STATIC_TRUE=
35298 WITH_PERL_STATIC_FALSE='#'
35299else
35300 WITH_PERL_STATIC_TRUE='#'
35301 WITH_PERL_STATIC_FALSE=
35302fi
35303
35304 if test $with_perl_dynamic = 'yes'; then
35305 WITH_PERL_DYNAMIC_TRUE=
35306 WITH_PERL_DYNAMIC_FALSE='#'
35307else
35308 WITH_PERL_DYNAMIC_TRUE='#'
35309 WITH_PERL_DYNAMIC_FALSE=
35310fi
35311
cristy3ed852e2009-09-05 21:47:34 +000035312
35313
35314# Determine path to pick up MagickCore library from for use with building PerlMagick
35315MAGICKCORE_PATH="${LIB_DIR}"
35316if test $with_perl_static = 'yes'; then
35317 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
35318 libtool_objdir=$objdir
35319
35320 # Linker search path to library, followed by -lMagickCore
cristy4c08aed2011-07-01 19:47:50 +000035321 MAGICKCORE_PATH="${builddir}/MagickCore/${libtool_objdir}"
cristy3ed852e2009-09-05 21:47:34 +000035322fi
35323
35324
cristy2a3eb392012-12-17 13:39:20 +000035325# Create a simple string containing format names for all delegate libraries.
cristy422d5502012-12-22 22:20:57 +000035326MAGICK_DELEGATES=''
cristy2a3eb392012-12-17 13:39:20 +000035327if test "$have_autotrace" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035328 MAGICK_DELEGATES="$MAGICK_DELEGATES autotrace"
cristy3ed852e2009-09-05 21:47:34 +000035329fi
cristy2a3eb392012-12-17 13:39:20 +000035330if test "$have_bzlib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035331 MAGICK_DELEGATES="$MAGICK_DELEGATES bzlib"
cristy2a3eb392012-12-17 13:39:20 +000035332fi
35333if test "$have_dps" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035334 MAGICK_DELEGATES="$MAGICK_DELEGATES dps"
cristy2a3eb392012-12-17 13:39:20 +000035335fi
35336if test "$have_djvu" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035337 MAGICK_DELEGATES="$MAGICK_DELEGATES djvu"
cristy2a3eb392012-12-17 13:39:20 +000035338fi
cristy81ab5af2013-10-06 18:28:39 +000035339if test "$have_avconv" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035340 MAGICK_DELEGATES="$MAGICK_DELEGATES mpeg"
cristy2a3eb392012-12-17 13:39:20 +000035341fi
35342if test "$have_fftw" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035343 MAGICK_DELEGATES="$MAGICK_DELEGATES fftw"
cristy2a3eb392012-12-17 13:39:20 +000035344fi
cristy2a3eb392012-12-17 13:39:20 +000035345if test "$have_fpx" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035346 MAGICK_DELEGATES="$MAGICK_DELEGATES fpx"
cristy2a3eb392012-12-17 13:39:20 +000035347fi
35348if test "$have_fontconfig" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035349 MAGICK_DELEGATES="$MAGICK_DELEGATES fontconfig"
cristy2a3eb392012-12-17 13:39:20 +000035350fi
35351if test "$have_freetype" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035352 MAGICK_DELEGATES="$MAGICK_DELEGATES freetype"
cristy2a3eb392012-12-17 13:39:20 +000035353fi
35354if test "$have_gslib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035355 MAGICK_DELEGATES="$MAGICK_DELEGATES gslib"
cristy2a3eb392012-12-17 13:39:20 +000035356fi
35357if test "$have_jbig" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035358 MAGICK_DELEGATES="$MAGICK_DELEGATES jbig"
cristy2a3eb392012-12-17 13:39:20 +000035359fi
35360if test "$have_png$have_jpeg" = 'yesyes' ; then
cristy422d5502012-12-22 22:20:57 +000035361 MAGICK_DELEGATES="$MAGICK_DELEGATES jng"
cristy2a3eb392012-12-17 13:39:20 +000035362fi
35363if test "$have_jp2" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035364 MAGICK_DELEGATES="$MAGICK_DELEGATES jp2"
cristy2a3eb392012-12-17 13:39:20 +000035365fi
35366if test "$have_jpeg" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035367 MAGICK_DELEGATES="$MAGICK_DELEGATES jpeg"
cristy2a3eb392012-12-17 13:39:20 +000035368fi
35369if test "$have_lcms" = 'yes' || test "$have_lcms2" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035370 MAGICK_DELEGATES="$MAGICK_DELEGATES lcms"
cristy2a3eb392012-12-17 13:39:20 +000035371fi
35372if test "$have_lqr" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035373 MAGICK_DELEGATES="$MAGICK_DELEGATES lqr"
cristy2a3eb392012-12-17 13:39:20 +000035374fi
35375if test "$have_lzma" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035376 MAGICK_DELEGATES="$MAGICK_DELEGATES lzma"
cristy2a3eb392012-12-17 13:39:20 +000035377fi
35378if test "$have_openexr" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035379 MAGICK_DELEGATES="$MAGICK_DELEGATES openexr"
cristy2a3eb392012-12-17 13:39:20 +000035380fi
cristy99db3872014-01-01 15:11:34 +000035381if test "$have_openjp2" = 'yes' ; then
35382 MAGICK_DELEGATES="$MAGICK_DELEGATES openjp2"
cristy3fe09452014-01-01 12:29:14 +000035383fi
cristy2a3eb392012-12-17 13:39:20 +000035384if test "$have_pango" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035385 MAGICK_DELEGATES="$MAGICK_DELEGATES pango"
cristy2a3eb392012-12-17 13:39:20 +000035386fi
35387if test "$have_png" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035388 MAGICK_DELEGATES="$MAGICK_DELEGATES png"
cristy2a3eb392012-12-17 13:39:20 +000035389fi
35390have_ps='no'
35391if test "$have_dps" = 'yes' || \
35392 test "$have_gs" = 'yes' || \
35393 test "${native_win32_build}" = 'yes' ; then
35394 have_ps='yes'
35395fi
35396if test "$have_ps" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035397 MAGICK_DELEGATES="$MAGICK_DELEGATES ps"
cristy2a3eb392012-12-17 13:39:20 +000035398fi
cristy2a3eb392012-12-17 13:39:20 +000035399if test "$have_ra_ppm" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035400 MAGICK_DELEGATES="$MAGICK_DELEGATES rad"
cristy2a3eb392012-12-17 13:39:20 +000035401fi
35402if test "$have_rsvg" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035403 MAGICK_DELEGATES="$MAGICK_DELEGATES rsvg"
cristy2a3eb392012-12-17 13:39:20 +000035404fi
35405if test "$have_tiff" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035406 MAGICK_DELEGATES="$MAGICK_DELEGATES tiff"
cristy2a3eb392012-12-17 13:39:20 +000035407fi
35408if test "$have_ttf" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035409 MAGICK_DELEGATES="$MAGICK_DELEGATES ttf"
cristy2a3eb392012-12-17 13:39:20 +000035410fi
cristy3b640ed2013-07-29 00:27:59 +000035411if test "$have_webp" = 'yes' ; then
35412 MAGICK_DELEGATES="$MAGICK_DELEGATES webp"
35413fi
cristy2a3eb392012-12-17 13:39:20 +000035414if test "$have_wmf" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035415 MAGICK_DELEGATES="$MAGICK_DELEGATES wmf"
cristy2a3eb392012-12-17 13:39:20 +000035416fi
35417if test "$have_x" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035418 MAGICK_DELEGATES="$MAGICK_DELEGATES x"
cristy2a3eb392012-12-17 13:39:20 +000035419fi
35420if test "$have_xml" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035421 MAGICK_DELEGATES="$MAGICK_DELEGATES xml"
cristy2a3eb392012-12-17 13:39:20 +000035422fi
35423if test "$have_zlib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035424 MAGICK_DELEGATES="$MAGICK_DELEGATES zlib"
cristy2a3eb392012-12-17 13:39:20 +000035425fi
cristyead532a2015-06-05 00:49:30 +000035426
cristy2a3eb392012-12-17 13:39:20 +000035427# Remove extraneous spaces from output variables (asthetic)
cristy422d5502012-12-22 22:20:57 +000035428MAGICK_DELEGATES=`echo $MAGICK_DELEGATES | sed -e 's/ */ /g'`
cristy2a3eb392012-12-17 13:39:20 +000035429MAGICK_FEATURES=`echo $MAGICK_FEATURES | sed -e 's/ */ /g'`
cristy3ed852e2009-09-05 21:47:34 +000035430
35431
cristyfa161182012-12-19 15:45:28 +000035432
cristy3ed852e2009-09-05 21:47:34 +000035433#
35434# Handle special compiler flags
35435#
35436
35437# Add '-p' if prof source profiling support enabled
35438if test "$enable_prof" = 'yes'; then
35439 CFLAGS="-p $CFLAGS"
35440 CXXFLAGS="-p $CXXFLAGS"
35441 LDFLAGS="-p $LDFLAGS"
35442fi
35443
35444# Add '-pg' if gprof source profiling support enabled
35445if test "$enable_gprof" = 'yes'; then
35446 CFLAGS="-pg $CFLAGS"
35447 CXXFLAGS="-pg $CXXFLAGS"
35448 LDFLAGS="-pg $LDFLAGS"
35449fi
35450
35451# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
35452# This is a gcc-specific feature
35453if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000035454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000035455$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035456if ${ac_cv_lib_gcov__gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035457 $as_echo_n "(cached) " >&6
35458else
35459 ac_check_lib_save_LIBS=$LIBS
35460LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000035461cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035462/* end confdefs.h. */
35463
35464/* Override any GCC internal prototype to avoid an error.
35465 Use char because int might match the return type of a GCC
35466 builtin and then its argument prototype would still apply. */
35467#ifdef __cplusplus
35468extern "C"
35469#endif
35470char _gcov_init ();
35471int
35472main ()
35473{
35474return _gcov_init ();
35475 ;
35476 return 0;
35477}
35478_ACEOF
cristy8b350f62009-11-15 23:12:43 +000035479if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000035480 ac_cv_lib_gcov__gcov_init=yes
35481else
cristy8b350f62009-11-15 23:12:43 +000035482 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000035483fi
cristy8b350f62009-11-15 23:12:43 +000035484rm -f core conftest.err conftest.$ac_objext \
35485 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035486LIBS=$ac_check_lib_save_LIBS
35487fi
cristy8b350f62009-11-15 23:12:43 +000035488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000035489$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000035490if test "x$ac_cv_lib_gcov__gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000035491 cat >>confdefs.h <<_ACEOF
35492#define HAVE_LIBGCOV 1
35493_ACEOF
35494
35495 LIBS="-lgcov $LIBS"
35496
35497fi
35498
cristy8b350f62009-11-15 23:12:43 +000035499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000035500$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035501if ${ac_cv_lib_gcov___gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035502 $as_echo_n "(cached) " >&6
35503else
35504 ac_check_lib_save_LIBS=$LIBS
35505LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000035506cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035507/* end confdefs.h. */
35508
35509/* Override any GCC internal prototype to avoid an error.
35510 Use char because int might match the return type of a GCC
35511 builtin and then its argument prototype would still apply. */
35512#ifdef __cplusplus
35513extern "C"
35514#endif
35515char __gcov_init ();
35516int
35517main ()
35518{
35519return __gcov_init ();
35520 ;
35521 return 0;
35522}
35523_ACEOF
cristy8b350f62009-11-15 23:12:43 +000035524if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000035525 ac_cv_lib_gcov___gcov_init=yes
35526else
cristy8b350f62009-11-15 23:12:43 +000035527 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000035528fi
cristy8b350f62009-11-15 23:12:43 +000035529rm -f core conftest.err conftest.$ac_objext \
35530 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035531LIBS=$ac_check_lib_save_LIBS
35532fi
cristy8b350f62009-11-15 23:12:43 +000035533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000035534$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000035535if test "x$ac_cv_lib_gcov___gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000035536 cat >>confdefs.h <<_ACEOF
35537#define HAVE_LIBGCOV 1
35538_ACEOF
35539
35540 LIBS="-lgcov $LIBS"
35541
35542fi
35543
35544 case "$target_os" in
35545 darwin*)
35546 OSX_GCOV_LDFLAG="-Wl,-single_module"
35547 ;;
35548 *)
35549 OSX_GCOV_LDFLAG=""
35550 ;;
35551 esac
35552
35553 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
35554 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
35555 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
35556fi
35557
35558#
35559# Build library dependency list for libMagickCore
35560#
35561
cristyc6722092012-10-14 00:19:31 +000035562if test "$build_modules" != 'no'; then
cristy32f75d42015-06-05 18:46:23 +000035563 MAGICK_DEP_LIBS="$USER_LIBS $LCMS_LIBS $FREETYPE_LIBS $LQR_LIBS $fftw3_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 +000035564else
cristy32f75d42015-06-05 18:46:23 +000035565 MAGICK_DEP_LIBS="$USER_LIBS $JBIG_LIBS $LCMS_LIBS $TIFF_LIBS $FREETYPE_LIBS $JPEG_LIBS $GS_LIBS $LQR_LIBS $PNG_LIBS $AUTOTRACE_LIBS $DDJVUAP_LIBS $fftw3_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 +000035566fi
35567
35568
35569#
cristyead532a2015-06-05 00:49:30 +000035570# Sanitize output variables (asthetic).
cristy3ed852e2009-09-05 21:47:34 +000035571#
cristy32f75d42015-06-05 18:46:23 +000035572for variable in CFLAGS CPPFLAGS CXXFLAGS LDFLAGS PCFLAGS X_CFLAGS; do
cristyead532a2015-06-05 00:49:30 +000035573 sanitize=''
35574 eval value=$`echo $variable`
35575 for component in $value
35576 do
35577 unique=yes
35578 for test_component in $sanitize
35579 do
35580 if test $component = $test_component; then
35581 unique=no
35582 break
35583 fi
35584 done
35585 if test $unique = yes; then
35586 sanitize="$sanitize $component"
35587 fi
35588 done
35589 sanitize=`echo $sanitize | sed -e 's/^ *//g'`
35590 eval ${variable}=\${sanitize}
35591done
cristy3ed852e2009-09-05 21:47:34 +000035592
35593# Pass only user-provided LIBS as "global" libraries
35594LIBS=$USER_LIBS
35595
35596#AC_SUBST(CPPFLAGS)
35597
35598#AC_SUBST(LDFLAGS)
35599#AC_SUBST(X_PRE_LIBS)
35600#AC_SUBST(X_LIBS)
35601#AC_SUBST(X_EXTRA_LIBS)
35602
35603MAGICK_CFLAGS=$CFLAGS
35604MAGICK_CXXFLAGS="$CXXFLAGS"
35605MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
35606MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
35607MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
cristy31b9e072013-10-17 15:02:53 +000035608MAGICK_LIBS="$MAGICK_DEP_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000035609
35610
35611
35612
35613
35614
35615
35616
35617# Set configured scripts to executable.
35618ac_config_commands="$ac_config_commands default"
35619
cristy2bd4b6e2012-07-22 15:29:11 +000035620ac_config_commands="$ac_config_commands magick.sh.in"
35621
cristy3ed852e2009-09-05 21:47:34 +000035622ac_config_commands="$ac_config_commands MagickCore-config.in"
35623
cristy3ed852e2009-09-05 21:47:34 +000035624ac_config_commands="$ac_config_commands MagickWand-config.in"
35625
cristy3ed852e2009-09-05 21:47:34 +000035626ac_config_commands="$ac_config_commands Magick++-config.in"
35627
35628ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
35629
35630
cristyad38abe2012-12-23 23:03:21 +000035631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35632$as_echo "-------------------------------------------------------------" >&6; }
35633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
35634$as_echo "Update ImageMagick configuration" >&6; }
cristy9af1cbf2014-12-28 22:03:09 +000035635
35636rm -f magick-version
35637
35638result_dejavu_font_dir='none'
35639if test "${dejavu_font_dir}x" != 'x'; then
35640 result_dejavu_font_dir=$dejavu_font_dir
35641fi
35642
35643result_ghostscript_font_dir='none'
35644if test "${ghostscript_font_dir}x" != 'x'; then
35645 result_ghostscript_font_dir=$ghostscript_font_dir
35646fi
35647
35648result_windows_font_dir='none'
35649if test "${windows_font_dir}x" != 'x'; then
35650 result_windows_font_dir=${windows_font_dir}
35651fi
35652
35653# ==============================================================================
35654# Generate build environment
35655# ==============================================================================
35656ac_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"
35657
cristy3ed852e2009-09-05 21:47:34 +000035658cat >confcache <<\_ACEOF
35659# This file is a shell script that caches the results of configure
35660# tests run on this system so they can be shared between configure
35661# scripts and configure runs, see configure's option --config-cache.
35662# It is not useful on other systems. If it contains results you don't
35663# want to keep, you may remove or edit it.
35664#
35665# config.status only pays attention to the cache file if you give it
35666# the --recheck option to rerun configure.
35667#
35668# `ac_cv_env_foo' variables (set or unset) will be overridden when
35669# loading this file, other *unset* `ac_cv_foo' will be assigned the
35670# following values.
35671
35672_ACEOF
35673
35674# The following way of writing the cache mishandles newlines in values,
35675# but we know of no workaround that is simple, portable, and efficient.
35676# So, we kill variables containing newlines.
35677# Ultrix sh set writes to stderr and can't be redirected directly,
35678# and sets the high bit in the cache file unless we assign to the vars.
35679(
35680 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35681 eval ac_val=\$$ac_var
35682 case $ac_val in #(
35683 *${as_nl}*)
35684 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000035685 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000035686$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
35687 esac
35688 case $ac_var in #(
35689 _ | IFS | as_nl) ;; #(
35690 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000035691 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000035692 esac ;;
35693 esac
35694 done
35695
35696 (set) 2>&1 |
35697 case $as_nl`(ac_space=' '; set) 2>&1` in #(
35698 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000035699 # `set' does not quote correctly, so add quotes: double-quote
35700 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000035701 sed -n \
35702 "s/'/'\\\\''/g;
35703 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35704 ;; #(
35705 *)
35706 # `set' quotes correctly as required by POSIX, so do not add quotes.
35707 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
35708 ;;
35709 esac |
35710 sort
35711) |
35712 sed '
35713 /^ac_cv_env_/b end
35714 t clear
35715 :clear
35716 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35717 t end
35718 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35719 :end' >>confcache
35720if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
35721 if test -w "$cache_file"; then
cristyda16f162011-02-19 23:52:17 +000035722 if test "x$cache_file" != "x/dev/null"; then
cristy8b350f62009-11-15 23:12:43 +000035723 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000035724$as_echo "$as_me: updating cache $cache_file" >&6;}
cristyda16f162011-02-19 23:52:17 +000035725 if test ! -f "$cache_file" || test -h "$cache_file"; then
35726 cat confcache >"$cache_file"
35727 else
35728 case $cache_file in #(
35729 */* | ?:*)
35730 mv -f confcache "$cache_file"$$ &&
35731 mv -f "$cache_file"$$ "$cache_file" ;; #(
35732 *)
35733 mv -f confcache "$cache_file" ;;
35734 esac
35735 fi
35736 fi
cristy3ed852e2009-09-05 21:47:34 +000035737 else
cristy8b350f62009-11-15 23:12:43 +000035738 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000035739$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
35740 fi
35741fi
35742rm -f confcache
35743
35744test "x$prefix" = xNONE && prefix=$ac_default_prefix
35745# Let make expand exec_prefix.
35746test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35747
35748DEFS=-DHAVE_CONFIG_H
35749
35750ac_libobjs=
35751ac_ltlibobjs=
cristy98dddb52010-11-04 00:30:15 +000035752U=
cristy3ed852e2009-09-05 21:47:34 +000035753for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35754 # 1. Remove the extension, and $U if already installed.
35755 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
35756 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
35757 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
35758 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000035759 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35760 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000035761done
35762LIBOBJS=$ac_libobjs
35763
35764LTLIBOBJS=$ac_ltlibobjs
35765
35766
cristyc0890a62012-07-19 00:18:20 +000035767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
35768$as_echo_n "checking that generated files are newer than configure... " >&6; }
35769 if test -n "$am_sleep_pid"; then
35770 # Hide warnings about reused PIDs.
35771 wait $am_sleep_pid 2>/dev/null
35772 fi
35773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
35774$as_echo "done" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000035775 if test -n "$EXEEXT"; then
35776 am__EXEEXT_TRUE=
35777 am__EXEEXT_FALSE='#'
35778else
35779 am__EXEEXT_TRUE='#'
35780 am__EXEEXT_FALSE=
35781fi
cristy3ed852e2009-09-05 21:47:34 +000035782
cristy9af1cbf2014-12-28 22:03:09 +000035783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
35784$as_echo_n "checking that generated files are newer than configure... " >&6; }
35785 if test -n "$am_sleep_pid"; then
35786 # Hide warnings about reused PIDs.
35787 wait $am_sleep_pid 2>/dev/null
35788 fi
35789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
35790$as_echo "done" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000035791if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035792 as_fn_error $? "conditional \"AMDEP\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035793Usually this means the macro was only invoked conditionally." "$LINENO" 5
35794fi
35795if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035796 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035797Usually this means the macro was only invoked conditionally." "$LINENO" 5
35798fi
35799if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035800 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035801Usually this means the macro was only invoked conditionally." "$LINENO" 5
35802fi
35803if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035804 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035805Usually this means the macro was only invoked conditionally." "$LINENO" 5
35806fi
cristy9b86f202012-11-28 21:55:35 +000035807if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
35808 as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
35809Usually this means the macro was only invoked conditionally." "$LINENO" 5
35810fi
cristy73bd4a52010-10-05 11:24:23 +000035811if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035812 as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035813Usually this means the macro was only invoked conditionally." "$LINENO" 5
35814fi
35815if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035816 as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035817Usually this means the macro was only invoked conditionally." "$LINENO" 5
35818fi
35819if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035820 as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035821Usually this means the macro was only invoked conditionally." "$LINENO" 5
35822fi
35823if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035824 as_fn_error $? "conditional \"USING_CL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035825Usually this means the macro was only invoked conditionally." "$LINENO" 5
35826fi
cristy73bd4a52010-10-05 11:24:23 +000035827if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035828 as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035829Usually this means the macro was only invoked conditionally." "$LINENO" 5
35830fi
35831if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035832 as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035833Usually this means the macro was only invoked conditionally." "$LINENO" 5
35834fi
cristy73bd4a52010-10-05 11:24:23 +000035835if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035836 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035837Usually this means the macro was only invoked conditionally." "$LINENO" 5
35838fi
cristy71d8c202012-03-20 17:05:01 +000035839if test -z "${LEGACY_SUPPORT_TRUE}" && test -z "${LEGACY_SUPPORT_FALSE}"; then
35840 as_fn_error $? "conditional \"LEGACY_SUPPORT\" was never defined.
35841Usually this means the macro was only invoked conditionally." "$LINENO" 5
35842fi
cristy73bd4a52010-10-05 11:24:23 +000035843
35844if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035845 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035846Usually this means the macro was only invoked conditionally." "$LINENO" 5
35847fi
35848if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035849 as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035850Usually this means the macro was only invoked conditionally." "$LINENO" 5
35851fi
cristy3b0097d2014-11-04 15:34:47 +000035852if test -z "${HasJEMALLOC_TRUE}" && test -z "${HasJEMALLOC_FALSE}"; then
35853 as_fn_error $? "conditional \"HasJEMALLOC\" was never defined.
35854Usually this means the macro was only invoked conditionally." "$LINENO" 5
35855fi
cristy73bd4a52010-10-05 11:24:23 +000035856if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035857 as_fn_error $? "conditional \"HasUMEM\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035858Usually this means the macro was only invoked conditionally." "$LINENO" 5
35859fi
35860if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035861 as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035862Usually this means the macro was only invoked conditionally." "$LINENO" 5
35863fi
35864if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035865 as_fn_error $? "conditional \"X11_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035866Usually this means the macro was only invoked conditionally." "$LINENO" 5
35867fi
35868if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035869 as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035870Usually this means the macro was only invoked conditionally." "$LINENO" 5
35871fi
cristy5eef09f2012-10-16 12:08:28 +000035872if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
35873 as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
35874Usually this means the macro was only invoked conditionally." "$LINENO" 5
35875fi
cristy73bd4a52010-10-05 11:24:23 +000035876if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035877 as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035878Usually this means the macro was only invoked conditionally." "$LINENO" 5
35879fi
35880if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035881 as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035882Usually this means the macro was only invoked conditionally." "$LINENO" 5
35883fi
cristy73bd4a52010-10-05 11:24:23 +000035884if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035885 as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035886Usually this means the macro was only invoked conditionally." "$LINENO" 5
35887fi
35888if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035889 as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035890Usually this means the macro was only invoked conditionally." "$LINENO" 5
35891fi
cristy853d9902014-08-21 18:50:43 +000035892if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
35893 as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined.
35894Usually this means the macro was only invoked conditionally." "$LINENO" 5
35895fi
cristy73bd4a52010-10-05 11:24:23 +000035896if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035897 as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035898Usually this means the macro was only invoked conditionally." "$LINENO" 5
35899fi
35900if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035901 as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035902Usually this means the macro was only invoked conditionally." "$LINENO" 5
35903fi
35904if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035905 as_fn_error $? "conditional \"GS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035906Usually this means the macro was only invoked conditionally." "$LINENO" 5
35907fi
35908if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035909 as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035910Usually this means the macro was only invoked conditionally." "$LINENO" 5
35911fi
35912if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035913 as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035914Usually this means the macro was only invoked conditionally." "$LINENO" 5
35915fi
35916if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035917 as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035918Usually this means the macro was only invoked conditionally." "$LINENO" 5
35919fi
cristy73bd4a52010-10-05 11:24:23 +000035920if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035921 as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035922Usually this means the macro was only invoked conditionally." "$LINENO" 5
35923fi
cristy99db3872014-01-01 15:11:34 +000035924if test -z "${LIBOPENJP2_DELEGATE_TRUE}" && test -z "${LIBOPENJP2_DELEGATE_FALSE}"; then
35925 as_fn_error $? "conditional \"LIBOPENJP2_DELEGATE\" was never defined.
35926Usually this means the macro was only invoked conditionally." "$LINENO" 5
35927fi
cristy73bd4a52010-10-05 11:24:23 +000035928if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035929 as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035930Usually this means the macro was only invoked conditionally." "$LINENO" 5
35931fi
cristyfbb0ef02010-12-19 02:32:11 +000035932if test -z "${LZMA_DELEGATE_TRUE}" && test -z "${LZMA_DELEGATE_FALSE}"; then
35933 as_fn_error $? "conditional \"LZMA_DELEGATE\" was never defined.
35934Usually this means the macro was only invoked conditionally." "$LINENO" 5
35935fi
cristy73bd4a52010-10-05 11:24:23 +000035936if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035937 as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035938Usually this means the macro was only invoked conditionally." "$LINENO" 5
35939fi
cristy41cbe8a2011-10-27 01:35:18 +000035940if test -z "${PANGO_DELEGATE_TRUE}" && test -z "${PANGO_DELEGATE_FALSE}"; then
35941 as_fn_error $? "conditional \"PANGO_DELEGATE\" was never defined.
35942Usually this means the macro was only invoked conditionally." "$LINENO" 5
35943fi
cristya054b762012-03-26 23:16:00 +000035944if test -z "${PANGOCAIRO_DELEGATE_TRUE}" && test -z "${PANGOCAIRO_DELEGATE_FALSE}"; then
35945 as_fn_error $? "conditional \"PANGOCAIRO_DELEGATE\" was never defined.
cristy41cbe8a2011-10-27 01:35:18 +000035946Usually this means the macro was only invoked conditionally." "$LINENO" 5
35947fi
cristy73bd4a52010-10-05 11:24:23 +000035948if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035949 as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035950Usually this means the macro was only invoked conditionally." "$LINENO" 5
35951fi
35952if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035953 as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035954Usually this means the macro was only invoked conditionally." "$LINENO" 5
35955fi
35956if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035957 as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035958Usually this means the macro was only invoked conditionally." "$LINENO" 5
35959fi
35960if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035961 as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035962Usually this means the macro was only invoked conditionally." "$LINENO" 5
35963fi
cristyb1860752011-03-14 00:27:46 +000035964if test -z "${WEBP_DELEGATE_TRUE}" && test -z "${WEBP_DELEGATE_FALSE}"; then
35965 as_fn_error $? "conditional \"WEBP_DELEGATE\" was never defined.
35966Usually this means the macro was only invoked conditionally." "$LINENO" 5
35967fi
cristy73bd4a52010-10-05 11:24:23 +000035968if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035969 as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035970Usually this means the macro was only invoked conditionally." "$LINENO" 5
35971fi
35972if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035973 as_fn_error $? "conditional \"XML_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035974Usually this means the macro was only invoked conditionally." "$LINENO" 5
35975fi
cristydd17feb2014-03-05 02:06:32 +000035976if test -z "${INSTALL_DOC_TRUE}" && test -z "${INSTALL_DOC_FALSE}"; then
35977 as_fn_error $? "conditional \"INSTALL_DOC\" was never defined.
35978Usually this means the macro was only invoked conditionally." "$LINENO" 5
35979fi
cristy73bd4a52010-10-05 11:24:23 +000035980if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035981 as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035982Usually this means the macro was only invoked conditionally." "$LINENO" 5
35983fi
35984if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035985 as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035986Usually this means the macro was only invoked conditionally." "$LINENO" 5
35987fi
35988if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035989 as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035990Usually this means the macro was only invoked conditionally." "$LINENO" 5
35991fi
35992if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035993 as_fn_error $? "conditional \"WITH_PERL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035994Usually this means the macro was only invoked conditionally." "$LINENO" 5
35995fi
35996if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035997 as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035998Usually this means the macro was only invoked conditionally." "$LINENO" 5
35999fi
36000if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036001 as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036002Usually this means the macro was only invoked conditionally." "$LINENO" 5
36003fi
cristy3ed852e2009-09-05 21:47:34 +000036004
cristyda16f162011-02-19 23:52:17 +000036005: "${CONFIG_STATUS=./config.status}"
cristy3ed852e2009-09-05 21:47:34 +000036006ac_write_fail=0
36007ac_clean_files_save=$ac_clean_files
36008ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000036009{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000036010$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000036011as_write_fail=0
36012cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000036013#! $SHELL
36014# Generated by $as_me.
36015# Run this file to recreate the current configuration.
36016# Compiler output produced by configure, useful for debugging
36017# configure, is in config.log if it exists.
36018
36019debug=false
36020ac_cs_recheck=false
36021ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000036022
cristy8b350f62009-11-15 23:12:43 +000036023SHELL=\${CONFIG_SHELL-$SHELL}
36024export SHELL
36025_ASEOF
36026cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
36027## -------------------- ##
36028## M4sh Initialization. ##
36029## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000036030
36031# Be more Bourne compatible
36032DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000036033if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000036034 emulate sh
36035 NULLCMD=:
36036 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
36037 # is contrary to our usage. Disable this feature.
36038 alias -g '${1+"$@"}'='"$@"'
36039 setopt NO_GLOB_SUBST
36040else
cristy8b350f62009-11-15 23:12:43 +000036041 case `(set -o) 2>/dev/null` in #(
36042 *posix*) :
36043 set -o posix ;; #(
36044 *) :
36045 ;;
cristy3ed852e2009-09-05 21:47:34 +000036046esac
cristy3ed852e2009-09-05 21:47:34 +000036047fi
36048
36049
cristy3ed852e2009-09-05 21:47:34 +000036050as_nl='
36051'
36052export as_nl
36053# Printing a long string crashes Solaris 7 /usr/bin/printf.
36054as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
36055as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
36056as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000036057# Prefer a ksh shell builtin over an external printf program on Solaris,
36058# but without wasting forks for bash or zsh.
36059if test -z "$BASH_VERSION$ZSH_VERSION" \
36060 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
36061 as_echo='print -r --'
36062 as_echo_n='print -rn --'
36063elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000036064 as_echo='printf %s\n'
36065 as_echo_n='printf %s'
36066else
36067 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
36068 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
36069 as_echo_n='/usr/ucb/echo -n'
36070 else
36071 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
36072 as_echo_n_body='eval
36073 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000036074 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000036075 *"$as_nl"*)
36076 expr "X$arg" : "X\\(.*\\)$as_nl";
36077 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
36078 esac;
36079 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
36080 '
36081 export as_echo_n_body
36082 as_echo_n='sh -c $as_echo_n_body as_echo'
36083 fi
36084 export as_echo_body
36085 as_echo='sh -c $as_echo_body as_echo'
36086fi
36087
36088# The user is always right.
36089if test "${PATH_SEPARATOR+set}" != set; then
36090 PATH_SEPARATOR=:
36091 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
36092 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
36093 PATH_SEPARATOR=';'
36094 }
36095fi
36096
cristy3ed852e2009-09-05 21:47:34 +000036097
36098# IFS
36099# We need space, tab and new line, in precisely that order. Quoting is
36100# there to prevent editors from complaining about space-tab.
36101# (If _AS_PATH_WALK were called with IFS unset, it would disable word
36102# splitting by setting IFS to empty value.)
36103IFS=" "" $as_nl"
36104
36105# Find who we are. Look in the path if we contain no directory separator.
cristyda16f162011-02-19 23:52:17 +000036106as_myself=
cristy8b350f62009-11-15 23:12:43 +000036107case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000036108 *[\\/]* ) as_myself=$0 ;;
36109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36110for as_dir in $PATH
36111do
36112 IFS=$as_save_IFS
36113 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000036114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
36115 done
cristy3ed852e2009-09-05 21:47:34 +000036116IFS=$as_save_IFS
36117
36118 ;;
36119esac
36120# We did not find ourselves, most probably we were run as `sh COMMAND'
36121# in which case we are not to be found in the path.
36122if test "x$as_myself" = x; then
36123 as_myself=$0
36124fi
36125if test ! -f "$as_myself"; then
36126 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000036127 exit 1
cristy3ed852e2009-09-05 21:47:34 +000036128fi
36129
cristy8b350f62009-11-15 23:12:43 +000036130# Unset variables that we do not need and which cause bugs (e.g. in
36131# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
36132# suppresses any "Segmentation fault" message there. '((' could
36133# trigger a bug in pdksh 5.2.14.
36134for as_var in BASH_ENV ENV MAIL MAILPATH
36135do eval test x\${$as_var+set} = xset \
36136 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000036137done
36138PS1='$ '
36139PS2='> '
36140PS4='+ '
36141
36142# NLS nuisances.
36143LC_ALL=C
36144export LC_ALL
36145LANGUAGE=C
36146export LANGUAGE
36147
cristy8b350f62009-11-15 23:12:43 +000036148# CDPATH.
36149(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36150
36151
cristy98dddb52010-11-04 00:30:15 +000036152# as_fn_error STATUS ERROR [LINENO LOG_FD]
36153# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +000036154# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
36155# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +000036156# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +000036157as_fn_error ()
36158{
cristy98dddb52010-11-04 00:30:15 +000036159 as_status=$1; test $as_status -eq 0 && as_status=1
36160 if test "$4"; then
36161 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
36162 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +000036163 fi
cristy98dddb52010-11-04 00:30:15 +000036164 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +000036165 as_fn_exit $as_status
36166} # as_fn_error
36167
36168
36169# as_fn_set_status STATUS
36170# -----------------------
36171# Set $? to STATUS, without forking.
36172as_fn_set_status ()
36173{
36174 return $1
36175} # as_fn_set_status
36176
36177# as_fn_exit STATUS
36178# -----------------
36179# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
36180as_fn_exit ()
36181{
36182 set +e
36183 as_fn_set_status $1
36184 exit $1
36185} # as_fn_exit
36186
36187# as_fn_unset VAR
36188# ---------------
36189# Portably unset VAR.
36190as_fn_unset ()
36191{
36192 { eval $1=; unset $1;}
36193}
36194as_unset=as_fn_unset
36195# as_fn_append VAR VALUE
36196# ----------------------
36197# Append the text in VALUE to the end of the definition contained in VAR. Take
36198# advantage of any shell optimizations that allow amortized linear growth over
36199# repeated appends, instead of the typical quadratic growth present in naive
36200# implementations.
36201if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
36202 eval 'as_fn_append ()
36203 {
36204 eval $1+=\$2
36205 }'
36206else
36207 as_fn_append ()
36208 {
36209 eval $1=\$$1\$2
36210 }
36211fi # as_fn_append
36212
36213# as_fn_arith ARG...
36214# ------------------
36215# Perform arithmetic evaluation on the ARGs, and store the result in the
36216# global $as_val. Take advantage of shells that can avoid forks. The arguments
36217# must be portable across $(()) and expr.
36218if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
36219 eval 'as_fn_arith ()
36220 {
36221 as_val=$(( $* ))
36222 }'
36223else
36224 as_fn_arith ()
36225 {
36226 as_val=`expr "$@" || test $? -eq 1`
36227 }
36228fi # as_fn_arith
36229
36230
cristy3ed852e2009-09-05 21:47:34 +000036231if expr a : '\(a\)' >/dev/null 2>&1 &&
36232 test "X`expr 00001 : '.*\(...\)'`" = X001; then
36233 as_expr=expr
36234else
36235 as_expr=false
36236fi
36237
36238if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
36239 as_basename=basename
36240else
36241 as_basename=false
36242fi
36243
cristy8b350f62009-11-15 23:12:43 +000036244if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
36245 as_dirname=dirname
36246else
36247 as_dirname=false
36248fi
cristy3ed852e2009-09-05 21:47:34 +000036249
cristy3ed852e2009-09-05 21:47:34 +000036250as_me=`$as_basename -- "$0" ||
36251$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
36252 X"$0" : 'X\(//\)$' \| \
36253 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
36254$as_echo X/"$0" |
36255 sed '/^.*\/\([^/][^/]*\)\/*$/{
36256 s//\1/
36257 q
36258 }
36259 /^X\/\(\/\/\)$/{
36260 s//\1/
36261 q
36262 }
36263 /^X\/\(\/\).*/{
36264 s//\1/
36265 q
36266 }
36267 s/.*/./; q'`
36268
cristy8b350f62009-11-15 23:12:43 +000036269# Avoid depending upon Character Ranges.
36270as_cr_letters='abcdefghijklmnopqrstuvwxyz'
36271as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36272as_cr_Letters=$as_cr_letters$as_cr_LETTERS
36273as_cr_digits='0123456789'
36274as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000036275
36276ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000036277case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000036278-n*)
cristy8b350f62009-11-15 23:12:43 +000036279 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000036280 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000036281 xy) ECHO_C='\c';;
36282 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
36283 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000036284 esac;;
36285*)
36286 ECHO_N='-n';;
36287esac
cristy3ed852e2009-09-05 21:47:34 +000036288
36289rm -f conf$$ conf$$.exe conf$$.file
36290if test -d conf$$.dir; then
36291 rm -f conf$$.dir/conf$$.file
36292else
36293 rm -f conf$$.dir
36294 mkdir conf$$.dir 2>/dev/null
36295fi
36296if (echo >conf$$.file) 2>/dev/null; then
36297 if ln -s conf$$.file conf$$ 2>/dev/null; then
36298 as_ln_s='ln -s'
36299 # ... but there are two gotchas:
36300 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
36301 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
cristy14fefe52012-05-21 00:59:18 +000036302 # In both cases, we have to default to `cp -pR'.
cristy3ed852e2009-09-05 21:47:34 +000036303 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
cristy14fefe52012-05-21 00:59:18 +000036304 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036305 elif ln conf$$.file conf$$ 2>/dev/null; then
36306 as_ln_s=ln
36307 else
cristy14fefe52012-05-21 00:59:18 +000036308 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036309 fi
36310else
cristy14fefe52012-05-21 00:59:18 +000036311 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036312fi
36313rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
36314rmdir conf$$.dir 2>/dev/null
36315
cristy8b350f62009-11-15 23:12:43 +000036316
36317# as_fn_mkdir_p
36318# -------------
36319# Create "$as_dir" as a directory, including parents if necessary.
36320as_fn_mkdir_p ()
36321{
36322
36323 case $as_dir in #(
36324 -*) as_dir=./$as_dir;;
36325 esac
36326 test -d "$as_dir" || eval $as_mkdir_p || {
36327 as_dirs=
36328 while :; do
36329 case $as_dir in #(
36330 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
36331 *) as_qdir=$as_dir;;
36332 esac
36333 as_dirs="'$as_qdir' $as_dirs"
36334 as_dir=`$as_dirname -- "$as_dir" ||
36335$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36336 X"$as_dir" : 'X\(//\)[^/]' \| \
36337 X"$as_dir" : 'X\(//\)$' \| \
36338 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36339$as_echo X"$as_dir" |
36340 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36341 s//\1/
36342 q
36343 }
36344 /^X\(\/\/\)[^/].*/{
36345 s//\1/
36346 q
36347 }
36348 /^X\(\/\/\)$/{
36349 s//\1/
36350 q
36351 }
36352 /^X\(\/\).*/{
36353 s//\1/
36354 q
36355 }
36356 s/.*/./; q'`
36357 test -d "$as_dir" && break
36358 done
36359 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +000036360 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +000036361
36362
36363} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000036364if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000036365 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000036366else
36367 test -d ./-p && rmdir ./-p
36368 as_mkdir_p=false
36369fi
36370
cristy14fefe52012-05-21 00:59:18 +000036371
36372# as_fn_executable_p FILE
36373# -----------------------
36374# Test if FILE is an executable regular file.
36375as_fn_executable_p ()
36376{
36377 test -f "$1" && test -x "$1"
36378} # as_fn_executable_p
36379as_test_x='test -x'
36380as_executable_p=as_fn_executable_p
cristy3ed852e2009-09-05 21:47:34 +000036381
36382# Sed expression to map a string onto a valid CPP name.
36383as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
36384
36385# Sed expression to map a string onto a valid variable name.
36386as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
36387
36388
36389exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000036390## ----------------------------------- ##
36391## Main body of $CONFIG_STATUS script. ##
36392## ----------------------------------- ##
36393_ASEOF
36394test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000036395
cristy8b350f62009-11-15 23:12:43 +000036396cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36397# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000036398# report actual input values of CONFIG_FILES etc. instead of their
36399# values after options handling.
36400ac_log="
cristy29eb34e2011-10-16 00:46:08 +000036401This file was extended by ImageMagick $as_me 7.0.0-0, which was
cristy14fefe52012-05-21 00:59:18 +000036402generated by GNU Autoconf 2.69. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000036403
36404 CONFIG_FILES = $CONFIG_FILES
36405 CONFIG_HEADERS = $CONFIG_HEADERS
36406 CONFIG_LINKS = $CONFIG_LINKS
36407 CONFIG_COMMANDS = $CONFIG_COMMANDS
36408 $ $0 $@
36409
36410on `(hostname || uname -n) 2>/dev/null | sed 1q`
36411"
36412
36413_ACEOF
36414
36415case $ac_config_files in *"
36416"*) set x $ac_config_files; shift; ac_config_files=$*;;
36417esac
36418
36419case $ac_config_headers in *"
36420"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
36421esac
36422
36423
36424cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36425# Files that config.status was made for.
36426config_files="$ac_config_files"
36427config_headers="$ac_config_headers"
36428config_commands="$ac_config_commands"
36429
36430_ACEOF
36431
36432cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36433ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000036434\`$as_me' instantiates files and other configuration actions
36435from templates according to the current configuration. Unless the files
36436and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000036437
cristy8b350f62009-11-15 23:12:43 +000036438Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000036439
36440 -h, --help print this help, then exit
36441 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000036442 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000036443 -q, --quiet, --silent
36444 do not print progress messages
36445 -d, --debug don't remove temporary files
36446 --recheck update $as_me by reconfiguring in the same conditions
36447 --file=FILE[:TEMPLATE]
36448 instantiate the configuration file FILE
36449 --header=FILE[:TEMPLATE]
36450 instantiate the configuration header FILE
36451
36452Configuration files:
36453$config_files
36454
36455Configuration headers:
36456$config_headers
36457
36458Configuration commands:
36459$config_commands
36460
cristy8b350f62009-11-15 23:12:43 +000036461Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000036462
36463_ACEOF
36464cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000036465ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000036466ac_cs_version="\\
cristy29eb34e2011-10-16 00:46:08 +000036467ImageMagick config.status 7.0.0-0
cristy14fefe52012-05-21 00:59:18 +000036468configured by $0, generated by GNU Autoconf 2.69,
cristycd4c5312009-11-22 01:19:08 +000036469 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000036470
cristy14fefe52012-05-21 00:59:18 +000036471Copyright (C) 2012 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000036472This config.status script is free software; the Free Software Foundation
36473gives unlimited permission to copy, distribute and modify it."
36474
36475ac_pwd='$ac_pwd'
36476srcdir='$srcdir'
36477INSTALL='$INSTALL'
cristy73bd4a52010-10-05 11:24:23 +000036478MKDIR_P='$MKDIR_P'
36479AWK='$AWK'
cristy3ed852e2009-09-05 21:47:34 +000036480test -n "\$AWK" || AWK=awk
36481_ACEOF
36482
36483cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36484# The default lists apply if the user does not specify any file.
36485ac_need_defaults=:
36486while test $# != 0
36487do
36488 case $1 in
cristyda16f162011-02-19 23:52:17 +000036489 --*=?*)
cristy3ed852e2009-09-05 21:47:34 +000036490 ac_option=`expr "X$1" : 'X\([^=]*\)='`
36491 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
36492 ac_shift=:
36493 ;;
cristyda16f162011-02-19 23:52:17 +000036494 --*=)
36495 ac_option=`expr "X$1" : 'X\([^=]*\)='`
36496 ac_optarg=
36497 ac_shift=:
36498 ;;
cristy3ed852e2009-09-05 21:47:34 +000036499 *)
36500 ac_option=$1
36501 ac_optarg=$2
36502 ac_shift=shift
36503 ;;
36504 esac
36505
36506 case $ac_option in
36507 # Handling of the options.
36508 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
36509 ac_cs_recheck=: ;;
36510 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
36511 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000036512 --config | --confi | --conf | --con | --co | --c )
36513 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000036514 --debug | --debu | --deb | --de | --d | -d )
36515 debug=: ;;
36516 --file | --fil | --fi | --f )
36517 $ac_shift
36518 case $ac_optarg in
36519 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
cristyda16f162011-02-19 23:52:17 +000036520 '') as_fn_error $? "missing file argument" ;;
cristy3ed852e2009-09-05 21:47:34 +000036521 esac
cristy8b350f62009-11-15 23:12:43 +000036522 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000036523 ac_need_defaults=false;;
36524 --header | --heade | --head | --hea )
36525 $ac_shift
36526 case $ac_optarg in
36527 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
36528 esac
cristy8b350f62009-11-15 23:12:43 +000036529 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000036530 ac_need_defaults=false;;
36531 --he | --h)
36532 # Conflict between --help and --header
cristy98dddb52010-11-04 00:30:15 +000036533 as_fn_error $? "ambiguous option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000036534Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000036535 --help | --hel | -h )
36536 $as_echo "$ac_cs_usage"; exit ;;
36537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
36538 | -silent | --silent | --silen | --sile | --sil | --si | --s)
36539 ac_cs_silent=: ;;
36540
36541 # This is an error.
cristy98dddb52010-11-04 00:30:15 +000036542 -*) as_fn_error $? "unrecognized option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000036543Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000036544
cristy8b350f62009-11-15 23:12:43 +000036545 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000036546 ac_need_defaults=false ;;
36547
36548 esac
36549 shift
36550done
36551
36552ac_configure_extra_args=
36553
36554if $ac_cs_silent; then
36555 exec 6>/dev/null
36556 ac_configure_extra_args="$ac_configure_extra_args --silent"
36557fi
36558
36559_ACEOF
36560cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36561if \$ac_cs_recheck; then
cristy14fefe52012-05-21 00:59:18 +000036562 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
cristy3ed852e2009-09-05 21:47:34 +000036563 shift
36564 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
36565 CONFIG_SHELL='$SHELL'
36566 export CONFIG_SHELL
36567 exec "\$@"
36568fi
36569
36570_ACEOF
36571cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36572exec 5>>config.log
36573{
36574 echo
36575 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
36576## Running $as_me. ##
36577_ASBOX
36578 $as_echo "$ac_log"
36579} >&5
36580
36581_ACEOF
36582cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristy73bd4a52010-10-05 11:24:23 +000036583#
36584# INIT-COMMANDS
36585#
36586PACKAGE="$PACKAGE"
36587AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
36588
36589
36590# The HP-UX ksh and POSIX shell print the target directory to stdout
36591# if CDPATH is set.
36592(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36593
36594sed_quote_subst='$sed_quote_subst'
36595double_quote_subst='$double_quote_subst'
36596delay_variable_subst='$delay_variable_subst'
cristy0c60a692010-11-04 01:09:47 +000036597SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
36598Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
36599GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
36600EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
36601FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
36602SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
36603ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
36604LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
36605macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
36606macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
36607AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
36608DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
36609OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
36610enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
36611enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
36612pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
36613enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
cristy99bd5232011-12-07 14:38:20 +000036614PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036615host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
36616host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
36617host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
36618build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
36619build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
36620build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
36621NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
36622LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
36623max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
36624ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
36625exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
36626lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
36627lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
36628lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036629lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
36630lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036631reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
36632reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
36633deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
36634file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036635file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
36636want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
36637sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036638AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
36639AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036640archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036641STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
36642RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
36643old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36644old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36645old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
36646lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
36647CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
36648CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
36649compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
36650GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
36651lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
36652lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
36653lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
36654lt_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 +000036655nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
36656lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036657objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
36658MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
36659lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036660lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036661lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036662lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
36663lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
36664need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036665MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036666DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
36667NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
36668LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
36669OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
36670OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
36671libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
36672shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
36673extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36674archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
36675enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
36676export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
36677whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
36678compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
36679old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
36680old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36681archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
36682archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36683module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
36684module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36685with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
36686allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
36687no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
36688hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036689hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
36690hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
36691hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
36692hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
36693hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
36694hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
36695inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
36696link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036697always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
36698export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
36699exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
36700include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
36701prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036702postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036703file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
36704variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
36705need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
36706need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
36707version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
36708runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
36709shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
36710shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
36711libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
36712library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
36713soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
36714install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
36715postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36716postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36717finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
36718finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
36719hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
36720sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
36721sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
36722hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
36723enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
36724enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
36725enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
36726old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
36727striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
36728compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
36729predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
36730postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
36731predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
36732postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
36733compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
36734LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
36735reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
36736reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36737old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36738compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
36739GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
36740lt_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 +000036741lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036742lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036743lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
36744lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
36745archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
36746enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
36747export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36748whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36749compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
36750old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36751old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36752archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36753archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36754module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36755module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36756with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
36757allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
36758no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
36759hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036760hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
36761hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
36762hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
36763hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
36764hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
36765hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
36766inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
36767link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036768always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
36769export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36770exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
36771include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
36772prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036773postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036774file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
36775hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
36776compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
36777predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
36778postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
36779predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
36780postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
36781compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
cristy73bd4a52010-10-05 11:24:23 +000036782
36783LTCC='$LTCC'
36784LTCFLAGS='$LTCFLAGS'
36785compiler='$compiler_DEFAULT'
36786
cristy0c60a692010-11-04 01:09:47 +000036787# A function that is used when there is no print builtin or printf.
36788func_fallback_echo ()
36789{
36790 eval 'cat <<_LTECHO_EOF
36791\$1
36792_LTECHO_EOF'
36793}
36794
cristy73bd4a52010-10-05 11:24:23 +000036795# Quote evaled strings.
36796for var in SED \
36797GREP \
36798EGREP \
36799FGREP \
cristy0c60a692010-11-04 01:09:47 +000036800SHELL \
36801ECHO \
cristy73bd4a52010-10-05 11:24:23 +000036802LD \
cristy0c60a692010-11-04 01:09:47 +000036803AS \
36804DLLTOOL \
36805OBJDUMP \
cristy99bd5232011-12-07 14:38:20 +000036806PATH_SEPARATOR \
cristy73bd4a52010-10-05 11:24:23 +000036807NM \
36808LN_S \
36809lt_SP2NL \
36810lt_NL2SP \
36811reload_flag \
36812deplibs_check_method \
36813file_magic_cmd \
cristyda16f162011-02-19 23:52:17 +000036814file_magic_glob \
36815want_nocaseglob \
36816sharedlib_from_linklib_cmd \
cristy73bd4a52010-10-05 11:24:23 +000036817AR \
36818AR_FLAGS \
cristyda16f162011-02-19 23:52:17 +000036819archiver_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000036820STRIP \
36821RANLIB \
36822CC \
36823CFLAGS \
36824compiler \
36825lt_cv_sys_global_symbol_pipe \
36826lt_cv_sys_global_symbol_to_cdecl \
36827lt_cv_sys_global_symbol_to_c_name_address \
36828lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cristyda16f162011-02-19 23:52:17 +000036829nm_file_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000036830lt_prog_compiler_no_builtin_flag \
cristy73bd4a52010-10-05 11:24:23 +000036831lt_prog_compiler_pic \
cristyda16f162011-02-19 23:52:17 +000036832lt_prog_compiler_wl \
cristy73bd4a52010-10-05 11:24:23 +000036833lt_prog_compiler_static \
36834lt_cv_prog_compiler_c_o \
36835need_locks \
cristyda16f162011-02-19 23:52:17 +000036836MANIFEST_TOOL \
cristy73bd4a52010-10-05 11:24:23 +000036837DSYMUTIL \
36838NMEDIT \
36839LIPO \
36840OTOOL \
36841OTOOL64 \
36842shrext_cmds \
36843export_dynamic_flag_spec \
36844whole_archive_flag_spec \
36845compiler_needs_object \
36846with_gnu_ld \
36847allow_undefined_flag \
36848no_undefined_flag \
36849hardcode_libdir_flag_spec \
cristy73bd4a52010-10-05 11:24:23 +000036850hardcode_libdir_separator \
cristy73bd4a52010-10-05 11:24:23 +000036851exclude_expsyms \
36852include_expsyms \
36853file_list_spec \
36854variables_saved_for_relink \
36855libname_spec \
36856library_names_spec \
36857soname_spec \
cristy0c60a692010-11-04 01:09:47 +000036858install_override_mode \
cristy73bd4a52010-10-05 11:24:23 +000036859finish_eval \
36860old_striplib \
36861striplib \
36862compiler_lib_search_dirs \
36863predep_objects \
36864postdep_objects \
36865predeps \
36866postdeps \
36867compiler_lib_search_path \
36868LD_CXX \
cristy0c60a692010-11-04 01:09:47 +000036869reload_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036870compiler_CXX \
36871lt_prog_compiler_no_builtin_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036872lt_prog_compiler_pic_CXX \
cristyda16f162011-02-19 23:52:17 +000036873lt_prog_compiler_wl_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036874lt_prog_compiler_static_CXX \
36875lt_cv_prog_compiler_c_o_CXX \
36876export_dynamic_flag_spec_CXX \
36877whole_archive_flag_spec_CXX \
36878compiler_needs_object_CXX \
36879with_gnu_ld_CXX \
36880allow_undefined_flag_CXX \
36881no_undefined_flag_CXX \
36882hardcode_libdir_flag_spec_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036883hardcode_libdir_separator_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036884exclude_expsyms_CXX \
36885include_expsyms_CXX \
36886file_list_spec_CXX \
36887compiler_lib_search_dirs_CXX \
36888predep_objects_CXX \
36889postdep_objects_CXX \
36890predeps_CXX \
36891postdeps_CXX \
36892compiler_lib_search_path_CXX; do
cristy0c60a692010-11-04 01:09:47 +000036893 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000036894 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000036895 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000036896 ;;
36897 *)
36898 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
36899 ;;
36900 esac
36901done
36902
36903# Double-quote double-evaled strings.
36904for var in reload_cmds \
36905old_postinstall_cmds \
36906old_postuninstall_cmds \
36907old_archive_cmds \
36908extract_expsyms_cmds \
36909old_archive_from_new_cmds \
36910old_archive_from_expsyms_cmds \
36911archive_cmds \
36912archive_expsym_cmds \
36913module_cmds \
36914module_expsym_cmds \
36915export_symbols_cmds \
36916prelink_cmds \
cristyda16f162011-02-19 23:52:17 +000036917postlink_cmds \
cristy73bd4a52010-10-05 11:24:23 +000036918postinstall_cmds \
36919postuninstall_cmds \
36920finish_cmds \
36921sys_lib_search_path_spec \
36922sys_lib_dlsearch_path_spec \
cristy0c60a692010-11-04 01:09:47 +000036923reload_cmds_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036924old_archive_cmds_CXX \
36925old_archive_from_new_cmds_CXX \
36926old_archive_from_expsyms_cmds_CXX \
36927archive_cmds_CXX \
36928archive_expsym_cmds_CXX \
36929module_cmds_CXX \
36930module_expsym_cmds_CXX \
36931export_symbols_cmds_CXX \
cristyda16f162011-02-19 23:52:17 +000036932prelink_cmds_CXX \
36933postlink_cmds_CXX; do
cristy0c60a692010-11-04 01:09:47 +000036934 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000036935 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000036936 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000036937 ;;
36938 *)
36939 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
36940 ;;
36941 esac
36942done
36943
cristy73bd4a52010-10-05 11:24:23 +000036944ac_aux_dir='$ac_aux_dir'
36945xsi_shell='$xsi_shell'
36946lt_shell_append='$lt_shell_append'
36947
36948# See if we are running on zsh, and set the options which allow our
36949# commands through without removal of \ escapes INIT.
36950if test -n "\${ZSH_VERSION+set}" ; then
36951 setopt NO_GLOB_SUBST
36952fi
36953
36954
36955 PACKAGE='$PACKAGE'
36956 VERSION='$VERSION'
36957 TIMESTAMP='$TIMESTAMP'
36958 RM='$RM'
36959 ofile='$ofile'
36960
36961
36962
36963
36964
36965
cristy3ed852e2009-09-05 21:47:34 +000036966_ACEOF
36967
36968cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36969
36970# Handling of arguments.
36971for ac_config_target in $ac_config_targets
36972do
36973 case $ac_config_target in
36974 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
cristy01ff9f32012-12-01 18:15:29 +000036975 "MagickCore/magick-baseconfig.h") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore/magick-baseconfig.h" ;;
cristy9af1cbf2014-12-28 22:03:09 +000036976 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
36977 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
36978 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
36979 "magick.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS magick.sh.in" ;;
36980 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
36981 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
36982 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
36983 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
cristy305c5dd2012-09-13 00:30:13 +000036984 "common.shi") CONFIG_FILES="$CONFIG_FILES common.shi" ;;
cristy3ed852e2009-09-05 21:47:34 +000036985 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
36986 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
36987 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
36988 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
36989 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
cristy2df32802012-09-17 01:15:28 +000036990 "config/Magick++.dox") CONFIG_FILES="$CONFIG_FILES config/Magick++.dox" ;;
cristy5a3dc992014-12-05 19:50:04 +000036991 "config/type-apple.xml") CONFIG_FILES="$CONFIG_FILES config/type-apple.xml" ;;
cristy430a7312010-01-21 20:44:04 +000036992 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
cristy3ed852e2009-09-05 21:47:34 +000036993 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
36994 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
36995 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
36996 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
36997 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
cristy4c08aed2011-07-01 19:47:50 +000036998 "MagickCore/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/ImageMagick.pc" ;;
cristy3ed852e2009-09-05 21:47:34 +000036999 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
cristy4c08aed2011-07-01 19:47:50 +000037000 "MagickCore/MagickCore-config") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore-config" ;;
37001 "MagickCore/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore.pc" ;;
37002 "MagickCore/version.h") CONFIG_FILES="$CONFIG_FILES MagickCore/version.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000037003 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
37004 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
cristy3ed852e2009-09-05 21:47:34 +000037005 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
cristy8d0ff762013-03-10 20:33:28 +000037006 "PerlMagick/default/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/default/Magick.pm" ;;
cristy3e049f82013-02-13 13:26:53 +000037007 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
cristy8d0ff762013-03-10 20:33:28 +000037008 "PerlMagick/default/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/default/Makefile.PL" ;;
cristycf0cbcc2013-02-13 23:32:58 +000037009 "PerlMagick/quantum/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/Makefile.PL" ;;
37010 "PerlMagick/quantum/quantum.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/quantum.pm" ;;
37011 "PerlMagick/quantum/quantum.xs") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/quantum.xs" ;;
37012 "PerlMagick/quantum/typemap") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/typemap" ;;
cristy3ed852e2009-09-05 21:47:34 +000037013 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
37014 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
37015 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
37016 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
37017 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
37018 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
37019 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
37020 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
37021 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
37022 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
37023 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
37024 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
cristy4c08aed2011-07-01 19:47:50 +000037025 "MagickWand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand-config" ;;
37026 "MagickWand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand.pc" ;;
cristy3ed852e2009-09-05 21:47:34 +000037027
cristy98dddb52010-11-04 00:30:15 +000037028 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037029 esac
37030done
37031
37032
37033# If the user did not use the arguments to specify the items to instantiate,
37034# then the envvar interface is used. Set only those that are not.
37035# We use the long form for the default assignment because of an extremely
37036# bizarre bug on SunOS 4.1.3.
37037if $ac_need_defaults; then
37038 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
37039 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
37040 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
37041fi
37042
37043# Have a temporary directory for convenience. Make it in the build tree
37044# simply because there is no reason against having it here, and in addition,
37045# creating and moving files from /tmp can sometimes cause problems.
37046# Hook for its removal unless debugging.
37047# Note that there is a small window in which the directory will not be cleaned:
37048# after its creation but before its name has been assigned to `$tmp'.
37049$debug ||
37050{
cristyda16f162011-02-19 23:52:17 +000037051 tmp= ac_tmp=
cristy3ed852e2009-09-05 21:47:34 +000037052 trap 'exit_status=$?
cristyda16f162011-02-19 23:52:17 +000037053 : "${ac_tmp:=$tmp}"
37054 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
cristy3ed852e2009-09-05 21:47:34 +000037055' 0
cristy8b350f62009-11-15 23:12:43 +000037056 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000037057}
37058# Create a (secure) tmp directory for tmp files.
37059
37060{
37061 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
cristyda16f162011-02-19 23:52:17 +000037062 test -d "$tmp"
cristy3ed852e2009-09-05 21:47:34 +000037063} ||
37064{
37065 tmp=./conf$$-$RANDOM
37066 (umask 077 && mkdir "$tmp")
cristy98dddb52010-11-04 00:30:15 +000037067} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000037068ac_tmp=$tmp
cristy3ed852e2009-09-05 21:47:34 +000037069
37070# Set up the scripts for CONFIG_FILES section.
37071# No need to generate them if there are no CONFIG_FILES.
37072# This happens for instance with `./config.status config.h'.
37073if test -n "$CONFIG_FILES"; then
37074
37075
cristy8b350f62009-11-15 23:12:43 +000037076ac_cr=`echo X | tr X '\015'`
37077# On cygwin, bash can eat \r inside `` if the user requested igncr.
37078# But we know of no other shell where ac_cr would be empty at this
37079# point, so we can use a bashism as a fallback.
37080if test "x$ac_cr" = x; then
37081 eval ac_cr=\$\'\\r\'
37082fi
cristy3ed852e2009-09-05 21:47:34 +000037083ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
37084if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristy98dddb52010-11-04 00:30:15 +000037085 ac_cs_awk_cr='\\r'
cristy3ed852e2009-09-05 21:47:34 +000037086else
37087 ac_cs_awk_cr=$ac_cr
37088fi
37089
cristyda16f162011-02-19 23:52:17 +000037090echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
cristy3ed852e2009-09-05 21:47:34 +000037091_ACEOF
37092
37093
37094{
37095 echo "cat >conf$$subs.awk <<_ACEOF" &&
37096 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
37097 echo "_ACEOF"
37098} >conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000037099 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
37100ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
cristy3ed852e2009-09-05 21:47:34 +000037101ac_delim='%!_!# '
37102for ac_last_try in false false false false false :; do
37103 . ./conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000037104 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037105
37106 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
37107 if test $ac_delim_n = $ac_delim_num; then
37108 break
37109 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000037110 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037111 else
37112 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
37113 fi
37114done
37115rm -f conf$$subs.sh
37116
37117cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristyda16f162011-02-19 23:52:17 +000037118cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000037119_ACEOF
37120sed -n '
37121h
37122s/^/S["/; s/!.*/"]=/
37123p
37124g
37125s/^[^!]*!//
37126:repl
37127t repl
37128s/'"$ac_delim"'$//
37129t delim
37130:nl
37131h
cristycd4c5312009-11-22 01:19:08 +000037132s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000037133t more1
37134s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
37135p
37136n
37137b repl
37138:more1
37139s/["\\]/\\&/g; s/^/"/; s/$/"\\/
37140p
37141g
37142s/.\{148\}//
37143t nl
37144:delim
37145h
cristycd4c5312009-11-22 01:19:08 +000037146s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000037147t more2
37148s/["\\]/\\&/g; s/^/"/; s/$/"/
37149p
37150b
37151:more2
37152s/["\\]/\\&/g; s/^/"/; s/$/"\\/
37153p
37154g
37155s/.\{148\}//
37156t delim
37157' <conf$$subs.awk | sed '
37158/^[^""]/{
37159 N
37160 s/\n//
37161}
37162' >>$CONFIG_STATUS || ac_write_fail=1
37163rm -f conf$$subs.awk
37164cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37165_ACAWK
cristyda16f162011-02-19 23:52:17 +000037166cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000037167 for (key in S) S_is_set[key] = 1
37168 FS = ""
37169
37170}
37171{
37172 line = $ 0
37173 nfields = split(line, field, "@")
37174 substed = 0
37175 len = length(field[1])
37176 for (i = 2; i < nfields; i++) {
37177 key = field[i]
37178 keylen = length(key)
37179 if (S_is_set[key]) {
37180 value = S[key]
37181 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
37182 len += length(value) + length(field[++i])
37183 substed = 1
37184 } else
37185 len += 1 + keylen
37186 }
37187
37188 print line
37189}
37190
37191_ACAWK
37192_ACEOF
37193cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37194if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
37195 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
37196else
37197 cat
cristyda16f162011-02-19 23:52:17 +000037198fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
cristy98dddb52010-11-04 00:30:15 +000037199 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037200_ACEOF
37201
cristy98dddb52010-11-04 00:30:15 +000037202# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
37203# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
cristy3ed852e2009-09-05 21:47:34 +000037204# trailing colons and then remove the whole line if VPATH becomes empty
37205# (actually we leave an empty line to preserve line numbers).
37206if test "x$srcdir" = x.; then
cristy98dddb52010-11-04 00:30:15 +000037207 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
37208h
37209s///
37210s/^/:/
37211s/[ ]*$/:/
37212s/:\$(srcdir):/:/g
37213s/:\${srcdir}:/:/g
37214s/:@srcdir@:/:/g
37215s/^:*//
cristy3ed852e2009-09-05 21:47:34 +000037216s/:*$//
cristy98dddb52010-11-04 00:30:15 +000037217x
37218s/\(=[ ]*\).*/\1/
37219G
37220s/\n//
cristy3ed852e2009-09-05 21:47:34 +000037221s/^[^=]*=[ ]*$//
37222}'
37223fi
37224
37225cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37226fi # test -n "$CONFIG_FILES"
37227
37228# Set up the scripts for CONFIG_HEADERS section.
37229# No need to generate them if there are no CONFIG_HEADERS.
37230# This happens for instance with `./config.status Makefile'.
37231if test -n "$CONFIG_HEADERS"; then
cristyda16f162011-02-19 23:52:17 +000037232cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
cristy3ed852e2009-09-05 21:47:34 +000037233BEGIN {
37234_ACEOF
37235
37236# Transform confdefs.h into an awk script `defines.awk', embedded as
37237# here-document in config.status, that substitutes the proper values into
37238# config.h.in to produce config.h.
37239
37240# Create a delimiter string that does not exist in confdefs.h, to ease
37241# handling of long lines.
37242ac_delim='%!_!# '
37243for ac_last_try in false false :; do
cristyda16f162011-02-19 23:52:17 +000037244 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
37245 if test -z "$ac_tt"; then
cristy3ed852e2009-09-05 21:47:34 +000037246 break
37247 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000037248 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037249 else
37250 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
37251 fi
37252done
37253
37254# For the awk script, D is an array of macro values keyed by name,
37255# likewise P contains macro parameters if any. Preserve backslash
37256# newline sequences.
37257
37258ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
37259sed -n '
37260s/.\{148\}/&'"$ac_delim"'/g
37261t rset
37262:rset
37263s/^[ ]*#[ ]*define[ ][ ]*/ /
37264t def
37265d
37266:def
37267s/\\$//
37268t bsnl
37269s/["\\]/\\&/g
37270s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
37271D["\1"]=" \3"/p
37272s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
37273d
37274:bsnl
37275s/["\\]/\\&/g
37276s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
37277D["\1"]=" \3\\\\\\n"\\/p
37278t cont
37279s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
37280t cont
37281d
37282:cont
37283n
37284s/.\{148\}/&'"$ac_delim"'/g
37285t clear
37286:clear
37287s/\\$//
37288t bsnlc
37289s/["\\]/\\&/g; s/^/"/; s/$/"/p
37290d
37291:bsnlc
37292s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
37293b cont
37294' <confdefs.h | sed '
37295s/'"$ac_delim"'/"\\\
37296"/g' >>$CONFIG_STATUS || ac_write_fail=1
37297
37298cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37299 for (key in D) D_is_set[key] = 1
37300 FS = ""
37301}
37302/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
37303 line = \$ 0
37304 split(line, arg, " ")
37305 if (arg[1] == "#") {
37306 defundef = arg[2]
37307 mac1 = arg[3]
37308 } else {
37309 defundef = substr(arg[1], 2)
37310 mac1 = arg[2]
37311 }
37312 split(mac1, mac2, "(") #)
37313 macro = mac2[1]
37314 prefix = substr(line, 1, index(line, defundef) - 1)
37315 if (D_is_set[macro]) {
37316 # Preserve the white space surrounding the "#".
37317 print prefix "define", macro P[macro] D[macro]
37318 next
37319 } else {
37320 # Replace #undef with comments. This is necessary, for example,
37321 # in the case of _POSIX_SOURCE, which is predefined and required
37322 # on some systems where configure will not decide to define it.
37323 if (defundef == "undef") {
37324 print "/*", prefix defundef, macro, "*/"
37325 next
37326 }
37327 }
37328}
37329{ print }
37330_ACAWK
37331_ACEOF
37332cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristy98dddb52010-11-04 00:30:15 +000037333 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037334fi # test -n "$CONFIG_HEADERS"
37335
37336
37337eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
37338shift
37339for ac_tag
37340do
37341 case $ac_tag in
37342 :[FHLC]) ac_mode=$ac_tag; continue;;
37343 esac
37344 case $ac_mode$ac_tag in
37345 :[FHL]*:*);;
cristy98dddb52010-11-04 00:30:15 +000037346 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037347 :[FH]-) ac_tag=-:-;;
37348 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
37349 esac
37350 ac_save_IFS=$IFS
37351 IFS=:
37352 set x $ac_tag
37353 IFS=$ac_save_IFS
37354 shift
37355 ac_file=$1
37356 shift
37357
37358 case $ac_mode in
37359 :L) ac_source=$1;;
37360 :[FH])
37361 ac_file_inputs=
37362 for ac_f
37363 do
37364 case $ac_f in
cristyda16f162011-02-19 23:52:17 +000037365 -) ac_f="$ac_tmp/stdin";;
cristy3ed852e2009-09-05 21:47:34 +000037366 *) # Look for the file first in the build tree, then in the source tree
37367 # (if the path is not absolute). The absolute path cannot be DOS-style,
37368 # because $ac_f cannot contain `:'.
37369 test -f "$ac_f" ||
37370 case $ac_f in
37371 [\\/$]*) false;;
37372 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
37373 esac ||
cristy98dddb52010-11-04 00:30:15 +000037374 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037375 esac
37376 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000037377 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000037378 done
37379
37380 # Let's still pretend it is `configure' which instantiates (i.e., don't
37381 # use $as_me), people would be surprised to read:
37382 # /* config.h. Generated by config.status. */
37383 configure_input='Generated from '`
37384 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
37385 `' by configure.'
37386 if test x"$ac_file" != x-; then
37387 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000037388 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000037389$as_echo "$as_me: creating $ac_file" >&6;}
37390 fi
37391 # Neutralize special characters interpreted by sed in replacement strings.
37392 case $configure_input in #(
37393 *\&* | *\|* | *\\* )
37394 ac_sed_conf_input=`$as_echo "$configure_input" |
37395 sed 's/[\\\\&|]/\\\\&/g'`;; #(
37396 *) ac_sed_conf_input=$configure_input;;
37397 esac
37398
37399 case $ac_tag in
cristyda16f162011-02-19 23:52:17 +000037400 *:-:* | *:-) cat >"$ac_tmp/stdin" \
cristy98dddb52010-11-04 00:30:15 +000037401 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000037402 esac
37403 ;;
37404 esac
37405
37406 ac_dir=`$as_dirname -- "$ac_file" ||
37407$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37408 X"$ac_file" : 'X\(//\)[^/]' \| \
37409 X"$ac_file" : 'X\(//\)$' \| \
37410 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
37411$as_echo X"$ac_file" |
37412 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37413 s//\1/
37414 q
37415 }
37416 /^X\(\/\/\)[^/].*/{
37417 s//\1/
37418 q
37419 }
37420 /^X\(\/\/\)$/{
37421 s//\1/
37422 q
37423 }
37424 /^X\(\/\).*/{
37425 s//\1/
37426 q
37427 }
37428 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000037429 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000037430 ac_builddir=.
37431
37432case "$ac_dir" in
37433.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
37434*)
37435 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
37436 # A ".." for each directory in $ac_dir_suffix.
37437 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
37438 case $ac_top_builddir_sub in
37439 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
37440 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
37441 esac ;;
37442esac
37443ac_abs_top_builddir=$ac_pwd
37444ac_abs_builddir=$ac_pwd$ac_dir_suffix
37445# for backward compatibility:
37446ac_top_builddir=$ac_top_build_prefix
37447
37448case $srcdir in
37449 .) # We are building in place.
37450 ac_srcdir=.
37451 ac_top_srcdir=$ac_top_builddir_sub
37452 ac_abs_top_srcdir=$ac_pwd ;;
37453 [\\/]* | ?:[\\/]* ) # Absolute name.
37454 ac_srcdir=$srcdir$ac_dir_suffix;
37455 ac_top_srcdir=$srcdir
37456 ac_abs_top_srcdir=$srcdir ;;
37457 *) # Relative name.
37458 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
37459 ac_top_srcdir=$ac_top_build_prefix$srcdir
37460 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
37461esac
37462ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
37463
37464
37465 case $ac_mode in
37466 :F)
37467 #
37468 # CONFIG_FILE
37469 #
37470
37471 case $INSTALL in
37472 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
37473 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
37474 esac
cristy73bd4a52010-10-05 11:24:23 +000037475 ac_MKDIR_P=$MKDIR_P
37476 case $MKDIR_P in
37477 [\\/$]* | ?:[\\/]* ) ;;
37478 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
37479 esac
cristy3ed852e2009-09-05 21:47:34 +000037480_ACEOF
37481
37482cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37483# If the template does not know about datarootdir, expand it.
37484# FIXME: This hack should be removed a few years after 2.60.
37485ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000037486ac_sed_dataroot='
37487/datarootdir/ {
37488 p
37489 q
37490}
37491/@datadir@/p
37492/@docdir@/p
37493/@infodir@/p
37494/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000037495/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000037496case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
37497*datarootdir*) ac_datarootdir_seen=yes;;
37498*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000037499 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000037500$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
37501_ACEOF
37502cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37503 ac_datarootdir_hack='
37504 s&@datadir@&$datadir&g
37505 s&@docdir@&$docdir&g
37506 s&@infodir@&$infodir&g
37507 s&@localedir@&$localedir&g
37508 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000037509 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000037510esac
37511_ACEOF
37512
37513# Neutralize VPATH when `$srcdir' = `.'.
37514# Shell code in configure.ac might set extrasub.
37515# FIXME: do we really want to maintain this feature?
37516cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37517ac_sed_extra="$ac_vpsub
37518$extrasub
37519_ACEOF
37520cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37521:t
37522/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
37523s|@configure_input@|$ac_sed_conf_input|;t t
37524s&@top_builddir@&$ac_top_builddir_sub&;t t
37525s&@top_build_prefix@&$ac_top_build_prefix&;t t
37526s&@srcdir@&$ac_srcdir&;t t
37527s&@abs_srcdir@&$ac_abs_srcdir&;t t
37528s&@top_srcdir@&$ac_top_srcdir&;t t
37529s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
37530s&@builddir@&$ac_builddir&;t t
37531s&@abs_builddir@&$ac_abs_builddir&;t t
37532s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
37533s&@INSTALL@&$ac_INSTALL&;t t
cristy73bd4a52010-10-05 11:24:23 +000037534s&@MKDIR_P@&$ac_MKDIR_P&;t t
cristy3ed852e2009-09-05 21:47:34 +000037535$ac_datarootdir_hack
37536"
cristyda16f162011-02-19 23:52:17 +000037537eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
37538 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037539
37540test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
cristyda16f162011-02-19 23:52:17 +000037541 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
37542 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
37543 "$ac_tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000037544 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000037545which seems to be undefined. Please make sure it is defined" >&5
cristy3ed852e2009-09-05 21:47:34 +000037546$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000037547which seems to be undefined. Please make sure it is defined" >&2;}
cristy3ed852e2009-09-05 21:47:34 +000037548
cristyda16f162011-02-19 23:52:17 +000037549 rm -f "$ac_tmp/stdin"
cristy3ed852e2009-09-05 21:47:34 +000037550 case $ac_file in
cristyda16f162011-02-19 23:52:17 +000037551 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
37552 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
cristy3ed852e2009-09-05 21:47:34 +000037553 esac \
cristy98dddb52010-11-04 00:30:15 +000037554 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037555 ;;
37556 :H)
37557 #
37558 # CONFIG_HEADER
37559 #
37560 if test x"$ac_file" != x-; then
37561 {
37562 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000037563 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
37564 } >"$ac_tmp/config.h" \
cristy98dddb52010-11-04 00:30:15 +000037565 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000037566 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000037567 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000037568$as_echo "$as_me: $ac_file is unchanged" >&6;}
37569 else
37570 rm -f "$ac_file"
cristyda16f162011-02-19 23:52:17 +000037571 mv "$ac_tmp/config.h" "$ac_file" \
cristy98dddb52010-11-04 00:30:15 +000037572 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037573 fi
37574 else
37575 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000037576 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
cristy98dddb52010-11-04 00:30:15 +000037577 || as_fn_error $? "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037578 fi
cristy73bd4a52010-10-05 11:24:23 +000037579# Compute "$ac_file"'s index in $config_headers.
37580_am_arg="$ac_file"
37581_am_stamp_count=1
37582for _am_header in $config_headers :; do
37583 case $_am_header in
37584 $_am_arg | $_am_arg:* )
37585 break ;;
37586 * )
37587 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
37588 esac
37589done
37590echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
37591$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37592 X"$_am_arg" : 'X\(//\)[^/]' \| \
37593 X"$_am_arg" : 'X\(//\)$' \| \
37594 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
37595$as_echo X"$_am_arg" |
37596 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37597 s//\1/
37598 q
37599 }
37600 /^X\(\/\/\)[^/].*/{
37601 s//\1/
37602 q
37603 }
37604 /^X\(\/\/\)$/{
37605 s//\1/
37606 q
37607 }
37608 /^X\(\/\).*/{
37609 s//\1/
37610 q
37611 }
37612 s/.*/./; q'`/stamp-h$_am_stamp_count
cristy3ed852e2009-09-05 21:47:34 +000037613 ;;
37614
cristy8b350f62009-11-15 23:12:43 +000037615 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000037616$as_echo "$as_me: executing $ac_file commands" >&6;}
37617 ;;
37618 esac
37619
37620
37621 case $ac_file$ac_mode in
cristy01ff9f32012-12-01 18:15:29 +000037622 "MagickCore/magick-baseconfig.h":C) ac_prefix_conf_OUT=`echo MagickCore/magick-baseconfig.h`
cristy73bd4a52010-10-05 11:24:23 +000037623ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
37624ac_prefix_conf_PKG=`echo MagickCore`
37625ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
37626ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
37627ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
37628if test ".$ac_prefix_conf_INP" = "."; then
37629 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
37630 case "$ac_file" in
37631 *.h) ac_prefix_conf_INP=$ac_file ;;
37632 *)
37633 esac
37634 test ".$ac_prefix_conf_INP" != "." && break
37635 done
37636fi
37637if test ".$ac_prefix_conf_INP" = "."; then
37638 case "$ac_prefix_conf_OUT" in
37639 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
37640 ;;
37641 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
37642 ;;
37643 *) ac_prefix_conf_INP=config.h
37644 ;;
37645 esac
37646fi
37647if test -z "$ac_prefix_conf_PKG" ; then
cristy98dddb52010-11-04 00:30:15 +000037648 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000037649else
37650 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
37651 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
37652 fi fi
37653 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
37654$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
37655 if test -f $ac_prefix_conf_INP ; then
cristy24fc1fe2010-10-23 21:13:01 +000037656 $as_echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
37657 $as_echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
37658 $as_echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
37659 $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
37660 $as_echo "#endif/" >> conftest.prefix
37661 $as_echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
37662 $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
37663 $as_echo "#endif/" >> conftest.prefix
cristy73bd4a52010-10-05 11:24:23 +000037664 # now executing _script on _DEF input to create _OUT output file
37665 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
37666 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
37667 echo ' ' >>$tmp/pconfig.h
37668 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
37669
37670 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
37671 echo ' ' >>$tmp/pconfig.h
37672 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
37673 echo "#endif" >>$tmp/pconfig.h
37674 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
37675 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
37676$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
37677 else
37678 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
37679$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37680 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
37681 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
37682 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
37683$as_echo X"$ac_prefix_conf_OUT" |
37684 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37685 s//\1/
37686 q
37687 }
37688 /^X\(\/\/\)[^/].*/{
37689 s//\1/
37690 q
37691 }
37692 /^X\(\/\/\)$/{
37693 s//\1/
37694 q
37695 }
37696 /^X\(\/\).*/{
37697 s//\1/
37698 q
37699 }
37700 s/.*/./; q'`
37701 as_dir="$ac_dir"; as_fn_mkdir_p
37702 rm -f "$ac_prefix_conf_OUT"
37703 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
37704 fi
cristy73bd4a52010-10-05 11:24:23 +000037705 else
cristy98dddb52010-11-04 00:30:15 +000037706 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 +000037707 fi
37708 rm -f conftest.*
37709fi
37710 ;;
37711 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
cristy58d34aa2013-01-24 15:11:54 +000037712 # Older Autoconf quotes --file arguments for eval, but not when files
cristy73bd4a52010-10-05 11:24:23 +000037713 # are listed without --file. Let's play safe and only enable the eval
37714 # if we detect the quoting.
37715 case $CONFIG_FILES in
37716 *\'*) eval set x "$CONFIG_FILES" ;;
37717 *) set x $CONFIG_FILES ;;
37718 esac
37719 shift
37720 for mf
37721 do
37722 # Strip MF so we end up with the name of the file.
37723 mf=`echo "$mf" | sed -e 's/:.*$//'`
37724 # Check whether this is an Automake generated Makefile or not.
cristyc0890a62012-07-19 00:18:20 +000037725 # We used to match only the files named 'Makefile.in', but
cristy73bd4a52010-10-05 11:24:23 +000037726 # some people rename them; so instead we look at the file content.
37727 # Grep'ing the first line is not enough: some people post-process
37728 # each Makefile.in and add a new line on top of each file to say so.
37729 # Grep'ing the whole file is not good either: AIX grep has a line
37730 # limit of 2048, but all sed's we know have understand at least 4000.
37731 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
37732 dirpart=`$as_dirname -- "$mf" ||
37733$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37734 X"$mf" : 'X\(//\)[^/]' \| \
37735 X"$mf" : 'X\(//\)$' \| \
37736 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
37737$as_echo X"$mf" |
37738 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37739 s//\1/
37740 q
37741 }
37742 /^X\(\/\/\)[^/].*/{
37743 s//\1/
37744 q
37745 }
37746 /^X\(\/\/\)$/{
37747 s//\1/
37748 q
37749 }
37750 /^X\(\/\).*/{
37751 s//\1/
37752 q
37753 }
37754 s/.*/./; q'`
37755 else
37756 continue
37757 fi
37758 # Extract the definition of DEPDIR, am__include, and am__quote
cristyc0890a62012-07-19 00:18:20 +000037759 # from the Makefile without running 'make'.
cristy73bd4a52010-10-05 11:24:23 +000037760 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
37761 test -z "$DEPDIR" && continue
37762 am__include=`sed -n 's/^am__include = //p' < "$mf"`
cristybced8142013-05-31 01:23:57 +000037763 test -z "$am__include" && continue
cristy73bd4a52010-10-05 11:24:23 +000037764 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
cristy73bd4a52010-10-05 11:24:23 +000037765 # Find all dependency output files, they are included files with
37766 # $(DEPDIR) in their names. We invoke sed twice because it is the
37767 # simplest approach to changing $(DEPDIR) to its actual value in the
37768 # expansion.
37769 for file in `sed -n "
37770 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
cristyc0890a62012-07-19 00:18:20 +000037771 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
cristy73bd4a52010-10-05 11:24:23 +000037772 # Make sure the directory exists.
37773 test -f "$dirpart/$file" && continue
37774 fdir=`$as_dirname -- "$file" ||
37775$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37776 X"$file" : 'X\(//\)[^/]' \| \
37777 X"$file" : 'X\(//\)$' \| \
37778 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
37779$as_echo X"$file" |
37780 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37781 s//\1/
37782 q
37783 }
37784 /^X\(\/\/\)[^/].*/{
37785 s//\1/
37786 q
37787 }
37788 /^X\(\/\/\)$/{
37789 s//\1/
37790 q
37791 }
37792 /^X\(\/\).*/{
37793 s//\1/
37794 q
37795 }
37796 s/.*/./; q'`
37797 as_dir=$dirpart/$fdir; as_fn_mkdir_p
37798 # echo "creating $dirpart/$file"
37799 echo '# dummy' > "$dirpart/$file"
37800 done
37801 done
37802}
37803 ;;
37804 "libtool":C)
37805
37806 # See if we are running on zsh, and set the options which allow our
37807 # commands through without removal of \ escapes.
37808 if test -n "${ZSH_VERSION+set}" ; then
37809 setopt NO_GLOB_SUBST
37810 fi
37811
37812 cfgfile="${ofile}T"
37813 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
37814 $RM "$cfgfile"
37815
37816 cat <<_LT_EOF >> "$cfgfile"
37817#! $SHELL
37818
37819# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
37820# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
37821# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
37822# NOTE: Changes made to this file will be lost: look at ltmain.sh.
37823#
37824# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cristy99bd5232011-12-07 14:38:20 +000037825# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
37826# Foundation, Inc.
cristy73bd4a52010-10-05 11:24:23 +000037827# Written by Gordon Matzigkeit, 1996
37828#
37829# This file is part of GNU Libtool.
37830#
37831# GNU Libtool is free software; you can redistribute it and/or
37832# modify it under the terms of the GNU General Public License as
37833# published by the Free Software Foundation; either version 2 of
37834# the License, or (at your option) any later version.
37835#
37836# As a special exception to the GNU General Public License,
37837# if you distribute this file as part of a program or library that
37838# is built using GNU Libtool, you may include this file under the
37839# same distribution terms that you use for the rest of that program.
37840#
37841# GNU Libtool is distributed in the hope that it will be useful,
37842# but WITHOUT ANY WARRANTY; without even the implied warranty of
37843# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
37844# GNU General Public License for more details.
37845#
37846# You should have received a copy of the GNU General Public License
37847# along with GNU Libtool; see the file COPYING. If not, a copy
37848# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
37849# obtained by writing to the Free Software Foundation, Inc.,
37850# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
37851
37852
37853# The names of the tagged configurations supported by this script.
37854available_tags="CXX "
37855
37856# ### BEGIN LIBTOOL CONFIG
37857
37858# A sed program that does not truncate output.
37859SED=$lt_SED
37860
37861# Sed that helps us avoid accidentally triggering echo(1) options like -n.
37862Xsed="\$SED -e 1s/^X//"
37863
37864# A grep program that handles long lines.
37865GREP=$lt_GREP
37866
37867# An ERE matcher.
37868EGREP=$lt_EGREP
37869
37870# A literal string matcher.
37871FGREP=$lt_FGREP
37872
cristy0c60a692010-11-04 01:09:47 +000037873# Shell to use when invoking shell scripts.
37874SHELL=$lt_SHELL
37875
37876# An echo program that protects backslashes.
37877ECHO=$lt_ECHO
37878
cristy73bd4a52010-10-05 11:24:23 +000037879# Which release of libtool.m4 was used?
37880macro_version=$macro_version
37881macro_revision=$macro_revision
37882
37883# Assembler program.
cristy0c60a692010-11-04 01:09:47 +000037884AS=$lt_AS
cristy73bd4a52010-10-05 11:24:23 +000037885
37886# DLL creation program.
cristy0c60a692010-11-04 01:09:47 +000037887DLLTOOL=$lt_DLLTOOL
cristy73bd4a52010-10-05 11:24:23 +000037888
37889# Object dumper program.
cristy0c60a692010-11-04 01:09:47 +000037890OBJDUMP=$lt_OBJDUMP
cristy73bd4a52010-10-05 11:24:23 +000037891
37892# Whether or not to build shared libraries.
37893build_libtool_libs=$enable_shared
37894
37895# Whether or not to build static libraries.
37896build_old_libs=$enable_static
37897
37898# What type of objects to build.
37899pic_mode=$pic_mode
37900
37901# Whether or not to optimize for fast installation.
37902fast_install=$enable_fast_install
37903
cristy99bd5232011-12-07 14:38:20 +000037904# The PATH separator for the build system.
37905PATH_SEPARATOR=$lt_PATH_SEPARATOR
37906
cristy73bd4a52010-10-05 11:24:23 +000037907# The host system.
37908host_alias=$host_alias
37909host=$host
37910host_os=$host_os
37911
37912# The build system.
37913build_alias=$build_alias
37914build=$build
37915build_os=$build_os
37916
37917# A BSD- or MS-compatible name lister.
37918NM=$lt_NM
37919
37920# Whether we need soft or hard links.
37921LN_S=$lt_LN_S
37922
37923# What is the maximum length of a command?
37924max_cmd_len=$max_cmd_len
37925
37926# Object file suffix (normally "o").
37927objext=$ac_objext
37928
37929# Executable file suffix (normally "").
37930exeext=$exeext
37931
37932# whether the shell understands "unset".
37933lt_unset=$lt_unset
37934
37935# turn spaces into newlines.
37936SP2NL=$lt_lt_SP2NL
37937
37938# turn newlines into spaces.
37939NL2SP=$lt_lt_NL2SP
37940
cristyda16f162011-02-19 23:52:17 +000037941# convert \$build file names to \$host format.
37942to_host_file_cmd=$lt_cv_to_host_file_cmd
37943
37944# convert \$build files to toolchain format.
37945to_tool_file_cmd=$lt_cv_to_tool_file_cmd
37946
cristy73bd4a52010-10-05 11:24:23 +000037947# Method to check whether dependent libraries are shared objects.
37948deplibs_check_method=$lt_deplibs_check_method
37949
cristyda16f162011-02-19 23:52:17 +000037950# Command to use when deplibs_check_method = "file_magic".
cristy73bd4a52010-10-05 11:24:23 +000037951file_magic_cmd=$lt_file_magic_cmd
37952
cristyda16f162011-02-19 23:52:17 +000037953# How to find potential files when deplibs_check_method = "file_magic".
37954file_magic_glob=$lt_file_magic_glob
37955
37956# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
37957want_nocaseglob=$lt_want_nocaseglob
37958
37959# Command to associate shared and link libraries.
37960sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
37961
cristy73bd4a52010-10-05 11:24:23 +000037962# The archiver.
37963AR=$lt_AR
cristyda16f162011-02-19 23:52:17 +000037964
37965# Flags to create an archive.
cristy73bd4a52010-10-05 11:24:23 +000037966AR_FLAGS=$lt_AR_FLAGS
37967
cristyda16f162011-02-19 23:52:17 +000037968# How to feed a file listing to the archiver.
37969archiver_list_spec=$lt_archiver_list_spec
37970
cristy73bd4a52010-10-05 11:24:23 +000037971# A symbol stripping program.
37972STRIP=$lt_STRIP
37973
37974# Commands used to install an old-style archive.
37975RANLIB=$lt_RANLIB
37976old_postinstall_cmds=$lt_old_postinstall_cmds
37977old_postuninstall_cmds=$lt_old_postuninstall_cmds
37978
cristy0c60a692010-11-04 01:09:47 +000037979# Whether to use a lock for old archive extraction.
37980lock_old_archive_extraction=$lock_old_archive_extraction
37981
cristy73bd4a52010-10-05 11:24:23 +000037982# A C compiler.
37983LTCC=$lt_CC
37984
37985# LTCC compiler flags.
37986LTCFLAGS=$lt_CFLAGS
37987
37988# Take the output of nm and produce a listing of raw symbols and C names.
37989global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
37990
37991# Transform the output of nm in a proper C declaration.
37992global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
37993
37994# Transform the output of nm in a C name address pair.
37995global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
37996
37997# Transform the output of nm in a C name address pair when lib prefix is needed.
37998global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
37999
cristyda16f162011-02-19 23:52:17 +000038000# Specify filename containing input files for \$NM.
38001nm_file_list_spec=$lt_nm_file_list_spec
38002
38003# The root where to search for dependent libraries,and in which our libraries should be installed.
38004lt_sysroot=$lt_sysroot
38005
cristy73bd4a52010-10-05 11:24:23 +000038006# The name of the directory that contains temporary libtool files.
38007objdir=$objdir
38008
cristy73bd4a52010-10-05 11:24:23 +000038009# Used to examine libraries when file_magic_cmd begins with "file".
38010MAGIC_CMD=$MAGIC_CMD
38011
38012# Must we lock files when doing compilation?
38013need_locks=$lt_need_locks
38014
cristyda16f162011-02-19 23:52:17 +000038015# Manifest tool.
38016MANIFEST_TOOL=$lt_MANIFEST_TOOL
38017
cristy73bd4a52010-10-05 11:24:23 +000038018# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
38019DSYMUTIL=$lt_DSYMUTIL
38020
38021# Tool to change global to local symbols on Mac OS X.
38022NMEDIT=$lt_NMEDIT
38023
38024# Tool to manipulate fat objects and archives on Mac OS X.
38025LIPO=$lt_LIPO
38026
38027# ldd/readelf like tool for Mach-O binaries on Mac OS X.
38028OTOOL=$lt_OTOOL
38029
38030# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
38031OTOOL64=$lt_OTOOL64
38032
38033# Old archive suffix (normally "a").
38034libext=$libext
38035
38036# Shared library suffix (normally ".so").
38037shrext_cmds=$lt_shrext_cmds
38038
38039# The commands to extract the exported symbol list from a shared archive.
38040extract_expsyms_cmds=$lt_extract_expsyms_cmds
38041
38042# Variables whose values should be saved in libtool wrapper scripts and
38043# restored at link time.
38044variables_saved_for_relink=$lt_variables_saved_for_relink
38045
38046# Do we need the "lib" prefix for modules?
38047need_lib_prefix=$need_lib_prefix
38048
38049# Do we need a version for libraries?
38050need_version=$need_version
38051
38052# Library versioning type.
38053version_type=$version_type
38054
38055# Shared library runtime path variable.
38056runpath_var=$runpath_var
38057
38058# Shared library path variable.
38059shlibpath_var=$shlibpath_var
38060
38061# Is shlibpath searched before the hard-coded library search path?
38062shlibpath_overrides_runpath=$shlibpath_overrides_runpath
38063
38064# Format of library name prefix.
38065libname_spec=$lt_libname_spec
38066
38067# List of archive names. First name is the real one, the rest are links.
38068# The last name is the one that the linker finds with -lNAME
38069library_names_spec=$lt_library_names_spec
38070
38071# The coded name of the library, if different from the real name.
38072soname_spec=$lt_soname_spec
38073
cristy0c60a692010-11-04 01:09:47 +000038074# Permission mode override for installation of shared libraries.
38075install_override_mode=$lt_install_override_mode
38076
cristy73bd4a52010-10-05 11:24:23 +000038077# Command to use after installation of a shared archive.
38078postinstall_cmds=$lt_postinstall_cmds
38079
38080# Command to use after uninstallation of a shared archive.
38081postuninstall_cmds=$lt_postuninstall_cmds
38082
38083# Commands used to finish a libtool library installation in a directory.
38084finish_cmds=$lt_finish_cmds
38085
38086# As "finish_cmds", except a single script fragment to be evaled but
38087# not shown.
38088finish_eval=$lt_finish_eval
38089
38090# Whether we should hardcode library paths into libraries.
38091hardcode_into_libs=$hardcode_into_libs
38092
38093# Compile-time system search path for libraries.
38094sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
38095
38096# Run-time system search path for libraries.
38097sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
38098
38099# Whether dlopen is supported.
38100dlopen_support=$enable_dlopen
38101
38102# Whether dlopen of programs is supported.
38103dlopen_self=$enable_dlopen_self
38104
38105# Whether dlopen of statically linked programs is supported.
38106dlopen_self_static=$enable_dlopen_self_static
38107
38108# Commands to strip libraries.
38109old_striplib=$lt_old_striplib
38110striplib=$lt_striplib
38111
38112
38113# The linker used to build libraries.
38114LD=$lt_LD
38115
cristy0c60a692010-11-04 01:09:47 +000038116# How to create reloadable object files.
38117reload_flag=$lt_reload_flag
38118reload_cmds=$lt_reload_cmds
38119
cristy73bd4a52010-10-05 11:24:23 +000038120# Commands used to build an old-style archive.
38121old_archive_cmds=$lt_old_archive_cmds
38122
38123# A language specific compiler.
38124CC=$lt_compiler
38125
38126# Is the compiler the GNU compiler?
38127with_gcc=$GCC
38128
38129# Compiler flag to turn off builtin functions.
38130no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
38131
cristy73bd4a52010-10-05 11:24:23 +000038132# Additional compiler flags for building library objects.
38133pic_flag=$lt_lt_prog_compiler_pic
38134
cristyda16f162011-02-19 23:52:17 +000038135# How to pass a linker flag through the compiler.
38136wl=$lt_lt_prog_compiler_wl
38137
cristy73bd4a52010-10-05 11:24:23 +000038138# Compiler flag to prevent dynamic linking.
38139link_static_flag=$lt_lt_prog_compiler_static
38140
38141# Does compiler simultaneously support -c and -o options?
38142compiler_c_o=$lt_lt_cv_prog_compiler_c_o
38143
38144# Whether or not to add -lc for building shared libraries.
38145build_libtool_need_lc=$archive_cmds_need_lc
38146
38147# Whether or not to disallow shared libs when runtime libs are static.
38148allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
38149
38150# Compiler flag to allow reflexive dlopens.
38151export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
38152
38153# Compiler flag to generate shared objects directly from archives.
38154whole_archive_flag_spec=$lt_whole_archive_flag_spec
38155
38156# Whether the compiler copes with passing no objects directly.
38157compiler_needs_object=$lt_compiler_needs_object
38158
38159# Create an old-style archive from a shared archive.
38160old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
38161
38162# Create a temporary old-style archive to link instead of a shared archive.
38163old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
38164
38165# Commands used to build a shared archive.
38166archive_cmds=$lt_archive_cmds
38167archive_expsym_cmds=$lt_archive_expsym_cmds
38168
38169# Commands used to build a loadable module if different from building
38170# a shared archive.
38171module_cmds=$lt_module_cmds
38172module_expsym_cmds=$lt_module_expsym_cmds
38173
38174# Whether we are building with GNU ld or not.
38175with_gnu_ld=$lt_with_gnu_ld
38176
38177# Flag that allows shared libraries with undefined symbols to be built.
38178allow_undefined_flag=$lt_allow_undefined_flag
38179
38180# Flag that enforces no undefined symbols.
38181no_undefined_flag=$lt_no_undefined_flag
38182
38183# Flag to hardcode \$libdir into a binary during linking.
38184# This must work even if \$libdir does not exist
38185hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
38186
cristy73bd4a52010-10-05 11:24:23 +000038187# Whether we need a single "-rpath" flag with a separated argument.
38188hardcode_libdir_separator=$lt_hardcode_libdir_separator
38189
38190# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38191# DIR into the resulting binary.
38192hardcode_direct=$hardcode_direct
38193
38194# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38195# DIR into the resulting binary and the resulting library dependency is
38196# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
38197# library is relocated.
38198hardcode_direct_absolute=$hardcode_direct_absolute
38199
38200# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
38201# into the resulting binary.
38202hardcode_minus_L=$hardcode_minus_L
38203
38204# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
38205# into the resulting binary.
38206hardcode_shlibpath_var=$hardcode_shlibpath_var
38207
38208# Set to "yes" if building a shared library automatically hardcodes DIR
38209# into the library and all subsequent libraries and executables linked
38210# against it.
38211hardcode_automatic=$hardcode_automatic
38212
38213# Set to yes if linker adds runtime paths of dependent libraries
38214# to runtime path list.
38215inherit_rpath=$inherit_rpath
38216
38217# Whether libtool must link a program against all its dependency libraries.
38218link_all_deplibs=$link_all_deplibs
38219
cristy73bd4a52010-10-05 11:24:23 +000038220# Set to "yes" if exported symbols are required.
38221always_export_symbols=$always_export_symbols
38222
38223# The commands to list exported symbols.
38224export_symbols_cmds=$lt_export_symbols_cmds
38225
38226# Symbols that should not be listed in the preloaded symbols.
38227exclude_expsyms=$lt_exclude_expsyms
38228
38229# Symbols that must always be exported.
38230include_expsyms=$lt_include_expsyms
38231
38232# Commands necessary for linking programs (against libraries) with templates.
38233prelink_cmds=$lt_prelink_cmds
38234
cristyda16f162011-02-19 23:52:17 +000038235# Commands necessary for finishing linking programs.
38236postlink_cmds=$lt_postlink_cmds
38237
cristy73bd4a52010-10-05 11:24:23 +000038238# Specify filename containing input files.
38239file_list_spec=$lt_file_list_spec
38240
38241# How to hardcode a shared library path into an executable.
38242hardcode_action=$hardcode_action
38243
38244# The directories searched by this compiler when creating a shared library.
38245compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
38246
38247# Dependencies to place before and after the objects being linked to
38248# create a shared library.
38249predep_objects=$lt_predep_objects
38250postdep_objects=$lt_postdep_objects
38251predeps=$lt_predeps
38252postdeps=$lt_postdeps
38253
38254# The library search path used internally by the compiler when linking
38255# a shared library.
38256compiler_lib_search_path=$lt_compiler_lib_search_path
38257
38258# ### END LIBTOOL CONFIG
38259
38260_LT_EOF
38261
38262 case $host_os in
38263 aix3*)
38264 cat <<\_LT_EOF >> "$cfgfile"
38265# AIX sometimes has problems with the GCC collect2 program. For some
38266# reason, if we set the COLLECT_NAMES environment variable, the problems
38267# vanish in a puff of smoke.
38268if test "X${COLLECT_NAMES+set}" != Xset; then
38269 COLLECT_NAMES=
38270 export COLLECT_NAMES
38271fi
38272_LT_EOF
38273 ;;
38274 esac
38275
38276
38277ltmain="$ac_aux_dir/ltmain.sh"
38278
38279
38280 # We use sed instead of cat because bash on DJGPP gets confused if
38281 # if finds mixed CR/LF and LF-only lines. Since sed operates in
38282 # text mode, it properly converts lines to CR/LF. This bash problem
38283 # is reportedly fixed, but why not run on old versions too?
cristyda16f162011-02-19 23:52:17 +000038284 sed '$q' "$ltmain" >> "$cfgfile" \
38285 || (rm -f "$cfgfile"; exit 1)
cristy73bd4a52010-10-05 11:24:23 +000038286
cristyda16f162011-02-19 23:52:17 +000038287 if test x"$xsi_shell" = xyes; then
38288 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
38289func_dirname ()\
38290{\
38291\ case ${1} in\
38292\ */*) func_dirname_result="${1%/*}${2}" ;;\
38293\ * ) func_dirname_result="${3}" ;;\
38294\ esac\
38295} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
38296 && mv -f "$cfgfile.tmp" "$cfgfile" \
38297 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38298test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038299
38300
cristyda16f162011-02-19 23:52:17 +000038301 sed -e '/^func_basename ()$/,/^} # func_basename /c\
38302func_basename ()\
38303{\
38304\ func_basename_result="${1##*/}"\
38305} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
38306 && mv -f "$cfgfile.tmp" "$cfgfile" \
38307 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38308test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038309
38310
cristyda16f162011-02-19 23:52:17 +000038311 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
38312func_dirname_and_basename ()\
38313{\
38314\ case ${1} in\
38315\ */*) func_dirname_result="${1%/*}${2}" ;;\
38316\ * ) func_dirname_result="${3}" ;;\
38317\ esac\
38318\ func_basename_result="${1##*/}"\
38319} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
38320 && mv -f "$cfgfile.tmp" "$cfgfile" \
38321 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38322test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038323
cristyda16f162011-02-19 23:52:17 +000038324
38325 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
38326func_stripname ()\
38327{\
38328\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
38329\ # positional parameters, so assign one to ordinary parameter first.\
38330\ func_stripname_result=${3}\
38331\ func_stripname_result=${func_stripname_result#"${1}"}\
38332\ func_stripname_result=${func_stripname_result%"${2}"}\
38333} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
38334 && mv -f "$cfgfile.tmp" "$cfgfile" \
38335 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38336test 0 -eq $? || _lt_function_replace_fail=:
38337
38338
38339 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
38340func_split_long_opt ()\
38341{\
38342\ func_split_long_opt_name=${1%%=*}\
38343\ func_split_long_opt_arg=${1#*=}\
38344} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
38345 && mv -f "$cfgfile.tmp" "$cfgfile" \
38346 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38347test 0 -eq $? || _lt_function_replace_fail=:
38348
38349
38350 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
38351func_split_short_opt ()\
38352{\
38353\ func_split_short_opt_arg=${1#??}\
38354\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
38355} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
38356 && mv -f "$cfgfile.tmp" "$cfgfile" \
38357 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38358test 0 -eq $? || _lt_function_replace_fail=:
38359
38360
38361 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
38362func_lo2o ()\
38363{\
38364\ case ${1} in\
38365\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
38366\ *) func_lo2o_result=${1} ;;\
38367\ esac\
38368} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
38369 && mv -f "$cfgfile.tmp" "$cfgfile" \
38370 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38371test 0 -eq $? || _lt_function_replace_fail=:
38372
38373
38374 sed -e '/^func_xform ()$/,/^} # func_xform /c\
38375func_xform ()\
38376{\
38377 func_xform_result=${1%.*}.lo\
38378} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
38379 && mv -f "$cfgfile.tmp" "$cfgfile" \
38380 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38381test 0 -eq $? || _lt_function_replace_fail=:
38382
38383
38384 sed -e '/^func_arith ()$/,/^} # func_arith /c\
38385func_arith ()\
38386{\
38387 func_arith_result=$(( $* ))\
38388} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
38389 && mv -f "$cfgfile.tmp" "$cfgfile" \
38390 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38391test 0 -eq $? || _lt_function_replace_fail=:
38392
38393
38394 sed -e '/^func_len ()$/,/^} # func_len /c\
38395func_len ()\
38396{\
38397 func_len_result=${#1}\
38398} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
38399 && mv -f "$cfgfile.tmp" "$cfgfile" \
38400 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38401test 0 -eq $? || _lt_function_replace_fail=:
38402
38403fi
38404
38405if test x"$lt_shell_append" = xyes; then
38406 sed -e '/^func_append ()$/,/^} # func_append /c\
38407func_append ()\
38408{\
38409 eval "${1}+=\\${2}"\
38410} # Extended-shell func_append 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=:
38414
38415
38416 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
38417func_append_quoted ()\
38418{\
38419\ func_quote_for_eval "${2}"\
38420\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
38421} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
38422 && mv -f "$cfgfile.tmp" "$cfgfile" \
38423 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38424test 0 -eq $? || _lt_function_replace_fail=:
38425
38426
38427 # Save a `func_append' function call where possible by direct use of '+='
38428 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
38429 && mv -f "$cfgfile.tmp" "$cfgfile" \
38430 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38431 test 0 -eq $? || _lt_function_replace_fail=:
38432else
38433 # Save a `func_append' function call even when '+=' is not available
38434 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
38435 && mv -f "$cfgfile.tmp" "$cfgfile" \
38436 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38437 test 0 -eq $? || _lt_function_replace_fail=:
38438fi
38439
38440if test x"$_lt_function_replace_fail" = x":"; then
38441 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
38442$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
38443fi
38444
38445
38446 mv -f "$cfgfile" "$ofile" ||
cristy73bd4a52010-10-05 11:24:23 +000038447 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
38448 chmod +x "$ofile"
38449
38450
38451 cat <<_LT_EOF >> "$ofile"
38452
38453# ### BEGIN LIBTOOL TAG CONFIG: CXX
38454
38455# The linker used to build libraries.
38456LD=$lt_LD_CXX
38457
cristy0c60a692010-11-04 01:09:47 +000038458# How to create reloadable object files.
38459reload_flag=$lt_reload_flag_CXX
38460reload_cmds=$lt_reload_cmds_CXX
38461
cristy73bd4a52010-10-05 11:24:23 +000038462# Commands used to build an old-style archive.
38463old_archive_cmds=$lt_old_archive_cmds_CXX
38464
38465# A language specific compiler.
38466CC=$lt_compiler_CXX
38467
38468# Is the compiler the GNU compiler?
38469with_gcc=$GCC_CXX
38470
38471# Compiler flag to turn off builtin functions.
38472no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
38473
cristy73bd4a52010-10-05 11:24:23 +000038474# Additional compiler flags for building library objects.
38475pic_flag=$lt_lt_prog_compiler_pic_CXX
38476
cristyda16f162011-02-19 23:52:17 +000038477# How to pass a linker flag through the compiler.
38478wl=$lt_lt_prog_compiler_wl_CXX
38479
cristy73bd4a52010-10-05 11:24:23 +000038480# Compiler flag to prevent dynamic linking.
38481link_static_flag=$lt_lt_prog_compiler_static_CXX
38482
38483# Does compiler simultaneously support -c and -o options?
38484compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
38485
38486# Whether or not to add -lc for building shared libraries.
38487build_libtool_need_lc=$archive_cmds_need_lc_CXX
38488
38489# Whether or not to disallow shared libs when runtime libs are static.
38490allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
38491
38492# Compiler flag to allow reflexive dlopens.
38493export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
38494
38495# Compiler flag to generate shared objects directly from archives.
38496whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
38497
38498# Whether the compiler copes with passing no objects directly.
38499compiler_needs_object=$lt_compiler_needs_object_CXX
38500
38501# Create an old-style archive from a shared archive.
38502old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
38503
38504# Create a temporary old-style archive to link instead of a shared archive.
38505old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
38506
38507# Commands used to build a shared archive.
38508archive_cmds=$lt_archive_cmds_CXX
38509archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
38510
38511# Commands used to build a loadable module if different from building
38512# a shared archive.
38513module_cmds=$lt_module_cmds_CXX
38514module_expsym_cmds=$lt_module_expsym_cmds_CXX
38515
38516# Whether we are building with GNU ld or not.
38517with_gnu_ld=$lt_with_gnu_ld_CXX
38518
38519# Flag that allows shared libraries with undefined symbols to be built.
38520allow_undefined_flag=$lt_allow_undefined_flag_CXX
38521
38522# Flag that enforces no undefined symbols.
38523no_undefined_flag=$lt_no_undefined_flag_CXX
38524
38525# Flag to hardcode \$libdir into a binary during linking.
38526# This must work even if \$libdir does not exist
38527hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
38528
cristy73bd4a52010-10-05 11:24:23 +000038529# Whether we need a single "-rpath" flag with a separated argument.
38530hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
38531
38532# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38533# DIR into the resulting binary.
38534hardcode_direct=$hardcode_direct_CXX
38535
38536# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38537# DIR into the resulting binary and the resulting library dependency is
38538# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
38539# library is relocated.
38540hardcode_direct_absolute=$hardcode_direct_absolute_CXX
38541
38542# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
38543# into the resulting binary.
38544hardcode_minus_L=$hardcode_minus_L_CXX
38545
38546# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
38547# into the resulting binary.
38548hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
38549
38550# Set to "yes" if building a shared library automatically hardcodes DIR
38551# into the library and all subsequent libraries and executables linked
38552# against it.
38553hardcode_automatic=$hardcode_automatic_CXX
38554
38555# Set to yes if linker adds runtime paths of dependent libraries
38556# to runtime path list.
38557inherit_rpath=$inherit_rpath_CXX
38558
38559# Whether libtool must link a program against all its dependency libraries.
38560link_all_deplibs=$link_all_deplibs_CXX
38561
cristy73bd4a52010-10-05 11:24:23 +000038562# Set to "yes" if exported symbols are required.
38563always_export_symbols=$always_export_symbols_CXX
38564
38565# The commands to list exported symbols.
38566export_symbols_cmds=$lt_export_symbols_cmds_CXX
38567
38568# Symbols that should not be listed in the preloaded symbols.
38569exclude_expsyms=$lt_exclude_expsyms_CXX
38570
38571# Symbols that must always be exported.
38572include_expsyms=$lt_include_expsyms_CXX
38573
38574# Commands necessary for linking programs (against libraries) with templates.
38575prelink_cmds=$lt_prelink_cmds_CXX
38576
cristyda16f162011-02-19 23:52:17 +000038577# Commands necessary for finishing linking programs.
38578postlink_cmds=$lt_postlink_cmds_CXX
38579
cristy73bd4a52010-10-05 11:24:23 +000038580# Specify filename containing input files.
38581file_list_spec=$lt_file_list_spec_CXX
38582
38583# How to hardcode a shared library path into an executable.
38584hardcode_action=$hardcode_action_CXX
38585
38586# The directories searched by this compiler when creating a shared library.
38587compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
38588
38589# Dependencies to place before and after the objects being linked to
38590# create a shared library.
38591predep_objects=$lt_predep_objects_CXX
38592postdep_objects=$lt_postdep_objects_CXX
38593predeps=$lt_predeps_CXX
38594postdeps=$lt_postdeps_CXX
38595
38596# The library search path used internally by the compiler when linking
38597# a shared library.
38598compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
38599
38600# ### END LIBTOOL TAG CONFIG: CXX
38601_LT_EOF
38602
38603 ;;
cristy2bd4b6e2012-07-22 15:29:11 +000038604 "magick.sh.in":C) chmod +x magick.sh ;;
cristy4c08aed2011-07-01 19:47:50 +000038605 "MagickCore-config.in":C) chmod +x MagickCore/MagickCore-config ;;
cristy4c08aed2011-07-01 19:47:50 +000038606 "MagickWand-config.in":C) chmod +x MagickWand/MagickWand-config ;;
cristy3ed852e2009-09-05 21:47:34 +000038607 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
38608 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
38609
38610 esac
38611done # for ac_tag
38612
38613
cristy8b350f62009-11-15 23:12:43 +000038614as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000038615_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000038616ac_clean_files=$ac_clean_files_save
38617
38618test $ac_write_fail = 0 ||
cristy98dddb52010-11-04 00:30:15 +000038619 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038620
38621
38622# configure is writing to config.log, and then calls config.status.
38623# config.status does its own redirection, appending to config.log.
38624# Unfortunately, on DOS this fails, as config.log is still kept open
38625# by configure, so config.status won't be able to write to it; its
38626# output is simply discarded. So we exec the FD to /dev/null,
38627# effectively closing config.log, so it can be properly (re)opened and
38628# appended to by config.status. When coming back to configure, we
38629# need to make the FD available again.
38630if test "$no_create" != yes; then
38631 ac_cs_success=:
38632 ac_config_status_args=
38633 test "$silent" = yes &&
38634 ac_config_status_args="$ac_config_status_args --quiet"
38635 exec 5>/dev/null
38636 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
38637 exec 5>>config.log
38638 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
38639 # would make configure fail if this is the last instruction.
cristy98dddb52010-11-04 00:30:15 +000038640 $ac_cs_success || as_fn_exit 1
cristy3ed852e2009-09-05 21:47:34 +000038641fi
38642if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000038643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000038644$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
38645fi
38646
38647
cristy9af1cbf2014-12-28 22:03:09 +000038648# ==============================================================================
38649# ImageMagick Configuration
38650# ==============================================================================
38651{ $as_echo "$as_me:${as_lineno-$LINENO}:
38652==============================================================================
cristy3ed852e2009-09-05 21:47:34 +000038653ImageMagick is configured as follows. Please verify that this configuration
38654matches your expectations.
38655
cristy9af1cbf2014-12-28 22:03:09 +000038656 Host system type: $host
38657 Build system type: $build
cristy3ed852e2009-09-05 21:47:34 +000038658
38659 Option Value
cristy9af1cbf2014-12-28 22:03:09 +000038660 ------------------------------------------------------------------------------
38661 Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
38662 Static libraries --enable-static=$enable_static $libtool_build_static_libs
38663 Module support --with-modules=$build_modules $build_modules
38664 GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
38665 Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
38666 High Dynamic Range Imagery
38667 --enable-hdri=$enable_hdri $enable_hdri
cristy3ed852e2009-09-05 21:47:34 +000038668
cristy9af1cbf2014-12-28 22:03:09 +000038669 Install documentation: $wantdocs
cristy3ed852e2009-09-05 21:47:34 +000038670
cristy9af1cbf2014-12-28 22:03:09 +000038671 Delegate Library Configuration:
38672 BZLIB --with-bzlib=$with_bzlib $have_bzlib
38673 Autotrace --with-autotrace=$with_autotrace $have_autotrace
38674 DJVU --with-djvu=$with_djvu $have_djvu
38675 DPS --with-dps=$with_dps $have_dps
38676 FFTW --with-fftw=$with_fftw $have_fftw
38677 FlashPIX --with-fpx=$with_fpx $have_fpx
38678 FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
38679 FreeType --with-freetype=$with_freetype $have_freetype
38680 Ghostscript lib --with-gslib=$with_gslib $have_gslib
38681 Graphviz --with-gvc=$with_gvc $have_gvc
38682 JBIG --with-jbig=$with_jbig $have_jbig
38683 JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
38684 JPEG-2000 --with-jp2=$with_jp2 $have_jp2
38685 LCMS v1 --with-lcms=$with_lcms $have_lcms
38686 LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
38687 LIBJPEG2 --with-openjp2=$with_openjp2 $have_openjp2
38688 LQR --with-lqr=$with_lqr $have_lqr
38689 LTDL --with-ltdl=$with_ltdl $have_ltdl
38690 LZMA --with-lzma=$with_lzma $have_lzma
38691 Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
38692 OpenEXR --with-openexr=$with_openexr $have_openexr
38693 PANGO --with-pango=$with_pango $have_pango
38694 PERL --with-perl=$with_perl $have_perl
38695 PNG --with-png=$with_png $have_png
38696 RSVG --with-rsvg=$with_rsvg $have_rsvg
38697 TIFF --with-tiff=$with_tiff $have_tiff
38698 WEBP --with-webp=$with_webp $have_webp
38699 WMF --with-wmf=$with_wmf $have_wmf
38700 X11 --with-x=$with_x $have_x
38701 XML --with-xml=$with_xml $have_xml
38702 ZLIB --with-zlib=$with_zlib $have_zlib
cristy5a3dc992014-12-05 19:50:04 +000038703
cristy9af1cbf2014-12-28 22:03:09 +000038704 Delegate Program Configuration:
38705 GhostPCL None $PCLDelegate ($PCLVersion)
38706 GhostXPS None $XPSDelegate ($XPSVersion)
38707 Ghostscript None $PSDelegate ($GSVersion)
cristy5a3dc992014-12-05 19:50:04 +000038708
cristy9af1cbf2014-12-28 22:03:09 +000038709 Font Configuration:
38710 Apple fonts --with-apple-font-dir=$with_apple_font_dir $result_apple_font_dir
38711 Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
38712 Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
38713 Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
cristy3ed852e2009-09-05 21:47:34 +000038714
cristy9af1cbf2014-12-28 22:03:09 +000038715 X11 Configuration:
38716 X_CFLAGS = $X_CFLAGS
38717 X_PRE_LIBS = $X_PRE_LIBS
38718 X_LIBS = $X_LIBS
38719 X_EXTRA_LIBS = $X_EXTRA_LIBS
38720
38721 Options used to compile and link:
38722 PREFIX = $PREFIX_DIR
38723 EXEC-PREFIX = $EXEC_PREFIX_DIR
38724 VERSION = $PACKAGE_VERSION
38725 CC = $CC
38726 CFLAGS = $CFLAGS
38727 CPPFLAGS = $CPPFLAGS
38728 PCFLAGS = $PCFLAGS
38729 DEFS = $DEFS
38730 LDFLAGS = $LDFLAGS
38731 LIBS = $LIBS
38732 CXX = $CXX
38733 CXXFLAGS = $CXXFLAGS
38734 FEATURES = $MAGICK_FEATURES
38735 DELEGATES = $MAGICK_DELEGATES
38736==============================================================================
cristy3ed852e2009-09-05 21:47:34 +000038737" >&5
cristy9af1cbf2014-12-28 22:03:09 +000038738$as_echo "$as_me:
38739==============================================================================
cristy3ed852e2009-09-05 21:47:34 +000038740ImageMagick is configured as follows. Please verify that this configuration
38741matches your expectations.
38742
cristy9af1cbf2014-12-28 22:03:09 +000038743 Host system type: $host
38744 Build system type: $build
cristy3ed852e2009-09-05 21:47:34 +000038745
38746 Option Value
cristy9af1cbf2014-12-28 22:03:09 +000038747 ------------------------------------------------------------------------------
38748 Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
38749 Static libraries --enable-static=$enable_static $libtool_build_static_libs
38750 Module support --with-modules=$build_modules $build_modules
38751 GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
38752 Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
38753 High Dynamic Range Imagery
38754 --enable-hdri=$enable_hdri $enable_hdri
cristy3ed852e2009-09-05 21:47:34 +000038755
cristy9af1cbf2014-12-28 22:03:09 +000038756 Install documentation: $wantdocs
cristy3ed852e2009-09-05 21:47:34 +000038757
cristy9af1cbf2014-12-28 22:03:09 +000038758 Delegate Library Configuration:
38759 BZLIB --with-bzlib=$with_bzlib $have_bzlib
38760 Autotrace --with-autotrace=$with_autotrace $have_autotrace
38761 DJVU --with-djvu=$with_djvu $have_djvu
38762 DPS --with-dps=$with_dps $have_dps
38763 FFTW --with-fftw=$with_fftw $have_fftw
38764 FlashPIX --with-fpx=$with_fpx $have_fpx
38765 FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
38766 FreeType --with-freetype=$with_freetype $have_freetype
38767 Ghostscript lib --with-gslib=$with_gslib $have_gslib
38768 Graphviz --with-gvc=$with_gvc $have_gvc
38769 JBIG --with-jbig=$with_jbig $have_jbig
38770 JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
38771 JPEG-2000 --with-jp2=$with_jp2 $have_jp2
38772 LCMS v1 --with-lcms=$with_lcms $have_lcms
38773 LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
38774 LIBJPEG2 --with-openjp2=$with_openjp2 $have_openjp2
38775 LQR --with-lqr=$with_lqr $have_lqr
38776 LTDL --with-ltdl=$with_ltdl $have_ltdl
38777 LZMA --with-lzma=$with_lzma $have_lzma
38778 Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
38779 OpenEXR --with-openexr=$with_openexr $have_openexr
38780 PANGO --with-pango=$with_pango $have_pango
38781 PERL --with-perl=$with_perl $have_perl
38782 PNG --with-png=$with_png $have_png
38783 RSVG --with-rsvg=$with_rsvg $have_rsvg
38784 TIFF --with-tiff=$with_tiff $have_tiff
38785 WEBP --with-webp=$with_webp $have_webp
38786 WMF --with-wmf=$with_wmf $have_wmf
38787 X11 --with-x=$with_x $have_x
38788 XML --with-xml=$with_xml $have_xml
38789 ZLIB --with-zlib=$with_zlib $have_zlib
cristy5a3dc992014-12-05 19:50:04 +000038790
cristy9af1cbf2014-12-28 22:03:09 +000038791 Delegate Program Configuration:
38792 GhostPCL None $PCLDelegate ($PCLVersion)
38793 GhostXPS None $XPSDelegate ($XPSVersion)
38794 Ghostscript None $PSDelegate ($GSVersion)
cristy5a3dc992014-12-05 19:50:04 +000038795
cristy9af1cbf2014-12-28 22:03:09 +000038796 Font Configuration:
38797 Apple fonts --with-apple-font-dir=$with_apple_font_dir $result_apple_font_dir
38798 Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
38799 Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
38800 Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
cristy3ed852e2009-09-05 21:47:34 +000038801
cristy9af1cbf2014-12-28 22:03:09 +000038802 X11 Configuration:
38803 X_CFLAGS = $X_CFLAGS
38804 X_PRE_LIBS = $X_PRE_LIBS
38805 X_LIBS = $X_LIBS
38806 X_EXTRA_LIBS = $X_EXTRA_LIBS
38807
38808 Options used to compile and link:
38809 PREFIX = $PREFIX_DIR
38810 EXEC-PREFIX = $EXEC_PREFIX_DIR
38811 VERSION = $PACKAGE_VERSION
38812 CC = $CC
38813 CFLAGS = $CFLAGS
38814 CPPFLAGS = $CPPFLAGS
38815 PCFLAGS = $PCFLAGS
38816 DEFS = $DEFS
38817 LDFLAGS = $LDFLAGS
38818 LIBS = $LIBS
38819 CXX = $CXX
38820 CXXFLAGS = $CXXFLAGS
38821 FEATURES = $MAGICK_FEATURES
38822 DELEGATES = $MAGICK_DELEGATES
38823==============================================================================
38824" >&6;}